/* =========================================================
   SKILLS FOR LIFE LONDON - MAIN STYLE
   File: assets/css/style.css
   ========================================================= */

/* ===============================
   RESET + BASE
================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #071b33;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button,
input,
textarea {
    font-family: inherit;
}

main {
    min-height: 70vh;
}

.container {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
}

/* ===============================
   HEADER
================================ */
.site-header {
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid #e7edf5;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 8px 28px rgba(0, 38, 77, 0.08);
    backdrop-filter: blur(10px);
}

.header-inner {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    height: 74px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 12px 17px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #003b73;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: #e9f5ff;
    color: #002f5f;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.basket-btn {
    background: #003b73;
    color: #ffffff;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(0, 59, 115, 0.22);
}

.basket-btn::before {
    content: "🛒";
}

.basket-btn span {
    background: #ffb703;
    color: #003b73;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.mobile-menu-btn {
    display: none;
    margin-left: auto;
    border: none;
    background: #003b73;
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 24px;
    cursor: pointer;
}

/* ===============================
   BUTTONS
================================ */
.blue-btn,
.light-btn,
.outline-btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.blue-btn {
    background: #003b73;
    color: #ffffff;
    padding: 15px 28px;
    box-shadow: 0 10px 24px rgba(0, 59, 115, 0.20);
}

.blue-btn:hover {
    background: #002f5f;
    transform: translateY(-2px);
}

.light-btn {
    background: #e9f5ff;
    color: #003b73;
    padding: 15px 28px;
}

.light-btn:hover {
    background: #d9efff;
}

.outline-btn {
    background: transparent;
    color: #003b73;
    border: 2px solid rgba(0, 59, 115, 0.18);
    padding: 13px 26px;
}

.outline-btn:hover {
    background: #e9f5ff;
}

.small-btn {
    padding: 11px 17px;
    font-size: 14px;
}

/* ===============================
   HOME BANNER
================================ */
.home-banner {
    width: min(1160px, calc(100% - 36px));
    margin: 34px auto 24px;
    border-radius: 30px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffd8c2;
    box-shadow: 0 18px 45px rgba(0, 38, 77, 0.10);
}

.home-banner-text {
    padding: 58px 60px;
    background:
        radial-gradient(circle at 8% 15%, rgba(255,255,255,0.38), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(255,255,255,0.28), transparent 38%),
        linear-gradient(90deg, #ffd8c2, #f5c7b5);
}

.small-label {
    display: inline-flex;
    background: #e9f5ff;
    color: #003b73;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
}

.home-banner-text h1 {
    font-size: 44px;
    line-height: 1.12;
    color: #003b73;
    margin: 0 0 20px;
    font-weight: 900;
    letter-spacing: -1px;
}

.home-banner-text p {
    font-size: 16px;
    line-height: 1.85;
    color: #18283a;
    margin: 0 0 26px;
}

.banner-buttons {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}

.home-banner-image {
    min-height: 430px;
}

.home-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   QUICK INFO
================================ */
.quick-info-section {
    width: min(1160px, calc(100% - 36px));
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.quick-info-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0, 38, 77, 0.06);
}

.quick-info-card strong {
    display: block;
    color: #003b73;
    font-size: 18px;
    margin-bottom: 8px;
}

.quick-info-card span {
    color: #64748b;
    line-height: 1.6;
    font-size: 15px;
}

/* ===============================
   SECTIONS
================================ */
.section {
    padding: 76px 0;
}

.section-white {
    background: #ffffff;
}

.section-header-center {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 42px;
}

.section-header-center h2,
.section-header-row h2 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 14px;
    color: #003b73;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.section-header-center p,
.section-header-row p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.75;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

/* ===============================
   ABOUT CARDS
================================ */
.about-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card-modern {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 14px 35px rgba(0, 38, 77, 0.06);
}

.about-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #e9f5ff;
    color: #003b73;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.about-card-modern h3 {
    margin: 0 0 12px;
    color: #003b73;
    font-size: 22px;
    line-height: 1.25;
}

