/* ============================================
   SCHOOL MATH PROGRAMS PAGE - DEDICATED STYLES
   ============================================ */

/* School Math Hero Section */
.school-math-hero {
    background: linear-gradient(135deg, #27AE60, #2ECC71);
    color: white;
    text-align: center;
    padding: 30px 20px 50px;
    position: relative;
    overflow: hidden;
    margin: 20px;
}

.school-math-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,215,0,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,215,0,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,215,0,0.1)"/></svg>');
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.2;
    color: white;
}

.hero-title .highlight {
    color: #DAA520;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    margin-bottom: 15px;
    color: #2C3E50;
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #ebe6e6;
    line-height: 1.6;
    margin-bottom: 25px;
}

.educator-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-button {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 160px;
}

.cta-button.primary {
    background: linear-gradient(135deg, #DAA520, #B8860B);
    color: #2C3E50;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, #FFF700, #DAA520);
}

.cta-button.secondary:hover {
    background: white;
    color: #27AE60;
}

/* Hero Benefits Highlight */
.hero-benefits {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    min-width: 140px;
    transition: all 0.3s ease;
}

.hero-benefit:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.benefit-stat {
    font-size: 2.2rem;
    font-weight: bold;
    color: #DAA520;
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.benefit-text {
    font-size: 0.9rem;
    color: white;
    text-align: center;
    opacity: 0.9;
    font-weight: 500;
}

.hero-image {
    flex: 0 0 auto;
    max-width: 550px;
    width: 100%;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #DAA520, #27AE60, #DAA520);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.hero-image:hover::before {
    opacity: 0.6;
}

.hero-main-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 4px solid rgba(255, 215, 0, 0.8);
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 8px;
}

.hero-main-image:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: #DAA520;
}

/* Programs Section */
.programs-section {
    padding: 0px 20px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.03) 0%, rgba(46, 204, 113, 0.03) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.section-underline {
    background: linear-gradient(90deg, transparent, #27AE60, transparent);
    height: 3px;
    width: 120px;
    margin: 0 auto;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(39, 174, 96, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #27AE60;
}

.program-card.featured {
    border: 3px solid #DAA520;
}

.card-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    padding: 8px 45px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.card-ribbon.primary {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: white;
}

.card-ribbon.middle {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #2C3E50;
}

.card-ribbon.high {
    background: linear-gradient(135deg, #27AE60, #2ECC71);
    color: white;
}

.card-header {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.program-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.program-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.program-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-body {
    padding: 35px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Program Highlights */
.program-highlights {
    margin-bottom: 30px;
}

.program-highlights h4 {
    font-size: 1.2rem;
    color: #2C3E50;
    margin-bottom: 20px;
    font-weight: 600;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    padding: 12px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.6;
    font-size: 1rem;
}

.highlights-list .icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Program Details */
.program-details {
    margin-top: auto;
    padding-top: 25px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.detail-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: #2C3E50;
    font-weight: 600;
}

/* Enroll Button */
.enroll-button {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #27AE60, #229954);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.enroll-button:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Benefits Section */
.benefits-section {
    padding: 20px 20px;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05) 0%, rgba(46, 204, 113, 0.05) 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #27AE60;
}

.benefit-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.benefit-card h3 {
    font-size: 1.4rem;
    color: #2C3E50;
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-image {
        max-width: 450px;
    }
    
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .school-math-hero {
        padding: 30px 20px 40px;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .educator-hero-buttons {
        justify-content: center;
    }
    
    .hero-benefits {
        justify-content: center;
    }
    
    .programs-section {
        padding: 0px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .card-ribbon {
        font-size: 0.7rem;
        padding: 6px 40px;
        right: -30px;
    }
    
    .benefits-section {
        padding: 20px 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
        min-width: 140px;
    }
    
    .benefit-stat {
        font-size: 1.8rem;
    }
    
    .hero-benefit {
        min-width: 120px;
        padding: 12px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .program-icon {
        font-size: 3rem;
    }
    
    .program-title {
        font-size: 1.6rem;
    }
    
    .card-ribbon {
        display: none;
    }
    
    .card-body {
        padding: 25px 20px;
    }
}
