/* Developed by Daffodil Software Ltd | www.daffodilsoft.com | Developer Md Abir Hassan */
/* ==========================================================================
   ICC Bangladesh - Laptop / Small Desktop Responsive Layer
   Target: 1366x768 monitors (real browser viewport ~1366x650) and the
   whole 992px - 1440px "laptop" band (1280x720, 1366x768, 1440x900).

   Plain CSS served from /public - NO build step (npm/vite) is required.
   Upload this file + layouts/app.blade.php and it works immediately.
   ========================================================================== */

:root {
    --icc-header-h: 97px;            /* synced at runtime by app.blade.php JS */
}

/* --------------------------------------------------------------------------
   0. GLOBAL FIXES (all screen sizes)
   -------------------------------------------------------------------------- */

/* Main content always starts exactly below the fixed header */
main {
    padding-top: var(--icc-header-h) !important;
}

/* Remove the stray "dot" artefacts under dropdown nav items. They come from
   Bootstrap's caret borders colliding with the theme's underline ::after. */
.navbar .nav-link.dropdown-toggle::after {
    border: 0 !important;
    margin-left: 0 !important;
    vertical-align: initial !important;
}

/* Replace the broken caret with a clean chevron (desktop only) */
@media (min-width: 992px) {
    .navbar .nav-link.dropdown-toggle {
        padding-right: 1.65rem !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23606060' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.55rem center;
        background-size: 10px 10px;
    }
    .navbar .nav-item.dropdown:hover > .nav-link.dropdown-toggle,
    .navbar .nav-link.dropdown-toggle.active {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23007dff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E");
    }
    .navbar .nav-link.dropdown-toggle:hover::after,
    .navbar .nav-item.dropdown:hover > .nav-link::after,
    .navbar .nav-link.active::after {
        width: 70% !important;
    }
    .navbar .nav-link.dropdown-toggle::after {
        left: calc(50% - 0.35rem) !important;
    }
}

/* Brand buttons that were referenced in templates but never defined
   ("Register Now", payment submit, header member-search button) */
