/* =========================================================
   Sara Website
   Main Landing Page Design
   ========================================================= */

:root {
    --sara-green: #16866f;
    --sara-green-dark: #075447;
    --sara-green-light: #dff3ed;
    --sara-gold: #c9953d;
    --sara-cream: #faf9f5;
    --sara-soft: #f1f8f5;
    --sara-text: #164c43;
    --sara-muted: #667b77;
    --sara-white: #ffffff;
    --sara-radius: 18px;
    --sara-shadow: 0 10px 30px rgba(20, 70, 60, 0.08);
    --sara-shadow-hover: 0 18px 40px rgba(20, 70, 60, 0.15);
}


/* =========================================================
   Global
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--sara-white);
    color: var(--sara-text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
}


/* =========================================================
   Container
   ========================================================= */

.container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* =========================================================
   Hero Section
   ========================================================= */

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, #fbfaf6 0%, #f5f8f4 55%, #edf6f2 100% );
    padding: 80px 0 70px;
}


    /* Decorative background */

    .hero-section::before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: rgba(208, 235, 226, 0.45);
        top: -220px;
        right: -120px;
        z-index: 0;
    }


    .hero-section::after {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: rgba(238, 230, 210, 0.35);
        bottom: -220px;
        left: -120px;
        z-index: 0;
    }


.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 60px;
}


/* =========================================================
   Hero Text
   ========================================================= */

.hero-text {
    max-width: 570px;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--sara-green-light);
    color: var(--sara-green);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 22px;
}


    .hero-badge::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--sara-green);
    }


.hero-text h1 {
    margin: 0 0 20px;
    color: var(--sara-green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -1px;
}


    .hero-text h1 span {
        color: var(--sara-gold);
        font-style: italic;
    }


.hero-text p {
    max-width: 520px;
    margin: 0 0 30px;
    color: var(--sara-muted);
    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   Hero Buttons
   ========================================================= */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


    .hero-buttons .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 150px;
        padding: 13px 24px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 700;
        transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }


        .hero-buttons .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(20, 100, 80, 0.15);
        }


    /* Courses button */

    .hero-buttons .btn-outline-success {
        background: var(--sara-green);
        border: 2px solid var(--sara-green);
        color: white;
    }


        .hero-buttons .btn-outline-success:hover {
            background: var(--sara-green-dark);
            border-color: var(--sara-green-dark);
        }


    /* Start learning */

    .hero-buttons .btn-outline-info {
        background: transparent;
        border: 2px solid var(--sara-green);
        color: var(--sara-green);
    }


        .hero-buttons .btn-outline-info:hover {
            background: var(--sara-green);
            color: white;
        }


/* =========================================================
   Hero Image
   ========================================================= */

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


    .hero-image::before {
        content: "";
        position: absolute;
        width: 430px;
        height: 430px;
        border-radius: 50%;
        background: #dceee8;
        z-index: 0;
    }


    .hero-image img {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 510px;
        height: 460px;
        object-fit: cover;
        object-position: center;
        border-radius: 45% 45% 20px 20px;
        box-shadow: 0 20px 50px rgba(20, 70, 60, 0.18);
    }


/* =========================================================
   Features Section
   ========================================================= */

.features-section {
    position: relative;
    background: white;
    padding: 75px 0 80px;
}


.section-title {
    text-align: center;
    margin-bottom: 48px;
}


    .section-title span {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        color: var(--sara-green);
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 10px;
    }


        .section-title span::before,
        .section-title span::after {
            content: "";
            width: 48px;
            height: 1px;
            background: #8bc9b8;
        }


    .section-title h2 {
        margin: 0;
        color: var(--sara-green-dark);
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(30px, 4vw, 44px);
        line-height: 1.2;
    }


/* =========================================================
   Features
   ========================================================= */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 1000px;
    margin: auto;
}


.feature {
    text-align: center;
    padding: 20px;
}


    .feature i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 78px;
        height: 78px;
        margin: 0 auto 20px;
        border-radius: 50%;
        background: var(--sara-green-light);
        color: var(--sara-green);
        font-size: 34px;
    }


    .feature h3 {
        margin: 0 0 10px;
        color: var(--sara-green-dark);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 23px;
    }


    .feature p {
        max-width: 260px;
        margin: auto;
        color: var(--sara-muted);
        font-size: 16px;
    }


