/**
 * Flex Theme - Magazine Style
 */

/* === CSS VARIABELEN === */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #152842;
    --accent-color: #c60c30;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

/* NAVIGATION */
.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
    font-family: var(--heading-font);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand-text {
    display: inline-block;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Dropdown Menu Styling */
.navbar .dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.navbar .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.navbar .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: 0.1em;
}

.navbar-icon {
    height: 36px;
    width: auto;
    display: block;
    border-radius: 4px;
}

/* DARK NAVBAR - Danish Style */
.navbar-dark {
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.navbar-dark .navbar-brand {
    color: #ffffff !important;
}

.navbar-dark .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
}

.navbar-dark .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,0.2);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-dark .search-toggle {
    color: rgba(255,255,255,0.85);
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.navbar-dark .search-toggle:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.navbar-dark .search-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
}

.navbar-dark .search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.navbar-dark .search-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    color: #ffffff;
}

.navbar-dark .search-submit {
    color: rgba(255,255,255,0.7);
}

.navbar-dark .search-submit:hover {
    color: #ffffff;
}

.navbar-dark .dropdown-menu {
    background: #2d3748;
    border: 1px solid rgba(255,255,255,0.1);
}

.navbar-dark .dropdown-item {
    color: rgba(255,255,255,0.85);
}

.navbar-dark .dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.navbar-dark .search-form-mobile,
.navbar-dark ~ .search-form-mobile {
    background: #2d3748;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.navbar-dark .search-form-mobile .search-input-mobile,
.navbar-dark ~ .search-form-mobile .search-input-mobile {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #ffffff;
}

.navbar-dark .search-form-mobile .search-input-mobile::placeholder,
.navbar-dark ~ .search-form-mobile .search-input-mobile::placeholder {
    color: rgba(255,255,255,0.5);
}

.navbar-dark .search-form-mobile .search-input-mobile:focus,
.navbar-dark ~ .search-form-mobile .search-input-mobile:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.navbar-dark .search-form-mobile .search-submit-mobile,
.navbar-dark ~ .search-form-mobile .search-submit-mobile {
    color: rgba(255,255,255,0.7);
}

.navbar-dark .search-form-mobile .search-submit-mobile:hover,
.navbar-dark ~ .search-form-mobile .search-submit-mobile:hover {
    color: #ffffff;
}

/* Mobile Dropdown Menu */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0;
        background-color: transparent;
    }

    .navbar .dropdown-item {
        padding: 0.5rem 1rem;
        color: var(--text-dark);
    }

    .navbar .dropdown-item:hover {
        background-color: rgba(0,0,0,0.05);
    }

    /* Dark navbar mobile dropdown */
    .navbar-dark .dropdown-menu {
        background-color: transparent;
    }

    .navbar-dark .dropdown-item {
        color: rgba(255,255,255,0.85);
    }

    .navbar-dark .dropdown-item:hover {
        background-color: rgba(255,255,255,0.1);
        color: #ffffff;
    }
}

