/* Base & Resets */
:root {
    --bg-color: #050505;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.4);
    --glass-bg: rgba(25, 25, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none; /* Let clicks pass through */
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.pt-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

.gap {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.relative-z {
    position: relative;
    z-index: 10;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    margin: 6px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.8);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.underline {
    height: 3px;
    width: 60px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.greeting {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.name {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.typewriter-wrapper {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 30px;
    height: 40px;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
}

.about-card {
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 2;
}

.timeline-content {
    padding: 30px;
}

.timeline-date {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.timeline-content .company {
    color: #ccc;
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.2);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Innovations Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img {
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.project-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tags span {
    font-size: 0.8rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-content i {
    font-size: 1.8rem;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 15px;
    display: block;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #e0e0e0;
    font-style: italic;
}

.testimonial-footer {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.student-info h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge.rank {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
}

.badge.institute {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: var(--glass-border);
}

/* Philosophy */
.philosophy-section {
    position: relative;
    text-align: center;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 20px;
}

.manifesto {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 30px 0;
    font-style: italic;
}

.manifesto p {
    margin-bottom: 20px;
}

.author-signature {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-signature strong {
    font-size: 1.2rem;
    color: var(--accent);
}

.author-signature span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 5%;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left p {
    color: var(--text-secondary);
    margin-top: 10px;
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

/* Awards Section */
.award-showcase {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.award-content h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.media-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.media-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.media-tag:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 210, 255, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(4px);
    border-top: 1px solid var(--glass-border);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    html { scroll-padding-top: 80px; }
    .name { font-size: 3rem; }
    .typewriter-wrapper { font-size: 1.3rem; }
    .hero-desc { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hamburger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--glass-border);
        padding: 10px 0;
    }
    .nav-links.open { display: flex; }
    .nav-links li a {
        display: block;
        padding: 14px 5%;
        font-size: 1rem;
    }
    .nav-links li a:hover { background: rgba(255, 255, 255, 0.05); }
    .timeline::before { left: 15px; }
    .timeline-dot { left: 9px; }
    .timeline-item { padding-left: 45px; }
    .philosophy-content { padding: 40px 20px; }
    .manifesto { font-size: 1.1rem; }
    .section-header h2 { font-size: 2rem; }
    .glass-panel { padding: 25px; }
    .about-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { flex-direction: column; text-align: center; }
    .award-content h3 { font-size: 1.4rem; }
    .results-table th,
    .results-table td { padding: 10px 12px; font-size: 0.85rem; }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .name { font-size: 2.2rem; }
    .typewriter-wrapper { font-size: 1.1rem; height: 35px; }
    .hero-desc { font-size: 0.9rem; }
    .hero-desc br { display: none; }
    .greeting { font-size: 0.85rem; }
    .section-header h2 { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.95rem; }
    .glass-panel { padding: 20px; }
    .pt-page { padding-top: 80px; padding-bottom: 50px; }
    .btn { padding: 12px 22px; font-size: 0.9rem; }
    .testimonial-content p { font-size: 0.9rem; }
    .student-info h4 { font-size: 1rem; }
    .badge { font-size: 0.7rem; padding: 4px 8px; }
    .award-content h3 { font-size: 1.2rem; }
    .media-links { gap: 10px; }
    .media-tag { font-size: 0.8rem; padding: 6px 12px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gallery-item { height: 120px; }
    .philosophy-content { padding: 25px 15px; }
    .manifesto { font-size: 1rem; }
    .modal-content { width: 95%; max-height: 90vh; }
    .modal-header { padding: 15px; }
    .modal-header h3 { font-size: 1.1rem; }
    .modal-body { padding: 15px; }
    .modal-stats-bar { gap: 10px; padding: 15px; }
    .stat-value { font-size: 1.2rem; }
    .results-table th,
    .results-table td { padding: 8px 10px; font-size: 0.8rem; }
    .timeline-content { padding: 20px; }
    .timeline-content h3 { font-size: 1.2rem; }
    .footer-left .logo { font-size: 1.4rem; }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 1100px;
    max-height: 85vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    animation: modal-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 25px 35px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px 35px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-stats-bar {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 210, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 210, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-results-note {
    margin: 0 0 22px;
    padding: 14px 16px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.results-table-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    text-align: left;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.results-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--glass-border);
    color: #e0e0e0;
    font-size: 0.95rem;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.results-table .sno { width: 60px; color: var(--text-secondary); }
.results-table .name { font-weight: 500; }
.results-table .institute { color: var(--accent); opacity: 0.9; }
.results-table .rank { color: #ffd700; font-weight: 700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }

/* Results table — mobile: one card per student (rank + institute readable without horizontal scroll) */
@media (max-width: 768px) {
    .results-table-wrapper {
        overflow-x: visible;
        background: transparent;
        border: none;
    }

    .results-table {
        display: block;
        width: 100%;
    }

    .results-table thead {
        display: none;
    }

    .results-table tbody {
        display: block;
    }

    .results-table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 14px;
        padding: 16px 18px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 14px;
        border: 1px solid var(--glass-border);
    }

    .results-table tr:last-child {
        margin-bottom: 0;
    }

    .results-table tr:hover {
        background: rgba(0, 0, 0, 0.45);
    }

    .results-table td:nth-child(1) {
        display: none;
    }

    .results-table td {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px 12px;
        padding: 0;
        border-bottom: none;
        font-size: 0.9rem;
    }

    .results-table td:nth-child(2) {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding-bottom: 14px;
        margin-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.05rem;
        font-weight: 700;
    }

    .results-table td:nth-child(2)::before {
        content: "Student";
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-secondary);
    }

    .results-table td:nth-child(3)::before {
        content: "General Category rank";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        width: 100%;
        margin-bottom: 4px;
    }

    .results-table td:nth-child(3) {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .results-table td:nth-child(4)::before {
        content: "Institute admitted";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        width: 100%;
        margin-bottom: 4px;
    }

    .results-table td:nth-child(4) {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .results-table td:nth-child(5)::before {
        content: "Course";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        width: 100%;
        margin-bottom: 4px;
    }

    .results-table td:nth-child(5) {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

@media (max-width: 768px) {
    .modal-stats-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .modal-header h3 { font-size: 1.3rem; }
    .modal-header { padding: 20px; }
    .modal-body { padding: 20px; }
}