/* =========================================================
   Courses Section
   ========================================================= */

.courses-section {
    background: linear-gradient( 180deg, #f0f8f5 0%, #edf7f4 100% );
    padding: 80px 0 100px;
}


    .courses-section .section-title {
        margin-bottom: 42px;
    }


/* =========================================================
   Course Cards Container
   ========================================================= */

.course-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: stretch;
}


/* =========================================================
   Course Card
   ========================================================= */

.course-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: white;
    border-radius: var(--sara-radius);
    overflow: hidden;
    box-shadow: var(--sara-shadow);
    border: 1px solid rgba(20, 100, 80, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


    .course-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--sara-shadow-hover);
    }


/* =========================================================
   Course Image
   ========================================================= */

.course-image-wrapper {
    width: 100%;
    padding: 12px 12px 0;
}


.course-image {
    display: block;
    width: 100%;
    height: 175px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    transition: transform 0.35s ease;
}


.course-card:hover .course-image {
    transform: scale(1.02);
}


/* =========================================================
   Course Image Placeholder
   ========================================================= */

.course-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 175px;
    border-radius: 14px;
    background: linear-gradient( 135deg, #e7f4ef, #f7f3e9 );
    font-size: 48px;
}


/* =========================================================
   Course Content
   ========================================================= */

.course-card h3 {
    padding: 20px 20px 0;
    margin: 0;
    color: var(--sara-green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.3;
}


.course-card > p {
    padding: 10px 20px 0;
    margin: 0;
    color: var(--sara-muted);
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   Course Price
   ========================================================= */

.course-price {
    padding: 12px 20px 0;
    color: var(--sara-green);
    font-size: 22px;
    font-weight: 800;
}


/* =========================================================
   Course List
   ========================================================= */

.course-card ul {
    list-style: none;
    padding: 15px 20px 0;
    margin: 0;
}


.course-card li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #526b66;
    font-size: 13px;
}


    .course-card li::before {
        content: "✓";
        position: absolute;
        left: 0;
        color: var(--sara-green);
        font-weight: 800;
    }


/* =========================================================
   Course Button
   ========================================================= */

.course-card > .btn {
    margin: auto 20px 20px;
    padding: 11px 18px;
    border: none;
    border-radius: 50px;
    background: var(--sara-green);
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.25s ease, transform 0.25s ease;
}


    .course-card > .btn:hover {
        background: var(--sara-green-dark);
        transform: translateY(-2px);
    }


/* =========================================================
   Responsive - Tablet
   ========================================================= */

@media (max-width: 1100px) {

    .course-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        gap: 35px;
    }

    .hero-text h1 {
        font-size: 48px;
    }
}


/* =========================================================
   Responsive - Mobile
   ========================================================= */

@media (max-width: 768px) {

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }


    /* Hero */

    .hero-section {
        padding: 55px 0 60px;
    }


    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }


    .hero-text {
        max-width: none;
    }


        .hero-text p {
            margin-left: auto;
            margin-right: auto;
        }


    .hero-buttons {
        justify-content: center;
    }


    .hero-image img {
        height: 380px;
        max-width: 400px;
    }


    .hero-image::before {
        width: 330px;
        height: 330px;
    }


    /* Features */

    .features {
        grid-template-columns: 1fr;
        gap: 25px;
    }


    /* Courses */

    .course-cards {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }


    .course-image {
        height: 220px;
    }


    .course-image-placeholder {
        height: 220px;
    }
}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 480px) {

    .hero-text h1 {
        font-size: 40px;
    }


    .hero-text p {
        font-size: 16px;
    }


    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }


        .hero-buttons .btn {
            width: 100%;
        }


    .hero-image img {
        height: 330px;
    }


    .section-title h2 {
        font-size: 30px;
    }
}

/* =========================================================
   navbar footer and layout
   ========================================================= */
/* =========================================================
   SARA WEBSITE
   NAVBAR + FOOTER + AUTHENTICATION UI
   ========================================================= */

/* ---------------------------------------------------------
   NAVBAR
   --------------------------------------------------------- */

.sara-navbar {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(22, 134, 111, 0.10);
    box-shadow: 0 6px 24px rgba(20, 70, 60, 0.06);
    position: relative;
    z-index: 1000;
}

