:root {
            --primary: #00A6C8;
            --secondary: #261D62;
            --accent: #EA2230;
            --success: #4CAF50;
            --warning: #FF9800;
            --danger: #F44336;
            --light: #f8f9fa;
            --dark: #261D62;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --border-radius: 12px;
            --box-shadow: 0 8px 30px rgba(0,0,0,0.08);
            --transition: all 0.3s ease;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(to bottom, #00a7c852 0%, #ffffff 50%);
            line-height: 1.6;
            background-image: none;
            min-height: 100vh;
        }
        
        #main-page {
            background: linear-gradient(to bottom, #00a7c852 0%, #ffffff 50%);
            min-height: 100vh;
        }
        
        /* Header Styles */
        header {
            background: linear-gradient(to bottom, #415d6352 100%, #ffffff 10%);
            padding: 1rem 2rem;
            box-shadow: 0 4px 24px rgba(38, 29, 98, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .logo {
            font-size: 1.75rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            transition: transform 0.2s ease;
            cursor: pointer;
            color: inherit;
        }
        
        .logo:visited,
        .logo:active,
        .logo:focus {
            color: inherit;
            text-decoration: none;
        }
        
        .logo:hover {
            transform: translateY(-1px);
        }
        
        .logo-icon {
            height: 2.25rem;
            width: auto;
            display: block;
            transition: transform 0.3s ease;
        }
        
        .logo:hover .logo-icon {
            transform: scale(1.05);
        }
        
        .logo-text {
            display: inline-block;
            letter-spacing: -0.02em;
        }
        
        .logo-can {
            color: #ffffff;
        }
        
        .logo-uuc {
            color: #ffffff;
        }
        
        .hamburger-menu {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 28px;
            height: 22px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 101;
            position: relative;
        }
        
        .hamburger-menu span {
            display: block;
            height: 3px;
            width: 100%;
            background: white;
            border-radius: 3px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .hamburger-menu.active span:nth-child(1) {
            transform: translateY(9.5px) rotate(45deg);
        }
        
        .hamburger-menu.active span:nth-child(2) {
            opacity: 0;
        }
        
        .hamburger-menu.active span:nth-child(3) {
            transform: translateY(-9.5px) rotate(-45deg);
        }
        
        .nav-links {
            display: flex;
            gap: 0.25rem;
            align-items: center;
        }
        
        .nav-links a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            padding: 0.6rem 1.25rem;
            border-radius: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            letter-spacing: 0.01em;
        }
        
        .nav-links a::before {
            content: '';
            position: absolute;
            bottom: 0.5rem;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: calc(100% - 2rem);
            height: 2px;
            background: #EA2230;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .nav-links a:hover {
            color: white;
            background: rgba(255, 255, 255, 0.1);
        }
        
        .nav-links a:hover::before {
            transform: translateX(-50%) scaleX(1);
        }
        
        .nav-links a:active {
            transform: scale(0.98);
        }
        
        /* Main Content */
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1.5rem;
        }
        
        .hero {
            text-align: center;
            padding: 7rem 0 4rem;
            margin: 0 auto 6rem;
            position: relative;
            max-width: 840px;
        }
        
        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            background: rgba(255, 255, 255, 0.85);
            color: #261D62;
            padding: 0.4rem 1.4rem;
            border-radius: 999px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 1.75rem;
            border: 1px solid rgba(0, 0, 0, 0.04);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
            backdrop-filter: blur(10px);
        }
        
        .cua-logo {
            height: 2.6rem;
            width: auto;
            display: block;
            object-fit: contain;
        }
        
        .hero h1 {
            font-size: 3.1rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            line-height: 1.15;
            letter-spacing: -0.02em;
        }
        
        .hero-canadian {
            color: #EA2230;
        }
        
        .hero-curriculum {
            color: #261D62;
        }
        
        .hero-subtitle-small {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 0;
            letter-spacing: 0.14em;
            position: relative;
        }
        
        .hero-subtitle-small::before {
            content: '';
            display: block;
            width: 80px;
            height: 3px;
            margin: 1.75rem auto 0.75rem;
            border-radius: 999px;
            background:
                radial-gradient(circle at 0% 50%, rgba(234, 34, 48, 0.5), transparent 55%),
                radial-gradient(circle at 100% 50%, rgba(0, 166, 200, 0.5), transparent 55%),
                linear-gradient(90deg, #EA2230, #00A6C8);
            box-shadow: 0 0 10px rgba(0, 166, 200, 0.35);
        }
        
        .hero-can {
            color: #EA2230;
        }
        
        .hero-uuc {
            color: #261D62;
        }
        
        .hero-subtitle {
            font-size: 1.25rem;
            max-width: 750px;
            margin: 0 auto 2.5rem;
            color: var(--gray);
            line-height: 1.7;
        }
        
        .canuuc-stats {
            display: flex;
            justify-content: center;
            gap: 2.5rem;
            margin-top: 2rem;
            flex-wrap: wrap;
            padding-top: 2rem;
            border-top: 1px solid rgba(0, 0, 0, 0.08);
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: 800;
            color: #00A6C8;
            line-height: 1;
            margin-bottom: 0.4rem;
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: var(--gray);
            font-weight: 500;
        }
        
        /* Platform Content Section */
        .platform-content {
            padding: 4rem 2rem;
            margin-bottom: 4rem;
            background: linear-gradient(135deg, rgba(0, 166, 200, 0.03) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(38, 29, 98, 0.03) 100%);
            border-radius: 24px;
            box-shadow: 0 4px 24px rgba(38, 29, 98, 0.06);
        }
        
        .platform-content-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: start;
        }
        
        .platform-section-left {
            display: flex;
            flex-direction: column;
        }
        
        .platform-section-left .section-title {
            margin-bottom: 1.5rem;
            text-align: left;
        }
        
        .canuuc-description {
            font-size: 1.05rem;
            line-height: 1.8;
            color: var(--gray);
            margin: 0 0 0 0;
        }
        
        .platform-section-right {
            display: flex;
            flex-direction: column;
        }
        
        .platform-section-right .section-title {
            margin-bottom: 2rem;
            text-align: left;
        }
        
        .content-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .section-intro {
            text-align: center;
            font-size: 1.1rem;
            color: var(--gray);
            margin-bottom: 3rem;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            margin-top: 0.5rem;
        }
        
        .section-title {
            font-size: 2.2rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 1rem;
            color: #261D62;
            letter-spacing: -0.01em;
        }
        
        .section-subtitle {
            text-align: center;
            font-size: 1.1rem;
            color: #6c757d;
            margin-bottom: 3rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .content-item {
            background: white;
            padding: 0.875rem 1rem;
            border-radius: 12px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(0, 0, 0, 0.06);
            position: relative;
            display: flex;
            align-items: center;
            gap: 0.875rem;
            min-height: auto;
        }
        
        .content-item:hover {
            transform: translateX(4px);
            box-shadow: 0 8px 24px rgba(0, 166, 200, 0.15);
            border-color: rgba(0, 166, 200, 0.3);
        }
        
        .content-item-novelty {
            border: 2px solid #00A6C8;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(0, 166, 200, 0.05) 100%);
            box-shadow: 0 4px 16px rgba(0, 166, 200, 0.15);
        }
        
        .content-item-novelty:hover {
            box-shadow: 0 12px 32px rgba(0, 166, 200, 0.25);
            border-color: #00A6C8;
        }
        
        .novelty-badge {
            position: absolute;
            top: -10px;
            right: 16px;
            background: linear-gradient(135deg, #059669, #10b981);
            color: white;
            padding: 0.3rem 0.75rem;
            border-radius: 16px;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            box-shadow: 0 3px 10px rgba(67, 97, 238, 0.35);
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        
        .novelty-badge i {
            font-size: 0.7rem;
        }
        
        .content-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            color: white;
            transition: transform 0.3s ease;
            flex-shrink: 0;
        }
        
        .content-item:hover .content-icon {
            transform: scale(1.08);
        }
        
        .icon-powerpoint {
            background: linear-gradient(135deg, #261D62, #3d2d7a);
        }
        
        .icon-podcast {
            background: linear-gradient(135deg, #d97706, #f59e0b);
        }
        
        .icon-flashcards {
            background: linear-gradient(135deg, #7c3aed, #a78bfa);
        }
        
        .icon-mcq {
            background: linear-gradient(135deg, #059669, #10b981);
        }
        
        .icon-video {
            background: linear-gradient(135deg, #EA2230, #f06292);
        }
        
        .content-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }
        
        .content-item h3 {
            font-size: 1.05rem;
            font-weight: 700;
            margin: 0;
            color: var(--dark);
            line-height: 1.3;
        }
        
        .content-availability {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.75rem;
            font-weight: 600;
            color: #00A6C8;
            line-height: 1.4;
        }
        
        .content-availability i {
            font-size: 0.85rem;
            color: #00A6C8;
        }
        
        .content-availability.novelty-availability {
            color: var(--primary);
        }
        
        .content-availability.novelty-availability i {
            color: #fbbf24;
        }
        
        .courses-section {
            margin-bottom: 5rem;
        }
        
        .section-header-modern {
            text-align: center;
            margin-bottom: 3.5rem;
        }
        
        /* Modern Course Grid */
        .course-grid-modern {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .course-card-modern {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(38, 29, 98, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(0, 166, 200, 0.1);
            position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .course-card-modern:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 40px rgba(0, 166, 200, 0.2);
            border-color: rgba(0, 166, 200, 0.3);
        }
        
        .course-footer-modern:focus-visible {
            outline: 2px solid #00A6C8;
            outline-offset: 2px;
        }
        
        .course-header-modern {
            padding: 1.75rem 1.5rem;
            background: #00A6C8;
            position: relative;
            overflow: hidden;
        }
        
        .course-header-modern::before {
            content: '';
            position: absolute;
            top: -40%;
            right: -15%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            border-radius: 50%;
            transition: transform 0.4s ease;
        }
        
        .course-card-modern:hover .course-header-modern::before {
            transform: scale(1.15);
        }
        
        .course-title-modern {
            position: relative;
            z-index: 1;
        }
        
        .course-title-modern h3 {
            font-size: 1.25rem;
            font-weight: 700;
            color: white;
            margin: 0;
            line-height: 1.35;
            letter-spacing: -0.015em;
            text-align: center;
        }
        
        .course-body-modern {
            padding: 1.5rem 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .course-features-list {
            display: flex;
            flex-direction: column;
            gap: 0;
            width: 100%;
        }
        
        .feature-item {
            display: flex;
            align-items: center;
            gap: 0.875rem;
            padding: 0.875rem 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            text-decoration: none;
            color: inherit;
            transition: all 0.25s ease;
            border-radius: 4px;
        }
        
        .feature-item:last-child {
            border-bottom: none;
        }
        
        .feature-item.feature-link {
            cursor: pointer;
        }
        
        .feature-item.feature-link:hover {
            background-color: rgba(67, 97, 238, 0.04);
            padding-left: 0.5rem;
            padding-right: 0.5rem;
            margin-left: -0.5rem;
            margin-right: -0.5rem;
        }
        
        .feature-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: transform 0.25s ease;
        }
        
        .feature-item.feature-link:hover .feature-icon {
            transform: scale(1.1);
        }
        
        .feature-icon i {
            font-size: 1.1rem;
            color: white;
        }
        
        .feature-icon-ppt {
            background: linear-gradient(135deg, #261D62, #3d2d7a);
        }
        
        .feature-icon-podcast {
            background: linear-gradient(135deg, #d97706, #f59e0b);
        }
        
        .feature-icon-flashcards {
            background: linear-gradient(135deg, #7c3aed, #a78bfa);
        }
        
        .feature-icon-mcq {
            background: linear-gradient(135deg, #059669, #10b981);
        }
        
        .feature-icon-video {
            background: linear-gradient(135deg, #EA2230, #f06292);
        }
        
        .feature-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }
        
        .feature-title {
            font-size: 0.9375rem;
            font-weight: 600;
            color: #261D62;
            line-height: 1.4;
        }
        
        .feature-status {
            font-size: 0.8125rem;
            font-weight: 500;
            line-height: 1.3;
        }
        
        .feature-status.available {
            color: #00A6C8;
        }
        
        .feature-status.coming-soon {
            color: #9ca3af;
        }
        
        .feature-item.feature-coming-soon {
            opacity: 0.65;
            filter: grayscale(0.5);
        }
        
        .feature-item.feature-coming-soon .feature-icon {
            opacity: 0.7;
            filter: grayscale(0.7);
        }
        
        .feature-item.feature-coming-soon .feature-title {
            color: #9ca3af;
        }
        
        .course-footer-modern {
            padding: 1.5rem 1.5rem;
            background: white;
            border-top: 1px solid rgba(0, 166, 200, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.625rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            z-index: 1;
            text-decoration: none;
            color: inherit;
        }
        
        .course-card-modern:hover .course-footer-modern {
            background: rgba(0, 166, 200, 0.05);
            border-top-color: #00A6C8;
        }
        
        .course-cta {
            font-weight: 700;
            font-size: 0.95rem;
            color: #261D62;
            letter-spacing: -0.01em;
        }
        
        .course-footer-modern i {
            color: #00A6C8;
            font-size: 1rem;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .course-card-modern:hover .course-footer-modern i {
            transform: translateX(4px);
        }
        
        .course-card-modern:hover .course-footer-modern .course-cta {
            color: #EA2230;
        }
        
        .course-card-modern:hover .course-footer-modern i {
            color: #EA2230;
        }
        
        /* Video Course Cards */
        .course-card-video {
            border: 2px solid rgba(234, 34, 48, 0.2);
        }
        
        .course-card-video .course-header-modern {
            background: linear-gradient(135deg, #261D62, #00A6C8);
        }
        
        .course-card-video:hover {
            border-color: rgba(234, 34, 48, 0.4);
            box-shadow: 0 16px 40px rgba(234, 34, 48, 0.15);
        }
        
        
        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 3rem 2rem;
            margin-top: 5rem;
        }
        
        .footer-content {
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }
        
        .footer-section h3 {
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
            font-weight: 700;
        }
        
        .footer-section p {
            color: #adb5bd;
            margin: 0.25rem 0;
            line-height: 1.4;
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid #495057;
            color: #6c757d;
        }
        
        .contributors-section {
            margin-bottom: 2.5rem;
            padding: 4rem 3rem;
            background: linear-gradient(135deg, rgba(0, 166, 200, 0.03) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(38, 29, 98, 0.03) 100%);
            border-radius: 24px;
            box-shadow: 0 4px 24px rgba(38, 29, 98, 0.06);
        }
        
        .contributors {
            text-align: center;
            max-width: 1100px;
            margin: 0 auto;
        }
        
        .contributors h2 {
            font-size: 2.2rem;
            font-weight: 700;
            color: #261D62;
            margin-bottom: 2.5rem;
            letter-spacing: -0.01em;
            text-align: center;
        }
        
        .contributors p {
            font-size: 1.1rem;
            line-height: 2.2;
            color: var(--gray);
            margin: 0;
            padding-top: 2rem;
            position: relative;
        }

        .disclaimer-section {
            margin: 0 auto 5rem;
            max-width: 900px;
            padding: 0 2rem;
        }

        .disclaimer-text {
            font-size: 0.9rem;
            line-height: 1.6;
            color: var(--gray);
            text-align: center;
            opacity: 0.9;
        }
        
        .contributors p::before {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, transparent, #00A6C8, transparent);
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
        }
        
        /* Topic Page Styles */
        .topic-header {
            background: linear-gradient(135deg, #00A6C8 0%, #261D62 100%);
            color: white;
            padding: 4rem 2rem;
            border-radius: 0;
            margin-bottom: 2rem;
            margin-top: -80px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 166, 200, 0.2);
        }
        
        .topic-header::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }
        
        .topic-header::after {
            content: '';
            position: absolute;
            bottom: -80px;
            left: -30px;
            width: 150px;
            height: 150px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }
        
        .topic-header-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            padding-top: 80px;
            padding-bottom: 20px;
            margin: 0 auto;
            text-align: center;
        }
        
        .topic-title {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .topic-description {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: white;
            text-decoration: none;
            margin-bottom: 1.5rem;
            opacity: 0.8;
            transition: var(--transition);
        }
        
        .back-btn:hover {
            opacity: 1;
            gap: 0.7rem;
        }
        
        .resources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }
        
        /* Video Section */
        .video-section {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 3rem 0;
            padding: 2rem 0;
        }
        
        .video-container {
            width: 100%;
            max-width: 900px;
            background: white;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(38, 29, 98, 0.12);
            overflow: hidden;
            border: 1px solid rgba(0, 166, 200, 0.1);
        }
        
        .topic-video-player {
            width: 100%;
            height: auto;
            display: block;
            background: #000;
        }
        
        .topic-video-player::-webkit-media-controls-panel {
            background-color: rgba(0, 0, 0, 0.7);
        }
        
        @media (max-width: 768px) {
            .video-section {
                margin: 2rem 0;
                padding: 1rem 0;
            }
            
            .video-container {
                border-radius: 12px;
            }
        }
        
        .resource-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 2.5rem;
            box-shadow: 0 4px 16px rgba(38, 29, 98, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: center;
            border: 1px solid rgba(0, 166, 200, 0.1);
        }
        
        .resource-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 32px rgba(0, 166, 200, 0.2);
            border-color: rgba(0, 166, 200, 0.3);
        }
        
        .resource-card-coming-soon {
            opacity: 0.7;
            filter: grayscale(0.4);
            cursor: default !important;
            position: relative;
        }
        
        .resource-card-coming-soon:hover {
            transform: none;
            box-shadow: 0 4px 16px rgba(38, 29, 98, 0.08);
            border-color: rgba(0, 166, 200, 0.1);
        }
        
        .resource-card-coming-soon .resource-icon {
            opacity: 0.6;
            filter: grayscale(0.5);
        }
        
        .resource-card-coming-soon:hover .resource-icon {
            transform: none;
        }
        
        .coming-soon-badge {
            position: absolute;
            top: 1.25rem;
            right: 1.25rem;
            background: linear-gradient(135deg, #9ca3af, #6b7280);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            z-index: 10;
        }
        
        .coming-soon-badge i {
            font-size: 0.7rem;
        }
        
        .coming-soon-progress {
            opacity: 0.5;
            pointer-events: none;
        }
        
        .coming-soon-category {
            cursor: default !important;
            opacity: 0.6;
        }
        
        .coming-soon-category .progress-count {
            color: #9ca3af !important;
            font-weight: 600;
        }
        
        .coming-soon-category .progress-label {
            color: #9ca3af !important;
        }
        
        .resource-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, rgba(0, 166, 200, 0.15), rgba(38, 29, 98, 0.15));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
            color: #00A6C8;
            transition: transform 0.3s ease;
        }
        
        .resource-card:hover .resource-icon {
            transform: scale(1.1);
            background: linear-gradient(135deg, rgba(0, 166, 200, 0.2), rgba(38, 29, 98, 0.2));
        }
        
        .resource-card h3 {
            margin-bottom: 1rem;
            color: #261D62;
            font-size: 1.4rem;
            font-weight: 700;
        }
        
        .resource-card p {
            color: var(--gray);
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }
        
        .resource-btn {
            padding: 0.875rem 2rem;
            background: #00A6C8;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 4px 12px rgba(0, 166, 200, 0.25);
        }
        
        .resource-btn:hover {
            background: #261D62;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(38, 29, 98, 0.3);
        }
        
        .resource-btn:active {
            transform: translateY(0);
        }
        
        .interactive-section {
            background: linear-gradient(135deg, rgba(0, 166, 200, 0.03) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(38, 29, 98, 0.03) 100%);
            border-radius: var(--border-radius);
            padding: 3rem;
            box-shadow: 0 4px 24px rgba(38, 29, 98, 0.06);
            margin: 3rem 0;
            border: 1px solid rgba(0, 166, 200, 0.1);
        }
        
        .section-title {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: #261D62;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-weight: 700;
        }
        
        .section-title i {
            color: #00A6C8;
            font-size: 1.8rem;
        }
        
        .section-controls {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .control-btn {
            padding: 0.75rem 1.5rem;
            background: white;
            border: 1px solid rgba(0, 166, 200, 0.2);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 500;
            color: #261D62;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 2px 8px rgba(0, 166, 200, 0.1);
        }
        
        .control-btn:hover {
            background: rgb(219, 219, 219);
            border-color: #00A6C8;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 166, 200, 0.2);
        }
        
        .control-btn:active {
            transform: translateY(0);
        }
        
        /* Flashcards Styling */
        .flashcard-container {
            perspective: 1000px;
            margin: 2rem 0;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .flashcard {
            height: 400px;
            transform-style: preserve-3d;
            transition: transform 0.8s, opacity 0.3s;
            cursor: pointer;
            position: relative;
            opacity: 1;
        }
        
        .flashcard.flipped {
            transform: rotateY(180deg);
        }
        
        .flashcard-front, .flashcard-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
            padding: 2.5rem;
            text-align: center;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        }
        
        .flashcard-front {
            background: linear-gradient(135deg, #00A6C8 0%, #00A6C8 50%, #261D62 100%);
            color: white;
            box-shadow: 0 8px 32px rgba(0, 166, 200, 0.3);
        }
        
        .flashcard-back {
            background: linear-gradient(135deg, #261D62 0%, #261D62 50%, #00A6C8 100%);
            color: white;
            transform: rotateY(180deg);
            box-shadow: 0 8px 32px rgba(38, 29, 98, 0.3);
        }
        
        .flashcard-content {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            line-height: 1.5;
        }
        
        .explanation {
            margin-top: 1.5rem;
            padding: 1.25rem;
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            font-size: 1rem;
            display: none;
            border: 1px solid rgba(255, 255, 255, 0.3);
            line-height: 1.7;
        }
        
        .explanation strong {
            font-weight: 600;
        }
        
        .flashcard-count {
            position: absolute;
            bottom: 20px;
            font-size: 1rem;
            opacity: 0.8;
        }
        
        .flashcard-buttons {
            display: flex;
            justify-content: center;
            margin-top: 1.5rem;
            gap: 1rem;
            display: none;
        }
        
        .flashcard-btn {
            padding: 0.8rem 1.8rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 500;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .btn-know {
            background: #4CAF50;
            color: white;
            box-shadow: 0 4px 12px rgba(0, 166, 200, 0.3);
        }
        
        .btn-know:hover {
            background: #3e8d40;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 166, 200, 0.4);
        }
        
        .btn-review {
            background: #EA2230;
            color: white;
            box-shadow: 0 4px 12px rgba(234, 34, 48, 0.3);
        }
        
        .btn-review:hover {
            background: #c41e2d;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(234, 34, 48, 0.4);
        }
        
        .flashcard-controls {
            display: flex;
            justify-content: center;
            margin-top: 1.5rem;
            gap: 1rem;
        }
        
        /* Knowledge Counters */
        .knowledge-counters {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .counter-card {
            background: white;
            padding: 1.25rem 2rem;
            border-radius: var(--border-radius);
            box-shadow: 0 4px 16px rgba(38, 29, 98, 0.08);
            text-align: center;
            min-width: 150px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(0, 166, 200, 0.1);
        }
        
        .counter-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 32px rgba(0, 166, 200, 0.2);
            border-color: rgba(0, 166, 200, 0.3);
        }
        
        .counter-card.active {
            border: 2px solid #00A6C8;
            box-shadow: 0 0 0 3px rgba(0, 166, 200, 0.2), 0 12px 32px rgba(0, 166, 200, 0.2);
        }
        
        .counter-value {
            font-size: 2rem;
            font-weight: 700;
            color: #00A6C8;
        }
        
        /* Flashcard counter colors on flashcards page */
        #known-count {
            color: #4CAF50;
        }
        
        #review-count {
            color: #EA2230;
        }
        
        .counter-label {
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        /* New styles for flashcard progress on topic page */
        .flashcard-progress {
            display: flex;
            justify-content: space-between;
            margin: 1.5rem 0;
            background: rgba(0, 166, 200, 0.05);
            padding: 1.5rem;
            border-radius: var(--border-radius);
            gap: 0.75rem;
            border: 1px solid rgba(0, 166, 200, 0.1);
        }
        
        .progress-category {
            text-align: center;
            flex: 1;
            padding: 1rem 0.75rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 8px;
            background: rgba(0, 166, 200, 0.05);
            border: 1px solid rgba(0, 166, 200, 0.1);
        }
        
        .progress-category:hover {
            background: rgba(0, 166, 200, 0.1);
            border-color: rgba(0, 166, 200, 0.3);
            transform: translateY(-2px);
        }
        
        .progress-count {
            font-size: 1.75rem;
            font-weight: 700;
            color: #00A6C8;
            display: block;
            margin-bottom: 0.4rem;
        }
        
        /* Topic page flashcard and MCQ counter colors */
        #topic-known-count {
            color: #4CAF50;
        }
        
        #topic-review-count {
            color: #EA2230;
        }
        
        #mcq-topic-good-count {
            color: #4CAF50;
        }
        
        #mcq-topic-bad-count {
            color: #EA2230;
        }
        
        .progress-label {
            font-size: 0.95rem;
            color: #261D62;
            font-weight: 500;
        }
        
        .btn-redo {
            background: var(--warning);
            color: white;
            margin-top: 1rem;
        }
        
        .btn-redo:hover {
            background: #e68a00;
        }
        
        /* Congratulations Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .congrats-modal {
            background: white;
            border-radius: var(--border-radius);
            padding: 2.5rem;
            max-width: 500px;
            width: 90%;
            text-align: center;
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
            transform: translateY(30px);
            transition: transform 0.4s ease;
        }
        
        .modal-overlay.active .congrats-modal {
            transform: translateY(0);
        }
        
        .congrats-modal i {
            font-size: 4rem;
            color: var(--success);
            margin-bottom: 1.5rem;
        }
        
        .congrats-modal h2 {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: var(--secondary);
        }
        
        .congrats-modal p {
            font-size: 1.1rem;
            color: var(--gray);
            margin-bottom: 2rem;
            line-height: 1.6;
        }
        
        .modal-btn {
            padding: 0.8rem 1.8rem;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            transition: var(--transition);
            text-decoration: none;
            display: inline-block;
        }
        
        .modal-btn:hover {
            background: var(--secondary);
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .hero {
                padding: 3.25rem 1.25rem 2.5rem;
                margin: 0 auto 4rem;
            }
            
            .hero-badge {
                padding: 0.35rem 1.1rem;
                font-size: 0.8rem;
            }
            
            .cua-logo {
                height: 2.2rem;
            }
            
            .hero h1 {
                font-size: 2.05rem;
            }
            
            .hero-subtitle-small {
                font-size: 1.6rem;
                letter-spacing: 0.14em;
            }
            
            .hero-subtitle-small::before {
                width: 64px;
                height: 3px;
                margin: 1.5rem auto 0.6rem;
            }
            
            header {
                padding: 0.875rem 1.25rem;
            }
            
            nav {
                flex-wrap: wrap;
            }
            
            .logo {
                font-size: 1.5rem;
            }
            
            .logo-icon {
                height: 1.9rem;
            }
            
            .nav-links {
                gap: 0.125rem;
                flex-wrap: wrap;
                margin-top: 0.5rem;
                width: 100%;
                justify-content: flex-start;
            }
            
            .nav-links a {
                font-size: 0.875rem;
                padding: 0.5rem 1rem;
            }
            
            .course-grid-modern {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .course-header-modern {
                padding: 1.5rem 1.25rem;
            }
            
            .course-title-modern h3 {
                font-size: 1.15rem;
            }
            
            .course-body-modern {
                padding: 1.25rem 1.25rem;
            }
            
            .course-features-list {
                gap: 0;
            }
            
            .feature-item {
                padding: 0.75rem 0;
                gap: 0.75rem;
            }
            
            .feature-icon {
                width: 38px;
                height: 38px;
            }
            
            .feature-icon i {
                font-size: 1rem;
            }
            
            .feature-title {
                font-size: 0.9rem;
            }
            
            .feature-status {
                font-size: 0.75rem;
            }
            
            .course-footer-modern {
                padding: 1.25rem 1.25rem;
            }
            
            .course-cta {
                font-size: 0.9rem;
            }
            
            .course-footer-modern i {
                font-size: 0.95rem;
            }
            
            header {
                padding: 0.875rem 1.25rem;
            }
            
            nav {
                flex-wrap: nowrap;
                position: relative;
            }
            
            .hamburger-menu {
                display: flex;
            }
            
            .logo {
                font-size: 1.5rem;
            }
            
            .logo-icon {
                height: 1.9rem;
            }
            
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 280px;
                max-height: calc(100vh - 2rem);
                margin-top: 1rem;
                margin-bottom: 1rem;
                background: linear-gradient(135deg, rgba(38, 29, 98, 0.98) 0%, rgba(38, 29, 98, 0.95) 100%);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                flex-direction: column;
                align-items: flex-start;
                justify-content: flex-start;
                padding: 2rem 1.5rem;
                gap: 0.5rem;
                transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
                border-radius: 12px 0 0 12px;
                z-index: 100;
                overflow-y: auto;
            }
            
            .nav-links.active {
                right: 0;
            }
            
            .nav-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                background: rgba(0, 0, 0, 0.5);
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 99;
            }
            
            .nav-overlay.active {
                display: block;
                opacity: 1;
                pointer-events: all;
            }
            
            body.menu-open {
                overflow: hidden;
                position: fixed;
                width: 100%;
            }
            
            
            .nav-links a {
                font-size: 1rem;
                padding: 0.875rem 1.25rem;
                width: 100%;
                border-radius: 8px;
                text-align: left;
            }
            
            .nav-links a::before {
                display: none;
            }
            
            .hero {
                padding: 2.5rem 0 2rem;
            }
            
            .hero h1 {
                font-size: 2.2rem;
            }
            
            .hero-subtitle-small {
                font-size: 1.75rem;
                margin-bottom: 1.5rem;
            }
            
            .hero-subtitle {
                font-size: 1.1rem;
                padding: 0 1rem;
            }
            
            .canuuc-stats {
                gap: 1.5rem;
                margin-top: 1.5rem;
                padding-top: 1.5rem;
            }
            
            .stat-number {
                font-size: 1.75rem;
            }
            
            .stat-label {
                font-size: 0.85rem;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .platform-content {
                padding: 2.5rem 1.5rem;
                border-radius: 20px;
            }
            
            .platform-content-wrapper {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            
            .platform-section-left .section-title,
            .platform-section-right .section-title {
                text-align: center;
                font-size: 1.75rem;
            }
            
            .canuuc-description {
                font-size: 1rem;
                text-align: center;
            }
            
            .content-list {
                gap: 1rem;
            }
            
            .content-item {
                padding: 1.25rem;
            }
            
            .content-icon {
                width: 48px;
                height: 48px;
                font-size: 1.4rem;
            }
            
            .content-item h3 {
                font-size: 1.05rem;
            }
            
            .content-availability {
                font-size: 0.8rem;
            }
            
            .novelty-badge {
                top: -10px;
                right: 16px;
                padding: 0.35rem 0.85rem;
                font-size: 0.65rem;
            }
            
            .contributors-section {
                padding: 2.5rem 1.5rem;
                margin-bottom: 2.5rem;
            }
            
            .contributors h2 {
                font-size: 1.75rem;
                margin-bottom: 2rem;
            }
            
            .contributors p {
                font-size: 1rem;
                line-height: 1.9;
            }
            
            .contributors p::before {
                width: 50px;
                top: -1.2rem;
            }
            
            .course-content {
                padding: 1.5rem;
            }
            
            .topic-title {
                font-size: 2rem;
            }
            
            .flashcard-content {
                font-size: 1.5rem;
            }
            
            .knowledge-counters {
                flex-direction: column;
                gap: 1rem;
            }
            
            .flashcard-progress {
                flex-direction: column;
                gap: 1rem;
            }
            
            .progress-category {
                padding: 0.875rem 0.5rem;
            }
            
            .progress-count {
                font-size: 1.5rem;
            }
            
            .progress-label {
                font-size: 0.85rem;
            }
            
            .quiz-container {
                padding: 1.5rem 1rem;
                margin: 1rem 0.5rem;
            }
            
            .question {
                font-size: 1.15rem;
            }
            
            .options {
                grid-template-columns: 1fr !important;
                gap: 0.875rem;
                width: 100%;
                max-width: 100%;
            }
            
            .option {
                padding: 1rem 1rem;
                font-size: 1rem;
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box;
                margin: 0;
                min-width: 0;
            }
            
            .quiz-container {
                width: calc(100% - 1rem);
                max-width: calc(100% - 1rem);
                box-sizing: border-box;
                padding: 1.5rem 1rem !important;
                margin: 1rem 0.5rem !important;
            }
        }
        
        /* Tablet/Medium screen sizes */
        @media (min-width: 769px) and (max-width: 1024px) {
            .flashcard-progress {
                padding: 1.25rem;
                gap: 0.5rem;
            }
            
            .progress-category {
                padding: 0.875rem 0.5rem;
                min-width: 0;
            }
            
            .progress-count {
                font-size: 1.5rem;
            }
            
            .progress-label {
                font-size: 0.875rem;
            }
        }

        /* New MCQ styles */
        .quiz-container {
            background: white;
            border-radius: var(--border-radius);
            padding: 2.5rem;
            box-shadow: 0 8px 24px rgba(38, 29, 98, 0.1);
            max-width: 800px;
            margin: 0 auto;
            border: 1px solid rgba(0, 166, 200, 0.1);
        }
        
        .question {
            margin-bottom: 2rem;
            font-size: 1.4rem;
            font-weight: 600;
            line-height: 1.6;
            color: #261D62;
        }
        
        .options {
            display: grid;
            gap: 1rem;
            grid-template-columns: repeat(2, 1fr);
        }
        
        /* Mobile override - must come after desktop styles */
        @media (max-width: 768px) {
            .quiz-container .options {
                grid-template-columns: 1fr !important;
                gap: 0.875rem;
                width: 100%;
                max-width: 100%;
            }
            
            .quiz-container .option {
                width: 100% !important;
                max-width: 100% !important;
                padding: 1rem 1rem !important;
                font-size: 1rem !important;
                box-sizing: border-box;
                margin: 0;
                min-width: 0;
            }
        }
        
        .option {
            padding: 1.25rem 1.5rem;
            border: 2px solid rgba(0, 166, 200, 0.2);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 1.1rem;
            position: relative;
            background: white;
            color: #261D62;
            font-weight: 500;
        }
        
        .option:hover {
            background-color: rgba(0, 166, 200, 0.05);
            border-color: #00A6C8;
            transform: translateX(4px);
        }
        
        .option.selected {
            border-color: #00A6C8;
            background-color: rgba(0, 166, 200, 0.1);
            box-shadow: 0 4px 12px rgba(0, 166, 200, 0.2);
        }
        
        .option.correct {
            border-color: #4CAF50;
            background-color: rgba(76, 175, 80, 0.1);
        }
        
        .option.incorrect {
            border-color: #EA2230;
            background-color: rgba(234, 34, 48, 0.1);
        }
        
        .quiz-explanation {
            margin-top: 1.5rem;
            padding: 1.5rem;
            background: var(--light);
            border-radius: 8px;
            display: none;
        }
        
        .quiz-controls {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
            gap: 1rem;
        }
        
        .quiz-btn {
            padding: 0.875rem 2rem;
            background: #00A6C8;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 4px 12px rgba(0, 166, 200, 0.25);
        }
        
        .quiz-btn:hover {
            background: #261D62;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(38, 29, 98, 0.3);
        }
        
        .quiz-btn:active {
            transform: translateY(0);
        }
        
        .quiz-btn:disabled {
            background: #e9ecef;
            color: #6c757d;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }
        
        /* New MCQ counters */
        .mcq-counters {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .mcq-counter-card {
            background: white;
            padding: 1.25rem 2rem;
            border-radius: var(--border-radius);
            box-shadow: 0 4px 16px rgba(38, 29, 98, 0.08);
            text-align: center;
            min-width: 150px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(0, 166, 200, 0.1);
        }
        
        .mcq-counter-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 32px rgba(0, 166, 200, 0.2);
            border-color: rgba(0, 166, 200, 0.3);
        }
        
        .mcq-counter-card.active {
            border: 2px solid #00A6C8;
            box-shadow: 0 0 0 3px rgba(0, 166, 200, 0.2), 0 12px 32px rgba(0, 166, 200, 0.2);
        }
        
        .mcq-counter-value {
            font-size: 2rem;
            font-weight: 700;
        }
        
        .mcq-good {
            color: #4CAF50;
        }
        
        .mcq-bad {
            color: #EA2230;
        }
        
        .mcq-remaining {
            color: #00A6C8;
        }
        
        .mcq-counter-label {
            color: #261D62;
            font-size: 0.95rem;
            font-weight: 500;
        }
        
        /* PDF Preview Modal Styles */
        .pdf-modal-container {
            background: white;
            border-radius: var(--border-radius);
            max-width: 95vw;
            max-height: 95vh;
            width: 1200px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
            transform: translateY(30px);
            transition: transform 0.4s ease;
        }
        
        .modal-overlay.active .pdf-modal-container {
            transform: translateY(0);
        }
        
        .pdf-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .pdf-modal-header h3 {
            margin: 0;
            color: var(--dark);
            font-size: 1.5rem;
        }
        
        .pdf-modal-close {
            background: transparent;
            border: none;
            font-size: 1.5rem;
            color: var(--gray);
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
        
        .pdf-modal-close:hover {
            background: var(--light-gray);
            color: var(--dark);
        }
        
        .pdf-modal-footer {
            padding: 1.5rem 2rem;
            border-top: 1px solid var(--light-gray);
            display: flex;
            justify-content: center;
        }
        
        .pdf-preview-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 1rem;
            padding: 0.8rem;
            background: var(--light);
            border-radius: 8px;
            flex-wrap: wrap;
            position: relative;
        }
        
        .pdf-nav-btn {
            padding: 0.6rem 1.2rem;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.95rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .pdf-nav-btn:hover:not(:disabled) {
            background: var(--secondary);
            transform: translateY(-2px);
        }
        
        .pdf-nav-btn:disabled {
            background: var(--light-gray);
            color: var(--gray);
            cursor: not-allowed;
            transform: none;
        }
        
        .pdf-page-info {
            font-size: 1rem;
            color: var(--dark);
            font-weight: 500;
            min-width: 80px;
            text-align: center;
            margin: 0 1rem;
        }
        
        .pdf-zoom-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: white;
            padding: 0.5rem;
            border-radius: 8px;
            border: 1px solid var(--light-gray);
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
        }
        
        .pdf-zoom-btn {
            background: transparent;
            border: none;
            color: var(--primary);
            cursor: pointer;
            padding: 0.4rem 0.6rem;
            border-radius: 4px;
            transition: var(--transition);
            font-size: 0.9rem;
        }
        
        .pdf-zoom-btn:hover {
            background: var(--light-gray);
        }
        
        .pdf-zoom-level {
            font-size: 0.9rem;
            color: var(--dark);
            min-width: 50px;
            text-align: center;
            font-weight: 500;
        }
        
        .pdf-preview-canvas-container {
            position: relative;
            width: 100%;
            background: #525252;
            border-radius: 0;
            overflow: auto;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            flex: 1;
            min-height: 400px;
            max-height: calc(95vh - 250px);
            padding: 2rem;
        }
        
        #pdf-canvas {
            max-width: 100%;
            height: auto;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            background: white;
            border-radius: 4px;
        }
        
        .pdf-loading-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: var(--box-shadow);
            color: var(--dark);
            font-size: 1.1rem;
            z-index: 10;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .pdf-loading-message i {
            color: var(--primary);
        }
        
        @media (max-width: 768px) {
            .pdf-modal-container {
                width: 100vw;
                max-width: 100vw;
                height: 100vh;
                max-height: 100vh;
                border-radius: 0;
            }
            
            .pdf-preview-controls {
                flex-direction: column;
                gap: 0.8rem;
            }
            
            .pdf-nav-btn {
                width: 100%;
                justify-content: center;
            }
            
            .pdf-zoom-controls {
                position: static;
                transform: none;
                width: 100%;
                justify-content: center;
                top: auto;
                right: auto;
            }
            
            .pdf-preview-canvas-container {
                padding: 1rem;
                max-height: calc(100vh - 300px);
            }
        }
        
        /* Audio Player Styles */
        .audio-player-container {
            margin-top: 1.5rem;
            padding: 1.5rem;
            background: var(--light);
            border-radius: var(--border-radius);
        }
        
        .audio-waveform-container {
            width: 100%;
            margin: 0 auto 1.5rem;
            background: white;
            border-radius: 8px;
            padding: 0.75rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .audio-waveform {
            width: 100%;
            max-width: 500px;
            height: 80px;
            display: block;
            border-radius: 4px;
        }
        
        .audio-controls {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .audio-play-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: var(--transition);
            flex-shrink: 0;
        }
        
        .audio-play-btn:hover {
            background: var(--secondary);
            transform: scale(1.1);
        }
        
        .audio-progress-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .audio-time-display {
            font-size: 0.85rem;
            color: var(--gray);
            font-weight: 500;
        }
        
        .audio-progress {
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: #e0e0e0;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
            cursor: pointer;
        }
        
        .audio-progress::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            margin-top: -5px; /* Center the thumb vertically on 8px track */
        }
        
        .audio-progress::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            background: var(--secondary);
        }
        
        .audio-progress::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            border: none;
            transition: var(--transition);
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .audio-progress::-moz-range-thumb:hover {
            transform: scale(1.2);
            background: var(--secondary);
        }
        
        .audio-progress::-webkit-slider-runnable-track {
            height: 8px;
            border-radius: 4px;
            background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--progress, 0%), #e0e0e0 var(--progress, 0%), #e0e0e0 100%);
        }
        
        .audio-progress::-moz-range-track {
            height: 8px;
            border-radius: 4px;
            background: #e0e0e0;
        }
        
        .audio-progress::-moz-range-progress {
            height: 8px;
            border-radius: 4px;
            background: var(--primary);
        }
        
        .audio-settings {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .audio-speed-control {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background: white;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .audio-speed-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--light-gray);
            color: var(--dark);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            transition: var(--transition);
        }
        
        .audio-speed-btn:hover {
            background: var(--primary);
            color: white;
            transform: scale(1.1);
        }
        
        .audio-speed-display {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--dark);
            min-width: 35px;
            text-align: center;
        }
        
        @media (max-width: 768px) {
            .audio-waveform-container {
                width: 95%;
                padding: 0.5rem;
            }
            
            .audio-waveform {
                width: 100%;
                max-width: 100%;
            }
            
            .audio-controls {
                flex-direction: column;
                gap: 1rem;
            }
            
            .audio-progress-container {
                width: 100%;
            }
        }
        
        /* Hide progress bar */
        .progress-container {
            display: none;
        }