/* ============================================
   L3 TEMPLATE PAGE - Inline Styles
   Extracted from l3-template.blade.php
   ============================================ */

/* --- Hover box & sticky breadcrumb --- */
.cn-hover-box:hover .cn-content .height {
    height: 0px;
    display: block;
}

.breadcromb.menu-fixed-cn {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Auto-style first <p> in overview popup (CK Editor data) */
#overview-popup-description > p:first-child {
    background-color: #b7c2e5;
    padding: 5px;
}

/* --- Column cards with FIXED height --- */
.sec-wrap-cod-2 .card-box,
.sec-wrap-cod-2 {
    height: 200px;
    margin-bottom: 0px;
    overflow: hidden;
}

/* --- Testimonials Section Arrow Styles --- */
.testimonials_arrow {
    background-color: #15416e !important;
    color: #ffffff !important;
    margin-top: 150px !important;
}

/* --- Industry Section Arrow Styles --- */
.industry_arrow {
    background-color: #15416e !important;
    color: #ffffff !important;
    margin-top: 240px !important;
}

/* ========== BREAKPOINTS FOR TESTIMONIALS ARROWS ========== */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .testimonials_arrow {
        margin-left: 500px !important;
        margin-right: 500px !important;
    }
}

/* Standard Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .testimonials_arrow {
        margin-left: 480px !important;
        margin-right: 480px !important;
    }
}

/* Small Desktop/Laptop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .testimonials_arrow {
        margin-left: 450px !important;
        margin-right: 450px !important;
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .testimonials_arrow {
        margin-left: 200px !important;
        margin-right: 200px !important;
    }
}

/* ========== BREAKPOINTS FOR INDUSTRY ARROWS ========== */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .industry_arrow {
        margin-left: 500px !important;
        margin-right: 500px !important;
    }
}

/* Standard Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .industry_arrow {
        margin-left: 480px !important;
        margin-right: 480px !important;
    }
}

/* Small Desktop/Laptop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .industry_arrow {
        margin-left: 450px !important;
        margin-right: 450px !important;
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .industry_arrow {
        margin-left: 200px !important;
        margin-right: 200px !important;
    }
}

/* Carousel FOUC guard now lives globally in slider-fouc.css (targets
   the .glider element so every page's gliders are covered). */

/* --- Glide slides --- */
.glide__slides {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition-timing-function: ease-in-out !important;
}

