/* ==========================================================
   ACE DRIVING DUBAI
   SEO / EDITORIAL CONTENT TEMPLATE
   ========================================================== */


.ace-seo-page {
    background: #ffffff;
    color: #080d1d;
}


/* -----------------------------
   WIDTHS
----------------------------- */

.ace-seo-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.ace-seo-wide-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.ace-seo-article {
    width: min(780px, calc(100% - 40px));
    margin: 0 auto;
}


/* -----------------------------
   HERO
----------------------------- */

.ace-seo-hero {
    padding: 48px 0 32px;
}

.ace-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 24px;

    font-size: 14px;
    line-height: 1.4;
    color: #6f7480;
}

.ace-breadcrumb a {
    color: #6f7480;
    text-decoration: none;
}

.ace-breadcrumb a:hover {
    color: #080d1d;
}

.ace-seo-heading {
    max-width: 820px;
}

.ace-seo-heading h1 {
    margin: 0;

    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.035em;

    font-weight: 700;
    color: #080d1d;
}

.ace-seo-lead {
    margin: 20px 0 0;

    max-width: 720px;

    font-size: 19px;
    line-height: 1.65;
    color: #565d69;
}


/* -----------------------------
   HERO IMAGE
----------------------------- */

.ace-seo-media {
    padding-bottom: 56px;
}

.ace-seo-hero-image {
    margin: 0;

    width: 100%;
    overflow: hidden;

    border-radius: 18px;

    background: #f3f4f6;
}

.ace-seo-hero-image img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 620px;

    object-fit: cover;
}


/* -----------------------------
   ARTICLE
----------------------------- */

.ace-seo-content {
    padding: 0 0 70px;
}

.ace-copy {
    font-size: 17px;
    line-height: 1.8;
    color: #343945;
}

.ace-copy p {
    margin: 0 0 24px;
}

.ace-copy .ace-opening-copy {
    font-size: 19px;
    line-height: 1.75;
    color: #202632;
}

.ace-copy h2,
.ace-seo-faq h2 {
    margin: 54px 0 18px;

    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.025em;

    color: #080d1d;
}

.ace-copy a {
    color: #111827;
    font-weight: 600;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* -----------------------------
   ACE QUICK TAKE
----------------------------- */

.ace-quick-take {
    position: relative;

    margin: 0 0 42px;
    padding: 25px 27px 25px 31px;

    border-radius: 14px;

    background: #f1fbf5;
    border: 1px solid #d8f3e2;

    overflow: hidden;
}

.ace-quick-take::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 5px;

    background: #21cf73;
}

.ace-quick-take-label {
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.11em;

    color: #159653;
}

.ace-quick-take-text {
    font-size: 17px;
    line-height: 1.65;

    font-weight: 600;
    color: #15251d;
}


/* -----------------------------
   TOPIC CARDS
----------------------------- */

.ace-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin: 32px 0 44px;
}

.ace-topic-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 100px;

    padding: 18px;

    border-radius: 12px;
    border: 1px solid #e4e6ea;

    background: #ffffff;

    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ace-topic-card:hover {
    transform: translateY(-2px);

    border-color: #c9ccd2;

    box-shadow:
        0 8px 28px rgba(5, 11, 32, 0.07);
}

.ace-topic-title {
    padding-right: 12px;

    font-size: 15px;
    line-height: 1.35;

    font-weight: 650;
    color: #080d1d;
}

.ace-topic-arrow {
    font-size: 20px;
    color: #89909d;
}


/* -----------------------------
   FAQ
----------------------------- */

.ace-seo-faq {
    margin-top: 58px;
}

.ace-seo-faq details {
    border-top: 1px solid #e4e6ea;
}

.ace-seo-faq details:last-child {
    border-bottom: 1px solid #e4e6ea;
}

.ace-seo-faq summary {
    position: relative;

    padding: 22px 35px 22px 0;

    cursor: pointer;

    list-style: none;

    font-size: 17px;
    line-height: 1.5;

    font-weight: 600;
    color: #080d1d;
}

