/**
 * ============================================================================
 * WE SEKSARIANS — GLOBAL DESIGN SYSTEM
 * ============================================================================
 *
 * FILE:        assets/css/main.css
 * PRODUCT:     We Seksarians Community Portal
 * ORGANISATION: AIAlchemyHub
 * AUTHOR:      Satya Prakash Nigam
 * COPYRIGHT:   Copyright (c) 2026 AIAlchemyHub. All Rights Reserved.
 *
 * PURPOSE:
 * Global design tokens, typography, layout, reusable components,
 * navigation, footer, accessibility and responsive foundations.
 *
 * HOMEPAGE STYLES:
 * Loaded separately through assets/css/index.css
 *
 * FRAMEWORK:
 * Bootstrap 5.3.3
 *
 * ============================================================================
 */


/* ============================================================================
   01. DESIGN TOKENS
   ============================================================================ */

:root {

    /* Brand */
    --brand-primary: #710d1c;
    --brand-primary-dark: #490815;
    --brand-primary-deep: #30050d;
    --brand-primary-light: #9b2435;

    --brand-gold: #e5b94f;
    --brand-gold-light: #f6d987;
    --brand-gold-dark: #b88a25;

    /* Backgrounds */
    --surface-page: #f7f8fa;
    --surface-primary: #ffffff;
    --surface-secondary: #f1f3f6;
    --surface-dark: #17202c;
    --surface-dark-soft: #202b39;

    /* Text */
    --text-primary: #202938;
    --text-secondary: #526071;
    --text-muted: #778395;
    --text-light: #f8fafc;

    /* Borders */
    --border-color: #e1e5eb;
    --border-strong: #cbd2dc;
    --border-dark: rgba(255,255,255,0.14);

    /* Status */
    --color-success: #198754;
    --color-warning: #b7791f;
    --color-danger: #dc3545;
    --color-info: #0d6efd;

    /* Typography */
    --font-heading:
        "Plus Jakarta Sans",
        "Segoe UI",
        Arial,
        sans-serif;

    --font-body:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 82px;
    --utility-height: 38px;

    /* Spacing */
    --section-space: 88px;
    --section-space-sm: 60px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-xs: 0 2px 8px rgba(20,30,45,0.05);
    --shadow-sm: 0 5px 16px rgba(20,30,45,0.07);
    --shadow-md: 0 12px 30px rgba(20,30,45,0.10);
    --shadow-lg: 0 20px 48px rgba(20,30,45,0.15);

    /* Motion */
    --transition-fast: 180ms ease;
    --transition-normal: 280ms ease;

    /* Focus */
    --focus-ring:
        0 0 0 3px rgba(229,185,79,0.45);
}


/* ============================================================================
   02. GLOBAL RESET
   ============================================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;

    color: var(--text-primary);
    background: var(--surface-page);

    overflow-x: clip;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
}

a:hover {
    color: var(--brand-primary-light);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    font-family: var(--font-heading);
    font-weight: 750;
    line-height: 1.25;

    color: var(--text-primary);
}

ul,
ol {
    padding-left: 1.25rem;
}

::selection {
    color: #ffffff;
    background: var(--brand-primary);
}


/* ============================================================================
   03. ACCESSIBILITY
   ============================================================================ */

:focus-visible {
    outline: 3px solid var(--brand-gold);
    outline-offset: 3px;
    box-shadow: var(--focus-ring);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100000;

    padding: 12px 18px;

    color: #ffffff;
    background: var(--brand-primary);

    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 12px;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* ============================================================================
   04. GLOBAL LAYOUT
   ============================================================================ */

.container {
    width: 100%;
    max-width: var(--container-width);
}

main {
    display: block;
    min-height: 50vh;
}

.main-content {
    padding-top: 30px;
    padding-bottom: 60px;
}

.page-container {
    width: min(100% - 32px, var(--container-width));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: var(--section-space);
}

.section-sm {
    padding-block: var(--section-space-sm);
}

.section-light {
    background: var(--surface-page);
}

.section-white {
    background: var(--surface-primary);
}

.section-dark {
    color: var(--text-light);
    background: var(--surface-dark);
}


/* ============================================================================
   05. TYPOGRAPHY UTILITIES
   ============================================================================ */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 16px;

    color: var(--brand-primary);
    font-size: 0.76rem;
    font-weight: 800;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: var(--brand-gold-light);
}

