/* ============================================
   FORMATIONS - PREMIUM DESIGN SYSTEM
   ============================================ */

/* Hero Sections - Formations Category Pages */
.formations-hero {
    background: linear-gradient(135deg, #0a2463 0%, #3e92cc 100%);
    color: white;
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.formations-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.formations-hero .container {
    position: relative;
    z-index: 1;
}

.formations-hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.formations-hero-subtitle {
    font-size: 1.35rem;
    opacity: 0.95;
    font-weight: 300;
    margin-bottom: 1rem;
}

.formations-hero-description {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto;
}

/* Program Cards - Premium Design */
.program-card {
    background: white;
    border-radius: 16px;
    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);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #0a2463;
}

.program-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.program-card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30px;
    width: 150px;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(20deg);
}

.program-card-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0a2463 0%, #3e92cc 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(10, 36, 99, 0.2);
}

.program-card-icon {
    font-size: 2.5rem;
    color: #0a2463;
    margin-bottom: 1rem;
}

.program-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.program-card-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
}

.program-card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-card-description {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.program-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.program-card-features li {
    padding: 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
    display: flex;
    align-items: start;
}

.program-card-features li i {
    color: #28a745;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    font-size: 1rem;
}

.program-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.program-card-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #0a2463 0%, #3e92cc 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.2);
}

.program-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 36, 99, 0.3);
    color: white;
    background: linear-gradient(135deg, #082051 0%, #2e7bb8 100%);
}

.program-card-cta i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.program-card-cta:hover i {
    transform: translateX(4px);
}

/* Double Diplomation Block */
.double-diplomation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3e8f0 100%);
    border: 2px solid #d4dae6;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.double-diplomation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0a2463 0%, #3e92cc 50%, #d4af37 100%);
}

.double-diplomation-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a2463;
    margin-bottom: 1.5rem;
    text-align: center;
}

.double-diplomation-subtitle {
    font-size: 1.1rem;
    color: #495057;
    text-align: center;
    margin-bottom: 2rem;
}

.diplomation-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.diploma-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.diploma-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
    filter: grayscale(0);
    transition: transform 0.3s ease;
}

.diploma-logo:hover {
    transform: scale(1.05);
}

.diploma-name {
    font-weight: 600;
    color: #212529;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.diploma-location {
    font-size: 0.9rem;
    color: #6c757d;
}

.diplomation-plus {
    font-size: 2.5rem;
    color: #d4af37;
    font-weight: 700;
    flex-shrink: 0;
}

.double-diplomation-benefits {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.double-diplomation-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.double-diplomation-benefits li {
    display: flex;
    align-items: start;
    font-size: 0.95rem;
    color: #495057;
}

.double-diplomation-benefits li i {
    color: #28a745;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    font-size: 1.1rem;
}

/* Grid Layout Helpers */
.formations-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.formations-grid.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.formations-grid.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Stats / Key Numbers */
.program-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
    margin: 2rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.program-stat {
    text-align: center;
}

.program-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a2463;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.program-stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .formations-hero {
        padding: 3rem 0 2rem;
    }

    .formations-hero-title {
        font-size: 2rem;
    }

    .formations-hero-subtitle {
        font-size: 1.15rem;
    }

    .formations-grid.grid-2,
    .formations-grid.grid-3 {
        grid-template-columns: 1fr;
    }

    .program-card-title {
        font-size: 1.3rem;
    }

    .double-diplomation {
        padding: 1.5rem;
    }

    .diplomation-logos {
        gap: 1.5rem;
    }

    .diploma-logo {
        max-width: 140px;
    }

    .double-diplomation-benefits ul {
        grid-template-columns: 1fr;
    }
}

/* Section Spacing */
.formations-section {
    padding: 4rem 0;
}

.formations-section:nth-child(even) {
    background-color: #f8f9fa;
}

/* Breadcrumb Enhancements */
.formations-breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.formations-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.formations-breadcrumb .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.formations-breadcrumb .breadcrumb-item.active {
    color: white;
}

.formations-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.formations-breadcrumb .breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.formations-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}
