/* =========================================
   GLOBAL VARIABLES & RESETS
========================================= */
:root {
    /* Unified Brand Colors */
    --primary: #041B3E;
    --primary-color: #041B3E;
    --accent: #CA8F3D;
    --asset: #CA8F3D;
    --gold: #CA8F3D;
    --accent-color: #CA8F3D;
    --asset-color: #CA8F3D;

    /* Backgrounds & Text */
    --bg-white: #FFFFFF;
    --bg-color: #FFFFFF;
    --white: #FFFFFF;
    --bg-light: #FAFAFB;
    --text-main: #041B3E;
    --text-light: #FFFFFF;

    /* Muted Text Variations (Scoped to keep exact original designs) */
    --text-muted: #555555;
    --text-muted-about: #4a5568;
    --text-muted-subscribe: #A0B2C6;
    --text-dark: #1A1A1A;
    --text-main: #374151;

    /* Component Specifics */
    --card-bg: #FFFFFF;
    --card-border: #EAEAEA;
    --section-bg: #F5EFE6;
    --border-color: #EAEAEA;

    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --global-padding-x: 5%;
    --global-max-width: 1200px;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* :root {
    --bg-color: #F8F9FA;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* check it once */
section {
    padding: 80px 5% 0 5%;
}

/* =========================================
   NAVBAR (Your code, perfectly intact)
========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--global-padding-x);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(4, 27, 62, 0.03);
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img-container {
    width: 130px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img-container img:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(4, 27, 62, 0.15);
}

.btn-contact:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(202, 143, 61, 0.25);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
    background: none;
    border: none;
    z-index: 1001;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hamburger:hover {
    color: var(--accent-color);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-link {
    font-size: 20px;
    font-weight: 600;
}

.mobile-menu .btn-contact {
    padding: 14px 40px;
    font-size: 16px;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-menu:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* --- BLOG HERO SECTION --- */
.blog-hero-section {
    width: 100%;
    padding: 40px 5% 60px 5%;
    background-color: var(--bg-white);
}

.blog-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Left Content */
.blog-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-tagline {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--asset);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 20px;
}

.blog-hero-title span {
    color: var(--asset);
    font-style: italic;
}

.blog-hero-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
}

/* Right Image Wrapper */
.blog-hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-hero-image-container {
    width: 100%;
    max-width: 580px;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    /* background-color: #F4F5F7; */
}

.blog-hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-hero-image-container:hover img {
    transform: scale(1.03);
}


.blog-section {
    padding: 40px 5%;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* ---------------------------------
   Desktop Header Elements
-----------------------------------*/
.desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary);
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--gold);
}

.search-box {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 350px;
    background: var(--white);
}

.search-box input {
    border: none;
    padding: 12px 16px;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
}

