/* ==========================================
   Godspeed (vgscutum) Design System
   Theme: Indigo / Violet — Virtual Key & Wallet
   ========================================== */
:root {
    --primary-rgb: 99, 102, 241;
    --primary: rgb(var(--primary-rgb));       /* Indigo 500 */
    --primary-hover: #4f46e5;                 /* Indigo 600 */
    --primary-light: rgba(var(--primary-rgb), 0.08);
    --accent: #a855f7;                        /* Violet accent */
    --dark: #0b0f19;
    --dark-muted: #1e293b;
    --light: #f8fafc;
    --light-accent: #f1f5f9;
    --border: #e2e8f0;
    --text: #334155;
    --text-light: #64748b;
    --success: #10b981;

    --container-width: 1200px;
    --header-height: 80px;

    --font-heading: 'Outfit', 'Noto Sans TC', system-ui, sans-serif;
    --font-body: 'Inter', 'Noto Sans TC', system-ui, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 25px 50px -12px rgba(11, 15, 25, 0.1);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-lg { padding: 14px 30px; font-size: 16px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4); }

.btn-secondary {
    background-color: #ffffff;
    color: var(--dark);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline {
    background: none;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: #ffffff; background-color: rgba(255,255,255,0.08); }

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: var(--dark);
}
.logo small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1px;
    line-height: 1.1;
}
.logo span { display: flex; flex-direction: column; line-height: 1.1; }

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; }
.nav-link:hover { color: var(--primary); }
.nav-cta { white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* ---------- Language Switcher ---------- */
.lang-switcher { position: relative; }

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-caret { font-size: 10px; opacity: 0.6; }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 6px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: var(--transition);
    z-index: 1200;
}
.lang-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.lang-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 10px 14px;
    background: none;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}
.lang-dropdown button:hover { background-color: var(--light-accent); color: var(--primary); }
.lang-dropdown button.active { background-color: var(--primary-light); color: var(--primary); font-weight: 700; }

/* Circular Flag Icons */
.flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
    position: relative;
}
.flag svg { width: 100%; height: 100%; display: block; }
.flag::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* ---------- Hero ---------- */
.hero {
    padding: calc(var(--header-height) + 70px) 24px 90px 24px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(var(--primary-rgb), 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(168, 85, 247, 0.08) 0%, transparent 55%),
        var(--light);
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust { margin-top: 40px; }
.hero-trust p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.trust-icons { display: flex; gap: 22px; flex-wrap: wrap; }
.trust-icons span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}
.trust-icons i { color: var(--primary); }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }

.phone-mockup {
    width: 290px;
    background-color: #0b0f19;
    border-radius: 40px;
    padding: 14px;
    box-shadow: var(--shadow-lg), 0 0 0 2px #1e293b;
}
.phone-screen {
    background: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
    border-radius: 28px;
    padding: 18px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}
