﻿:root {
    --bg: #f3f7ff;
    --surface: #ffffff;
    --surface-soft: #eef4ff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #dbe7ff;
    --primary: #2f6df6;
    --primary-strong: #1d4ed8;
    --chip: #e8f0ff;
    --shadow-sm: 0 8px 24px rgba(26, 42, 81, 0.08);
    --shadow-md: 0 22px 45px rgba(26, 42, 81, 0.14);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 10% 0%, #ecf3ff 0%, transparent 42%),
        radial-gradient(circle at 95% 10%, #dfe9ff 0%, transparent 32%),
        var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.page-bg-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(8px);
}

.shape-1 {
    width: 320px;
    height: 320px;
    background: rgba(47, 109, 246, 0.12);
    top: -120px;
    right: -110px;
}

.shape-2 {
    width: 260px;
    height: 260px;
    background: rgba(59, 130, 246, 0.1);
    bottom: 50px;
    left: -90px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(243, 247, 255, 0.82);
    border-bottom: 1px solid rgba(219, 231, 255, 0.9);
}

.topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-strong);
    font-size: 1.15rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(47, 109, 246, 0.18);
}

.back-btn {
    text-decoration: none;
    color: var(--primary-strong);
    background: #eef4ff;
    border: 1px solid #ccddff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.back-btn:hover {
    transform: translateY(-1px);
    background: #e3eeff;
    box-shadow: var(--shadow-sm);
}

main {
    position: relative;
    z-index: 1;
}

.syllabus-hero {
    max-width: 1120px;
    margin: 34px auto 0;
    padding: 48px 20px 24px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--chip);
    color: var(--primary-strong);
    border: 1px solid #ccddff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.syllabus-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 760px;
    margin: 0 auto;
    color: #0a1330;
}

.syllabus-hero p {
    margin: 14px auto 0;
    max-width: 700px;
    color: var(--muted);
    font-size: clamp(0.98rem, 2vw, 1.08rem);
    line-height: 1.6;
}

.regulation-selector {
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.regulation-selector label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.96rem;
}

.regulation-dropdown {
    padding: 10px 16px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.regulation-dropdown:hover {
    border-color: var(--primary-strong);
    box-shadow: 0 4px 12px rgba(47, 109, 246, 0.2);
}

.regulation-dropdown:focus {
    outline: none;
    border-color: var(--primary-strong);
    box-shadow: 0 4px 16px rgba(47, 109, 246, 0.3);
}

.regulation-dropdown option {
    background: var(--surface);
    color: var(--text);
    padding: 10px;
}

.syllabus-container {
    max-width: 1120px;
    margin: 18px auto 0;
    padding: 0 20px;
}

.section-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.section-title h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    color: #0f1b3d;
}

.section-title p {
    color: var(--muted);
    font-size: 0.96rem;
}

.dept-syllabus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.syllabus-card {
    background: linear-gradient(175deg, var(--surface) 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    min-height: 220px;
}

.syllabus-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #bdd3ff;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: var(--surface-soft);
    color: var(--primary);
}

.dept-code {
    background: var(--chip);
    border: 1px solid #ccddff;
    color: var(--primary-strong);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.syllabus-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.12rem;
    line-height: 1.35;
    color: #12204a;
}