.about-card-modern p {
    margin: 0;
    color: #64748b;
    line-height: 1.75;
    font-size: 15px;
}

/* ===============================
   COURSE LIST - OXFORD STYLE
================================ */
.course-list-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.course-row-card {
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 26px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 220px;
    box-shadow: 0 12px 30px rgba(0, 38, 77, 0.055);
    transition: 0.25s ease;
}

.course-row-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 38, 77, 0.12);
}

.course-row-image {
    background: #eef2f7;
    min-height: 220px;
}

.course-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-row-content {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
}

.course-pill {
    align-self: flex-start;
    background: #e9f5ff;
    color: #003b73;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.course-row-content h3 {
    margin: 0 0 12px;
    color: #003b73;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.course-row-content p {
    margin: 0 0 14px;
    color: #64748b;
    line-height: 1.65;
    font-size: 15px;
}

.course-details-list {
    margin: 0 0 14px;
    padding-left: 19px;
    color: #111827;
    line-height: 1.7;
    font-size: 15px;
}

.course-row-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.course-price-pill {
    background: #e9f5ff;
    color: #003b73;
    padding: 10px 15px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
}

.course-row-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===============================
   CALL SECTION
================================ */
.call-section {
    width: min(1160px, calc(100% - 36px));
    margin: 18px auto 70px;
    padding: 38px 60px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255,255,255,0.24), transparent 34%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.20), transparent 36%),
        #ccea7d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    box-shadow: 0 14px 35px rgba(0, 38, 77, 0.08);
}

.call-section h2 {
    font-size: 40px;
    line-height: 1.12;
    color: #003b73;
    margin: 0 0 12px;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.call-section p {
    margin: 0;
    max-width: 650px;
    color: #102033;
    line-height: 1.75;
    font-size: 16px;
}

.call-section a {
    background: #003b73;
    color: #ffffff;
    padding: 16px 30px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 59, 115, 0.20);
}

/* ===============================
   CONTACT
================================ */
.contact-modern-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 26px;
}

.contact-info-card,
.contact-form-card,
.empty-box {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 26px;
    padding: 32px;
    box-shadow: 0 14px 35px rgba(0, 38, 77, 0.06);
}

.contact-info-card h3,
.contact-form-card h3,
.empty-box h3 {
    margin: 0 0 20px;
    color: #003b73;
    font-size: 25px;
    font-weight: 900;
}

.contact-line {
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
}

.contact-line:last-child {
    border-bottom: none;
}

