/**
 * ===========================================
 * SORCEA - Main Stylesheet
 * Construction & Real Estate Website
 * ===========================================
 * 
 * Table of Contents:
 * ------------------
 * 1. CSS Variables (Design Tokens)
 * 2. CSS Reset & Base Styles
 * 3. Utility Classes
 * 4. Responsive Typography
 * 5. Top Bar
 * 6. Header & Navbar
 * 7. Hero Section
 * 8. Buttons
 * 9. Cards
 * 10. Members Module
 * 11. Projects Module
 * 12. News Module
 * 13. Publications Module
 * 14. Gallery Module
 * 15. Messages Module
 * 16. Statistics Module
 * 17. Contacts Module
 * 18. Footer
 * 19. Back to Top
 * 20. Responsive Adjustments
 */

/* ===========================================
   1. CSS VARIABLES - Design Tokens
=========================================== */
:root {
    /* ----- Brand Colors ----- */
    --primary: #0963eb;
    --navy: #3c86ed;
    --gold: #F2A900;
    --light-bg: #E6EEF8;

    /* ----- Neutral Colors ----- */
    --white: #FFFFFF;
    --black: #000000;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;

    /* ----- Status Colors ----- */
    --success: #198754;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #0DCAF0;

    /* ----- Typography (Inter for enterprise consistency) ----- */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

    /* ----- Font Sizes (readable, enterprise scale) ----- */
    --fs-xs: 0.8125rem;   /* 13px - minimum readable */
    --fs-sm: 0.9375rem;   /* 15px */
    --fs-base: 1rem;      /* 16px - standard body */
    --fs-md: 1.125rem;    /* 18px */
    --fs-lg: 1.25rem;     /* 20px */
    --fs-xl: 1.5rem;      /* 24px */
    --fs-2xl: 2rem;       /* 32px */
    --fs-3xl: 2.5rem;     /* 40px */
    --fs-4xl: 3rem;       /* 48px */
    --fs-5xl: 3.5rem;     /* 56px */

    /* ----- Font Weights ----- */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* ----- Line Heights (enterprise readability) ----- */
    --lh-tight: 1.3;
    --lh-normal: 1.6;
    --lh-relaxed: 1.75;
    --lh-loose: 1.85;

    /* ----- Spacing Scale ----- */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* ----- Section Spacing ----- */
    --section-padding-y: var(--space-4xl);
    --section-padding-y-sm: var(--space-3xl);

    /* ----- Border Radius ----- */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* ----- Shadows ----- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);

    /* ----- Transitions ----- */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* ----- Z-Index Scale ----- */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* ----- Container Max Widths ----- */
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-xxl: 1320px;
}

/* ===========================================
   2. CSS RESET & BASE STYLES
=========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p {
    margin-bottom: var(--space-md);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--gray-700);
}

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

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select,
label,
button {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
}

input,
textarea,
select {
    font-size: inherit;
}

/* ----- Enterprise typography: consistent readable text ----- */
.lead {
    font-family: var(--font-primary);
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--gray-700);
}

small, .small, .text-muted {
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
}

/* ===========================================
   3. UTILITY CLASSES
=========================================== */
.section {
    padding: var(--section-padding-y) 0;
}

.section--sm {
    padding: var(--section-padding-y-sm) 0;
}

.bg-primary-custom { background-color: var(--primary) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-light-custom { background-color: var(--light-bg) !important; }

.text-primary-custom { color: var(--primary) !important; }
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }

/* ----- Section Title ----- */
.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title__subtitle {
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    display: block;
}

.section-title__heading {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-md);
}

.section-title__divider {
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    margin: 0 auto;
    border-radius: var(--radius-full);
}

/* ----- Section Title Light (for dark backgrounds) ----- */
.section-title--light .section-title__heading {
    color: var(--white);
}

.section-title--light .section-title__subtitle {
    color: var(--gold);
}

/* ===========================================
   4. RESPONSIVE TYPOGRAPHY
=========================================== */
@media (max-width: 991.98px) {
    h1 { font-size: var(--fs-4xl); }
    h2 { font-size: var(--fs-3xl); }
    h3 { font-size: var(--fs-2xl); }
    h4 { font-size: var(--fs-xl); }
    
    .section-title__heading {
        font-size: var(--fs-3xl);
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: var(--fs-3xl); }
    h2 { font-size: var(--fs-2xl); }
    h3 { font-size: var(--fs-xl); }
    
    .section {
        padding: var(--section-padding-y-sm) 0;
    }

    .section-title__heading {
        font-size: var(--fs-2xl);
    }
}

/* ===========================================
   5. TOP BAR
=========================================== */
.topbar {
    background-color: var(--navy);
    padding: var(--space-sm) 0;
    font-size: var(--fs-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.topbar__info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.topbar__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-300);
}