.btn-icc,
.btn-icc-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--icc-blue, #007dff);
    color: #fff !important;
    border: 2px solid var(--icc-blue, #007dff);
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.btn-icc-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}
.btn-icc:hover,
.btn-icc-primary:hover {
    background-color: var(--icc-blue-hover, #005bb5);
    border-color: var(--icc-blue-hover, #005bb5);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 125, 255, 0.25);
    transform: translateY(-1px);
}
.btn-icc:focus-visible,
.btn-icc-primary:focus-visible {
    outline: 3px solid rgba(0, 125, 255, 0.35);
    outline-offset: 2px;
}
.btn-icc:disabled,
.btn-icc-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   1. LAPTOP BAND : 992px - 1440px
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1440px) {

    :root {
        --icc-header-h: 78px;
    }

    html {
        scroll-padding-top: calc(var(--icc-header-h) + 12px);
    }

    /* ---------- Header: 118px -> ~78px ---------- */
    .site-header .navbar {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        min-height: 78px;
    }
    .site-header .navbar-brand {
        padding: 0 !important;
        margin-right: 1rem;
    }
    .site-header .navbar-brand img {
        height: 54px !important;
        width: auto;
    }
    .site-header .nav-link {
        font-size: 0.95rem;
        padding: 0.75rem 0.95rem !important;
        letter-spacing: 0.01em;
    }
    .site-header .nav-item.px-lg-1 {
        padding-left: 0.1rem !important;
        padding-right: 0.1rem !important;
    }
    .site-header .cs_search_toggle {
        padding: 0.4rem !important;
    }
    .site-header .cs_search_toggle svg {
        width: 20px;
        height: 20px;
    }

    /* ---------- Mega Menu: fits within a 650px viewport ---------- */
    .navbar .nav-item.dropdown.mega-menu .dropdown-menu {
        padding: 28px 0 !important;
        max-height: calc(100vh - var(--icc-header-h) - 16px);
        overflow-y: auto;
    }
    .mega-menu-title {
        font-size: 1.05rem !important;
        margin-bottom: 1rem !important;
    }
    .mega-menu-list li {
        margin-bottom: 0.35rem !important;
    }
    .mega-menu-list a {
        font-size: 0.9rem !important;
        padding: 0.4rem 0 !important;
    }
    .mega-menu-card {
        padding: 1.5rem 1.75rem !important;
    }
    .mega-menu-card h4 {
        font-size: 1.05rem !important;
        margin-bottom: 0.6rem !important;
    }
    .mega-menu-card p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    /* ---------- Typography scale ---------- */
    h1, .h1 { font-size: 2.25rem; }
    h2, .h2 { font-size: 1.85rem; }
    h3, .h3 { font-size: 1.4rem; }
    h4, .h4 { font-size: 1.2rem; }
    h5, .h5 { font-size: 1.05rem; }

    .display-3 { font-size: 2.75rem !important; }
    .display-4 { font-size: 2.5rem !important; }
    .display-5 { font-size: 2.1rem !important; line-height: 1.2 !important; }
    .display-6 { font-size: 1.75rem !important; line-height: 1.25 !important; }
    .lead      { font-size: 1.1rem !important; }

    /* ---------- Home hero slider: fill exactly one screen ---------- */
    #hero-section .mySwiperHero {
        height: calc(100vh - var(--icc-header-h)) !important;
        height: calc(100dvh - var(--icc-header-h)) !important;
        min-height: 460px !important;
        max-height: 720px !important;
    }
    /* Hero caption: smaller heading + button, placed lower in the slide */
    #hero-section .cs_hero_content_wrapper {
        padding-bottom: 46px !important;           /* was 70px -> caption sits lower */
    }
    #hero-section .cs_hero_title {
        font-size: 1.3rem !important;              /* was 1.8rem */
        font-weight: 600 !important;
        line-height: 1.35 !important;
        letter-spacing: -0.01em !important;
        max-width: 820px;
        margin-bottom: 0 !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75) !important;
    }
    #hero-section .cs_hero_btns {
        margin-top: 0.85rem !important;            /* was 1.5rem */
    }
    #hero-section .btn-hero-explore {
        padding: 7px 18px !important;              /* was 10px 24px */
        font-size: 0.72rem !important;             /* was 0.85rem */
        letter-spacing: 0.08em !important;
        border-width: 1.5px !important;
        border-radius: 4px !important;
    }
    #hero-section .btn-hero-explore svg {
        width: 13px;
        height: 13px;
        margin-left: 0.4rem !important;
    }
    #hero-section .mySwiperHero .swiper-pagination {
        bottom: 16px !important;
    }
    #hero-section .mySwiperHero .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    #hero-section .scroll-mouse-icon {
        bottom: 46px !important;
        transform: scale(0.85);
    }

    /* Home "Introducing ICC Bangladesh" band: 600px+ -> fits one screen */
    #introducing-icc.intro-hero {
        min-height: 480px !important;
        padding: 56px 20px !important;
    }
    #introducing-icc h2 {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }
    #introducing-icc p.mb-5 {
        font-size: 1.05rem !important;
        margin-bottom: 2rem !important;
    }

    /* ---------- Inner page banners (blue title strip) ---------- */
    main > section[style*="background-image"]:first-child {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    main > section[style*="background-image"]:first-child > .container {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    main > section[style*="background-image"]:first-child h1,
    main section h1.display-4 {
        font-size: 2.5rem !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em;
    }
    main > section[style*="background-image"]:first-child p {
        font-size: 1.05rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
    }

    /* ---------- Section rhythm: remove double padding ---------- */
    /* section.py-5 > .container.py-5 was 96px top + 96px bottom */
    section.py-5 > .container.py-5,
    section.py-5 > .container.py-4,
    section.py-5 > .container.py-lg-5 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    .my-5 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
    .mt-5 { margin-top: 2.5rem !important; }
    .mb-5 { margin-bottom: 2.5rem !important; }
    .p-5  { padding: 2.25rem !important; }
    .g-5, .gx-5 { --bs-gutter-x: 2rem; }
    .g-5, .gy-5 { --bs-gutter-y: 2rem; }

    /* ---------- Long-form content (event / news details) ---------- */
    .prose.fs-5,
    .prose .fs-5 {
        font-size: 1.05rem !important;
        line-height: 1.75 !important;
    }
    .event-date-card.sticky-top {
        top: calc(var(--icc-header-h) + 16px) !important;
    }
    .sticky-top[style*="top: 100px"],
    .sticky-top[style*="top:100px"] {
        top: calc(var(--icc-header-h) + 16px) !important;
    }

    /* ---------- Cards ---------- */
    .icc-card-img-top { height: 210px; }
    .icc-card-body,
    .card-body { padding: 1.25rem 1.35rem; }
    .icc-card-title { font-size: 1.1rem; }

    .event-card-standard .img-wrapper {
        height: 240px !important;
    }
    .event-card-standard .p-4 {
        padding: 1.25rem 1.5rem !important;
    }

    /* ---------- Buttons ---------- */
    .btn-icc-outline {
        padding: 9px 20px !important;
        font-size: 0.8rem !important;
    }
    .btn-lg {
        padding: 0.65rem 1.4rem !important;
        font-size: 1rem !important;
    }

    /* ---------- Forms ---------- */
    .form-control,
    .form-select {
        font-size: 0.95rem;
    }
    .form-control-lg,
    .form-select-lg {
        padding: 0.6rem 1rem !important;
        font-size: 1rem !important;
    }

    /* ---------- Floating social bar & back-to-top ---------- */
    .floating-social-bar .social-icon {
        width: 38px !important;
        height: 38px !important;
    }
    .floating-social-bar .social-icon svg {
        width: 17px;
        height: 17px;
    }
    #backToTopBtn {
        width: 42px !important;
        height: 42px !important;
        right: 20px !important;
        bottom: 20px !important;
        padding: 9px !important;
    }

    /* ---------- Footer (compact, balanced 4-column layout) ---------- */
    .site-footer {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .site-footer > .container {
        padding-top: 2.75rem !important;
        padding-bottom: 1.25rem !important;
    }

    /* Columns: brand column + link columns share the full row width evenly
       (previously 4+2+2+2 left an empty gap on the right) */
    .site-footer > .container > .row:first-child {
        --bs-gutter-x: 2.5rem;
        --bs-gutter-y: 1.5rem;
        flex-wrap: nowrap;
        margin-bottom: 1.75rem !important;
    }
    .site-footer > .container > .row:first-child > .col-lg-4 {
        flex: 0 0 34%;
        max-width: 34%;
        padding-right: 3rem !important;
    }
    .site-footer > .container > .row:first-child > .col-lg-2 {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0 !important;
    }

    /* Brand block */
    .site-footer a.d-inline-block.mb-4 {
        margin-bottom: 1rem !important;
    }
    .site-footer img[alt="ICC Bangladesh Logo"] {
        height: 52px !important;
        width: auto;
    }
    .site-footer .col-lg-4 p {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0.45rem !important;
    }
    .site-footer .col-lg-4 p.fw-semibold {
        font-size: 0.95rem !important;
        margin-bottom: 0.3rem !important;
        letter-spacing: 0.01em;
    }
    .site-footer .col-lg-4 p.mb-4 {
        margin-bottom: 0.9rem !important;
        max-width: 320px;
    }

    /* Link columns */
    .footer-heading {
        font-size: 0.8rem !important;
        font-weight: 700;
        letter-spacing: 0.12em !important;
        margin-bottom: 1.1rem !important;
        padding-bottom: 0.6rem;
        position: relative;
    }
    .footer-heading::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 28px;
        height: 2px;
        border-radius: 2px;
        background: var(--icc-blue, #007dff);
    }
    .site-footer ul.gap-3 {
        gap: 0.6rem !important;
        margin-bottom: 0 !important;
    }
    .site-footer li,
    .site-footer li a {
        font-size: 0.875rem !important;
        line-height: 1.45;
    }
    .site-footer li a {
        display: inline-block;
        transition: color 0.2s ease, transform 0.2s ease !important;
    }
    .site-footer li a:hover {
        color: #fff !important;
        transform: translateX(3px);
    }
    .site-footer .col-lg-4 a:hover {
        color: #fff !important;
    }

    /* "Members Login" button */
    .site-footer .btn-icc-outline {
        padding: 7px 18px !important;
        font-size: 0.72rem !important;
        letter-spacing: 0.08em !important;
        margin-top: 1.1rem !important;
        background: transparent !important;
    }
    .site-footer .btn-icc-outline:hover {
        background: var(--icc-blue, #007dff) !important;
        color: #fff !important;
    }

    /* Bottom bar */
    .site-footer > .container > .row:last-child {
        padding-top: 1.1rem !important;
    }
    .site-footer > .container > .row:last-child svg {
        width: 18px;
        height: 18px;
    }
    .site-footer > .container > .row:last-child .gap-4 {
        gap: 1.1rem !important;
    }
    .site-footer > .container > .row:last-child p {
        font-size: 0.8rem !important;
    }
}

/* --------------------------------------------------------------------------
   2. NARROW DESKTOP : 992px - 1199px  (tighter navbar so it never wraps)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .navbar-brand img {
        height: 48px !important;
    }
    .site-header .nav-link {
        font-size: 0.9rem;
        padding: 0.7rem 0.6rem !important;
    }
    .navbar .nav-link.dropdown-toggle {
        padding-right: 1.3rem !important;
        background-position: right 0.3rem center !important;
    }
    .display-4,
    main section h1.display-4 { font-size: 2.2rem !important; }
    .display-5 { font-size: 1.85rem !important; }
}

/* --------------------------------------------------------------------------
   3. SHORT SCREENS (laptops with height <= 720px viewport)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-height: 720px) {
    #hero-section .mySwiperHero {
        min-height: 440px !important;
    }
    .navbar .nav-item.dropdown.mega-menu .dropdown-menu {
        padding: 22px 0 !important;
    }
}
