/* ==========================================================
   1. THEME VARIABLES (PERMANENT DARK MODE)
   ========================================================== */
:root {
    color-scheme: dark;

    /* Brand Identity Colors */
    --brand-navy: #022e47;
    --brand-orange: #f68f1d;
    --brand-pink: #ea3b60;
    
    /* Dark Theme Mapping */
    --bg-body: #011a2a; 
    --text-main: #e6e6e6;
    --text-muted: rgba(255, 255, 255, 0.7);
    --nav-bg-scrolled: rgba(1, 26, 42, 0.95);
    --nav-mobile-bg: #022e47;
    --nav-mobile-shadow: rgba(0, 0, 0, 0.4);
    
    /* Footer Configuration */
    --footer-bg: var(--brand-navy);
    
    --vf-grad: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange) 65%, var(--brand-pink) 100%);
    
    --font-display: 'Bakbak One', cursive;
    --font-body: 'Work Sans', sans-serif;
}

/* ==========================================================
   2. GLOBAL STYLES & STRICT DARK BASE
   ========================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background-color: var(--bg-body) !important;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body) !important; 
    color: var(--text-main) !important;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-body);
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0;
}

.text-gradient {
    background: var(--vf-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- 3. AMBIENT BACKGROUND --- */
.ambient-light {
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100vh;
    z-index: -1; 
    pointer-events: none; 
    overflow: hidden;
    background: var(--bg-body);
}

.orb {
    position: absolute; 
    border-radius: 50%;
    filter: blur(80px); 
    opacity: 0.5;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 { width: clamp(300px, 100vw, 1440px); height: clamp(300px, 100vw, 1440px); background: var(--brand-orange); top: -10%; left: -10%; opacity: 0.15; }
.orb-2 { width: clamp(150px, 30vw, 450px); height: clamp(150px, 30vw, 450px); background: var(--brand-pink); bottom: 10%; right: -5%; animation-delay: -5s; opacity: 0.15; }
.orb-3 { width: clamp(250px, 60vw, 900px); height: clamp(250px, 60vw, 900px); background: #ff5500; top: 40%; left: 40%; animation-delay: -10s; opacity: 0.1; }

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -50px) scale(1.1); }
}

/* BRAND LOGO PERMANENT DARK ADAPTATION */
.brand-logo { 
    height: clamp(40px, 6vw, 70px); 
    width: auto; 
    object-fit: contain; 
}

.logo-dark { display: block !important; }

/* --- 7. HERO SECTION (SPLIT LAYOUT) --- */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    position: relative;
    padding-top: clamp(100px, 15vh, 180px); 
    padding-bottom: clamp(60px, 10vh, 100px);
    padding-inline: clamp(1rem, 5vw, 4rem);
    gap: clamp(2rem, 5vw, 4rem);
    z-index: 1; 
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem); 
    letter-spacing: -0.04em;
    margin-bottom: 1.2rem;
    line-height: 1.1 !important;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    max-width: 100%;
    width: min(500px, 100%);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2rem;
}

/* --- 8. BOXED EDITORIAL TOPICS --- */
.topics-box {
    width: 100%;
    max-width: 520px;
    background: rgba(2, 46, 71, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: clamp(20px, 4vw, 28px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.topics-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.topics-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.topics-box-header i { font-size: 1rem; }

.editorial-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin: 0;
}

.editorial-list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 14px) clamp(16px, 3vw, 24px); 
    justify-content: center;
}

@media (min-width: 992px) {
    .editorial-list { justify-content: flex-start; }
    .topics-box { margin: 0; }
}

.editorial-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(0.95rem, 2vw, 1rem);
    display: inline-flex;
    align-items: flex-start;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.editorial-link .num {
    font-size: 0.65rem;
    color: var(--brand-orange);
    font-weight: 700;
    margin-right: 6px;
    margin-top: 3px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.editorial-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--vf-grad);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.editorial-link:hover { color: var(--brand-orange); }
.editorial-link:hover .num { opacity: 1; }
.editorial-link:hover::after { width: 100%; }

