/* ===============================
   CRITICAL BASE (PREVENT FONT JUMP)
   =============================== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter',Hanuman, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    margin: 0;
}

/* ===============================
   FONT DEFINITIONS
   =============================== */

/* INTER VARIABLE FONT */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter/Inter-VariableFont.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter/Inter-Italic-VariableFont.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* HANUMAN */
@font-face {
    font-family: 'Hanuman';
    src: url('/fonts/Hanuman-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanuman';
    src: url('/fonts/Hanuman-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanuman';
    src: url('/fonts/Hanuman-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanuman';
    src: url('/fonts/Hanuman-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanuman';
    src: url('/fonts/Hanuman-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanuman';
    src: url('/fonts/Hanuman-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanuman';
    src: url('/fonts/Hanuman-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanuman';
    src: url('/fonts/Hanuman-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanuman';
    src: url('/fonts/Hanuman-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* MOUL */
@font-face {
    font-family: 'Moul';
    src: url('/fonts/Moul-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===============================
   BOOTSTRAP / UI FIXES
   =============================== */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}

.MsoTableGrid {
    width: 100% !important;
}

/* ===============================
   TRANSITIONS & COMPONENTS
   =============================== */

.fr-collapse {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

    .fr-collapse[aria-hidden="false"] {
        opacity: 1;
        height: auto;
    }

    .fr-collapse[aria-hidden="true"] {
        opacity: 0;
        height: 0 !important;
    }

.fr-header__logo img {
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fr-fi-arrow-down-s-line {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.fr-nav__btn[aria-expanded="true"] .fr-fi-arrow-down-s-line {
    transform: rotate(180deg);
}

.fr-nav__btn:after,
.fr-header__brand:after {
    display: none !important;
}

.fr-translate .fr-link {
    cursor: pointer !important;
}

.fr-translate__menu {
    scroll-behavior: smooth;
}

/* ===============================
   LAYOUT HELPERS
   =============================== */

.centered-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 1rem;
}

.fade-text-container {
    max-height: 40px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

    .fade-text-container.expanded {
        max-height: 1000px;
    }

    .fade-text-container::after {
        content: '';
        position: absolute;
        bottom: 0;
        inset-inline: 0;
        height: 0.5rem;
        background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    }

    .fade-text-container.expanded::after {
        opacity: 0;
    }

/* ===============================
   TABS
   =============================== */

.fr-tabs__list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.fr-tabs__tab {
    min-width: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    word-break: break-word;
    cursor: pointer;
}

@media (max-width: 768px) {
    .fr-tabs__list {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .fr-tabs__tab {
        min-width: 100px;
        flex: 0 0 auto;
    }
}

/* ===============================
   UTILITIES
   =============================== */

a.no-underline {
    text-decoration: none !important;
}

.fade-out {
    opacity: 0;
}

/* ===============================
   CSS VARIABLES
   =============================== */

:root {
    --bs-primary: #0055a4;
    --bs-primary-rgb: 0, 85, 164;
    --bs-btn-color: #0055a4;
    --bs-btn-border-color: #0055a4;
    --bs-warning-bg-subtle: #fef6e3;
}