/* --- Swiper styles --- */
.mySwiper {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.mySwiper .swiper-slide {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: transparent;
    transition: transform 0.3s ease;
}

.mySwiper .swiper-slide img {
    width: 100% !important;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Pagination - Industry Swiper */
.industry-swiper .swiper-pagination {
    position: relative;
    bottom: 30px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 8px;
}

/* Pagination - Overview Swiper */
.overview-swiper .swiper-pagination {
    position: relative;
    bottom: 20px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 8px;
}

/* Pagination - Testimonial Swiper */
.testimonial-swiper .swiper-pagination {
    position: relative;
    bottom: 2px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 8px;
}

.mySwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(100, 93, 93, 0.6);
    border-radius: 50%;
    margin: 0 4px !important;
    opacity: 1;
    transition: all 0.3s ease;
}

.mySwiper .swiper-pagination-bullet-active {
    background: #007aff;
    transform: scale(1.3);
}

/* --- CEH Swiper container --- */
.ceh-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ceh-swiper .swiper-pagination {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ceh-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    border-radius: 50%;
    transition: background 0.3s;
}

.ceh-swiper .swiper-pagination-bullet-active {
    background: #007aff;
}

/* Mobile First Approach for CEH Swiper */
@media (max-width: 767px) {
    .ceh-swiper .swiper-pagination {
        margin-top: -100px;
    }
}

@media (max-width: 767px) and (max-height: 700px) {
    .ceh-swiper .swiper-pagination {
        margin-top: -75px;
    }
}

@media (max-width: 767px) and (max-height: 600px) {
    .ceh-swiper .swiper-pagination {
        margin-top: 400px;
    }
}

/* --- Body overflow --- */
body {
    overflow-x: hidden;
}

/* --- Popup box --- */
.background-popup-box {
    background: #eceff9 !important;
}

/* --- Testimonials cover page --- */
.testo-popup-cont-top {
    background-image: url("../images/profile-cover.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 120px;
    border-radius: 10px;
    position: relative;
    padding: 20px;
}

/* Dark overlay */
.testo-popup-cont-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    z-index: 1;
}

/* Profile image overlap */
.testo-popup-cont-top-img {
    position: absolute;
    bottom: -35px;
    left: 20px;
    z-index: 2;
}

.testo-popup-cont-top-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

/* Text outside cover */
.testo-popup-cont-bottom {
    margin-top: 45px;
    padding-left: 20px;
}

.testo-popup-cont-bottom h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.testo-popup-cont-bottom span {
    font-size: 14px;
    color: #666;
}

/* --- Industry box borders --- */
.industry-box a,
.industry-box1 a {
    border: #0a0a0a 1px solid !important;
}

.industry-box p:after {
    background-color: rgb(34, 29, 29) !important;
}

/* --- Global testimonial popup transition --- */
#global-testimonial-popup {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#global-testimonial-popup.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   ENQUIRY POPUP FORM STYLES
   ============================================ */
.enquiry-popup-box {
    max-width: 500px;
}

.enquiry-popup-inner {
    padding: 20px;
}

.enquiry-popup-title {
    margin-bottom: 15px;
    color: #15416e;
    font-size: 22px;
    text-align: center;
}

.enquiry-popup-course {
    text-align: center;
    color: #555;
    margin-bottom: 15px;
    font-size: 14px;
}

.enquiry-popup-fields {
    padding: 0;
}

.enquiry-popup-fields ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enquiry-popup-fields ul li {
    margin-bottom: 10px;
}

.enquiry-popup-fields ul li input[type="text"],
.enquiry-popup-fields ul li textarea,
.enquiry-popup-fields ul li select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.enquiry-popup-fields ul li textarea {
    resize: vertical;
}

/* Phone row */
.eq-phone-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.eq-country-select {
    position: relative;
    flex-shrink: 0;
}

.eq-country-select select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.eq-flag-icon {
    width: 24px;
    height: 16px;
    display: none;
}

.eq-phone-input {
    display: flex;
    align-items: center;
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.eq-dial-code {
    padding: 10px;
    background: #f5f5f5;
    font-size: 14px;
    white-space: nowrap;
}

.eq-phone-input input[type="text"] {
    flex: 1;
    padding: 10px;
    border: none !important;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

/* Error messages */
.eq-error {
    display: none;
    color: red;
    font-size: 12px;
    margin-top: 3px;
}

/* Submit button */
.eq-submit-btn {
    width: 100%;
    padding: 12px;
    background: #15416e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.eq-submit-btn:hover {
    background: #0e2f4f;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .enquiry-popup-box {
        max-width: 95%;
        margin: 10px auto;
    }

    .eq-phone-row {
        flex-direction: column;
        gap: 8px;
    }

    .eq-country-select {
        width: 100%;
    }

    .eq-country-select select {
        width: 100%;
        min-width: unset;
    }

    .eq-phone-input {
        width: 100%;
    }
}

/* ============================================================
   MOBILE — Overview section cards redesign (scoped to
   .overview-swiper so no other .wwyl-box usage is affected).
   Font colours are left untouched — only layout/spacing.
   ============================================================ */
@media (max-width: 767px) {
    /* Section intro paragraph size */
    .cn-title p {
        font-size: 18px !important;
    }

    /* Accordion panel content — keep paragraphs and bullet lists the
       same 18px so the text size is consistent on mobile. */
    .acc__panel p,
    .acc__panel li,
    .acc__panel ul li,
    .acc__panel ol li,
    .acc__panel .red-title p,
    .acc__panel .red-title li {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }

    /* Let the card size to its content — drop the fixed 500px and force
       every swiper layer to shrink-to-content so the card can never be
       stretched to a tall empty box (works even if autoHeight doesn't). */
    .overview-swiper.mySwiper {
        height: auto !important;
        padding: 10px 8px 4px !important;
    }
    .overview-swiper .swiper-wrapper {
        height: auto !important;
        align-items: flex-start !important;
    }
    .overview-swiper .swiper-slide {
        height: auto !important;
    }
    .overview-swiper .wwyl-box {
        height: auto !important;
    }

    /* The card — modern look, NO font-colour changes */
    .overview-swiper .wwyl-box {
        position: relative;
        background: #ffffff !important;
        border: 1px solid #eef2f7 !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 30px rgba(21, 65, 110, 0.12) !important;
        padding: 24px 22px 22px !important;
        margin: 22px 8px 6px !important;   /* top space lets the badge overhang */
    }

    /* Number badge — centered on the top edge of the card */
    .overview-swiper .wwyl-box-circle {
        top: -23px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 46px !important;
        height: 46px !important;
        line-height: 46px !important;
        border-radius: 50% !important;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20) !important;
    }
    .overview-swiper .wwyl-box-circle span {
        font-size: 18px !important;
    }

    /* Body text — spacing only, colour left as-is */
    .overview-swiper .wwyl-box p {
        font-size: 16px !important;
        line-height: 1.7 !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
    }
    .overview-swiper .wwyl-box p:last-of-type { margin-bottom: 4px !important; }

    /* Read More — keep its default colour, just tidy it up */
    .overview-swiper .read-more-btn {
        display: inline-block;
        margin-top: 4px;
        padding: 0 !important;
        font-weight: 600;
        font-size: 13.5px;
        text-decoration: none !important;
    }

    /* Pagination dots — sit cleanly below the card */
    .overview-swiper .swiper-pagination {
        position: relative !important;
        bottom: auto !important;
        margin-top: 14px;
    }
}
