/* ===========================================
   ALTIORA FRENCH ACADEMY
   COURSES PAGE CSS (Ultra-Luxury & Creative Typographic Masterpiece)
=========================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root{
    --primary:#090d16;       /* Ultra-Deep Midnight */
    --accent-red:#e11d48;    /* Vibrant French Crimson */
    --accent-gradient:linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
    --accent-bg:#fff1f2;     /* Luminous Soft Rose Tint */

    --text:#334155;          /* Sophisticated Slate */
    --gray:#64748b;          

    --white:#ffffff;
    --light:#fafaf9;         /* Warm Alabaster Base */

    --border:#fecdd3;        
    --shadow:0 25px 50px -12px rgba(225, 29, 72, 0.08);

    --radius:24px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Plus Jakarta Sans',sans-serif;
    color:var(--text);
    background:var(--light);
    line-height:1.75;
    letter-spacing: -0.01em;
}

/* Typography Enhancements: Elegant Editorial Headings with Shimmer Effect */
h1, h2, .card-header h2, .next-course h2 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

.container{
    width:92%;
    max-width:1200px;
    margin:auto;
}

img{
    width:100%;
    display:block;
}

a{
    text-decoration:none;
}

section{
    padding:50px 0;
}

h1,h2,h3{
    font-weight:700;
    color:var(--primary);
}

p{
    color:var(--gray);
    font-weight: 300;
}

/* =========================
   HERO SECTION
========================= */

.courses-hero,
.course-hero{
    background: radial-gradient(circle at top center, #ffffff 0%, #fff1f2 70%, #fafaf9 100%);
    text-align:center;
    padding:75px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.courses-hero::before,
.course-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(225, 29, 72, 0.07) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.section-tag,
.badge{
    display:inline-block;
    padding:6px 18px;
    border-radius:40px;
    background: rgba(255, 241, 242, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color:var(--accent-red);
    font-size:12px;
    font-weight:700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom:14px;
    border: 1px solid rgba(254, 205, 211, 0.6);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.08);
    position: relative;
    z-index: 1;
}

.courses-hero h1,
.course-hero h1{
    font-size:48px;
    font-weight: 700;
    margin-bottom:14px;
    background: linear-gradient(135deg, var(--primary) 0%, #4c0519 50%, var(--accent-red) 100%);
    background-clip: text;
-webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textShimmer 6s ease infinite;
    position: relative;
    z-index: 1;
}

@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.courses-hero p,
.course-hero p{
    max-width:780px;
    margin:auto;
    font-size:17px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* =========================
   TOGGLE BUTTONS
========================= */

.course-switch{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-top:30px;
}

.switch-btn{
    border:1px solid #e2e8f0;
    cursor:pointer;
    padding:12px 30px;
    border-radius:40px;
    background:#fff;
    color:var(--primary);
    font-size:15px;
    font-weight:600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition:all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.switch-btn:hover{
    transform:translateY(-3px);
    border-color:var(--accent-red);
    color:var(--accent-red);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.12);
}

.switch-btn.active{
    background:var(--accent-gradient);
    color:#fff;
    border-color:transparent;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.3);
}

/* =========================
   COURSE CARD
========================= */

.course-card{
    background:#fff;
    border-radius:var(--radius);
    padding:40px;
    box-shadow:var(--shadow);
    margin-bottom:40px;
    border:1px solid rgba(225, 29, 72, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s ease;
}

.course-card:hover{
    border-color: rgba(225, 29, 72, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -15px rgba(225, 29, 72, 0.12),
                0 0 0 1px rgba(225, 29, 72, 0.05);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gradient);
}

.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
    flex-wrap:wrap;
}

.card-header h2{
    font-size:36px;
    font-weight: 700;
    margin:5px 0;
    color:var(--primary);
}

.card-label{
    background:var(--accent-bg);
    color:var(--accent-red);
    padding:6px 16px;
    border-radius:30px;
    font-weight:700;
    font-size:12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid #fecdd3;
}

.card-description{
    max-width:900px;
    margin-bottom:25px;
    font-size:16px;
    font-weight: 400;
    color: var(--text);
}

/* ==========================================================
   ENHANCED 4-SECTIONS GRID (Ultra-Luxury Pill List Styling)
========================================================== */

.course-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.course-box{
    background: linear-gradient(145deg, #ffffff 0%, #fffdfd 100%);
    border-radius: 24px;
    padding: 36px;
    border: 1px solid rgba(225, 29, 72, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.course-box:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 29, 72, 0.25);
    box-shadow: 0 20px 45px rgba(225, 29, 72, 0.08);
}

.course-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.course-box:hover::before {
    opacity: 1;
}

.highlight-box{
    background: linear-gradient(145deg, #fffdfd 0%, #fff1f2 100%);
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.course-box h3{
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-box ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-box li{
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.course-box li:hover {
    transform: translateX(4px);
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.06);
}

.course-box li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--accent-bg);
    color: var(--accent-red);
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #fecdd3;
}

/* =========================
   INFO BOX - Floating Metric Cards
========================= */

.course-info{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:14px;
    margin-top:30px;
}

.course-info div{
    background:#fff;
    text-align:center;
    padding:20px 12px;
    border-radius:18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border:1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.course-info div:hover {
    border-color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.08);
}

.course-info span{
    display:block;
    color:var(--gray);
    font-size:11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.course-info strong{
    display:block;
    margin-top:6px;
    font-size:16px;
    font-weight: 700;
    color:var(--primary);
}

/* =========================
   BUTTONS
========================= */

.course-btn,
.primary-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin-top:30px;
    background:var(--accent-gradient);
    color:#fff;
    padding:14px 34px;
    border-radius:50px;
    font-weight:700;
    font-size:14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition:all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow:0 10px 25px rgba(225, 29, 72, 0.3);
}

.course-btn span,
.primary-btn span {
    transition: transform 0.3s ease;
}

.course-btn:hover span,
.primary-btn:hover span {
    transform: translateX(4px);
}

.course-btn:hover,
.primary-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 35px rgba(225, 29, 72, 0.45);
}

/* ==========================================
   FEATURE CARDS
========================================== */

.feature-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:22px;
    margin-top:28px;
}

.feature-card{
    background:#fff;
    border-radius:20px;
    padding:30px;
    box-shadow:var(--shadow);
    transition:all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border:1px solid rgba(225, 29, 72, 0.06);
}

.feature-card:hover{
    transform:translateY(-6px);
    border-color: var(--accent-red);
    box-shadow: 0 20px 40px rgba(225, 29, 72, 0.1);
}

.feature-card h3{
    color:var(--primary);
    margin-bottom:12px;
    font-size:20px;
    font-family: 'Playfair Display', serif;
}

.feature-card p{
    color:var(--gray);
    font-size:14px;
}

/* ==========================================
   FEATURE LIST
========================================== */

.feature-list{
    max-width:850px;
    margin:auto;
    list-style:none;
}

.feature-list li{
    background:#fff;
    padding:16px 24px;
    margin-bottom:14px;
    border-left:5px solid var(--accent-red);
    border-radius:14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.02);
    font-size:14px;
    font-weight: 500;
    color: var(--primary);
    border-top: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(4px);
}

/* ==========================================
   COURSE TABLE
========================================== */

.course-table{
    width:100%;
    border-collapse:separate;
    border-spacing: 0;
    margin-top:28px;
    overflow:hidden;
    border-radius:20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    background:#fff;
    border: 1px solid #f1f5f9;
}

.course-table td{
    padding:18px 24px;
    border-bottom:1px solid #f1f5f9;
    font-size:14px;
}

.course-table tr:last-child td{
    border-bottom: none;
}

.course-table tr:nth-child(even){
    background:#fff5f5;
}

.course-table td:first-child{
    width:40%;
    font-weight:700;
    color:var(--primary);
}

/* ==========================================
   FAQ SECTION
========================================== */

.faq-item{
    background:#fff;
    border-radius:18px;
    padding:22px 26px;
    margin-bottom:14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.02);
    cursor:pointer;
    transition:all 0.35s ease;
    border:1px solid #f1f5f9;
}

.faq-item:hover{
    transform:translateY(-3px);
    border-color:var(--accent-red);
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.08);
}

