/* ===============================
   CRITICAL BASE (PREVENT FONT JUMP)
   =============================== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}



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 rgba(var(--fr-purple-rgb), 0.35);
}

.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;
}



/* ===============================
   UTILITIES
   =============================== */

a.no-underline {
    text-decoration: none !important;
}

.fade-out {
    opacity: 0;
}

/* ===============================
   CSS VARIABLES
   =============================== */

:root {
    --fr-yellow: #FCD205;
    --fr-green: #78CA2A;
    --fr-purple: #672290;
    --fr-red: #EE2631;
    --fr-cyan: #00ADEF;
    --fr-dark: #464141;

    --fr-yellow-rgb: 252, 210, 5;
    --fr-green-rgb: 120, 202, 42;
    --fr-purple-rgb: 103, 34, 144;
    --fr-red-rgb: 238, 38, 49;
    --fr-cyan-rgb: 0, 173, 239;
    --fr-dark-rgb: 70, 65, 65;

    --fr-primary: var(--fr-purple);
    --fr-text: var(--fr-dark);
    --fr-text-muted: rgba(var(--fr-dark-rgb), 0.72);
    --fr-border-muted: rgba(var(--fr-dark-rgb), 0.14);
    --fr-surface-muted: rgba(var(--fr-dark-rgb), 0.045);
    --fr-search-bg: var(--fr-dark);
    --fr-search-hover: var(--fr-purple);

    --bs-primary: var(--fr-primary);
    --bs-primary-rgb: var(--fr-purple-rgb);
    --bs-secondary: var(--fr-dark);
    --bs-secondary-rgb: var(--fr-dark-rgb);
    --bs-success: var(--fr-green);
    --bs-success-rgb: var(--fr-green-rgb);
    --bs-info: var(--fr-cyan);
    --bs-info-rgb: var(--fr-cyan-rgb);
    --bs-warning: var(--fr-yellow);
    --bs-warning-rgb: var(--fr-yellow-rgb);
    --bs-danger: var(--fr-red);
    --bs-danger-rgb: var(--fr-red-rgb);
    --bs-dark: var(--fr-dark);
    --bs-dark-rgb: var(--fr-dark-rgb);

    --bs-btn-color: var(--fr-primary);
    --bs-btn-border-color: var(--fr-primary);
    --bs-link-color: var(--fr-primary);
    --bs-link-hover-color: var(--fr-red);
    --bs-warning-bg-subtle: #fff7d1;
}
