/* Modern Attractive Styles for Math With Fahim */

/* Hero Banner with Background */
.hero-banner {
    position: relative;
    min-height: 650px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    overflow: hidden;
    padding: 80px 0 60px;
}

/* Home Hero Banner - Modern Gradient with Geometric Patterns */
.hero-banner-home {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #2A62FF 0%, #8b5cf6 100%);
    overflow: hidden;
    padding: 100px 0 40px;
    margin-top: -80px;
    display: flex;
    align-items: center;
}

/* ============================================
   REDESIGNED HERO BANNER - COMPLETE REDESIGN
   ============================================ */
.hero-banner-redesigned {
    position: relative;
    min-height: 650px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #8b5cf6 100%);
    overflow: hidden;
    padding: 120px 0 80px;
    margin-top: -80px;
    display: flex;
    align-items: center;
}

.hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 70px);
    opacity: 0.6;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(70px, 70px); }
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
    animation: gentlePulse 8s ease-in-out infinite;
}

.hero-container-redesigned {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content-redesigned {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Text Section */
.hero-text-section {
    position: relative;
    z-index: 5;
}

.hero-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease-out;
}

.hero-badge-new i {
    color: #fbbf24;
    font-size: 1rem;
}

.hero-title-redesigned {
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title-line1,
.hero-title-line2 {
    display: block;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-title-line2 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 5px;
}

.hero-description-redesigned {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    max-width: 580px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats-inline {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat-item-inline {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.hero-cta-redesigned {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn-hero-new-primary,
.btn-hero-new-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-hero-new-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.btn-hero-new-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.5);
}

.btn-hero-new-primary i:last-child {
    transition: transform 0.3s ease;
}

.btn-hero-new-primary:hover i:last-child {
    transform: translateX(5px);
}

.btn-hero-new-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-new-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Image Section - Clean Design Without Background Wrap */
.hero-image-section-redesigned {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    animation: fadeInRight 1s ease-out 0.5s both;
    padding-right: 20px;
    background: transparent;
    border: none;
}

.hero-image-container-new {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

/* Remove glow effect */
.hero-image-glow {
    display: none;
}

/* Remove frame - transparent background */
.hero-image-frame {
    position: relative;
    width: 100%;
    height: auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 2;
    backdrop-filter: none !important;
    border-radius: 0;
    overflow: visible;
    padding: 0;
    margin: 0;
}

.hero-image-new {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease, filter 0.5s ease;
    transform: translateY(0);
}

.hero-image-container-new:hover .hero-image-new {
    transform: translateY(-10px);
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.4));
}

/* Subtle floating decorative elements - positioned away from image */
.hero-image-decoration {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.2));
    z-index: 0;
    animation: floatDecoration 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-dec-1 {
    width: 150px;
    height: 150px;
    top: -10%;
    right: 5%;
    filter: blur(40px);
    animation-delay: 0s;
}

.hero-dec-2 {
    width: 100px;
    height: 100px;
    bottom: -15%;
    left: 10%;
    filter: blur(35px);
    animation-delay: 2s;
}

.hero-dec-3 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: -5%;
    filter: blur(30px);
    animation-delay: 4s;
}

@keyframes floatDecoration {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    33% { transform: translate(25px, -25px) scale(1.15); opacity: 0.6; }
    66% { transform: translate(-20px, 20px) scale(0.9); opacity: 0.5; }
}

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

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

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

/* Responsive Design for Redesigned Hero */
@media (max-width: 1200px) {
    .hero-content-redesigned {
        gap: 60px;
    }
    
    .hero-title-line1,
    .hero-title-line2 {
        font-size: 3.8rem;
    }
    
    .hero-image-container-new {
        max-width: 450px;
    }
    
    .hero-image-new {
        max-width: 430px;
    }
}

@media (max-width: 992px) {
    .hero-banner-redesigned {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content-redesigned {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-text-section {
        order: 1;
    }
    
    .hero-image-section-redesigned {
        order: 2;
        justify-content: center;
    }
    
    .hero-title-line1,
    .hero-title-line2 {
        font-size: 3.2rem;
    }
    
    .hero-description-redesigned {
        max-width: 100%;
        font-size: 1.1rem;
    }
    
    .hero-stats-inline {
        justify-content: center;
        gap: 30px;
    }
    
    .hero-cta-redesigned {
        justify-content: center;
    }
    
    .hero-image-container-new {
        max-width: 380px;
    }
    
    .hero-image-new {
        max-width: 360px;
    }
    
    .hero-image-section-redesigned {
        justify-content: center;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .hero-banner-redesigned {
        padding: 80px 0 50px;
    }
    
    .hero-container-redesigned {
        padding: 0 20px;
    }
    
    .hero-text-section {
        margin-top: 20px;
    }
    
    .hero-badge-new {
        margin-top: 20px;
        margin-bottom: 25px;
    }
    
    .hero-title-line1,
    .hero-title-line2 {
        font-size: 2.5rem;
    }
    
    .hero-description-redesigned {
        font-size: 1rem;
        margin-bottom: 30px;
        margin-top: 5px;
    }
    
    .hero-stats-inline {
        display: none !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-cta-redesigned {
        flex-direction: column;
    }
    
    .btn-hero-new-primary,
    .btn-hero-new-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Make all image containers completely transparent on mobile */
    .hero-image-section-redesigned {
        justify-content: center;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-top: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
    
    .hero-image-container-new {
        max-width: 300px;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        box-shadow: none !important;
    }
    
    .hero-image-container-new::before,
    .hero-image-container-new::after {
        display: none !important;
        content: none !important;
        background: transparent !important;
    }
    
    .hero-image-frame {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        border-bottom: none !important;
        outline: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        position: relative !important;
        display: block !important;
        line-height: 0 !important;
        filter: none !important;
        -webkit-filter: none !important;
    }
    
    .hero-image-frame::before,
    .hero-image-frame::after {
        display: none !important;
        content: none !important;
        background: transparent !important;
    }
    
    .hero-image-new {
        max-width: 280px;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        border-bottom: none !important;
        outline: none !important;
        box-shadow: none !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: contain !important;
        position: relative !important;
        line-height: 0 !important;
        filter: none !important;
        -webkit-filter: none !important;
        text-shadow: none !important;
    }
    
    .hero-image-new::before,
    .hero-image-new::after {
        display: none !important;
        content: none !important;
        background: transparent !important;
    }
    
    /* Hide decorative elements on mobile to prevent background issues */
    .hero-image-decoration {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .hero-image-glow {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Ensure parent containers are also transparent */
    .hero-content-redesigned {
        background: transparent !important;
        background-color: transparent !important;
    }
    
    .hero-container-redesigned {
        background: transparent !important;
        background-color: transparent !important;
    }
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(26, 200, 201, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 66, 0.12) 0%, transparent 50%);
    animation: gentlePulse 8s ease-in-out infinite;
}

/* Geometric Grid Pattern */
.hero-geometric-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0px, transparent 1px, transparent 40px, rgba(255, 255, 255, 0.04) 41px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0px, transparent 1px, transparent 40px, rgba(255, 255, 255, 0.04) 41px);
    opacity: 0.6;
}

.hero-banner-home::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 215, 66, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: floatShape 6s ease-in-out infinite;
}

.hero-banner-home::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(26, 200, 201, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    animation: floatShape 8s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.6;
    }
    50% { 
        transform: translate(30px, -30px) scale(1.15); 
        opacity: 0.8;
    }
}

/* Math symbols decoration - Hidden */
.hero-content-wrapper::before,
.hero-content-wrapper::after {
    display: none;
}

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

@keyframes gentlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

/* Hero Split Layout */
.hero-split-layout {
    display: grid;
    grid-template-columns: 1.4fr 1.6fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-left-content {
    text-align: left;
    color: #ffffff;
    padding-left: 30px;
    padding-right: 20px;
}

.hero-right-illustration {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

/* Hero Profile Image */
.hero-profile-image-wrapper {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    animation: fadeInRight 0.8s ease-out 0.3s both;
    padding: 0;
    margin: 0;
    margin-left: auto;
    /* No background to avoid visible box */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}

/* Remove any pseudo-elements that might create a box */
.hero-profile-image-wrapper::before,
.hero-profile-image-wrapper::after {
    display: none;
    content: none;
}

.hero-profile-image {
    width: 65% !important;
    max-width: none;
    min-width: 300px !important;
    height: auto;
    border-radius: 30px;
    object-fit: cover;
    /* No blend mode to avoid visible edges */
    mix-blend-mode: normal;
    /* No filters that create visible boxes */
    filter: none;
    /* No border */
    border: none;
    /* Ensure smooth rounded edges */
    overflow: hidden;
    /* No floating animation */
    animation: none;
    /* No transition effects */
    transition: none;
    /* No box-shadow to avoid visible box */
    box-shadow: none;
    /* Ensure the image displays correctly */
    display: block;
    /* Remove any outline */
    outline: none;
    margin-left: auto;
    margin-right: 0;
}

/* Alternative blend mode for different backgrounds - removed to avoid visible edges */
.hero-banner-home .hero-profile-image {
    mix-blend-mode: normal;
    width: 65% !important;
    min-width: 300px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.hero-banner-home .hero-right-illustration {
    justify-content: flex-end !important;
    padding-right: 20px !important;
}

.hero-banner-home .hero-profile-image-wrapper {
    justify-content: flex-end !important;
    margin-left: auto !important;
}

/* No hover effect */
.hero-profile-image:hover {
    transform: none;
    filter: none;
    box-shadow: none;
    outline: none;
}

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

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

/* Home Hero Title Styles */
.hero-text-center {
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 5;
}

.hero-brand-name {
    font-size: 4.8rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: #ffffff;
    animation: fadeInLeft 0.8s ease-out;
    letter-spacing: -1.8px;
    line-height: 1.1;
    position: relative;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-brand-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FFD742, transparent);
    border-radius: 2px;
    opacity: 0;
    animation: fadeInUnderline 1s ease-out 0.5s forwards;
}

@keyframes fadeInUnderline {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 120px;
    }
}

.hero-title-main {
    font-size: 1.6rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: #ffffff;
    animation: fadeInLeft 0.8s ease-out 0.15s both;
    letter-spacing: -0.3px;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero-title-sub {
    display: none;
}

.hero-tagline {
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInLeft 0.8s ease-out 0.3s both;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInLeft 0.8s ease-out 0.45s both;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary {
    background: #FFD742;
    color: #212B36;
    box-shadow: 0 8px 24px rgba(255, 215, 66, 0.4);
}

.btn-hero-primary:hover {
    background: #ffe066;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 215, 66, 0.5);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

/* Hero Math Illustration */
.hero-math-elements {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Math Symbol Boxes */
.math-box {
    position: absolute;
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.math-box:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Different starting positions and paths */
.box-sigma {
    top: 5%;
    left: 5%;
    animation: randomPath1 12s ease-in-out infinite;
}

.box-pi {
    top: 8%;
    right: 8%;
    animation: randomPath2 14s ease-in-out infinite;
    animation-delay: 1s;
}

.box-integral {
    top: 45%;
    left: 8%;
    animation: randomPath3 16s ease-in-out infinite;
    animation-delay: 2s;
}

.box-delta {
    bottom: 8%;
    right: 5%;
    animation: randomPath4 13s ease-in-out infinite;
    animation-delay: 3s;
}

.box-alpha {
    top: 30%;
    right: 25%;
    animation: randomPath5 15s ease-in-out infinite;
    animation-delay: 0.5s;
}

.box-theta {
    top: 65%;
    left: 25%;
    animation: randomPath6 13s ease-in-out infinite;
    animation-delay: 1.5s;
}

.box-lambda {
    top: 50%;
    right: 5%;
    animation: randomPath7 14s ease-in-out infinite;
    animation-delay: 2.5s;
}

.box-omega {
    bottom: 35%;
    left: 35%;
    animation: randomPath8 16s ease-in-out infinite;
    animation-delay: 3.5s;
}

.box-infinity {
    bottom: 5%;
    left: 15%;
    animation: randomPath9 12s ease-in-out infinite;
    animation-delay: 4s;
}

/* Random Path Animations */
@keyframes randomPath1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(40px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, -50px) rotate(-8deg);
    }
    75% {
        transform: translate(30px, -20px) rotate(3deg);
    }
}

@keyframes randomPath2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-35px, 40px) rotate(-6deg);
    }
    50% {
        transform: translate(25px, -30px) rotate(7deg);
    }
    75% {
        transform: translate(-15px, 20px) rotate(-4deg);
    }
}

@keyframes randomPath3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(45px, 35px) rotate(8deg);
    }
    50% {
        transform: translate(-30px, -25px) rotate(-5deg);
    }
    75% {
        transform: translate(20px, 40px) rotate(6deg);
    }
}

@keyframes randomPath4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-40px, -35px) rotate(-7deg);
    }
    50% {
        transform: translate(35px, 30px) rotate(9deg);
    }
    75% {
        transform: translate(-25px, -15px) rotate(-3deg);
    }
}

