/**
 * PMSA-Palestine Official Design System
 * Modern, Ultra-Premium Medical Federation Theme
 * Full RTL & LTR Bidirectional Support
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1E3A8A;
    --primary-dark: #0A192F;
    --primary-light: #3B82F6;
    --teal: #0D9488;
    --teal-dark: #0F766E;
    --teal-light: #14B8A6;
    --gold: #D97706;
    --gold-light: #F59E0B;
    --danger: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
    --shadow-lg: 0 10px 25px -5px rgba(15,23,42,0.12), 0 8px 10px -6px rgba(15,23,42,0.06);
    --shadow-glow: 0 0 20px rgba(13,148,136,0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════
   TOP UTILITY BAR
   ═══════════════════════════════════════════════ */
.topbar {
    background: #071324;
    color: #94A3B8;
    font-size: 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.topbar-start,
.topbar-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #CBD5E1;
    font-weight: 500;
}

.topbar-sep {
    color: #334155;
    font-size: 0.75rem;
}

.topbar-lang a.lang-toggle-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #38BDF8 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.2rem 0.6rem;
    background: rgba(56, 189, 248, 0.08);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.topbar-lang a.lang-toggle-link:hover {
    background: rgba(56, 189, 248, 0.18);
    color: #7DD3FC !important;
}

.topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #E2E8F0;
    font-weight: 600;
}