.syllabus-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.card-link {
    margin-top: auto;
    color: var(--primary-strong);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.reg-badge {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    background: var(--chip);
    border: 1px solid #ccddff;
    color: var(--primary-strong);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.cse-card .icon-wrap { color: #2563eb; }
.ece-card .icon-wrap { color: #7c3aed; }
.eee-card .icon-wrap { color: #0284c7; }
.mech-card .icon-wrap { color: #ea580c; }
.civil-card .icon-wrap { color: #0f766e; }
.it-card .icon-wrap { color: #4338ca; }

.quick-links-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.quick-link-card {
    text-decoration: none;
    color: inherit;
    background: linear-gradient(165deg, #ffffff 0%, #f2f7ff 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-strong);
    background: var(--chip);
    border: 1px solid #ccddff;
    font-size: 1.3rem;
}

.quick-link-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.04rem;
    color: #12204a;
    margin-bottom: 4px;
}

.quick-link-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

footer {
    margin-top: 52px;
    background: #0f1f46;
    color: #dfe9ff;
    padding: 40px 20px 16px;
}

.footer-content {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.footer-section h4 {
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

.footer-section p {
    color: #c5d4ff;
    line-height: 1.6;
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #d8e4ff;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1120px;
    margin: 30px auto 0;
    border-top: 1px solid rgba(189, 209, 255, 0.25);
    padding-top: 14px;
    text-align: center;
    color: #c5d4ff;
    font-size: 0.9rem;
}

.footer-bottom .fa-heart {
    color: #ff7a98;
}

@media (max-width: 768px) {
    .topbar-inner {
        padding: 12px 16px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-img {
        width: 34px;
        height: 34px;
    }

    .back-btn {
        font-size: 0.84rem;
        padding: 8px 12px;
    }

    .syllabus-hero {
        padding: 34px 16px 18px;
    }

    .syllabus-container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .syllabus-card {
        min-height: auto;
    }

    .quick-link-card {
        align-items: flex-start;
    }
}

body.dark-mode,
html.dark body {
    --bg: #060b18;
    --surface: #101c34;
    --surface-soft: #0f2a52;
    --text: #dce8ff;
    --muted: #9db0d4;
    --line: #223455;
    --chip: #162d56;
    --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.26);
    --shadow-md: 0 22px 46px rgba(0, 0, 0, 0.35);
    background: #060b18;
}

body.dark-mode .topbar,
html.dark .topbar {
    background: rgba(6, 11, 24, 0.88);
    border-bottom-color: rgba(34, 52, 85, 0.8);
}

body.dark-mode .page-bg-shape,
html.dark .page-bg-shape {
    filter: blur(10px);
}

body.dark-mode .shape-1,
html.dark .shape-1 {
    background: rgba(28, 48, 95, 0.35);
}

body.dark-mode .shape-2,
html.dark .shape-2 {
    background: rgba(20, 36, 72, 0.42);
}

body.dark-mode .syllabus-hero h1,
body.dark-mode .section-title h2,
body.dark-mode .syllabus-card h3,
body.dark-mode .quick-link-card h3,
body.dark-mode .logo,
html.dark .syllabus-hero h1,
html.dark .section-title h2,
html.dark .syllabus-card h3,
html.dark .quick-link-card h3,
html.dark .logo {
    color: #e7efff;
}

body.dark-mode .syllabus-card,
body.dark-mode .quick-link-card,
html.dark .syllabus-card,
html.dark .quick-link-card {
    background: #0e1a31;
    border-color: #2a3f69;
}

body.dark-mode .hero-badge,
body.dark-mode .dept-code,
body.dark-mode .icon-wrap,
body.dark-mode .card-icon,
body.dark-mode .back-btn,
body.dark-mode .reg-badge,
html.dark .hero-badge,
html.dark .dept-code,
html.dark .icon-wrap,
html.dark .card-icon,
html.dark .back-btn,
html.dark .reg-badge {
    background: #142a50;
    border-color: #274071;
    color: #bfd2ff;
}

body.dark-mode .syllabus-card:hover,
body.dark-mode .quick-link-card:hover,
html.dark .syllabus-card:hover,
html.dark .quick-link-card:hover {
    border-color: #3c5f9f;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

body.dark-mode .syllabus-hero p,
body.dark-mode .section-title p,
body.dark-mode .quick-link-card p,
html.dark .syllabus-hero p,
html.dark .section-title p,
html.dark .quick-link-card p {
    color: #9db0d4;
}

body.dark-mode .regulation-selector label,
html.dark .regulation-selector label {
    color: #dce8ff;
}

body.dark-mode .regulation-dropdown,
html.dark .regulation-dropdown {
    background: #0e1a31;
    color: #dce8ff;
    border-color: #4a7adb;
}

body.dark-mode .regulation-dropdown:hover,
html.dark .regulation-dropdown:hover {
    border-color: #6b95ff;
    box-shadow: 0 4px 16px rgba(47, 109, 246, 0.3);
}

body.dark-mode .regulation-dropdown:focus,
html.dark .regulation-dropdown:focus {
    border-color: #6b95ff;
    box-shadow: 0 4px 20px rgba(47, 109, 246, 0.4);
}

body.dark-mode .regulation-dropdown option,
html.dark .regulation-dropdown option {
    background: #0e1a31;
    color: #dce8ff;
}

body.dark-mode footer,
html.dark footer {
    background: #070f22;
}
/* Footer link styling to match homepage */
.footer-section ul li a {
    color: var(--muted-foreground, var(--muted, #64748b));
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--primary, #3b82f6);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-social .social-links-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary, #3b82f6);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-social .social-link i {
    font-size: 18px;
}

.footer-social .fa-instagram {
    color: #e1306c;
}

.footer-social .fa-youtube {
    color: #ff0000;
}

.footer-social .social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.15);
}

