/* Error Message Styles */
.error-container {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.25) 100%);
    color: #dc2626;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: 2px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transform: translateY(0);
    transition: all 0.2s ease;
}

.error-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.2),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
    border-color: rgba(220, 38, 38, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Updates */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.profile-link, .logout-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-link {
    background: rgba(201, 170, 215, 0.1);
    color: #C9AAD7;
}

.logout-link {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.profile-link:hover, .logout-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-icon, .logout-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.dashboard {
    padding: 6rem 0 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
}


.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Styles */
.dashboard-sidebar {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f3f5;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    color: #301348;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: #666;
    font-size: 0.9rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: #666;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(201, 170, 215, 0.1);
    color: #C9AAD7;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Main Content Styles */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.welcome-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-container h1 {
    color: #301348;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-container p {
    color: #666;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(201, 170, 215, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    fill: #C9AAD7;
}

.stat-info h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #301348;
}

/* Courses Container */
.courses-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.courses-container h2 {
    color: #301348;
    margin-bottom: 1.5rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-header h3 {
    color: #301348;
    font-size: 1.1rem;
}

.course-status {
    background: rgba(201, 170, 215, 0.1);
    color: #C9AAD7;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #C9AAD7, #9B6B9E);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Activity Container */
.activity-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.activity-container h2 {
    color: #301348;
    margin-bottom: 1.5rem;
}

.activity-list {
    display: grid;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #f1f3f5;
    transform: translateX(5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(201, 170, 215, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon svg {
    width: 20px;
    height: 20px;
    fill: #C9AAD7;
}

.activity-content p {
    color: #301348;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        order: 2;
    }

    .dashboard-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }
}

/* QCM Updated Styles */
.qcm-section {
    min-height: calc(100vh - 80px);
    background: linear-gradient(180deg, #2d124d 0%, #1a0b2e 100%);
    padding: 2rem 0;
}

.qcm-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0 0 0;
}

.qcm-title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 3px 5px 0 #a48bc2, 0 2px 10px #0002;
    letter-spacing: 1px;
}

.qcm-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
}

/* Question List */
.question-list-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.question-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px 0 #0002, 0 2px 8px 0 #c9aad7;
    padding: 1.2rem 0.5rem;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.question-list-item {
    color: #bba3d6;
    font-weight: 700;
    font-size: 1.08rem;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin: 0 0.2rem;
}

.question-list-item.active {
    background: #f6f2fa;
    color: #301348;
    box-shadow: 0 4px 16px #c9aad7aa;
}

/* Main Quiz Content */
.quiz-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-container, .answer-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px 0 #0002, 0 2px 8px 0 #c9aad7;
    padding: 1.5rem 2rem 1.2rem 2rem;
    margin-bottom: 0.2rem;
}

.question-label {
    color: #bba3d6;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.question-instruction {
    color: #301348;
    font-size: 1.15rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.question-options {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0 0;
}

.question-options li {
    color: #301348;
    font-size: 1.13rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
}

.answer-label {
    color: #bba3d6;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    display: block;
}

.answer-text {
    color: #301348;
    font-size: 1.08rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

/* Quiz Controls */
.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 0.5rem 0 0.2rem 0;
}

.quiz-btn {
    background: #f6f2fa;
    color: #bba3d6;
    border: none;
    padding: 0.7rem 2.2rem;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 4px 16px #c9aad755;
    cursor: pointer;
    transition: all 0.18s;
    outline: none;
    letter-spacing: 0.5px;
}

.quiz-btn:active {
    transform: scale(0.97);
}

.quiz-btn:hover {
    background: #e7d6f5;
    color: #301348;
}

.reveal-btn {
    background: #c9aad7;
    color: #301348;
    font-weight: 900;
    box-shadow: 0 4px 24px #c9aad7cc;
    border: 2px solid #bba3d6;
}

.reveal-btn:hover {
    background: #bba3d6;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 900px) {
    .qcm-layout {
        grid-template-columns: 1fr;
    }
    .question-list-panel {
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .qcm-container {
        padding: 0.5rem 0 0 0;
    }
    .question-container, .answer-container {
        padding: 1rem 0.7rem;
    }
    .quiz-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
} 
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    line-height: 1.6;
    color: white;
    background-color: black;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero .container {
    margin: 0;
    padding-left: 4rem;
}

/* Navigation */
.navbar {
    background-color: transparent;
    padding: 2rem 0;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.navbar .container {
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C9AAD7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #C9AAD7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-button {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-button.login {
    color: #C9AAD7;
    border: 2px solid #C9AAD7;
    background: transparent;
}

.nav-button.login:hover {
    background: rgba(201, 170, 215, 0.1);
    transform: translateY(-2px);
}

.nav-button.signup {
    color: #1E0B2F;
    background: #C9AAD7;
    border: 2px solid #C9AAD7;
}

.nav-button.signup:hover {
    background: #E2CCF0;
    border-color: #E2CCF0;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(to bottom, #301348, #000000);
    perspective: 1000px;
}

.purple-orbs {
    position: absolute;
    right: -100px;
    top: 100px;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform-style: preserve-3d;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    box-shadow: 
        inset -10px -10px 20px rgba(0, 0, 0, 0.3),
        inset 10px 10px 20px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(201, 170, 215, 0.2);
    backdrop-filter: blur(5px);
    will-change: transform;
}

.orb-1 {
    right: 10%;
    top: 25%;
    width: 180px;
    height: 180px;
    opacity: 0.9;
    background: radial-gradient(circle at 30% 30%, #9B6B9E, #301348);
    animation: morphFloat1 8s ease-in-out infinite;
}

.orb-2 {
    right: 45%;
    top: 45%;
    width: 150px;
    height: 150px;
    opacity: 0.8;
    background: radial-gradient(circle at 35% 35%, #C9AAD7, #9B6B9E);
    animation: morphFloat2 9s ease-in-out infinite;
    animation-delay: -2s;
}

.orb-3 {
    right: 25%;
    top: 35%;
    width: 220px;
    height: 220px;
    opacity: 0.7;
    background: radial-gradient(circle at 25% 25%, #E2CCF0, #C9AAD7);
    animation: morphFloat3 10s ease-in-out infinite;
}

.orb-4 {
    right: 55%;
    top: 30%;
    width: 160px;
    height: 160px;
    opacity: 0.6;
    background: radial-gradient(circle at 40% 40%, #C9AAD7, #301348);
    animation: morphFloat4 7s ease-in-out infinite;
    animation: morphFloat4 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.orb-5 {
    right: 15%;
    top: 45%;
    width: 140px;
    height: 140px;
    opacity: 0.5;
    background: radial-gradient(circle at 30% 30%, #9B6B9E, #301348);
    animation: morphFloat5 8.5s ease-in-out infinite;
}

.orb-6 {
    right: 35%;
    top: 70%;
    width: 100px;
    height: 100px;
    opacity: 0.4;
    background: radial-gradient(circle at 35% 35%, #E2CCF0, #9B6B9E);
    animation: morphFloat6 9.5s ease-in-out infinite;
}

.hero-content {
    max-width: 800px;
    margin: 0;
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero h1 {
    font-size: 8rem;
    margin-bottom: 0.5rem;
    color: #C9AAD7;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    margin-left: 0;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #C9AAD7;
    font-weight: 400;
    text-align: left;
    margin-left: 0;
}

.hero p {
    color: #C9AAD7;
    max-width: 450px;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    text-align: left;
    margin-left: 0;
}

/* Featured Section White Background */
.featured {
    background: #fff;
    border-radius: 2.5rem 2.5rem 0 0;
    box-shadow: 0 -4px 32px #c9aad711;
    margin-top: -2.5rem;
    padding: 4rem 0 2rem 0;
    position: relative;
    z-index: 2;
}
.featured h2 {
    color: #301348;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: scale(1.05);
}

.card-image {
    height: 200px;
    background-color: #E5E7EB;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.featured-card h3 {
    color: black;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.featured-card p {
    color: #4B5563;
}

/* Footer */
.footer {
    background-color: black;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #A855F7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Animations */
@keyframes morphFloat1 {
    0%, 100% {
        transform: translate3d(0, -40px, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(40px, -80px, 60px) rotate(5deg) scale(1.1);
    }
}

@keyframes morphFloat2 {
    0%, 100% {
        transform: translate3d(0, -30px, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(-40px, -70px, 40px) rotate(-8deg) scale(1.15);
    }
}

@keyframes morphFloat3 {
    0%, 100% {
        transform: translate3d(0, -50px, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(30px, -100px, 50px) rotate(8deg) scale(1.1);
    }
}

@keyframes morphFloat4 {
    0%, 100% {
        transform: translate3d(0, -40px, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(-50px, -90px, 40px) rotate(-5deg) scale(1.05);
    }
}

@keyframes morphFloat5 {
    0%, 100% {
        transform: translate3d(0, -30px, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(45px, -70px, 30px) rotate(10deg) scale(1.1);
    }
}

@keyframes morphFloat6 {
    0%, 100% {
        transform: translate3d(0, -35px, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(-30px, -80px, 40px) rotate(-8deg) scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .auth-buttons {
        margin: 1rem 0;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-button {
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero .container {
        padding-left: 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .purple-orbs {
        opacity: 0.5;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Classes Page Styles */
.classes-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #301348, #000000);
    padding: 6rem 2rem 2rem;
}

.choose-year {
    font-size: 4rem;
    color: #C9AAD7;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    text-shadow: 
        0 0 20px rgba(201, 170, 215, 0.3),
        0 0 40px rgba(201, 170, 215, 0.2);
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.year-button {
    background: white;
    color: #301348;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.5rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.year-button:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    background: #C9AAD7;
    color: white;
}

/* Responsive Design for Classes Page */
@media (max-width: 768px) {
    .choose-year {
        font-size: 3rem;
        margin-bottom: 3rem;
    }

    .year-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .year-button {
        font-size: 1.25rem;
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .choose-year {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .year-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .year-button {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }
}

/* First Year Classes Page Styles */
.choose-class {
    font-size: 4rem;
    color: #C9AAD7;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(201, 170, 215, 0.3);
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.class-button {
    background: white;
    color: #301348;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.5rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(201, 170, 215, 0.3);
}

.class-button:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(201, 170, 215, 0.4);
    background: #C9AAD7;
    color: white;
}

/* Responsive Design for First Year Classes Page */
@media (max-width: 1024px) {
    .class-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .choose-class {
        font-size: 3rem;
        margin-bottom: 3rem;
    }

    .class-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .class-button {
        font-size: 1.25rem;
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .choose-class {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .class-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .class-button {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }
}

/* Course Page Styles */
.course-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #301348, #000000);
    padding: 6rem 2rem 2rem;
}

.course-title {
    font-size: 4rem;
    color: #C9AAD7;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(201, 170, 215, 0.3);
}

.semester-sections {
    display: flex;
    gap: 4rem;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.semester-column {
    flex: 1;
    max-width: 600px;
}

.semester-title {
    font-size: 2.5rem;
    color: #C9AAD7;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.topic-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topic-button {
    background: white;
    color: #301348;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(201, 170, 215, 0.3);
}

.topic-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(201, 170, 215, 0.4);
    background: #C9AAD7;
    color: white;
}

/* Responsive Design for Course Page */
@media (max-width: 1024px) {
    .semester-sections {
        gap: 2rem;
        padding: 0 1rem;
    }

    .topic-button {
        font-size: 1.1rem;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .course-title {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .semester-sections {
        flex-direction: column;
        gap: 3rem;
    }

    .semester-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .topic-grid {
        gap: 0.875rem;
    }
}

@media (max-width: 480px) {
    .course-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .semester-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .topic-button {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Lesson Page Styles */
.lesson-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    background: #1E0B2F;
    padding: 6rem 2rem 2rem;
}

.lesson-title {
    font-size: 4rem;
    color: #C9AAD7;
    text-align: left;
    margin-bottom: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.resources-grid {
    display: grid;
    grid-template-areas: 
        "main resume"
        "main models"
        "other other"
        "qcms qcms";
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.resource-card {
    background: white;
    border-radius: 30px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(201, 170, 215, 0.2);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.resource-card.main-resources {
    grid-area: main;
    min-height: 300px;
}

.resource-card.resume {
    grid-area: resume;
    min-height: 140px;
}

.resource-card.models {
    grid-area: models;
    min-height: 140px;
}

.resource-card.other {
    grid-area: other;
    min-height: 140px;
}

.resource-card.qcms {
    grid-area: qcms;
    min-height: 140px;
}

.resource-title {
    color: #9B6B9E;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.resource-content {
    padding: 0.5rem;
    text-align: center;
    
}

.resource-info a {
    color: #301348;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    text-align: center;
    text-decoration:none;
}

.resource-info p {
    color: #301348;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    text-align: center;
    text-decoration:none;
}

/* Hover Effects */
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(201, 170, 215, 0.3),
        0 0 20px rgba(201, 170, 215, 0.2);
}

/* Responsive Design for Lesson Page */
@media (max-width: 1024px) {
    .resources-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .resource-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .lesson-title {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .resources-grid {
        grid-template-areas: 
            "main"
            "resume"
            "models"
            "other"
            "qcms";
    }

    .resource-card {
        min-height: auto !important;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .lesson-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .resource-title {
        font-size: 1.25rem;
    }

    .resource-card {
        padding: 1rem;
    }
}

/* Login Page Styles */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #301348, #000000);
    padding: 6rem 2rem 2rem;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 
        0 8px 32px rgba(201, 170, 215, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.login-container h1 {
    color: #C9AAD7;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #C9AAD7;
    font-size: 1.1rem;
    font-weight: 500;
}

.form-group input {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 15px;
    padding: 1rem;
    font-size: 1rem;
    color: #301348;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #C9AAD7;
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.form-footer p {
    color: #C9AAD7;
    font-size: 0.9rem;
}

.form-footer a {
    color: #E2CCF0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: white;
}

.login-button {
    background: #C9AAD7;
    color: #301348;
    border: none;
    border-radius: 25px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 170, 215, 0.3);
}

.login-button:hover {
    background: #E2CCF0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 170, 215, 0.4);
}

/* Responsive Design for Login Page */
@media (max-width: 768px) {
    .login-container {
        padding: 2rem;
    }

    .login-container h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }

    .login-container h1 {
        font-size: 2rem;
    }

    .login-button {
        padding: 0.875rem 2.5rem;
        font-size: 1rem;
    }
}

/* Sign Up Page Specific Styles */
.signup-container {
    max-width: 600px;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.form-row .form-group {
    flex: 1;
}

select {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 15px;
    padding: 1rem;
    font-size: 1rem;
    color: #301348;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23301348' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #C9AAD7;
}

select option {
    color: #301348;
    background: white;
}

/* Update responsive styles for sign-up */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0;
    }

    .signup-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .signup-container {
        padding: 1.5rem;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 20;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #C9AAD7;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Update mobile styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 6rem 2rem 2rem;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-top: 1rem;
    }

    .nav-button {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .signup-container {
        padding: 1.5rem;
    }
}

/* Google Sign Up Button */
.social-signup {
    margin-bottom: 1.5rem;
}

.google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: white;
    color: #3c4043;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: rgba(30, 11, 47, 0.8);
    color: #C9AAD7;
    padding: 0 15px;
    font-size: 0.9rem;
}

/* Update responsive styles */
@media (max-width: 480px) {
    .google-button {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .google-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
} 
/* QCM Option Cards - Modern Multiple Choice */
.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.1rem 0 0 0;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: #f6f2fa;
    color: #301348;
    font-size: 1.13rem;
    font-weight: 700;
    border-radius: 16px;
    box-shadow: 0 2px 8px #c9aad733, 0 1.5px 6px #0001;
    padding: 1rem 1.5rem;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: background 0.18s, border 0.18s, box-shadow 0.18s, color 0.18s;
    user-select: none;
}

.option-card:hover {
    background: #e7d6f5;
    color: #9B6B9E;
    box-shadow: 0 4px 16px #c9aad7aa;
}

.option-input {
    display: none;
}

.option-card .option-letter {
    font-weight: 900;
    min-width: 2.2em;
    display: inline-block;
}

.option-card:has(.option-input:checked) {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    color: #fff;
    border: 2px solid #9B6B9E;
    box-shadow: 0 6px 24px #9B6B9E55, 0 2px 8px #c9aad7;
}

.option-card:has(.option-input:checked) .option-letter {
    color: #fff;
    position: relative;
}

.option-card:has(.option-input:checked) .option-letter::after {
    content: '\2713';
    color: #fff;
    background: #9B6B9E;
    border-radius: 50%;
    font-size: 0.9em;
    margin-left: 0.5em;
    padding: 0.1em 0.3em;
    vertical-align: middle;
    box-shadow: 0 2px 8px #fff3;
}

/* Responsive for options */
@media (max-width: 600px) {
    .option-card {
        padding: 0.7rem 0.7rem;
        font-size: 1rem;
    }
}
/* Forum Page Styles */
.forum-section {
    background: #f8f9fa;
    padding: 4rem 0 2rem 0;
    min-height: calc(100vh - 80px);
}

.forum-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.forum-title {
    color: #301348;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.forum-desc {
    color: #9B6B9E;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}

.forum-new-btn {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    padding: 0.7rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px #c9aad755;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.forum-new-btn:hover {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    color: #301348;
    box-shadow: 0 8px 24px #9B6B9E33;
}

.forum-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.forum-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px #c9aad733, 0 1.5px 6px #0001;
    padding: 1.5rem 2rem;
    transition: box-shadow 0.2s, transform 0.2s;
    border-left: 6px solid #C9AAD7;
}
.forum-card:hover {
    box-shadow: 0 8px 32px #9B6B9E33, 0 2px 8px #c9aad7;
    transform: translateY(-3px) scale(1.01);
}

.forum-topic {
    color: #301348;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.forum-meta {
    color: #9B6B9E;
    font-size: 0.98rem;
    margin-bottom: 0.7rem;
}
.forum-author {
    font-weight: 700;
}
.forum-date {
    font-style: italic;
}

.forum-preview {
    color: #444;
    font-size: 1.08rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 700px) {
    .forum-card {
        padding: 1rem 0.7rem;
    }
    .forum-header {
        align-items: stretch;
    }
}
/* Forum Layout with Sidebar */
.forum-flex {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.forum-sidebar {
    min-width: 180px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px #c9aad733, 0 1.5px 6px #0001;
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    margin-bottom: 2rem;
}

.sidebar-title {
    color: #9B6B9E;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.year-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.year-item {
    color: #9B6B9E;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    margin: 0 0.2rem;
    border: 2px solid transparent;
}

.year-item.active, .year-item:hover {
    background: #f6f2fa;
    color: #301348;
    border: 2px solid #C9AAD7;
}

.forum-main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .forum-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    .forum-sidebar {
        width: 100%;
        margin-bottom: 0;
        padding: 1.2rem 0.7rem;
    }
    .forum-main {
        width: 100%;
    }
}
/* Forum Pagination */
.forum-pagination {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 0 0;
}
.pagination-list {
    display: flex;
    gap: 0.7rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination-item {
    background: #f6f2fa;
    color: #9B6B9E;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px #c9aad733;
    border: 2px solid transparent;
    transition: background 0.18s, color 0.18s, border 0.18s;
    margin: 0 0.1rem;
}
.pagination-item.active, .pagination-item:hover {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    border: 2px solid #C9AAD7;
}
.pagination-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Forum New Post Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(48, 19, 72, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-window {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px #9B6B9E33, 0 2px 8px #c9aad7;
    padding: 2.2rem 2.5rem 2rem 2.5rem;
    min-width: 340px;
    max-width: 95vw;
    width: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    animation: modalPop 0.18s cubic-bezier(.4,2,.6,1) 1;
}
@keyframes modalPop {
    from { transform: scale(0.92) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #9B6B9E;
    cursor: pointer;
    transition: color 0.18s;
    z-index: 2;
}
.modal-close:hover {
    color: #301348;
}
.modal-title {
    color: #301348;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.modal-form label {
    color: #9B6B9E;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}
.modal-form input[type="text"],
.modal-form textarea,
.modal-form select {
    border: 1.5px solid #C9AAD7;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
    font-family: inherit;
    margin-bottom: 0.2rem;
    background: #f6f2fa;
    color: #301348;
    transition: border 0.18s;
}
.modal-form input[type="text"]:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    border: 2px solid #9B6B9E;
    outline: none;
}
.modal-form input[type="file"] {
    margin-bottom: 0.5rem;
}
.modal-post-btn {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    padding: 0.7rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px #c9aad755;
    cursor: pointer;
    margin-top: 0.7rem;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.modal-post-btn:hover {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    color: #301348;
    box-shadow: 0 8px 24px #9B6B9E33;
}
@media (max-width: 600px) {
    .modal-window {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
        min-width: 0;
        width: 98vw;
    }
}
/* Forum Cards */
.forum-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 16px #c9aad733, 0 1.5px 6px #0001;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.forum-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px #9B6B9E33, 0 2px 8px #c9aad7;
}

/* Post Details Modal Styles */
.post-details-window {
    max-width: 800px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
}

.post-details-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-title {
    color: #301348;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-meta {
    color: #9B6B9E;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.post-author {
    font-weight: 700;
    color: #301348;
}

.post-year {
    background: #f6f2fa;
    color: #9B6B9E;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
}

.post-body {
    color: #301348;
    font-size: 1.1rem;
    line-height: 1.6;
    white-space: pre-line;
}

/* Comments Section */
.post-comments {
    margin-top: 1rem;
    border-top: 2px solid #f6f2fa;
    padding-top: 2rem;
}

.post-comments h3 {
    color: #301348;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.comment {
    background: #f6f2fa;
    border-radius: 15px;
    padding: 1.2rem 1.5rem;
    transition: transform 0.2s;
}

.comment:hover {
    transform: translateX(5px);
}

.comment-meta {
    margin-bottom: 0.5rem;
    color: #9B6B9E;
    font-size: 0.95rem;
}

.comment-author {
    font-weight: 700;
    color: #301348;
}

.comment-content {
    color: #301348;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Comment Form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.comment-form textarea {
    width: 100%;
    border: 2px solid #C9AAD7;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.05rem;
    font-family: inherit;
    background: #f6f2fa;
    color: #301348;
    resize: vertical;
    min-height: 100px;
    transition: border 0.2s, box-shadow 0.2s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #9B6B9E;
    box-shadow: 0 4px 16px #c9aad733;
}

.comment-submit {
    align-self: flex-end;
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px #9B6B9E44;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .post-details-window {
        padding: 1.5rem;
        width: 95vw;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .comment {
        padding: 1rem;
    }

    .comment-submit {
        width: 100%;
    }
}

/* QCM Creation Section */
.qcm-creation-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f6f2fa 0%, #fff 100%);
    min-height: calc(100vh - 80px);
}

.qcm-creation-title {
    color: #301348;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.qcm-creation-desc {
    color: #9B6B9E;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* QCM Steps */
.qcm-steps {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.qcm-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.qcm-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-title {
    color: #301348;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.step-content {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(201, 170, 215, 0.1);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.option-card {
    position: relative;
    background: #f6f2fa;
    border: 2px solid #C9AAD7;
    border-radius: 15px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;

}

.option-card span {
    color: #9B6B9E;
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
}

.option-card:hover {
    background: #C9AAD7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 170, 215, 0.3);
}

.option-card:hover span {
    color: #fff;
}

.option-card input[type="radio"]:checked + span,
.option-card input[type="checkbox"]:checked + span {
    color: #fff;
    
}

.option-card input[type="radio"]:checked ~ .option-card,
.option-card input[type="checkbox"]:checked ~ .option-card {
    background: #9B6B9E;
    border-color: #9B6B9E;
    box-shadow: 0 4px 12px rgba(155, 107, 158, 0.4);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.setting-card {
    background: #f6f2fa;
    border-radius: 15px;
    padding: 1.5rem;
}

.setting-card h4 {
    color: #301348;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.range-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.range-input input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #C9AAD7;
    border-radius: 4px;
    outline: none;
}

.range-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #9B6B9E;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.range-input input[type="range"]::-webkit-slider-thumb:hover {
    background: #301348;
    transform: scale(1.1);
}

.range-value {
    text-align: center;
    color: #9B6B9E;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    background: #C9AAD7;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #9B6B9E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 107, 158, 0.3);
}

.nav-btn:disabled {
    background: #e9e9e9;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .qcm-creation-title {
        font-size: 2rem;
    }

    .qcm-creation-desc {
        font-size: 1.1rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .nav-btn {
        width: 100%;
    }
}
.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.option-card {
    position: relative;
    background: #f6f2fa;
    border: 2px solid #C9AAD7;
    border-radius: 15px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.option-card.multiple {
    padding-right: 2.5rem;
}

.option-card.multiple::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 1.2rem;
    height: 1.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239B6B9E'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.option-card {
    position: relative;
    background: #f6f2fa;
    border: 2px solid #C9AAD7;
    border-radius: 15px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.option-card.multiple {
    padding-right: 2.5rem;
}

.option-card.multiple::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 1.2rem;
    height: 1.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239B6B9E'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.option-card:hover {
    background: #C9AAD7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 170, 215, 0.3);
}

.option-card:hover span {
    color: #fff;
}

.option-card input[type="radio"]:checked + span,
.option-card input[type="checkbox"]:checked + span {
    color: #fff;
    background: #301348;
    border-color: #301348;
    box-shadow: 0 4px 12px rgba(48, 19, 72, 0.4);
}

.option-card input[type="radio"]:checked ~ .option-card,
.option-card input[type="checkbox"]:checked ~ .option-card {
    background: #301348;
    border-color: #301348;
    box-shadow: 0 4px 12px rgba(48, 19, 72, 0.4);
}

/* Navigation Buttons */
.nav-btn {
    background: #C9AAD7;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #efdcff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 19, 72, 0.3);
}

.nav-btn:disabled {
    background: #e9e9e9;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.question-list-item.answered {
  background-color: #313131; /* light gray */
  color: #888;
  cursor: not-allowed;
  pointer-events: none;
  font-style: italic;
}
.qcm-image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
/* Dropdown Styles */
.nav-link.dropdown {
    position: relative;
    cursor: pointer;
}

.nav-link.dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(239, 221, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 180px;
}

.dropdown-item {
    color: rgba(25, 0, 49, 0.95);
    text-decoration: none;
    padding: 0.5rem 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.dropdown-item:hover {
    color: white;
}
/* Support dropdown open state on mobile */
.nav-link.dropdown.open .dropdown-menu {
    display: flex;
    flex-direction: column;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0.5rem 0 0 0;
}

@media (max-width: 768px) {
    .dropdown-menu {
        width: 100%;
        align-items: center;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .nav-link.dropdown > span::after {
        content: ' ▼';
        font-size: 0.7em;
    }
}
.question-list-item.correct {
  background: #c4f5c4 !important;
  color: #1f7a1f !important;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(34, 139, 34, 0.3);
}

.question-list-item.wrong {
  background: #f5c4c4 !important;
  color: #7a1f1f !important;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(139, 34, 34, 0.3);
}

/* Modern Featured Section */
.featured-modern-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 2.5rem;
}

.feature-card {
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 6px 32px #c9aad733, 0 1.5px 6px #0001;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    min-width: 220px;
    max-width: 270px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s, background 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}

.feature-card h3 {
    color: #301348;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.feature-card p {
    color: #9B6B9E;
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Fun hover/click effects */
.feature-card:hover {
    transform: translateY(-10px) scale(1.07) rotate(-2deg);
    box-shadow: 0 12px 40px #9B6B9E33, 0 2px 8px #c9aad7;
    background: linear-gradient(120deg, #f6f2fa 60%, #e2ccf0 100%);
}
.feature-card:active {
    transform: scale(0.97) rotate(1deg);
    box-shadow: 0 2px 8px #c9aad7;
}
.feature-card:hover .feature-icon {
    transform: scale(1.18) rotate(8deg);
}

/* Unique accent for each card */
.qcm-card {
    border-top: 5px solid #C9AAD7;
}
.flashcard-card {
    border-top: 5px solid #9B6B9E;
}
.forum-card {
    border-top: 5px solid #E2CCF0;
}
.resources-card {
    border-top: 5px solid #C9AAD7;
}
.ai-card {
    border-top: 5px solid #9B6B9E;
}

/* Responsive for featured grid */
@media (max-width: 900px) {
    .featured-modern-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .feature-card {
        max-width: 95vw;
        min-width: 0;
    }
}

/* 3D Models Section */
.models-3d-section {
    background: linear-gradient(120deg, #f6f2fa 60%, #e2ccf0 100%);
    padding: 4rem 0 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}
.models-3d-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.models-3d-content {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 480px;
}
.models-3d-title {
    color: #301348;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}
.models-3d-desc {
    color: #9B6B9E;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 0;
}
.models-3d-video-frame {
    flex: 1 1 400px;
    min-width: 320px;
    max-width: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 8px 32px #c9aad733, 0 1.5px 6px #0001;
    padding: 2rem;
    border: 2.5px solid #E2CCF0;
    position: relative;
    transition: box-shadow 0.2s;
}
.models-3d-video-frame:hover {
    box-shadow: 0 16px 48px #9B6B9E33, 0 2px 8px #c9aad7;
}
.models-3d-video {
    width: 100%;
    max-width: 420px;
    border-radius: 1.2rem;
    box-shadow: 0 4px 16px #c9aad7aa;
    border: none;
    background: #000;
}
@media (max-width: 900px) {
    .models-3d-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    .models-3d-video-frame {
        padding: 1rem;
    }
}

/* ABOUT PAGE STYLES */
.about-hero {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(120deg, #301348 60%, #9B6B9E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5rem 0 3rem 0;
}
.about-hero-bg {
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}
.about-dna {
    position: absolute;
    left: 5vw;
    top: 10vh;
    width: 120px;
    height: 320px;
    opacity: 0.18;
    filter: blur(1px) drop-shadow(0 8px 32px #9B6B9E44);
    z-index: 1;
    animation: aboutDnaFloat 7s ease-in-out infinite alternate;
}
@keyframes aboutDnaFloat {
    0% { transform: translateY(0) rotate(-8deg) scale(1); }
    100% { transform: translateY(30px) rotate(8deg) scale(1.04); }
}
.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
    max-width: 700px;
}
.about-hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    font-weight: 900;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
}
.about-gradient {
    background: linear-gradient(90deg, #C9AAD7 0%, #E2CCF0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: 2px;
    filter: drop-shadow(0 2px 8px #c9aad7cc);
}
.about-hero-desc {
    color: #E2CCF0;
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 0.7rem;
}
.about-highlight {
    color: #fff;
    background: #9B6B9E;
    border-radius: 12px;
    padding: 0.2em 0.7em;
    font-weight: 700;
    margin-left: 0.3em;
    box-shadow: 0 2px 8px #9B6B9E44;
    display: inline-block;
    animation: highlightPulse 1.5s infinite alternate;
}
@keyframes highlightPulse {
    0% { background: #9B6B9E; }
    100% { background: #C9AAD7; }
}

.about-why {
    background: #fff;
    padding: 4rem 0 3rem 0;
}
.about-section-title {
    color: #301348;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
}
.about-why-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
}
.about-why-card {
    background: linear-gradient(120deg, #f6f2fa 60%, #e2ccf0 100%);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px #c9aad733, 0 1.5px 6px #0001;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    min-width: 220px;
    max-width: 270px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s, background 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.about-why-card:hover {
    transform: translateY(-10px) scale(1.07) rotate(-2deg);
    box-shadow: 0 12px 40px #9B6B9E33, 0 2px 8px #c9aad7;
    background: linear-gradient(120deg, #e2ccf0 60%, #f6f2fa 100%);
}
.about-why-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 2px 8px #c9aad7cc);
}
.about-why-card h3 {
    color: #301348;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.about-why-card p {
    color: #9B6B9E;
    font-size: 1.05rem;
    opacity: 0.9;
}

.about-steps {
    background: #f6f2fa;
    padding: 4rem 0 3rem 0;
}
.about-steps-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2.5rem;
}
.about-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 220px;
    flex: 1 1 180px;
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 4px 16px #c9aad733;
    padding: 2rem 1.2rem 1.2rem 1.2rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.about-step:hover {
    transform: translateY(-6px) scale(1.04) rotate(-1deg);
    box-shadow: 0 8px 32px #9B6B9E33;
}
.about-step-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px #c9aad7cc;
}
.about-step-content h4 {
    color: #301348;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}
.about-step-content p {
    color: #9B6B9E;
    font-size: 1rem;
    text-align: center;
}

.about-cta {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    padding: 3rem 0 3rem 0;
    text-align: center;
}
.about-cta h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}
.about-cta-btn {
    display: inline-block;
    background: #fff;
    color: #9B6B9E;
    font-size: 1.3rem;
    font-weight: 900;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 16px #c9aad7cc;
    text-decoration: none;
    letter-spacing: 1px;
    margin-top: 1.2rem;
    transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
}
.about-cta-btn:hover {
    background: #E2CCF0;
    color: #301348;
    transform: translateY(-4px) scale(1.05) rotate(-2deg);
    box-shadow: 0 8px 32px #9B6B9E33;
}

@media (max-width: 900px) {
    .about-why-grid, .about-steps-timeline {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .about-why-card, .about-step {
        max-width: 95vw;
        min-width: 0;
    }
    .about-hero-content h1 {
        font-size: 2.2rem;
    }
}

/* Forum Modernization */
.forum-card {
    background: rgba(255,255,255,0.85);
    border-radius: 22px;
    box-shadow: 0 8px 32px #c9aad744, 0 1.5px 6px #0001;
    padding: 1.5rem 2rem;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    border-left: 6px solid #C9AAD7;
    backdrop-filter: blur(8px);
    position: relative;
    margin-bottom: 0.5rem;
}
.forum-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.forum-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #c9aad7cc;
    letter-spacing: 1px;
    user-select: none;
}
.comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    margin-right: 0.7rem;
    float: left;
}
.forum-year-pill {
    background: linear-gradient(90deg, #C9AAD7 0%, #E2CCF0 100%);
    color: #301348;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 0.2em 1em;
    margin-left: auto;
    box-shadow: 0 2px 8px #c9aad7cc;
    letter-spacing: 1px;
    display: inline-block;
}
.forum-new-btn {
    position: relative;
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    padding: 0.7rem 2.5rem 0.7rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px #c9aad755;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.18s;
    animation: pulseBtn 1.5s infinite alternate;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.forum-new-btn:hover {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    color: #301348;
    box-shadow: 0 8px 24px #9B6B9E33;
    transform: scale(1.04) translateY(-2px);
}
@keyframes pulseBtn {
    0% { box-shadow: 0 4px 16px #c9aad755; }
    100% { box-shadow: 0 8px 32px #9B6B9E55; }
}
.forum-new-icon {
    font-size: 1.3em;
    margin-right: 0.2em;
    filter: drop-shadow(0 2px 8px #c9aad7cc);
}
.forum-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin: 2rem 0;
    color: #9B6B9E;
    font-size: 1.2rem;
    opacity: 0.8;
}
.forum-empty-illustration {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px #c9aad7cc);
}
.forum-empty-message {
    font-size: 1.2rem;
    color: #301348;
    margin-bottom: 0.5rem;
}
.year-icon {
    margin-right: 0.5em;
    font-size: 1.1em;
    vertical-align: middle;
}
.year-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: background 0.18s, color 0.18s, border 0.18s, transform 0.18s;
    border-radius: 12px;
    padding: 0.5em 0.7em;
    cursor: pointer;
}
.year-item.active, .year-item:hover {
    background: #f6f2fa;
    color: #301348;
    border: 2px solid #C9AAD7;
    transform: scale(1.04) translateX(4px);
}
.year-icon {
    margin-right: 0.5em;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Remove underline from sidebar year links and pagination links */
.year-list a, .pagination-item a {
    text-decoration: none !important;
    color: inherit;
    transition: color 0.2s;
}
.year-list a:hover, .year-item.active a {
    color: #9B6B9E;
}
.pagination-item a:hover, .pagination-item.active a {
    color: #fff;
}

/* Modernize pagination item */
.pagination-item {
    background: #f6f2fa;
    color: #9B6B9E;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px #c9aad733;
    border: 2px solid transparent;
    transition: background 0.18s, color 0.18s, border 0.18s;
    margin: 0 0.1rem;
}
.pagination-item.active, .pagination-item:hover {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    border: 2px solid #C9AAD7;
}
.pagination-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Frosted glass effect for forum cards (already present, reinforce) */
.forum-card {
    background: rgba(255,255,255,0.85);
    border-radius: 22px;
    box-shadow: 0 8px 32px #c9aad744, 0 1.5px 6px #0001;
    padding: 1.5rem 2rem;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    border-left: 6px solid #C9AAD7;
    backdrop-filter: blur(8px);
    position: relative;
    margin-bottom: 0.5rem;
}

/* Modal pop-in animation */
.modal-window {
    animation: modalPop 0.22s cubic-bezier(.4,2,.6,1) 1;
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Highlight new post button (already present, reinforce) */
.forum-new-btn {
    position: relative;
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    padding: 0.7rem 2.5rem 0.7rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px #c9aad755;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.18s;
    animation: pulseBtn 1.5s infinite alternate;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
@keyframes pulseBtn {
    0% { box-shadow: 0 4px 16px #c9aad755; }
    100% { box-shadow: 0 8px 32px #9B6B9E55; }
}

/* Fun empty state illustration/message */
.forum-list-empty {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin: 2rem 0;
    color: #9B6B9E;
    font-size: 1.2rem;
    opacity: 0.8;
}
.forum-empty-illustration {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px #c9aad7cc);
}
.forum-empty-message {
    font-size: 1.2rem;
    color: #301348;
    margin-bottom: 0.5rem;
}

/* Sidebar year-item hover and active */
.year-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: background 0.18s, color 0.18s, border 0.18s, transform 0.18s;
    border-radius: 12px;
    padding: 0.5em 0.7em;
    cursor: pointer;
}
.year-item.active, .year-item:hover {
    background: #f6f2fa;
    color: #301348;
    border: 2px solid #C9AAD7;
    transform: scale(1.04) translateX(4px);
}
.year-icon {
    margin-right: 0.5em;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Newsletter Page Styles */
.newsletter-hero {
    background: linear-gradient(120deg, #f6f2fa 60%, #e2ccf0 100%);
    padding: 4rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    position: relative;
}
.newsletter-frame {
    position: relative;
    width: 340px;
    height: 220px;
    margin-bottom: 2.5rem;
}
.newsletter-img {
    position: absolute;
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px #c9aad744, 0 1.5px 6px #0001;
    border: 4px solid #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.img-back {
    left: 0;
    top: 40px;
    z-index: 1;
    transform: rotate(-10deg) scale(0.98);
    opacity: 0.92;
}
.img-front {
    left: 80px;
    top: 0;
    z-index: 2;
    transform: rotate(7deg) scale(1.04);
}
.newsletter-frame:hover .img-back {
    transform: rotate(-13deg) scale(1.01) translateY(8px);
    box-shadow: 0 16px 48px #9B6B9E33;
}
.newsletter-frame:hover .img-front {
    transform: rotate(10deg) scale(1.07) translateY(-8px);
    box-shadow: 0 24px 64px #C9AAD7aa;
}
.newsletter-hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.newsletter-hero-content h1 {
    font-size: 2.5rem;
    color: #301348;
    font-weight: 900;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
}
.newsletter-desc {
    color: #9B6B9E;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 0.7rem;
}

.newsletter-subscribe-section {
    background: #fff;
    padding: 2.5rem 0 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.newsletter-subscribe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 500px;
}
.newsletter-form {
    display: flex;
    gap: 0.7rem;
    width: 100%;
}
.newsletter-input {
    flex: 1 1 220px;
    padding: 1rem 1.2rem;
    border-radius: 2rem;
    border: 2px solid #C9AAD7;
    font-size: 1.1rem;
    font-family: inherit;
    color: #301348;
    background: #f6f2fa;
    transition: border 0.2s, box-shadow 0.2s;
}
.newsletter-input:focus {
    outline: none;
    border: 2.5px solid #9B6B9E;
    box-shadow: 0 2px 8px #c9aad7cc;
}
.newsletter-btn {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    border: none;
    border-radius: 2rem;
    padding: 1rem 2.2rem;
    cursor: pointer;
    box-shadow: 0 4px 16px #c9aad7cc;
    transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
    letter-spacing: 1px;
}
.newsletter-btn:hover {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    color: #301348;
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 8px 32px #9B6B9E33;
}
.newsletter-privacy {
    color: #9B6B9E;
    font-size: 0.98rem;
    margin-top: 0.5rem;
    opacity: 0.8;
    text-align: center;
}

.newsletter-inside-section {
    background: linear-gradient(120deg, #f6f2fa 60%, #e2ccf0 100%);
    padding: 3rem 0 3rem 0;
    text-align: center;
}
.newsletter-inside-container h2 {
    color: #301348;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}
.newsletter-benefits {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}
.newsletter-benefits li {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 8px #c9aad7cc;
    padding: 1.1rem 1.5rem;
    color: #301348;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.18s, box-shadow 0.18s;
}
.newsletter-benefits li:hover {
    transform: scale(1.03) translateX(6px);
    box-shadow: 0 8px 24px #9B6B9E33;
}
.benefit-icon {
    font-size: 1.5rem;
    margin-right: 0.7rem;
    filter: drop-shadow(0 2px 8px #c9aad7cc);
}

@media (max-width: 700px) {
    .newsletter-frame {
        width: 220px;
        height: 140px;
    }
    .newsletter-img {
        width: 140px;
        height: 90px;
    }
    .img-back {
        left: 0;
        top: 20px;
    }
    .img-front {
        left: 50px;
        top: 0;
    }
    .newsletter-hero-content h1 {
        font-size: 1.5rem;
    }
    .newsletter-benefits li {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
}

/* Newsletter Join Section (Index) */
.newsletter-join-section {
    background: linear-gradient(120deg, #f6f2fa 60%, #e2ccf0 100%);
    padding: 3rem 0 2.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.newsletter-join-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-join-title {
    color: #301348;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-align: center;
}
.newsletter-join-desc {
    color: #9B6B9E;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    text-align: center;
}
.newsletter-join-form {
    display: flex;
    gap: 0.7rem;
    width: 100%;
    justify-content: center;
}
.newsletter-join-input {
    flex: 1 1 220px;
    padding: 1rem 1.2rem;
    border-radius: 2rem;
    border: 2px solid #C9AAD7;
    font-size: 1.1rem;
    font-family: inherit;
    color: #301348;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
}
.newsletter-join-input:focus {
    outline: none;
    border: 2.5px solid #9B6B9E;
    box-shadow: 0 2px 8px #c9aad7cc;
}
.newsletter-join-btn {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    border: none;
    border-radius: 2rem;
    padding: 1rem 2.2rem;
    cursor: pointer;
    box-shadow: 0 4px 16px #c9aad7cc;
    transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
    letter-spacing: 1px;
}
.newsletter-join-btn:hover {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    color: #301348;
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 8px 32px #9B6B9E33;
}
.newsletter-join-privacy {
    color: #9B6B9E;
    font-size: 0.98rem;
    margin-top: 0.5rem;
    opacity: 0.8;
    text-align: center;
}
@media (max-width: 700px) {
    .newsletter-join-title {
        font-size: 1.3rem;
    }
    .newsletter-join-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .newsletter-join-btn {
        width: 100%;
    }
}

/* Read Page Classic Overhaul */
.read-hero {
    background: linear-gradient(120deg, #301348 60%, #9B6B9E 100%);
    padding: 5rem 0 3rem 0;
    text-align: center;
}
.read-hero-title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
.read-hero-desc {
    color: #E2CCF0;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 0.7rem;
}
.articles-section {
    background: #f8f9fa;
    padding: 4rem 0 2rem 0;
}
.article-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}
.article-card.classic {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px #c9aad733, 0 1.5px 6px #0001;
    padding: 2rem 2rem 2rem 1.5rem;
    align-items: flex-start;
    gap: 2rem;
    transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
    position: relative;
    overflow: hidden;
}
.article-card.classic:hover {
    box-shadow: 0 12px 40px #9B6B9E33, 0 2px 8px #c9aad7;
    background: linear-gradient(120deg, #f6f2fa 60%, #e2ccf0 100%);
    transform: translateY(-4px) scale(1.01);
}
.article-card-img-wrap {
    width: 180px;
    min-width: 180px;
    height: 120px;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 2px 8px #c9aad7cc;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-card-img-wrap img.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2rem;
    display: block;
}
.article-card-content {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    justify-content: center;
}
.article-title {
    color: #301348;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.article-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.98rem;
    color: #C9AAD7;
    align-items: center;
    margin-bottom: 0.2rem;
}
.article-author {
    font-weight: 700;
    color: #9B6B9E;
}
.article-date {
    color: #301348;
    opacity: 0.7;
}
.article-summary {
    color: #666;
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}
.read-more-btn {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 2rem;
    padding: 0.7rem 2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px #c9aad7cc;
    transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    align-self: flex-start;
}
.read-more-btn:hover {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    color: #301348;
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 8px 32px #9B6B9E33;
}
/* Modal wider and with image */
.modal-window.article-modal-window {
    max-width: 900px;
    width: 98vw;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
}
.article-modal-img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px #c9aad733;
    background: #eee;
}
.article-modal-title {
    color: #301348;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    text-align: left;
}
.article-modal-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 1.05rem;
    color: #C9AAD7;
    align-items: center;
    margin-bottom: 1.2rem;
}
.article-modal-author {
    font-weight: 700;
    color: #9B6B9E;
}
.article-modal-date {
    color: #301348;
    opacity: 0.7;
}
.article-modal-body {
    color: #301348;
    font-size: 1.1rem;
    line-height: 1.7;
    white-space: pre-line;
}
@media (max-width: 900px) {
    .article-list {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .article-card.classic {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.2rem 1rem 1.2rem 1rem;
    }
    .article-card-img-wrap {
        width: 100%;
        min-width: 0;
        height: 180px;
        margin-bottom: 1rem;
    }
}
@media (max-width: 600px) {
    .read-hero-title {
        font-size: 1.7rem;
    }
    .modal-window.article-modal-window {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
    .article-modal-title {
        font-size: 1.2rem;
    }
    .article-modal-img {
        max-height: 180px;
    }
}

/* Article Controls */
.article-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.2rem;
}
.article-search {
    flex: 2 1 220px;
    padding: 0.8rem 1.2rem;
    border-radius: 2rem;
    border: 2px solid #C9AAD7;
    font-size: 1.05rem;
    font-family: inherit;
    color: #301348;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
}
.article-search:focus {
    outline: none;
    border: 2.5px solid #9B6B9E;
    box-shadow: 0 2px 8px #c9aad7cc;
}
.article-sort {
    flex: 0 0 140px;
    padding: 0.8rem 1.2rem;
    border-radius: 2rem;
    border: 2px solid #C9AAD7;
    font-size: 1.05rem;
    color: #301348;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
}
.article-sort:focus {
    outline: none;
    border: 2.5px solid #9B6B9E;
    box-shadow: 0 2px 8px #c9aad7cc;
}
.tag-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tag-filter-btn {
    background: #f6f2fa;
    color: #9B6B9E;
    border-radius: 2rem;
    padding: 0.4em 1.1em;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid #C9AAD7;
    transition: background 0.18s, color 0.18s, border 0.18s;
    user-select: none;
}
.tag-filter-btn.active, .tag-filter-btn:hover {
    background: #C9AAD7;
    color: #fff;
    border-color: #9B6B9E;
}
/* Article Card Square Image */
.article-card-img-wrap {
    width: 140px;
    min-width: 140px;
    height: 140px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px #c9aad7cc;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-card-img-wrap img.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.article-card.classic {
    gap: 1.5rem;
}
/* Article Tags */
.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 0.2rem 0;
}
.article-tag {
    background: #f6f2fa;
    color: #9B6B9E;
    border-radius: 2rem;
    padding: 0.3em 1em;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid #C9AAD7;
    transition: background 0.18s, color 0.18s, border 0.18s;
    user-select: none;
}
.article-tag:hover {
    background: #C9AAD7;
    color: #fff;
    border-color: #9B6B9E;
}
/* Modal smaller and centered */
.modal-window.article-modal-window {
    max-width: 700px;
    width: 95vw;
    margin: 0 auto;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
}
@media (max-width: 900px) {
    .article-list {
        gap: 1.2rem;
        padding: 0 1rem;
    }
    .article-card.classic {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.2rem 1rem 1.2rem 1rem;
    }
    .article-card-img-wrap {
        width: 100%;
        min-width: 0;
        height: 140px;
        margin-bottom: 1rem;
    }
}
@media (max-width: 600px) {
    .read-hero-title {
        font-size: 1.7rem;
    }
    .modal-window.article-modal-window {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
    .article-modal-title {
        font-size: 1.2rem;
    }
    .article-modal-img {
        max-height: 140px;
    }
}

/* Article Grid Layout for Read Page */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.article-card.square {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 4px 24px #c9aad733, 0 1.5px 6px #0001;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    /* Remove aspect-ratio for auto height */
    min-width: 0;
    min-height: 0;
    transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
    position: relative;
    height: auto;
    max-height: none;
}
.article-card-img-wrap {
    width: 100%;
    height: 140px;
    min-height: 0;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .article-card.square {
        /* No aspect-ratio, auto height */
    }
    .article-card-img-wrap {
        height: 120px;
    }
}
@media (max-width: 600px) {
    .article-card.square {
        /* No aspect-ratio, auto height */
    }
    .article-card-img-wrap {
        height: 100px;
    }
}
.article-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.8rem 1.1rem 1.1rem 1.1rem;
    min-height: 0;
    box-sizing: border-box;
}
.article-title {
    color: #301348;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}
.article-meta {
    display: flex;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: #C9AAD7;
    align-items: center;
    margin-bottom: 0.1rem;
}
.article-author {
    font-weight: 700;
    color: #9B6B9E;
}
.article-date {
    color: #301348;
    opacity: 0.7;
}
.article-summary {
    color: #666;
    font-size: 0.98rem;
    opacity: 0.95;
    margin-bottom: 0.3rem;
}
.article-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.2rem 0 0.2rem 0;
}
.article-tag {
    background: #f6f2fa;
    color: #9B6B9E;
    border-radius: 2rem;
    padding: 0.2em 0.8em;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid #C9AAD7;
    transition: background 0.18s, color 0.18s, border 0.18s;
    user-select: none;
}
.article-tag:hover {
    background: #C9AAD7;
    color: #fff;
    border-color: #9B6B9E;
}
.read-more-btn {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-size: 1.01rem;
    font-weight: 700;
    border: none;
    border-radius: 2rem;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px #c9aad7cc;
    transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
    letter-spacing: 1px;
    margin-top: 0.3rem;
    align-self: flex-start;
}
.read-more-btn:hover {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    color: #301348;
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 8px 32px #9B6B9E33;
}
/* Modal wide, not tall, never full width */
.modal-window.article-modal-window {
    max-width: 900px;
    width: 70vw;
    margin: 0 auto;
    padding: 2.2rem 2.2rem 1.5rem 2.2rem;
    border-radius: 1.2rem;
}
.article-modal-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 0.7rem;
    margin-bottom: 1.2rem;
    background: #eee;
}
@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
        padding: 0 1rem;
    }
    .modal-window.article-modal-window {
        width: 95vw;
        max-width: 98vw;
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
    .article-card-img-wrap {
        height: 50%;
    }
    .article-card-content {
        height: 50%;
    }
}
@media (max-width: 600px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    .article-modal-img {
        max-height: 140px;
    }
    .article-card-img-wrap {
        height: 45%;
    }
    .article-card-content {
        height: 55%;
    }
}

/* Single Article Page Styles */
.article-hero {
    background: linear-gradient(120deg, #301348 60%, #9B6B9E 100%);
    padding: 4rem 0 2.5rem 0;
    text-align: center;
}
.article-hero-img-wrap {
    max-width: 540px;
    margin: 0 auto 2rem auto;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: 0;
    background: #eee;
}
.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.article-hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.article-hero-meta {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    color: #E2CCF0;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.article-hero-author {
    font-weight: 700;
    color: #E2CCF0;
}
.article-hero-date {
    color: #C9AAD7;
    opacity: 0.9;
}
.article-hero-tags {
    display: flex;
    gap: 0.5rem;
}
.article-tag {
    background: #f6f2fa;
    color: #9B6B9E;
    border-radius: 2rem;
    padding: 0.3em 1em;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid #C9AAD7;
    user-select: none;
    display: inline-block;
}
.back-to-articles {
    display: inline-block;
    color: #C9AAD7;
    background: #fff;
    border-radius: 2rem;
    padding: 0.5em 1.2em;
    font-weight: 700;
    margin-bottom: 2rem;
    text-decoration: none;
    box-shadow: 0 2px 8px #c9aad7cc;
    transition: background 0.18s, color 0.18s;
}
.back-to-articles:hover {
    background: #C9AAD7;
    color: #fff;
}
.article-content-section {
    background: #fff;
    padding: 3rem 0 3rem 0;
}
.article-content-container {
    /* Remove container styling - full width */
    padding: 0 2rem;
}
.article-content {
    color: #301348;
    font-size: 1.18rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .article-content-container {
        padding: 0 1rem;
    }
}
@media (max-width: 600px) {
    .article-content-container {
        padding: 0 0.5rem;
    }
}
.article-content ol, .article-content ul {
    margin: 1.2rem 0 1.2rem 2rem;
    color: #301348;
    font-size: 1.1rem;
}
.article-content p {
    margin-bottom: 1.2rem;
}
@media (max-width: 900px) {
    .article-hero-img-wrap {
        max-width: 98vw;
    }
    .article-content-container {
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    }
    .article-hero-title {
        font-size: 1.5rem;
    }
}
@media (max-width: 600px) {
    .article-hero-img-wrap {
        aspect-ratio: 1/1;
    }
    .article-content-container {
        padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    }
}

/* Simulations Page Styles */
.simulations-hero {
    background: linear-gradient(120deg, #301348 60%, #9B6B9E 100%);
    padding: 5rem 0 3rem 0;
    text-align: center;
}
.simulations-hero-title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
.simulations-hero-desc {
    color: #E2CCF0;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 0.7rem;
}

.simulations-section {
    background: #f8f9fa;
    padding: 4rem 0 2rem 0;
}
.simulations-container {
    display: flex;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Main Content */
.simulations-main {
    flex: 1;
    min-width: 0;
}

/* Controls */
.simulations-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.2rem;
}
.simulations-search {
    flex: 2 1 220px;
    padding: 0.8rem 1.2rem;
    border-radius: 2rem;
    border: 2px solid #C9AAD7;
    font-size: 1.05rem;
    font-family: inherit;
    color: #301348;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
}
.simulations-search:focus {
    outline: none;
    border: 2.5px solid #9B6B9E;
    box-shadow: 0 2px 8px #c9aad7cc;
}
.simulations-sort {
    flex: 0 0 140px;
    padding: 0.8rem 1.2rem;
    border-radius: 2rem;
    border: 2px solid #C9AAD7;
    font-size: 1.05rem;
    color: #301348;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
}
.simulations-sort:focus {
    outline: none;
    border: 2.5px solid #9B6B9E;
    box-shadow: 0 2px 8px #c9aad7cc;
}

/* Simulations Grid */
.simulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.simulation-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 4px 24px #c9aad733, 0 1.5px 6px #0001;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
    position: relative;
    height: auto;
    cursor: pointer;
}
.simulation-card:hover {
    box-shadow: 0 12px 40px #9B6B9E33, 0 2px 8px #c9aad7;
    background: linear-gradient(120deg, #f6f2fa 60%, #e2ccf0 100%);
    transform: translateY(-4px) scale(1.01);
}
.simulation-img-wrap {
    width: 100%;
    height: 180px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
}
.simulation-img-wrap img.simulation-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.simulation-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 1rem 1.2rem 1.2rem 1.2rem;
    min-height: 0;
    box-sizing: border-box;
}
.simulation-title {
    color: #301348;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}
.simulation-meta {
    display: flex;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: #C9AAD7;
    align-items: center;
    margin-bottom: 0.1rem;
}
.simulation-author {
    font-weight: 700;
    color: #9B6B9E;
}
.simulation-date {
    color: #301348;
    opacity: 0.7;
}
.simulation-desc {
    color: #666;
    font-size: 0.98rem;
    opacity: 0.95;
    margin-bottom: 0.3rem;
    line-height: 1.5;
}
.simulation-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.2rem 0 0.2rem 0;
}
.simulation-tag {
    background: #f6f2fa;
    color: #9B6B9E;
    border-radius: 2rem;
    padding: 0.2em 0.8em;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid #C9AAD7;
    user-select: none;
    display: inline-block;
}
.simulation-tag:hover {
    background: #C9AAD7;
    color: #fff;
    border-color: #9B6B9E;
}
.view-simulation-btn {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    font-size: 1.01rem;
    font-weight: 700;
    border: none;
    border-radius: 2rem;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px #c9aad7cc;
    transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
    letter-spacing: 1px;
    margin-top: 0.3rem;
    align-self: flex-start;
    text-decoration: none;
    display: inline-block;
}
.view-simulation-btn:hover {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    color: #301348;
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 8px 32px #9B6B9E33;
}

/* Sidebar */
.simulations-sidebar {
    min-width: 220px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px #c9aad733, 0 1.5px 6px #0001;
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}
.sidebar-title {
    color: #9B6B9E;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}
.tag-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tag-filter-btn {
    background: #f6f2fa;
    color: #9B6B9E;
    border-radius: 2rem;
    padding: 0.4em 1.1em;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid #C9AAD7;
    transition: background 0.18s, color 0.18s, border 0.18s;
    user-select: none;
    text-align: left;
}
.tag-filter-btn.active, .tag-filter-btn:hover {
    background: #C9AAD7;
    color: #fff;
    border-color: #9B6B9E;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .simulations-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .simulations-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }
    .tag-filter {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}
@media (max-width: 900px) {
    .simulations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .simulations-container {
        padding: 0 1rem;
    }
}
@media (max-width: 600px) {
    .simulations-hero-title {
        font-size: 1.7rem;
    }
    .simulations-grid {
        grid-template-columns: 1fr;
    }
    .simulation-img-wrap {
        height: 140px;
    }
    .simulations-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .simulations-search, .simulations-sort {
        flex: none;
        width: 100%;
    }
}

/* Flashcards Page Styles */
.flashcards-hero {
    background: linear-gradient(120deg, #301348 60%, #9B6B9E 100%);
    padding: 5rem 0 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.flashcards-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cards" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="4" height="6" fill="rgba(255,255,255,0.1)"/><rect x="8" y="8" width="4" height="6" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23cards)"/></svg>');
    opacity: 0.3;
}
.flashcards-hero-title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}
.flashcards-hero-desc {
    color: #E2CCF0;
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}
.flashcards-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #C9AAD7;
    text-shadow: 0 2px 8px rgba(201, 170, 215, 0.3);
}
.stat-label {
    color: #E2CCF0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flashcards-section {
    background: #f8f9fa;
    padding: 4rem 0 2rem 0;
}
.flashcards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.flashcards-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}
.flashcards-header-left {
    flex: 1;
}
.flashcards-section-title {
    color: #301348;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.flashcards-section-desc {
    color: #9B6B9E;
    font-size: 1.1rem;
    line-height: 1.6;
}
.create-set-btn {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 4px 16px #c9aad7cc;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.create-set-btn:hover {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px #9B6B9E33;
}
.create-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Flashcard Sets Grid */
.flashcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.flashcard-set-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px #c9aad733, 0 1.5px 6px #0001;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.flashcard-set-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
}
.flashcard-set-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px #9B6B9E33, 0 2px 8px #c9aad7;
    border-color: #C9AAD7;
}
.set-card-content {
    margin-bottom: 1.5rem;
}
.set-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.set-card-title {
    color: #301348;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}
.set-card-count {
    background: #f6f2fa;
    color: #9B6B9E;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.set-card-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f6f2fa;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.progress-text {
    color: #9B6B9E;
    font-size: 0.9rem;
    font-weight: 600;
}
.set-card-actions {
    display: flex;
    gap: 1rem;
}
.set-action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 4px 16px #c9aad7cc;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
}
.set-action-btn:hover, .set-action-btn:focus {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px #9B6B9E33;
}

/* Icon Circle Buttons for Share/Edit */
.icon-circle-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    background: #f6f2fa;
    border: 2px solid #C9AAD7;
    color: #9B6B9E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
    box-shadow: 0 2px 8px #c9aad733;
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
.icon-circle-btn:hover, .icon-circle-btn:focus {
    background: #C9AAD7;
    color: #fff;
    border-color: #9B6B9E;
    transform: scale(1.08);
    box-shadow: 0 6px 18px #9B6B9E33;
}

.share-btn.icon-circle-btn {
    /* Optionally, use a share icon color */
}
.edit-btn.icon-circle-btn {
    /* Optionally, use an edit icon color */
}

.set-action-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
    margin: 0 auto;
}

/* Empty State */
.flashcards-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #9B6B9E;
}
.empty-illustration {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 8px #c9aad7cc);
}
.flashcards-empty h3 {
    color: #301348;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.flashcards-empty p {
    color: #9B6B9E;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 400px;
}

/* Flashcard Viewer Modal */
.flashcard-viewer-modal {
    max-width: 800px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}
.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f6f2fa;
}
.viewer-title {
    color: #301348;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}
.viewer-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.progress-text {
    color: #9B6B9E;
    font-weight: 600;
}
.mastery-indicator {
    color: #301348;
    font-weight: 600;
}
#mastery-percentage {
    color: #C9AAD7;
    font-weight: 700;
}

/* Flashcard Container */
.flashcard-viewer-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}
.flashcard {
    position: relative;
    width: 400px;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
    margin: 0 auto;
}
.flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px #c9aad733, 0 2px 8px #0001;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.flashcard-front {
    background: linear-gradient(135deg, #C9AAD7 0%, #f6f2fa 100%);
    border: 3px solid #9B6B9E;
    transform: rotateY(0deg);
}
.flashcard-back {
    background: linear-gradient(135deg, #9B6B9E 0%, #C9AAD7 100%);
    border: 3px solid #9B6B9E;
    transform: rotateY(180deg);
    color: #fff;
}
.flashcard.flipped .flashcard-front {
    transform: rotateY(180deg);
}
.flashcard.flipped .flashcard-back {
    transform: rotateY(0deg);
}
.flashcard-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
}
.flashcard-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: inherit;
}
.flashcard-hint {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* Viewer Controls */
.viewer-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}
.control-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.control-btn {
    background: #f6f2fa;
    color: #9B6B9E;
    border: 2px solid #C9AAD7;
    border-radius: 1rem;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.control-btn:hover {
    background: #C9AAD7;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px #9B6B9E33;
}
.control-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.flip-btn {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    border-color: #9B6B9E;
}

/* Difficulty Buttons */
.difficulty-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.difficulty-btn {
    background: #f6f2fa;
    color: #9B6B9E;
    border: 2px solid #C9AAD7;
    border-radius: 1rem;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.difficulty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px #9B6B9E33;
}
.difficulty-btn.easy:hover {
    background: #4ade80;
    color: #fff;
    border-color: #4ade80;
}
.difficulty-btn.medium:hover {
    background: #fbbf24;
    color: #fff;
    border-color: #fbbf24;
}
.difficulty-btn.hard:hover {
    background: #f87171;
    color: #fff;
    border-color: #f87171;
}
.difficulty-btn.selected {
    transform: scale(1.05);
}
.difficulty-icon {
    font-size: 1.2rem;
}

/* Viewer Actions */
.viewer-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f6f2fa;
}
.action-btn {
    background: #f6f2fa;
    color: #9B6B9E;
    border: 2px solid #C9AAD7;
    border-radius: 1rem;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.action-btn:hover {
    background: #C9AAD7;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px #9B6B9E33;
}
.action-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Modal Improvements */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    color: #9B6B9E;
    font-weight: 600;
    font-size: 1rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid #C9AAD7;
    border-radius: 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: #f6f2fa;
    color: #301348;
    transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #9B6B9E;
    box-shadow: 0 4px 16px #c9aad733;
}
.submit-btn {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    border: none;
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.submit-btn:hover {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px #9B6B9E33;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .flashcards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}
@media (max-width: 900px) {
    .flashcards-hero-title {
        font-size: 2.5rem;
    }
    .flashcards-hero-stats {
        gap: 2rem;
    }
    .flashcards-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .flashcards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .flashcard {
        width: 100%;
        max-width: 350px;
        height: 200px;
    }
    .viewer-controls {
        gap: 1rem;
    }
    .control-buttons {
        flex-wrap: wrap;
    }
    .difficulty-buttons {
        flex-wrap: wrap;
    }
}
@media (max-width: 600px) {
    .flashcards-hero-title {
        font-size: 2rem;
    }
    .flashcards-hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    .flashcard-set-card {
        padding: 1.5rem;
    }
    .set-card-actions {
        flex-direction: column;
    }
    .flashcard {
        height: 180px;
    }
    .flashcard-text {
        font-size: 1.1rem;
    }
}

/* 3D Model Viewer Modal Styles */
.model-viewer-modal {
    max-width: 95vw;
    max-height: 95vh;
    width: 1200px;
    height: 800px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.model-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #9B6B9E 0%, #C9AAD7 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.model-viewer-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.model-viewer-controls {
    display: flex;
    gap: 1rem;
}

.model-control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.model-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.model-control-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.model-viewer-container {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
}

.sketchfab-embed-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.sketchfab-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.sketchfab-embed-wrapper p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5rem;
    margin: 0;
    font-size: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.sketchfab-embed-wrapper a {
    color: #1CAAD9 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sketchfab-embed-wrapper a:hover {
    color: #0f8bb8 !important;
}

.model-viewer-footer {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-top: 1px solid rgba(155, 107, 158, 0.1);
}

.model-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.model-description {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

.model-actions {
    display: flex;
    gap: 1rem;
}

.model-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #9B6B9E 0%, #C9AAD7 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 107, 158, 0.3);
}

.model-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 107, 158, 0.4);
}

.model-action-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Responsive Design for Model Viewer */
@media (max-width: 1200px) {
    .model-viewer-modal {
        width: 95vw;
        height: 80vh;
    }
    
    .model-viewer-header {
        padding: 1rem 1.5rem;
    }
    
    .model-viewer-title {
        font-size: 1.25rem;
    }
    
    .model-viewer-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .model-viewer-modal {
        width: 98vw;
        height: 85vh;
        border-radius: 15px;
    }
    
    .model-viewer-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .model-viewer-title {
        font-size: 1.1rem;
    }
    
    .model-viewer-controls {
        width: 100%;
        justify-content: flex-end;
    }
    
    .model-control-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .model-viewer-footer {
        padding: 1rem;
    }
    
    .model-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .model-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .model-action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .model-viewer-modal {
        width: 100vw;
        height: 90vh;
        border-radius: 0;
    }
    
    .model-viewer-header {
        padding: 0.8rem;
    }
    
    .model-viewer-title {
        font-size: 1rem;
    }
    
    .model-control-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .model-viewer-footer {
        padding: 0.8rem;
    }
    
    .model-action-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .model-description {
        font-size: 0.85rem;
    }
}

/* Enhanced Flashcards Styles */
.flashcards-controls {
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    max-width: 400px;
}

.flashcards-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.flashcards-search:focus {
    outline: none;
    border-color: #9B6B9E;
    box-shadow: 0 0 0 3px rgba(155, 107, 158, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #666;
}

.flashcards-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.flashcards-sidebar {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.75rem 1rem;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.filter-btn:hover {
    background: #e9ecef;
    color: #333;
}

.filter-btn.active {
    background: linear-gradient(135deg, #9B6B9E 0%, #C9AAD7 100%);
    color: white;
    font-weight: 500;
}

.flashcards-main {
    min-height: 400px;
}

.flashcard-set-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.flashcard-set-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(155, 107, 158, 0.2);
}

.set-card-content {
    margin-bottom: 1.5rem;
}

.set-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.set-card-title-section {
    flex: 1;
}

.set-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.set-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.set-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.set-badge.public {
    background: #e8f5e8;
    color: #2d5a2d;
}

.set-badge.private {
    background: #fff3cd;
    color: #856404;
}

.set-badge.year {
    background: #e3f2fd;
    color: #1976d2;
}

.set-card-stats {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
}

.set-card-count {
    display: block;
    font-weight: 500;
    color: #333;
}

.set-card-mastery {
    display: block;
    margin-top: 0.25rem;
}

.set-card-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #9B6B9E 0%, #C9AAD7 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.set-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.set-card-category {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.set-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.set-action-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.study-btn {
    background: linear-gradient(135deg, #9B6B9E 0%, #C9AAD7 100%);
    color: white;
}

.study-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 107, 158, 0.4);
}

.practice-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.practice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.share-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.edit-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.edit-btn:hover {
    background: #e9ecef;
    color: #333;
}

.set-action-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Privacy Toggle */
.privacy-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.privacy-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.privacy-checkbox {
    display: none;
}

.privacy-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.privacy-checkbox:checked + .privacy-switch {
    background: #9B6B9E;
}

.privacy-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.privacy-checkbox:checked + .privacy-switch .privacy-slider {
    transform: translateX(30px);
}

.privacy-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Practice Mode Styles */
.practice-modal {
    max-width: 600px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
}

.practice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.practice-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.practice-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.practice-progress {
    font-weight: 500;
}

.practice-score {
    font-weight: 500;
}

.practice-container {
    margin-bottom: 2rem;
}

.practice-question {
    margin-bottom: 2rem;
}

.practice-question h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.practice-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.practice-option {
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.practice-option:hover {
    border-color: #9B6B9E;
    background: #f8f9ff;
}

.practice-option.correct {
    border-color: #28a745;
    background: #e8f5e8;
    color: #2d5a2d;
}

.practice-option.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.practice-option:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.practice-feedback {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.feedback-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feedback-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feedback-content p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.feedback-content p:first-of-type {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.practice-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.practice-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#practice-next {
    background: linear-gradient(135deg, #9B6B9E 0%, #C9AAD7 100%);
    color: white;
}

#practice-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 107, 158, 0.4);
}

#practice-finish {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

#practice-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Form Row for Year and Category */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .flashcards-layout {
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .flashcards-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .flashcards-sidebar {
        position: static;
        order: -1;
    }
    
    .filter-options {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .set-card-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .set-card-stats {
        text-align: left;
    }
    
    .set-card-actions {
        justify-content: center;
    }
    
    .set-action-btn {
        flex: 1;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .practice-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .practice-stats {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .flashcard-set-card {
        padding: 1rem;
    }
    
    .set-card-title {
        font-size: 1.1rem;
    }
    
    .set-card-actions {
        flex-direction: column;
    }
    
    .set-action-btn {
        width: 100%;
    }
    
    .practice-option {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Practice Mode Toggle */
.practice-mode-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.mode-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mode-btn:hover {
    border-color: #9B6B9E;
    color: #9B6B9E;
}

.mode-btn.active {
    background: linear-gradient(135deg, #9B6B9E 0%, #C9AAD7 100%);
    border-color: #9B6B9E;
    color: white;
}

.mode-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Typing Practice Styles */
.practice-typing {
    margin-bottom: 2rem;
}

.typing-input-container {
    margin-bottom: 1.5rem;
}

.typing-answer-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.typing-answer-input:focus {
    outline: none;
    border-color: #9B6B9E;
    box-shadow: 0 0 0 3px rgba(155, 107, 158, 0.1);
}

.typing-answer-input:disabled {
    background: #f8f9fa;
    color: #666;
    cursor: not-allowed;
}

.typing-hint {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.hint-text {
    font-size: 0.9rem;
    color: #1976d2;
    margin: 0;
}

.submit-answer-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #9B6B9E 0%, #C9AAD7 100%);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-answer-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 107, 158, 0.4);
}

.submit-answer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-answer-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Enhanced Feedback Styles */
.feedback-text-content {
    flex: 1;
}

.answer-comparison {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.comparison-item:last-child {
    margin-bottom: 0;
}

.comparison-label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.comparison-text {
    flex: 1;
    color: #666;
    line-height: 1.4;
}

.comparison-text.correct {
    color: #2d5a2d;
    font-weight: 500;
}

/* Responsive Design for Practice Mode */
@media (max-width: 768px) {
    .practice-mode-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mode-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .typing-answer-input {
        min-height: 80px;
        font-size: 0.9rem;
    }
    
    .comparison-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .comparison-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .practice-mode-toggle {
        padding: 0.75rem;
    }
    
    .mode-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .mode-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .typing-answer-input {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .submit-answer-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===================== CONTACT PAGE STYLES ===================== */
.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #f6f2fa 60%, #e2ccf0 100%);
    padding: 3rem 1rem;
}
.contact-container {
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 8px 32px #c9aad744;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-title {
    font-size: 2rem;
    font-weight: 800;
    color: #301348;
    margin-bottom: 0.5rem;
    text-align: center;
}
.contact-desc {
    color: #9B6B9E;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.contact-form label {
    font-weight: 600;
    color: #9B6B9E;
    margin-bottom: 0.3rem;
}
.contact-input, .contact-textarea {
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid #C9AAD7;
    font-size: 1.1rem;
    background: #f6f2fa;
    color: #301348;
    transition: border 0.2s;
    resize: none;
}
.contact-input:focus, .contact-textarea:focus {
    border-color: #9B6B9E;
    outline: none;
}
.contact-textarea {
    min-height: 120px;
    max-height: 300px;
}
.contact-btn {
    background: linear-gradient(90deg, #C9AAD7 0%, #9B6B9E 100%);
    color: #fff;
    border: none;
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}
.contact-btn:hover {
    background: linear-gradient(90deg, #9B6B9E 0%, #C9AAD7 100%);
}
.contact-message {
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0.5rem;
}
.contact-message.success {
    background: linear-gradient(90deg, #43E97B22 0%, #38F9D722 100%);
    color: #43E97B;
    border: 2px solid #43E97B44;
}
.contact-message.error {
    background: linear-gradient(90deg, #E573A622 0%, #F9D73822 100%);
    color: #E573A6;
    border: 2px solid #E573A644;
}
.contact-map {
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 4px 16px #c9aad744;
    margin-top: 1.5rem;
    width: 100%;
    height: 220px;
    border: none;
}
@media (max-width: 600px) {
    .contact-container {
        padding: 1.5rem 0.5rem;
        border-radius: 1.2rem;
    }
    .contact-title {
        font-size: 1.3rem;
    }
    .contact-map {
        height: 140px;
    }
}