.section-heading {
    margin-bottom: 18px;

    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: -0.035em;
}

.section-heading span {
    color: var(--brand-primary);
}

.section-heading--light {
    color: #ffffff;
}

.section-heading--light span {
    color: var(--brand-gold-light);
}

.section-lead {
    max-width: 760px;

    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
}

.section-lead--light {
    color: rgba(255,255,255,0.76);
}

.section-copy {
    color: var(--text-secondary);
    line-height: 1.9;
}

.section-header {
    max-width: 820px;
    margin-inline: auto;
    margin-bottom: 48px;
    text-align: center;
}

.text-brand {
    color: var(--brand-primary) !important;
}

.text-gold {
    color: var(--brand-gold) !important;
}

.text-muted-custom {
    color: var(--text-muted) !important;
}


/* ============================================================================
   06. BRAND BUTTONS
   ============================================================================ */

.btn {
    font-family: var(--font-body);
    font-weight: 650;
    transition:
        color var(--transition-normal),
        background-color var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        transform var(--transition-normal);
}

.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    color: #ffffff !important;
    background: var(--brand-primary);

    border: 1px solid var(--brand-primary);
    border-radius: var(--radius-pill);

    box-shadow: 0 5px 14px rgba(113,13,28,0.16);
}

.btn-brand:hover {
    color: #ffffff !important;
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);

    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(113,13,28,0.24);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    color: #2b1b05 !important;
    background: var(--brand-gold);

    border: 1px solid var(--brand-gold);
    border-radius: var(--radius-pill);

    font-weight: 750;
}

.btn-gold:hover {
    color: #2b1b05 !important;
    background: var(--brand-gold-light);
    border-color: var(--brand-gold-light);

    transform: translateY(-2px);
}

.btn-outline-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 22px;

    color: var(--brand-primary);
    background: transparent;

    border: 1px solid var(--brand-primary);
    border-radius: var(--radius-pill);
}

.btn-outline-brand:hover {
    color: #ffffff;
    background: var(--brand-primary);
}

.btn-outline-light {
    border-radius: var(--radius-pill);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}


/* ============================================================================
   07. SHARED LINKS
   ============================================================================ */

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--brand-primary);
    font-weight: 750;
}

.text-link:hover {
    color: var(--brand-primary-light);
}

.text-link i {
    transition: transform var(--transition-fast);
}

.text-link:hover i {
    transform: translateX(4px);
}


/* ============================================================================
   08. SHARED CARDS
   ============================================================================ */

.card,
.content-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.content-card {
    padding: 24px;
}

.card-hover {
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
}

.card-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(113,13,28,0.28);
    box-shadow: var(--shadow-md);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    color: var(--brand-primary);
    background: rgba(113,13,28,0.08);

    border-radius: 15px;
    font-size: 1.45rem;
}

.card-title {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 750;
}

.card-description {
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.8;
}


/* ============================================================================
   09. BADGES
   ============================================================================ */

.badge-brand {
    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    color: var(--brand-primary);
    background: rgba(113,13,28,0.08);

    border: 1px solid rgba(113,13,28,0.12);
    border-radius: var(--radius-pill);

    font-size: 0.75rem;
    font-weight: 750;
}

.badge-gold {
    color: #4d3709;
    background: var(--brand-gold-light);
}


/* ============================================================================
   10. GLOBAL HEADER AND NAVIGATION
   ============================================================================ */

.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1030;

    width: 100%;

    background: var(--brand-primary-deep);
    box-shadow: 0 5px 20px rgba(0,0,0,0.13);
}

.utility-bar {
    min-height: var(--utility-height);

    display: flex;
    align-items: center;

    padding-block: 5px;

    color: rgba(255,255,255,0.78);
    background: var(--brand-primary-deep);

    border-bottom: 1px solid var(--border-dark);

    font-size: 0.76rem;

    transition:
        height var(--transition-normal),
        min-height var(--transition-normal),
        opacity var(--transition-normal),
        padding var(--transition-normal);
}

