/* Base and Variables */
:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --bg-light: #fafafa;
    --accent: #A855F7;
    --secondary-accent: #3B82F6;
    --gradient-primary: linear-gradient(135deg, #A855F7, #3B82F6);
    --accent-glow: rgba(168, 85, 247, 0.15);
    --border-color: #eeeeee;
    --font-en: 'Outfit', sans-serif;
    --font-ko: 'Noto Sans KR', sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.icon-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul, ol, li {
    list-style: none !important;
}

body {
    font-family: var(--font-en);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.ko-text {
    font-family: var(--font-ko);
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
}

h1 .ko-text {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 1rem;
}

h2 .ko-text {
    font-size: 1.1rem;
    font-weight: 400;
}

h3 .ko-text, h4 .ko-text {
    font-size: 0.95rem;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
    padding: 1.5rem 5%;
    color: white;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    box-shadow: 0 1px 15px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 5%;
    color: var(--text-primary);
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-item {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item .ko-text {
    font-size: 0.75rem;
    margin-top: 2px;
}

.nav-item:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-bg-crossfade {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background-color: #000;
}
.hero-bg-crossfade .bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    animation: fadeSlider 14s infinite linear;
}
.hero-bg-crossfade .bg-img-1 {
    background-image: url('../assets/uni_main.jpg');
    animation-delay: 0s;
}
.hero-bg-crossfade .bg-img-2 {
    background-image: url('../assets/uni_main01.jpg');
    animation-delay: -7s;
}

@keyframes fadeSlider {
    0% { opacity: 1; transform: scale(1.0); }
    40% { opacity: 1; transform: scale(1.02); }
    50% { opacity: 0; transform: scale(1.03); }
    90% { opacity: 0; transform: scale(1.0); }
    100% { opacity: 1; transform: scale(1.0); }
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #eeeeee;
    margin-bottom: 4rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-btn {
    padding: 1rem 2.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn .ko-text {
    color: inherit;
    font-size: 0.8rem;
    margin-top: 4px;
}

.cta-btn.primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.cta-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
}

.cta-btn.secondary:hover {
    background: var(--bg-light);
}

/* Sections General */
.section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.section-title.center {
    text-align: center;
}

.accent-line {
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    margin-bottom: 2.5rem;
    border-radius: 2px;
}

.accent-line.center {
    margin: 0 auto 3rem auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text .desc {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.about-text .desc .ko-text {
    margin-top: 1rem;
    font-size: 1rem;
}

.features {
    list-style: none;
}

.features li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.icon {
    font-size: 1.5rem;
}

.features h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.p-small {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(20%);
    transition: transform 0.8s ease, filter 0.8s ease;
}

.about-image:hover {
    transform: scale(1.02);
    filter: grayscale(0%);
}

/* Curriculum Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 35px var(--accent-glow);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Track Cards Section */
.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.track-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.track-card:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 35px var(--accent-glow);
    transform: translateY(-5px);
}

.track-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.track-icon-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.track-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.track-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.track-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.track-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.track-career {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: auto;
}

.track-career h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.track-career p {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Opportunities Section */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.opp-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.opp-num {
    position: absolute;
    top: -15px;
    right: 5px;
    font-size: 8rem;
    font-weight: 700;
    color: var(--bg-light);
    z-index: 0;
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.opp-card:hover .opp-num {
    color: var(--border-color);
    transform: scale(1.05) translateY(5px);
    opacity: 1;
}

.opp-content {
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.opp-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    padding-right: 2rem;
}

/* Gallery Marquee */
.overflow-hidden {
    overflow: hidden;
}

.desc.center {
    text-align: center;
}

.marquee {
    position: relative;
    width: 100vw;
    display: flex;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    padding-left: 1.5rem;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.marquee-track.reverse {
    animation: scroll-right 30s linear infinite;
}

.marquee-track img {
    height: 300px;
    width: auto;
    max-width: 450px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(15%);
    transition: filter 0.5s var(--transition), transform 0.5s var(--transition);
    cursor: pointer;
}

.marquee-track img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(calc(-50% - 0.75rem));
    }
    100% {
        transform: translateX(0);
    }
}

/* Process Section */
.process-desc {
    margin-bottom: 5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    max-width: 600px;
}

.timeline {
    position: relative;
    border-left: 1px solid var(--border-color);
    padding-left: 3rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.step-num {
    position: absolute;
    left: -4rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--bg-color);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--accent);
    font-size: 0.8rem;
    border-radius: 50%;
}

.step-month {
    width: 3.2rem;
    border-radius: 12px;
    left: -4.6rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-secondary);
}

/* Schedule Grid */
.schedule-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    margin-top: 3rem;
    padding-bottom: 1.5rem; /* Space for scrollbar */
}

/* Custom Horizontal Scrollbar */
.schedule-grid::-webkit-scrollbar {
    height: 6px;
}
.schedule-grid::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}
.schedule-grid::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 4px;
}

.schedule-card {
    background: transparent;
    border: none;
    padding: 1rem 0.25rem;
    border-radius: 0;
    text-align: center;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    width: calc(11.111% - 0.9rem); /* Perfectly fits 9 items on desktop */
    min-width: 90px; /* Enforces scrolling on smaller screens but smaller cards */
}

.schedule-card h4 {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 0;
    word-break: keep-all;
    font-weight: 600;
}

.schedule-card:hover {
    transform: translateY(-5px);
}

.step-badge {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 auto 0.8rem auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.schedule-card:hover .step-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    padding: 5rem 0 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-contact {
    text-align: right;
}

.footer-contact a {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.copyright {
    color: #999;
    font-size: 0.8rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-item details {
    width: 100%;
}

.faq-item summary {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Hide in Chrome/Safari */
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Partners Section */
.partners-group-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
}
.partner-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.partner-badge {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}
.partner-badge:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--bg-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

/* Scholarship Section */
.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
}
.scholarship-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.scholarship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--accent-glow);
}
.rank-1 {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 10px 25px var(--accent-glow);
}
.rank-2 {
    background: #f5f5f5;
    border-color: #d4d4d4;
}
.rank-3 {
    background: #fafafa;
    border-color: #ebebeb;
}
.rank-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.rank-1 .rank-badge {
    background: #e0e0e0;
    color: #111111;
    box-shadow: 0 4px 10px rgba(224,224,224,0.3);
}
.rank-2 .rank-badge {
    background: #666666;
    color: white;
}
.rank-3 .rank-badge {
    background: #999999;
    color: white;
}
.rank-title {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}
.rank-1 .rank-title { color: white; }
.rank-2 .rank-title { color: #333333; }
.rank-3 .rank-title { color: #555555; }
.rank-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}
.rank-1 .rank-value { color: white; }
.rank-2 .rank-value { color: #444444; }
.rank-3 .rank-value { color: #666666; }
.rank-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.rank-1 .rank-desc { color: #cccccc; }
.rank-2 .rank-desc { color: #555555; }
.rank-3 .rank-desc { color: #777777; }

.maintenance-box {
    background: white;
    border: 2px dashed var(--border-color);
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    margin: 0 auto 4rem auto;
    max-width: 600px;
}
.maintenance-box h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}
.maintenance-box p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.costs-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}
.costs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.cost-item {
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent);
}
.cost-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.cost-val {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.cost-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 2rem;
        margin-left: 0.5rem;
    }

    .step-num {
        left: -3rem;
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .footer-contact {
        text-align: left;
    }

    .marquee-track img {
        height: 200px;
    }
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 1rem;
}
.lang-switch a {
    color: var(--text-secondary);
    transition: color 0.3s;
}
.lang-switch a.active {
    color: var(--text-primary);
    font-weight: 700;
}
.lang-switch a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .lang-switch {
        display: none;
    }
}

/* Custom Table Styles */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.custom-table th, .custom-table td {
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.custom-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
}
.custom-table tr:last-child td {
    border-bottom: none;
}
.custom-table tbody tr:hover {
    background-color: var(--bg-light);
}

/* 4-Year Roadmap */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.roadmap-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}
.roadmap-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.roadmap-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.roadmap-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.roadmap-list {
    list-style: none;
}
.roadmap-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.roadmap-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Care Grid */
.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.care-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}
.care-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.care-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Scholarship Grid */
.scholarship-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.scholarship-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}
.scholarship-card:hover {
    transform: translateY(-5px);
}
.rank-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    background: var(--accent);
    color: white;
}
.rank-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    min-height: 3rem;
}
.rank-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.rank-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Faculty Gallery Expansion */
.faculty-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.faculty-small-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}
.faculty-small-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.faculty-small-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-bottom: 1rem;
    filter: grayscale(100%);
}
.faculty-small-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}
.faculty-small-card .role {
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8a2be2, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    letter-spacing: 0.5px;
}
.faculty-small-card .role .material-icons-outlined {
    font-size: 1.4rem;
    -webkit-text-fill-color: #8a2be2;
    transform: none;
}
.faculty-small-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .custom-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ── Elite Faculty Wrappers ── */
.elite-faculty-wrapper {
    background-color: #0a0a0a;
    padding: 6rem 0;
    margin: 0;
    width: 100%;
}
.elite-faculty-wrapper h2.section-title {
    color: white;
}
.elite-faculty-wrapper p.center {
    color: rgba(255,255,255,0.6);
}

