/* ==========================================================================
   Mori Capital Management - Theme Override (palette + small additions only)
   Loaded after custom.css. Does NOT introduce new component layouts -
   theme structure (hero, about, services, why-choose, footer) is kept.
   ========================================================================== */

/* ----- Palette override -------------------------------------------------- */
:root {
    --primary-color:           #1B3A5C !important;   /* dark navy for headings / dark sections */
    --secondary-color:         #F5F7FA !important;
    --bg-color:                #FFFFFF !important;
    --text-color:              #5A6B7B !important;
    --accent-color:            #1ABC9C !important;   /* Mori brand teal — CTAs, labels, links */
    --accent-secondary-color:  #122842 !important;   /* deeper navy — sticky header, dark sections */
    --divider-color:           #1B3A5C1A !important;
}

body {
    font-family: 'Inter', 'DM Sans', 'Google Sans', system-ui, sans-serif !important;
}

/* ----- Hero — fit within viewport on laptops --------------------------- */
.hero {
    min-height: clamp(560px, 90vh, 820px) !important;
    padding-top: clamp(120px, 14vh, 160px) !important;
    padding-bottom: clamp(60px, 8vh, 100px) !important;
}
.hero .section-title h1 {
    font-size: clamp(28px, 3.4vw, 44px) !important;
    line-height: 1.12em !important;
    letter-spacing: -0.01em;
}
.hero .section-title-content p {
    font-size: 15.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 18px;
}
.hero .section-row { row-gap: 18px; }

/* ----- Team item — fit longer titles on one line with social icons ------ */
.team-item-content h2 {
    font-size: 20px !important;
    line-height: 1.3em !important;
}
.team-social-list { flex-wrap: nowrap !important; }
.team-social-list p {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    flex: 1 1 auto;
    min-width: 0;
}
.team-social-list ul { flex-shrink: 0; }

/* ----- Logo prominence (header / footer) --------------------------------- */
.main-header .navbar {
    padding: 18px 0 10px !important;
}
.main-header .navbar-brand img {
    height: 110px;
    width: auto;
    max-width: 400px;
}
.main-header .navbar-brand .logo-dark { display: none; }

.header-sticky.fixed-header .navbar-brand img,
.header-sticky.sticky .navbar-brand img,
.header-sticky.active .navbar-brand img {
    height: 84px;
    transition: height .25s ease;
}
.header-sticky.active .navbar { padding: 10px 0 8px !important; }

/* ----- Tighter menu spacing + smaller font ------------------------------- */
.main-menu ul li a {
    font-size: 15px !important;
    padding: 10px 7px !important;
}
.main-menu .nav-menu-wrapper {
    margin: 0 0.5vw !important;
}
.main-menu ul li {
    margin: 0 1px !important;
}
.main-menu ul li.submenu > a:after {
    font-size: 11px !important;
    margin-left: 4px !important;
}

