/* ========== VARIABLES & RESET ========== */
:root {
    --primary-blue: #007bff; /* Vibrant blue for buttons and accents */
    --primary-dark: #0056b3; /* Darker blue for hover effects */
    --neutral-light: #ffffff; /* White background for page */
    --neutral-gray: #f8f9fa; /* Light gray for subtle backgrounds */
    --text-dark: #333333; /* Dark text for readability */
    --text-medium: #6c757d; /* Gray for secondary text */
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    --hover-shadow: 0 4px 8px rgba(0, 0, 0, 0.12); /* Stronger shadow for hover */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; /* Modern font stack */
}

/* ========== FORMATION DETAIL STYLES ========== */
.formation-detail {
    padding: 20px 10px; /* Tighter padding for compact look */
    background: var(--neutral-light);
    max-width: 1000px;
    margin: 0 auto;
    font-family: var(--font-family);
}

.banner {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 15px;
}

.banner img {
    width: 100%;
    height: 300px; /* Adjusted to match max-height for consistency */
    object-fit: cover;
    display: block;
}

.section-title {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center; /* Centered */
    line-height: 1.2;
    padding-bottom: 6px;
    width: 100%; /* Ensure full width for centering */
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 400;
    text-align: center;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.formation-section {
    padding: 8px 0;
    margin-bottom: 10px;
}

.formation-section h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 6px;
}

.formation-section p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.4;
    margin-bottom: 6px;
    text-align: left;
}

.formation-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}

.formation-section ul li {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.4;
    padding-left: 20px;
    margin-bottom: 4px;
    position: relative;
}

.formation-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-size: 1rem;
}

.formation-section ol {
    list-style: none;
    counter-reset: module-counter;
    padding: 0;
    margin: 0 0 8px 0;
}

.formation-section ol li {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.4;
    padding-left: 25px;
    margin-bottom: 4px;
    position: relative;
}

.formation-section ol li::before {
    counter-increment: module-counter;
    content: counter(module-counter) ".";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 600;
}

.plan-section {
    padding: 8px 0;
    margin-bottom: 10px;
}

.plan-content {
    display: flex;
    gap: 20px;
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    max-width: 800px; /* Constrained for balanced layout */
    margin: 0 auto; /* Centered on page */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.plan-content:hover {
    transform: translateY(-3px); /* Subtle lift on hover */
    box-shadow: var(--hover-shadow); /* Shadow on hover */
}

.plan-image-container {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
}

.plan-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.plan-text {
    flex: 1;
}

.plan-content h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.cta-btn {
    display: block;
    background: linear-gradient(90deg, var(--primary-blue), #00aaff);
    color: var(--neutral-light);
    padding: 12px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin: 10px auto;
    max-width: 200px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background: linear-gradient(90deg, var(--primary-dark), #007bff);
    transform: scale(1.05);
}

/* ========== RESPONSIVE STYLES ========== */
@media screen and (max-width: 1200px) {
    .plan-content {
        max-width: 600px;
    }
}

@media screen and (max-width: 768px) {
    .formation-detail {
        padding: 15px 10px;
    }

    .banner img {
        height: 200px;
    }

    .plan-content {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .plan-image-container {
        flex: none;
        width: 100%;
        max-width: 250px;
        margin: 0 auto 8px;
    }

    .plan-image {
        max-width: 250px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .formation-section {
        padding: 6px 0;
        margin-bottom: 8px;
    }

    .formation-section h3 {
        font-size: 1.3rem;
    }

    .plan-section {
        padding: 6px 0;
    }

    .cta-btn {
        padding: 10px 30px;
        font-size: 1rem;
        max-width: 180px;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .formation-section {
        padding: 5px 0;
        margin-bottom: 6px;
    }

    .formation-section h3 {
        font-size: 1.2rem;
    }

    .formation-section ul li,
    .formation-section ol li {
        font-size: 0.9rem;
        padding-left: 18px;
    }

    .plan-section {
        padding: 5px 0;
    }

    .plan-image-container {
        max-width: 200px;
    }

    .plan-image {
        max-width: 200px;
    }
}