.sara-navbar-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */

.sara-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.15;
    flex-shrink: 0;
}

    .sara-logo:hover {
        text-decoration: none;
    }

.sara-logo-main {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--sara-green-dark);
    letter-spacing: -0.3px;
}

.sara-logo-sub {
    margin-top: 4px;
    color: var(--sara-gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

/* Navigation */

.sara-navbar .navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex: 1;
}

.sara-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.sara-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    color: var(--sara-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

    .sara-nav-link:hover {
        color: var(--sara-green);
        background: var(--sara-soft);
        text-decoration: none;
    }

.sara-login-area {
    display: flex;
    align-items: center;
}

    .sara-login-area a,
    .sara-login-area button {
        color: var(--sara-text);
        text-decoration: none;
        font-size: 0.92rem;
        font-weight: 600;
        transition: color 0.2s ease;
    }

        .sara-login-area a:hover {
            color: var(--sara-green);
        }

/* Start Learning button */

.sara-nav-action {
    flex-shrink: 0;
}

.sara-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--sara-green);
    color: var(--sara-white) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(22, 134, 111, 0.18);
    transition: all 0.2s ease;
}

    .sara-nav-button:hover {
        background: var(--sara-green-dark);
        color: var(--sara-white) !important;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 12px 25px rgba(20, 70, 60, 0.20);
    }

/* Mobile menu button */

.sara-navbar-toggler {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(22, 134, 111, 0.18);
    border-radius: 12px;
    background: var(--sara-soft);
    color: var(--sara-green-dark);
    font-size: 1.35rem;
    cursor: pointer;
}

    .sara-navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(22, 134, 111, 0.12);
    }


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.sara-footer {
    margin-top: 80px;
    padding: 60px 0 22px;
    background: var(--sara-green-dark);
    color: rgba(255, 255, 255, 0.88);
}

.sara-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
}