/* ----- Sticky scroll state: WHITE bg + DARK logo + dark nav text --------- */
header.main-header .header-sticky.active {
    background: #fff !important;
    border-bottom: 1px solid var(--divider-color) !important;
    box-shadow: 0 4px 16px rgba(8, 18, 33, .06);
}
header.main-header .header-sticky.active .navbar-brand .logo-light { display: none; }
header.main-header .header-sticky.active .navbar-brand .logo-dark  { display: inline-block; }
header.main-header .header-sticky.active .main-menu ul li a {
    color: var(--primary-color) !important;
}
header.main-header .header-sticky.active .main-menu ul li a:hover,
header.main-header .header-sticky.active .main-menu ul li.active > a {
    color: var(--accent-color) !important;
}
header.main-header .header-sticky.active .main-menu ul li.submenu > a:after {
    color: var(--mori-muted, #7A8B99);
}
/* Submenu dropdown when sticky stays styled normally — fine on white */

@media (max-width: 991px) {
    .main-header .navbar { padding: 14px 0 10px !important; }
    .main-header .navbar-brand img { height: 84px; }

    /* Mobile header: solid teal band (Mori brand) instead of transparent overlay */
    header.main-header {
        position: relative !important;
        top: 0 !important;
    }
    header.main-header .header-sticky {
        background: var(--accent-color) !important;
        border-bottom: 1px solid rgba(0, 0, 0, .06) !important;
    }
    header.main-header .header-sticky.active {
        background: var(--accent-color) !important;
        box-shadow: none !important;
    }
    /* Mobile keeps the light logo (teal bg), no swap */
    header.main-header .header-sticky.active .navbar-brand .logo-light { display: inline-block; }
    header.main-header .header-sticky.active .navbar-brand .logo-dark  { display: none; }
    /* Hamburger toggle visible on teal */
    .main-header .navbar-toggle,
    .main-header .navbar-toggle:before,
    .main-header .navbar-toggle:after,
    .main-header .navbar-toggle span {
        background: #fff !important;
        color: #fff !important;
    }
    .slicknav_btn { background: transparent !important; }
    .slicknav_btn .slicknav_icon-bar { background: #fff !important; }
}
.footer-logo img {
    height: 64px;
    width: auto;
}

/* ----- EN/DE Language Switcher (new small component) -------------------- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    padding: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-left: 14px;
}
.lang-switcher a {
    padding: 4px 12px;
    border-radius: 999px;
    color: rgba(255,255,255,.7) !important;
    transition: all .2s ease;
    text-decoration: none;
}
.lang-switcher a.active {
    background: #fff;
    color: var(--primary-color) !important;
}
.lang-switcher a:hover:not(.active) { color: #fff !important; }

/* ----- MFSA Regulator badge (footer cta-box, between logo and socials) -- */
.footer-cta-box .footer-regulator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.06);
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    color: rgba(255,255,255,.78) !important;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.10);
    transition: all .2s ease;
    white-space: nowrap;
}
.footer-cta-box .footer-regulator i { color: var(--accent-color); }
.footer-cta-box .footer-regulator:hover {
    background: rgba(255,255,255,.10);
    color: #fff !important;
    border-color: var(--accent-color);
}
@media (max-width: 767px) {
    .footer-cta-box .footer-regulator { font-size: 11px; padding: 6px 10px; }
}

/* ----- Regulatory disclaimer (footer) ----------------------------------- */
.footer-disclaimer {
    padding: 24px 0 4px;
    border-top: 1px solid rgba(255,255,255,.10);
    margin-top: 18px;
    font-size: 12px;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
}
.footer-disclaimer strong { color: rgba(255,255,255,.82); font-weight: 600; }