.contact-line strong {
    display: block;
    color: #003b73;
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-line span {
    color: #64748b;
    line-height: 1.6;
}

.contact-form-card form {
    display: grid;
    gap: 14px;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    border: 1px solid #d8e2ec;
    border-radius: 16px;
    padding: 15px 17px;
    font-size: 15px;
    outline: none;
    background: #fbfdff;
    color: #071b33;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: #003b73;
    box-shadow: 0 0 0 4px rgba(0, 59, 115, 0.08);
}

.contact-form-card textarea {
    min-height: 145px;
    resize: vertical;
}

.form-btn {
    width: fit-content;
}

.alert-message {
    background: #e9f5ff;
    color: #003b73;
    border: 1px solid #cfe7fa;
    border-radius: 16px;
    padding: 13px 15px;
    margin-bottom: 15px;
    font-weight: 700;
}

.empty-box {
    grid-column: 1 / -1;
}

.empty-box p {
    color: #64748b;
    margin: 0;
}

/* ===============================
   FOOTER
================================ */
.site-footer {
    background: #003b73;
    color: #dbeafe;
    padding: 46px 0;
    margin-top: 30px;
}

.footer-inner {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer strong {
    color: #ffffff;
}

.site-footer a {
    color: #ffffff;
    font-weight: 700;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1050px) {
    .home-banner {
        grid-template-columns: 1fr;
    }

    .home-banner-image {
        min-height: 320px;
    }

    .quick-info-section {
        grid-template-columns: 1fr;
    }

    .course-list-modern {
        grid-template-columns: 1fr;
    }

    .about-grid-modern,
    .contact-modern-grid {
        grid-template-columns: 1fr;
    }

    .section-header-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 850px) {
    .header-inner {
        min-height: 78px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .site-logo {
        height: 62px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav,
    .header-actions {
        display: none;
        width: 100%;
    }

    body.menu-open .main-nav,
    body.menu-open .header-actions {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-left: 0;
        border-top: 1px solid #e7edf5;
        padding-top: 12px;
    }

    .main-nav a {
        background: #f5faff;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .basket-btn {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }

    .home-banner {
        margin-top: 22px;
        border-radius: 24px;
    }

    .home-banner-text {
        padding: 36px 28px;
    }

    .home-banner-text h1 {
        font-size: 33px;
    }

    .home-banner-image {
        min-height: 260px;
    }

    .section {
        padding: 54px 0;
    }

    .section-header-center h2,
    .section-header-row h2,
    .call-section h2 {
        font-size: 31px;
    }

    .call-section {
        padding: 30px 26px;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 48px;
    }

    .course-row-card {
        grid-template-columns: 1fr;
    }

    .course-row-image {
        height: 230px;
        min-height: 230px;
    }

    .course-row-content h3 {
        font-size: 22px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .container,
    .header-inner,
    .home-banner,
    .quick-info-section,
    .call-section,
    .footer-inner {
        width: min(100% - 28px, 1160px);
    }

    .site-logo {
        height: 56px;
    }

    .home-banner-text {
        padding: 30px 22px;
    }

    .home-banner-text h1 {
        font-size: 29px;
    }

    .banner-buttons,
    .course-row-actions {
        flex-direction: column;
    }

    .blue-btn,
    .light-btn,
    .outline-btn {
        width: 100%;
    }

    .form-btn {
        width: 100%;
    }

    .contact-info-card,
    .contact-form-card,
    .about-card-modern {
        padding: 24px;
        border-radius: 22px;
    }

    .course-row-content {
        padding: 22px;
    }

    .course-row-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .course-price-pill {
        width: fit-content;
    }
}

.basket-title {
    margin-bottom: 20px;
    font-size: 30px;
    color: #003b73;
}

.basket-box {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.basket-table {
    width: 100%;
    border-collapse: collapse;
}

.basket-table th {
    background: #003b73;
    color: #ffffff;
    padding: 14px;
    text-align: left;
}

.basket-table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
}

.remove-btn {
    color: #dc2626;
    font-weight: 700;
}

.basket-summary {
    margin-top: 25px;
    text-align: right;
}

.checkout-btn {
    margin-top: 12px;
    display: inline-block;
    padding: 15px 28px;
}

@media (max-width: 700px) {
    .basket-table,
    .basket-table thead,
    .basket-table tbody,
    .basket-table th,
    .basket-table td,
    .basket-table tr {
        display: block;
    }

    .basket-table thead {
        display: none;
    }

    .basket-table tr {
        margin-bottom: 15px;
        background: #f9fafb;
        padding: 10px;
        border-radius: 12px;
    }

    .basket-summary {
        text-align: center;
    }

    .checkout-btn {
        width: 100%;
    }
}

/* MOBILE MENU BUTTON - PREMIUM */
.mobile-menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #003b73;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-menu-btn span {
    position: absolute;
    width: 22px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 999px;
    transition: all 0.3s ease;
}

/* Position lines */
.mobile-menu-btn span:nth-child(1) {
    transform: translateY(-7px);
}
.mobile-menu-btn span:nth-child(2) {
    transform: translateY(0);
}
.mobile-menu-btn span:nth-child(3) {
    transform: translateY(7px);
}

/* OPEN STATE (ANIMATION → X) */
body.menu-open .mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg);
}

body.menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg);
}

/* SHOW ONLY ON MOBILE */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex;
    }
}

.header-scrolled {
    box-shadow: 0 8px 28px rgba(0, 38, 77, 0.12);
}