/* ----------------------------------------------------------------------
   courses.css
   v5.0 - Consolidated Styles
   ---------------------------------------------------------------------- */

:root {
    --navy: #1E2A44;
    --red: #E30613;
    --bg-main: #f1f5f9;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --focus: #3b82f6;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--red);
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}

/* --- HEADER --- */
.site-header {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 16px;
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: 28px;
}

.site-header .logo {
    height: 48px;
    width: auto;
    display: block;
}

.site-header .divider {
    height: 6px;
    background: var(--red);
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: var(--muted);
    display: none !important;
}

.breadcrumbs ol {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs li::after {
    content: "/";
    margin-left: 8px;
    color: #cbd5e1;
}

.breadcrumbs li:last-child::after {
    content: "";
}

.breadcrumbs a {
    color: inherit;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* --- HERO SECTION --- */
.hero-section {
    background: var(--white);
    padding-top: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.title-content {
    flex: 1;
}

h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 15px 0;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 700px;
    margin-bottom: 25px;
    margin-top: 0;
}

.underline {
    padding-bottom: 8px;
    border-bottom: 3px solid var(--red);
    color: var(--navy);
    display: inline-block;
}

/* --- RATING --- */
.rating-display {
    color: #1e293b;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.rating-display svg {
    color: #facc15;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- FEATURES GRID --- */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

.feat-item svg {
    width: 22px;
    height: 22px;
    color: var(--red);
    flex-shrink: 0;
}

.cat-wrap img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* --- BOOKING ZONE --- */
.booking-zone {
    background: var(--bg-main);
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- CARDS (Unified) --- */
.date-card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid var(--line);
    border-left: 4px solid var(--navy);
    margin-bottom: 15px;
    transition: all 0.2s;
    display: grid;
    grid-template-columns: 160px 1fr auto auto;
    gap: 20px;
    align-items: center;
    white-space: nowrap;
}

.date-card:hover {
    border-color: var(--red);
    border-left-color: var(--red);
}

.date-when {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
}

.date-time {
    font-size: 0.85rem;
    color: var(--muted);
}

.date-loc strong a {
    color: var(--navy);
}

/* Group Card Variant */
.date-card.group-card {
    background-color: var(--navy);
    color: var(--white);
    border-left: 4px solid var(--red);
}

.date-card.group-card .date-when,
.date-card.group-card strong,
.date-card.group-card .date-time,
.date-card.group-card .date-loc {
    color: var(--white);
}

.date-card.group-card .price-pill {
    background-color: transparent;
    border: 1px solid var(--red);
    color: var(--white);
}

/* --- BUTTONS & PILLS --- */
.btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn.primary {
    background: var(--red);
    color: var(--white);
}
.btn.primary:hover {
    background: #b91c1c;
}

.btn.navy {
    background: var(--navy);
    color: var(--white);
}
.btn.navy:hover {
    background: #0f172a;
}

/* Specific overwrite for group card button */
.date-card.group-card .btn.navy {
    background-color: var(--white);
    color: var(--navy);
}

.price-pill {
    border: 1px solid var(--red);
    color: var(--navy);
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}

/* --- SYLLABUS --- */
.syllabus-box {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--line);
    margin-top: 40px;
}

.syllabus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.syllabus-grid div {
    position: relative;
    padding-left: 30px;
    font-size: 0.95rem;
    white-space: normal;
}

.syllabus-grid div::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    background: #ecfdf5;
    color: #10b981;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* --- NEARBY ZONE --- */
.nearby-zone {
    margin-top: 30px;
    border-top: 1px solid var(--line);
    padding-top: 15px;
}

.nearby-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.loc-tag {
    display: inline-block;
    margin-right: 12px;
    color: var(--navy);
    font-weight: 500;
    font-size: 0.9rem;
}

.loc-tag:hover {
    color: var(--red);
    text-decoration: underline;
}

/* --- FAQ ZONE --- */
.faq-zone {
    background: var(--white);
    padding-top: 30px;
    padding-bottom: 20px;
}

details {
    background: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

details > summary {
    padding: 15px;
    font-weight: 700;
    cursor: pointer;
    color: var(--navy);
    list-style: none;
    position: relative;
    padding-right: 50px;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--red);
    transition: transform 0.2s ease;
}

details[open] > summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-a {
    padding: 0 15px 15px;
    color: var(--text);
}

/* --- STICKY FOOTER --- */
.sticky-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
}

/* --- MAIN FOOTER --- */
footer {
    padding: 32px 0;
    background: #050812;
    color: #AAB6D6;
    margin-top: 0;
}

.footer-inner {
    font-size: 0.9rem;
}

/* --- SEARCH FILTER --- */
.search {
    width: 100%;
    max-width: 420px;
    margin-bottom: 20px;
}

.search input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 8px;
    font: inherit;
    transition: all 0.2s;
}

.search input:focus {
    outline: none;
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .title-row {
        position: relative;
        display: block;
    }

    .title-content {
        padding-right: 0;
    }

    /* Icon Positioning: Bottom Right on Mobile */
    .cat-wrap {
        display: block;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }

    .cat-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Prevent Feature List Overlap */
    .feat-grid {
        padding-right: 130px;
        grid-template-columns: 1fr;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .date-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
        white-space: normal;
    }

    .syllabus-grid {
        grid-template-columns: 1fr;
    }

    .sticky-footer {
        display: flex;
    }

    .hero-section, .booking-zone, .faq-zone {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .btn {
        width: 100%;
    }

    .date-cta {
        flex-direction: column;
        width: 100%;
    }
}