.topbar__item i {
    color: var(--gold);
    font-size: var(--fs-sm);
}

.topbar__item a {
    color: var(--gray-300);
}

.topbar__item a:hover {
    color: var(--gold);
}

.topbar__social {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.topbar__social-link {
    color: var(--gray-400);
    font-size: var(--fs-sm);
    transition: color var(--transition-fast);
}

.topbar__social-link:hover {
    color: var(--gold);
}

@media (max-width: 767.98px) {
    .topbar {
        display: none;
    }
}

/* ===========================================
   6. HEADER & NAVBAR
=========================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background-color: var(--white);
    transition: all var(--transition-base);
}

.header--scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: var(--space-md) 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar-brand__logo {
    height: 50px;
    width: auto;
}

.navbar-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar-brand__name {
    font-family: var(--font-primary);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--navy);
}

.navbar-brand__tagline {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--gray-600);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.navbar-nav {
    gap: var(--space-xs);
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--gray-800) !important;
    padding: var(--space-sm) var(--space-md) !important;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-md);
    right: var(--space-md);
    height: 2px;
    background-color: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    margin-top: var(--space-sm) !important;
    min-width: 200px;
}

.dropdown-item {
    font-size: var(--fs-sm);
    padding: var(--space-sm) var(--space-lg);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary);
    padding-left: calc(var(--space-lg) + 5px);
}

.dropdown-item i {
    width: 20px;
    color: var(--gold);
}

/* Navbar CTA Button */
.navbar__cta {
    margin-left: var(--space-md);
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: none;
    padding: var(--space-sm);
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230B1F3B' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: var(--space-lg);
        margin-top: var(--space-md);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav {
        gap: 0;
    }

    .nav-link {
        padding: var(--space-md) 0 !important;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        box-shadow: none;
        padding-left: var(--space-lg);
        border-left: 2px solid var(--gold);
        margin-left: var(--space-md);
    }

    .navbar__cta {
        margin-left: 0;
        margin-top: var(--space-md);
        width: 100%;
    }

    .navbar__cta .btn {
        width: 100%;
    }
}

/* ===========================================
   7. HERO SECTION
=========================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__slider .swiper {
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--navy);
}

.hero__slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(11, 31, 59, 0.9) 0%,
        rgba(11, 31, 59, 0.7) 50%,
        rgba(11, 31, 59, 0.4) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: var(--space-2xl) 0;
}

.hero__subtitle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: var(--space-lg);
}

.hero__subtitle::before {
    content: '';
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}

.hero__title {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-extrabold);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero__title span {
    color: var(--gold);
}

.hero__description {
    font-size: var(--fs-lg);
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
    max-width: 550px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Hero Slider Navigation */
.hero__nav {
    position: absolute;
    bottom: var(--space-2xl);
    right: var(--space-2xl);
    z-index: 20;
    display: flex;
    gap: var(--space-sm);
}

.hero__nav-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: var(--fs-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero__nav-btn:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

/* Hero Pagination */
.hero__pagination {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.hero__pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
    margin: 0 var(--space-xs) !important;
    transition: all var(--transition-fast);
}

.hero__pagination .swiper-pagination-bullet-active {
    background-color: var(--gold);
    width: 30px;
    border-radius: var(--radius-full);
}

/* Hero Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: var(--space-2xl);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Hero Responsive */
@media (max-width: 991.98px) {
    .hero {
        min-height: 80vh;
    }

    .hero__title {
        font-size: var(--fs-4xl);
    }

    .hero__description {
        font-size: var(--fs-base);
    }

    .hero__nav {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 70vh;
    }

    .hero__title {
        font-size: var(--fs-3xl);
    }

    .hero__content {
        text-align: center;
    }

    .hero__subtitle {
        justify-content: center;
    }

    .hero__subtitle::before {
        display: none;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__scroll {
        display: none;
    }

    .hero__pagination {
        bottom: var(--space-lg);
    }
}

/* ===========================================
   8. BUTTONS
=========================================== */
.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-primary-custom:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    padding: 0.75rem 1.75rem;
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-gold:hover {
    background-color: #D99200;
    border-color: #D99200;
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary-custom {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.75rem;
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline-light {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--navy);
}

/* ===========================================
   9. CARD BASE STYLES
=========================================== */
.card-custom {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: none;
    overflow: hidden;
    transition: all var(--transition-base);
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* ===========================================
   10. MEMBERS MODULE
=========================================== */
.member-card {
    text-align: center;
    padding: var(--space-xl);
}

.member-card__image-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-lg);
    position: relative;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--light-bg);
    transition: border-color var(--transition-base);
}

.member-card:hover .member-card__image-wrapper {
    border-color: var(--gold);
}

.member-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--gray-200);
}

