/* ===================================================
   IFICprep Custom Front Page Design
   CSS-only overrides — all Moodle backend logic intact.
   Matches the provided design image exactly.
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- GLOBAL FONT ---- */
body { font-family: 'Inter', sans-serif !important; }

/* ============================================
   HIDE SIDEBARS / DRAWERS / TOGGLES on frontpage
   ============================================ */
.drawer,
.drawer-toggler,
.drawer-left-toggle,
.drawer-right-toggle,
#theme_boost-drawers-courseindex,
#theme_boost-drawers-blocks {
    display: none !important;
}

/* Remove drawer layout offsets so content is full width */
#page.drawers {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
#page.drawers.show-drawer-left,
#page.drawers.show-drawer-right {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hide Moodle full_header on frontpage (the breadcrumb/context header) */
#page-header,
.page-context-header,
#page .main-inner > .d-flex.drawer-toggles {
    display: none !important;
}

/* Make main content full width */
#page-content,
#region-main-box,
#region-main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.main-inner {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ============================================
   HERO / SLIDESHOW
   ============================================ */
.homepage-carousel {
    background: linear-gradient(135deg, #1A1F3B 0%, #2A3166 100%) !important;
    padding: 70px 0 80px !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: auto !important;
    height: auto !important;
    border: none !important;
}

/* Hide default carousel arrows */
.homepage-carousel .prevBtn,
.homepage-carousel .nextBtn,
.homepage-carousel .carousel-control {
    display: none !important;
}

#homepage-carousel {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Slide item as a two-column row */
.homecarousel-slide-item {
    display: block !important;
    opacity: 1 !important;
    position: relative !important;
}

.slide-item.slide-content {
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    gap: 50px;
}

/* Hide the old full-bleed background image */
.slide-main-background {
    position: relative !important;
    width: 45% !important;
    flex-shrink: 0 !important;
    order: 2 !important;
    height: auto !important;
    overflow: visible !important;
}
.slide-main-background img.slide-image {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 14px !important;
    object-fit: cover !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
    display: block !important;
    max-height: 340px !important;
}

/* Text side */
.slide-text.content_overlayer {
    width: 55% !important;
    position: relative !important;
    color: white !important;
    order: 1 !important;
    padding: 0 !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    text-align: left !important;
}

/* Badge above heading */
.slide-text .heading-content {
    position: relative;
}
.slide-text .heading-content::before {
    content: '★  IFIC Mutual Funds Licensing Prep';
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.12);
    color: #f7a528;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}

/* Heading */
.slide-text h1 {
    font-size: 44px !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    color: white !important;
    margin-bottom: 18px !important;
    text-shadow: none !important;
}

/* Description */
.slide-text .heading-content > br {
    display: none !important;
}
.slide-text p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: rgba(255,255,255,0.85) !important;
    max-width: 440px !important;
    margin-bottom: 28px !important;
}

/* CTA button */
.slide-text .link-button {
    margin-bottom: 0 !important;
}
.slide-text .link-button .btn.btn-primary {
    background-color: #f7a528 !important;
    color: #1a1b3a !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(247,165,40,0.3) !important;
    transition: all 0.2s !important;
}
.slide-text .link-button .btn.btn-primary:hover {
    background-color: #e59518 !important;
    transform: translateY(-1px);
}

/* "Why IFICprep" ghost button after CTA */
.slide-text .link-button::after {
    content: 'Why IFICprep';
    display: inline-block;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.3);
    margin-left: 14px;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.2s;
}
.slide-text .link-button::after:hover {
    background: rgba(255,255,255,0.1);
}

/* Feature tags below buttons */
.slide-text .heading-content::after {
    content: '✓ Exam-aligned     ⏱ 6-month access     🏆 Proven results';
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-top: 30px;
    letter-spacing: 0.2px;
}

/* Floating 95% stat badge */
.homepage-carousel::after {
    content: '95%\APass rate';
    white-space: pre;
    position: absolute;
    bottom: 45px;
    right: calc(50% - 550px + 30px);
    background: white;
    color: #1a1b3a;
    font-weight: 800;
    font-size: 18px;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    text-align: center;
    z-index: 10;
}

/* ============================================
   FEATURES / SITE-FEATURES SECTION
   ============================================ */
.site-features {
    background: #f9fafb !important;
    padding: 80px 0 70px !important;
}
.site-features .custom-site-expo .container {
    max-width: 1100px !important;
}

