:root {
    --primary-color: #000000; /* Pure Black */
    --secondary-color: #ffffff; /* Pure White */
    --accent-color: #000000; /* Black Accent */
    --text-color: #111;
    --font-main: 'Bebas Neue', sans-serif;
    --font-sub: 'Oswald', sans-serif;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

*::-webkit-scrollbar { 
    display: none;  /* Chrome, Safari, Opera */
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-sub);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: -1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: transparent;
    box-shadow: none;
    border-bottom: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

header.header-white {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px; /* Adjust based on actual SVG dimensions */
    width: auto;
    filter: brightness(0) invert(1); /* White logo by default */
    transition: filter 0.3s ease;
    mix-blend-mode: difference;
}

header.header-white .logo img {
    filter: none; /* Black logo on white header */
    mix-blend-mode: normal;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-main);
    font-size: 1.3rem;
    color: #fff; /* White text by default */
    position: relative;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    mix-blend-mode: difference;
}

header.header-white .nav-links li a {
    color: var(--primary-color); /* Black text on white header */
    mix-blend-mode: normal;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2.5px;
    left: 0;
    background-color: #fff; /* White underline by default */
    transition: width 0.3s;
}

header.header-white .nav-links li a::after {
    background-color: var(--primary-color); /* Black underline on white header */
}

.nav-links li a:hover::after {
    width: 100%;
}

.btn-myeedu {
    background-color: #fff;
    color: #000 !important;
    padding: 10px 25px;
    border-radius: 0; /* Sharp corners */
    border: 2px solid #fff;
    font-weight: bold;
    mix-blend-mode: normal !important; /* Override difference blend mode */
}

.btn-myeedu:hover {
    background-color: transparent;
    color: #fff !important;
}

/* Scrolled state for MyEEDU button */
header.header-white .btn-myeedu {
    background-color: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
}

header.header-white .btn-myeedu:hover {
    background-color: #fff;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding-top: 180px; /* Increased padding to push content down by nav height (90px + 90px) */
    overflow: hidden;
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
    max-width: 65%;
}

.hero-text h1, 
.hero-text p, 
.hero-sub,
.hero-btn-desc {
    mix-blend-mode: difference;
    color: #fff;
}