.member-card__name {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.member-card__position {
    font-size: var(--fs-sm);
    color: var(--gold);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.member-card__bio {
    font-size: var(--fs-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: var(--lh-relaxed);
}

.member-card__social {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.member-card__social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: var(--fs-sm);
    transition: all var(--transition-fast);
}

.member-card__social-link:hover {
    background-color: var(--primary);
    color: var(--white);
}

.member-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    margin-top: var(--space-md);
}

.member-card__link:hover {
    color: var(--gold);
}

/* Company Member Cards (like member cards but for companies) */
.company-member-card .member-card__image-wrapper {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    border: 3px solid var(--gray-100);
    padding: var(--space-md);
}

.company-member-card .member-card__image.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.company-member-card .member-card__position {
    color: var(--primary);
    font-weight: var(--fw-medium);
}

.company-member-card .member-card__bio {
    font-size: var(--fs-sm);
    min-height: 60px;
}

/* Member Companies Section */
.member-companies {
    border-top: 1px solid var(--gray-200);
}

/* Member Companies Swiper (side slider) */
.member-companies-swiper {
    overflow: hidden;
    padding: var(--space-md) 0;
    margin: 0 -0.5rem;
}

.member-companies-slide {
    height: auto;
    box-sizing: border-box;
    padding: 0 0.5rem;
}

.member-companies-swiper .swiper-slide {
    width: 280px;
    max-width: 85vw;
}

@media (min-width: 576px) {
    .member-companies-swiper .swiper-slide {
        width: 300px;
    }
}

@media (min-width: 768px) {
    .member-companies-swiper .swiper-slide {
        width: 320px;
    }
}

@media (min-width: 992px) {
    .member-companies-swiper .swiper-slide {
        width: 340px;
    }
}

.member-companies__nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.member-companies__nav-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.member-companies__nav-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.member-companies__nav-btn.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.member-companies-pagination {
    margin-top: var(--space-lg);
}

.member-company-card-clickable {
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.member-company-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.member-company-card-clickable:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Company Projects Panel (slide-out) */
.company-projects-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.company-projects-overlay.active {
    opacity: 1;
    visibility: visible;
}

.company-projects-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 520px;
    height: 100%;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1051;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.company-projects-overlay.active .company-projects-panel {
    transform: translateX(0);
}

.company-projects-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-100);
    flex-shrink: 0;
}

.company-projects-panel__title {
    margin: 0;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--navy);
}

.company-projects-panel__close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--gray-200);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.company-projects-panel__close:hover {
    background: var(--primary);
    color: var(--white);
}

.company-projects-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl);
}

.company-projects-content {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
}

.company-projects-content .project-card {
    margin: 0;
}

.company-projects-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.company-projects-empty {
    margin: 0;
    font-size: var(--fs-base);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.company-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

.company-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.company-card__logo {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.company-card:hover .company-card__logo {
    transform: scale(1.05);
}

.company-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-card__name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--navy);
    margin: 0;
    line-height: 1.3;
}

/* Responsive: Member Companies */
@media (max-width: 768px) {
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: var(--space-md);
    }
    
    .company-card {
        padding: var(--space-md);
    }
    
    .company-card__logo {
        width: 80px;
        height: 80px;
    }
    
    .company-card__name {
        font-size: var(--fs-xs);
    }
}

@media (max-width: 480px) {
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================================
   11. PROJECTS MODULE
=========================================== */
.project-card {
    position: relative;
}

.project-card__image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--gray-200);
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image {
    transform: scale(1.08);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 31, 59, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__actions {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    right: var(--space-lg);
    display: flex;
    gap: var(--space-sm);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-base);
}

.project-card:hover .project-card__actions {
    transform: translateY(0);
    opacity: 1;
}

.project-card__action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: var(--radius-full);
    color: var(--primary);
    transition: all var(--transition-fast);
}

.project-card__action-btn:hover {
    background-color: var(--gold);
    color: var(--navy);
}

.project-card__body {
    padding: var(--space-lg);
}

.project-card__category {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.project-card__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.project-card__title a {
    color: inherit;
}

.project-card__title a:hover {
    color: var(--primary);
}

.project-card__company {
    font-size: var(--fs-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
}

.project-card__company i {
    color: var(--primary);
    font-size: var(--fs-xs);
}

.project-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--fs-sm);
    color: var(--gray-600);
}

.project-card__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.project-card__meta-item i {
    color: var(--primary);
}

/* Project Status Badge */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-full);
}

.badge-status--completed {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.badge-status--ongoing {
    background-color: rgba(242, 169, 0, 0.1);
    color: var(--gold);
}

.badge-status--upcoming {
    background-color: rgba(0, 58, 143, 0.1);
    color: var(--primary);
}

/* Project Filter Tabs */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.project-filter-btn {
    padding: 0.625rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.project-filter-btn:hover {
    background-color: var(--light-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.project-filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 58, 143, 0.3);
}

.project-filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 58, 143, 0.2);
}