/* ----- Scrollbar / selection consistency ------------------------------- */
::-webkit-scrollbar-track { background-color: var(--primary-color); }
::-webkit-scrollbar { width: 8px; background-color: var(--accent-color); }
::-webkit-scrollbar-thumb { background: var(--accent-color); }
::selection { background-color: var(--accent-color); color: #fff; filter: none; }

/* ==========================================================================
   Cinematic 3D Showcase
   ========================================================================== */
.mori-cinematic {
    position: relative;
    background: linear-gradient(180deg, #0E1F36 0%, #122842 60%, #0E1F36 100%);
    color: #fff;
    padding: 110px 0;
    overflow: hidden;
    isolation: isolate;
}
.mori-cinematic__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.mori-cinematic__grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(rgba(93, 173, 226, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 173, 226, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.mori-cinematic__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
}
.mori-cinematic__glow--a { width: 480px; height: 480px; left: -120px; top: -120px; background: #1ABC9C; }
.mori-cinematic__glow--b { width: 540px; height: 540px; right: -160px; bottom: -180px; background: #2980B9; opacity: .22; }
.mori-cinematic .container { position: relative; z-index: 2; }

.mori-cinematic__copy { padding-right: 30px; }
.mori-cinematic__copy .section-sub-title {
    color: var(--accent-color) !important;
    font-size: 12px !important;
    letter-spacing: 0.18em !important;
}
.mori-cinematic__copy .section-sub-title::before { background: var(--accent-color) !important; }
.mori-cinematic__copy h2 {
    color: #fff !important;
    font-size: clamp(28px, 3.2vw, 40px) !important;
    line-height: 1.15em !important;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}
.mori-cinematic__copy p {
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 26px;
}
.mori-cinematic__cta { margin-bottom: 36px; }
.mori-cinematic__stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 24px 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.mori-cinematic__stats .num {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.mori-cinematic__stats .lbl {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .55);
    font-weight: 500;
}

/* ----- 3D tilt stage ----- */
.mori-cinematic__stage {
    perspective: 1400px;
    position: relative;
}
.mori-cinematic__card {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3.6;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(255,255,255,.06) 0%, rgba(26, 188, 156, .08) 100%);
    border: 1px solid rgba(93, 173, 226, .22);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform-style: preserve-3d;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}
.mori-cinematic__card .tilt-layer {
    position: absolute;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}
.tilt-back {
    inset: 0;
    overflow: hidden;
    border-radius: 16px;
    transform: translateZ(10px);
}
.tilt-back svg { width: 100%; height: 100%; display: block; }

.tilt-mid {
    inset: 22px;
    transform: translateZ(40px);
}
.tilt-chart {
    background: rgba(8, 18, 33, .65);
    border: 1px solid rgba(93, 173, 226, .26);
    border-radius: 12px;
    padding: 18px 20px 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
}
.tilt-chart__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.tilt-chart__head .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
    margin-bottom: 4px;
}
.tilt-chart__head .val {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.tilt-chart__head .up {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(26, 188, 156, .14);
    padding: 3px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}
.tilt-chart__pills {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, .05);
    padding: 3px;
    border-radius: 999px;
}
.tilt-chart__pills .pill {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}
.tilt-chart__pills .pill.active {
    background: var(--accent-color);
    color: #fff;
}
.tilt-chart__svg { flex: 1; min-height: 100px; width: 100%; }
.tilt-chart__foot {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, .45);
    margin-top: 4px;
}

/* Floating chips */
.tilt-chip {
    background: rgba(8, 18, 33, .9);
    border: 1px solid rgba(93, 173, 226, .26);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    min-width: 200px;
}
.tilt-chip i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(26, 188, 156, .18);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.tilt-chip .chip-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
    margin-bottom: 2px;
}
.tilt-chip .chip-val {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.tilt-chip--ccy { top: -22px; left: 32px; transform: translateZ(75px); }
.tilt-chip--perf { right: -22px; top: 32%; transform: translateZ(95px); }
.tilt-chip--aum { bottom: -22px; right: 30px; transform: translateZ(80px); }

@media (max-width: 991px) {
    .mori-cinematic { padding: 70px 0; }
    .mori-cinematic__copy { padding-right: 0; margin-bottom: 50px; }
    .mori-cinematic__card { aspect-ratio: 5 / 3.4; }
    .tilt-chip { min-width: 170px; padding: 10px 12px; }
    .tilt-chip--ccy { top: -16px; left: 16px; }
    .tilt-chip--perf { right: -10px; top: 28%; }
    .tilt-chip--aum { bottom: -16px; right: 16px; }
}
@media (max-width: 600px) {
    .mori-cinematic__stats { grid-template-columns: 1fr 1fr; gap: 18px; }
    .tilt-chip--perf { display: none; }
    .tilt-chip { min-width: auto; }
    .tilt-chart__head .val { font-size: 18px; }
}

/* ==========================================================================
   Demo-mode toast (shown when a sub-page link is clicked)
   ========================================================================== */
.mori-demo-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -120%);
    background: var(--primary-color);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 11000;
    box-shadow: 0 16px 40px rgba(8, 18, 33, .3);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
}
.mori-demo-toast i { color: var(--accent-color); font-size: 12px; }
.mori-demo-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* ==========================================================================
   Investor Gate Modal (first-visit disclaimer)
   ========================================================================== */
