   GOON FINAL MOBILE HERO + COOKIE FIX
   Hero box stays in bottom 2/3. Cookie popup appears in front.
   ========================================================= */

@media (max-width: 767px) {

    :root {
        --gic-header-h: 74px;
        --gic-bottom-bar-h: 78px;
    }

    body {
        padding-bottom: var(--gic-bottom-bar-h) !important;
    }

    /* Header */
    .tgmenu__wrap,
    .tgmenu__nav {
        height: var(--gic-header-h) !important;
        min-height: var(--gic-header-h) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .tgmenu__nav .logo img,
    .logo img {
        max-height: 58px !important;
        width: auto !important;
    }

    /* Full phone hero area */
    .hero-wrapper.hero-1 {
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .hero-slider1,
    .hero-slider1 .swiper-container,
    .hero-slider1 .swiper-wrapper,
    .hero-slider1 .swiper-slide {
        height: calc(100svh - var(--gic-header-h) - var(--gic-bottom-bar-h)) !important;
        min-height: calc(100svh - var(--gic-header-h) - var(--gic-bottom-bar-h)) !important;
        max-height: calc(100svh - var(--gic-header-h) - var(--gic-bottom-bar-h)) !important;
    }

    .hero-slider1 .swiper-slide {
        position: relative !important;
        padding: 0 !important;
        background-size: cover !important;
        background-position: center center !important;
        display: block !important;
        overflow: hidden !important;
    }

    .hero-slider1 .swiper-slide::before {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.14) 34%, rgba(255,255,255,0.74) 100%),
            linear-gradient(90deg, rgba(6,27,73,0.72) 0%, rgba(6,27,73,0.30) 46%, rgba(255,255,255,0.08) 100%) !important;
        pointer-events: none !important;
    }

    /* Force hero content to lower third */
    .hero-slider1 .container {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 18px !important;
        z-index: 3 !important;
        width: 100% !important;
        height: auto !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        margin: 0 auto !important;
    }

    .hero-slider1 .row {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        display: block !important;
    }

    .hero-slider1 .col-lg-6,
    .hero-slider1 [class*="col-"] {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex: 0 0 100% !important;
    }

    /* White hero box: bottom 2/3 position */
    .hero-style1 {
        position: relative !important;
        z-index: 4 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 18px 16px 16px !important;
        border-radius: 22px !important;
        background: rgba(255,255,255,0.97) !important;
        border: 1px solid rgba(229,235,243,0.95) !important;
        box-shadow: 0 12px 28px rgba(15,23,42,0.15) !important;
        text-align: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .hero-style1 *,
    .hero-style1 .sub-title,
    .hero-style1 .hero-title,
    .hero-style1 .title1,
    .hero-style1 h1,
    .hero-style1 .tg-button-wrap,
    .hero-style1 .tg-button-wrap a,
    .hero-style1 .tg-button-wrap .btn {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .hero-style1 .sub-title {
        display: block !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        margin: 0 0 6px 0 !important;
        color: #c99522 !important;
        font-weight: 900 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
    }

    .hero-style1 .hero-title,
    .hero-style1 .title1,
    .hero-style1 h1 {
        display: block !important;
        font-size: 26px !important;
        line-height: 1.06 !important;
        margin: 0 0 12px 0 !important;
        color: #061b49 !important;
        font-weight: 900 !important;
        letter-spacing: -0.03em !important;
        text-align: center !important;
    }

    .hero-style1 p {
        display: none !important;
    }

    .hero-style1 .tg-button-wrap {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .hero-style1 .tg-button-wrap a,
    .hero-style1 .tg-button-wrap .btn {
        display: flex !important;
        width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 15px !important;
        background: #0b2f7f !important;
        border-color: #0b2f7f !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        padding: 10px 14px !important;
        margin: 0 !important;
        text-decoration: none !important;
    }

    .hero-style1 .tg-button-wrap a:nth-child(n+2),
    .hero-style1 .tg-button-wrap .btn:nth-child(n+2) {
        display: none !important;
    }

    /* Bottom Apply / WhatsApp bar */
    .gic-mobile-bottom-cta {
        z-index: 99999 !important;
        min-height: var(--gic-bottom-bar-h) !important;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) !important;
        background: #ffffff !important;
        box-shadow: 0 -8px 24px rgba(15,23,42,0.14) !important;
        border-top: 1px solid #e5ebf3 !important;
    }

    .gic-mobile-bottom-cta a {
        height: 46px !important;
        min-height: 46px !important;
        border-radius: 15px !important;
        font-size: 14px !important;
    }

    /* Scroll-up button above bottom bar */
    .scroll__top,
    .back-to-top {
        bottom: calc(var(--gic-bottom-bar-h) + 16px) !important;
        right: 18px !important;
        width: 42px !important;
        height: 42px !important;
        z-index: 99990 !important;
    }

    /* New cookie popup in front */
    .gic-cookie-front-v2 {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: calc(var(--gic-bottom-bar-h) + 12px) !important;
        z-index: 100001 !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        align-items: center !important;
        gap: 10px !important;
        background: rgba(6,27,73,0.98) !important;
        color: #ffffff !important;
        border-radius: 16px !important;
        padding: 12px !important;
        box-shadow: 0 14px 34px rgba(0,0,0,0.30) !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
    }

    .gic-cookie-front-v2-text {
        color: #ffffff !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin: 0 !important;
    }

    .gic-cookie-front-v2-text a {
        color: #f4d27a !important;
        font-weight: 900 !important;
        text-decoration: underline !important;
    }

    .gic-cookie-front-v2-accept {
        width: auto !important;
        min-width: 76px !important;
        height: 38px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        color: #061b49 !important;
        border: 0 !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        padding: 0 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        cursor: pointer !important;
    }
}

@media (max-width: 390px) {
    .hero-style1 .hero-title,
    .hero-style1 .title1,
    .hero-style1 h1 {
        font-size: 24px !important;
    }

    .hero-style1 .sub-title {
        font-size: 10.5px !important;
    }
}

/* =========================================================
   GOON MOBILE COOKIE CENTER MODAL
   Cookie appears in the middle of the phone screen.
   Website layout stays unchanged.
   ========================================================= */

@media (max-width: 767px) {

    /* Hide old cookie bars/popups if they are detected */
    .gic-cookie-front-v2,
    .gic-cookie-front-layer,
    .gic-cookie-proper,
    .gic-cookie-compact {
        display: none !important;
    }

    .gic-cookie-modal-overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1000000 !important;
        background: rgba(6, 27, 73, 0.42) !important;
        backdrop-filter: blur(3px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 18px !important;
    }

    .gic-cookie-modal-box {
        width: 100% !important;
        max-width: 340px !important;
        background: #ffffff !important;
        border-radius: 22px !important;
        padding: 22px 20px 18px !important;
        box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28) !important;
        border: 1px solid rgba(229, 235, 243, 0.95) !important;
        text-align: center !important;
        animation: gicCookiePopIn 0.22s ease-out !important;
    }

    .gic-cookie-modal-title {
        color: #061b49 !important;
        font-size: 20px !important;
        line-height: 1.2 !important;
        font-weight: 900 !important;
        margin: 0 0 10px 0 !important;
    }

    .gic-cookie-modal-text {
        color: #475467 !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
        margin: 0 0 16px 0 !important;
    }

    .gic-cookie-modal-text a {
        color: #0b2f7f !important;
        font-weight: 900 !important;
        text-decoration: underline !important;
    }

    .gic-cookie-modal-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-top: 12px !important;
    }

    .gic-cookie-modal-actions a,
    .gic-cookie-modal-actions button {
        min-height: 44px !important;
        border-radius: 14px !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        padding: 10px 12px !important;
        margin: 0 !important;
        border: 0 !important;
        cursor: pointer !important;
    }

    .gic-cookie-modal-learn {
        background: #f2f6fb !important;
        color: #061b49 !important;
        border: 1px solid #d8e2ef !important;
    }

    .gic-cookie-modal-accept {
        background: #0b2f7f !important;
        color: #ffffff !important;
    }

    @keyframes gicCookiePopIn {
        from {
            opacity: 0;
            transform: scale(0.94) translateY(8px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
}

/* =========================================================
   GOON CLEAN COOKIE RESET
   Stop old cookie bars. Use one simple center modal only.
   ========================================================= */

@media (max-width: 767px) {

    /* Hide all old cookie experiments */
    .gic-cookie-front-v2,
    .gic-cookie-front-layer,
    .gic-cookie-proper,
    .gic-cookie-compact,
    .gic-cookie-modal-overlay {
        display: none !important;
    }

    /* Keep current hero/mobile layout stable */
    .hero-slider1 .container {
        bottom: 18px !important;
    }

    .hero-style1 {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .hero-style1 *,
    .hero-style1 h1,
    .hero-style1 .hero-title,
    .hero-style1 .title1,
    .hero-style1 .sub-title,
    .hero-style1 .tg-button-wrap,
    .hero-style1 .tg-button-wrap a {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* New clean cookie overlay */
    .gic-clean-cookie-overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 10000000 !important;
        background: rgba(6, 27, 73, 0.45) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px !important;
    }

    .gic-clean-cookie-box {
        width: 100% !important;
        max-width: 340px !important;
        background: #ffffff !important;
        border-radius: 22px !important;
        padding: 22px 20px 18px !important;
        box-shadow: 0 20px 55px rgba(0, 0, 0, 0.30) !important;
        text-align: center !important;
        border: 1px solid #e5ebf3 !important;
    }

    .gic-clean-cookie-title {
        margin: 0 0 10px 0 !important;
        color: #061b49 !important;
        font-size: 20px !important;
        line-height: 1.2 !important;
        font-weight: 900 !important;
    }

    .gic-clean-cookie-text {
        margin: 0 0 18px 0 !important;
        color: #475467 !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .gic-clean-cookie-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .gic-clean-cookie-actions a,
    .gic-clean-cookie-actions button {
        min-height: 44px !important;
        border-radius: 14px !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        border: 0 !important;
        padding: 10px 12px !important;
        margin: 0 !important;
    }

    .gic-clean-cookie-learn {
        background: #f2f6fb !important;
        color: #061b49 !important;
        border: 1px solid #d8e2ef !important;
    }

    .gic-clean-cookie-accept {
        background: #0b2f7f !important;
        color: #ffffff !important;
    }
}

/* GIC PHASE 45D - PageSpeed contrast cleanup */
body.white-bg p,
body.white-bg .box-text,
body.white-bg .counter-card_text,
body.white-bg .counter-card_subtitle,
body.white-bg .team-card .box-text,
body.white-bg .blog__post-meta span,
body.white-bg .blog__post-meta a,
body.white-bg .blog__post-item .link-btn,
body.white-bg .about-wrap2 .cta-link,
body.white-bg .about-wrap2 .cta-link a {
    color: #2f3a3a !important;
}

.gic-whatsapp,
.gic-whatsapp span {
    color: #ffffff !important;
    background-color: #128c4a !important;
}

body.white-bg .counter-card_subtitle {
    font-weight: 700 !important;
}

body.white-bg .blog__post-item .link-btn {
    font-weight: 700 !important;
}

/* GIC PHASE 50C - Fix Lighthouse aspect ratio display warnings */
@media (max-width: 767px) {
    .about-thumb1 img,
    .about-thumb2 img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .header-logo img,
    .mobile-menu .logo img,
    .offCanvas__logo img {
        width: auto !important;
        max-width: 250px !important;
        height: auto !important;
    }
}