/* Project Card Wrapper Transitions */
#projects .row > [class*="col-"] {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ===========================================
   12. NEWS MODULE
=========================================== */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card__image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--gray-200);
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card__image {
    transform: scale(1.05);
}

.news-card__date-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background-color: var(--gold);
    color: var(--navy);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 60px;
}

.news-card__date-day {
    display: block;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    line-height: 1;
}

.news-card__date-month {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
}

.news-card__body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__category {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.news-card__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--navy);
    margin-bottom: var(--space-md);
    line-height: var(--lh-tight);
}

.news-card__title a {
    color: inherit;
}

.news-card__title a:hover {
    color: var(--primary);
}

.news-card__excerpt {
    font-size: var(--fs-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.news-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.news-card__author-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background-color: var(--gray-200);
}

.news-card__author-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--gray-700);
}

.news-card__read-more {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.news-card__read-more:hover {
    color: var(--gold);
}

/* ===========================================
   13. PUBLICATIONS MODULE
=========================================== */
.publication-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.publication-card__preview {
    position: relative;
    height: 200px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.publication-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.publication-card:hover .publication-card__image {
    transform: scale(1.08);
}

.publication-card__preview-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
}

.publication-card__preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publication-card__file-type {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background-color: var(--danger);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
}

.publication-card__body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.publication-card__category {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.publication-card__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--navy);
    margin-bottom: var(--space-sm);
    line-height: var(--lh-tight);
}

.publication-card__meta {
    font-size: var(--fs-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    flex: 1;
}

.publication-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.publication-card__meta span + span::before {
    content: '•';
    margin: 0 var(--space-sm);
    color: var(--gray-400);
}

.publication-card__actions {
    display: flex;
    gap: var(--space-sm);
}

.publication-card__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    transition: all var(--transition-fast);
}

.publication-card__btn--download {
    background-color: var(--primary);
    color: var(--white);
}

.publication-card__btn--download:hover {
    background-color: var(--navy);
    color: var(--white);
}

.publication-card__btn--preview {
    background-color: var(--light-bg);
    color: var(--primary);
}

.publication-card__btn--preview:hover {
    background-color: var(--gray-200);
    color: var(--primary);
}

.publication-card__actions button.publication-card__btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Publication Category Filter */
.publication-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.publication-filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    transition: all var(--transition-fast);
}

.publication-filter-btn:hover,
.publication-filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ===========================================
   14. GALLERY MODULE
=========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.gallery-grid__empty {
    grid-column: 1 / -1;
}

@media (max-width: 991.98px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--gray-200);
    transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-item__image {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 58, 143, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: var(--fs-lg);
    transform: scale(0);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-item__icon {
    transform: scale(1);
}

/* Album Card */
.album-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.album-card__preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    height: 200px;
}

.album-card__preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--gray-200);
}

.album-card__body {
    padding: var(--space-lg);
}

.album-card__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.album-card__count {
    font-size: var(--fs-sm);
    color: var(--gray-600);
}

.album-card__count i {
    color: var(--gold);
    margin-right: var(--space-xs);
}

/* ===========================================
   15. MESSAGES MODULE (CEO/Board)
=========================================== */
.message-card {
    padding: var(--space-2xl);
}

.message-card__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.message-card__image-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--gold);
}

.message-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--gray-200);
}

.message-card__info {
    flex: 1;
}

.message-card__name {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.message-card__position {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.message-card__content {
    position: relative;
    padding-left: var(--space-xl);
}

.message-card__content::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    font-size: var(--fs-xl);
    color: var(--gold);
    opacity: 0.5;
}

.message-card__text {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--gray-700);
    font-style: italic;
}

.message-card__signature {
    margin-top: var(--space-lg);
    font-weight: var(--fw-semibold);
    color: var(--navy);
}

@media (max-width: 575.98px) {
    .message-card__header {
        flex-direction: column;
        text-align: center;
    }

    .message-card__image-wrapper {
        margin: 0 auto;
    }

    .message-card__content {
        padding-left: 0;
        text-align: center;
    }

    .message-card__content::before {
        position: static;
        display: block;
        margin-bottom: var(--space-md);
    }
}

/* ===========================================
   15a. ABOUT SECTION
=========================================== */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-feature-card {
    padding: var(--space-2xl);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.about-feature-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: var(--fs-xl);
}

.about-feature-card__title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--navy);
    margin-bottom: var(--space-md);
    line-height: var(--lh-tight);
}

.about-feature-card__text {
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    color: var(--gray-800);
    line-height: var(--lh-relaxed);
    margin: 0;
}

