/* static/css/about.css */

:root {
    --primary-color: #3b305f;
    --secondary-color: #f28c38;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --text-color: #333;
    --border-radius: 12px;
    --box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out; /* Enhanced transition timing */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff; /* Ensure body has a background */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.about-section,
.mission-section,
.courses-overview-section,
.cta-section {
    padding: 4rem 0;
    overflow-x: hidden; /* Prevent horizontal scrollbars during animation */
}

.about-section {
    background-color: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.lead {
    font-size: 1.15rem;
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
    line-height: 1.7;
}

.mission-section {
    background-color: var(--light-color);
}
.mission-section h2 i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    color: var(--secondary-color);
}

.mission-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
}

.mission-content {
    flex: 1 1 55%;
    min-width: 300px;
}

.mission-image {
    flex: 1 1 40%;
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.mission-image:hover img {
    transform: scale(1.05);
}

.mission-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.mission-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.mission-content h3:first-of-type {
    margin-top: 0;
}

.mission-content p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem; 
}

.feature-card {
    background: white;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
.feature-card p {
    font-size: 0.95rem;
    color: var(--gray-color);
    flex-grow: 1;
}

.courses-overview-section {
    background: linear-gradient(to bottom, var(--light-color) 0%, #ffffff 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.course-category {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--secondary-color);
}

.course-category:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.course-category h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.course-category h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.2em;
}

.course-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.course-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-color);
}

.course-list li:last-child {
    border-bottom: none;
}

.course-list li i {
    color: var(--secondary-color);
    margin-right: 8px;
    font-size: 0.85rem;
}

.cta-section {
    text-align: center;
    background-color: #fdfdfd; 
    padding: 3.5rem 0;
}

.cta-content {
    max-width: 750px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.25rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #e07a2a; 
    border-color: #e07a2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(242, 140, 56, 0.25);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(59, 48, 95, 0.15);
}

/* --- Scroll Reveal Animation (Updated) --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .mission-container { flex-direction: column; }
    .mission-image { order: -1; margin-bottom: 2rem; }
    .section-title { font-size: 2.2rem; margin-bottom: 2.5rem; }
    .lead { font-size: 1.1rem; }
    .mission-content h2 { font-size: 1.8rem; }
    .mission-content h3 { font-size: 1.4rem; }
}

@media (max-width: 768px) {
    .about-section, .mission-section, .courses-overview-section, .cta-section { padding: 3rem 0; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    .section-title::after { width: 60px; bottom: -8px; }
    .lead { font-size: 1rem; margin-bottom: 2rem; }
    .features-grid, .courses-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 320px; padding: 0.9rem 1.5rem; }
    .cta-content h2 { font-size: 1.9rem; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
    .lead { font-size: 0.95rem; }
    .mission-content h2 { font-size: 1.6rem; }
    .mission-content h3 { font-size: 1.3rem; }
    .feature-card h3 { font-size: 1.3rem; }
    .course-category h3 { font-size: 1.2rem; }
    .cta-content h2 { font-size: 1.7rem; }
}