/* --- 8. MODERN SEARCH PILL --- */
.search-box-modern {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: clamp(4px, 1vw, 6px);
    width: 100%;
    max-width: 450px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.search-box-modern:focus-within {
    border-color: var(--brand-orange);
    box-shadow: 0 10px 30px rgba(246, 143, 29, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

.search-icon-modern {
    padding-left: clamp(10px, 2vw, 15px);
    color: var(--text-muted);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.search-input-modern {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: clamp(8px, 1.5vw, 10px) clamp(10px, 2vw, 15px);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1rem);
    outline: none;
    width: 100%;
}

.search-input-modern::placeholder { color: var(--text-muted); opacity: 0.7; }

.search-btn-modern {
    background: var(--vf-grad);
    color: white;
    border: none;
    border-radius: 50px;
    padding: clamp(8px, 1.5vw, 10px) clamp(16px, 3vw, 24px);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.search-btn-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(246, 143, 29, 0.4);
}

/* --- 8.5 UNIFIED CATEGORY DOCK --- */
.category-dock {
    display: flex;
    background: rgba(0, 0, 0, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 12px;
    width: 100%; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
}

.category-dock::-webkit-scrollbar { display: none; }

.dock-btn {
    background: transparent;
    border: none;
    padding: 8px clamp(16px, 2.5vw, 22px);
    border-radius: 50px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.dock-btn:hover {
    color: var(--brand-orange);
    background: rgba(255, 255, 255, 0.1);
}

.dock-btn.active {
    background: var(--vf-grad);
    color: white;
    box-shadow: 0 4px 15px rgba(246, 143, 29, 0.3);
}

/* --- 9. INTERACTIVE ARTICLE FRAME --- */
.interactive-article-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    perspective: 1000px; 
}

.frame-glow {
    position: absolute;
    top: 10%; left: 10%; width: 80%; height: 80%;
    background: var(--vf-grad);
    filter: blur(45px);
    opacity: 0.4;
    z-index: 0;
    transition: opacity 0.5s;
    animation: pulse-glow 4s infinite alternate;
}

.article-frame {
    position: relative;
    z-index: 1;
    background: rgba(2, 46, 71, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease; 
    transform-style: preserve-3d;
    will-change: transform;
}

.interactive-article-wrapper:hover .article-frame { box-shadow: 0 30px 50px rgba(0,0,0,0.5); }
.interactive-article-wrapper:hover .frame-glow { opacity: 0.7; }

.frame-img-wrapper { 
    position: relative; 
    width: 100%; 
    height: clamp(200px, 30vh, 250px); 
    overflow: hidden; 
}

.frame-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}

.interactive-article-wrapper:hover .frame-img { transform: scale(1.08); }

.frame-tag {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0,0,0,0.6); color: white;
    backdrop-filter: blur(5px); font-size: 0.75rem;
    padding: 5px 12px; border-radius: 50px; text-transform: uppercase;
    font-weight: 600; letter-spacing: 1px;
}

.frame-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 280px; 
    padding: clamp(20px, 4vw, 24px);
}

.frame-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    line-height: 1.3;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.frame-desc {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
}

.frame-footer {
    display: flex;
    flex-direction: column;
    gap: 12px; 
    margin-top: auto; 
}

.frame-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.frame-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 24px;
    background: rgba(246, 143, 29, 0.08);
    border: 1px solid rgba(234, 59, 96, 0.25);
    transition: all 0.3s ease;
}

.frame-meta i {
    color: var(--brand-orange);
    font-size: 0.9rem;
}

.frame-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 40px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
    background: var(--vf-grad);
    box-shadow: 0 6px 14px rgba(246, 143, 29, 0.25);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.frame-btn:hover {
    box-shadow: 0 8px 20px rgba(234, 59, 96, 0.35);
    transform: translateY(-2px);
}

.frame-btn i { transition: transform 0.35s ease; }
.frame-btn:hover i { transform: translateX(4px); }

.frame-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 50%; height: 100%;
    background: rgba(255,255,255,0.25);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.frame-btn:hover::after { left: 120%; }

@keyframes pulse-glow { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }
.fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }

/* --- 10. BLOG/ARTICLE GRID LAYOUT --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: clamp(24px, 4vw, 30px);
    margin-top: clamp(24px, 4vw, 40px);
    margin-bottom: clamp(40px, 8vw, 60px);
    width: 100%;
}

@media (min-width: 768px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .post-card.big {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* --- 11. POST CARD STYLING --- */
.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(300px, 45vh, 380px);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
    transform-style: preserve-3d;
    width: 100%;
}

@media (min-width: 1024px) {
    .post-card.big { min-height: clamp(380px, 60vh, 500px); }
}

.post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}

.post-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.post-card:hover::before { transform: scale(1.08); }

.post-card:hover::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.2) 100%);
}

/* --- 12. CARD CONTENT STYLING --- */
.post-content {
    position: relative;
    z-index: 2;
    padding: clamp(20px, 4vw, 28px);
    color: #ffffff; 
    width: 100%;
}

.post-card.big .post-content { padding: clamp(24px, 5vw, 36px); }

.post-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.post-chip {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.arrow-badge {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.post-card:hover .arrow-badge {
    background: var(--brand-orange);
    color: white;
    transform: rotate(45deg); 
}

.post-title {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.post-card.big .post-title { font-size: clamp(1.5rem, 4vw, 2.4rem); }

.post-desc {
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card.big .post-desc {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    -webkit-line-clamp: 3;
}

@media (min-width: 768px) {
    .post-card.big .post-desc { max-width: 85%; }
}

.post-meta {
    display: flex;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
    flex-wrap: wrap;
}

.meta-pill {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}