/* About section – clearer, more readable text */
#about .section-title__heading {
    color: var(--gray-900);
}

#about .lead,
#about p {
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    color: var(--gray-800);
    line-height: 1.7;
}

#about .lead.text-muted {
    color: var(--gray-800) !important;
}

/* ===========================================
   16. STATISTICS MODULE
=========================================== */
.stats-section {
    position: relative;
    background-color: var(--navy);
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.05"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
    position: relative;
    z-index: 1;
}

.stat-item__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    background-color: rgba(242, 169, 0, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--fs-2xl);
    color: var(--gold);
}

.stat-item__number {
    font-family: var(--font-primary);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    color: var(--white);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.stat-item__number span {
    color: var(--gold);
}

.stat-item__label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================================
   17. CONTACTS MODULE
=========================================== */
.contact-info-card {
    padding: var(--space-2xl);
    height: 100%;
}

.contact-info-card__title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--navy);
    margin-bottom: var(--space-xl);
}

.contact-info-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: var(--fs-lg);
}

.contact-info-item__content {
    flex: 1;
}

.contact-info-item__label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--gray-600);
    margin-bottom: var(--space-xs);
}

.contact-info-item__value {
    font-size: var(--fs-base);
    color: var(--navy);
    font-weight: var(--fw-medium);
}

.contact-info-item__value a {
    color: inherit;
}

.contact-info-item__value a:hover {
    color: var(--primary);
}

/* Contact Social Links */
.contact-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.contact-social__link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: var(--fs-md);
    transition: all var(--transition-fast);
}

.contact-social__link:hover {
    background-color: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
    padding: var(--space-2xl);
    height: 100%;
}

.contact-form-card__title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--navy);
    margin-bottom: var(--space-xl);
}

.form-floating-custom {
    margin-bottom: var(--space-lg);
}

.form-floating-custom .form-control,
.form-floating-custom .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    height: auto;
    font-size: var(--fs-base);
    transition: border-color var(--transition-fast);
}

.form-floating-custom .form-control:focus,
.form-floating-custom .form-select:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.form-floating-custom textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-floating-custom .form-label {
    font-size: var(--fs-sm);
    color: var(--gray-600);
}

/* Map Placeholder */
.contact-map {
    width: 100%;
    height: 300px;
    background-color: var(--light-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-map__placeholder {
    text-align: center;
    color: var(--gray-500);
}

.contact-map__placeholder i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

/* ===========================================
   18. FOOTER
=========================================== */
.footer {
    padding: var(--space-4xl) 0 0;
}

.footer__top {
    padding-bottom: var(--space-3xl);
}

.footer__brand {
    margin-bottom: var(--space-lg);
}

.footer__brand-name {
    font-family: var(--font-primary);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.footer__brand-tagline {
    font-size: var(--fs-base);
    color: var(--gray-300);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: var(--fw-medium);
}

.footer__description {
    color: var(--gray-300);
    font-size: var(--fs-base);
    margin-bottom: var(--space-lg);
    max-width: 360px;
    line-height: 1.8;
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background-color: var(--gold);
    color: var(--navy);
}

.footer__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--white);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__link {
    margin-bottom: var(--space-sm);
}

.footer__link a {
    color: var(--gray-300);
    font-size: var(--fs-base);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__link a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
    font-size: var(--fs-xs);
}

.footer__link a:hover {
    color: var(--gold);
    padding-left: var(--space-sm);
}

.footer__contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer__contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(242, 169, 0, 0.15);
    border-radius: var(--radius-md);
    color: var(--gold);
    flex-shrink: 0;
}

.footer__contact-text {
    color: var(--gray-300);
    font-size: var(--fs-base);
}

.footer__contact-text strong {
    display: block;
    color: var(--white);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-xs);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
}

.footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copyright {
    color: var(--gray-400);
    font-size: var(--fs-sm);
}

.footer__copyright a {
    color: var(--gold);
}

.footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal a {
    color: var(--gray-500);
    font-size: var(--fs-sm);
}

.footer__legal a:hover {
    color: var(--gold);
}

@media (max-width: 767.98px) {
    .footer__bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer [class*="col-"] {
        text-align: center;
    }

    .footer__social,
    .footer__contact-item {
        justify-content: center;
    }

    .footer__link a::before {
        display: none;
    }
}

/* ===========================================
   19. BACK TO TOP BUTTON
=========================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--fs-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
    background-color: var(--gold);
    color: var(--navy);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===========================================
   20. RESPONSIVE ADJUSTMENTS
=========================================== */
@media (max-width: 991.98px) {
    .section-title__heading {
        font-size: var(--fs-3xl);
    }

    .stat-item__number {
        font-size: var(--fs-3xl);
    }

    .message-card {
        padding: var(--space-xl);
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: var(--section-padding-y-sm) 0;
    }

    .section-title__heading {
        font-size: var(--fs-2xl);
    }

    .stat-item__number {
        font-size: var(--fs-2xl);
    }

    .stat-item__icon {
        width: 60px;
        height: 60px;
        font-size: var(--fs-xl);
    }

    .message-card__image-wrapper {
        width: 100px;
        height: 100px;
    }
}