/* SEARCH FUNCTIONALITY */
/* Desktop Search */
.search-form {
    align-items: center;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 240px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: var(--bg-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 280px;
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.search-submit:hover {
    color: var(--primary-color);
}

/* Mobile Search Toggle Button */
.search-toggle {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.search-toggle:hover {
    color: var(--primary-color);
}

/* Mobile Search Form */
.search-form-mobile {
    display: none;
    width: 100%;
    padding: 1.25rem 0;
    background: white;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-form-mobile.active {
    display: block;
}

.search-wrapper-mobile {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-mobile {
    width: 100%;
    padding: 1.1rem 3.5rem 1.1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1.05rem;
    background: var(--bg-light);
    transition: all 0.3s;
}

.search-input-mobile:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.search-submit-mobile {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    color: var(--text-light);
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1.05rem;
}

.search-submit-mobile:hover {
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .search-form {
        display: none !important;
    }
}

/* Search Results Page */
.search-query {
    color: var(--primary-color);
    font-style: italic;
}

.search-count {
    font-size: 1rem;
    color: var(--text-light);
}

.no-results {
    padding: 3rem 0;
}

.search-input-retry:focus,
.search-submit-retry:hover {
    outline: none;
}

.search-input-retry:focus {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-submit-retry:hover {
    background: var(--secondary-color) !important;
}

/* BREADCRUMBS */
.breadcrumbs {
    background: var(--bg-light);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    margin: 0 0.5rem;
    color: var(--text-light);
    font-size: 0.75rem;
}

/* HOMEPAGE TITLE */
.homepage-title-section {
    margin: 3rem 0 2rem 0;
}

.homepage-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.5px;
    text-align: center;
}

/* HERO GRID */
.hero-section {
    margin: 2rem 0 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.hero-main {
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    transition: all 0.3s;
    cursor: pointer;
}

.hero-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 2.5rem;
    color: white;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-side-item {
    position: relative;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    transition: all 0.3s;
    cursor: pointer;
}

.hero-side-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero-side-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 1.5rem;
    color: white;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-side-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0 0 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.hero-excerpt {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* CATEGORY BADGE */
.category-badge {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    width: auto;
    max-width: fit-content;
    transition: all 0.3s;
}

.category-badge:hover {
    background: rgba(198, 12, 48, 0.08);
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

/* Category badge on images - white version */
.hero-overlay .category-badge,
.hero-side-overlay .category-badge,
.featured-card-overlay .category-badge {
    background: white;
    color: var(--text-dark);
    border: 2px solid white;
}

.hero-overlay .category-badge:hover,
.hero-side-overlay .category-badge:hover,
.featured-card-overlay .category-badge:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border-color: white;
    transform: translateY(-1px);
}

/* DATE */
.date-badge {
    display: inline-block;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* SECTION HEADERS */
.section-header {
    margin: 4rem 0 2.5rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.5px;
}

/* CONTENT CARDS */
.content-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.content-card-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.content-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.content-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.75rem 0 0.75rem 0;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.content-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.content-card-title a:hover {
    color: var(--primary-color);
}

.content-card-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-card-date {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ABOUT SECTION */
.about-section {
    background: white;
    padding: 5rem 0;
    margin: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.about-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-contact-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.about-contact-link:hover {
    color: var(--primary-color);
}

.btn-primary-custom {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-primary-custom:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* FEATURED POSTS SECTION */
.featured-section {
    padding: 2.5rem 0;
    margin: 0;
}

.featured-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-section .section-title {
    font-size: 2rem;
    font-weight: 700;
}

/* FEATURED ARTICLES SECTION */
.featured-articles {
    margin: 4rem 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.featured-card {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: all 0.3s;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 2rem;
    color: white;
}

.featured-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.featured-card-excerpt {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* FOOTER */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer h5, .footer h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer a:hover {
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-email {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: opacity 0.3s;
}

.footer-email:hover {
    opacity: 0.8;
    color: white;
}

.footer-email i {
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2.5rem;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.footer-legal-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: rgba(255,255,255,0.8);
}

.footer-separator {
    color: rgba(255,255,255,0.3);
}

/* SCROLL TO TOP BUTTON - Desktop Only */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: none; /* Hidden on mobile by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Show only on desktop (992px and up) */
@media (min-width: 992px) {
    .scroll-to-top {
        display: flex;
    }
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.scroll-to-top:hover i {
    color: white;
}

.scroll-to-top i {
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: color 0.3s;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-side {
        flex-direction: row;
        gap: 1.5rem;
    }

    .hero-side-item {
        height: 220px;
        flex: 1;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .homepage-main-title {
        font-size: 2rem;
    }

    .hero-main {
        height: 400px;
    }

    .hero-side {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-side-item {
        height: 250px;
        flex: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .content-card-img {
        height: 200px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .homepage-main-title {
        font-size: 1.75rem;
    }

    .hero-main {
        height: 350px;
    }

    .hero-side-item {
        height: 220px;
    }

    .hero-title {
        font-size: 1.3rem;
    }
}

/* === BLOG SINGLE TEMPLATE === */
.blog-single {
    margin: 3rem 0;
}

.blog-single-content {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.blog-single-image {
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.blog-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-single-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-divider {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-single-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-single-date i {
    margin-right: 0.5rem;
}

.blog-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.blog-single-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* SOCIAL SHARE BUTTONS */
.social-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    margin: 2rem 0 0 0;
    border-top: 1px solid var(--border-color);
}

.social-share-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.share-btn i {
    font-size: 1.1rem;
}

.share-copy:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.share-whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.share-btn.copied {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

@media (max-width: 576px) {
    .social-share {
        flex-wrap: wrap;
    }

    .share-text {
        display: none;
    }

    .share-btn {
        padding: 0.6rem;
        justify-content: center;
    }
}

.blog-single-body p {
    margin-bottom: 1.5rem;
}

.blog-single-body h2,
.blog-single-body h3,
.blog-single-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.blog-single-body ul,
.blog-single-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-single-body li {
    margin-bottom: 0.5rem;
}

.blog-single-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-single-body a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s;
}

.blog-single-body a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.blog-single-tags {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.blog-single-tags strong {
    color: var(--text-dark);
    margin-right: 1rem;
    font-size: 0.95rem;
}

.tag-link {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-light);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.tag-link:hover {
    background: var(--primary-color);
    color: white;
}

.blog-single-navigation {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.nav-post {
    display: block;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    height: 100%;
}

.nav-post:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-post:hover .nav-label,
.nav-post:hover .nav-title {
    color: white;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.nav-post-prev .nav-label i {
    margin-right: 0.5rem;
}

.nav-post-next {
    text-align: right;
}

.nav-post-next .nav-label i {
    margin-left: 0.5rem;
}

/* Mobile spacing for navigation */
@media (max-width: 767px) {
    .blog-single-navigation .col-md-6:first-child {
        margin-bottom: 1rem;
    }
}

/* SIDEBAR */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.sidebar-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sidebar-post-thumb:hover img {
    transform: scale(1.1);
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.sidebar-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-title a:hover {
    color: var(--primary-color);
}

.sidebar-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.sidebar-post-cat {
    color: var(--accent-color);
    font-weight: 600;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 0.75rem;
}

.sidebar-categories li:last-child {
    margin-bottom: 0;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-categories a:hover {
    color: var(--primary-color);
}

.cat-count {
    color: var(--text-light);
    font-size: 0.85rem;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.sidebar-cta .sidebar-widget-title {
    color: white;
}

.sidebar-cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-sidebar-cta {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.btn-sidebar-cta:hover {
    background: rgba(255,255,255,0.9);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-sidebar-cta i {
    margin-right: 0.5rem;
}

.sidebar-cta-email {
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

.sidebar-cta-email i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

.sidebar-cta-email a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.sidebar-cta-email a:hover {
    opacity: 0.8;
    color: white;
}

/* Responsive - Blog Single */
@media (max-width: 991.98px) {
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .blog-single-content {
        padding: 1.5rem;
    }

    .blog-single-image {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }

    .blog-single-title {
        font-size: 2rem;
    }

    .blog-single-body {
        font-size: 1rem;
    }

    .sidebar-widget {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .blog-single-title {
        font-size: 1.75rem;
    }

    .nav-post {
        padding: 1rem;
    }

    .nav-title {
        font-size: 0.95rem;
    }
}

/* === 404 ERROR PAGE === */
.error-404-title {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
    letter-spacing: -2px;
}

.error-404-subtitle {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.error-404-text {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-primary-custom i {
    margin-right: 0.5rem;
}

/* Responsive - 404 */
@media (max-width: 768px) {
    .error-404-title {
        font-size: 6rem;
    }

    .error-404-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .error-404-title {
        font-size: 4.5rem;
    }

    .error-404-subtitle {
        font-size: 1.25rem;
    }
}

/* === PAGINATION === */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-wrapper .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-wrapper .page-numbers li {
    margin: 0;
}

.pagination-wrapper a.page-numbers,
.pagination-wrapper span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.pagination-wrapper a.page-numbers:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pagination-wrapper span.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-wrapper .dots {
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: default;
}

.pagination-wrapper .dots:hover {
    background: transparent;
    color: var(--text-light);
    transform: none;
    box-shadow: none;
}

.pagination-wrapper a.prev,
.pagination-wrapper a.next {
    padding: 0.5rem 1.25rem;
}

.pagination-wrapper a.prev i,
.pagination-wrapper a.next i {
    font-size: 0.85rem;
}

/* Responsive - Pagination */
@media (max-width: 576px) {
    .pagination-wrapper a.page-numbers,
    .pagination-wrapper span.page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .pagination-wrapper a.prev,
    .pagination-wrapper a.next {
        padding: 0.4rem 1rem;
    }
}