.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.phone-time { color: #ffffff; font-size: 13px; font-weight: 600; }
.phone-speaker {
    width: 70px; height: 18px;
    background-color: #0b0f19;
    border-radius: 99px;
    border: 1px solid #1e293b;
}

.wallet-pass {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 16px;
    padding: 18px;
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.35);
}
.wallet-pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.wallet-brand { font-family: var(--font-heading); font-weight: 700; font-size: 14px; }
.wallet-type {
    font-size: 10px;
    font-weight: 700;
    background-color: rgba(255,255,255,0.18);
    padding: 3px 10px;
    border-radius: 99px;
}
.wallet-pass-body h3 { color: #ffffff; font-size: 19px; margin-bottom: 4px; }
.wallet-pass-body p { font-size: 11.5px; opacity: 0.8; margin-bottom: 16px; }

.wallet-pass-qr {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.qr-grid {
    display: grid;
    grid-template-columns: repeat(5, 12px);
    grid-auto-rows: 12px;
    gap: 3px;
}
.qr-grid span { background-color: #0b0f19; border-radius: 2px; }
.qr-grid span:nth-child(2n) { background-color: transparent; }
.qr-grid span:nth-child(7n) { background-color: #4f46e5; }

.wallet-pass-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    opacity: 0.85;
}

.phone-instruction {
    margin-top: auto;
    text-align: center;
    color: #94a3b8;
}
.pulse-icon {
    width: 46px; height: 46px;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    animation: pulse 2s infinite;
}
.phone-instruction p { font-size: 12px; }

/* ---------- Sections & Cards ---------- */
section { padding: 90px 24px; }

.section-header {
    max-width: 760px;
    margin: 0 auto 50px auto;
    text-align: center;
}
.section-title { font-size: 34px; margin-bottom: 16px; letter-spacing: -0.01em; }
.section-subtitle { font-size: 16px; color: var(--text-light); line-height: 1.7; }

.cards-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    gap: 24px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card, .type-card, .scene-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 26px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.feature-card:hover, .type-card:hover, .scene-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: var(--shadow-md);
}

.f-icon, .t-icon, .s-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.feature-card h3 { font-size: 19px; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

.type-card h4, .scene-card h4 { font-size: 16.5px; margin-bottom: 10px; }
.type-card p, .scene-card p { font-size: 13.5px; color: var(--text-light); line-height: 1.7; }

.type-link {
    margin-top: auto;
    padding-top: 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.type-link:hover { gap: 10px; }

.about { background-color: #ffffff; }
.wallet-types { background-color: var(--light); }
.platform { background-color: #ffffff; }
.scenes { background-color: var(--light); }

/* ---------- Cell Banner ---------- */
.cell-banner {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(var(--primary-rgb), 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
        var(--dark);
    text-align: center;
}
.cell-banner-inner { max-width: 820px; margin: 0 auto; }
.cell-banner h2 {
    color: #ffffff;
    font-size: 36px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}
.cell-banner p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}
.badge-light {
    background-color: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
    color: #c7d2fe;
}

/* ---------- Download ---------- */
.download {
    background:
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(168, 85, 247, 0.06)),
        #ffffff;
    text-align: center;
}
.download-inner { max-width: 720px; margin: 0 auto; }
.download h2 { font-size: 34px; margin-bottom: 18px; }
.download p { font-size: 15.5px; color: var(--text-light); line-height: 1.7; margin-bottom: 36px; }

.store-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--dark);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 12px;
    transition: var(--transition);
    text-align: left;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.store-btn i { font-size: 26px; }
.store-btn small { display: block; font-size: 10.5px; opacity: 0.7; }
.store-btn strong { font-family: var(--font-heading); font-size: 17px; }

/* ---------- Footer ---------- */
.footer {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 70px 24px 0 24px;
}
.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}
.logo-light { color: #ffffff; margin-bottom: 20px; }
.logo-light small { color: #64748b; }
.footer-brand p { font-size: 14px; line-height: 1.75; }

.footer-links h4 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 18px;
}
.footer-links a, .footer-links p {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.footer-links a:hover { color: #ffffff; }
.footer-links p i { margin-right: 8px; color: var(--primary); }

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    font-size: 13px;
    text-align: center;
}

/* ---------- i18n Font Stacks (JA / TH) ---------- */
body.lang-ja,
body.lang-ja h1, body.lang-ja h2, body.lang-ja h3,
body.lang-ja h4, body.lang-ja h5, body.lang-ja h6,
body.lang-ja .btn {
    font-family: 'Noto Sans JP', 'Inter', system-ui, sans-serif;
}

body.lang-th,
body.lang-th h1, body.lang-th h2, body.lang-th h3,
body.lang-th h4, body.lang-th h5, body.lang-th h6,
body.lang-th .btn {
    font-family: 'Noto Sans Thai', 'Inter', system-ui, sans-serif;
}
body.lang-th { line-height: 1.75; }

/* ---------- RWD ---------- */
@media (max-width: 1150px) {
    .header-container { position: relative; }
    .mobile-toggle { display: block; }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    .nav-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .nav-cta { width: 100%; }
}

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 50px; }
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .cards-3 { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 34px; }
    .section-title { font-size: 28px; }
    .cell-banner h2 { font-size: 28px; }
    .cards-4 { grid-template-columns: 1fr; }
    .download h2 { font-size: 28px; }
}

/* Hero official phone image (iphone-app-940.png) */
.hero-phone-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(11, 15, 25, 0.3));
}

@media (max-width: 640px) {
    .hero-phone-img {
        max-width: 300px;
    }
}

/* ==========================================
   Hero: full background image (hero-bg.jpg)
   dark overlay + light text, like the
   original vgscutum.com hero
   ========================================== */
.hero {
    background:
        linear-gradient(100deg, rgba(11, 15, 25, 0.68) 0%, rgba(11, 15, 25, 0.38) 55%, rgba(11, 15, 25, 0.1) 100%),
        url('img/hero-bg.jpg') center center / cover no-repeat;
}

.hero .hero-title {
    color: #ffffff;
}

.hero .text-gradient {
    background: linear-gradient(135deg, #a5b4fc, #d8b4fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .hero-description {
    color: #cbd5e1;
}

.hero .badge {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #c7d2fe;
}

.hero .hero-trust p {
    color: #94a3b8;
}

.hero .trust-icons span {
    color: #ffffff;
}

.hero .trust-icons i {
    color: #a5b4fc;
}

.hero .btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
}

.hero .hero-phone-img {
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}


/* Official Godspeed shield logo (gd.png) */
.logo-icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Cellbedell Keyless Ecosystem Banner (fbbg.png): image left, text right */
.brand-banner {
    max-width: var(--container-width);
    margin: 50px auto 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.brand-banner img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.brand-banner-info h3 {
    font-size: 24px;
    margin-bottom: 14px;
}

.brand-banner-info p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 18px;
}

@media (max-width: 1024px) {
    .brand-banner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .brand-banner img {
        max-width: 560px;
        margin: 0 auto;
    }
    .brand-banner-info {
        text-align: center;
    }
}

/* Footer CTA buttons (Cell-Nexus / Space) */
.footer-cta {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-cta .btn {
    padding: 13px 28px;
    font-size: 15px;
}

.btn-success {
    background-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    background-color: #059669;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-cbd {
    background-color: #1a98d7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(26, 152, 215, 0.3);
}

.btn-cbd:hover {
    transform: translateY(-2px);
    background-color: #127cb4;
    box-shadow: 0 8px 24px rgba(26, 152, 215, 0.4);
}

.btn-nestech {
    background-color: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.btn-nestech:hover {
    transform: translateY(-2px);
    background-color: #172554;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.4);
}

/* Footer CTA: keep all four buttons on one row */
.footer-cta {
    gap: 12px;
    flex-wrap: nowrap;
}

.footer-cta .btn {
    padding: 12px 16px;
    font-size: 13.5px;
    white-space: nowrap;
    flex-shrink: 1;
}

@media (max-width: 1100px) {
    .footer-cta {
        flex-wrap: wrap;
    }
}

/* Ecosystem Partners Grid */
.partners {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.partners-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner-item {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.partner-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.partner-item img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Corporate History (Timeline) & Latest News (Subpages)
   ========================================================== */

/* Subpage Hero Banner */
.subpage-hero {
    position: relative;
    padding: 120px 24px 80px 24px;
    background-color: #0d121f;
    background-image: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%), url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(13, 18, 31, 0.8) 0%, #0d121f 100%);
    z-index: 1;
}

.subpage-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.subpage-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.subpage-hero-desc {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Timeline Layout */
.timeline-section {
    padding: 80px 24px;
    background-color: var(--bg-alt);
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(99, 102, 241, 0.1) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 60px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-badge {
    position: absolute;
    top: 26px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -9px;
}

.timeline-content {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.timeline-year {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 10px;
    display: inline-block;
}

.timeline-milestone {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        margin-bottom: 40px;
    }
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        padding-left: 45px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 45px;
    }
    .timeline-item:nth-child(odd) .timeline-badge,
    .timeline-item:nth-child(even) .timeline-badge {
        left: 11px;
    }
}

/* News Layout */
.news-section {
    padding: 80px 24px;
    background-color: var(--bg-alt);
}

.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.news-card-img {
    height: 200px;
    background-color: #0d121f;
    background-image: radial-gradient(circle at center, rgba(99, 102, 241, 0.2) 0%, transparent 80%), url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    height: 68px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-card-btn {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.news-card-btn:hover {
    color: #4338ca;
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styling */
.news-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 18, 31, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.news-modal-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-modal.active .news-modal-wrapper {
    transform: scale(1);
}

.news-modal-header-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(13, 18, 31, 0.6);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.news-modal-close-btn:hover {
    background: rgba(13, 18, 31, 0.9);
    transform: rotate(90deg);
}

.news-modal-body {
    padding: 35px;
}

.news-modal-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.news-modal-date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.news-modal-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.news-modal-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================================
   Navigation Dropdown Menu
   ========================================================== */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
}

.nav-caret {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.nav-item-dropdown:hover .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.96) transparent;
    pointer-events: none;
}

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

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: left;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

@media (max-width: 1150px) {
    .nav-item-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-toggle {
        justify-content: center;
        width: 100%;
    }
    
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: var(--bg-alt);
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px 0 0 0;
        min-width: unset;
        width: 100%;
        box-shadow: none !important;
    }
    
    .nav-dropdown-menu a {
        padding: 8px 0;
        text-align: center;
    }
}