.navbar-brand__text {
    line-height: 1.1;
}

.navbar-brand__name {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--bs-primary); /* Bootstrap main color */
    text-transform: uppercase;
}

.navbar-brand__tagline {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: rgba(0,0,0,.55);
    text-transform: uppercase;
}


.navbar-brand__name::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--bs-primary),
        #d4af37
    );
    margin-top: 4px;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.project-filter-btn {
    background: transparent;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    padding: 8px 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.project-filter-btn:hover,
.project-filter-btn.active {
    background: var(--bs-primary);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
}

.project-hidden {
    visibility: hidden;
    opacity: 0;
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

#projects .col-lg-4 {
    transition: all 0.3s ease;
}

/* ===========================================
   PHASE 4: UX POLISH & ENHANCEMENTS
=========================================== */

/* ===========================================
   4.1 ENHANCED ANIMATIONS & TRANSITIONS
=========================================== */

/* Smooth Focus States for All Interactive Elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Enhanced Card Hover Effects */
.card-custom,
.member-card,
.project-card,
.news-card,
.publication-card,
.company-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Subtle Pulse Animation for CTA Buttons */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242, 169, 0, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(242, 169, 0, 0); }
}

.btn-gold:not(:hover) {
    animation: subtlePulse 3s infinite;
}

/* Image Zoom on Hover (Gallery, Projects) */
.gallery-item__image,
.project-card__image,
.news-card__image {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ripple Effect for Buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Link Underline Animation */
.content-link {
    position: relative;
    display: inline-block;
}

.content-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.content-link:hover::after {
    width: 100%;
}

/* Icon Bounce on Hover */
.social-link:hover i,
.member-card__social-link:hover i,
.topbar__social-link:hover i {
    animation: iconBounce 0.4s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Stagger Animation for Grid Items */
.row > [class*="col-"]:nth-child(1) { animation-delay: 0ms; }
.row > [class*="col-"]:nth-child(2) { animation-delay: 100ms; }
.row > [class*="col-"]:nth-child(3) { animation-delay: 200ms; }
.row > [class*="col-"]:nth-child(4) { animation-delay: 300ms; }
.row > [class*="col-"]:nth-child(5) { animation-delay: 400ms; }
.row > [class*="col-"]:nth-child(6) { animation-delay: 500ms; }

/* Enhanced Section Title Animation */
.section-header {
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transition: width 0.6s ease;
}

.section-header.aos-animate::after {
    width: 80px;
}

/* Floating Animation for Decorative Elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Background Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animated {
    background: linear-gradient(-45deg, var(--primary), var(--navy), var(--gold), var(--primary));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Loading Skeleton Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===========================================
   4.2 MOBILE OPTIMIZATION
=========================================== */

/* Touch-Friendly Button Sizes (min 44px tap target) */
@media (max-width: 991.98px) {
    .btn,
    .nav-link,
    .topbar__social-link,
    .member-card__social-link,
    .project-card__action-btn,
    .gallery-item__action {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improved mobile nav link spacing */
    .nav-link {
        padding: 12px 16px !important;
    }
    
    /* Better dropdown tap targets */
    .dropdown-item {
        padding: 12px 20px;
    }
}

/* Improved Mobile Spacing */
@media (max-width: 767.98px) {
    /* Reduce section padding on mobile */
    section {
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-3xl);
    }
    
    /* Better card spacing */
    .card-custom,
    .member-card,
    .news-card,
    .publication-card {
        margin-bottom: var(--space-lg);
    }
    
    /* Grid gap reduction */
    .row.g-4 {
        --bs-gutter-y: 1.5rem;
    }
    
    /* Better button spacing */
    .btn + .btn {
        margin-left: var(--space-sm);
    }
    
    /* Hero adjustments */
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Menu Polish */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 80px;
        left: 16px;
        right: 16px;
        background: var(--white);
        border-radius: var(--radius-lg);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        padding: var(--space-lg);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        z-index: var(--z-fixed);
    }
    
    .navbar-toggler {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        transition: background-color 0.2s ease;
    }
    
    .navbar-toggler:active {
        background-color: var(--gray-200);
    }
    
    /* Animated hamburger */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230B1F3B' stroke-linecap='round' stroke-width='2' d='M7 7l16 16M7 23L23 7'/%3e%3c/svg%3e");
    }
}

