/* ============================================================
   Aura Cladding Blog Page — Fixed Navbar + Footer Alignment
   Matches main site theme (navy + orange) + screenshot design
   ============================================================ */
:root {
    --navy: #051329;
    --navy-dark: #051329;
    --navy-light: #0a1f3f;
    --orange: #f37021;
    --orange-hover: #d95e1a;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: #fff;
}
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVBAR — fixed alignment (desktop + mobile)
   ============================================================ */
.navbar,
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container,
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    flex-shrink: 0;
}
.logo-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--orange), #ff9a4a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}
.logo-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
.logo-text span {
    font-size: 9px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Main horizontal nav — ALWAYS flex on desktop */
.nav-links,
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li,
.main-nav > li {
    position: relative;
    list-style: none;
}

.nav-links > li > a,
.main-nav > li > a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 6px 0;
    position: relative;
}

.nav-links > li > a:hover,
.main-nav > li > a:hover,
.nav-links > li > a.active,
.main-nav > li > a.active {
    color: var(--orange);
}

/* Active underline */
.nav-links > li > a.active::after,
.main-nav > li > a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

/* Dropdown — hidden by default, show on hover (desktop only) */
.dropdown-menu {
    display: none !important;          /* force hidden by default */
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1001;
    list-style: none;
    margin: 0;
}

/* Show dropdown only on hover of parent li (desktop) */
.nav-links > li.has-dropdown:hover > .dropdown-menu,
.main-nav > li.has-dropdown:hover > .dropdown-menu {
    display: block !important;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.dropdown-menu li a i {
    color: var(--orange);
    width: 18px;
    text-align: center;
    font-size: 14px;
}
.dropdown-menu li a:hover {
    background: #fff5ef;
    color: var(--orange);
}

/* Quote button */
.btn-quote,
.nav-btn {
    background: linear-gradient(135deg, var(--orange), #ff9a4a);
    color: #fff !important;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border: none;
    white-space: nowrap;
}
.btn-quote:hover,
.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(243,112,33,0.4);
}

/* Hamburger — hidden on desktop */
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.blog-hero {
    position: relative;
    min-height: 420px;
    background: var(--navy) center center / cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,19,41,0.92) 0%, rgba(5,19,41,0.65) 55%, rgba(5,19,41,0.35) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    padding: 60px 0;
}
.breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--orange); }
.blog-hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.blog-hero h1 span { color: var(--orange); }
.blog-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
    line-height: 1.7;
}
.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid rgba(255,255,255,0.45);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}
.btn-explore:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

/* ============================================================
   ARTICLES SECTION
   ============================================================ */
.articles-section { padding: 70px 0 80px; background: #fff; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--orange);
    margin-bottom: 8px;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.section-line {
    width: 50px;
    height: 3px;
    background: var(--orange);
    margin: 0 auto;
    border-radius: 2px;
}
.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--gray-500);
}
.sort-select {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sort-select a {
    color: var(--gray-500);
    font-size: 14px;
}
.sort-select a.active,
.sort-select a:hover {
    color: var(--orange);
    font-weight: 600;
}
.sort-select .sep { color: var(--gray-400); margin: 0 6px; }

/* Cards grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    box-shadow: 0 4px 20px rgba(11,28,46,0.06);
    transition: 0.25s;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(11,28,46,0.12);
}
.post-card.featured { border-color: rgba(243,112,33,0.3); }
.card-image {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}
.post-card:hover .card-image img { transform: scale(1.05); }
.cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--navy);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
}
.card-body { padding: 20px 22px 24px; }
.card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.card-meta i { margin-right: 4px; }
.card-body h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}
.card-body h3 a { color: var(--navy); }
.card-body h3 a:hover { color: var(--orange); }
.card-body p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}
.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.read-more:hover { gap: 10px; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: 0 12px;
}
.pagination a:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.pagination .current {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    font-weight: 700;
}
.pagination .dots { border: none; }

/* ============================================================
   CTA
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
    padding: 50px 48px;
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.cta-text h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}
.cta-text h2 span { color: var(--orange); }
.cta-text p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    max-width: 420px;
    margin: 0;
}
.cta-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}
.btn-primary {
    background: linear-gradient(135deg, var(--orange), #ff9a4a);
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline-light {
    border: 1.5px solid rgba(255,255,255,0.4);
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

.empty-blog {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-400);
}
.empty-blog i { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }

/* ============================================================
   FOOTER — fixed column alignment
   ============================================================ */
.footer,
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    align-items: start;
}

.footer-col {
    min-width: 0; /* prevent overflow */
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: none;
}

.footer-brand .logo,
.footer-logo.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-brand p,
.footer-col p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.65);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    display: inline-block;
}
.footer-links a:hover {
    color: var(--orange);
    padding-left: 4px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}
.contact-info i {
    color: var(--orange);
    margin-top: 3px;
    width: 16px;
    flex-shrink: 0;
}

.social-icons,
.socials {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.social-icons a,
.socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: 0.25s;
}
.social-icons a:hover,
.socials a:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-2px);
}

.map-placeholder {
    height: 110px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}
.footer-bottom p { margin: 0; }
.footer-bottom-links a {
    color: rgba(255,255,255,0.45);
    margin-left: 12px;
}
.footer-bottom-links a:hover { color: var(--orange); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .nav-links,
    .main-nav { gap: 18px; }
    .nav-links > li > a,
    .main-nav > li > a { font-size: 13px; }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    }
    .footer-grid .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    /* Hide desktop nav + quote, show hamburger */
    .nav-links,
    .main-nav {
        display: none;                 /* hidden until .active */
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 24px 24px;
        z-index: 999;
        box-shadow: 0 12px 30px rgba(0,0,0,0.25);
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    /* When hamburger opens the menu */
    .nav-links.active,
    .main-nav.active {
        display: flex !important;
    }

    .nav-links > li,
    .main-nav > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links > li > a,
    .main-nav > li > a {
        padding: 14px 0;
        width: 100%;
        font-size: 15px;
    }
    .nav-links > li > a.active::after,
    .main-nav > li > a.active::after {
        display: none;
    }

    /* Mobile dropdown — show only when parent has .dropdown-open */
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 0 8px 12px !important;
        min-width: 0;
        display: none !important;
    }
    .has-dropdown.dropdown-open > .dropdown-menu {
        display: block !important;
    }
    .dropdown-menu li a {
        color: rgba(255,255,255,0.7) !important;
        padding: 10px 0;
    }
    .dropdown-menu li a:hover {
        background: transparent;
        color: var(--orange) !important;
    }

    .btn-quote,
    .nav-btn {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }

    /* Content */
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 28px;
    }
    .cta-actions { justify-content: center; flex-wrap: wrap; }
    .blog-hero h1 { font-size: 32px; }
    .listing-meta {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
    .blog-hero { min-height: 360px; }
    .blog-hero h1 { font-size: 26px; }
    .cta-banner .cta-text h2 { font-size: 22px; }
    .btn-primary,
    .btn-outline-light {
        padding: 12px 18px;
        font-size: 13px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .footer-bottom-links a { margin: 0 8px; }
}