.mori-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(8, 18, 33, .82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.mori-gate.show { opacity: 1; visibility: visible; }
.mori-gate__panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(8, 18, 33, .35);
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 36px 36px 28px;
    transform: translateY(16px);
    transition: transform .3s ease;
}
.mori-gate.show .mori-gate__panel { transform: translateY(0); }
.mori-gate__logo {
    display: block;
    height: 52px;
    margin: 0 auto 22px;
}
.mori-gate__eyebrow {
    text-align: center;
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.mori-gate__title {
    text-align: center;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px;
}
.mori-gate__intro {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
    text-align: left;
}
.mori-gate__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 8px;
    background: #F5F7FA;
    border: 1px solid var(--divider-color);
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 12px;
}
.mori-gate__check input {
    margin-top: 3px;
    accent-color: var(--accent-color);
    flex-shrink: 0;
}
.mori-gate__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.mori-gate__btn {
    padding: 13px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
    text-align: center;
    line-height: 1.2;
}
.mori-gate__btn--primary {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.mori-gate__btn--primary:hover { background: var(--accent-secondary-color); border-color: var(--accent-secondary-color); }
.mori-gate__btn--primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.mori-gate__btn--secondary {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--divider-color);
}
.mori-gate__btn--secondary:hover { background: #F5F7FA; border-color: var(--primary-color); }
.mori-gate__decline {
    display: block;
    margin: 14px auto 0;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    text-align: center;
}
.mori-gate__decline:hover { color: var(--primary-color); }
.mori-gate__msg-decline {
    background: #FFF6E0;
    border: 1px solid #F5C76A;
    color: #6F4F00;
    padding: 16px 18px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 14px;
    display: none;
}
.mori-gate.declined .mori-gate__msg-decline { display: block; }
.mori-gate.declined .mori-gate__buttons,
.mori-gate.declined .mori-gate__decline,
.mori-gate.declined .mori-gate__check { display: none; }
@media (max-width: 480px) {
    .mori-gate__panel { padding: 26px 22px 22px; }
    .mori-gate__title { font-size: 19px; }
    .mori-gate__buttons { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.mori-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 720px;
    margin: 0 auto;
    z-index: 9000;
    background: var(--accent-secondary-color);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    padding: 18px 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    transform: translateY(140%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    flex-wrap: wrap;
}
.mori-cookie.show { transform: translateY(0); }
.mori-cookie__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(26, 188, 156, .18);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.mori-cookie__text {
    flex: 1;
    min-width: 240px;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
}
.mori-cookie__text a {
    color: #fff;
    text-decoration: underline;
}
.mori-cookie__text a:hover { color: var(--accent-color); }
.mori-cookie__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.mori-cookie__btn {
    padding: 9px 16px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.mori-cookie__btn--accept {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.mori-cookie__btn--accept:hover { background: #16A085; border-color: #16A085; }
.mori-cookie__btn--decline {
    background: transparent;
    color: rgba(255, 255, 255, .85);
    border-color: rgba(255, 255, 255, .25);
}
.mori-cookie__btn--decline:hover { background: rgba(255, 255, 255, .08); color: #fff; }
@media (max-width: 600px) {
    .mori-cookie { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
    .mori-cookie__actions { justify-content: stretch; }
    .mori-cookie__btn { flex: 1; }
    .mori-cookie__icon { display: none; }
}

/* ==========================================================================
   Latest Insights / Views
   ========================================================================== */
.mori-insights .insight-card {
    background: #fff;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    text-decoration: none;
}
.mori-insights .insight-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 18px 40px rgba(27, 58, 92, .12);
}
.mori-insights .insight-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--accent-color);
}
.mori-insights .insight-meta .date { color: var(--text-color); font-weight: 500; letter-spacing: 0.05em; text-transform: none; }
.mori-insights .insight-card h3 {
    font-size: 19px;
    line-height: 1.35;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}
.mori-insights .insight-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-color);
    margin: 0;
    flex: 1;
}
.mori-insights .insight-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ----- Tablet & below (<= 1199px) --------------------------------------- */
@media (max-width: 1199px) {
    .hero { min-height: 720px !important; }

    /* Awards rating-bodies strip — 2-column wrap on tablet */
    .rating-bodies { padding: 22px 24px !important; }
    .rating-bodies > div:last-child {
        gap: 18px 28px !important;
    }
    .team-item-content h2 { font-size: 18px !important; }
    .team-social-list p { font-size: 12px !important; }
}

/* ----- Tablet (<= 991px) ------------------------------------------------ */
@media (max-width: 991px) {
    .hero { min-height: 600px !important; padding: 100px 0 70px !important; }
    .hero .section-title h1 {
        font-size: 36px !important;
        line-height: 1.15em !important;
    }
    .hero .section-title-content p { font-size: 16px !important; }

    .about-us .section-title h2,
    .our-services .section-title h2,
    .why-choose-us .section-title h2,
    .our-awards .section-title h2,
    .page-team .section-title h2 {
        font-size: 28px !important;
        line-height: 1.2em !important;
    }

    .our-awards { padding: 56px 0 !important; }
    .page-team { padding: 56px 0 !important; }

    /* Awards rating-bodies strip — stack into rows of 2 on tablet */
    .rating-bodies {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }
    .rating-bodies > div:last-child {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px 20px !important;
        width: 100%;
    }

    /* About body image hides bulky overlay decoration on small screens */
    .about-us .about-us-image-box-2 { display: none; }
}

/* ----- Mobile (<= 767px) ------------------------------------------------ */
@media (max-width: 767px) {
    /* Topbar — reduce clutter on phone */
    .topbar { font-size: 12px; padding: 8px 0; }
    .topbar .topbar-contact-info p {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .topbar .topbar-contact-info p i { display: none; }
    .topbar .topbar-contact-info-list,
    .topbar .topbar-social-links { display: none !important; }
    .topbar-link-box { justify-content: flex-end !important; }
    .lang-switcher { margin-left: 0; }

    /* Hide the long contact info on phones, just show email */
    .topbar .topbar-contact-info p span { display: none !important; }
    .topbar .topbar-contact-info p a[href^="tel:"] { display: none; }

    /* Header / nav */
    .main-header .navbar-brand img { height: 44px; max-width: 200px; }
    .header-btn { display: none !important; }

    /* Hero — tighter on phone */
    .hero { min-height: 540px !important; padding: 80px 0 60px !important; }
    .hero .section-title h1 {
        font-size: 28px !important;
        line-height: 1.2em !important;
    }
    .hero .section-title .section-sub-title {
        font-size: 11px !important;
        letter-spacing: 0.16em !important;
    }
    .hero .section-content-btn { margin-top: 18px !important; }

    /* Section titles & body */
    .about-us,
    .our-services,
    .why-choose-us,
    .our-awards,
    .page-team {
        padding: 48px 0 !important;
    }
    .about-us .section-title h2,
    .our-services .section-title h2,
    .why-choose-us .section-title h2,
    .our-awards .section-title h2,
    .page-team .section-title h2 {
        font-size: 24px !important;
    }
    .section-title .section-sub-title {
        font-size: 11px !important;
    }
    .section-content-btn { margin-top: 16px !important; }

    /* Awards rating-bodies — single column on phone */
    .rating-bodies > div:last-child {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px 16px !important;
    }
    .rating-bodies > div:last-child > div { font-size: 11px !important; }
    .rating-bodies > div:last-child strong { font-size: 13px !important; }

    /* Awards cards — tighter padding */
    .award-item { padding: 22px !important; }
    .award-item h3 { font-size: 16px !important; }

    /* Team — single column on phone is bootstrap default for col-md-6 */
    .team-item-content h2 { font-size: 19px !important; }

    /* Funds — tighter spacing */
    .service-item-content h2 { font-size: 20px !important; }

    /* Footer */
    .main-footer.dark-section { padding: 48px 0 0 !important; }
    .footer-cta-box {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 18px !important;
    }
    .footer-disclaimer { font-size: 11px !important; }

    /* Why-choose CTA box smaller on phone */
    .why-choose-cta-box h3 { font-size: 14px !important; }
}

/* ----- Small mobile (<= 480px) ------------------------------------------ */
@media (max-width: 480px) {
    .container { padding-left: 16px; padding-right: 16px; }

    .hero .section-title h1 { font-size: 24px !important; }
    .hero .section-content-btn .section-btn .btn-default {
        width: 100%;
        justify-content: center;
    }

    .topbar .topbar-contact-info { display: none !important; }
    .topbar .container { justify-content: flex-end !important; }

    /* Awards rating-bodies — single col on tiny phones */
    .rating-bodies > div:last-child {
        grid-template-columns: 1fr !important;
    }
}

/* ----- Reduce motion: disable transforms / heavy animations ------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
