/* =========================================================
   LEARN MORE ACADEMY - MODERN COURSE PAGE
   ========================================================= */

.lma-course-page {
    --lma-primary: #0866b3;
    --lma-primary-dark: #064d88;
    --lma-text: #20242a;
    --lma-muted: #667085;
    --lma-border: #e4e8ee;
    --lma-soft: #f6f8fb;
    --lma-white: #ffffff;

    background: #ffffff;
    color: var(--lma-text);
    font-family: inherit;
}

.lma-course-page * {
    box-sizing: border-box;
}

.lma-course-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   Breadcrumb
   ========================================================= */

.lma-course-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 22px 0 14px;
    font-size: 13px;
    color: var(--lma-muted);
}

.lma-course-breadcrumb a {
    color: var(--lma-primary);
    text-decoration: none;
}

.lma-course-breadcrumb a:hover {
    text-decoration: underline;
}


/* =========================================================
   Hero
   ========================================================= */

.lma-course-hero {
    padding: 10px 0 34px;
}

.lma-course-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
    gap: 42px;
    align-items: center;

    padding: 34px;

    background: var(--lma-soft);
    border: 1px solid var(--lma-border);
    border-radius: 16px;
}

.lma-course-hero-no-image {
    grid-template-columns: 1fr;
}

.lma-course-label,
.lma-section-kicker,
.lma-summary-label {
    display: inline-block;
    margin-bottom: 10px;

    color: var(--lma-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lma-course-hero h1 {
    margin: 0 0 17px;

    color: var(--lma-text);
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 700;
    line-height: 1.16;
}

.lma-course-intro {
    max-width: 650px;

    color: #505865;
    font-size: 16px;
    line-height: 1.7;
}

.lma-course-intro p {
    margin: 0;
}

.lma-course-hero-image {
    overflow: hidden;

    border-radius: 13px;
    background: #e8ebef;
}

.lma-course-hero-image img {
    display: block;

    width: 100%;
    height: 290px;

    object-fit: cover;
    object-position: center;
}

.lma-course-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 25px;
}


/* =========================================================
   Buttons
   ========================================================= */

.lma-course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 11px 21px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.lma-course-btn:hover {
    transform: translateY(-1px);
}

.lma-course-btn-primary {
    border: 1px solid var(--lma-primary);
    background: var(--lma-primary);
    color: #ffffff !important;
}

.lma-course-btn-primary:hover {
    border-color: var(--lma-primary-dark);
    background: var(--lma-primary-dark);
}

.lma-course-btn-secondary {
    border: 1px solid #ccd3dc;
    background: #ffffff;
    color: var(--lma-text) !important;
}

.lma-course-btn-secondary:hover {
    border-color: #aab4c0;
    background: #fafafa;
}


/* =========================================================
   Quick Facts
   ========================================================= */

.lma-course-facts {
    margin-bottom: 34px;
}

.lma-course-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    overflow: hidden;

    border: 1px solid var(--lma-border);
    border-radius: 12px;
    background: #ffffff;
}

.lma-course-fact {
    min-height: 88px;
    padding: 20px 22px;

    border-right: 1px solid var(--lma-border);
}

.lma-course-fact:last-child {
    border-right: 0;
}

.lma-course-fact-label {
    display: block;
    margin-bottom: 5px;

    color: var(--lma-muted);
    font-size: 12px;
    font-weight: 500;
}

.lma-course-fact strong {
    display: block;

    color: var(--lma-text);
    font-size: 16px;
    font-weight: 650;
}


/* =========================================================
   Main Layout
   ========================================================= */

.lma-course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;

    padding-bottom: 70px;
}

.lma-course-main {
    min-width: 0;
}

.lma-course-card {
    margin-bottom: 25px;
    padding: 30px;

    border: 1px solid var(--lma-border);
    border-radius: 13px;
    background: #ffffff;
}


/* =========================================================
   WordPress Course Content
   ========================================================= */