/* Responsive Images with Aspect Ratio */
.responsive-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.container, .container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile-friendly form inputs */
@media (max-width: 767.98px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
    
    .form-control {
        height: auto;
        min-height: 48px;
    }
}

/* ===========================================
   COMPREHENSIVE RESPONSIVE - ALL DEVICES
=========================================== */

/* About Section - mobile first */
@media (max-width: 991.98px) {
    #about .section-title.text-lg-start {
        text-align: center;
    }
    
    #about .row.align-items-center {
        flex-direction: column;
    }
    
    #about .col-lg-6:last-child {
        order: -1; /* Image above text on tablet/mobile */
    }
    
    .about-feature-card {
        padding: var(--space-xl);
    }
}

@media (max-width: 575.98px) {
    .about-feature-card__icon {
        width: 56px;
        height: 56px;
        font-size: var(--fs-lg);
    }
    
    .about-feature-card__title {
        font-size: var(--fs-lg);
    }
    
    .about-image-wrapper img {
        min-height: 200px;
        object-fit: cover;
    }
}

/* reCAPTCHA - scale down on small screens */
@media (max-width: 575.98px) {
    .g-recaptcha {
        transform: scale(0.89);
        transform-origin: left top;
    }
}

/* Contact section - mobile */
@media (max-width: 767.98px) {
    .contact-info-card,
    .contact-form-card {
        padding: var(--space-xl);
    }
    
    .contact-info-item {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .contact-map {
        height: 250px;
    }
    
    .contact-map iframe {
        min-height: 250px;
    }
}

@media (max-width: 575.98px) {
    .contact-info-card,
    .contact-form-card {
        padding: var(--space-lg);
    }
    
    .contact-info-item__icon {
        width: 40px;
        height: 40px;
        font-size: var(--fs-base);
    }
    
    .contact-social__link {
        width: 40px;
        height: 40px;
    }
    
    .contact-map {
        height: 200px;
    }
}

/* Publication filters - wrap & scroll */
.publication-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.publication-filters::-webkit-scrollbar {
    display: none;
}

@media (max-width: 575.98px) {
    .publication-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding-bottom: var(--space-sm);
    }
    
    .publication-filter-btn {
        flex-shrink: 0;
    }
}

/* Back to top - position on small screens */
@media (max-width: 575.98px) {
    .back-to-top {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 44px;
        height: 44px;
        font-size: var(--fs-base);
    }
}

/* Stats section - compact on mobile */
@media (max-width: 575.98px) {
    .stat-item {
        padding: var(--space-lg);
    }
    
    .stat-item__icon {
        width: 56px;
        height: 56px;
        font-size: var(--fs-lg);
    }
    
    .stat-item__number {
        font-size: var(--fs-xl);
    }
}