.sara-footer h3 {
    margin: 0 0 14px;
    color: var(--sara-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.sara-footer h4 {
    margin: 0 0 16px;
    color: var(--sara-white);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.sara-footer p {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.sara-footer-links,
.sara-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .sara-footer-links a,
    .sara-footer-contact a {
        margin-bottom: 9px;
        color: rgba(255, 255, 255, 0.72);
        text-decoration: none;
        font-size: 0.92rem;
        transition: color 0.2s ease;
    }

        .sara-footer-links a:hover,
        .sara-footer-contact a:hover {
            color: var(--sara-white);
            text-decoration: none;
        }

    .sara-footer-contact a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .sara-footer-contact i {
        color: var(--sara-gold);
    }

.sara-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.8rem;
}


/* ---------------------------------------------------------
   AUTHENTICATION PAGES
   LOGIN + REGISTER
   --------------------------------------------------------- */

.sara-auth-page {
    min-height: calc(100vh - 78px);
    padding: 70px 0 80px;
    background: radial-gradient( circle at 10% 15%, rgba(223, 243, 237, 0.85), transparent 28% ), radial-gradient( circle at 90% 80%, rgba(201, 149, 61, 0.08), transparent 25% ), var(--sara-cream);
}

.sara-auth-layout {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

    .sara-auth-layout.sara-auth-has-external {
        max-width: 980px;
        display: grid;
        grid-template-columns: minmax(0, 520px) minmax(280px, 380px);
        justify-content: center;
        align-items: start;
        gap: 28px;
    }

.sara-auth-card {
    background: var(--sara-white);
    border: 1px solid rgba(22, 134, 111, 0.09);
    border-radius: 24px;
    padding: 42px;
    box-shadow: var(--sara-shadow);
}

.sara-auth-header {
    margin-bottom: 30px;
}

.sara-auth-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--sara-gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sara-auth-header h1 {
    margin: 0 0 10px;
    color: var(--sara-green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.15rem;
    font-weight: 700;
}

.sara-auth-header p {
    margin: 0;
    color: var(--sara-muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

/* Validation */

.sara-auth-card .validation-summary-errors {
    margin-bottom: 20px;
    padding: 12px 15px;
    border: 1px solid rgba(180, 50, 50, 0.18);
    border-radius: 12px;
    background: rgba(180, 50, 50, 0.06);
    color: #9b3030;
    font-size: 0.88rem;
}

.sara-auth-card .text-danger {
    font-size: 0.8rem;
}

/* Form */

.sara-auth-card .form-floating {
    margin-bottom: 18px !important;
}

.sara-auth-card .form-control {
    min-height: 56px;
    border: 1px solid #dce7e3;
    border-radius: 13px;
    color: var(--sara-text);
    background: var(--sara-white);
    box-shadow: none;
    transition: all 0.2s ease;
}

    .sara-auth-card .form-control:focus {
        border-color: var(--sara-green);
        box-shadow: 0 0 0 4px rgba(22, 134, 111, 0.10);
    }

.sara-auth-card .form-floating label {
    color: #7a8d89;
}

.sara-auth-card .form-check-input {
    border-color: #c9d8d4;
}

    .sara-auth-card .form-check-input:checked {
        background-color: var(--sara-green);
        border-color: var(--sara-green);
    }

.sara-auth-card .form-check-label {
    color: var(--sara-muted);
    font-size: 0.88rem;
}

/* Main auth button */

.sara-auth-button {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border: none;
    border-radius: 13px;
    background: var(--sara-green);
    color: var(--sara-white);
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(22, 134, 111, 0.16);
    transition: all 0.2s ease;
}

    .sara-auth-button:hover {
        background: var(--sara-green-dark);
        transform: translateY(-1px);
        box-shadow: 0 12px 25px rgba(20, 70, 60, 0.20);
    }

/* Links below form */

.sara-auth-links {
    margin-top: 24px;
    text-align: center;
}

    .sara-auth-links p {
        margin: 7px 0;
        color: var(--sara-muted);
        font-size: 0.88rem;
    }

    .sara-auth-links a,
    .sara-auth-card a {
        color: var(--sara-green);
        font-weight: 600;
        text-decoration: none;
    }

        .sara-auth-links a:hover,
        .sara-auth-card a:hover {
            color: var(--sara-green-dark);
            text-decoration: underline;
        }

/* External login */

.sara-auth-external {
    background: var(--sara-soft);
    border: 1px solid rgba(22, 134, 111, 0.10);
    border-radius: 22px;
    padding: 30px;
}

    .sara-auth-external h2 {
        margin: 0 0 8px;
        color: var(--sara-green-dark);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.35rem;
    }

    .sara-auth-external p {
        margin: 0 0 20px;
        color: var(--sara-muted);
        font-size: 0.88rem;
    }

    .sara-auth-external button {
        width: 100%;
        margin-bottom: 10px;
        padding: 11px 15px;
        border: 1px solid #d4e3de;
        border-radius: 11px;
        background: var(--sara-white);
        color: var(--sara-text);
        font-weight: 600;
        transition: all 0.2s ease;
    }

        .sara-auth-external button:hover {
            border-color: var(--sara-green);
            color: var(--sara-green-dark);
        }


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .sara-navbar-inner {
        gap: 18px;
    }

    .sara-navbar .navbar-collapse {
        gap: 15px;
    }

    .sara-nav-link {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sara-auth-layout.sara-auth-has-external {
        grid-template-columns: minmax(0, 500px) minmax(260px, 340px);
    }
}


@media (max-width: 768px) {

    .sara-navbar-inner {
        flex-wrap: wrap;
        min-height: 72px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .sara-navbar-toggler {
        display: flex;
    }

    .sara-navbar .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 15px 0 5px;
    }

        .sara-navbar .navbar-collapse.show {
            display: flex;
        }

    .sara-nav-list {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .sara-nav-link {
        width: 100%;
        padding: 11px 13px;
    }

    .sara-login-area {
        padding: 8px 13px;
    }

    .sara-nav-action {
        width: 100%;
    }

    .sara-nav-button {
        width: 100%;
    }

    .sara-footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .sara-footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .sara-auth-layout.sara-auth-has-external {
        display: block;
        max-width: 520px;
    }

    .sara-auth-external {
        margin-top: 24px;
    }
}


@media (max-width: 480px) {

    .sara-auth-page {
        padding: 40px 0 55px;
    }

    .sara-auth-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .sara-auth-header h1 {
        font-size: 1.8rem;
    }

    .sara-footer {
        padding-top: 45px;
    }
}