/* ── Tier 1: Elite Faculty Accordion (Dark Theme) ── */
.kc-fa { display: flex; gap: 8px; height: 500px; max-height: 60vh; margin-top: 2rem; }
.kc-fa-panel { flex: 1; position: relative; overflow: hidden; border-radius: 16px; cursor: pointer; transition: flex 0.6s cubic-bezier(0.16,1,0.3,1); background: #0a0a0a; }
.kc-fa-panel:hover, .kc-fa-panel.active { flex: 5; }
.kc-fa-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; filter: grayscale(100%) brightness(0.78); transition: filter 0.6s, transform 0.6s; }
.kc-fa-panel:hover .kc-fa-bg, .kc-fa-panel.active .kc-fa-bg { filter: grayscale(0%) brightness(1); transform: scale(1.05); }
.kc-fa-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 45%, transparent 72%); pointer-events: none; }
.kc-fa-title { position: absolute; bottom: 28px; left: 18px; writing-mode: vertical-rl; text-orientation: mixed; font-size: 14px; letter-spacing: 0.12em; font-weight: 600; color: rgba(255,255,255,0.85); text-transform: uppercase; transition: opacity 0.3s; z-index: 3; }
.kc-fa-panel:hover .kc-fa-title, .kc-fa-panel.active .kc-fa-title { opacity: 0; }
.kc-fa-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 28px 30px; z-index: 2; opacity: 0; transform: translateY(10px); transition: all 0.45s cubic-bezier(0.16,1,0.3,1) 0.15s; pointer-events: none; text-align: left; }
.kc-fa-panel:hover .kc-fa-content, .kc-fa-panel.active .kc-fa-content { opacity: 1; transform: translateY(0); }
.kc-fa-role { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #C084FC; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 0.5rem; justify-content: flex-start; }
.kc-fa-name { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: white; letter-spacing: -0.015em; margin-bottom: 10px; text-align: left; }
.kc-fa-career { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6; max-width: 440px; margin: 0; text-align: left; }

@media (max-width: 768px) {
    .kc-fa { flex-direction: column; height: auto; min-height: 0; max-height: none; gap: 6px; }
    .kc-fa-panel { height: 68px; flex: none !important; transition: height 0.55s cubic-bezier(0.16,1,0.3,1); }
    .kc-fa-panel:hover, .kc-fa-panel.active { height: 360px; flex: none !important; }
    .kc-fa-title { writing-mode: horizontal-tb; bottom: 22px; left: 20px; font-size: 14px; }
    .kc-fa-content { padding: 20px 22px 24px; }
    .kc-fa-career { font-size: 13.5px; max-width: 100%; }
}

/* ── Tier 2: Elite Faculty Flip Cards (Dark Theme) ── */
.kc-fc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-top: 2.5rem; }
.kc-fc { perspective: 1200px; aspect-ratio: 3 / 4; cursor: pointer; border-radius: 18px; outline: none; }
.kc-fc-inner { position: relative; width: 100%; height: 100%; transition: transform 0.65s cubic-bezier(0.16,1,0.3,1); transform-style: preserve-3d; }
.kc-fc:hover .kc-fc-inner, .kc-fc.flipped .kc-fc-inner, .kc-fc:focus-visible .kc-fc-inner { transform: rotateY(180deg); }
.kc-fc-front, .kc-fc-back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 18px; overflow: hidden; -webkit-backface-visibility: hidden; }
.kc-fc-front { background-size: cover; background-position: center top; background-color: #0a0a0a; filter: grayscale(100%) brightness(0.82); transition: filter 0.55s; display: flex; flex-direction: column; justify-content: flex-end; }
.kc-fc:hover .kc-fc-front, .kc-fc.flipped .kc-fc-front { filter: grayscale(0%) brightness(1); }
.kc-fc-front-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.35) 45%, transparent 75%); }
.kc-fc-front-label { position: relative; padding: 20px; z-index: 2; text-align: left; }
.kc-fc-role { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #C084FC; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; margin-bottom: 6px; }
.kc-fc-name { font-size: 20px; font-weight: 800; color: white; letter-spacing: -0.01em; line-height: 1.2; margin:0; text-align: left; }
.kc-fc-back { background: linear-gradient(145deg, #1a0e2b 0%, #0a0a0a 65%); transform: rotateY(180deg); padding: 24px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.kc-fc-name-back { font-size: 18px; font-weight: 800; color: #C084FC; margin-bottom: 12px; letter-spacing: -0.01em; }
.kc-fc-career { font-size: 13.5px; line-height: 1.6; margin: 0; color: rgba(255,255,255,0.85); overflow-y: auto; max-height: 100%; padding-right: 4px; text-align: left; }
.kc-fc-career::-webkit-scrollbar { width: 3px; }
.kc-fc-career::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.4); border-radius: 3px; }

/* ── Elite Tracks Grid ── */
.elite-tracks-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
    text-align: left;
}
@media (min-width: 640px) { .elite-tracks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .elite-tracks-grid { grid-template-columns: repeat(3, 1fr); } }

.elite-track-card {
    background-color: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.elite-track-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}
.elite-track-icon {
    font-size: 2.25rem !important;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.elite-track-title {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0;
}
.elite-track-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}
.elite-track-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.elite-track-footer-icon {
    font-size: 1rem !important;
    color: rgba(168, 85, 247, 0.7);
    margin-top: 0.125rem;
}
.elite-track-lab-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 0.1rem 0;
}
.elite-track-lab-desc {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6875rem;
    line-height: 1.3;
    margin: 0;
}
.elite-track-span-center {
    /* To span 2 on medium screens but auto on others, optional. I'll just use a utility class if needed */
}
@media (min-width: 640px) and (max-width: 1023px) {
    .elite-track-card-center-sm { grid-column: span 2; }
}
