/* AMC Academy Website Styles - Exact Match to Real Site */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    min-height: 100vh;
}

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

/* Header Styles - Exact Match */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: slideDownHeader 0.8s ease-out;
}

@keyframes slideDownHeader {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    margin-left: -40px;
    animation: fadeInLeft 1s ease-out 0.3s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Default logo size */
.logo img {
    height: 28px;
    width: auto;
}

/* Support inline SVG logos on all pages */
.logo svg {
    height: 28px;
    width: auto;
}

/* Larger logo on home landing page */
body.home .logo img {
    height: 56px;
}

/* Inline SVG logo sizing */
body.home .logo svg {
    height: 56px;
    width: auto;
}

/* Match logo size on other key pages */
body.timetable .logo img,
body.timetable .logo svg,
body.ai-curriculum .logo img,
body.ai-curriculum .logo svg {
    height: 56px;
    width: auto;
}
/* Match logo size on Problem Sets page */
body.problem-sets .logo img,
body.problem-sets .logo svg {
    height: 56px;
    width: auto;
}

.dashboard-page .logo img,
.dashboard-page .logo svg {
    height: 56px;
    width: auto;
}

/* Star hover animation */
.logo .tbp-star {
    transform-origin: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Play animation once on initial page load (home only) */
body.home .logo .tbp-star {
    animation: star-pulse-initial 2s ease-in-out 1;
}

.logo:hover .tbp-star {
    animation: star-pulse 2s ease-in-out 1;
    filter: drop-shadow(0 2px 6px rgba(107, 52, 16, 0.35));
}

@keyframes star-pulse {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.15) rotate(8deg); }
    60% { transform: scale(1.05) rotate(-6deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Initial load animation uses a distinct name so hover can re-trigger reliably */
@keyframes star-pulse-initial {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.15) rotate(8deg); }
    60% { transform: scale(1.05) rotate(-6deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: -40px;
    animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-desktop a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    transform: scale(1);
}

.nav-desktop a:hover {
    color: #8B4513;
    transform: scale(1.1);
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B4513;
    transition: width 0.3s ease;
    opacity: 0;
}

.nav-desktop a:hover::after {
    width: 0;
    opacity: 0;
}

.nav-desktop a.ai-curriculum-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #111111; /* force black for nav text */
    transition: all 0.3s ease;
    transform: scale(1);
}

.nav-desktop a.ai-curriculum-link:hover {
    transform: scale(1.1) !important;
    color: #111111 !important;
}

.nav-desktop a.ai-curriculum-link:hover .new-tag {
    background-color: #6b3410 !important;
}

.new-tag {
    background-color: #6b3410;
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 2px;
    line-height: 1;
    text-transform: uppercase;
    animation: blink 2s infinite;
    vertical-align: super;
    position: relative;
    top: -0.5em;
}

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

.student-hub-link,
.student-login-link {
    background: #8B4513;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-left: 12px;
    transform: scale(1);
    animation: fadeInRight 1s ease-out 0.7s both;
}
.header-greeting {
    background: transparent;
    color: #6b3410;
    padding: 12px 12px;
    border-radius: 8px;
    font-weight: 700;
    border: 2px solid #d1d5db;
    box-shadow: 0 2px 0 rgba(0,0,0,0.15);
    cursor: pointer;
}

.greeting-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    min-width: 160px;
    display: none;
    z-index: 2000;
}

.greeting-dropdown.active { display: block; }

.greeting-dropdown a {
    display: block;
    padding: 10px 14px;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    margin: 2px 6px;
    transition: background-color .2s ease;
    }

.greeting-dropdown a:hover {
    background: #f0f2f5;
}

.greeting-dropdown a + a { border-top: none; }

.student-hub-link:hover,
.student-login-link:hover {
    background: #6b3410;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.student-hub-link::after,
.student-login-link::after {
    display: none;
}

.header-contact {
    display: flex;
    gap: 20px;
}

.contact-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #8B4513;
}

.btn-header-primary,
.btn-header-secondary {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-header-primary {
    background: #8B4513;
    color: white;
}

.btn-header-primary:hover {
    background: #6a340f;
    transform: translateY(-1px);
}

.btn-header-secondary {
    background: #8B4513;
    color: white;
}

.btn-header-secondary:hover {
    background: #6a340f;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #1a1a1a;
    padding: 4px;
}

.nav-mobile {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
}

.nav-mobile a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #1a1a1a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
    font-size: 14px;
}

/* Hero Section - Exact Match with Clean Design */
.hero {
    position: relative;
    color: #1a1a1a;
    text-align: center;
    padding: 140px 20px 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
}

.hero::before {
    content: 'π';
    position: absolute;
    top: 20%;
    right: 10%;
    font-size: 3rem;
    color: rgba(139, 69, 19, 0.1);
    font-weight: 300;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '∞';
    position: absolute;
    bottom: 30%;
    left: 10%;
    font-size: 2.5rem;
    color: rgba(139, 69, 19, 0.1);
    font-weight: 300;
    animation: float 6s ease-in-out infinite reverse;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 8px;
    line-height: 1.1;
    color: #1a1a1a;
    animation: slideInFromTop 1.2s ease-out 0.3s both;
    font-family: Georgia, serif;
}

.hero-highlight {
    font-size: 4.5rem;
    font-weight: 700;
    color: #8B4513;
    display: block;
    margin-bottom: 24px;
    font-family: Georgia, serif;
    /* Smooth transition for text changes */
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.hero-highlight.fade-out {
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    overflow: visible;
    text-align: center;
    display: block;
}

.hero-subtitle + .hero-subtitle {
    margin-top: -30px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.2s both;
}

/* Ensure hero buttons are visually the same size */
.hero-buttons .btn {
    min-width: 260px;
    text-align: center;
}

/* Button Styles - Exact Match */
.btn {
    display: inline-block;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #8B4513;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: #8B4513;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

/* Reverted: use default button colors for floating buttons */

/* Assessment Section - Exact Match to Reference */
.assessment {
    padding: 100px 0;
    background: #f8f9fa;
}

.assessment-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.assessment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 50px;
}

.assessment-text {
    text-align: left;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #8B4513;
    font-family: Georgia, serif;
    line-height: 1.1;
    text-align: left;
}

.section-description {
    font-size: 1.1rem;
    color: #1a1a1a;
    line-height: 1.8;
    font-weight: 400;
    text-align: left;
}

.process-flow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    padding-top: 20px;
    width: 100%;
}

.process-step {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 180px;
}

.process-step:nth-child(1) {
    align-self: center;
}

.process-step:nth-child(3) {
    align-self: center;
}

.process-step:nth-child(5) {
    align-self: center;
}

.process-icon {
    width: 70px;
    height: 70px;
    background: #8B4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    border: 2px solid #8B4513;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    white-space: nowrap;
    text-align: center;
}

.arrow {
    font-size: 1.8rem;
    color: #1a1a1a;
    font-weight: bold;
    align-self: center;
    margin: 0 5px;
    flex-shrink: 0;
}



.math-formulas {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: #8B4513;
    font-weight: 600;
    padding: 16px 24px;
    background: #f5f5f5;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    min-width: 200px;
    text-align: center;
}

/* Background decorative elements */
.bg-element {
    position: absolute;
    opacity: 0.05;
    color: #8B4513;
}

.bg-curve-1 {
    top: 40px;
    right: 60px;
    font-size: 3rem;
    transform: rotate(15deg);
}

.bg-curve-2 {
    top: 60px;
    right: 40px;
    font-size: 2.5rem;
    transform: rotate(-10deg);
}

.bg-triangle {
    bottom: 40px;
    right: 30px;
    font-size: 2rem;
    transform: rotate(45deg);
}



/* Additional Math Symbols in Hero */
.alpha-symbol {
    top: 15%;
    left: 15%;
    font-size: 5rem;
    transform: rotate(-5deg);
    opacity: 0.03;
    animation-delay: 0.5s;
}

.beta-symbol {
    top: 80%;
    right: 20%;
    font-size: 6rem;
    transform: rotate(10deg);
    opacity: 0.03;
    animation-delay: 1.5s;
}

.gamma-symbol {
    top: 40%;
    right: 5%;
    font-size: 4rem;
    transform: rotate(-15deg);
    opacity: 0.04;
    animation-delay: 2.5s;
}

.lambda-symbol {
    bottom: 20%;
    left: 25%;
    font-size: 5rem;
    transform: rotate(20deg);
    opacity: 0.03;
    animation-delay: 3.5s;
}

.mu-symbol {
    top: 25%;
    left: 45%;
    font-size: 4rem;
    transform: rotate(-10deg);
    opacity: 0.04;
    animation-delay: 4.5s;
}

.nu-symbol {
    bottom: 40%;
    right: 35%;
    font-size: 5rem;
    transform: rotate(15deg);
    opacity: 0.03;
    animation-delay: 5.5s;
}

/* Additional Sigma, Integral, and Delta notations */
.sigma-large {
    top: 10%;
    left: 8%;
    font-size: 12rem;
    transform: rotate(-25deg);
    opacity: 0.02;
    animation-delay: 1s;
}

.integral-large {
    bottom: 5%;
    right: 8%;
    font-size: 14rem;
    transform: rotate(30deg);
    opacity: 0.02;
    animation-delay: 2s;
}

.delta-large {
    top: 60%;
    left: 12%;
    font-size: 10rem;
    transform: rotate(-10deg);
    opacity: 0.03;
    animation-delay: 3s;
}

.sigma-small {
    top: 35%;
    right: 25%;
    font-size: 4rem;
    transform: rotate(45deg);
    opacity: 0.04;
    animation-delay: 4s;
}

.integral-small {
    bottom: 25%;
    left: 35%;
    font-size: 3rem;
    transform: rotate(-20deg);
    opacity: 0.05;
    animation-delay: 5s;
}

.delta-small {
    top: 75%;
    right: 15%;
    font-size: 3.5rem;
    transform: rotate(15deg);
    opacity: 0.04;
    animation-delay: 6s;
}

/* Additional Math Symbols for AMC Academy Style */
.pi-secondary {
    top: 25%;
    right: 20%;
    font-size: 6rem;
    transform: rotate(-15deg);
    opacity: 0.14;
    animation-delay: 0.8s;
}

.infinity-secondary {
    bottom: 15%;
    left: 15%;
    font-size: 8rem;
    transform: rotate(25deg);
    opacity: 0.13;
    animation-delay: 1.6s;
}

.square-root {
    top: 45%;
    left: 8%;
    font-size: 5rem;
    transform: rotate(-30deg);
    opacity: 0.14;
    animation-delay: 2.4s;
}

.partial {
    top: 20%;
    left: 30%;
    font-size: 4rem;
    transform: rotate(10deg);
    opacity: 0.15;
    animation-delay: 3.2s;
}

.nabla {
    bottom: 30%;
    right: 25%;
    font-size: 6rem;
    transform: rotate(-20deg);
    opacity: 0.13;
    animation-delay: 4.0s;
}

.forall {
    top: 70%;
    left: 25%;
    font-size: 3rem;
    transform: rotate(45deg);
    opacity: 0.14;
    animation-delay: 4.8s;
}

.exists {
    top: 15%;
    left: 45%;
    font-size: 3.5rem;
    transform: rotate(-25deg);
    opacity: 0.15;
    animation-delay: 5.6s;
}

.subset {
    bottom: 45%;
    left: 8%;
    font-size: 4rem;
    transform: rotate(15deg);
    opacity: 0.13;
    animation-delay: 6.4s;
}

.union {
    top: 55%;
    right: 10%;
    font-size: 5rem;
    transform: rotate(-35deg);
    opacity: 0.14;
    animation-delay: 7.2s;
}

.intersection {
    top: 35%;
    right: 35%;
    font-size: 3rem;
    transform: rotate(20deg);
    opacity: 0.15;
    animation-delay: 8.0s;
}

.element {
    bottom: 20%;
    left: 40%;
    font-size: 3.5rem;
    transform: rotate(-10deg);
    opacity: 0.14;
    animation-delay: 8.8s;
}

.not-element {
    top: 80%;
    right: 30%;
    font-size: 3rem;
    transform: rotate(30deg);
    opacity: 0.15;
    animation-delay: 9.6s;
}

.implies {
    top: 30%;
    left: 20%;
    font-size: 4rem;
    transform: rotate(-40deg);
    opacity: 0.13;
    animation-delay: 10.4s;
}

.iff {
    bottom: 35%;
    right: 15%;
    font-size: 3.5rem;
    transform: rotate(25deg);
    opacity: 0.14;
    animation-delay: 11.2s;
}

.approximately {
    top: 65%;
    left: 35%;
    font-size: 4rem;
    transform: rotate(-15deg);
    opacity: 0.15;
    animation-delay: 12.0s;
}

.not-equal {
    top: 25%;
    right: 45%;
    font-size: 3rem;
    transform: rotate(35deg);
    opacity: 0.14;
    animation-delay: 12.8s;
}

.less-equal {
    bottom: 25%;
    left: 25%;
    font-size: 3.5rem;
    transform: rotate(-25deg);
    opacity: 0.15;
    animation-delay: 13.6s;
}

.greater-equal {
    top: 75%;
    right: 40%;
    font-size: 3rem;
    transform: rotate(20deg);
    opacity: 0.14;
    animation-delay: 14.4s;
}

/* Coaches Section - Exact Match */
.coaches {
    padding: 100px 0;
    background: #f8f9fa;
}

.universities {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    align-items: center;
}

.university {
    font-weight: 700;
    color: #374151;
    font-size: 1rem;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.university:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #8B4513;
}

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.coach-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.coach-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #8B4513;
}

