/* ═══════════════════════════════════════════════════════════
       1. THEME VARIABLES
    ═══════════════════════════════════════════════════════════ */
:root {
    --clr-bg: #f8fafc;
    --clr-surface: #ffffff;
    --clr-card: #ffffff;
    --clr-text: #0f172a;
    --clr-text-soft: #475569;
    --clr-border: #e2e8f0;

    --clr-accent: #337dae;
    --clr-accent-light: #5ba4da;
    --gradient-primary: linear-gradient(135deg, #337dae 0%, #1e5276 100%);
    --gradient-hover: linear-gradient(135deg, #4d94c7 0%, #2a6996 100%);
    --gradient-text: linear-gradient(135deg, #337dae 0%, #1e5276 100%);

    --nav-bg: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 25px rgba(51, 125, 174, 0.2);

    --font-hero: "Outfit", sans-serif;
    --font-body: "Inter", sans-serif;
}

[data-theme="dark"] {
    --clr-bg: #0a1118;
    --clr-surface: #101822;
    --clr-card: #16212e;
    --clr-text: #f8fafc;
    --clr-text-soft: #94a3b8;
    --clr-border: rgba(255, 255, 255, 0.1);

    --gradient-text: linear-gradient(135deg, #5ba4da 0%, #337dae 100%);
    --nav-bg: rgba(10, 17, 24, 0.85);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(51, 125, 174, 0.4);
}

/* ═══════════════════════════════════════════════════════════
       2. RESET & BASE
    ═══════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-hero);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-text);
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-hero);
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(51, 125, 174, 0.6);
    color: white;
}
.btn-outline {
    background: transparent;
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-family: var(--font-hero);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-outline:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

/* Custom Grid Utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.row > * {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
}
@media (min-width: 992px) {
    .col-lg-6 {
        width: calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

/* ═══════════════════════════════════════════════════════════
       3. NAVBAR
    ═══════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--clr-border);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand i {
    font-size: 1.8rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-link {
    font-family: var(--font-hero);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-text-soft);
    transition: color 0.3s;
    position: relative;
}
.nav-link:hover {
    color: var(--clr-text);
}
.theme-toggle {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}
.theme-toggle:hover {
    background: var(--clr-card);
    transform: rotate(15deg);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text);
    font-size: 1.8rem;
    cursor: pointer;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--clr-bg);
    z-index: 2000;
    display: none;
    padding: 2rem;
    overflow-y: auto;
}
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}
.btn-close {
    background: none;
    border: none;
    color: var(--clr-text);
    font-size: 2rem;
    cursor: pointer;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}
.mobile-nav a {
    font-family: var(--font-hero);
    font-size: 1.5rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
       4. BANNER / HERO CATEGORY
    ═══════════════════════════════════════════════════════════ */
.cat-banner {
    position: relative;
    padding: 180px 0 100px;
    background: url("https://images.unsplash.com/photo-1476480862126-209bfaa8edc8?q=80&w=2070&auto=format&fit=crop")
        center/cover no-repeat;
    text-align: center;
    overflow: hidden;
}
.cat-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 17, 24, 0.6),
        var(--clr-bg)
    );
    z-index: 1;
}
.cat-banner-content {
    position: relative;
    z-index: 2;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background: rgba(51, 125, 174, 0.2);
    border: 1px solid var(--clr-accent-light);
    color: var(--clr-accent-light);
    border-radius: 50px;
    font-family: var(--font-hero);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}
.cat-banner h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    overflow-wrap: break-word;
}
.cat-banner .subtitle {
    font-size: 1.5rem;
    color: var(--clr-text-soft);
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 3px;
    font-weight: 600;
}