.ace-seo-faq summary::-webkit-details-marker {
    display: none;
}

.ace-seo-faq summary::after {
    content: "+";

    position: absolute;
    right: 4px;
    top: 19px;

    font-size: 24px;
    font-weight: 400;

    color: #777d87;
}

.ace-seo-faq details[open] summary::after {
    content: "−";
}

.ace-seo-faq details p {
    margin: -4px 0 24px;

    padding-right: 30px;

    font-size: 16px;
    line-height: 1.75;

    color: #555c67;
}


/* -----------------------------
   RELATED CONTENT
----------------------------- */

.ace-related-content {
    margin-top: 65px;
    padding-top: 28px;

    border-top: 1px solid #e4e6ea;
}

.ace-section-label {
    margin-bottom: 15px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.11em;

    color: #858b95;
}

.ace-related-links {
    display: flex;
    flex-direction: column;
}

.ace-related-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 17px 0;

    border-bottom: 1px solid #eceef1;

    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    color: #080d1d;
}

.ace-related-links a span {
    font-size: 19px;
    color: #969ba4;
}

.ace-related-links a:hover {
    color: #21a965;
}


/* -----------------------------
   FINAL CTA
----------------------------- */

.ace-seo-cta {
    padding: 0 0 80px;
}

.ace-seo-cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 45px;

    padding: 44px 48px;

    border-radius: 18px;

    background: #050b20;
}

.ace-seo-cta-eyebrow {
    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.11em;

    color: #61df99;
}

.ace-seo-cta-box h2 {
    margin: 0 0 10px;

    font-size: 30px;
    line-height: 1.2;

    color: #ffffff;
}

.ace-seo-cta-box p {
    margin: 0;

    max-width: 600px;

    font-size: 16px;
    line-height: 1.6;

    color: #b7bdc9;
}

.ace-seo-cta-button {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 15px;

    padding: 16px 22px;

    border-radius: 10px;

    background: #25d477;

    color: #07130c !important;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.ace-seo-cta-button:hover {
    transform: translateY(-2px);

    background: #38df87;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .ace-topic-grid {
        grid-template-columns: 1fr;
    }

    .ace-topic-card {
        min-height: auto;
    }

    .ace-seo-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .ace-seo-container,
    .ace-seo-wide-container,
    .ace-seo-article {
        width: calc(100% - 32px);
    }

    .ace-seo-hero {
        padding: 30px 0 24px;
    }

    .ace-breadcrumb {
        margin-bottom: 18px;

        font-size: 13px;
    }

    .ace-seo-heading h1 {
        font-size: 36px;
        line-height: 1.08;
    }

    .ace-seo-lead {
        margin-top: 15px;

        font-size: 16px;
        line-height: 1.6;
    }

    .ace-seo-media {
        padding-bottom: 36px;
    }

    .ace-seo-hero-image {
        border-radius: 12px;
    }

    .ace-seo-hero-image img {
        min-height: 230px;
        object-fit: cover;
    }

    .ace-quick-take {
        margin-bottom: 32px;

        padding: 21px 20px 21px 24px;
    }

    .ace-quick-take-text {
        font-size: 16px;
    }

    .ace-copy {
        font-size: 16px;
        line-height: 1.75;
    }

    .ace-copy .ace-opening-copy {
        font-size: 17px;
        line-height: 1.7;
    }

    .ace-copy h2,
    .ace-seo-faq h2 {
        margin-top: 42px;

        font-size: 25px;
    }

    .ace-topic-grid {
        margin: 25px 0 36px;
    }

    .ace-seo-cta {
        padding-bottom: 50px;
    }

    .ace-seo-cta-box {
        padding: 30px 25px;

        border-radius: 14px;
    }

    .ace-seo-cta-box h2 {
        font-size: 25px;
    }

    .ace-seo-cta-button {
        width: 100%;

        justify-content: space-between;
    }

}