.coach-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.coach-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.coach-card:hover .coach-photo {
    border-color: #8B4513;
    transform: scale(1.05);
}

.coach-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.coach-info p {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.coach-description {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1rem;
}

/* Platform Section - Exact Match */
.platform {
    padding: 100px 0;
    background: white;
}

.platform-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

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

.feature h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.feature p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1.1rem;
}

.platform-demo {
    text-align: center;
}

.demo-video {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    margin-bottom: 24px;
}

.demo-caption {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.demo-subtitle {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 32px;
}

.ai-tutor {
    background: #f8f9fa;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.ai-tutor h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.ai-tutor p {
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.7;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.ai-feature {
    background: white;
    padding: 24px;
    border-radius: 16px;
    font-weight: 600;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ai-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Coaching Section - Exact Match */
.coaching {
    padding: 100px 0;
    background: #f8f9fa;
    text-align: center;
}

.coaching-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.benefit {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.benefit:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.benefit h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.benefit p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Courses Section - Exact Match */
.courses {
    padding: 100px 0;
    background: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #8B4513;
}

.course-card.featured {
    border: 2px solid #8B4513;
    position: relative;
}

.course-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 20px;
    right: 20px;
    background: #8B4513;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

/* Floating Book Consultation button */
.floating-consult-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    padding: 12px 18px !important;
    border-radius: 9999px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Floating Back-to-Top Arrow */
/* Centered Back-to-Top Button above footer */
.back-to-top-center { display:flex; align-items:center; justify-content:center; padding: 30px 0 10px; }
.back-to-top-btn {
    padding: 12px 14px !important;
    border-radius: 9999px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.back-to-top-btn .bi { font-size: 1.1rem; }

/* Problem Sets — Rotating Books Shelf */
.ps-shelf { position: relative; max-width: 1200px; margin: 120px auto 20px; padding: 0 20px; height: 340px; display:flex; align-items:center; justify-content:center; }
.ps-shelf .book { position:absolute; width: 160px; height: 220px; background: #F5E6D3; color:#6b3410; border:2px solid #8B4513; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.15); display:flex; align-items:center; justify-content:center; font-weight:800; text-align:center; padding:12px; cursor:pointer; transform: translate(-50%, -50%) rotate(0deg) scale(1); transition: transform .6s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, filter .3s ease; will-change: transform; }
.ps-shelf .book:focus { outline: 3px solid #8B4513; }
.ps-shelf .book[data-focus="true"] { box-shadow: 0 16px 36px rgba(0,0,0,.22); transform: translate(-50%, -60%) scale(1.08); z-index: 3; }
.ps-shelf-controls { margin: 10px auto 0; display:flex; gap:10px; align-items:center; justify-content:center; }
.ps-open-btn { background:#8B4513; color:#fff; border:none; border-radius:10px; padding:10px 14px; cursor:pointer; }
@media (prefers-reduced-motion: reduce){ .ps-shelf .book { transition: transform .2s ease; } }

/* Problem Sets — Left rail badges */
.ps-badge { display:inline-flex; align-items:center; gap:6px; font-size:.75rem; color:#155e2b; background:#dcfce7; border:1px solid #bbf7d0; border-radius:9999px; padding:2px 8px; }

/* Problem Sets — Quiz UI */
.ps-quiz { display:flex; flex-direction:column; gap:14px; }
.ps-q-card { border:1px solid #e5e7eb; border-radius:12px; padding:12px; background:#fff; }
.ps-stem { font-weight:700; color:#1a1a1a; margin-bottom:10px; }
.ps-opts { display:grid; grid-template-columns:1fr; gap:8px; margin-bottom:10px; }
.ps-opt { text-align:left; border:1px solid #e5e7eb; background:#F5E6D3; color:#6b3410; border-radius:10px; padding:10px 12px; cursor:pointer; }
.ps-opt.sel { outline:2px solid #8B4513; background:#f8efe3; }
.ps-opt.locked { opacity:.7; cursor:default; }
.ps-explain { margin-top:8px; color:#1f2937; }

/* Problem Sets — Books Grid */
.ps-books-grid { max-width:1200px; margin: 80px auto 220px; padding: 0 20px; display:grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); column-gap: 36px; row-gap: 44px; justify-content:center; }
@media(max-width: 980px){ .ps-books-grid{ grid-template-columns: repeat(2, minmax(240px, 1fr)); } }
@media(max-width: 620px){ .ps-books-grid{ grid-template-columns: repeat(1, minmax(220px, 1fr)); } }
.ps-book-tile { display:flex; flex-direction:column; gap:10px; align-items:stretch; }
.ps-book-cover { width:100%; aspect-ratio: 2 / 3; transform: scale(0.75); transform-origin: center; transition: transform .25s ease, box-shadow .25s ease; border:2px solid #8B4513; background: radial-gradient(120% 100% at 40% 30%, #f5e6d3 0%, #efe1cf 45%, #ead7c2 100%); border-radius:16px; box-shadow: 0 18px 40px rgba(0,0,0,.12); display:flex; align-items:center; justify-content:center; color:#6b3410; font-weight:800; font-size:1.2rem; text-align:center; }
.ps-book-tile:hover .ps-book-cover { transform: scale(0.78) rotateY(-8deg); box-shadow: 0 22px 50px rgba(0,0,0,.18); }
.ps-book-actions { display:flex; align-items:center; justify-content:center; }

/* Outline box inside sidebar */
#psOutline { border:1px solid #e5e7eb; border-radius:12px; padding:12px; background:#fff; }
.ps-open-btn { background:#8B4513; color:#fff; border:none; border-radius:10px; padding:10px 14px; cursor:pointer; }

.floating-consult-btn .bi {
    font-size: 1rem;
}

@media (max-width: 480px) {
    .floating-consult-btn {
        bottom: 16px;
        right: 12px;
        padding: 10px 14px !important;
        font-size: 14px;
    }
}

/* Enrollment Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 10000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    width: min(680px, 94vw);
    max-height: 90vh;
    overflow: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    padding: 28px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b6b6b;
}

.modal h3 {
    margin-bottom: 14px;
}

.enroll-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.enroll-grid .full {
    grid-column: 1 / -1;
}

.enroll-grid label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.required-star {
    color: #ef4444;
}
/* Account form spacing tweaks */
.account-content .account-grid { margin-top: 12px; }
.account-content .account-actions { margin-top: 24px; }

.enroll-grid input,
.enroll-grid select,
.enroll-grid textarea {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    color: inherit;
}

/* Move select dropdown chevron further left */
.enroll-grid select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231a1a1a"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    padding-right: 40px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.field-error {
    display: none;
    color: #b91c1c;
    font-size: 12px;
    margin-top: 6px;
}

.invalid input,
.invalid select,
.invalid textarea {
    border-color: #ef4444;
    background: #fff7f7;
}

.invalid .field-error {
    display: block;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 22px;
    }
    .enroll-grid {
        grid-template-columns: 1fr;
    }
}

.course-header {
    background: #8B4513;
    color: white;
    padding: 32px;
}

.course-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.course-goal {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.course-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    padding: 32px 32px 16px;
}

.course-duration {
    color: #6b7280;
    padding: 0 32px 8px;
    font-weight: 500;
}

.course-dates {
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 0 32px 32px;
}

.course-features {
    list-style: none;
    padding: 0 32px 32px;
}

.course-features li {
    padding: 12px 0;
    color: #6b7280;
    position: relative;
    padding-left: 32px;
    font-weight: 500;
}

.course-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.course-card .btn {
    margin: 0 32px 32px;
    width: calc(100% - 64px);
}

/* Success Stories Section - Exact Match */
.success-stories {
    padding: 100px 0;
    background: #f8f9fa;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.story-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.story-card blockquote {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.7;
    border-left: 4px solid #8B4513;
    padding-left: 20px;
    font-size: 1.1rem;
}

.story-author strong {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.1rem;
}

.story-author p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Student Spotlight - Exact Match */
.student-spotlight {
    padding: 100px 0;
    background: white;
    text-align: center;
}

/* AI Curriculum Generator Section - Exact Match */
section.ai-curriculum {
    padding: 100px 0;
    background: #f8f9fa;
}

.curriculum-generator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.generator-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.generator-form h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a1a;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(139, 69, 19, 0.05);
    color: #8B4513;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #8B4513;
}

.curriculum-preview {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: #6b7280;
}

.ai-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

.preview-placeholder h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.preview-placeholder p {
    font-size: 1.1rem;
    color: #9ca3af;
}

.curriculum-results {
    width: 100%;
}

.curriculum-results h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
}

.curriculum-timeline {
    margin-bottom: 32px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #8B4513;
}

.timeline-week {
    font-weight: 700;
    color: #8B4513;
    font-size: 1rem;
    min-width: 80px;
    text-align: center;
    padding-top: 4px;
}

.timeline-content h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    color: #6b7280;
    margin-bottom: 4px;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
}

.timeline-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8B4513;
    font-weight: bold;
}

.curriculum-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #8B4513;
    color: white;
    border-radius: 12px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.ai-feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ai-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #8B4513;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.ai-feature-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.ai-feature-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* Footer - Exact Match */
.footer {
    background: #ffffff;
    color: #1a1a1a;
    padding: 80px 0 30px;
}

/* Ensure no extra whitespace below footer */
html, body { height: 100%; }
.footer { margin-bottom: 0; }

/* Viewport-fit content so pages dynamically fill the screen */
:root { --viewport-offset: 220px; }
/* Remove broad min-height rules to revert layout */

@media (max-width: 768px) {
    :root { --viewport-offset: 200px; }
}

/* Footer area should stick to bottom without extra whitespace */
.footer { margin-top: auto; }

.footer-content {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-logo img {
    height: 28px;
    width: auto;
}
.footer-logo span { font-size: 1.1rem; color: #111111; }

.footer-section h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: #111111; letter-spacing: 0.02em; }

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a { color: #111111; text-decoration: none; transition: color 0.3s ease; font-weight: 500; }

.footer-section a:hover { color: #6b3410; text-decoration: underline; }

.footer-section p { color: #111111; margin-bottom: 8px; font-weight: 500; }

.footer-bottom { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 16px; text-align: center; color: #111111; font-weight: 500; font-size: 0.9rem; }

/* Assignments Drawer */
#assignments-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #F5E6D3; /* tan */
    color: #6b3410; /* brand brown text/icon */
    border: none;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    padding: 16px 18px;
    z-index: 1100;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(0,0,0,0.18);
    backdrop-filter: saturate(1.2) blur(3px);
    -webkit-backdrop-filter: saturate(1.2) blur(3px);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    overflow: hidden;
}

#assignments-tab .bi { font-size: 1.4rem; color: #6b3410; }

/* glass shimmer on hover */
#assignments-tab::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, rgba(255,255,255,0.05), rgba(255,255,255,0.25), rgba(255,255,255,0.05));
    transform: translateX(-120%);
    filter: blur(2px);
    opacity: 0;
}

@keyframes glassSweep { from { transform: translateX(-120%);} to { transform: translateX(120%);} }

#assignments-tab:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 18px 44px rgba(0,0,0,0.24);
    background: #EAD9C4; /* slightly darker tan on hover */
}

#assignments-tab:hover::before {
    opacity: 1;
    animation: glassSweep 1.2s ease-in-out;
}

#assignments-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 92vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -20px 0 50px rgba(0,0,0,0.12);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e5e7eb;
    transform: translateX(105%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .3s ease, box-shadow .35s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

#assignments-drawer.active { transform: translateX(0); opacity: 1; box-shadow: -24px 0 60px rgba(0,0,0,0.18); }

#assignments-drawer .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #f0f0f0;
}

#assignments-drawer .drawer-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1a1a1a;
}

#assignments-drawer .drawer-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #6b7280;
}

#assignments-drawer .drawer-body {
    padding: 12px 18px 18px;
    overflow-y: auto;
    flex: 1;
    position: relative;
}

#assignments-drawer.active .drawer-body { animation: drawerContentIn .4s ease both; }
#assignments-tab { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
body.drawer-open #assignments-tab { transform: translate(calc(-360px), -50%); }

@keyframes drawerContentIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.drawer-empty {
    color: #6b7280;
    font-size: 0.95rem;
    padding: 8px 0;
}

.drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.drawer-loading { display:none; position: absolute; inset: 0; display:flex; align-items:center; justify-content:center; }
.drawer-loading .tbp-star-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: #8B4513;
    animation: spin 1s linear infinite;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.drawer-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
}

.drawer-item h4 { margin: 0 0 6px; font-size: 1rem; color: #1a1a1a; }
.drawer-item .meta { color: #6b7280; font-size: 0.9rem; }
.drawer-item a { color: #8B4513; text-decoration: none; font-weight: 600; }
.drawer-item a:hover { text-decoration: underline; }

/* Drawer sections and pill styling like the screenshot */
.drawer-section { margin-top: 10px; }
.drawer-section-title { display:block; margin: 10px 0 8px; font-size: 0.95rem; font-weight: 800; color: #1a1a1a; user-select: none; padding: 8px 0; border-radius: 0; background: transparent; box-shadow: none; }
#section-exams .drawer-section-title { background: transparent; }
#section-homework .drawer-section-title { background: transparent; }
.drawer-section-title:hover { transform: none; box-shadow: none; filter: none; }
.drawer-section-title:active { transform: none; }
.drawer-section-title::after { content:""; display:none; }
.drawer-section-title:hover::after { opacity: 0; animation: none; }
.weekday { margin-top: 8px; }
.weekday h5 { margin: 8px 0 6px; font-size: 0.9rem; color: #6b7280; font-weight: 700; }
.pill-list { display: grid; gap: 6px; }
.pill {
    display: inline-block;
    background: #F5E6D3; /* tan */
    color: #6b3410;
    padding: 10px 72px 22px 14px;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
}

/* Subject pastel colors */
/* Subject color-coding: Calming Times palette */
/* Desert Sand #E2C3B0 */
.pill[data-subject*="math"], .pill[data-subject*="algebra"], .pill[data-subject*="geometry"], .pill[data-subject*="calculus"] {
    background: #E2C3B0; color:#6b3410;
}
/* Unbleached Silk #F7D9C5 */
.pill[data-subject*="chem"], .pill[data-subject*="science"], .pill[data-subject*="biology"], .pill[data-subject*="physics"] {
    background: #F7D9C5; color:#6b3410;
}
/* Antique White #FAF0DA */
.pill[data-subject*="english"], .pill[data-subject*="writing"] {
    background: #FAF0DA; color:#6b3410;
}
/* Columbia Blue #C9E4DE */
.pill[data-subject*="history"], .pill[data-subject*="social"] {
    background: #C9E4DE; color:#6b3410;
}
/* Crystal #A9D1D9 */
.pill[data-subject*="hebrew"], .pill[data-subject*="language"] {
    background: #A9D1D9; color:#6b3410;
}
/* Default */
.pill[data-subject*="general"], .pill:not([data-subject]) {
    background: #FAF0DA; color:#6b3410;
}

.pill .help-btn {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: #ffffff;
    background: #8B4513; /* match Schedule AI */
    border-radius: 9999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.pill .help-btn:hover { background:#6a340f; }

/* Collapsible behavior */
.drawer-section.collapsed .weekday-group { display: none; }

/* AI Chat: session table spacing and compact register button */
.ai-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin: 10px 0 6px; }
.ai-table thead th { text-align: left; font-weight: 800; color: #8B4513; font-size: 0.95rem; padding: 6px 10px; }
.ai-table tbody td { background: #f8f5f0; padding: 12px 10px; font-size: 0.95rem; color: #1a1a1a; }
.ai-table tbody tr td:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.ai-table tbody tr td:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.btn-sm { padding: 6px 10px !important; font-size: 12px !important; border-radius: 9999px !important; line-height: 1 !important; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-highlight {
        font-size: 3.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .process-flow {
        flex-direction: column;
        gap: 24px;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .universities {
        gap: 20px;
    }
    
    .math-formulas {
        gap: 20px;
    }
    
    .formula {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    /* AI Curriculum Generator Responsive */
    .curriculum-generator {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .generator-form,
    .curriculum-preview {
        padding: 24px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .curriculum-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .timeline-week {
        min-width: auto;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 15px 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-highlight {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .courses-grid,
    .coaches-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .coach-card,
    .course-card,
    .story-card {
        padding: 24px;
    }
    
    /* AI Curriculum Generator Mobile */
    .generator-form h3 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .curriculum-preview {
        min-height: 400px;
    }
    
    .ai-icon {
        font-size: 3rem;
    }
    
    .curriculum-results h4 {
        font-size: 1.4rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .ai-feature-card {
        padding: 24px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

.nav-desktop a.ai-curriculum-link {
    position: relative;
    animation: fadeInRight 1s ease-out 0.6s both;
}

/* Math Notations in Background - Reduced Set */
.math-symbol {
    position: absolute;
    font-family: 'Times New Roman', serif;
    font-size: 6rem;
    color: rgba(0, 0, 0, 0.15);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    animation: float 8s ease-in-out infinite, sparkle 4s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.15;
        filter: brightness(1) drop-shadow(0 0 0px rgba(139, 69, 19, 0));
    }
    25% {
        opacity: 0.25;
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(139, 69, 19, 0.3));
    }
    50% {
        opacity: 0.35;
        filter: brightness(1.4) drop-shadow(0 0 12px rgba(139, 69, 19, 0.5));
    }
    75% {
        opacity: 0.25;
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(139, 69, 19, 0.3));
    }
}

.pi-symbol {
    top: 20%;
    right: 15%;
    font-size: 8rem;
    transform: rotate(10deg);
    animation-delay: 0s, 0s;
}

.infinity-symbol {
    bottom: 10%;
    left: 10%;
    font-size: 10rem;
    transform: rotate(-20deg);
    opacity: 0.12;
    animation-delay: 4s, 1s;
}

.sigma-symbol {
    top: 50%;
    left: 5%;
    font-size: 7rem;
    transform: rotate(5deg);
    opacity: 0.12;
    animation-delay: 8s, 2s;
}

.integral-symbol {
    top: 15%;
    left: 40%;
    font-size: 9rem;
    transform: rotate(-15deg);
    opacity: 0.15;
    animation-delay: 12s, 3s;
}

.delta-symbol {
    top: 70%;
    right: 25%;
    font-size: 6rem;
    transform: rotate(15deg);
    opacity: 0.12;
    animation-delay: 16s, 0.5s;
}

.theta-symbol {
    top: 30%;
    left: 20%;
    font-size: 5rem;
    transform: rotate(-10deg);
    opacity: 0.13;
    animation-delay: 20s, 1.5s;
}

.alpha-symbol {
    top: 15%;
    left: 15%;
    font-size: 5rem;
    transform: rotate(-5deg);
    opacity: 0.03;
    animation-delay: 24s, 2.5s;
}

.beta-symbol {
    top: 80%;
    right: 20%;
    font-size: 6rem;
    transform: rotate(10deg);
    opacity: 0.03;
    animation-delay: 28s, 3.5s;
}

.gamma-symbol {
    top: 40%;
    right: 5%;
    font-size: 4rem;
    transform: rotate(-15deg);
    opacity: 0.04;
    animation-delay: 32s, 0.8s;
}

.lambda-symbol {
    bottom: 20%;
    left: 25%;
    font-size: 5rem;
    transform: rotate(20deg);
    opacity: 0.03;
    animation-delay: 36s, 1.8s;
}

.mu-symbol {
    top: 25%;
    left: 45%;
    font-size: 4rem;
    transform: rotate(-10deg);
    opacity: 0.04;
    animation-delay: 40s, 2.8s;
}

.nu-symbol {
    bottom: 40%;
    right: 35%;
    font-size: 5rem;
    transform: rotate(15deg);
    opacity: 0.03;
    animation-delay: 44s, 3.8s;
}

/* Additional Sigma, Integral, and Delta notations */
.sigma-large {
    top: 60%;
    left: 10%;
    font-size: 8rem;
    transform: rotate(-25deg);
    opacity: 0.12;
    animation-delay: 48s, 0.3s;
}

.integral-large {
    top: 35%;
    right: 10%;
    font-size: 10rem;
    transform: rotate(20deg);
    opacity: 0.15;
    animation-delay: 52s, 1.3s;
}

.delta-large {
    bottom: 15%;
    left: 35%;
    font-size: 9rem;
    transform: rotate(-30deg);
    opacity: 0.12;
    animation-delay: 56s, 2.3s;
}

.sigma-small {
    top: 45%;
    right: 25%;
    font-size: 4rem;
    transform: rotate(15deg);
    opacity: 0.14;
    animation-delay: 60s, 3.3s;
}

.integral-small {
    top: 75%;
    right: 15%;
    font-size: 3.5rem;
    transform: rotate(-15deg);
    opacity: 0.12;
    animation-delay: 64s, 0.7s;
}

.delta-small {
    top: 75%;
    right: 15%;
    font-size: 3.5rem;
    transform: rotate(15deg);
    opacity: 0.12;
    animation-delay: 6s, 1.7s;
}

/* Enhanced Animation Keyframes */
@keyframes float {
    0% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.12;
    }
    25% {
        transform: translateY(-8px) rotate(2deg) scale(1.02);
        opacity: 0.16;
    }
    50% { 
        transform: translateY(-15px) rotate(5deg) scale(1.05);
        opacity: 0.20;
    }
    75% {
        transform: translateY(-8px) rotate(2deg) scale(1.02);
        opacity: 0.16;
    }
    100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.12;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.13;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.18;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure hero text alternation works on mobile */
@media (max-width: 768px) {
    .hero-highlight {
        font-size: 2.5rem;
        margin: 0 4px;
        transition: opacity 0.3s ease;
    }
    
    .hero-highlight.fade-out {
        opacity: 0;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
}

#mobile-menu {
    display: none;
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

#mobile-menu.active {
    transform: translateY(0);
}

#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-menu li {
    margin: 15px 0;
}

#mobile-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 16px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Universities Section - Horizontal Scrolling Animation */
.universities {
    max-width: 1200px;
    overflow: hidden;
    margin: 60px auto;
    position: relative;
    padding: 40px 0;
    animation: fadeInUp 1s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.universities-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scrollLogos 30s linear infinite;
    width: max-content;
    padding: 0 30px;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.university {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    border-radius: 16px;
    transition: all 0.4s ease;
    transform: scale(1);
    opacity: 0;
    animation: fadeInScale 0.8s ease-out forwards;
    position: relative;
    min-width: 180px;
    min-height: 120px;
    flex-shrink: 0;
}

.university:nth-child(1) { animation-delay: 1.0s; }
.university:nth-child(2) { animation-delay: 1.2s; }
.university:nth-child(3) { animation-delay: 1.4s; }
.university:nth-child(4) { animation-delay: 1.6s; }
.university:nth-child(5) { animation-delay: 1.8s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.university img {
    height: 80px;
    width: auto;
    filter: grayscale(0%);
    border-radius: 8px;
}

.university:hover img {
    transform: scale(1.3);
    filter: grayscale(0%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.university span {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 16px;
    white-space: nowrap;
    text-align: center;
}

/* Assignment Dashboard */
.dashboard-page {
    background: #ffffff;
}

.dashboard-main {
    padding: 75px 0 80px;
}

.assignment-board {
    padding: 48px 0 0;
}

.assignment-board .container {
    max-width: 1600px;
}

.assignment-board-container {
    background: #ffffff;
    border: 1px solid rgba(139, 69, 19, 0.08);
    border-radius: 28px;
    padding: 36px 36px 48px;
    box-shadow: 0 32px 60px -40px rgba(48, 32, 15, 0.55);
    position: relative;
    overflow: hidden;
}

.assignment-board-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(139, 69, 19, 0.08), rgba(139, 69, 19, 0.02));
    opacity: 0.9;
}

.assignment-board-container > * {
    position: relative;
    z-index: 1;
}

.assignment-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.assignment-board-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #4a351f;
    margin: 0;
}

.assignment-board-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assignment-board-actions .assignment-add-btn {
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 600;
}

[data-view-section][hidden] {
    display: none !important;
}

/* Homework / Exam toggle */
.assignment-view-tabs {
    display: inline-flex;
    border: 1px solid rgba(107, 52, 16, 0.25);
    border-radius: 999px;
    overflow: hidden;
    margin: 16px 0 32px;
    background: #fffdf9;
    box-shadow: 0 8px 24px -20px rgba(0, 0, 0, 0.4);
}

.assignment-view-tab {
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #6b3410;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.assignment-view-tab.is-active {
    background: #6b3410;
    color: #fff;
}

.assignment-view-tab:not(.is-active):hover {
    background: rgba(107, 52, 16, 0.08);
}

/* Exam view */
.exam-view {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.exam-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.exam-column {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(139, 69, 19, 0.1);
    padding: 20px;
    box-shadow: 0 24px 60px -45px rgba(48, 32, 15, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exam-column-header {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid rgba(139, 69, 19, 0.15);
    padding-bottom: 12px;
}

.exam-column-header .column-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
}

.column-icon-exam {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 6px 16px -8px rgba(239, 68, 68, 0.55);
}

.column-icon-past {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    box-shadow: 0 6px 16px -8px rgba(59, 130, 246, 0.55);
}

.exam-column-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #3c2918;
}

.exam-column-header p {
    margin: 2px 0 0;
    color: #85705b;
    font-size: 0.92rem;
}

.exam-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exam-card {
    background: #fffaf4;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(139, 69, 19, 0.12);
    box-shadow: 0 12px 32px -28px rgba(48, 32, 15, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exam-card header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exam-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #3c2918;
}

.exam-subject {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a07048;
}

.exam-meta p {
    margin: 2px 0;
    color: #5b4634;
    font-size: 0.92rem;
}

.exam-action {
    align-self: flex-start;
    border: none;
    border-radius: 14px;
    background: #6b3410;
    color: #fff;
    font-weight: 600;
    padding: 8px 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exam-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -18px rgba(107, 52, 16, 0.65);
}

.view-fade-in {
    animation: viewFade 0.25s ease-out;
}

@keyframes viewFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .assignment-view-tabs {
        width: 100%;
    }

    .assignment-view-tab {
        flex: 1;
        text-align: center;
    }

    .exam-columns {
        grid-template-columns: 1fr;
    }
}

.assignment-board-status {
    display: none;
}

.assignment-board-status[data-status-type="error"] {
    color: #a62314;
}

.assignment-board-status[data-status-type="muted"] {
    color: #b6a691;
    font-style: italic;
}

.assignment-modal {
    position: fixed;
    inset: 0;
    background: rgba(24, 18, 13, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 16px;
}

.assignment-modal.active {
    display: flex;
}

.assignment-modal-overlay {
    position: absolute;
    inset: 0;
}

.assignment-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    width: min(420px, calc(100vw - 48px));
    box-shadow: 0 28px 60px -30px rgba(27, 19, 12, 0.45);
    z-index: 1;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.assignment-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #8b4513;
    cursor: pointer;
}

.assignment-modal h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #4a351f;
}

.assignment-modal-subtitle {
    margin: 6px 0 22px;
    color: #7a6a57;
    font-size: 0.95rem;
}

.assignment-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.assignment-form-inline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.assignment-form-inline .assignment-form-field {
    flex: 1 1 160px;
    margin-bottom: 0;
}

.assignment-modal label {
    font-weight: 600;
    color: #4a351f;
    font-size: 0.95rem;
}

.assignment-modal input,
.assignment-modal textarea,
.assignment-modal select {
    width: 100%;
    border: 1px solid rgba(139, 69, 19, 0.18);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.assignment-modal input:focus,
.assignment-modal textarea:focus,
.assignment-modal select:focus {
    outline: none;
    border-color: rgba(139, 69, 19, 0.45);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
}

.assignment-modal input[disabled],
.assignment-modal textarea[disabled],
.assignment-modal select[disabled] {
    background: #f4f1ec;
    color: #8c8477;
    cursor: not-allowed;
}

.assignment-modal textarea {
    resize: vertical;
    min-height: 100px;
}

.assignment-field-hint {
    display: inline-block;
    color: #b6a691;
    font-size: 0.8rem;
}

.assignment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

.assignment-edit-info {
    display: none;
    background: #fff4e8;
    border: 1px solid rgba(139, 69, 19, 0.18);
    color: #7a6a57;
    font-size: 0.9rem;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.assignment-edit-info.show {
    display: block;
}

.assignment-edit-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 1rem;
    color: rgba(90, 58, 24, 0.55);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    z-index: 3;
    border: none;
}

.assignment-card:hover .assignment-edit-icon {
    color: rgba(90, 58, 24, 0.85);
    background: rgba(255, 255, 255, 0.95);
}

.assignment-edit-icon:hover {
    transform: scale(1.06);
}

.assignment-edit-icon:active {
    transform: scale(0.96);
}


.assignment-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    max-width: 1420px;
    margin: 0 auto;
}

.assignment-column {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(139, 69, 19, 0.08);
    border-radius: 18px;
    padding: 26px 26px 30px;
    box-shadow: 0 32px 48px -30px rgba(67, 47, 20, 0.28);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.assignment-column-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.assignment-column-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #4a351f;
    font-weight: 700;
}

.assignment-column-header p {
    display: none;
}

.assignment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 120px;
}

.assignment-empty {
    margin: 0;
    color: #a09483;
    font-size: 0.9rem;
    display: none;
    pointer-events: none;
}

.assignment-empty.visible {
    display: block;
}

.assignment-column.drag-over {
    border-color: rgba(139, 69, 19, 0.35);
    box-shadow: 0 32px 56px -28px rgba(67, 47, 20, 0.38);
    background: rgba(255, 255, 255, 0.98);
}

.assignment-loading-indicator {
    display: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.85);
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.assignment-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(139, 69, 19, 0.25);
    border-top-color: #8B4513;
    animation: assignment-spin 0.8s linear infinite;
}

@keyframes assignment-spin {
    to { transform: rotate(360deg); }
}

.assignment-column.is-loading .assignment-loading-indicator {
    display: flex;
}

.assignment-column.is-loading {
    pointer-events: none;
}

.assignment-column.is-loading .assignment-list,
.assignment-column.is-loading .assignment-empty {
    opacity: 0.25;
}

.column-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.column-icon-todo {
    background: linear-gradient(135deg, #ff6b6b, #ff8a8a);
}

.column-icon-progress {
    background: linear-gradient(135deg, #ffb347, #ff944d);
}

.column-icon-completed {
    background: linear-gradient(135deg, #32d583, #2bb673);
}

.assignment-card {
    position: relative;
    background: #fefcfa;
    border-radius: 18px;
    padding: 24px 24px 22px;
    border: 1.5px solid rgba(139, 69, 19, 0.18);
    box-shadow: 0 16px 38px -26px rgba(48, 32, 15, 0.45);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    cursor: grab;
    will-change: transform, box-shadow;
}

.assignment-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 26px 54px -28px rgba(48, 32, 15, 0.5);
    border-color: rgba(139, 69, 19, 0.34);
    background: #fff8ed;
}

.assignment-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.65);
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.assignment-card:hover::before {
    opacity: 0.55;
}

.assignment-card:active {
    cursor: grabbing;
}


.assignment-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.assignment-pill-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.assignment-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #3a2a18;
}


.assignment-subject-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--subject-pill-text, #3b2169);
    background: var(--subject-pill-bg, #dfc9ff);
    border: 1px solid var(--subject-pill-border, #bea1f5);
    box-shadow: 0 8px 14px -12px rgba(107, 74, 43, 0.35);
}

.assignment-priority-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.assignment-priority-pill.priority-high {
    background: rgba(214, 52, 33, 0.18);
    color: #7a1d0f;
    border: 1px solid rgba(214, 52, 33, 0.45);
}

.assignment-priority-pill.priority-medium {
    background: rgba(255, 149, 0, 0.18);
    color: #7a4200;
    border: 1px solid rgba(255, 149, 0, 0.42);
}

.assignment-priority-pill.priority-low {
    background: rgba(52, 199, 89, 0.18);
    color: #1f6a3a;
    border: 1px solid rgba(52, 199, 89, 0.38);
}

.assignment-card p {
    margin: 0;
    color: #655a4c;
    line-height: 1.6;
    font-size: 0.98rem;
}

.assignment-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: #7f7666;
    font-size: 0.92rem;
}

.assignment-card footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.assignment-card footer i {
    color: #a28f7a;
}

.assignment-card .assignment-due-label {
    color: #8a8374;
}

.assignment-card .assignment-due-label i {
    color: #8a8374;
}

.assignment-card a.assignment-link {
    color: #6b4a2b;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.assignment-card a.assignment-link:hover {
    color: #8B4513;
}

@media (max-width: 1100px) {
    .assignment-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .assignment-board-title {
        font-size: 2.2rem;
    }
    .assignment-board-header {
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .assignment-columns {
        grid-template-columns: 1fr;
    }

    .assignment-column {
        min-height: auto;
    }

    .assignment-board-container {
        padding: 28px 22px 36px;
    }
}

@media (max-width: 640px) {
    .assignment-board {
        padding-top: 32px;
    }

    .assignment-card footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .assignment-board-title {
        font-size: 1.85rem;
    }
    .assignment-board-header {
        align-items: flex-start;
    }
    .assignment-board-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .assignment-board-actions .btn {
        width: 100%;
        text-align: center;
    }
    .assignment-board-actions .assignment-add-btn {
        width: 100%;
    }
}

/* Assignments drawer headers: caret toggle; remove pill styles */
#assignments-drawer .drawer-section-title{display:flex;align-items:center;gap:8px;background:transparent;border:none;border-radius:0;padding:8px 0;}
#assignments-drawer .drawer-section-title .drawer-caret{font-size:1.1rem;opacity:0.9;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:2px solid #8B4513;border-radius:4px;color:#8B4513;}
#assignments-drawer .drawer-section.collapsed .weekday-group{display:none}
