/* ============================================================
   ELEGANT DRIVING ACADEMY
   PAGES.CSS

   Inner Pages | Shared Page Headers | FAQ | About | Forms

   Primary Blue: #234084
   Primary Red:  #DC2C1D

   Extracted and consolidated from assets/css/style.css

   IMPORTANT:
   Do not enqueue this file until the CSS migration.
   ============================================================ */


/* ============================================================
   1. GLOBAL INNER PAGE WRAPPER
   ============================================================ */

.eda-global-page-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 140px 8px 0;
    box-sizing: border-box;
}

.eda-global-page-layout *,
.eda-global-page-layout *::before,
.eda-global-page-layout *::after {
    box-sizing: border-box;
}


/* ============================================================
   2. GLOBAL BLUE PAGE HEADER
   Master design: About Us

   Used by migrated inner-page templates.
   ============================================================ */

.eda-global-page-header {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
    overflow: hidden;

    padding: 15px 38px 17px;
    margin: 0 0 24px;

    background: linear-gradient(
        110deg,
        #1d356c,
        #234084
    ) !important;

    border: none;
    border-radius: 14px;
    box-shadow: none;

    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
    text-align: left;
}

.eda-global-page-header *,
.eda-global-page-header *::before,
.eda-global-page-header *::after {
    box-sizing: border-box;
}


/* ============================================================
   3. PAGE HEADER CONTENT
   ============================================================ */

.eda-global-page-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1050px;
}

.eda-global-page-header-eyebrow {
    display: block;
    margin: 0 0 5px;

    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.3;
}

.eda-global-page-header-title {
    color: #ffffff !important;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.15;

    padding: 0;
    margin: 0 0 6px;
    text-align: left;
}

.eda-global-page-header-line {
    display: block;
    width: 58px;
    height: 4px;
    background: #DC2C1D;
    border-radius: 4px;
    margin: 0 0 7px;
}

.eda-global-page-header-description {
    color: #ffffff !important;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    max-width: 1050px;
}


/* ============================================================
   4. DECORATIVE RED CURVE
   ============================================================ */

.eda-global-page-header-decoration {
    position: absolute;
    right: -65px;
    top: -145px;

    width: 270px;
    height: 440px;

    border-left: 13px solid #DC2C1D;
    border-radius: 50%;
    transform: rotate(18deg);

    pointer-events: none;
}


/* ============================================================
   5. LEGACY INNER PAGE IMAGE BANNERS

   Retained for templates that still use #inner-banner.
   These are separate from the new blue page header.
   ============================================================ */

#inner-banner {
    position: relative;
}

.inner-banner-img {
    width: 100%;
    height: 500px;
}

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

.bannerText {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    width: 70%;
    text-align: center;
}

.bannerText h1 {
    font-weight: 700;
    font-size: 60px;
    color: var(--orange);
}


/* ============================================================
   6. ABOUT US PAGE
   ============================================================ */

.about-content {
    position: relative;
}

.about-content p {
    line-height: 1.7;
}

.about-text-content {
    background-image: url(
        "https://zoomwebmedia.ca/clients/elegant-driving/wp-content/themes/elegant_driving/assets/back-img-main.jpg"
    );
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
}

/*
   The original About Us background URL is retained above
   for compatibility. It should be verified during migration
   before replacing or removing it.
*/


/* ============================================================
   7. INNER PAGE FLOATING IMAGES
   ============================================================ */

.img__wrapper {
    float: left;
    width: 480px;
    padding: 5px 20px;
}

.img__wrapper2 {
    float: right;
    width: 480px;
    padding: 5px 20px;
}


/* ============================================================
   8. CONTACT / INNER PAGE FORMS
   ============================================================ */

.form__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;

    width: 60%;
    margin: 20px auto;
}

.nameAndEmail__wrapper__main {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

.labelAndInput__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
    width: 40%;
}

.theLabel {
    font-family: 'AileronRegular';
    font-weight: lighter !important;
    letter-spacing: 1px;
}

.theInput {
    width: 100%;
    background: transparent;
    outline: none;
    border-bottom: 1.5px solid #000000;
    padding: 5px 0;
}