.topbar-username {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-lc-badge {
    background: rgba(13, 148, 136, 0.2);
    color: #2DD4BF;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #F87171 !important;
    font-size: 0.78rem;
    font-weight: 600;
    margin-inline-start: 0.35rem;
    transition: color 0.2s;
}

.topbar-logout:hover {
    color: #FCA5A5 !important;
}

/* ═══════════════════════════════════════════════
   MAIN STICKY HEADER
   ═══════════════════════════════════════════════ */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.header-scrolled {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.main-header.header-scrolled .header-container {
    padding: 0.45rem 1.5rem;
}

.main-header.header-scrolled .brand-img {
    height: 46px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.5rem;
    transition: padding 0.25s ease;
    gap: 1.25rem;
}

/* — Brand / Official Logo & Identity — */
.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
}

.brand-img {
    height: 56px;
    width: auto;
    max-height: 56px;
    object-fit: contain;
    transition: height 0.25s ease;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-acronym {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0F172A;
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-family: 'Inter', -apple-system, sans-serif;
}

.brand-fullname {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0D9488;
    line-height: 1.25;
    max-width: 260px;
}

/* — Desktop Navigation Menu — */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-anchor {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-anchor i:first-child {
    font-size: 0.82rem;
    color: #64748B;
    transition: color 0.2s ease;
}

.nav-anchor .dropdown-arrow {
    font-size: 0.65rem;
    color: #94A3B8;
    margin-inline-start: 0.15rem;
    transition: transform 0.25s ease;
}

.nav-anchor:hover {
    background: #F1F5F9;
    color: #0D9488;
}

.nav-anchor:hover i:first-child {
    color: #0D9488;
}

.nav-anchor.active {
    background: #F0FDF4;
    color: #0D9488;
    font-weight: 700;
}

.nav-anchor.active i:first-child {
    color: #0D9488;
}

/* — Dropdown Menus — */
.has-dropdown:hover .nav-anchor .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    inset-inline-start: 0;
    min-width: 260px;
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
    padding: 0.5rem;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s ease;
    z-index: 1050;
    pointer-events: none;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    margin-bottom: 0.15rem;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    color: #1E293B;
    text-decoration: none;
    transition: all 0.18s ease;
}

.dropdown-menu a:hover {
    background: #F8FAFC;
    color: #0D9488;
}

.dropdown-menu a i {
    font-size: 1rem;
    color: #0D9488;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-menu a strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
}

.dropdown-menu a small {
    display: block;
    font-size: 0.74rem;
    color: #64748B;
    line-height: 1.2;
    margin-top: 0.15rem;
}

/* Standing Committees Dropdown Pills */
.dropdown-committees {
    min-width: 290px;
}

.badge-sc {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    color: #FFF;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.badge-sc.scome { background: #2563EB; }
.badge-sc.scope { background: #059669; }
.badge-sc.scoph { background: #D97706; }
.badge-sc.scora { background: #DC2626; }
.badge-sc.score { background: #7C3AED; }
.badge-sc.scorp { background: #0891B2; }

/* — Header Action Buttons — */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.btn-action-join {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0D9488 0%, #0284C7 100%);
    color: #FFFFFF !important;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.52rem 1.15rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-action-join:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
    filter: brightness(1.05);
}

.btn-action-login {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1.5px solid #0284C7;
    color: #0284C7 !important;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.48rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-action-login:hover {
    background: #EFF6FF;
    border-color: #0284C7;
}

.btn-portal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1E3A8A;
    color: #FFFFFF !important;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.52rem 1.15rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-portal-cta:hover {
    background: #172554;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.35);
}

.btn-logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid #FCA5A5;
    background: #FEF2F2;
    color: #EF4444 !important;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-logout-icon:hover {
    background: #EF4444;
    color: #FFFFFF !important;
    border-color: #EF4444;
}

/* — Mobile Toggle Button — */
.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.mobile-toggle-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #1E293B;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle-btn.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle-btn.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* — Mobile Drawer — */
.mobile-drawer {
    display: none;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open {
    max-height: 85vh;
    overflow-y: auto;
}

.mobile-drawer-body {
    padding: 1rem 1.5rem 1.5rem;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    color: #1E293B;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-nav-list a i {
    width: 20px;
    text-align: center;
    color: #0D9488;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    background: #F0FDF4;
    color: #0D9488;
}

.mobile-section-header {
    padding: 0.75rem 0.85rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-sub-item a {
    padding-inline-start: 2rem;
    font-size: 0.9rem;
    color: #475569;
}

.mobile-drawer-actions {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #F8FAFC;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.mobile-user-card i {
    font-size: 1.8rem;
    color: #0D9488;
}

.mobile-user-card strong {
    display: block;
    color: #0F172A;
    font-size: 0.92rem;
}

.mobile-user-card small {
    color: #64748B;
    font-size: 0.75rem;
}

.btn-drawer-portal,
.btn-drawer-join,
.btn-drawer-login,
.btn-drawer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
}

.btn-drawer-portal {
    background: #1E3A8A;
    color: #FFF !important;
}

.btn-drawer-join {
    background: linear-gradient(135deg, #0D9488 0%, #0284C7 100%);
    color: #FFF !important;
}

.btn-drawer-login {
    border: 1.5px solid #0284C7;
    color: #0284C7 !important;
}

.btn-drawer-logout {
    background: #FEF2F2;
    color: #EF4444 !important;
    border: 1px solid #FCA5A5;
}

/* ═══════════════════════════════════════════════
   SUBSCRIPTION WARNING STRIP
   ═══════════════════════════════════════════════ */
.sub-warning-strip {
    background: linear-gradient(90deg, #9A3412 0%, #C2410C 100%);
    color: #FFFFFF;
    padding: 0.6rem 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.sub-warning-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sub-warning-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sub-action {
    background: #FFF;
    color: #9A3412 !important;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1E40AF);
    color: #FFF;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #172554, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.35);
    color: #FFF;
}

.btn-teal {
    background: linear-gradient(135deg, var(--teal), #0F766E);
    color: #FFF;
}

.btn-teal:hover {
    background: #0D9488;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #FFF;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

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

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #B45309);
    color: #FFF;
}

.btn-gold:hover {
    background: #B45309;
    color: #FFF;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: #FFF;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: radial-gradient(circle at top right, #1E3A8A 0%, #0A192F 100%);
    color: #FFF;
    padding: 5rem 0 4.5rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/hero_banner.jpg') center/cover no-repeat;
    opacity: 0.16;
    mix-blend-mode: overlay;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 148, 136, 0.25);
    color: #2DD4BF;
    border: 1px solid rgba(45, 212, 191, 0.4);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: #FFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title span {
    color: #38BDF8;
}

.hero-desc {
    font-size: 1.15rem;
    color: #E2E8F0;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: #FBBF24;
    display: block;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #CBD5E1;
    font-weight: 600;
}

/* Section Headings */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* Card Grids */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #CBD5E1;
}

/* Standing Committees Cards */
.committee-card {
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--sc-color, var(--primary));
}

.sc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sc-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--sc-color-bg, #EFF6FF);
    color: var(--sc-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sc-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #F1F5F9;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.sc-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.sc-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Local Committees Grid */
.lc-card {
    border-top: 4px solid var(--teal);
    text-align: center;
}

.lc-logo-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    padding: 4px;
    background: #FFF;
    border: 2px solid var(--teal);
    box-shadow: var(--shadow-md);
}

.lc-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lc-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.lc-uni {
    font-size: 0.95rem;
    color: var(--teal-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.lc-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Leaderboard Table */
.data-table-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-header-box {
    padding: 1.25rem 1.75rem;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table th {
    background: #F1F5F9;
    padding: 0.9rem 1.25rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #F1F5F9;
    color: var(--text-primary);
    vertical-align: middle;
}

.table tr:hover td {
    background: #F8FAFC;
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.rank-1 { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.rank-2 { background: #E2E8F0; color: #334155; border: 1px solid #CBD5E1; }
.rank-3 { background: #FFEDD5; color: #C2410C; border: 1px solid #FED7AA; }
.rank-other { background: #F1F5F9; color: var(--text-muted); }

.points-pill {
    background: #EFF6FF;
    color: var(--primary);
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #BFDBFE;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-info { background: #E0F2FE; color: #0369A1; }
.badge-primary { background: #DBEAFE; color: #1E40AF; }

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #FFF;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}

/* Flash alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success { background: #DEF7EC; color: #03543F; border: 1px solid #BCF0DA; }
.alert-danger { background: #FDE8E8; color: #9B1C1C; border: 1px solid #F8B4B4; }
.alert-warning { background: #FEF08A; color: #713F12; border: 1px solid #FDE047; }
.alert-info { background: #E1EFFE; color: #1E429F; border: 1px solid #B4C6FC; }

/* Portal Layout */
.portal-layout {
    display: flex;
    min-height: calc(100vh - 140px);
}

.portal-sidebar {
    width: 280px;
    background: #0A192F;
    color: #FFF;
    flex-shrink: 0;
    padding: 1.5rem 1rem;
    border-inline-end: 1px solid rgba(255,255,255,0.08);
}

.portal-user-card {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.portal-user-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #FFF;
}

.portal-user-role {
    font-size: 0.8rem;
    color: #38BDF8;
    font-weight: 600;
    margin-top: 0.2rem;
}

.portal-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.portal-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94A3B8;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}

.portal-nav a:hover, .portal-nav a.active {
    color: #FFF;
    background: rgba(13,148,136,0.3);
    border-inline-start: 3px solid #2DD4BF;
}

.portal-main {
    flex-grow: 1;
    padding: 2rem;
    background: #F8FAFC;
    overflow-y: auto;
}

/* Quick Role Switcher (Demo Drawer) */
.demo-role-switcher {
    background: #1E293B;
    color: #F8FAFC;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px dashed #475569;
}

.demo-role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.role-chip {
    background: #334155;
    color: #E2E8F0;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.role-chip:hover, .role-chip.current {
    background: var(--teal);
    color: #FFF;
    border-color: #2DD4BF;
}

/* ═══════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
    background: #071324;
    color: #94A3B8;
    margin-top: auto;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-accent {
    height: 3px;
    background: linear-gradient(90deg, #1E3A8A 0%, #0D9488 50%, #38BDF8 100%);
    width: 100%;
}

.footer-main {
    padding: 3.5rem 1.5rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* — Footer Brand — */
.footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.footer-brand-logo {
    height: 52px;
    width: auto;
    max-height: 52px;
    object-fit: contain;
}

.footer-brand-titles {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.footer-brand-title {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-family: 'Inter', -apple-system, sans-serif;
}

.footer-brand-sub {
    color: #2DD4BF;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.3;
}

.footer-about-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #94A3B8;
    margin-bottom: 1.5rem;
    max-width: 380px;
}

.footer-social-links {
    display: flex;
    gap: 0.65rem;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E1;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-social-links a:hover {
    background: #0D9488;
    color: #FFFFFF;
    border-color: #0D9488;
    transform: translateY(-2.5px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

/* — Footer Navigation Columns — */
.footer-heading {
    color: #FFFFFF;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid rgba(13, 148, 136, 0.4);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.86rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.footer-bullet {
    font-size: 0.68rem;
    color: #0D9488;
    opacity: 0.8;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-dot.scome { background: #3B82F6; }
.badge-dot.scope { background: #10B981; }
.badge-dot.scoph { background: #F59E0B; }
.badge-dot.scora { background: #EF4444; }
.badge-dot.score { background: #8B5CF6; }
.badge-dot.scorp { background: #06B6D4; }

.footer-links a:hover {
    color: #2DD4BF;
    padding-inline-start: 4px;
}

.footer-highlight-link {
    color: #38BDF8 !important;
    font-weight: 700;
}

/* — Footer Bottom Bar — */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: #64748B;
}

.footer-copy strong {
    color: #E2E8F0;
}

.footer-accreditations {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.accred-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #94A3B8;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.accred-badge i {
    color: #2DD4BF;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════ */

/* Large Tablets / Small Laptops (1100px and down) */
@media (max-width: 1100px) {
    .nav-anchor {
        padding: 0.45rem 0.65rem;
        font-size: 0.86rem;
    }
    .brand-acronym {
        font-size: 1.2rem;
    }
    .brand-fullname {
        font-size: 0.72rem;
        max-width: 180px;
    }
    .btn-action-join {
        padding: 0.48rem 0.95rem;
        font-size: 0.84rem;
    }
    .btn-action-login {
        padding: 0.44rem 0.85rem;
        font-size: 0.84rem;
    }
}

/* Tablet (992px and down) — Hide desktop nav, show mobile hamburger */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle-btn {
        display: flex;
    }
    .mobile-drawer {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .portal-layout {
        flex-direction: column;
    }
    .portal-sidebar {
        width: 100%;
    }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }
    .brand-fullname {
        display: none;
    }
    .brand-img {
        height: 44px;
    }
    .brand-acronym {
        font-size: 1.15rem;
    }
    .header-actions .btn-action-join {
        display: none; /* Accessible in mobile drawer */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-brand-lockup,
    .footer-heading {
        justify-content: flex-start;
    }
    .hero-title {
        font-size: 2rem;
    }
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
    .header-container {
        padding: 0.55rem 1rem;
    }
    .topbar-item {
        font-size: 0.72rem;
    }
    .brand-img {
        height: 38px;
    }
    .brand-acronym {
        font-size: 1.05rem;
    }
    .header-actions .btn-action-login {
        padding: 0.35rem 0.65rem;
        font-size: 0.78rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-accreditations {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════
   PHOTO GALLERY & MEDIA SHOWCASE STYLES
   ═══════════════════════════════════════════════ */
.gallery-item-wrap {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}
.gallery-item-wrap img {
    transition: transform 0.35s ease;
}
.gallery-item-wrap:hover img {
    transform: scale(1.07);
}
.gallery-item-wrap:hover .gallery-item-hover {
    opacity: 1 !important;
}

.article-content {
    font-size: 1.12rem;
    line-height: 1.95;
    color: var(--text-main);
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content h2, .article-content h3 {
    color: var(--primary-dark);
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-inline-start: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}