.utility-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.utility-bar__group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.utility-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.utility-bar__item i {
    color: var(--brand-gold);
}

.utility-bar__value {
    color: #ffffff;
    font-weight: 600;
}

.utility-bar__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    color: rgba(255,255,255,0.72);

    border-radius: 50%;

    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.social-icon:hover {
    color: var(--brand-gold-light);
    background: rgba(255,255,255,0.10);
    transform: translateY(-2px);
}

.header {
    position: relative;

    min-height: var(--header-height);

    display: flex;
    align-items: center;

    color: #ffffff;

    background:
        linear-gradient(
            110deg,
            var(--brand-primary) 0%,
            var(--brand-primary-dark) 100%
        );

    border-bottom: 3px solid var(--brand-gold-dark);

    transition: min-height var(--transition-normal);
}

.header__inner {
    min-height: inherit;
}

body.scrolled .utility-bar {
    min-height: 0;
    height: 0;
    padding-block: 0;
    opacity: 0;
    overflow: hidden;
    border: 0;
    pointer-events: none;
}

body.scrolled .header {
    min-height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    min-width: 0;

    color: #ffffff;
}

.logo:hover {
    color: #ffffff;
}

.logo img,
.topnav-logo-img {
    width: 48px;
    height: 48px;

    object-fit: contain;

    padding: 3px;

    background: #ffffff;
    border-radius: 9px;
}

.logo__title {
    margin: 0;

    color: #ffffff;

    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
}

.logo__tagline {
    display: block;
    margin-top: 3px;

    color: var(--brand-gold-light);

    font-size: 0.68rem;
    font-weight: 550;
    letter-spacing: 0.025em;
}

.navmenu {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.navmenu ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navmenu li {
    position: relative;
}

.navmenu a:not(.dropdown-item) {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 10px 12px;

    color: rgba(255,255,255,0.86);

    border-radius: var(--radius-sm);

    font-size: 0.86rem;
    font-weight: 650;

    white-space: nowrap;
}

.navmenu a:not(.dropdown-item):hover,
.navmenu a.active {
    color: #ffffff;
    background: rgba(255,255,255,0.12);
}

.navmenu .dropdown-menu {
    min-width: 220px;

    padding: 8px;

    background: #ffffff;

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-lg);
}

.navmenu .dropdown-menu a {
    display: block;

    padding: 10px 12px;

    color: var(--text-primary) !important;

    border-radius: 7px;

    font-size: 0.88rem;
}

.navmenu .dropdown-menu a:hover {
    color: var(--brand-primary) !important;
    background: var(--surface-secondary);
}

.navmenu .dropdown-divider {
    margin: 5px 0;
}

.navmenu .mobile-nav-toggle {
    display: none;
    border: 0;
    background: transparent;
}

.topnav-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 19px;

    color: var(--brand-primary-dark);

    background: var(--brand-gold-light);
    border: 1px solid var(--brand-gold-light);
    border-radius: var(--radius-pill);

    font-size: 0.83rem;
    font-weight: 800;

    transition: var(--transition-normal);
}

.topnav-cta-btn:hover {
    color: var(--brand-primary-deep);
    background: var(--brand-gold);
    transform: translateY(-2px);
}


/* ============================================================================
   11. MOBILE NAVIGATION
   ============================================================================ */