@keyframes randomPath5 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) rotate(6deg);
    }
    50% {
        transform: translate(-35px, 25px) rotate(-8deg);
    }
    75% {
        transform: translate(20px, -20px) rotate(4deg);
    }
}

@keyframes randomPath6 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-30px, 35px) rotate(-5deg);
    }
    50% {
        transform: translate(40px, -30px) rotate(7deg);
    }
    75% {
        transform: translate(-20px, 25px) rotate(-3deg);
    }
}

@keyframes randomPath7 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(35px, 40px) rotate(8deg);
    }
    50% {
        transform: translate(-40px, -35px) rotate(-6deg);
    }
    75% {
        transform: translate(25px, 20px) rotate(5deg);
    }
}

@keyframes randomPath8 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-45px, -30px) rotate(-9deg);
    }
    50% {
        transform: translate(30px, 35px) rotate(7deg);
    }
    75% {
        transform: translate(-20px, -25px) rotate(-4deg);
    }
}

@keyframes randomPath9 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(40px, -35px) rotate(6deg);
    }
    50% {
        transform: translate(-35px, 40px) rotate(-8deg);
    }
    75% {
        transform: translate(30px, -15px) rotate(5deg);
    }
}

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

/* Trust Badges under hero */
.hero-trust-badges {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    animation: fadeInLeft 0.8s ease-out 0.6s both;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 12px 22px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trust-badge i {
    font-size: 1.2rem;
    color: #FFD742;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 66, 0.4));
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Subject Tags */
.subjects-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.subject-tag {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.1);
}

.subject-tag:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

/* Stats Grid - Solid Modern Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.glass-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Hero Stats Inline */
/* Stats Section Below Banner */
.hero-stats-section {
    /* Reduce bottom padding so the next section sits closer */
    padding: 50px 0 24px;
    background: #ffffff;
    margin-top: -20px;
    position: relative;
    z-index: 3;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    /* Animation removed for cleaner, static appearance */
    animation: none;
}

.hero-stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 20px;
    border: 1px solid rgba(42, 98, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px rgba(42, 98, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.hero-stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42, 98, 255, 0.08), rgba(138, 63, 252, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-stat-card:hover {
    /* Disable hover lift/animation for hero stat cards */
    transform: none;
    box-shadow: 0 8px 24px rgba(42, 98, 255, 0.12);
    border-color: rgba(42, 98, 255, 0.15);
}

.hero-stat-card:hover::after {
    opacity: 1;
}

.hero-stat-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(42, 98, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-stat-card:hover .hero-stat-icon-circle {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(42, 98, 255, 0.4);
}

.hero-stat-icon-circle i {
    font-size: 1.6rem;
    color: #ffffff;
}

.hero-stat-content {
    position: relative;
    z-index: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-stat-number {
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin-bottom: 4px;
    line-height: 1.1;
    white-space: nowrap;
}

.hero-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Tablet: 2 columns */
@media (max-width: 991px) and (min-width: 769px) {
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile: make hero stats cards more compact and slightly smaller */
@media (max-width: 768px) {
    .hero-stats-section {
        /* Match spacing above and below the cards */
        padding: 24px 0 24px;
        /* White background for mobile view */
        background: #ffffff !important;
        background-color: #ffffff !important;
    }

    /* Hide first stat card on mobile */
    .hero-stat-card.hide-on-mobile {
        display: none;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .hero-stat-card {
        padding: 14px 10px;
        gap: 10px;
        /* Stack icon above text on mobile */
        flex-direction: column;
        align-items: center;
        text-align: center;
        /* Very mild shadows between cards - slightly more visible */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid rgba(42, 98, 255, 0.1) !important;
    }

    .hero-stat-icon-circle {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .hero-stat-icon-circle i {
        font-size: 1.4rem;
    }

    .hero-stat-number {
        font-size: 1.8rem;
        margin-bottom: 2px;
    }

    .hero-stat-label {
        font-size: 0.8rem;
        text-align: center;
    }

    .hero-stat-content {
        align-items: center;
        text-align: center;
    }
}

/* Philosophy Section - Eye-Catching Design */
.philosophy-section {
    padding: 30px 0 60px 0;
    text-align: center;
}

.philosophy-banner {
    background: linear-gradient(135deg, #1e40af 0%, #6d28d9 100%);
    border-radius: 30px;
    padding: 50px 60px;
    margin-bottom: 50px;
    box-shadow: 0 20px 60px rgba(42, 98, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.philosophy-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 66, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(26, 200, 201, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.philosophy-icon {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.philosophy-icon i {
    font-size: 4rem;
    color: #FFD742;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 66, 0.5));
}

.philosophy-content {
    position: relative;
    z-index: 2;
    text-align: left;
    flex: 1;
}

.philosophy-title {
    font-size: 2.6rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF !important;
    margin-bottom: 15px;
    letter-spacing: -0.8px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.4), 0 6px 30px rgba(0, 0, 0, 0.3);
}

.philosophy-subtitle {
    font-size: 1.2rem;
    color: #FFFFFF;
    font-weight: 600;
    margin: 0;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 0;
}

.philosophy-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 8px 24px rgba(42, 98, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple), var(--primary-teal));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.philosophy-card:hover::before {
    transform: scaleX(1);
}

.philosophy-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(42, 98, 255, 0.2);
    border-color: var(--primary-teal);
}

.philosophy-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(42, 98, 255, 0.35);
    transition: all 0.4s ease;
}

.philosophy-card:hover .philosophy-card-icon {
    transform: rotateY(360deg) scale(1.05);
    box-shadow: 0 12px 32px rgba(138, 63, 252, 0.45);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-teal));
}

.philosophy-card h3 {
    font-size: 1.4rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.philosophy-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Why Choose Section */
.why-choose-section {
    padding: 60px 0;
    text-align: center;
}

/* Quote Section Styling */
.quote-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.quote-mark-left,
.quote-mark-right {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 50%, var(--primary-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
    font-family: Georgia, serif;
}

.quote-mark-left {
    position: relative;
    top: -15px;
}

.quote-mark-right {
    position: relative;
    bottom: -15px;
}

.section-title-quote {
    font-size: 2.8rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 45%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.3;
    position: relative;
}

.quote-description {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 35px 45px;
    background: linear-gradient(135deg, 
        rgba(245, 247, 250, 1) 0%, 
        rgba(235, 241, 255, 1) 50%, 
        rgba(245, 240, 255, 1) 100%);
    border-radius: 25px;
    box-shadow: 
        0 15px 40px rgba(42, 98, 255, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(42, 98, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.quote-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(42, 98, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(138, 63, 252, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.quote-description p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 45%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

/* Modern Features Grid */
.features-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 6px 20px rgba(42, 98, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(42, 98, 255, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-purple), var(--primary-teal));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(42, 98, 255, 0.18);
    border-color: var(--primary-teal);
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: rgba(42, 98, 255, 0.08);
    line-height: 1;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-number {
    color: rgba(42, 98, 255, 0.15);
    transform: scale(1.1);
}

.feature-icon-modern {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 6px 20px rgba(42, 98, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon-modern {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 28px rgba(138, 63, 252, 0.4);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-teal));
}

.feature-item h3 {
    font-size: 1.35rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.98rem;
    margin: 0;
}

/* Section Subtitle */
.section-subtitle-modern {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-top: -10px;
    margin-bottom: 50px;
    font-weight: 500;
}

/* Subjects Section */
.subjects-section {
    padding: 40px 0 40px 0;
    background: linear-gradient(135deg, var(--light-grey) 0%, rgba(245, 247, 250, 1) 100%);
    margin-top: 20px;
    position: relative;
}

/* Mobile: reduce space above "Subjects Offered" section */
@media (max-width: 768px) {
    .subjects-section {
        /* Pull the section slightly upwards on mobile */
        margin-top: -8px;
    }
}

.subjects-section .section-title-modern {
    margin-bottom: 50px;
}

.subjects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(42, 98, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(138, 63, 252, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Compact List Style Subjects Layout */
.subjects-list-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subject-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 25px;
    background: white;
    padding: 25px 35px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(42, 98, 255, 0.1);
    border: 2px solid rgba(42, 98, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.subject-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-purple), var(--primary-teal));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.subject-row:hover::before {
    transform: scaleY(1);
}

.subject-row:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(42, 98, 255, 0.18);
    border-color: var(--primary-teal);
}

.subject-icon-badge {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 6px 20px rgba(42, 98, 255, 0.35);
    transition: all 0.3s ease;
}

.subject-row:hover .subject-icon-badge {
    transform: rotate(360deg) scale(1.05);
    box-shadow: 0 10px 28px rgba(138, 63, 252, 0.45);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-teal));
}

.subject-info {
    min-width: 280px;
}

.subject-info h3 {
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.subject-units {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--primary-blue);
    font-weight: 700;
    padding: 4px 14px;
    background: linear-gradient(135deg, rgba(42, 98, 255, 0.12), rgba(138, 63, 252, 0.12));
    border-radius: 12px;
    border: 1px solid rgba(42, 98, 255, 0.2);
}

.subject-topics-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.topic-tag {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    padding: 6px 14px;
    background: var(--light-grey);
    border-radius: 10px;
    border: 1px solid rgba(42, 98, 255, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subject-row:hover .topic-tag {
    background: linear-gradient(135deg, rgba(42, 98, 255, 0.08), rgba(138, 63, 252, 0.08));
    border-color: rgba(42, 98, 255, 0.2);
    color: var(--primary-blue);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .subject-row {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }
    
    .subject-topics-tags {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .subject-row {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 25px 20px;
    }
    
    .subject-icon-badge {
        margin: 0 auto 15px;
    }
    
    .subject-info {
        min-width: auto;
    }
    
    .subject-topics-tags {
        justify-content: center;
    }
    
    .subject-row:hover {
        transform: translateY(-5px) translateX(0);
    }
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.subject-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.subject-card:hover::before {
    top: -60%;
    right: -60%;
}

.subject-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.subject-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.subject-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.subject-card > p {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 20px;
}

.subject-topics {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.subject-topics li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.subject-topics li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Quick Access Section */
.quick-access-section {
    padding: 80px 0;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.access-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.access-card:hover::before {
    left: 100%;
}

.access-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
    border-color: var(--secondary-color);
}

.access-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.access-card:hover .access-icon {
    transform: scale(1.1) rotate(5deg);
}

.access-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.access-card p {
    color: var(--text-light);
    line-height: 1.7;
    flex-grow: 1;
}

.access-arrow {
    align-self: flex-end;
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.access-card:hover .access-arrow {
    transform: translateX(10px);
}

/* Page Header Banner */
.page-header-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 50px;
    text-align: center;
}

.page-header-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header-banner p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Container wrapper for dashboard hero in pages */
.container > .dashboard-hero {
    margin: -2rem -20px 40px -20px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #8b5cf6 100%) !important;
    padding: 50px 30px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3) !important;
}

.container > .dashboard-hero h2 {
    color: white !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 15px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.container > .dashboard-hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.2rem !important;
    margin: 0 !important;
}

/* Full width hero for pages */
.page-hero-wrapper {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 40px;
}

.page-hero-wrapper .dashboard-hero {
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Modern Filters */
.modern-filters {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-item label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.filter-item label i {
    margin-right: 5px;
}

.modern-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.modern-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-clear-filter {
    display: inline-block;
    padding: 12px 25px;
    background: var(--text-light);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-clear-filter:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Results Info */
.results-info {
    margin-bottom: 30px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.results-info p {
    margin: 0;
    color: var(--primary-color);
    font-weight: 500;
}

.results-info i {
    color: var(--success-color);
    margin-right: 8px;
}

/* Papers Grid */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.paper-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.paper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.paper-card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paper-type-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.paper-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.paper-year i {
    color: white;
}

.paper-card-body {
    padding: 25px;
    text-align: left;
}

.paper-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.paper-subject {
    color: #6366f1 !important;
    font-size: 0.95rem;
    text-align: left;
}

.paper-subject i {
    color: #8b5cf6 !important;
    margin-right: 5px;
}

.paper-card-footer {
    padding: 0 25px 25px;
}

.btn-paper-download {
    display: block;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-paper-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* Documents Grid */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.doc-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.doc-card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-type-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #3b82f6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.doc-type-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doc-card-body {
    padding: 25px;
}

.doc-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.doc-meta-item {
    color: var(--text-light);
    font-size: 0.9rem;
}

.doc-meta-item i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.doc-card-footer {
    padding: 0 25px 25px;
}

.btn-doc-download {
    display: block;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-doc-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(138, 63, 252, 0.4);
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
}

.empty-state-modern h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.empty-state-modern p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

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

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

/* Four Subjects in Single Line */
.subjects-four-line {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.subjects-multi-line {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.subject-box-compact {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(42, 98, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(42, 98, 255, 0.1);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.subject-box-compact:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(42, 98, 255, 0.2);
    border-color: var(--primary-teal);
}

.subject-box-compact .subject-icon-compact {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.6rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(42, 98, 255, 0.25);
}

.subject-box-compact:hover .subject-icon-compact {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-teal));
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(138, 63, 252, 0.4);
}

.subject-box-compact h3 {
    font-size: 1.05rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.subject-box-compact .subject-code {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    background: linear-gradient(135deg, rgba(42, 98, 255, 0.1), rgba(138, 63, 252, 0.1));
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(42, 98, 255, 0.2);
}

/* Testimonials Section - Seamless Redesign */
.testimonials-section {
    margin: 20px 0 60px 0;
    padding: 60px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Ensure container inside testimonials section is centered */
.testimonials-section .container {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* Mobile: reduce gap below testimonials so "How It Works" is closer */
@media (max-width: 768px) {
    .testimonials-section {
        margin-bottom: 8px;
        padding-bottom: 16px;
    }

    .how-it-works-section {
        margin-top: 8px;
    }
}

.testimonials-section::before {
    display: none;
}

.testimonials-slider-wrapper {
    position: relative;
    margin-top: 50px;
    overflow: hidden;
    padding: 20px 0;
    background: transparent;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.testimonials-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(42, 98, 255, 0.08);
    transition: all 0.4s ease;
    border: 2px solid rgba(42, 98, 255, 0.08);
    position: relative;
    overflow: hidden;
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    backdrop-filter: blur(10px);
}

/* Mobile: one full testimonial card per slide */
@media (max-width: 768px) {
    .testimonials-slider {
        gap: 0;
    }

    .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.testimonial-card::before {
    display: none;
}

.testimonial-card::after {
    display: none;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(42, 98, 255, 0.15);
    background: #ffffff;
    border-color: var(--primary-teal);
}

.testimonials-section .section-title-modern {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 45%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    display: block;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(42, 98, 255, 0.35);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.testimonial-info h4 {
    font-size: 1.05rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin-bottom: 3px;
    font-weight: 700;
}

.testimonial-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 3px;
    font-weight: 500;
}

.testimonial-rating {
    color: var(--accent-yellow);
    font-size: 1rem;
    display: flex;
    gap: 3px;
}

.testimonial-rating i {
    filter: drop-shadow(0 2px 4px rgba(255, 215, 66, 0.4));
}

.testimonial-content {
    position: relative;
    margin: 15px 0;
    padding: 0;
}

.quote-icon {
    display: none;
}

.testimonial-content p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.98rem;
    font-style: normal;
    position: relative;
    z-index: 1;
}

.testimonial-grade {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Testimonials Navigation - Hidden */
.testimonials-arrow {
    display: none !important;
}

.testimonials-dots {
    display: none !important;
}

/* Responsive Testimonials */
@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 12.5px);
        max-width: calc(50% - 12.5px);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 25px;
    }
    
    .testimonials-slider {
        gap: 20px;
    }
}

/* Responsive Philosophy Section */
@media (max-width: 992px) {
    .philosophy-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .philosophy-content {
        text-align: center;
    }
    
    .philosophy-title {
        font-size: 2.2rem;
    }
    
    .philosophy-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .philosophy-banner {
        padding: 35px 25px;
    }
    
    .philosophy-icon {
        width: 90px;
        height: 90px;
    }
    
    .philosophy-icon i {
        font-size: 3rem;
    }
    
    .philosophy-title {
        font-size: 1.8rem;
    }
    
    .philosophy-subtitle {
        font-size: 1rem;
    }
    
    .philosophy-cards {
        grid-template-columns: 1fr;
    }
}

/* Responsive Hero Section */
@media (max-width: 992px) {
    .hero-split-layout {
        grid-template-columns: 1.3fr 1.7fr;
        gap: 40px;
    }
    
    .hero-left-content {
        text-align: left;
        padding-left: 20px;
        padding-right: 15px;
    }
    
    .hero-brand-name {
        font-size: 3.5rem;
    }
    
    .hero-title-main {
        font-size: 1.6rem;
    }
    
    .hero-cta-buttons {
        justify-content: center;
    }
    
    .hero-trust-badges {
        justify-content: center;
    }
    
    .hero-right-illustration {
        min-height: 300px;
        justify-content: flex-end !important;
        padding-right: 15px !important;
    }
    
    .hero-profile-image-wrapper {
        max-width: none;
        justify-content: flex-end !important;
        margin-left: auto !important;
    }
    
    .hero-profile-image {
        width: 60% !important;
        max-width: none;
        min-width: 280px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    
    .hero-right-illustration {
        justify-content: flex-end;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .hero-banner-home {
        min-height: auto;
        /* Lower content slightly on mobile by increasing top padding */
        padding: 80px 0 35px;
        margin-top: -80px;
        /* Center hero content horizontally on mobile only */
        justify-content: center;
    }
    
    .hero-content-wrapper {
        padding-top: 0;
        padding-bottom: 10px;
    }
    
    .hero-brand-name {
        font-size: 2.8rem;
        letter-spacing: -1px;
        margin-top: 20px;
    }
    
    .hero-title-main {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }
    
    .hero-trust-badges {
        flex-direction: column;
        gap: 12px;
    }
    
    .trust-badge {
        width: 100%;
        justify-content: center;
    }
    
    .hero-right-illustration {
        min-height: 200px;
        display: flex;
        margin-top: -30px;
        padding-top: 0;
    }
    
    .hero-profile-image-wrapper {
        max-width: 100%;
        padding: 0 20px;
        margin-top: -20px;
    }
    
    .hero-profile-image {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        border-radius: 20px;
        border: none;
    }
}

/* How It Works Section */
.how-it-works-section {
    margin: 60px 0 0 0;
    padding: 50px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 30px;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 30px 20px;
}

.step-number {
    position: absolute;
    top: 0;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 20px rgba(42, 98, 255, 0.35);
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(42, 98, 255, 0.1), rgba(138, 63, 252, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(42, 98, 255, 0.15);
    transition: all 0.4s ease;
    border: 2px solid rgba(42, 98, 255, 0.2);
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(42, 98, 255, 0.3);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
}

.process-step h3 {
    font-size: 1.4rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.process-step p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Quick Access Section */
.quick-access-section {
    margin: 80px 0;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.access-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.access-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
    border-color: var(--secondary-color);
}

.access-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.access-card:hover .access-icon {
    transform: scale(1.1) rotate(5deg);
}

.access-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.access-card p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.access-arrow {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.access-card:hover .access-arrow {
    transform: translateX(10px);
}

/* Call to Action Home */
.cta-home-section {
    margin: 80px 0 40px 0;
    padding: 70px 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(42, 98, 255, 0.35);
    position: relative;
    overflow: hidden;
}

.cta-home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 215, 66, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(26, 200, 201, 0.08) 0%, transparent 50%);
}

.cta-content-home {
    position: relative;
    z-index: 2;
}

.cta-content-home h2 {
    font-size: 2.8rem;
    font-family: 'Poppins', sans-serif;
    color: white;
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-content-home p {
    font-size: 1.3rem;
    color: white;
    opacity: 0.95;
    margin-bottom: 35px;
}

.cta-buttons-home {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 18px 45px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(255, 215, 66, 0.4);
    border: none;
}

.btn-cta-primary i {
    font-size: 1.3rem;
}

.btn-cta-primary:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 45px rgba(255, 215, 66, 0.6);
    background: #ffe066;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid white;
    color: white;
    padding: 18px 45px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.btn-cta-secondary i {
    font-size: 1.3rem;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 45px rgba(255, 255, 255, 0.3);
}

/* Modern Section Title Style */
.section-title-modern {
    font-size: 2.4rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 45%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.5px;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple), var(--primary-teal));
    border-radius: 3px;
}

/* Study Resources Text Section - No Card Background */
.study-resources-text-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.resources-list-text {
    max-width: 1000px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.resource-text-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 25px 0;
    transition: all 0.3s ease;
    position: relative;
}

.resource-text-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 60px;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(42, 98, 255, 0.2), transparent);
    transition: all 0.3s ease;
}

.resource-text-item:hover::after {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple), transparent);
    height: 3px;
}

.resource-text-item:hover {
    transform: translateX(10px);
}

.resource-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(42, 98, 255, 0.25);
}

.resource-text-item:hover .resource-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(42, 98, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-teal));
}

.resource-content-wrapper {
    flex: 1;
}

.resource-text-item h3 {
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.resource-text-item:hover h3 {
    color: var(--primary-purple);
}

.resource-text-item p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

@media (max-width: 768px) {
    .study-resources-text-section {
        padding: 70px 0;
    }
    
    .resources-list-text {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }
    
    .resource-text-item {
        padding: 20px 0;
        gap: 20px;
    }
    
    .resource-text-item::after {
        left: 50px;
    }
    
    .resource-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 14px;
    }
    
    .resource-text-item h3 {
        font-size: 1.4rem;
    }
    
    .resource-text-item p {
        font-size: 1rem;
    }
}

/* Full Width Philosophy Banner */
.philosophy-banner-fullwidth {
    width: 100%;
    /* Reduce space above the "Be Trained to Think Mathematically" card */
    margin-top: 30px;
    margin-bottom: 30px;
}

.philosophy-banner-fullwidth .philosophy-banner {
    border-radius: 30px;
    margin-bottom: 0;
}

/* Animated Text for "Be Trained to Think Mathematically" */
.animated-text {
    animation: textGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
                     0 0 20px rgba(255, 215, 66, 0.2),
                     0 0 30px rgba(255, 215, 66, 0.1);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                     0 0 40px rgba(255, 215, 66, 0.4),
                     0 0 60px rgba(255, 215, 66, 0.3);
        transform: scale(1.02);
    }
}

/* Why Choose Title Styling */
.why-choose-title {
    margin-top: 60px;
    margin-bottom: 40px;
}

/* ============================================
   STUDY PLANS - MODERN STYLING
   ============================================ */

.container .printable-study-plan,
.printable-study-plan {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure study plan content is visible and styled */
#studyPlansContainer {
    margin-top: 30px;
}

#studyPlansContainer .printable-study-plan {
    background: transparent;
}

/* Override any conflicting styles */
.printable-study-plan * {
    box-sizing: border-box;
}

.printable-study-plan h1,
.printable-study-plan h2,
.printable-study-plan h3,
.printable-study-plan h4 {
    margin-top: 0;
    line-height: 1.3;
}

/* Plan Header */
/* Compact Plan Header - Combined */
.printable-study-plan .plan-header-compact,
.plan-header-compact {
    background: white !important;
    border-radius: 10px !important;
    padding: 20px 24px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    position: relative !important;
    overflow: hidden !important;
}

.plan-header-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.plan-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.plan-title-section {
    flex: 1;
}

.plan-title-section h1 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #1e3a8a !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2 !important;
}

.plan-title-section h2 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.plan-info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.plan-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.info-label {
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.info-value {
    color: #1e3a8a;
    font-weight: 700;
}

.plan-overview-section {
    margin-top: 0;
}

.plan-overview-section h3 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin: 0 0 10px 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-overview-section p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin: 0 !important;
}

/* Week Cards */
.printable-study-plan .week-card,
.week-card {
    background: white !important;
    border-radius: 16px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid transparent !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden !important;
}

.week-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.printable-study-plan .week-card-header,
.week-card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    padding: 20px 35px !important;
    position: relative !important;
    overflow: hidden !important;
}

.week-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.week-card-number {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.printable-study-plan .week-number-badge,
.week-number-badge {
    background: white !important;
    color: #3b82f6 !important;
    padding: 12px 25px !important;
    border-radius: 15px !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
    display: inline-block !important;
}

.printable-study-plan .week-total,
.week-total {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

.printable-study-plan .week-card-body,
.week-card-body {
    padding: 30px 35px !important;
    background: white !important;
}

.week-topics-section,
.week-schedule-section {
    margin-bottom: 24px;
}

.week-topics-section:last-child,
.week-schedule-section:last-child {
    margin-bottom: 0;
}

.printable-study-plan .week-section-title,
.week-section-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin-bottom: 18px !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #e0e7ff !important;
}

/* Add spacing between sections when multiple sections exist */
.week-card-body > .week-topics-section + .week-schedule-section {
    margin-top: 8px;
    padding-top: 8px;
}

.week-section-title i {
    color: #3b82f6;
    font-size: 1.3rem;
}

/* Topics and Activities Lists */
.printable-study-plan .topics-list-card,
.printable-study-plan .activities-list-card,
.topics-list-card,
.activities-list-card {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
}

.printable-study-plan .topics-list-card ul,
.printable-study-plan .activities-list-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.printable-study-plan .topics-list-card li,
.printable-study-plan .activities-list-card li,
.topics-list-card li,
.activities-list-card li {
    background: transparent !important;
    padding: 10px 0 10px 0 !important;
    margin-bottom: 8px !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    list-style: none !important;
    line-height: 1.6 !important;
}

.topics-list-card li:hover,
.activities-list-card li:hover {
    transform: none;
    box-shadow: none;
    border-left: none;
    padding-left: 8px;
}

.printable-study-plan .topics-list-card li i,
.printable-study-plan .activities-list-card li i,
.topics-list-card li i,
.activities-list-card li i {
    color: #94a3b8 !important;
    margin-right: 8px !important;
    font-size: 0.65rem !important;
    flex-shrink: 0 !important;
    opacity: 0.6 !important;
}

/* Better spacing for list items text */
.printable-study-plan .activities-list-card li,
.activities-list-card li {
    line-height: 1.6 !important;
    padding: 10px 0 10px 0 !important;
}

.printable-study-plan .topics-list-card li strong,
.printable-study-plan .activities-list-card li strong,
.topics-list-card li strong,
.activities-list-card li strong {
    color: #1e3a8a !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    display: inline !important;
    margin-bottom: 0 !important;
    margin-right: 6px !important;
    line-height: 1.5 !important;
}

/* Improved styling for nested sub-topics */
.printable-study-plan .topics-list-card li > div,
.topics-list-card li > div {
    margin-top: 12px !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    background: transparent !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.printable-study-plan .topics-list-card li > div > div,
.topics-list-card li > div > div {
    font-size: 14px !important;
    color: #475569 !important;
    margin: 6px 0 !important;
    padding-left: 24px !important;
    position: relative !important;
    line-height: 1.6 !important;
    transition: all 0.2s ease !important;
}

.printable-study-plan .topics-list-card li > div > div:hover,
.topics-list-card li > div > div:hover {
    color: #1e3a8a !important;
}

.printable-study-plan .topics-list-card li > div > div > span,
.topics-list-card li > div > div > span {
    position: absolute !important;
    left: 0 !important;
    color: #8b5cf6 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

/* Plan Tips Section */
.printable-study-plan .plan-tips,
.plan-tips {
    margin-top: 60px !important;
    padding: 50px 40px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
}

.tips-header {
    text-align: center;
    margin-bottom: 45px;
}

.tips-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3a8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.tips-header h3::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.tips-header i {
    color: #fbbf24;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tip-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.tip-card:hover::before {
    width: 6px;
}

/* Individual card color themes */
.tip-card:nth-child(1)::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tip-card:nth-child(1):hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.tip-card:nth-child(2)::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.tip-card:nth-child(2):hover {
    border-color: #8b5cf6;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.tip-card:nth-child(3)::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tip-card:nth-child(3):hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.tip-card:nth-child(4)::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tip-card:nth-child(4):hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.tip-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.5rem;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
    border: 1px solid #dbeafe;
}

/* Icon colors for each card */
.tip-card:nth-child(1) .tip-icon {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #3b82f6;
    border-color: #dbeafe;
}

.tip-card:nth-child(2) .tip-icon {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #8b5cf6;
    border-color: #e9d5ff;
}

.tip-card:nth-child(3) .tip-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #10b981;
    border-color: #a7f3d0;
}

.tip-card:nth-child(4) .tip-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #f59e0b;
    border-color: #fde68a;
}

.tip-card:hover .tip-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.tip-content {
    flex: 1;
    width: 100%;
}

.tip-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.tip-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Additional readability improvements */
.printable-study-plan .week-card-body p,
.week-card-body p {
    line-height: 1.75;
    margin-bottom: 12px;
}

/* Better visual hierarchy for week cards */
.printable-study-plan .week-card,
.week-card {
    margin-bottom: 35px !important;
}

/* Improved spacing for nested content */
.printable-study-plan .topics-list-card li > div,
.topics-list-card li > div {
    margin-top: 16px !important;
}

/* Moderate Practical Layout Styles */
.printable-study-plan .week-card-simple,
.week-card-simple {
    background: white !important;
    border-radius: 10px !important;
    margin-bottom: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.week-card-simple:hover {
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.12) !important;
    border-color: #3b82f6 !important;
    transform: translateY(-1px) !important;
}

.printable-study-plan .week-header-simple,
.week-header-simple {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.printable-study-plan .week-number-simple,
.week-number-simple {
    color: white !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.printable-study-plan .week-divider,
.week-divider {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.printable-study-plan .week-total-simple,
.week-total-simple {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.printable-study-plan .week-content-simple,
.week-content-simple {
    padding: 16px 20px !important;
    background: white !important;
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.printable-study-plan .content-block,
.content-block {
    flex: 1 1 calc(33.333% - 8px) !important;
    min-width: 280px !important;
    padding: 14px 16px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 8px !important;
    border: 1px solid #e0e7ff !important;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Topics card - Blue theme */
.content-block:not(.content-block-keypoints):not(.content-block-practice)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.3s ease;
}

.content-block:not(.content-block-keypoints):not(.content-block-practice):hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-1px) !important;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
}

.content-block:not(.content-block-keypoints):not(.content-block-practice):hover::before {
    width: 5px;
}

/* Key Points card - Purple theme */
.content-block-keypoints::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    transition: width 0.3s ease;
}

.content-block-keypoints {
    border-color: #ddd6fe !important;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%) !important;
}

.content-block-keypoints:hover {
    border-color: #8b5cf6 !important;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.15) !important;
    transform: translateY(-1px) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f3e8ff 100%) !important;
}

.content-block-keypoints:hover::before {
    width: 5px;
}

/* Practice card - Green theme */
.content-block-practice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
}

.content-block-practice {
    border-color: #d1fae5 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
}

.content-block-practice:hover {
    border-color: #10b981 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15) !important;
    transform: translateY(-1px) !important;
    background: linear-gradient(135deg, #ffffff 0%, #dcfce7 100%) !important;
}

.content-block-practice:hover::before {
    width: 5px;
}

.printable-study-plan .content-label,
.content-label {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 12px !important;
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

/* Topics label - Blue */
.content-block:not(.content-block-keypoints):not(.content-block-practice) .content-label {
    color: #1e40af !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border: none !important;
}

/* Key Points label - Purple */
.content-block-keypoints .content-label {
    color: white !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    border: none !important;
}

/* Practice label - Green */
.content-block-practice .content-label {
    color: white !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
}

.printable-study-plan .content-text,
.content-text {
    color: #334155 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    flex-grow: 1 !important;
}

.printable-study-plan .content-text strong,
.content-text strong {
    color: #1e3a8a !important;
    font-weight: 700 !important;
    font-size: 1.02rem !important;
}

.printable-study-plan .content-items,
.content-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1 !important;
}

.printable-study-plan .content-items .content-item,
.content-items .content-item {
    color: #334155 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    display: block !important;
}

/* Add border lines between items in Key Points and Practice sections only */
.printable-study-plan .content-block-keypoints .content-items .content-item,
.content-block-keypoints .content-items .content-item,
.printable-study-plan .content-block-practice .content-items .content-item,
.content-block-practice .content-items .content-item {
    padding: 0 0 8px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.printable-study-plan .content-block-keypoints .content-items .content-item:last-child,
.content-block-keypoints .content-items .content-item:last-child,
.printable-study-plan .content-block-practice .content-items .content-item:last-child,
.content-block-practice .content-items .content-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.printable-study-plan .content-items .content-item::before,
.content-items .content-item::before {
    content: '' !important;
    display: none !important;
}

.printable-study-plan .content-items .content-item strong,
.content-items .content-item strong {
    color: #1e3a8a !important;
    font-weight: 700 !important;
    font-size: 1.02rem !important;
}

/* Mathematical expression styling */
.printable-study-plan .content-item sup,
.content-item sup {
    font-size: 0.75em !important;
    line-height: 0 !important;
    vertical-align: super !important;
    font-weight: 600 !important;
    color: #1e3a8a !important;
}

.printable-study-plan .content-item sub,
.content-item sub {
    font-size: 0.75em !important;
    line-height: 0 !important;
    vertical-align: sub !important;
    font-weight: 600 !important;
    color: #1e3a8a !important;
}

/* Fraction styling */
.printable-study-plan .fraction,
.fraction {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    margin: 0 3px;
    font-size: 0.95em;
}

.printable-study-plan .fraction .numerator,
.fraction .numerator {
    display: block;
    padding: 1px 5px;
    border-bottom: 1.2px solid #1e3a8a;
    font-weight: 600;
    line-height: 1.3;
    min-height: 1.2em;
}

.printable-study-plan .fraction .denominator,
.fraction .denominator {
    display: block;
    padding: 1px 5px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2px;
    min-height: 1.2em;
}

/* Large fraction for complex expressions */
.printable-study-plan .fraction-large,
.fraction-large {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    margin: 0 5px;
    font-size: 1em;
}

.printable-study-plan .fraction-large .numerator,
.fraction-large .numerator {
    display: block;
    padding: 3px 8px;
    border-bottom: 1.5px solid #1e3a8a;
    font-weight: 600;
    line-height: 1.4;
    min-height: 1.4em;
}

.printable-study-plan .fraction-large .denominator,
.fraction-large .denominator {
    display: block;
    padding: 3px 8px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 4px;
    min-height: 1.4em;
}

/* Ensure fractions work well with superscripts and subscripts */
.printable-study-plan .fraction sup,
.fraction sup,
.printable-study-plan .fraction-large sup,
.fraction-large sup {
    font-size: 0.7em;
    vertical-align: super;
}

.printable-study-plan .fraction sub,
.fraction sub,
.printable-study-plan .fraction-large sub,
.fraction-large sub {
    font-size: 0.7em;
    vertical-align: sub;
}

/* Root notation styling */
.printable-study-plan .content-item,
.content-item {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .plan-header-compact {
        padding: 16px 18px !important;
        margin-bottom: 16px !important;
    }
    
    .plan-header-top {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    
    .plan-title-section h1 {
        font-size: 1.25rem !important;
    }
    
    .plan-title-section h2 {
        font-size: 0.9rem !important;
    }
    
    .plan-info-section {
        width: 100%;
    }
    
    .plan-info-item {
        font-size: 0.85rem;
    }
    
    .plan-overview-section h3 {
        font-size: 1rem !important;
    }
    
    .plan-overview-section p {
        font-size: 0.85rem !important;
    }
    
    .week-card-header {
        padding: 20px;
    }
    
    .week-number-badge {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    .week-card-body {
        padding: 25px 20px !important;
    }
    
    .week-section-title {
        font-size: 1.3rem;
    }
    
    .printable-study-plan .topics-list-card li,
    .topics-list-card li,
    .printable-study-plan .activities-list-card li,
    .activities-list-card li {
        padding: 14px 0 14px 0 !important;
    }
    
    .printable-study-plan .topics-list-card li > div > div,
    .topics-list-card li > div > div {
        font-size: 13px !important;
        padding-left: 20px !important;
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    @media (max-width: 640px) {
        .tips-grid {
            grid-template-columns: 1fr;
            gap: 18px;
        }
    }
    
    .plan-tips {
        padding: 35px 20px;
        margin-top: 40px !important;
    }
    
    .tips-header {
        margin-bottom: 30px;
    }
    
    .tips-header h3 {
        font-size: 1.6rem;
        padding: 10px 20px;
    }
    
    .tips-header h3::before {
        width: 50px;
        height: 3px;
    }
    
    .tip-card {
        padding: 24px 20px;
    }
    
    .tip-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    
    .tip-content h4 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    
    .tip-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .week-header-simple {
        padding: 10px 16px !important;
    }
    
    .week-number-simple {
        font-size: 1.05rem !important;
    }
    
    .week-card-simple {
        margin-bottom: 12px !important;
    }
    
    .week-content-simple {
        padding: 14px 16px !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .content-block {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        padding: 12px 14px !important;
        margin-bottom: 0 !important;
    }
    
    .content-block::before,
    .content-block-keypoints::before,
    .content-block-practice::before {
        width: 5px !important;
    }
    
    .content-text {
        font-size: 0.92rem !important;
        padding-left: 0 !important;
    }
    
    .content-items {
        gap: 6px !important;
    }
    
    .content-items .content-item {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        padding: 0 !important;
    }
    
    .content-block-keypoints .content-items .content-item,
    .content-block-practice .content-items .content-item {
        padding: 0 0 8px 0 !important;
    }
    
    .content-label {
        font-size: 0.8rem !important;
        padding: 6px 14px !important;
        margin-bottom: 14px !important;
    }
    
    .content-block-keypoints .content-items .content-item:last-child,
    .content-block-practice .content-items .content-item:last-child {
        padding-bottom: 0 !important;
    }
    
    .content-label {
        font-size: 0.85rem !important;
        padding: 5px 12px !important;
    }
}

/* Study Plan Filter Styles - Applied to all pages */
.study-plans-filter {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e7ff;
}

.filter-container {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 250px;
}

.filter-group-button {
    flex: 0 0 auto;
    min-width: auto;
}

.filter-label {
    display: block;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 12px;
    font-size: 1rem;
}

.filter-label i {
    margin-right: 8px;
    color: #3b82f6;
}

.filter-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e7ff;
    background: white;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    padding-right: 45px;
    font-family: inherit;
}

.filter-select[type="text"],
.filter-select[type="email"],
.filter-select[type="number"] {
    background-image: none;
    padding-right: 20px;
    cursor: text;
}

.filter-select:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.filter-select option {
    padding: 12px;
    font-weight: 600;
}

.filter-select optgroup {
    font-weight: 700;
    color: #1e3a8a;
    padding: 10px 0;
}

.generate-btn {
    padding: 15px 35px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-family: inherit;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-group-button {
        width: 100%;
    }
    
    .generate-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-select {
        padding: 14px 45px 14px 18px;
    }
}

/* Mobile CTA Section Fixes */
@media (max-width: 768px) {
    .cta-home-section {
        margin: 60px 15px 15px 15px;
        padding: 40px 20px;
        border-radius: 24px;
        box-sizing: border-box;
        width: calc(100% - 30px);
        max-width: 100%;
    }
    
    .cta-content-home {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    .cta-content-home h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        line-height: 1.3;
    }
    
    .cta-content-home p {
        font-size: 1rem;
        opacity: 1;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .cta-buttons-home {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        padding: 16px 30px;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-home-section {
        margin: 50px 10px 10px 10px;
        padding: 35px 18px;
        border-radius: 20px;
    }
    
    .cta-content-home h2 {
        font-size: 1.6rem;
    }
    
    .cta-content-home p {
        font-size: 0.95rem;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
}