.search-box .search-btn {
    background-color: var(--gold);
    border: none;
    color: var(--white);
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box .search-btn:hover {
    background-color: #b57c32;
}

/* ---------------------------------
   Main Layout Structure
-----------------------------------*/
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.posts-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ---------------------------------
   Desktop Post Cards
-----------------------------------*/
.post-card {
    height: 250px;
    width: 100%;
    display: flex;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.post-card:hover {
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.post-img {
    height: 250px;
    width: 300px;
    flex-shrink: 0;
    background: transparent;
    overflow: hidden;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 16px; */
}

.post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.category-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-img-container{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: var(--border-color) 2px solid;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar {
    height: 25px;
    object-fit: cover;
}

.author-text {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.post-date {
    font-size: 12px;
    color: var(--text-muted);
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more i {
    color: var(--gold);
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* ---------------------------------
   Desktop Pagination
-----------------------------------*/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pagination a.active {
    background: var(--primary);
    color: var(--white);
}

.pagination a:hover:not(.active) {
    background: var(--border-color);
}

.pagination span.dots {
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
}

/* ---------------------------------
   Desktop Sidebar
-----------------------------------*/
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Categories List */
.category-list {
    list-style: none;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s;
}

.category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-list li:hover {
    color: var(--gold);
}

.cat-left i {
    color: var(--gold);
    margin-right: 10px;
    width: 16px;
}

.cat-count {
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 12px;
    font-size: 11px;
    padding: 2px 8px;
    font-weight: 600;
}

.cat-item.active-category .cat-icon {
    border-color: var(--gold);
    background-color: var(--bg-white);
    color: var(--gold);
    box-shadow: 0 6px 16px rgba(202, 143, 61, 0.2);
    transform: translateY(-3px);
}

.cat-item.active-category span {
    color: var(--gold);
}

.category-list li.active-category {
    color: var(--gold);
}

/* Popular Posts */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.popular-item:hover .popular-text h5 {
    color: var(--gold);
}

.popular-img {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    background: #e2e8f0;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-text h5 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 4px;
}

.popular-text span {
    font-size: 11px;
    color: var(--text-muted);
}



/* =========================================
   FOOTER (Updated padding for alignment)
========================================= */
.site-footer {
    background-color: var(--primary);
    color: var(--bg-white);
    /* Updated left/right to match global 5% spacing, keeping original vertical flow */
    padding: 60px var(--global-padding-x) 30px;
    position: relative;
    width: 100%;
}

.footer-content-wrapper {
    max-width: var(--global-max-width);
    /* Anchored to global max-width */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    width: 160px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-brand-bio {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 280px;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.footer-social-icons a {
    color: var(--bg-white);
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.footer-social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item i {
    color: var(--bg-white);
    margin-top: 3px;
    font-size: 14px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--accent);
}

.footer-made-with {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 25px;
}

.footer-made-with i {
    color: #ff4d4d;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.footer-bottom-bar {
    max-width: var(--global-max-width);
    margin: 50px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   MEDIA QUERIES (Responsive adjustments)
========================================= */
@media (min-width: 769px) and (max-width: 1024px) {

    .nav-links {
        gap: 20px;
    }

}

@media (max-width: 768px) {

    .nav-links,
    .navbar>.btn-contact {
        display: none;
    }

  .nav-link:hover::after {
      width: 0%;
  }

    .hamburger {
        display: block;
    }

    section {
        margin: 60px 0 0 0;
        padding: 0 5%;
    }



    .blog-hero-section {
        padding: 24px 5% 40px 5%;
    }

    .blog-hero-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }

    .blog-hero-content {
        order: 1;
        text-align: center;
        align-items: center;
    }

    .blog-hero-image-wrapper {
        order: 2;
        flex-direction: column;
    }

    .blog-hero-description {
        max-width: 100%;
        margin: 0 auto;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .blog-section {
        padding: 20px 15px;
        background: #FFF;
    }

    .blog-layout {
        display: block;
    }

    /* Mobile Top Header Area */
    .mobile-top-bar .search-box {
        width: 100%;
        margin-bottom: 30px;
        background: #F9FAFB;
        border: 1px solid #E5E7EB;
    }

    .explore-categories {
        text-align: center;
        margin-bottom: 35px;
    }

    .explore-categories h3 {
        font-family: var(--font-heading);
        font-size: 18px;
        color: var(--primary);
        margin-bottom: 20px;
    }

    .cat-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 25px;
    }

    .cat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .cat-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 18px;
        transition: all 0.3s;
    }

    .cat-item span {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-main);
    }

    .mobile-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .mobile-section-header h3 {
        font-family: var(--font-heading);
        font-size: 18px;
        color: var(--primary);
    }

    .view-all-link {
        font-size: 12px;
        color: var(--gold);
        font-weight: 600;
    }

    /* Mobile Post Cards Re-styling */

    .posts-column {
        gap: 20px;
    }

    .post-card {
        flex-direction: row;
        border-radius: 12px;
        box-shadow: none;
        gap: 15px;
        align-items: center;
        background: transparent;
        border: none;
        height: 100px;
    }

    .post-card:hover {
        transform: none;
        box-shadow: none;
        border: none;

    }

    .post-img {
        width: 90px;
        height: 100px;
        border-radius: 10px;
        overflow: hidden;
    }

    .post-content {
        padding: 0;
        justify-content: center;
    }

    .post-card {
        cursor: pointer;
        padding: 10px;
        margin: 0 -10px;
        border-radius: 14px;
        background: transparent;
        border: 1px solid transparent;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transform: translateY(0);
        transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
        -webkit-tap-highlight-color: transparent;
    }

    /* Hover & Active States */
    .post-card:hover,
    .post-card:active {
        background: #F9FAFB;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(4, 27, 62, 0.06);
        border-color: var(--border-color);
    }

    .post-card .post-img img {
        transition: transform 0.4s ease;
    }

    .post-card:hover .post-img img,
    .post-card:active .post-img img {
        transform: scale(1.05);
    }

    .post-card .post-title {
        transition: color 0.3s ease;
    }

    .post-card:hover .post-title,
    .post-card:active .post-title {
        color: var(--gold);
    }

    .category-tag {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .post-title {
        font-size: 16px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .post-excerpt {
        display: none;
    }

    .mobile-date {
        font-size: 11px;
        font-weight: 500;
        color: var(--text-muted);
    }

    /* View All Posts Button */
    .mobile-view-all-btn {
        margin-top: 30px;
    }

    .mobile-view-all-btn button {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--gold);
        background: transparent;
        color: var(--primary);
        font-weight: 600;
        border-radius: 25px;
        font-size: 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .mobile-view-all-btn button i {
        color: var(--gold);
    }

    .mobile-view-all-btn button:hover {
        background: #fdfaf6;
    }

    .cat-item {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .cat-item:active {
        transform: scale(0.94);
    }

    .cat-icon {
        background-color: var(--bg-white);
        box-shadow: 0 4px 12px rgba(4, 27, 62, 0.04);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .cat-item:hover .cat-icon,
    .cat-item:active span {
        border-color: var(--gold);
        background-color: var(--bg-white);
        color: var(--gold);
        box-shadow: 0 6px 16px rgba(202, 143, 61, 0.2);
        transform: translateY(-3px);
    }

    .cat-item:hover span,
    .cat-item:active span {
        color: var(--gold);
    }

    .site-footer {
        padding: 40px var(--global-padding-x) 20px;
    }

    .footer-content-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: left;
    }

    .footer-col-brand {
        align-items: flex-start;
    }

    .footer-brand-bio {
        max-width: 100%;
    }

    .footer-bottom-bar {
        margin-top: 35px;
        padding-top: 20px;
    }
}

@media (max-width: 992px) {
    .blog-hero-container {
        gap: 24px;
    }
}