/* ============================================================
   LUMINA CMS - MODERN MAGAZINE THEME
   Flagship High-Velocity Editorial Publication Theme
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-dark: #334155;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1240px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.08);
}

/* 1. Global Reset & Overflow Protection */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* 2. Top Announcement Bar */
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 12.5px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar a {
    color: #f8fafc;
    font-weight: 500;
}

.top-bar a:hover {
    color: #60a5fa;
}

/* 3. Site Navigation Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 50;
    transition: box-shadow 0.2s ease;
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.brand-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-decoration: none;
    line-height: 1.1;
}

.brand-logo img {
    height: 38px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
}

.brand-logo > span:first-of-type {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}


.brand-tagline {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.2px;
    margin-top: 4px;
    line-height: 1.2;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link svg {
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 60;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
}

.dropdown-link:hover {
    background: #f8fafc;
    color: var(--primary);
}

/* Header Action Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #475569;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.search-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    transition: background 0.15s ease, transform 0.1s ease;
    cursor: pointer;
    border: none;
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #334155;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* 4. Category Badges */
.badge-cat {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    line-height: 1;
    margin-bottom: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.badge-cat:hover {
    background: var(--primary);
    color: #ffffff;
}

/* 5. Section Containers & Headers */
.section-block {
    margin: 48px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 26px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 14px;
    position: relative;
}

.section-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text);
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-top: 6px;
    line-height: 1.5;
}

/* 6. Magazine Split Hero */
.mag-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 26px;
    margin: 28px 0 44px;
}

.mag-hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0f172a;
    min-height: 460px;
    box-shadow: var(--shadow-md);
}

.mag-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.mag-hero-main:hover img {
    transform: scale(1.03);
    opacity: 0.78;
}

.mag-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.6) 55%, transparent 100%);
    color: #ffffff;
}

.mag-hero-content h3 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin: 8px 0 10px;
    color: #ffffff;
}

.mag-hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mag-side-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    height: 220px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mag-side-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mag-side-img {
    width: 42%;
    height: 100%;
    object-fit: cover;
}

.mag-side-body {
    padding: 18px;
    width: 58%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 7. Homepage Slider */
.lumina-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 28px 0;
    background: #0f172a;
    box-shadow: var(--shadow-lg);
}

.slide-item {
    position: relative;
    height: 460px;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
}

/* 8. Responsive 3-Column Post Grid */
.grid-posts-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.post-card-thumb {
    height: 210px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-card-title {
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text);
    transition: color 0.15s ease;
}

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

.post-card-excerpt {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* 9. Trending List Layout */
.list-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-post-card {
    display: flex;
    gap: 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.list-post-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.list-post-thumb {
    width: 170px;
    height: 115px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.list-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-post-body {
    flex: 1;
}

.list-post-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

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

/* 10. Newsletter & CTA Sections */
.newsletter-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 50px 32px;
    text-align: center;
    margin: 50px 0;
    box-shadow: var(--shadow-lg);
}

.newsletter-box h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
}

.newsletter-box p {
    color: #94a3b8;
    max-width: 520px;
    margin: 0 auto 24px;
    font-size: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid #334155;
    background: #1e293b;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.newsletter-input:focus {
    border-color: var(--primary);
}

.newsletter-btn {
    padding: 13px 24px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
}

.cta-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 42px 28px;
    text-align: center;
    margin: 44px 0;
}

.cta-box h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.cta-box p {
    color: #3b82f6;
    max-width: 560px;
    margin: 0 auto 20px;
    font-size: 15px;
}

/* 11. Article Page Layout */
.article-layout {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    gap: 40px;
    margin: 40px 0;
}

.article-main {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-sm);
}

.article-header {
    margin-bottom: 28px;
}

.article-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin: 12px 0 16px;
    color: var(--text);
}

.article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13.5px;
}

.author-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text);
}

.author-pill img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.article-hero-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 24px 0 32px;
    max-height: 500px;
    width: 100%;
    object-fit: cover;
}

/* Dynamic Table of Contents */
.toc-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 22px;
    margin: 28px 0;
}

.toc-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text);
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 6px;
    font-size: 13.5px;
}

.toc-item.level-3 {
    padding-left: 20px;
}

.toc-item a {
    color: #334155;
}

.toc-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Typography Inside Article Content */
.article-content {
    font-size: 16.5px;
    line-height: 1.8;
    color: #1e293b;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 40px 0 16px;
    color: var(--text);
    scroll-margin-top: 96px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 12px;
    color: var(--text);
    scroll-margin-top: 96px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    background: #f8fafc;
    font-style: italic;
    color: #334155;
    margin: 28px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 22px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 26px 0;
    font-size: 14px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
}

.article-content th, .article-content td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.article-content th {
    background: #f8fafc;
    font-weight: 700;
}

.article-content ul, .article-content ol {
    margin: 0 0 24px 24px;
}

.article-content li {
    margin-bottom: 8px;
}

/* 12. Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    position: relative;
    color: var(--text);
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--primary);
}

/* Sidebar Newsletter Card */
.article-newsletter-card {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: 1px solid #334155;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #60a5fa;
    margin-bottom: 10px;
}

.newsletter-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.newsletter-card-text {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 18px;
}

.newsletter-card-input {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #ffffff;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.newsletter-card-input::placeholder {
    color: #64748b;
    opacity: 1;
}

.newsletter-card-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: #0b1120;
}

.newsletter-card-btn {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    transition: background 0.15s ease, transform 0.1s ease;
}

.newsletter-card-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.newsletter-card-btn:active {
    transform: scale(0.99);
}

.newsletter-privacy-note {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 10px;
    text-align: center;
}

/* Polished Advertisement Placement */
.ad-placement-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ad-placement-box:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ad-header-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.ad-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 3px;
}

.ad-tagline {
    color: #94a3b8;
}

.ad-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.ad-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.35;
}

.ad-copy {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
}

.ad-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

/* 13. Professional Multi-Column Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 64px 0 32px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 44px;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 16px;
}

/* 14. Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-modal.active {
    display: flex;
}

.search-modal-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   15. RESPONSIVE BREAKPOINTS (1440px, 1280px, 768px, 390px)
   ============================================================ */

/* Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .mag-hero {
        grid-template-columns: 1fr;
    }
    .grid-posts-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

/* Tablets (<= 768px) */
@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 12px 0;
    }

    .header-inner {
        height: auto;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        border-bottom: 2px solid var(--primary);
        gap: 14px;
        align-items: flex-start;
        z-index: 99;
    }

    .nav-menu.is-open {
        display: flex !important;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block;
        background: transparent;
    }

    .mobile-toggle {
        display: flex;
    }

    .grid-posts-3 {
        grid-template-columns: 1fr;
    }

    .list-post-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-post-thumb {
        width: 100%;
        height: 180px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .article-main {
        padding: 24px 20px;
    }

    .article-title {
        font-size: 26px;
    }

    .slide-item {
        height: 380px;
    }

    .mag-hero-main {
        min-height: 360px;
    }
}

/* Mobile Handhelds (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .brand-logo > span:first-of-type {
        font-size: 20px;
    }

    .btn-cta {
        padding: 8px 14px;
        font-size: 12.5px;
    }

    .slide-item {
        height: 300px;
    }

    .mag-hero-main {
        min-height: 300px;
    }

    .mag-hero-content {
        padding: 20px;
    }

    .mag-hero-content h3 {
        font-size: 20px;
    }
}