.from__btn {
    font-family: 'AileronRegular';
    font-weight: lighter !important;
    font-size: 25px;
    letter-spacing: 1px;
}

.submit__btn {
    width: 80%;
    margin: 0 auto;
    background-color: #254286 !important;
    padding: 10px 0;

    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #ffffff;

    transition: all 0.3s ease-in-out;
}

.submit__btn:hover {
    border-radius: 30px;
    box-shadow: 1px 1px 3px 2px #80808030;
}


/* ============================================================
   9. FAQ ACCORDION
   ============================================================ */

.accordion-container {
    width: 100%;
    max-width: 100%;
}

.accordion-item {
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    background-color: #254286;
    color: #ffffff;
    padding: 15px;
    font-size: 18px;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;

    display: flex;
    justify-content: space-between;
    align-items: center;

    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #df2c1d;
}

.accordion-content {
    background-color: #FAFAFA;
    overflow: hidden;
    padding: 0 15px;
    max-height: 0;

    transition: max-height 0.3s ease;
}

.accordion-content p {
    margin: 15px 0;
    line-height: 1.5;
}

/* FAQ icon rotation */

.accordion-header .icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .icon,
.accordion-header.active .icon {
    transform: rotate(45deg);
}


/* ============================================================
   10. COMMUNITY RECOGNITION
   ============================================================ */

.recognition-community {
    display: flex;
    justify-content: center;
    align-items: center;
}

.recognition-community img {
    width: 100%;
}


/* ============================================================
   11. TABLET
   768px - 991px
   ============================================================ */

@media (min-width: 768px) and (max-width: 991px) {

    .eda-global-page-layout {
        padding: 110px 20px 0;
    }

    .eda-global-page-header {
        padding: 16px 26px 18px;
    }

}


/* ============================================================
   12. MOBILE PAGE HEADER
   767px and below
   ============================================================ */

@media (max-width: 767px) {

    .eda-global-page-layout {
        padding: 15px 15px 0;
    }

    .eda-global-page-header {
        padding: 17px 20px 19px;
        margin: 0 0 25px;
        border-radius: 11px;
    }

    .eda-global-page-header-content {
        position: relative;
        z-index: 2;
        width: 100%;
    }

    .eda-global-page-header-eyebrow {
        font-size: 9px;
        letter-spacing: 1.3px;
        margin-bottom: 6px;
    }

    .eda-global-page-header-title {
        font-size: 24px;
        line-height: 1.15;
        margin-bottom: 6px;
    }

    .eda-global-page-header-line {
        width: 50px;
        margin-bottom: 8px;
    }

    .eda-global-page-header-description {
        font-size: 12px;
        line-height: 1.5;
        max-width: 90%;
    }

    .eda-global-page-header-decoration {
        right: -140px;
        opacity: 0.7;
    }

}


/* ============================================================
   13. MOBILE INNER PAGE CONTENT
   ============================================================ */

@media (max-width: 768px) {

    .inner-banner-img {
        height: 200px !important;
    }

    .bannerText h1 {
        font-size: 34px;
    }

    .img__wrapper {
        float: none !important;
        width: 90% !important;
        margin: 0 auto;
        padding: 0 !important;
    }

    .img__wrapper2 {
        float: none !important;
        width: 90% !important;
        margin: 0 auto;
        padding: 0 !important;
    }

    .about-content {
        padding: 1rem;
    }

    .about-content p {
        text-align: justify;
    }

}


/* ============================================================
   END OF PAGES.CSS
   First-stage extraction
   ============================================================ */
/* ==================================================
   ELEGANT DRIVING ACADEMY - SCHOOL POLICIES
   ================================================== */

/* MAIN WRAPPER */

.eda-policy {
    --eda-blue: #234084;
    --eda-red: #DC2C1D;
    --eda-light: #f4f7fc;
    color: #333;
    font-family: inherit;
    line-height: 1.75;
}

.eda-policy * {
    box-sizing: border-box;
}

/* COMPACT NAVY HEADER */

.eda-policy .policy-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(120deg, #172f68, #234084);
    border-radius: 12px;
    padding: 16px 30px;
    margin: 0 0 24px;
    color: #fff;
    text-align: left;
}