@media (max-width: 1199.98px) {

    .header-wrapper {
        position: sticky;
    }

    .navmenu {
        margin-left: auto;
    }

    .navmenu .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        color: #ffffff;

        border-radius: 8px;

        font-size: 1.8rem;
    }

    .navmenu .mobile-nav-toggle:hover {
        background: rgba(255,255,255,0.12);
    }

    .navmenu > ul {
        position: fixed;
        top: calc(var(--utility-height) + var(--header-height));
        right: -100%;

        z-index: 1040;

        width: min(340px, 88vw);
        height: calc(100vh - var(--utility-height) - var(--header-height));

        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 5px;

        padding: 22px 18px;

        overflow-y: auto;

        background: var(--brand-primary-deep);

        border-left: 1px solid rgba(255,255,255,0.12);

        box-shadow: var(--shadow-lg);

        transition: right var(--transition-normal);
    }

    body.scrolled .navmenu > ul {
        top: 68px;
        height: calc(100vh - 68px);
    }

    body.mobile-nav-active .navmenu > ul {
        right: 0;
    }

    .navmenu > ul > li {
        width: 100%;
    }

    .navmenu > ul > li > a {
        display: flex;
        width: 100%;
        padding: 12px 14px;
    }

    .navmenu .dropdown-menu {
        position: static !important;
        width: 100%;
        margin-top: 5px;

        background: rgba(255,255,255,0.96);

        box-shadow: none;
    }

    .navmenu .dropdown-menu a {
        color: var(--text-primary) !important;
    }

    .topnav-cta-btn {
        display: none;
    }

    body.mobile-nav-active::after {
        content: "";

        position: fixed;
        inset: 0;

        z-index: 1020;

        background: rgba(10,15,25,0.55);
    }

}

@media (max-width: 575.98px) {

    :root {
        --header-height: 70px;
        --utility-height: 34px;
    }

    .logo img,
    .topnav-logo-img {
        width: 42px;
        height: 42px;
    }

    .logo__title {
        font-size: 1.05rem;
    }

    .logo__tagline {
        font-size: 0.60rem;
    }

    .navmenu > ul {
        top: calc(var(--utility-height) + var(--header-height));
        height: calc(100vh - var(--utility-height) - var(--header-height));
    }

}


/* ============================================================================
   12. SHARED PAGE HEADERS
   ============================================================================ */

.page-header {
    position: relative;

    padding-block: 75px 65px;

    color: #ffffff;

    background:
        linear-gradient(
            115deg,
            var(--brand-primary-dark),
            var(--brand-primary-deep)
        );

    overflow: hidden;
}

.page-header h1 {
    margin-bottom: 14px;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 3.2rem);
}

.page-header p {
    max-width: 720px;
    margin-bottom: 0;

    color: rgba(255,255,255,0.76);
    font-size: 1.05rem;
}

.breadcrumb {
    margin-bottom: 18px;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(255,255,255,0.72);
}

.breadcrumb-item.active {
    color: var(--brand-gold-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.55);
}


/* ============================================================================
   13. FORM ELEMENTS
   ============================================================================ */

.form-label {
    margin-bottom: 7px;

    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 46px;

    padding: 10px 13px;

    color: var(--text-primary);
    background-color: #ffffff;

    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);

    font-size: 0.91rem;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(113,13,28,0.10);
}

.form-control::placeholder {
    color: #9aa3af;
}

.form-check-input:checked {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.form-check-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(113,13,28,0.12);
}


/* ============================================================================
   14. TABLES
   ============================================================================ */

.table {
    color: var(--text-primary);
    vertical-align: middle;
}

.table thead th {
    color: var(--text-primary);
    background: var(--surface-secondary);

    border-bottom: 1px solid var(--border-strong);

    font-size: 0.82rem;
    font-weight: 750;
}

.table tbody td {
    border-color: var(--border-color);
}


/* ============================================================================
   15. ALERTS AND STATUS MESSAGES
   ============================================================================ */