.faq-item h3{
    color:var(--primary);
    font-size:18px;
    font-family: 'Playfair Display', serif;
    margin-bottom:8px;
}

.faq-item p{
    display:none;
    color:var(--gray);
    line-height:1.7;
    font-size:14px;
}

/* ==========================================
   CTA SECTION
========================================== */

.next-course{
    background: linear-gradient(135deg, #881337 0%, #4c0519 100%);
    color:#fff;
    text-align:center;
    padding:75px 0;
    position: relative;
    overflow: hidden;
}

.next-course h2{
    color:#fff;
    font-size:40px;
    font-weight: 700;
    margin-bottom:14px;
}

.next-course p{
    color:#fecdd3;
    max-width:700px;
    margin:auto;
    font-size:16px;
    font-weight: 300;
}

.next-course .primary-btn{
    margin-top:30px;
    background:#fff;
    color:var(--accent-red);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.next-course .primary-btn:hover{
    background:#fff1f2;
}

/* ==========================================
   ANIMATIONS
========================================== */

.course-card,
.feature-card,
.faq-item{
    animation:fadeUp .6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media(max-width:992px){
    .course-grid{
        grid-template-columns:1fr;
    }
    .course-info{
        grid-template-columns:repeat(2,1fr);
    }
    .card-header{
        flex-direction:column;
        align-items:flex-start;
    }
}

@media(max-width:768px){
    .courses-hero,
    .course-hero{
        padding:55px 0;
    }
    .courses-hero h1,
    .course-hero h1{
        font-size:32px;
    }
    .courses-hero p,
    .course-hero p{
        font-size:15px;
    }
    .course-switch{
        flex-direction:column;
    }
    .switch-btn{
        width:100%;
    }
    .course-card{
        padding:24px;
    }
    .course-info{
        grid-template-columns:1fr;
    }
    .feature-grid{
        grid-template-columns:1fr;
    }
    .next-course h2{
        font-size:28px;
    }
}

@media(max-width:480px){
    section{
        padding:40px 0;
    }
    .course-card{
        padding:18px;
    }
    .course-box{
        padding:18px;
    }
    .card-header h2{
        font-size:26px;
    }
}