/* Section header */
.site-features .sitefeature-block-title {
    text-align: center !important;
    margin-bottom: 50px !important;
}
.site-features .sitefeature-block-title::before {
    content: 'WHAT YOU GET';
    display: block;
    color: #f7a528;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.site-features .sitefeature-block-title h2 {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #1a1b3a !important;
    margin-bottom: 10px !important;
}
.site-features .sitefeature-block-title h2 b {
    font-weight: 800 !important;
}
.site-features .sitefeature-block-title p {
    color: #666 !important;
    font-size: 15px !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    line-height: 1.65 !important;
}

/* Feature cards */
.site-features .sitebox {
    background: white !important;
    border-radius: 14px !important;
    padding: 32px 26px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    height: 100% !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    margin-bottom: 20px !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
}
.site-features .sitebox:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08) !important;
}

/* Feature icon */
.site-features .site-feature-head {
    margin-bottom: 18px !important;
}
.site-features .site-feature-head .rcthumb {
    width: 50px !important;
    height: 50px !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1a1b3a !important;
    font-size: 20px !important;
    border: none !important;
}
.site-features .site-feature-head .rcthumb i {
    color: #1a1b3a !important;
    font-size: 20px !important;
}

/* Feature title */
.site-features .site-feature-body h6,
.site-features .site-feature-body h6 a {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1b3a !important;
    margin-bottom: 8px !important;
    text-decoration: none !important;
}

/* Feature text */
.site-features .site-feature-body p {
    color: #666 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ============================================
   MARKETING SPOT / FEATURED COURSE
   ============================================ */
.marketing-spot {
    background: white !important;
    padding: 80px 0 !important;
}
.marketing-spot .container {
    max-width: 1100px !important;
}
.marketing-spot .info-block .row {
    align-items: center !important;
}

/* "Featured Course" label */
.marketing-spot .info-head::before {
    content: 'FEATURED COURSE';
    display: block;
    color: #f7a528;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.marketing-spot .info-head h2 {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #1a1b3a !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
}
.marketing-spot .info-head h2 b { font-weight: 800 !important; }
.marketing-spot .info-head p {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

/* Content area (price etc) */
.marketing-spot .info-content p {
    font-size: 16px !important;
    color: #444 !important;
    line-height: 1.6 !important;
}

/* Right column image */
.marketing-spot .info-media {
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
}
.marketing-spot .info-media .media-image {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 14px !important;
}

/* ============================================
   JUMBOTRON / CTA SECTION
   ============================================ */
.jumbotron-block {
    background: #f9fafb !important;
    padding: 70px 20px !important;
    border: none !important;
    margin: 0 !important;
}
.jumbotron-block .container {
    max-width: 1100px !important;
}
.jumbotron-block .inner-wrap {
    background: linear-gradient(135deg, #1A1F3B 0%, #2A3166 100%) !important;
    border-radius: 20px !important;
    padding: 55px 40px !important;
    text-align: center !important;
    color: white !important;
    box-shadow: 0 18px 45px rgba(26,31,59,0.2) !important;
}
.jumbotron-block .desc-wrap h2 {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: white !important;
    margin-bottom: 10px !important;
}
.jumbotron-block .desc-wrap h2 b { font-weight: 800 !important; }
.jumbotron-block .desc-wrap p {
    color: rgba(255,255,255,0.82) !important;
    font-size: 15px !important;
    margin-bottom: 30px !important;
}

/* CTA button */
.jumbotron-block .btn-jumbo {
    background-color: #f7a528 !important;
    color: #1a1b3a !important;
    padding: 13px 34px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(247,165,40,0.3) !important;
    transition: all 0.2s !important;
}
.jumbotron-block .btn-jumbo:hover {
    background-color: #e59518 !important;
    color: #1a1b3a !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* ============================================
   MOODLE MAIN CONTENT AREA (course listings etc)
   ============================================ */
#page-content .container-fluid {
    max-width: 1100px !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .slide-item.slide-content {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .slide-text.content_overlayer {
        width: 100% !important;
        order: 1 !important;
    }
    .slide-main-background {
        width: 100% !important;
        order: 2 !important;
    }
    .slide-text h1 {
        font-size: 32px !important;
    }
    .homepage-carousel {
        padding: 50px 0 60px !important;
    }
    .homepage-carousel::after {
        display: none !important;
    }
    .slide-text .link-button::after {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .slide-text h1 {
        font-size: 28px !important;
    }
    .site-features .sitefeature-block-title h2 {
        font-size: 26px !important;
    }
    .marketing-spot .info-head h2 {
        font-size: 24px !important;
    }
    .jumbotron-block .desc-wrap h2 {
        font-size: 24px !important;
    }
    .jumbotron-block .inner-wrap {
        padding: 40px 20px !important;
    }
}