/* Quick Stats Bar */
.quick-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
    background: var(--clr-card);
    padding: 1.5rem 3rem;
    border-radius: 20px;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-md);
    width: max-content;
    max-width: 90%;
    margin-inline: auto;
}
.q-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.q-icon {
    width: 45px;
    height: 45px;
    background: rgba(51, 125, 174, 0.1);
    color: var(--clr-accent-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}
.q-info {
    text-align: left;
}
.q-val {
    font-family: var(--font-hero);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}
.q-lbl {
    font-size: 0.8rem;
    color: var(--clr-text-soft);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════
       5. MAIN DETAIL LAYOUT & TABS
    ═══════════════════════════════════════════════════════════ */
.detail-section {
    padding: 4rem 0 4rem;
    background: var(--clr-bg);
}
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}
.main-content {
    min-width: 0;
    width: 100%;
}

.content-block {
    margin-bottom: 3.5rem;
}
.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.content-block h2 i {
    color: var(--clr-accent-light);
    font-size: 1.8rem;
}
.content-block p {
    color: var(--clr-text-soft);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Tabs System */
.section-subtitle {
    color: var(--clr-accent-light);
    font-weight: 700;
    font-family: var(--font-hero);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}
.info-tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 1rem;
}
.info-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--clr-text-soft);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-hero);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.info-tab.active,
.info-tab:hover {
    background: rgba(51, 125, 174, 0.1);
    color: var(--clr-accent-light);
    border-color: rgba(51, 125, 174, 0.3);
}
.info-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}
.info-panel.active {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Content Styles */
.schedule-row {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.schedule-row > div:first-child {
    flex-shrink: 0;
    min-width: 65px;
}
.schedule-row:hover {
    transform: translateX(5px);
    border-color: rgba(51, 125, 174, 0.4);
}
.schedule-time {
    font-family: var(--font-hero);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-accent);
    line-height: 1;
}
.schedule-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-soft);
    text-transform: uppercase;
    margin-top: 0.3rem;
}
.schedule-title {
    font-family: var(--font-hero);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.schedule-desc {
    font-size: 0.9rem;
    color: var(--clr-text-soft);
}

.rule-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--clr-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--clr-border);
}
.rule-num {
    font-family: var(--font-hero);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--clr-accent-light);
    opacity: 0.4;
    line-height: 1;
    flex-shrink: 0;
}
.rule-content h6 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-hero);
}
.rule-content p {
    font-size: 0.95rem;
    color: var(--clr-text-soft);
    margin: 0;
}

.mandatory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.mandatory-item {
    background: var(--clr-card);
    padding: 1.2rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s;
}
.mandatory-item:hover {
    border-color: var(--clr-accent-light);
    transform: translateY(-2px);
}
.mandatory-item i {
    color: var(--clr-accent-light);
    font-size: 1.4rem;
}

.route-map-placeholder {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 2rem;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}
.elev-svg {
    width: 100%;
    min-width: 600px;
    height: auto;
}

/* ═══════════════════════════════════════════════════════════
       6. SIDEBAR (Registration Card)
    ═══════════════════════════════════════════════════════════ */
.sidebar {
    position: sticky;
    top: 100px;
}
.reg-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.reg-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.price-tag {
    font-family: var(--font-hero);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1;
    color: var(--clr-text);
}
.price-tag span {
    font-size: 1.2rem;
    color: var(--clr-text-soft);
    font-weight: 500;
}
.reg-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffab00;
    background: rgba(255, 171, 0, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.info-list {
    margin-bottom: 2rem;
    border-top: 1px solid var(--clr-border);
    padding-top: 1.5rem;
}
.info-list-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.info-list-item span:first-child {
    color: var(--clr-text-soft);
}
.info-list-item span:last-child {
    font-weight: 600;
    font-family: var(--font-hero);
    text-align: right;
}

/* ─── FOOTER ─── */
footer {
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    width: 180px;
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    display: block;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}
.footer-logo:hover {
    transform: translateY(-3px);
}
.footer-brand h3 {
    font-family: var(--font-hero);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-brand i {
    color: var(--clr-accent-light);
}
.footer-brand p {
    color: var(--clr-text-soft);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text);
    transition: all 0.3s;
}
.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}
.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.footer-links ul li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: var(--clr-text-soft);
    font-size: 0.95rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--clr-accent-light);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text-soft);
    font-size: 0.9rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════
       7. RESPONSIVE
    ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .sidebar {
        position: relative;
        top: 0;
        order: -1;
    }
    .cat-banner h1 {
        font-size: 3.5rem;
    }
    .quick-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 2rem;
        width: 90%;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .cat-banner h1 {
        font-size: 2.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