.eda-policy .policy-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
}

.eda-policy .policy-hero-eyebrow {
    display: block;
    color: #e1e9ff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0 0 5px;
}

.eda-policy .policy-hero h2 {
    color: #fff !important;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
    padding: 0;
    border: none;
}

.eda-policy .policy-hero-line {
    width: 55px;
    height: 4px;
    background: var(--eda-red);
    border-radius: 4px;
}

.eda-policy .policy-hero p {
    display: block;
    width: 100%;
    max-width: none;
    color: #fff !important;
    font-size: 15px;
    line-height: 1.4;
    margin: 8px 0 0;
    text-align: left;
    white-space: nowrap;
}

.eda-policy .policy-hero-decoration {
    position: absolute;
    right: -65px;
    top: -100px;
    width: 220px;
    height: 340px;
    border-left: 12px solid var(--eda-red);
    border-radius: 50%;
    transform: rotate(25deg);
    opacity: 0.9;
    pointer-events: none;
}

/* POLICY NAVIGATION */

.eda-policy .policy-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 25px 0 35px;
}

.eda-policy .policy-nav a {
    display: inline-block;
    padding: 9px 15px;
    border: 1px solid #dce3ef;
    border-radius: 7px;
    background: #fff;
    color: var(--eda-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.eda-policy .policy-nav a:hover {
    background: var(--eda-blue);
    color: #fff;
}

/* POLICY CONTENT CARDS */

.eda-policy .policy-card {
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(25, 48, 85, 0.045);
    scroll-margin-top: 100px;
}

.eda-policy .policy-card h2 {
    color: var(--eda-blue);
    font-size: 24px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf0f6;
}

.eda-policy .policy-card h3 {
    color: var(--eda-blue);
    font-size: 19px;
    margin: 22px 0 12px;
}

.eda-policy p {
    margin: 0 0 14px;
}

.eda-policy ol,
.eda-policy ul {
    padding-left: 24px;
    margin: 10px 0 18px;
}

.eda-policy li {
    margin-bottom: 12px;
    padding-left: 4px;
}

/* POLICY HIGHLIGHT */

.eda-policy .policy-highlight {
    background: #fff5f3;
    border-left: 5px solid var(--eda-red);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 18px 0;
}

.eda-policy .policy-highlight strong {
    color: var(--eda-red);
}

/* TRAINING FEE CARDS */

.eda-policy .fee-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.eda-policy .fee-card {
    background: var(--eda-light);
    border: 1px solid #e1e7f1;
    border-radius: 10px;
    padding: 20px;
}

.eda-policy .fee-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.eda-policy .fee-price {
    color: var(--eda-red);
    font-size: 25px;
    font-weight: 700;
    margin: 8px 0;
}

.eda-policy .fee-card p:last-child {
    margin-bottom: 0;
}

/* FEE TABLE */

.eda-policy .fee-table-wrap {
    overflow-x: auto;
    margin: 18px 0;
}

.eda-policy table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
}

.eda-policy th {
    background: var(--eda-blue);
    color: #fff;
    text-align: left;
    padding: 13px 15px;
}

.eda-policy td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e9f0;
}

.eda-policy tr:nth-child(even) td {
    background: #f5f7fb;
}

/* MOBILE VISUAL STYLING */

@media (max-width: 767px) {

    .eda-policy .policy-hero {
        padding: 16px 20px;
        border-radius: 12px;
    }

    .eda-policy .policy-hero h2 {
        font-size: 22px;
    }

    .eda-policy .policy-hero-eyebrow {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .eda-policy .policy-hero p {
        white-space: normal;
        font-size: 14px;
    }

    .eda-policy .policy-hero-decoration {
        opacity: 0.25;
    }

    .eda-policy .policy-card {
        padding: 19px;
    }

    .eda-policy .policy-card h2 {
        font-size: 21px;
    }

    .eda-policy .fee-grid {
        grid-template-columns: 1fr;
    }

    .eda-policy .policy-nav {
        justify-content: flex-start;
    }
}

/* END - SCHOOL POLICIES */

