/* Junior Schools Debating Page Styles - Following Site Pattern */

#intro {
    background-image: 
        linear-gradient(
            rgba(0, 0, 0, 0.5), 
            rgba(0, 0, 0, 0.5)  
        ),
        url('../images/jschools.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    color: white; 
    text-align: center;
    height: 30em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 100;
    font-optical-sizing: auto;
    font-style: normal;
    margin-bottom: 0;
    width: 100%;
}

#intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#intro h2 i {
    margin-right: 15px;
    color: #ba1b18;
}

.intro-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #f4f4f4;
    margin: 0;
    font-weight: 300;
}

#mainbody {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content Sections */
.content-section {
    margin: 60px 0;
    padding: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header i {
    font-size: 2.5rem;
    color: #ba1b18;
    margin-bottom: 15px;
    display: block;
}

.section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    margin: 0;
}

/* History & Legacy Section */
.history-section {
    background-color: #f4f4f4;
}

.legacy-content {
    margin-top: 40px;
}

.founder-highlight {
    margin-bottom: 40px;
}

.founder-card {
    background: linear-gradient(135deg, #ba1b18, #9e1d18);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.founder-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.founder-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.founder-card p {
    font-family: 'Lora', serif;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
    color: white;
}

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

.achievement-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-item i {
    font-size: 2rem;
    color: #ba1b18;
    margin-bottom: 10px;
}

.achievement-item h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
}

.achievement-item p {
    font-family: 'Lora', serif;
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Impact Section */
.impact-section {
    background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
}

.impact-content {
    margin-top: 40px;
}

.impact-description {
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.impact-description p {
    font-family: 'Lora', serif;
    color: #333;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.skills-development {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.skill-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.skill-item i {
    font-size: 1.8rem;
    color: #ba1b18;
    flex-shrink: 0;
}

.skill-item span {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: #333;
}

/* Success Section */
.success-section {
    background: linear-gradient(135deg, #333, #555);
    color: white;
}

.success-highlight {
    max-width: 800px;
    margin: 0 auto;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.success-content i {
    font-size: 4rem;
    flex-shrink: 0;
    color: gold;
}

.success-text h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    color: white;
}

.success-text p {
    font-family: 'Lora', serif;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
    color: white;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #ba1b18, #9e1d18);
    color: white;
    text-align: center;
}

.cta-section .section-header h3 {
    color: white;
}

.cta-section .section-header i {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section * {
    color: white;
}

.cta-card {
    max-width: 600px;
    margin: 0 auto;
}

.cta-header {
    margin-bottom: 30px;
}

.cta-header i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.cta-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 0;
}

.cta-card p {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: #ba1b18;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #ba1b18;
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: #ba1b18;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #intro h2 {
        font-size: 2.2rem;
    }
    
    .intro-subtitle {
        font-size: 1rem;
    }
    
    .content-section {
        margin: 40px 0;
        padding: 30px 20px;
    }
    
    .section-header h3 {
        font-size: 2rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-development {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .success-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .founder-card {
        padding: 25px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #intro {
        height: 25em;
    }
    
    #intro h2 {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 25px 15px;
        margin: 30px 0;
    }
    
    .section-header h3 {
        font-size: 1.6rem;
    }
    
    .founder-card {
        padding: 20px;
    }
    
    .founder-card h4 {
        font-size: 1.5rem;
    }
    
    .achievement-item {
        padding: 20px;
    }
    
    .success-content i {
        font-size: 3rem;
    }
    
    .success-text h4 {
        font-size: 1.5rem;
    }
}