.lma-course-content {
    color: #3e4651;
    font-size: 15.5px;
    line-height: 1.75;
}

.lma-course-content > *:first-child {
    margin-top: 0;
}

.lma-course-content > *:last-child {
    margin-bottom: 0;
}

.lma-course-content h2 {
    margin: 35px 0 14px;

    color: var(--lma-text);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.lma-course-content h2:first-child {
    margin-top: 0;
}

.lma-course-content h3 {
    margin: 27px 0 11px;

    color: var(--lma-text);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.35;
}

.lma-course-content h4 {
    margin: 22px 0 10px;

    color: var(--lma-text);
    font-size: 17px;
    font-weight: 650;
}

.lma-course-content p {
    margin: 0 0 17px;
}

.lma-course-content ul,
.lma-course-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.lma-course-content li {
    margin-bottom: 8px;
}

.lma-course-content a {
    color: var(--lma-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lma-course-content img {
    max-width: 100%;
    height: auto;

    border-radius: 9px;
}

.lma-course-content iframe,
.lma-course-content video {
    max-width: 100%;
}


/* =========================================================
   Section Heading
   ========================================================= */

.lma-section-heading {
    margin-bottom: 23px;
}

.lma-section-heading h2 {
    margin: 0 0 8px;

    color: var(--lma-text);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.lma-section-heading p {
    max-width: 650px;
    margin: 0;

    color: var(--lma-muted);
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   Booking Table
   ========================================================= */

.lma-booking-section {
    scroll-margin-top: 110px;
}

.lma-booking-scroll {
    max-height: 620px;
    overflow: auto;

    border: 1px solid var(--lma-border);
    border-radius: 10px;
}

.lma-booking-table {
    width: 100%;
    margin: 0;

    border: 0;
    border-collapse: collapse;
    background: #ffffff;

    font-size: 13px;
}

.lma-booking-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.lma-booking-table th {
    padding: 14px 13px;

    border: 0;
    border-bottom: 1px solid #dce2e9;

    background: #f3f6f9;

    color: #344054;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.lma-booking-table td {
    padding: 14px 13px;

    border: 0;
    border-bottom: 1px solid #edf0f3;

    color: #4b5563;
    line-height: 1.45;
    vertical-align: middle;
}

.lma-booking-table tbody tr:last-child td {
    border-bottom: 0;
}

.lma-booking-table tbody tr:hover {
    background: #fafbfd;
}

.lma-location-name {
    color: var(--lma-text);
    font-weight: 650;
}

.lma-course-price {
    color: var(--lma-primary);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.lma-muted {
    color: #98a2b3;
}


/* =========================================================
   Date Selector
   ========================================================= */

.lma-course-date-select {
    width: 100%;
    min-width: 145px;
    height: 40px;

    padding: 6px 32px 6px 10px;

    border: 1px solid #cfd6df;
    border-radius: 6px;
    outline: none;

    background: #ffffff;

    color: #344054;
    font-size: 13px;
}

.lma-course-date-select:focus {
    border-color: var(--lma-primary);

    box-shadow: 0 0 0 3px rgba(8, 102, 179, 0.10);
}

.lma-flexible-date {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 130px;
}

.lma-flexible-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    border-radius: 50%;
    background: #eaf6ef;

    color: #18864b;
    font-size: 13px;
    font-weight: 700;
}

.lma-flexible-date strong,
.lma-flexible-date small {
    display: block;
}

.lma-flexible-date strong {
    color: #344054;
    font-size: 13px;
}

.lma-flexible-date small {
    margin-top: 1px;

    color: #7c8795;
    font-size: 11px;
}


/* =========================================================
   Booking Controls
   ========================================================= */

.lma-booking-controls {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.lma-booking-controls label {
    margin: 0;
}

.lma-booking-controls label span {
    display: block;
    margin-bottom: 3px;

    color: #7b8491;
    font-size: 10px;
    font-weight: 600;
}

.lma-booking-controls input[type="number"] {
    width: 50px;
    height: 38px;

    padding: 5px;

    border: 1px solid #cfd6df;
    border-radius: 6px;

    text-align: center;
}

.lma-book-now {
    min-height: 38px;

    padding: 8px 13px;

    border: 1px solid var(--lma-primary);
    border-radius: 6px;

    background: var(--lma-primary);

    color: #ffffff;
    cursor: pointer;

    font-family: inherit;
    font-size: 12px;
    font-weight: 650;

    white-space: nowrap;
}

.lma-book-now:hover {
    border-color: var(--lma-primary-dark);
    background: var(--lma-primary-dark);
}

.lma-table-note {
    margin: 12px 0 0;

    color: #8b94a1;
    font-size: 11px;
}


/* =========================================================
   Deposit
   ========================================================= */

.lma-deposit-box {
    margin: 0;
}

.lma-deposit-box > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 0;

    list-style: none;

    cursor: pointer;
}

.lma-deposit-box > summary::-webkit-details-marker {
    display: none;
}

.lma-deposit-box > summary strong {
    display: block;

    color: var(--lma-text);
    font-size: 18px;
}

.lma-deposit-box > summary span:not(.lma-summary-icon) {
    display: block;
    margin-top: 4px;

    color: var(--lma-muted);
    font-size: 13px;
}

.lma-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    border-radius: 50%;
    background: var(--lma-soft);

    color: var(--lma-primary);
    font-size: 22px;
    line-height: 1;

    transition: transform 0.2s ease;
}

.lma-deposit-box[open] .lma-summary-icon {
    transform: rotate(45deg);
}

.lma-deposit-content {
    padding-top: 24px;
}

.lma-deposit-scroll {
    max-height: 500px;
}


/* =========================================================
   Sticky Sidebar
   ========================================================= */

.lma-course-sidebar {
    min-width: 0;
}

.lma-course-summary {
    position: sticky;
    top: 25px;

    padding: 25px;

    border: 1px solid var(--lma-border);
    border-radius: 13px;
    background: #ffffff;

    box-shadow: 0 8px 25px rgba(18, 38, 63, 0.06);
}

.lma-course-summary h3 {
    margin: 0 0 20px;

    color: var(--lma-text);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.lma-summary-price {
    margin-bottom: 20px;
    padding: 16px;

    border-radius: 9px;
    background: var(--lma-soft);
}

.lma-summary-price span {
    display: block;

    color: var(--lma-muted);
    font-size: 11px;
}

.lma-summary-price strong {
    display: block;
    margin-top: 1px;

    color: var(--lma-primary);
    font-size: 27px;
    line-height: 1.2;
}

.lma-summary-list {
    margin: 0 0 22px !important;
    padding: 0 !important;

    list-style: none !important;
}

.lma-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin: 0;
    padding: 9px 0;

    border-bottom: 1px solid #eef1f4;

    color: #525c68;
    font-size: 13px;
    line-height: 1.45;
}

.lma-summary-list li:last-child {
    border-bottom: 0;
}

.lma-summary-list li span {
    color: #18864b;
    font-weight: 700;
}

.lma-summary-button {
    width: 100%;
}

.lma-summary-help {
    display: block;

    margin-top: 14px;

    color: var(--lma-muted);
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

.lma-summary-help:hover {
    color: var(--lma-primary);
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 980px) {

    .lma-course-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px;

        padding: 28px;
    }

    .lma-course-hero-image img {
        height: 260px;
    }

    .lma-course-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lma-course-fact:nth-child(2) {
        border-right: 0;
    }

    .lma-course-fact:nth-child(-n+2) {
        border-bottom: 1px solid var(--lma-border);
    }

    .lma-course-layout {
        grid-template-columns: 1fr;
    }

    .lma-course-sidebar {
        order: -1;
    }

    .lma-course-summary {
        position: static;

        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px 25px;
        align-items: center;
    }

    .lma-summary-label,
    .lma-course-summary h3,
    .lma-summary-list,
    .lma-summary-help {
        grid-column: 1;
    }

    .lma-summary-price,
    .lma-summary-button {
        grid-column: 2;
    }

    .lma-summary-price {
        grid-row: 1 / 3;
        margin: 0;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {

    .lma-course-container {
        width: min(100% - 28px, 1180px);
    }

    .lma-course-breadcrumb {
        padding-top: 14px;
    }

    .lma-course-hero {
        padding-bottom: 22px;
    }

    .lma-course-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;

        padding: 22px;

        border-radius: 12px;
    }

    .lma-course-hero-content {
        order: 1;
    }

    .lma-course-hero-image {
        order: 2;
    }

    .lma-course-hero h1 {
        font-size: 29px;
    }

    .lma-course-intro {
        font-size: 14px;
    }

    .lma-course-hero-image img {
        height: 205px;
    }

    .lma-course-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .lma-course-btn {
        width: 100%;
    }


    /* Facts */

    .lma-course-facts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lma-course-fact {
        min-height: 78px;
        padding: 16px;
    }

    .lma-course-fact strong {
        font-size: 14px;
    }


    /* Content */

    .lma-course-layout {
        gap: 20px;
        padding-bottom: 45px;
    }

    .lma-course-card {
        margin-bottom: 18px;
        padding: 21px;

        border-radius: 10px;
    }

    .lma-course-content {
        font-size: 14.5px;
    }

    .lma-course-content h2,
    .lma-section-heading h2 {
        font-size: 22px;
    }

    .lma-course-content h3 {
        font-size: 18px;
    }


    /* Sidebar */

    .lma-course-summary {
        display: block;
        padding: 21px;
    }

    .lma-summary-price {
        margin-bottom: 16px;
    }


    /* Mobile Booking Cards */

    .lma-booking-scroll {
        max-height: 650px;
        border: 0;
        border-radius: 0;
    }

    .lma-booking-table,
    .lma-booking-table tbody,
    .lma-booking-table tr,
    .lma-booking-table td {
        display: block;
        width: 100%;
    }

    .lma-booking-table thead {
        display: none;
    }

    .lma-booking-table tr {
        margin-bottom: 13px;

        overflow: hidden;

        border: 1px solid var(--lma-border);
        border-radius: 9px;

        background: #ffffff;
    }

    .lma-booking-table td {
        display: grid;
        grid-template-columns: 95px 1fr;
        gap: 12px;
        align-items: center;

        padding: 11px 13px;

        border-bottom: 1px solid #edf0f3;
    }

    .lma-booking-table td:last-child {
        border-bottom: 0;
    }

    .lma-booking-table td::before {
        content: attr(data-label);

        color: #7b8491;
        font-size: 11px;
        font-weight: 700;
    }

    .lma-booking-controls {
        flex-wrap: wrap;
    }

    .lma-book-now {
        flex: 1;
    }

    .lma-course-date-select {
        min-width: 0;
    }

}

/*****************************Search box css*/
.lma-location-search {
    margin-bottom: 15px;
}

.lma-location-search input {
    width: 100%;
    height: 46px;
    padding: 10px 15px;

    border: 1px solid #d5dce5;
    border-radius: 7px;

    background: #fff;
    color: #20242a;

    font-size: 14px;
    outline: none;
}

.lma-location-search input:focus {
    border-color: var(--lma-primary);
    box-shadow: 0 0 0 3px rgba(8, 102, 179, 0.08);
}

/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 430px) {

    .lma-course-facts-grid {
        grid-template-columns: 1fr;
    }

    .lma-course-fact {
        border-right: 0 !important;
        border-bottom: 1px solid var(--lma-border);
    }

    .lma-course-fact:last-child {
        border-bottom: 0;
    }

    .lma-booking-table td {
        grid-template-columns: 78px 1fr;
    }

}