.hero-action {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Removed .hero::before as video replaces it */

/* Removed .hero::before as video replaces it */
.hero::before {
    display: none;
}

.hero-text h1 {
    font-size: 6rem;
    margin-bottom: 15px;
    text-shadow: none;
    font-weight: 400;
    letter-spacing: -3px;
}

.hero-text p {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.hero-sub {
    font-size: 1.1rem !important;
    opacity: 0.9;
    margin-bottom: 40px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn-desc {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 300;
    max-width: 300px;
    line-height: 1.4;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: #fff;
    color: #000;
    font-family: var(--font-main);
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s;
    letter-spacing: -0.5px;
}

.btn-primary:hover {
    background-color: #000;
    color: #fff;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 4rem;
    text-align: left;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    /* border-left: 10px solid #000; */
    /* padding-left: 20px; */
    line-height: 1;
}

.section-title::after {
    display: none;
}

.section-desc {
    text-align: left;
    margin-bottom: 60px;
    font-size: 1.3rem;
    color: #444;
    max-width: 800px;
}

.bg-light {
    background-color: transparent;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    gap: 30px;
}

.stat-box {
    background: transparent;
    padding: 30px;
    border: none;
    /* border-left: 10px solid #000; */
    box-shadow: none;
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateX(10px);
}

.stat-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Curriculum Tabs */
.tabs {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 50px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 15px 40px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-main);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    color: #888;
    letter-spacing: -0.5px;
}

.tab-btn.active, .tab-btn:hover {
    background: transparent;
    color: #000;
    border-bottom: 3px solid #000;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-item {
    background: transparent;
    padding: 40px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.course-item:hover {
    border-color: transparent;
}

.course-item .code {
    font-size: 1rem;
    color: #000;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.course-item h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.course-item .credits {
    font-size: 1rem;
    color: #666;
    margin-top: auto;
    align-self: flex-end;
    font-weight: 500;
    text-transform: uppercase;
}

/* HSE Index Section */
.dark-section {
    background-color: #000;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.text-light {
    color: #fff !important;
    border-left-color: #fff;
}

.hsei-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 60px;
    text-align: left;
    align-items: center;
    position: relative;
    z-index: 2;
}

.big-stat {
    font-family: var(--font-main);
    font-size: 8rem;
    line-height: 0.9;
    color: #fff;
    letter-spacing: -3px;
}

.big-stat span {
    font-size: 2rem;
    color: #888;
    display: block;
    margin-top: 10px;
}

.hsei-details {
    text-align: left;
    background: transparent;
    padding: 0;
    border-radius: 0;
    /* border-left: 1px solid #333; */
    /* padding-left: 40px; */
}

.hsei-details h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 2rem;
}

.hsei-details ul li {
    margin-bottom: 15px;
    list-style: none;
    margin-left: 0;
    font-size: 1.2rem;
    color: #ccc;
}

.hsei-details ul li strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.partner-category h3 {
    /* border-bottom: 4px solid #000; */
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2rem;
}

.partner-category ul li {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
    font-weight: 300;
}

/* Footer */
footer {
    background-color: #000;
    color: #666;
    padding: 80px 0;
    text-align: left;
    font-weight: 300;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-logo {
    margin-bottom: 0;
}

.footer-logo h2 {
    color: #fff;
    font-size: 4rem;
    line-height: 1;
}

.footer-logo p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.benefit-item {
    margin-bottom: 40px;
    border-left: 2px solid #333;
    padding-left: 20px;
}

.benefit-item h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefit-item p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff; /* White by default for transparent header */
    margin: 6px 0;
    transition: 0.3s;
    mix-blend-mode: difference;
}

header.header-white .hamburger span {
    background-color: #000; /* Black for white header */
    mix-blend-mode: normal;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .logo {
        position: relative;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh; /* Fallback for browsers that don't support dvh */
        height: 100dvh; /* Dynamic Viewport Height for mobile browsers */
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1001;
        gap: 30px;
        padding: 20px; /* Add padding to prevent content touching edges */
        overflow-y: auto; /* Allow scrolling if content is too tall */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        color: #000;
        font-size: 2rem;
        mix-blend-mode: normal;
    }

    .nav-links li a::after {
        background-color: #000;
    }

    /* Menu Open States */
    header.menu-open .logo img {
        filter: none;
        mix-blend-mode: normal;
    }

    header.menu-open .hamburger span {
        background-color: #000;
    }

    .hero-content h1 {
        font-size: 4rem;
    }
    
    .about-grid, .hsei-grid, .footer-content {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    
    .section-title {
        font-size: 3rem;
    }

    .hero {
        height: 100dvh; /* Use full viewport height on mobile */
        padding-top: 100px; /* Reduce top padding on mobile */
        align-items: flex-start; /* Align content to top */
    }

    .hero-layout {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-bottom: 20px;
        height: 100%; /* Ensure layout takes full height */
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-action {
        align-items: flex-start;
        width: 100%;
    }

    .hero-text p {
        font-size: 1.1rem;
        white-space: normal; /* Ensure text wraps */
        word-wrap: break-word;
    }

    .hero-sub {
        font-size: 0.9rem !important;
        white-space: normal;
        word-wrap: break-word;
    }

    .btn-primary {
        padding: 10px 30px; /* Reduced vertical padding */
        font-size: 1.1rem;
    }

    .btn-primary span {
        display: none; /* Hide arrow on mobile */
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Partner Logos */
.partner-category {
    margin-bottom: 60px;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.partner-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    fill: #888;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.partner-logo:hover {
    fill: #000;
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo text {
    font-family: var(--font-main);
    letter-spacing: -1px;
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}



.event-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    font-family: var(--font-main);
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

.event-title {
    font-family: var(--font-main);
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.event-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Marquee Styles */
.marquee-container {
    overflow: hidden;
    width: 100%;
    padding: 40px 0;
    background: #fff;
}

.marquee-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.marquee-content.reverse {
    animation-direction: reverse;
}

.marquee-content img {
    /* height: 80px; Removed to use original size */
    margin: 0 40px;
    /* filter: brightness(0.7); Removed to make brightness(1) default */
    transition: filter 0.3s ease;
    object-fit: contain;
    user-select: none; /* Prevent selection */
    -webkit-user-drag: none; /* Prevent dragging */
    transform: scale(0.75);
}

/* Hover effect removed as requested */

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer Styles */
footer {
    background-color: #000;
    color: #fff;
    padding: 80px 0 40px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: var(--font-main);
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: -0.5px;
}

.footer-details p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #ccc;
}

.footer-details a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-details a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: "↗";
    margin-right: 8px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-logo-col {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: left;
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-logo-col {
        justify-content: flex-start;
    }

    /* Mobile Marquee Spacing */
    .marquee-content img {
        margin: 0 15px;
    }
}

/* =========================================
   MyEEDU Dashboard Styles
   ========================================= */

/* SSO Login Screen */
.sso-container {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
}

.sso-box {
    background: #fff;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 90%;
    border: 1px solid #eee;
}

.sso-logo {
    height: 60px;
    margin-bottom: 30px;
    filter: none; /* Ensure black logo */
}

.sso-box h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.sso-box p {
    color: #666;
    margin-bottom: 30px;
}

.sso-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
}

.sso-help {
    margin-top: 20px;
    font-size: 0.8rem !important;
    color: #999 !important;
}

.back-link {
    display: block;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
    color: #000;
}

/* Dashboard Layout */
.dashboard-body {
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.dashboard-container {
    display: block; /* Changed from grid to block to support fixed sidebar properly */
    min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
    background-color: #fff;
    border-right: 1px solid #eee;
    padding: 30px;
    position: fixed;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    top: 0;
    left: 0;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 50px;
}

.sidebar-header img {
    height: 40px;
}

.nav-group {
    margin-bottom: 40px;
}

.nav-group h3 {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.sidebar-nav ul li {
    margin-bottom: 10px;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #444;
    font-family: var(--font-sub);
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

.sidebar-nav ul li.active a,
.sidebar-nav ul li a:hover {
    background-color: #f0f0f0;
    color: #000;
    font-weight: 500;
}

.course-dot {
    width: 8px;
    height: 8px;
    background-color: #000;
    border-radius: 50%;
    display: inline-block;
}

/* Main Content */
.dash-main {
    margin-left: 260px; /* Offset for fixed sidebar */
    padding: 40px;
    width: auto; /* Let it take remaining space */
    max-width: 100%;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dash-menu-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
    padding: 5px;
}

.header-title h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.header-title p {
    color: #666;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-bell {
    position: relative;
    font-size: 1.2rem;
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #000;
    color: #fff;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 1.2rem;
}

/* Dashboard Grid */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* Use 12-column grid for better control */
    gap: 30px; /* Increased gap */
    padding-bottom: 50px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Changed for D3 layout */
    gap: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    grid-column: span 4;
    height: 160px; /* Fixed height for consistency */
}

.d3-card {
    position: relative;
    overflow: hidden;
}

.stat-content {
    flex: 1;
}

.stat-content h4 {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.stat-subtext {
    font-size: 0.9rem;
    color: #888;
    font-weight: 600;
}

.chart-container {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* D3 Specific Styles */
.chart-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    fill: #888;
}

.chart-label {
    font-family: sans-serif;
    font-size: 0.7rem;
    fill: #888;
}

.bar-label {
    font-family: sans-serif;
    font-size: 0.7rem;
    fill: #666;
}

.stat-detail {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 2px;
}

.stat-icon {
    width: 60px; /* Larger icon area */
    height: 60px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    color: #333;
}

.stat-info h4 {
    font-size: 1rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-main);
    font-size: 2.5rem; /* Larger text */
    line-height: 1;
}

.dash-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    grid-column: span 4; /* Default to 1/3 width */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.calendar-controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    margin: 0; /* Reset margin from .btn-text */
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-controls button:hover {
    color: #000;
}

.large-card {
    grid-column: span 8; /* 2/3 width */
}

.full-width {
    grid-column: span 12; /* Full width */
}

/* Responsive Dashboard */
@media (max-width: 1400px) {
    .stat-card {
        grid-column: span 6; /* 2 cards per row */
    }
    
    .dash-card {
        grid-column: span 6; /* Half width */
    }

    .large-card {
        grid-column: span 12; /* Full width on smaller screens */
    }
}

@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        animation: slideIn 0.3s ease;
    }

    .dash-sidebar.active {
        display: block;
    }

    .dash-menu-btn {
        display: block;
    }

    .dash-main {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .dash-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .stat-card, .dash-card, .large-card, .full-width {
        grid-column: auto;
        width: 100%;
    }

    .dash-page-title {
        font-size: 0 !important;
    }

    .dash-page-title::before {
        content: "MYEEDU";
        font-size: 2.5rem;
        display: block;
    }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Course View Styles */
.course-view {
    animation: fadeIn 0.3s ease;
}

.course-header-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.btn-text {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-family: var(--font-sub);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-text:hover {
    color: #000;
    text-decoration: underline;
}

.course-header-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

.course-sidebar ul {
    list-style: none;
}

.course-sidebar ul li {
    margin-bottom: 5px;
}

.course-sidebar ul li a {
    display: block;
    padding: 10px 15px;
    color: #666; /* Default Canvas-like link color */
    border-radius: 5px;
    font-size: 0.95rem;
}

.course-sidebar ul li.active a,
.course-sidebar ul li a:hover {
    background-color: #fff;
    color: #000;
    font-weight: 500;
}

/* New Styles for Pages and Files */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.content-table th, .content-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.content-table th {
    font-weight: 600;
    color: #444;
    background-color: #f9f9f9;
}

.content-table tr:hover {
    background-color: #fcfcfc;
}

.file-icon {
    margin-right: 10px;
    color: #666;
}

.item-link {
    color: #2d3b45;
    text-decoration: none;
    font-weight: 500;
}

.item-link:hover {
    text-decoration: underline;
    color: #000;
}

.course-content-area {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    min-height: 500px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h3 {
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #444;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
}

.act-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.act-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #000; /* Link color */
    cursor: pointer;
}

.act-details h4:hover {
    text-decoration: underline;
}

.act-details p {
    font-size: 0.85rem;
    color: #888;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.module-item:hover {
    background-color: #f5f5f5;
}

.module-item i {
    color: #666;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .course-layout {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        margin-bottom: 20px;
    }

    .course-sidebar ul {
        display: flex;
        gap: 10px;
    }

    .course-sidebar ul li a {
        white-space: nowrap;
    }
}

/* Dashboard Table Styles */
.dash-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}

.dash-table th {
    text-align: left;
    padding: 15px 20px;
    color: #888;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
}

.dash-table td {
    padding: 20px;
    border-bottom: 1px solid #f9f9f9;
    color: #333;
    font-size: 0.95rem;
    vertical-align: middle;
}

.dash-table tr:last-child td {
    border-bottom: none;
}

.dash-table tr:hover td {
    background-color: #fafafa;
}

/* Status Badges */
.status {
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
}

/* Schedule Styles */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background-color: #eee;
    border: 1px solid #eee;
    margin-top: 20px;
}

.day-col {
    background-color: #fff;
    min-height: 400px;
}

.day-header {
    background-color: #f9f9f9;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.day-content {
    padding: 10px;
}

.schedule-item {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    transition: background-color 0.2s;
    cursor: pointer;
}

.schedule-item:hover {
    background-color: #f0f0f0;
}

.schedule-item .time {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.schedule-item .subject {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.schedule-item .room {
    display: block;
    color: #888;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .day-col {
        min-height: auto;
        border-bottom: 1px solid #eee;
    }
}
