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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header and Navigation */
header {
    background: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: #1a365d;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a.active {
    color: #FFA500;
    font-weight: 700;
}

.nav-links a:hover {
    color: #FFA500;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 150px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    border-radius: 0;
    white-space: nowrap;
}

.dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-menu a:only-child {
    border-radius: 8px;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

/* Main Content */
main {
    margin-top: 0;
    flex: 1;
    /* Grow to push footer to bottom */
}

/* Parallax Background */
.parallax-container {
    position: fixed;
    top: 300px;
    left: 0;
    width: 100%;
    height: calc(100vh - 300px);
    z-index: -1;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: 
        linear-gradient(to bottom, 
            rgba(248, 249, 250, 0.9) 0%, 
            rgba(248, 249, 250, 0.9) 15%,
            rgba(248, 249, 250, 0.8) 30%, 
            rgba(248, 249, 250, 0.4) 45%, 
            rgba(248, 249, 250, 0.1) 60%,
            transparent 75%,
            transparent 85%,
            rgba(248, 249, 250, 0.1) 90%,
            rgba(248, 249, 250, 0.8) 95%,
            rgba(248, 249, 250, 0.9) 100%),
        url('../media/photo/home_parrallax.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    will-change: transform;
}

/* Home Banner */
.home-banner {
    margin-top: 70px;
    padding: 2rem;
    position: relative;
}

.hero-text-box {
    background: rgba(26, 54, 93, 0.8);
    border-radius: 20px;
    padding: 2rem 2rem;
    color: white;
    text-align: center;
    backdrop-filter: blur(10px);
}


.hero-text-box .hero-tagline {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.3rem;
}

.hero-text-box h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-text-box .hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeInSubtitle 1s ease-in-out 2s forwards;
}

@keyframes fadeInSubtitle {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* Brand Section */
.brand-section {
    background: transparent;
    text-align: center;
    padding: 4rem 2rem;
}

.logo-container {
    margin-bottom: 2rem;
}

.app-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    display: block;
    border-radius: 50px;
    animation: rubberBounce 7s ease-in-out infinite;
}

@keyframes rubberBounce {

    0%,
    90%,
    100% {
        transform: scale(1);
    }

    92% {
        transform: scale(0.92) rotate(-1deg);
    }

    94% {
        transform: scale(1.05) rotate(0.5deg);
    }

    96% {
        transform: scale(0.98) rotate(-0.2deg);
    }

    98% {
        transform: scale(1.01) rotate(0deg);
    }
}

.tagline {
    font-size: 2rem;
    color: #FF7CCA;
    font-family: 'Caveat', 'Kalam', 'Pacifico', 'Dancing Script', 'Brush Script MT', cursive;
    font-weight: 500;
    margin-top: 1rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* added */
}

.ticker-text {
    display: inline-block;
    white-space: nowrap;
    padding-right: 0.4em;
    /* let ink overflow land inside box */
}

/* Section Styling */
.teacher-section {
    background: white;
    margin: 6rem 2rem;
    max-width: 1200px;
    border-radius: 40px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(255, 165, 0, 0.8);
}

.student-section {
    background: white;
    margin: 10rem auto 15rem auto;
    max-width: 600px;
    border-radius: 40px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(255, 165, 0, 0.8);
}

/* Tablet and up - centered with auto margins */
@media (min-width: 1240px) {

    .teacher-section,
    .student-section {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Wide desktop - keep stacked layout (removed side-by-side) */
@media (min-width: 1600px) {
    .teacher-section,
    .student-section {
        margin-left: auto;
        margin-right: auto;
    }
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon-img {
    width: 70px;
    height: 70px;
    border-radius: 18px;
}

.section-text {
    font-size: 2rem;
    color: #1a365d;
    font-weight: 600;
    margin: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.teacher-section .content-grid {
    align-items: start;
}

.teacher-section .demo-content {
    margin-top: 11rem;
}

.student-single-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.student-single-column .student-description {
    width: 75%;
    text-align: left;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.student-section .content-grid {
    grid-template-columns: 1fr 1fr;
}

.text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-content h3 {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: left;
    width: 75%;
}

.text-content p {
    width: 75%;
    text-align: left;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.feature-image {
    margin: 2rem 0;
}

.student-description {
    font-weight: normal !important;
    margin-bottom: 2rem;
}

.student-section .text-content {
    display: flex;
    flex-direction: column;
}

.student-section .text-content:first-child .student-description {
    margin-top: 0;
}

.student-section .text-content:last-child .student-description {
    margin-top: 0;
}

.spacer {
    height: 6rem;
}

.demo-label-left,
.demo-label-right,
.demo-label {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 1rem;
}

.device-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

.ipad-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.cta-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.learn-more-btn {
    background: white;
    color: #333;
    border: 2px solid #000;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    text-decoration: none;
    display: inline-block;
}

.learn-more-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-store-badge {
    margin-top: 1rem;
}

.app-store-badge img {
    height: 40px;
}

/* Demo Content */
.demo-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.phone-demo {
    position: relative;
    width: 260px;
    height: 520px;
}

.student-single-column .phone-demo {
    width: 280px;
    height: 560px;
    box-shadow: 0 20px 35px -18px rgba(0, 0, 0, 0.15);
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hide honeypot field for spam protection */
.hidden {
    display: none;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
    padding: 8rem 2rem 4rem 2rem; /* Increased top padding */
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 2rem; /* Increased space below title */
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a365d;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.recaptcha-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.submit-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.response-info {
    text-align: center;
    margin-top: 2rem;
    color: #64748b;
}

.response-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.response-info p:last-child {
    color: #cbd5e1; /* Even lighter gray for timezone */
    font-size: 0.8rem; /* Smaller font */
}

/* Footer */
footer {
    background: #1a365d;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    font-size: 0.8rem;
    /* Smaller font */
    margin: 0;
}

/* Responsive Design */

/* Tablet portrait and landscape */
@media (min-width: 768px) and (max-width: 1239px) {
    
    .hero-text-box h1 {
        font-size: 2.4rem;
    }
    
    .hero-text-box .hero-tagline {
        font-size: 1.3rem;
    }
    
    .hero-text-box .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .home-banner,
    .teacher-banner {
        padding: 1rem !important;
        margin-left: 2.7rem !important;
        margin-right: 0.2rem !important;
    }
    
    .banner-container {
        max-width: 100% !important;
        margin: 0 auto !important;
        height: 200px !important;
        transform: translateX(-1.25%) !important;
    }
    
    .banner-right,
    .banner-left {
        height: 200px !important;
    }
    
    .banner-right {
        flex: 0 0 46% !important;
    }
    
    .banner-left {
        flex: 0 0 56% !important;
        margin-right: -3.5% !important;
    }

    .main-sections {
        padding: 0 1rem;
    }
    
    .teacher-section,
    .student-section {
        margin: 8rem auto;
        padding: 3rem;
    }

    .phone-demo {
        width: 210px;
        height: 420px;
    }
}

/* Desktop - restore original styling */
@media (min-width: 1240px) {
    .home-banner,
    .teacher-banner {
        padding: 2rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .banner-container {
        max-width: 1200px !important;
        height: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: translateX(-3.5%) !important;
    }
    
    .banner-right,
    .banner-left {
        height: 300px !important;
    }
    
    .banner-right {
        flex: 0 0 50% !important;
    }
    
    .banner-left {
        flex: 0 0 60% !important;
        margin-right: -3% !important;
    }
}

/* Wide Desktop - use responsive container width for transition */
@media (min-width: 1240px) and (max-width: 1400px) {
    .banner-container {
        max-width: calc(100% - 4rem) !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-text-box h1 {
        font-size: 2.2rem;
    }
    
    .hero-text-box .hero-tagline {
        font-size: 1.2rem;
    }
    
    .hero-text-box .hero-subtitle {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .teacher-section .demo-content {
        margin-top: 1rem;
    }

    .demo-content {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }

    .phone-demo {
        width: min(240px, 80vw);
        height: min(480px, 160vw);
        margin: 0 auto;
    }

    .main-sections {
        padding: 0 0.5rem;
    }
    
    .teacher-section,
    .student-section {
        margin: 6rem auto;
        padding: 2rem 1rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .spacer {
        display: none;
    }

    .student-section .text-content {
        order: 0;
    }

    .student-section .text-content:first-child {
        order: 1;
    }

    .student-section .text-content:last-child {
        order: 2;
    }
}

/* Teacher Page Styles */
.teacher-banner {
    margin-top: 70px;
    /* Account for fixed header */
    padding: 2rem;
    position: relative;
}

.banner-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 300px;
    /* Back to original height */
}

.banner-strip {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner-left {
    flex: 0 0 60%;
    margin-right: -3%;
    /* Set overlap to -3% */
    z-index: 2;
    background: #1a365d;
    position: relative;
    height: 300px;
    /* Fixed height */
}

.banner-right {
    flex: 0 0 50%;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1;
    height: 300px;
    /* Same height, no offset */
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

/* Student page specific banner styling */
.student-page .banner-left {
    background: black !important;
}

.student-page .banner-background {
    opacity: 0.3 !important;
}

.student-page .logo-background-box {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
}

.banner-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-background-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 2rem 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.static-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.static-banner-image {
    width: 82%;
    height: 90%;
    object-fit: cover;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}

/* Description Section */
.description-section {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
}

.description-container {
    max-width: 800px;
    margin: 0 auto;
}

.description-section p {
    color: #64748b;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
}

/* Mobile responsive for description */
@media (max-width: 768px) {
    .description-section {
        padding: 2rem 1rem;
    }

    .description-section p {
        font-size: 1.1rem;
    }

    .description-section br {
        display: none;
    }
}

/* Features Section */
.features-section {
    background: white;
    padding: 4rem 2rem;
    text-align: center;
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.feature-item p {
    color: #1a365d;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.features-description {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.5;
}

.features-description p {
    margin: 0;
}

/* Mobile responsive for features */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .features-section {
        padding: 2rem 1rem;
    }

    .features-description {
        font-size: 1rem;
    }

    .features-description br {
        display: none;
    }
}

/* User Guide Section */
.user-guide-section {
    padding: 4rem 2rem 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.user-guide-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 3rem;
}

.user-guide-grid {
    display: grid;
    grid-template-columns: repeat(5, 280px);
    /* Very large screens: 2 rows of 5, fixed width */
    gap: 2rem;
    padding: 1rem;
    justify-content: center;
    /* Center the grid */
}

.guide-item {
    background: white;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.guide-item:hover,
.guide-item.hovered {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.guide-image {
    width: 100%;
    height: 240px;
    /* More space for the image */
    overflow: hidden;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guide-item:hover .guide-image img,
.guide-item.hovered .guide-image img {
    transform: scale(1.05);
}

.guide-text {
    padding: 1.5rem;
    text-align: center;
}

.guide-text h3 {
    font-size: 1.3rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    /* Smooth transition */
}

.guide-item:hover .guide-text h3,
.guide-item.hovered .guide-text h3 {
    color: #FFA500;
    /* Orange color */
    font-size: 1.8rem;
    /* Bigger font */
}

.guide-text p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Laptop (13" and similar): 2 columns, 5 rows */
@media (max-width: 1599px) and (min-width: 1024px) {
    .user-guide-grid {
        grid-template-columns: repeat(2, 280px);
    }
}

/* Tablet: 2 columns, 5 rows */
@media (max-width: 1023px) and (min-width: 769px) {
    .user-guide-grid {
        grid-template-columns: repeat(2, 280px);
        gap: 1.5rem;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .user-guide-grid {
        grid-template-columns: 280px;
        gap: 1.5rem;
    }
    .banner-container {
        flex-direction: column;
        height: auto;
        gap: 0.1rem;
    }

    .banner-left {
        flex: none;
        margin-right: 0;
        height: 200px;
    }

    .banner-right {
        flex: none;
        height: 100px;
        margin-top: 0;
    }
}

    .teacher-banner {
        padding: 1rem;
    }

    .user-guide-section {
        padding: 2rem 1rem;
    }
}

/* Mobile Burger Menu - Hidden by default */
.mobile-menu-toggle {
    display: none !important;
    border: 2px solid #6c757d;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure burger menu is hidden on larger screens */
@media (min-width: 481px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        flex-direction: row !important;
        pointer-events: auto !important;
        width: auto !important;
        gap: 3rem !important;
    }
}

.mobile-menu-toggle:hover {
    border-color: #495057;
}

.mobile-menu-toggle i {
    font-size: 22px;
    color: #495057;
}

/* Mobile: burger menu and vertical navigation */
@media (max-width: 480px) {
    nav {
        position: relative;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 15px;
        transform: translateY(-100%);
        width: auto;
        min-width: 120px;
        max-width: 90vw;
        background: white;
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 0.5rem 0;
        gap: 0;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 10002;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Temporarily disable hover on menu open */
    .nav-links.active a {
        pointer-events: none;
        animation: enableHover 0.1s ease forwards;
    }
    
    @keyframes enableHover {
        to {
            pointer-events: auto;
        }
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
        text-align: left;
    }
    
    .nav-links a:hover {
        background: #f8f9fa;
    }
    
    .dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
        width: auto;
        min-width: 100px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 0.5rem 0;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-10px);
        transition: all 0.3s ease;
        z-index: 10003;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }
    
    .dropdown-menu a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        color: #1a365d;
        display: block;
    }
    
    .dropdown-menu a:hover {
        background: #f8f9fa;
    }
    
    .banner-container {
        flex-direction: column;
        height: auto;
        gap: 0.1rem;
    }

    .banner-left {
        flex: none;
        margin-right: 0;
        height: 200px;
    }

    .banner-right {
        flex: none;
        height: 100px;
        margin-top: 0;
    }

    .teacher-banner {
        padding: 1rem;
    }

    .user-guide-grid {
        grid-template-columns: 280px;
        gap: 1.5rem;
        justify-content: center;
    }

    .guide-item {
        /* Remove mobile-specific height override to match desktop */
    }

    .static-image-container {
        padding: 0.5rem 0;
    }
    
    .static-banner-image {
        width: 96%;
        height: 95%;
    }
    
    .guide-image {
        height: 240px;
        /* Keep same image height as desktop */
    }

    .user-guide-section {
        padding: 2rem 1rem;
    }
}

/* User Guide Page Styles */
.guide-section {
    background: white;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 3rem;
}

.section-text {
    flex: 2;
}

.guide-section .section-title {
    font-size: 2.5rem;
    color: #FFA500;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.section-description p {
    margin-bottom: 1rem;
}

.feature-list {
    margin: 1rem 0 1rem 2rem;
    list-style-type: disc;
}

.feature-list li {
    margin-bottom: 0.5rem;
    color: #555;
}

.link {
    color: #007bff;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.section-videos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.video-thumbnail {
    position: relative;
    width: 150px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.05);
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .play-button {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Responsive Design for User Guide Sections */
@media (max-width: 768px) {
    .section-content {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    
    .section-videos {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .video-thumbnail {
        width: 112px;
        height: 150px;
    }
    
    .guide-section .section-title {
        font-size: 2rem;
    }
}

/* Common Section Header Styles */
.lessons-header,
.reuse-header,
.tools-header,
.repertoire-header,
.claps-header,
.schedule-header,
.connect-header,
.reports-header,
.practice-header,
.messaging-header {
    background: linear-gradient(135deg, #e8f4f8 0%, #d6e9f0 100%);
    padding: 2rem 3rem;
    border-radius: 20px 20px 0 0;
}

.lessons-header-content,
.reuse-header-content,
.tools-header-content,
.repertoire-header-content,
.claps-header-content,
.schedule-header-content,
.connect-header-content,
.reports-header-content,
.practice-header-content,
.messaging-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lessons-app-preview,
.reuse-app-preview,
.tools-app-preview,
.repertoire-app-preview,
.claps-app-preview,
.schedule-app-preview,
.connect-app-preview,
.reports-app-preview,
.practice-app-preview,
.messaging-app-preview {
    flex-shrink: 0;
}

.app-preview-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.lessons-header .section-title,
.reuse-header .section-title,
.tools-header .section-title,
.repertoire-header .section-title,
.claps-header .section-title,
.schedule-header .section-title,
.connect-header .section-title,
.reports-header .section-title,
.practice-header .section-title,
.messaging-header .section-title {
    color: #FFA500;
    margin: 0;
}

/* Subsection Styles */
.subsection {
    border-top: 1px solid #e0e0e0;
    padding: 0;
}

.subsection:first-of-type {
    border-top: none;
}

.subsection-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 3rem;
}

.subsection-text {
    flex: 2;
}

.subsection-title {
    font-size: 1.8rem;
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.subsection-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.subsection-video {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.subsection-videos {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.sub-list {
    margin: 0.5rem 0 0.5rem 1.5rem;
    list-style-type: circle;
}

.sub-list li {
    margin-bottom: 0.3rem;
    color: #666;
    font-size: 0.95rem;
}

.sub-heading {
    font-size: 1.3rem;
    color: #1a365d;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

/* Responsive Design for Lessons Section */
@media (max-width: 768px) {
    .lessons-header {
        padding: 2rem;
    }
    
    .lessons-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .app-preview-image {
        width: 200px;
        height: 200px;
    }
    
    .subsection-content {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    
    .subsection-title {
        font-size: 1.5rem;
    }
    
    .subsection-video,
    .subsection-videos {
        justify-content: flex-end;
    }
}

/* Common Section Intro Styles */
.reuse-intro,
.tools-intro,
.repertoire-intro,
.claps-intro,
.schedule-intro,
.reports-intro,
.practice-intro,
.messaging-intro {
    padding: 2rem 3rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.reuse-intro p,
.tools-intro p,
.repertoire-intro p,
.claps-intro p,
.schedule-intro p,
.reports-intro p,
.practice-intro p,
.messaging-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.reuse-intro p:last-child,
.tools-intro p:last-child,
.repertoire-intro p:last-child,
.claps-intro p:last-child,
.schedule-intro p:last-child,
.reports-intro p:last-child,
.practice-intro p:last-child,
.messaging-intro p:last-child {
    margin-bottom: 0;
}

/* Responsive Design for Reuse Section */
@media (max-width: 768px) {
    .reuse-header {
        padding: 2rem;
    }
    
    .reuse-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .reuse-intro {
        padding: 2rem;
    }
}


.tools-category {
    padding: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.tools-category:last-child {
    border-bottom: none;
}

.category-title {
    font-size: 1.8rem;
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 2rem;
}

.tool-group {
    margin-bottom: 2rem;
}

.tool-group:last-child {
    margin-bottom: 0;
}

.tool-group-title {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tool-list {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.tool-list > li {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1rem;
}

.tool-list > li:last-child {
    margin-bottom: 0;
}

.tool-details {
    margin: 0.5rem 0 0 1.5rem;
    padding-left: 0;
    list-style-type: circle;
}

.tool-details li {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tool-details li:last-child {
    margin-bottom: 0;
}

/* Tools Category Specific Styles */
.tools-category {
    padding: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.tools-category:last-child {
    border-bottom: none;
}

.category-title {
    font-size: 1.8rem;
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 2rem;
}

.tool-group {
    margin-bottom: 2rem;
}

.tool-group:last-child {
    margin-bottom: 0;
}

.tool-group-title {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tool-list {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.tool-list > li {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1rem;
}

.tool-list > li:last-child {
    margin-bottom: 0;
}

.tool-details {
    margin: 0.5rem 0 0 1.5rem;
    padding-left: 0;
    list-style-type: circle;
}

.tool-details li {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tool-details li:last-child {
    margin-bottom: 0;
}

/* Connect Content Specific Style */
.connect-content {
    padding: 0;
}

/* Consolidated Responsive Design for All Sections */
@media (max-width: 768px) {
    .lessons-header,
    .reuse-header,
    .tools-header,
    .repertoire-header,
    .claps-header,
    .schedule-header,
    .connect-header,
    .reports-header,
    .practice-header,
    .messaging-header {
        padding: 2rem;
    }
    
    .lessons-header-content,
    .reuse-header-content,
    .tools-header-content,
    .repertoire-header-content,
    .claps-header-content,
    .schedule-header-content,
    .connect-header-content,
    .reports-header-content,
    .practice-header-content,
    .messaging-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .reuse-intro,
    .tools-intro,
    .repertoire-intro,
    .claps-intro,
    .schedule-intro,
    .reports-intro,
    .practice-intro,
    .messaging-intro {
        padding: 2rem;
    }
    
    .tools-category {
        padding: 2rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .app-preview-image {
        width: 200px;
        height: 200px;
    }
}

/* Section Spacing */
.guide-section {
    margin-bottom: 4rem;
}

/* Getting Started Section - General Info */
.getting-started-info {
    padding: 2rem 3rem;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 2rem;
}

.getting-started-info p {
    margin-bottom: 1rem;
}

.getting-started-info p:last-child {
    margin-bottom: 0;
}

/* Small video thumbnails for Getting Started subsections */
.video-thumbnail-small {
    position: relative;
    width: 150px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
}

.video-thumbnail-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-thumbnail-small .video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail-small .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.video-thumbnail-small:hover .play-button {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* User Guide Banner Image Styling */
.static-banner-image {
    border-radius: 5px;
}

/* Floating TOC Button */
.floating-toc {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 999;
}

.toc-button {
    background: #FFA500;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
    transition: all 0.3s ease;
}

.toc-button i {
    font-size: 20px;
    color: white;
}

.toc-button:hover {
    background: #e6940a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

.toc-menu {
    position: absolute;
    top: 0;
    right: 60px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    min-width: 250px;
    max-height: 300px;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #FFA500 #f1f1f1;
}

/* Force scrollbar to always be visible on webkit browsers */
.toc-menu::-webkit-scrollbar {
    width: 8px;
    -webkit-appearance: none;
}

.toc-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.1);
}

.toc-menu::-webkit-scrollbar-thumb {
    background: #FFA500;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.2);
    min-height: 20px;
}

.toc-menu::-webkit-scrollbar-thumb:hover {
    background: #e6940a;
}

/* Force scrollbar to always show */
.toc-menu::-webkit-scrollbar-thumb {
    background: #FFA500 !important;
}

.toc-menu::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

/* Removed hover trigger - menu only opens on click/tap */

.toc-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.toc-menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}


.toc-menu a:first-child {
    border-radius: 12px 12px 0 0;
}

.toc-menu a:hover {
    background: #f8f9fa;
    color: #FFA500;
    padding-left: 1.2rem;
}

/* Mobile active state for TOC */
.floating-toc.active .toc-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile adjustments for TOC */
@media (max-width: 768px) {
    .floating-toc {
        top: 80px;
        right: 15px;
    }
    
    .toc-button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .toc-menu {
        right: 55px;
        min-width: 200px;
        max-height: 250px;
    }
    
    .toc-menu a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    background-color: #000;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    z-index: 10001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.video-close:hover {
    background: #f0f0f0;
}

#videoFrame {
    width: 800px;
    height: 450px;
    border-radius: 8px;
}

/* Responsive video modal */
@media (max-width: 768px) {
    #videoFrame {
        width: 90vw;
        height: calc(90vw * 0.5625); /* 16:9 aspect ratio */
    }
    
    .video-close {
        top: -10px;
        right: -10px;
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}

/* Tutorial Section Styles */
.tutorial-section {
    background: white;
    margin: 6rem 2rem;
    max-width: 1200px;
    border-radius: 40px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(255, 165, 0, 0.8);
}

.tutorial-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tutorial-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a365d;
}

.tutorial-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tutorial-table-title {
    font-size: 1.8rem;
    color: #1a365d;
    margin-bottom: 1rem;
    border-bottom: 2px solid #FFA500;
    padding-bottom: 0.5rem;
}

.tutorial-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.tutorial-text {
    flex: 1;
}

.tutorial-text p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.tutorial-video {
    flex-shrink: 0;
    margin-left: 2rem;
}

.tutorial-video .video-thumbnail {
    position: relative;
    width: 150px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
}

.tutorial-video .video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tutorial-video .video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutorial-video .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tutorial-video .video-thumbnail:hover .play-button {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Responsive styles for tutorial section */
@media (min-width: 1240px) {
    .tutorial-section {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .tutorial-section {
        margin: 4rem 1rem;
        padding: 2rem 1rem;
    }
    
    .tutorial-title {
        font-size: 2rem;
    }
    
    .tutorial-table-title {
        font-size: 1.5rem;
    }
    
    .tutorial-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tutorial-video {
        margin-left: 0;
    }
    
    .tutorial-video .video-thumbnail {
        width: 112px;
        height: 150px;
    }
    
    .tutorial-video .play-button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}