/* Hero - extra small */
@media (max-width: 380px) {
    .hero {
        min-height: 60vh;
    }
    
    .hero__title {
        font-size: var(--fs-2xl);
    }
    
    .hero__content {
        padding: var(--space-lg) 0;
    }
    
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Navbar brand - compact on very small */
@media (max-width: 380px) {
    .navbar-brand__name {
        font-size: 18px;
    }
    
    .navbar-brand__tagline {
        font-size: 9px;
    }
    
    .navbar-brand__logo {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Gallery - single column on very small */
@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Member companies - ensure swiper works */
.member-companies-swiper {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .member-companies-slide {
        min-width: 200px;
    }
}

/* Footer - compact */
@media (max-width: 575.98px) {
    .footer__top {
        padding: var(--space-2xl) 0;
    }
    
    .footer__brand-name {
        font-size: var(--fs-xl);
    }
    
    .footer__legal {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Safe area for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
    .back-to-top {
        right: max(var(--space-lg), calc(var(--space-lg) + env(safe-area-inset-right)));
        bottom: max(var(--space-lg), calc(var(--space-lg) + env(safe-area-inset-bottom)));
    }
}

/* Better touch scrolling */
.swiper,
.gallery-grid,
.companies-grid {
    -webkit-overflow-scrolling: touch;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .card-custom:hover,
    .project-card:hover,
    .news-card:hover,
    .member-card:hover {
        transform: none;
    }
    
    .project-card__overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(11, 31, 59, 0.7) 0%, transparent 40%);
    }
    
    .project-card__actions {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===========================================
   4.3 ACCESSIBILITY ENHANCEMENTS
=========================================== */

/* Skip to Main Content Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    z-index: 9999;
    font-weight: var(--fw-semibold);
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
    color: var(--white);
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* High Contrast Focus Indicators */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Ensure sufficient color contrast */
.text-muted,
.gray-text {
    color: var(--gray-600) !important; /* WCAG AA compliant */
}

/* Reduced Motion Support */
@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;
    }
    
    .hero__scroll-line,
    .btn-gold,
    .floating {
        animation: none !important;
    }
    
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Keyboard Navigation Indicators */
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.btn:focus-visible {
    background-color: var(--light-bg);
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

/* ARIA Live Region Styles */
[aria-live="polite"],
[aria-live="assertive"] {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Visible for content updates */
[aria-live].visible {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    overflow: visible;
}

/* Better Link Distinction */
main a:not(.btn):not(.nav-link) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

main a:not(.btn):not(.nav-link):hover {
    text-decoration-thickness: 2px;
}

/* Icon Buttons Need Labels */
.icon-btn {
    position: relative;
}

.icon-btn[aria-label]::before {
    content: attr(aria-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.icon-btn:hover[aria-label]::before,
.icon-btn:focus[aria-label]::before {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* Form Label Association */
label {
    cursor: pointer;
}

/* Required Field Indicator */
.required::after {
    content: ' *';
    color: var(--danger);
}

/* Error State for Forms */
.is-invalid {
    border-color: var(--danger) !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    color: var(--danger);
    font-size: var(--fs-sm);
    margin-top: var(--space-xs);
}

/* Success State for Forms */
.is-valid {
    border-color: var(--success) !important;
}

.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25) !important;
}

/* Better Table Accessibility */
table {
    border-collapse: collapse;
}

th {
    text-align: left;
    font-weight: var(--fw-semibold);
}

th, td {
    padding: var(--space-sm) var(--space-md);
}

/* Print Styles */
@media print {
    .topbar,
    .navbar,
    .hero__nav,
    .back-to-top,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
    
    .card-custom {
        break-inside: avoid;
    }
}

/* ===========================================
   LOGIN & FORGOT PASSWORD PAGES
=========================================== */

/* Auth Page Base Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
}

.auth-page--centered {
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Login Wrapper */
.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Login Brand (Left Side) */
.login-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: authPulse 15s ease-in-out infinite;
}

@keyframes authPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.login-brand__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}

.login-brand__logo {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.login-brand__title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: var(--fw-bold);
    margin-bottom: 0.5rem;
    color: var(--white);
}

.login-brand__subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.login-brand__features {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-brand__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.login-brand__features i {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Login Form Wrapper (Right Side) */
.login-form-wrapper {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.login-form__header {
    margin-bottom: 2rem;
}

.login-form__title {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.login-form__subtitle {
    color: var(--gray-500);
    margin-bottom: 0;
}

/* Auth Form Elements */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    display: block;
    font-weight: var(--fw-medium);
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control-wrapper {
    position: relative;
}

.form-control-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.form-control-wrapper .toggle-password {
    left: auto;
    right: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.form-control-wrapper .toggle-password:hover {
    color: var(--primary);
}

.form-control-wrapper .form-control {
    padding-left: 2.75rem;
}

/* Form Options Row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--fw-medium);
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Buttons */
.btn-login,
.btn-reset {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover,
.btn-reset:hover {
    background: #2a6fd4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(60, 134, 237, 0.3);
}

.btn-back {
    width: 100%;
    padding: 0.875rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

/* Login Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.login-divider span {
    padding: 0 1rem;
}

/* Auth Footer */
.login-footer,
.forgot-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.forgot-footer {
    margin-top: 1.5rem;
}

.forgot-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--fw-medium);
}

.forgot-footer a:hover {
    text-decoration: underline;
}

/* Forgot Password Card */
.forgot-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.forgot-header {
    text-align: center;
    margin-bottom: 2rem;
}

.forgot-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a6fd4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.75rem;
}

.forgot-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.forgot-subtitle {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Success State */
.success-state {
    display: none;
    text-align: center;
}

.success-state.active {
    display: block;
}

.form-state.hidden {
    display: none;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.success-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.success-message {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.success-email {
    color: var(--primary);
    font-weight: var(--fw-semibold);
}

/* Auth Alerts */
.auth-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.auth-alert--info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.auth-alert--danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert--success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Auth Pages Responsive */
@media (max-width: 991.98px) {
    .login-brand {
        display: none;
    }
    
    .login-form-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .login-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .login-form__title {
        font-size: 1.5rem;
    }
    
    .forgot-card {
        padding: 2rem 1.5rem;
    }
    
    .forgot-title {
        font-size: 1.25rem;
    }
}

/* ===========================================
   Content View Modals (News Article & Publication)
=========================================== */
.content-view-modal .modal-dialog {
    max-width: 900px;
}

.content-view-modal .modal-xl {
    max-width: 960px;
}

.content-view-modal__body {
    max-height: 75vh;
    overflow-y: auto;
    padding: 1.5rem 1.5rem 2rem;
}

.content-view-modal__content {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.content-view-modal__content p {
    margin-bottom: 1rem;
}

.content-view-modal__actions {
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