.alert {
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.status-success {
    color: #146c43;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

.status-warning {
    color: #664d03;
    background: #fff3cd;
    border: 1px solid #ffecb5;
}

.status-danger {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}


/* ============================================================================
   16. SHARED FOOTER
   ============================================================================ */

.footer {
    position: relative;

    padding-top: 64px;

    color: rgba(255,255,255,0.75);

    background: var(--surface-dark);

    border-top: 4px solid var(--brand-primary);
}

.footer-top {
    padding-bottom: 42px;
    margin-bottom: 22px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;
}

.footer__logo {
    width: 48px;
    height: 48px;

    object-fit: contain;

    padding: 3px;

    background: #ffffff;
    border-radius: 8px;
}

.footer__brand-name {
    margin: 0;

    color: var(--brand-gold-light);

    font-size: 1.15rem;
    font-weight: 800;
}

.footer__description {
    color: rgba(255,255,255,0.62);
    font-size: 0.86rem;
    line-height: 1.85;
}

.footer__heading {
    margin-bottom: 19px;

    color: var(--brand-gold-light);

    font-size: 0.95rem;
    font-weight: 800;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 11px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer__links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
}

.footer__links a:hover {
    color: var(--brand-gold-light);
    padding-left: 3px;
}

.footer__contact {
    color: rgba(255,255,255,0.66);
    font-size: 0.86rem;
    line-height: 1.9;
}

.footer__contact i {
    margin-right: 7px;
    color: var(--brand-gold);
}

.footer__contact strong {
    color: #ffffff;
}

.footer-bottom {
    padding-block: 20px;

    color: rgba(255,255,255,0.55);

    border-top: 1px solid rgba(255,255,255,0.10);

    font-size: 0.79rem;
    text-align: center;
}

.footer-bottom a {
    color: var(--brand-gold-light);
    font-weight: 650;
}

.footer-bottom a:hover {
    color: #ffffff;
}

.footer .hover-gold {
    transition: color var(--transition-fast);
}

.footer .hover-gold:hover {
    color: var(--brand-gold-light) !important;
}


/* ============================================================================
   17. SCROLL TO TOP
   ============================================================================ */

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;

    z-index: 1010;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: var(--brand-primary);

    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;

    box-shadow: var(--shadow-md);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity var(--transition-normal),
        visibility var(--transition-normal),
        transform var(--transition-normal),
        background-color var(--transition-normal);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    color: var(--brand-primary-deep);
    background: var(--brand-gold);
    transform: translateY(-3px);
}


/* ============================================================================
   18. PRELOADER
   ============================================================================ */

#preloader {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    transition: opacity 300ms ease, visibility 300ms ease;
}

#preloader::before {
    content: "";

    width: 48px;
    height: 48px;

    border: 4px solid #e9edf2;
    border-top-color: var(--brand-primary);

    border-radius: 50%;

    animation: portal-spinner 750ms linear infinite;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes portal-spinner {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================================
   19. DIVIDERS AND DECORATIVE UTILITIES
   ============================================================================ */

.divider-brand {
    width: 55px;
    height: 4px;

    margin-block: 18px;

    background: var(--brand-gold);

    border-radius: var(--radius-pill);
}

.border-soft {
    border: 1px solid var(--border-color) !important;
}

.shadow-soft {
    box-shadow: var(--shadow-sm) !important;
}

.rounded-brand {
    border-radius: var(--radius-lg) !important;
}

.bg-brand {
    background: var(--brand-primary) !important;
}

.bg-brand-dark {
    background: var(--brand-primary-dark) !important;
}

.bg-surface {
    background: var(--surface-page) !important;
}


/* ============================================================================
   20. RESPONSIVE GLOBAL ADJUSTMENTS
   ============================================================================ */

@media (max-width: 991.98px) {

    :root {
        --section-space: 68px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .footer {
        padding-top: 48px;
    }

}

@media (max-width: 767.98px) {

    :root {
        --section-space: 58px;
        --section-space-sm: 42px;
    }

    body {
        font-size: 14px;
    }

    .section-heading {
        font-size: clamp(1.75rem, 6vw, 2.3rem);
    }

    .section-lead {
        font-size: 0.97rem;
    }

    .page-header {
        padding-block: 55px 45px;
    }

    .scroll-top {
        right: 16px;
        bottom: 16px;

        width: 42px;
        height: 42px;
    }

    .footer-top {
        padding-bottom: 28px;
    }

}

@media (max-width: 575.98px) {

    .container {
        padding-inline: 18px;
    }

    .section {
        padding-block: 48px;
    }

    .btn-lg {
        padding: 11px 19px;
        font-size: 0.9rem;
    }

    .footer {
        padding-top: 42px;
    }

}


/* ============================================================================
   END OF GLOBAL DESIGN SYSTEM
   ============================================================================
 */
