/* ============================================
   TUTORIALS PAGE - DEDICATED STYLES
   ============================================ */

/* Programs Hero Section - Centered Style */
.programs-hero {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    text-align: center;
    padding: 0px 20px 30px;
    position: relative;
    overflow: hidden;
}

.programs-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-center {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.programs-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.2;
    color: white;
}

.programs-hero .hero-title .highlight {
    color: #DAA520;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.programs-hero .hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #ebe6e6;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Programs Cards */
.programs-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.program-hero-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 50px 35px;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.program-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DAA520, #FFD700);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

/* Abacus Card - Blue Theme */
.program-hero-card.abacus-card::before {
    background: linear-gradient(90deg, #4A90E2, #357ABD);
}

.program-hero-card.abacus-card:hover {
    border-color: rgba(74, 144, 226, 0.6);
}

/* Vedic Card - Red/Pink Theme */
.program-hero-card.vedic-card::before {
    background: linear-gradient(90deg, #FF6B6B, #C44569);
}

.program-hero-card.vedic-card:hover {
    border-color: rgba(255, 107, 107, 0.6);
}

/* Curricular Card - Green Theme */
.program-hero-card.curricular-card::before {
    background: linear-gradient(90deg, #27AE60, #2ECC71);
}

.program-hero-card.curricular-card:hover {
    border-color: rgba(46, 204, 113, 0.6);
}

.program-hero-card:hover::before {
    transform: scaleX(1);
}

.program-hero-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.program-hero-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.card-subtitle {
    font-size: 1.1rem;
    color: #DAA520;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-cta {
    font-size: 1.1rem;
    font-weight: 700;
    color: #DAA520;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.program-hero-card:hover .card-cta {
    gap: 12px;
}

/* Programs Section */
.programs-section {
    padding: 80px 20px;
}

.programs-section.math-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(196, 69, 105, 0.05) 100%);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.program-card.abacus-card {
    border-color: rgba(74, 144, 226, 0.1);
}

.program-card.abacus-card:hover {
    border-color: #4A90E2;
}

.program-card.math-card {
    border-color: rgba(255, 107, 107, 0.1);
}

.program-card.math-card:hover {
    border-color: #FF6B6B;
}

.program-card.featured {
    border: 3px solid #DAA520;
    position: relative;
}

.program-card.featured::before {
    content: '⭐ MOST POPULAR';
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #2C3E50;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.program-card .card-header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    padding: 30px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.program-card.math-card .card-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #C44569 100%);
}

.program-card .card-body {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Program Badges */
.program-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.program-badge.young-star {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #2C3E50;
}

.program-badge.junior {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.program-badge.practice {
    background: linear-gradient(135deg, #50C878, #3AA65D);
    color: white;
}

.program-badge.math-foundation {
    background: linear-gradient(135deg, #FF6B6B, #C44569);
    color: white;
}

.program-badge.math-advanced {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    color: white;
}

.program-badge.math-holistic {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: white;
}

/* Program Content */
.program-title {
    font-size: 1.8rem;
    color: #2C3E50;
    margin-bottom: 15px;
    font-weight: 700;
}

.program-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Program Highlights */
.program-highlights {
    margin-bottom: 25px;
}

.program-highlights h4 {
    font-size: 1.1rem;
    color: #2C3E50;
    margin-bottom: 15px;
    font-weight: 600;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    padding: 10px 0;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.highlight-icon {
    color: #4A90E2;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.math-card .highlight-icon {
    color: #FF6B6B;
}

/* Program Details */
.program-details {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #2C3E50;
    font-size: 0.95rem;
}

.detail-value {
    color: #555;
    font-size: 0.95rem;
    text-align: right;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.03) 0%, rgba(218, 165, 32, 0.03) 100%);
    padding: 0px 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #DAA520;
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.benefit-card h3 {
    font-size: 1.3rem;
    color: #2C3E50;
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* Responsive Design for Programs */
@media (max-width: 1024px) {
    .programs-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .program-hero-card.curricular-card {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .program-card.featured::before {
        font-size: 0.7rem;
        padding: 4px 35px;
    }
}

@media (max-width: 768px) {
    .programs-hero {
        padding: 50px 20px 60px;
    }
    
    .programs-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .programs-hero .hero-description {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .programs-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .program-hero-card {
        padding: 40px 30px;
    }
    
    .program-hero-card.curricular-card {
        grid-column: auto;
        max-width: 100%;
    }
    
    .card-icon {
        font-size: 4rem;
    }
    
    .card-title {
        font-size: 1.8rem;
    }
    
    .programs-section {
        padding: 60px 20px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .program-card.featured::before {
        top: 10px;
        right: -30px;
        font-size: 0.65rem;
        padding: 4px 30px;
    }
    
    .program-card .card-header {
        padding: 25px 20px;
    }
    
    .program-card .card-body {
        padding: 25px 20px;
    }
    
    .program-icon {
        font-size: 2.5rem;
    }
    
    .program-title {
        font-size: 1.5rem;
    }
    
    .benefits-section {
        padding: 0px 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .programs-hero {
        padding: 40px 15px 50px;
    }
    
    .programs-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .programs-hero .hero-description {
        font-size: 1rem;
        margin-bottom: 35px;
    }
    
    .program-hero-card {
        padding: 35px 25px;
    }
    
    .card-icon {
        font-size: 3.5rem;
    }
    
    .card-title {
        font-size: 1.6rem;
    }
    
    .card-subtitle {
        font-size: 1rem;
    }
    
    .card-description {
        font-size: 0.95rem;
    }
    
    .card-cta {
        font-size: 1rem;
    }
    
    .program-card.featured::before {
        display: none;
    }
    
    .program-card.featured {
        border-width: 2px;
    }
    
    .program-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .program-icon {
        font-size: 2rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
}
