/* Content-first layouts shared by all five pages and both languages. */
:root { --nav-height: 82px; }
html { scroll-padding-top: calc(var(--nav-height) + 16px); }
body { margin: 0; }
img, svg, iframe { max-width: 100%; }
.row > *, .d-flex > *, .container, .container-fluid { min-width: 0; }
h1, h2, h3, h4, h5, h6, p, a, li, label { overflow-wrap: break-word; }
.btn { white-space: normal; }
.btn-square, .btn-sm-square, .btn-lg-square { flex-shrink: 0; }

/* The menu stays in document flow, reserving the same space when fixed. */
#site-navbar { min-height: var(--nav-height); }
.site-nav { min-height: var(--nav-height); padding: 8px 0; background: #fff; border-bottom: 1px solid #e4ebf5; z-index: 1030; }
.site-nav.sticky-top { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; }
.site-nav > .container { gap: 12px; }
.site-nav .navbar-brand { display: flex; align-items: center; margin-right: 16px; max-width: calc(100% - 72px); }
.site-logo { display: block; width: 164px; height: 64px; object-fit: cover; }
.site-nav .navbar-toggler { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-color: #bfcce1; color: var(--primary); }
.site-nav .nav-link { font-weight: 700; font-size: 16px; color: var(--dark); padding: 12px 10px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--primary); }
.site-nav .nav-link:focus-visible { outline: 3px solid #ebaa32; outline-offset: 2px; border-radius: 4px; }
.nav-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-left: 20px; }
.site-nav .site-language { margin: 0; }
.site-nav .site-language button { min-width: 42px; min-height: 36px; }
.site-nav .navbar-contact { padding: 11px 18px; margin: 0 !important; }
.site-topbar { padding-block: 9px; }
.topbar-contact small { padding-block: 3px; }
.topbar-socials .btn { display: inline-flex; align-items: center; justify-content: center; }

/* Hero text determines the height; images no longer collapse the mobile hero. */
#header-carousel .carousel-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#header-carousel .carousel-caption { position: relative; inset: auto; min-height: clamp(360px, 43vw, 620px); padding: clamp(40px, 6vw, 88px) clamp(40px, 8vw, 120px); }
#header-carousel .carousel-caption > div { width: 100%; padding: 0 !important; }
#header-carousel .carousel-caption h1 { font-size: clamp(1.85rem, 4.4vw, 3.5rem); line-height: 1.15; margin-bottom: 24px !important; }
#header-carousel .carousel-caption h5 { font-size: clamp(.875rem, 1.8vw, 1.3rem); }
#header-carousel .carousel-caption .btn { margin-left: 0 !important; min-height: 44px; }
#header-carousel .carousel-control-prev, #header-carousel .carousel-control-next { width: clamp(36px, 6vw, 72px); }
#header-carousel .carousel-control-prev-icon, #header-carousel .carousel-control-next-icon { width: 2rem; height: 2rem; }
.page-hero { min-height: 0; padding: clamp(48px, 7vw, 88px) 0; margin-bottom: 0; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.15; }
.page-hero-education h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.page-hero-education p { max-width: 760px; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-actions .btn { min-height: 48px; }

/* Avoid the template's doubled vertical spacing and wide mobile gutters. */
#main-content > .container-fluid { padding-block: clamp(28px, 4vw, 48px) !important; }
#main-content > .container-fluid > .container { padding-block: clamp(8px, 2vw, 28px) !important; }
.section-title h1, .section-title h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); line-height: 1.2; }
.facts { margin-top: 0; }
.facts .row > div > .d-flex { min-height: 136px; height: auto !important; }
.facts .row > div > .d-flex > .rounded { flex-shrink: 0; }
.facts .ps-4 { padding-left: 18px !important; }
.feature-image-column { min-height: 350px; }
.feature-image-column > div { min-height: 350px; }
.news-card { padding: clamp(24px, 3vw, 40px) !important; }
.news-card > .d-flex { flex-wrap: wrap; }
.news-card .btn { flex: 1 1 180px; padding-inline: 16px !important; }
.news-card h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.news-card .text-white-50 { color: #e2e8ff !important; }
.service-item { min-height: 360px; height: 100%; padding: 32px 24px 24px; justify-content: flex-start !important; gap: 0; }
.service-item .service-icon { flex-shrink: 0; margin: 12px 0 30px; }
.service-item h4 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.service-item p { margin-bottom: 20px !important; }
.service-item a.btn, .service-item:hover a.btn, .service-item:focus-within a.btn { position: static; opacity: 1; margin: auto 0 0; width: 48px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.testimonial-item > div { padding: 24px !important; }
.testimonial-item > .d-flex { align-items: flex-start !important; gap: 14px; }
.testimonial-item img { width: 52px !important; height: 52px !important; flex-shrink: 0; object-fit: cover; }
.testimonial-item .ps-4 { padding-left: 0 !important; }
.testimonial-item h4 { font-size: 1.15rem; }
.testimonial-item small { display: block; font-size: .75rem; }
.vendor-carousel img { height: 90px; object-fit: contain; }
.contact-item { gap: 16px; }
.contact-item > .bg-primary { width: 48px !important; height: 48px !important; flex-shrink: 0; }
.contact-item > .ps-4 { padding-left: 0 !important; flex: 1; }
.contact-item h4 { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.5; overflow-wrap: anywhere; }
.contact-item h5 { font-size: 1rem; }
[data-page="contact"] iframe { display: block; min-height: 300px !important; }

/* Independent footer columns, without negative margins or logo nowrap rules. */
#site-footer { margin-top: clamp(24px, 4vw, 48px); color: #edf2fc; background: #091e3e; }
.site-footer-main { padding: clamp(32px, 4vw, 56px) 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.footer-grid > * { min-width: 0; }
.footer-callout { padding: clamp(24px, 2.5vw, 32px); background: #0018fd; border-radius: 16px; }
.footer-callout-icon { display: inline-flex; font-size: 24px; margin-bottom: 18px; }
.footer-callout h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.25; color: #fff; margin: 0 0 16px; white-space: normal; }
.footer-callout p { font-size: .95rem; line-height: 1.7; margin: 0 0 24px; }
.footer-callout .btn { min-height: 48px; padding: 12px 18px; max-width: 100%; }
.footer-title { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.35; color: #fff; margin: 0 0 22px; padding-bottom: 14px; position: relative; }
.footer-title::after { content: ''; display: block; position: absolute; bottom: 0; left: 0; width: 56px; height: 3px; border-radius: 2px; background: #6478ff; }
.footer-contact-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.footer-contact-line > i { flex-shrink: 0; color: #a3b0ff; }
.footer-contact-line p { margin: 0; }
.footer-contact-line a { overflow-wrap: anywhere; }
.footer-contact a, .footer-links a, .site-footer-bottom a { color: #edf2fc; text-decoration: none; }
.footer-contact a:hover, .footer-links a:hover, .site-footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-links > a { display: block; width: fit-content; padding-block: 8px; line-height: 1.5; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.footer-socials .btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.footer-qr img { display: block; width: 150px; height: auto; max-width: 100%; background: #fff; }
.site-footer-bottom { padding: 24px 0 96px; background: #061429; border-top: 1px solid #ffffff12; text-align: center; }
.site-footer-bottom p { margin: 0; line-height: 1.7; }

/* Floating controls fit narrow and short viewports without hiding the footer. */
.desusy-assistant { right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--assistant-keyboard-offset, 0px)); }
.assistant-panel { width: min(390px, calc(100vw - 32px)); max-height: calc(var(--assistant-viewport-height, 100dvh) - 112px - env(safe-area-inset-bottom)); }
.assistant-invite { max-width: calc(100vw - 32px); }
.assistant-topic > span { min-width: 0; }
.assistant-topic strong, .assistant-topic small, .assistant-choice { overflow-wrap: anywhere; }
.assistant-whatsapp svg { flex-shrink: 0; }
.assistant-whatsapp span { min-width: 0; }
.back-to-top { left: max(16px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom)); }

@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; } }
@media (min-width: 1200px) {
    .site-nav .navbar-toggler { display: none; }
    .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, .8fr); gap: 32px; }
}
@media (max-width: 1199.98px) {
    .site-nav .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--nav-height) - 16px); overflow-y: auto; padding-inline: max(20px, calc((100% - 936px) / 2)); background: #fff; border-bottom: 1px solid #dfe7f3; box-shadow: 0 12px 20px #091e3e12; }
    .site-nav .navbar-nav { padding-top: 8px; }
    .site-nav .nav-link { padding: 11px 4px; border-bottom: 1px solid #edf1f8; }
    .nav-actions { margin: 16px 0 8px; }
}
@media (max-width: 767.98px) {
    :root { --nav-height: 74px; }
    .site-logo { width: 146px; height: 56px; }
    .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
    .text-justify { text-align: left; }
    .section-title { margin-bottom: 28px !important; }
    .feature-image-column, .feature-image-column > div { min-height: 300px; }
    .service-item { min-height: 0; }
    .service-item a.btn { margin-top: auto; }
    .news-card > .d-flex { flex-direction: column !important; }
    .news-card .btn { flex: 0 0 auto; }
    .contact-details { --bs-gutter-y: 1.5rem; }
    .form-control { font-size: 16px; }
}
@media (max-width: 575.98px) {
    .container, .container-fluid { padding-inline: 20px; }
    #main-content > .container-fluid { padding-inline: 0; }
    .page-hero-education .hero-actions { flex-direction: column; }
    .page-hero-education .hero-actions .btn { width: 100%; }
    .footer-grid { gap: 32px; }
    .footer-callout { padding: 24px; }
    .assistant-launcher { width: 56px; padding: 14px; }
    .assistant-launcher span { display: none; }
    .assistant-header { padding: 14px 10px 14px 16px; }
    .assistant-body { padding: 16px; }
    .assistant-panel { border-radius: 18px; }
}
@media (max-height: 500px) {
    .assistant-panel { bottom: 0; height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); }
    .assistant-launcher.is-open { visibility: hidden; }
    .assistant-header { padding-block: 10px; }
    .assistant-footer { padding-block: 8px; }
}
.desusy-assistant[data-compact="true"] .assistant-panel { bottom: 0; height: calc(var(--assistant-viewport-height, 100dvh) - 32px); max-height: calc(var(--assistant-viewport-height, 100dvh) - 32px); }
.desusy-assistant[data-compact="true"] .assistant-launcher.is-open { visibility: hidden; }
.desusy-assistant[data-compact="true"] .assistant-header { padding-block: 10px; }
.desusy-assistant[data-compact="true"] .assistant-footer { padding-block: 8px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
