/* ==========================================================================
   SRU CONNECT - GLOBAL CSS (Design Tokens, Shared Layout & Components)
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --font-primary: 'Noto Sans Thai', sans-serif;
    
    /* Academic & Trustworthy Premium Colors */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-card-border: rgba(15, 23, 42, 0.08);
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    
    /* Brand Accent Colors */
    --color-accent-blue: #0284c7;
    --color-accent-indigo: #4f46e5;
    --grad-primary: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    --grad-primary-hover: linear-gradient(135deg, #0369a1 0%, #4338ca 100%);
    --grad-text: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    
    /* Shadows & Borders */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 10px 15px -3px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
    --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    
    /* Border Radii */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Animations & Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Background Gradients */
.background-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.1;
    animation: float-around 28s infinite alternate ease-in-out;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.35) 0%, transparent 70%);
    top: -5%;
    left: -5%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: -6s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    top: 35%;
    left: 45%;
    transform: translate(-50%, -50%);
    animation-delay: -12s;
}

@keyframes float-around {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.02); }
    100% { transform: translate(-15px, -30px) scale(0.98); }
}

/* App Container Layout */
.app-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Footer Styling */
.app-footer {
    text-align: center;
    padding: 24px 20px 32px;
    margin-top: auto;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.app-footer p {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-weight: 400;
}

/* Compact Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    margin-top: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background: var(--grad-primary);
    border-radius: 50%;
}

.brand-title {
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--color-text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tab/Link button styling */
.nav-tab {
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-tab:hover {
    color: var(--color-accent-blue);
}

.nav-tab.active {
    color: var(--color-accent-blue);
    font-weight: 600;
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 15%;
    width: 70%;
    height: 2.5px;
    background: var(--color-accent-blue);
    transform: scaleX(0);
    transition: var(--transition-fast);
    transform-origin: center;
}

.nav-tab.active::after {
    transform: scaleX(1);
}

.nav-icon {
    width: 15px;
    height: 15px;
}

.nav-admin-btn {
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.5);
}

.nav-admin-btn::after {
    background: var(--color-accent-indigo) !important;
}

.nav-admin-btn.active {
    color: var(--color-accent-indigo);
    border-color: rgba(79, 70, 229, 0.15);
}

/* Hamburger toggle for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}

.hamburger {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text-primary);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--color-text-primary);
    left: 0;
    transition: var(--transition-fast);
}

.hamburger::before { top: -5px; }
.hamburger::after { top: 5px; }

.menu-toggle.open .hamburger { background: transparent; }
.menu-toggle.open .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.open .hamburger::after { transform: rotate(-45deg); top: 0; }

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin: 28px 0 40px 0;
}

/* Page Animations */
.page-fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headers */
.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(1.45rem, 4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.sub-section-title {
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    position: relative;
    padding-left: 12px;
}

.sub-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3.5px;
    background: var(--grad-primary);
    border-radius: 2px;
}

/* Button UI */
.btn {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-primary-sm {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: var(--grad-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--color-text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tab/Link button styling */
.nav-tab {
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-tab:hover {
    color: var(--color-accent-blue);
}

.nav-tab.active {
    color: var(--color-accent-blue);
    font-weight: 600;
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 15%;
    width: 70%;
    height: 2.5px;
    background: var(--color-accent-blue);
    transform: scaleX(0);
    transition: var(--transition-fast);
    transform-origin: center;
}

.nav-tab.active::after {
    transform: scaleX(1);
}

.nav-icon {
    width: 15px;
    height: 15px;
}

.nav-admin-btn {
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.5);
}

.nav-admin-btn::after {
    background: var(--color-accent-indigo) !important;
}

.nav-admin-btn.active {
    color: var(--color-accent-indigo);
    border-color: rgba(79, 70, 229, 0.15);
}

/* Hamburger toggle for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}

.hamburger {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text-primary);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--color-text-primary);
    left: 0;
    transition: var(--transition-fast);
}

.hamburger::before { top: -5px; }
.hamburger::after { top: 5px; }

.menu-toggle.open .hamburger { background: transparent; }
.menu-toggle.open .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.open .hamburger::after { transform: rotate(-45deg); top: 0; }

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin: 28px 0 40px 0;
}

/* Page Animations */
.page-fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headers */
.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(1.45rem, 4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.sub-section-title {
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    position: relative;
    padding-left: 12px;
}

.sub-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3.5px;
    background: var(--grad-primary);
    border-radius: 2px;
}

/* Button UI */
.btn {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-primary-sm {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: var(--grad-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary-sm:hover {
    background: var(--grad-primary-hover);
    transform: translateY(-1px);
}

.btn-secondary-sm {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: rgba(2, 132, 199, 0.05);
    color: var(--color-accent-blue);
    border: 1px solid rgba(2, 132, 199, 0.12);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary-sm:hover {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.25);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   SKELETON SHIMMER LOADING EFFECTS
   ========================================================================== */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-line {
    height: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-date { width: 30%; height: 10px; margin-bottom: 12px; }
.skeleton-title { width: 100%; height: 16px; margin-top: 8px; }
.skeleton-excerpt { width: 100%; height: 32px; margin-top: 12px; }
.skeleton-btn { width: 80px; height: 14px; margin-top: auto; }
.skeleton-circle { width: 22px; height: 22px; border-radius: 50%; }
.skeleton-date-small { width: 80px; height: 12px; }
.skeleton-title-list { width: 100%; height: 12px; }

/* ==========================================================================
   MODAL DIALOG STYLE
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-modal);
    position: relative;
    overflow: hidden;
    transform: scale(0.96) translateY(8px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.03);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-secondary);
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--color-text-primary);
}

.modal-close svg {
    width: 14px;
    height: 14px;
}

.modal-body {
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */
.hidden {
    display: none !important;
}

@media (max-width: 992px) {
    .navbar {
        padding: 10px 16px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-card-border);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
        z-index: 90;
    }
    
    .nav-menu.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-tab {
        padding: 10px 14px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .nav-tab::after {
        display: none; /* Disable indicator bottom-line on mobile drawer menu */
    }

    .nav-tab.active {
        background: rgba(2, 132, 199, 0.05);
    }
    
    .main-content {
        margin: 16px 0 24px 0;
    }

    .section-title {
        font-size: 1.35rem;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 0 12px;
    }
}

/* ==========================================================================
   FORM & ALERT STYLES (SHARED)
   ========================================================================== */
.form-alert {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
}

.form-alert.hidden {
    display: none !important;
}

.form-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.form-alert.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* ==========================================================================
SRU CONNECT - NEWS PAGE SPECIFIC STYLES
========================================================================== */

/* ==========================================================================
   SRU CONNECT - NEWS BANNER CAROUSEL
   ========================================================================== */
.news-banner-carousel {
    position: relative;
    width: 100%;
    height: 380px;
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 32px;
    transition: var(--transition-smooth);
}

.news-banner-carousel:hover {
    box-shadow: var(--shadow-lg), 0 0 24px rgba(2, 132, 199, 0.05);
    border-color: rgba(2, 132, 199, 0.15);
}

.banner-track {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide Styling */
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Split-screen layout for desktop */
.banner-img-side {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.banner-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}

.banner-slide.active .banner-img-side img {
    transform: scale(1.05); /* Slow Ken Burns effect */
}

/* Glassmorphism gradient background on image overlay for seamless split */
.banner-img-side::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 120px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--color-surface));
    pointer-events: none;
    z-index: 2;
}

.banner-content-side {
    width: 50%;
    height: 100%;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-surface);
    position: relative;
    z-index: 3;
}

.banner-date {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.banner-date::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent-blue);
    border-radius: 50%;
}

.banner-title {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-btn-read-more {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 650;
    color: white;
    background: var(--grad-primary);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
    transition: var(--transition-smooth);
}

.banner-btn-read-more:hover {
    background: var(--grad-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.25);
}

.banner-btn-read-more:hover .arrow-icon {
    transform: translateX(4px);
}

.banner-btn-read-more .arrow-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: var(--transition-fast);
}

/* Controls Styling */
.banner-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--color-card-border);
    color: var(--color-text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.banner-control:hover {
    background: white;
    color: var(--color-accent-blue);
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow: var(--shadow-md);
}

.banner-control.prev {
    left: 20px;
}

.banner-control.next {
    right: 20px;
}

.banner-control svg {
    width: 18px;
    height: 18px;
}

/* Indicators Styling */
.banner-dots {
    position: absolute;
    bottom: 20px;
    right: 48px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.banner-dot:hover {
    background: #94a3b8;
}

.banner-dot.active {
    width: 24px;
    background: var(--color-accent-blue);
}

/* Skeleton Loading layout for banner */
.skeleton-banner {
    display: flex;
    width: 100%;
    height: 100%;
    background: var(--color-surface);
}

.skeleton-banner-img {
    width: 50%;
    height: 100%;
}

.skeleton-banner-content {
    width: 50%;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.skeleton-banner-date {
    width: 20%;
    height: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.skeleton-banner-title {
    width: 80%;
    height: 24px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.skeleton-banner-excerpt {
    width: 100%;
    height: 60px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.skeleton-banner-btn {
    width: 110px;
    height: 38px;
    border-radius: var(--radius-sm);
}

/* Responsive adjustments for Carousel */
@media (max-width: 840px) {
    .news-banner-carousel {
        height: auto;
        min-height: 420px;
    }
    
    .banner-slide {
        flex-direction: column;
        position: relative;
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        transition: opacity 0.5s ease;
    }
    
    .banner-slide.active {
        opacity: 1;
        visibility: visible;
        height: auto;
    }
    
    .banner-img-side {
        width: 100%;
        height: 200px;
    }
    
    .banner-img-side::after {
        top: auto;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 60px;
        background: linear-gradient(to bottom, transparent, var(--color-surface));
    }
    
    .banner-content-side {
        width: 100%;
        height: auto;
        padding: 24px 24px 48px 24px;
    }
    
    .banner-control {
        top: 100px;
    }
    
    .banner-dots {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 18px;
    }

    .skeleton-banner {
        flex-direction: column;
    }

    .skeleton-banner-img {
        width: 100%;
        height: 200px;
    }

    .skeleton-banner-content {
        width: 100%;
        padding: 24px 24px 48px 24px;
    }
}

@media (max-width: 480px) {
    .news-banner-carousel {
        min-height: 440px;
    }
}

/* News List Item styling */
.news-list-section {
margin-bottom: 28px;
}

.news-list-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
flex-wrap: wrap;
gap: 12px;
}

.news-list-header .sub-section-title {
margin-bottom: 0;
}

.page-size-selector {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.85rem;
color: var(--color-text-secondary);
}

.page-size-select {
font-family: var(--font-primary);
font-size: 0.82rem;
font-weight: 500;
color: var(--color-text-primary);
background-color: var(--color-surface);
border: 1px solid var(--color-card-border);
border-radius: var(--radius-sm);
padding: 6px 30px 6px 12px;
cursor: pointer;
outline: none;
transition: var(--transition-fast);
/* Premium custom arrow styling */
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 12px;
}

.page-size-select:hover {
border-color: rgba(2, 132, 199, 0.3);
background-color: #f8fafc;
}

.page-size-select:focus {
border-color: var(--color-accent-blue);
box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.08);
background-color: #ffffff;
}

.news-list-container {
background: var(--color-surface);
border: 1px solid var(--color-card-border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
overflow: hidden;
}

.news-list-item {
display: flex;
align-items: center;
padding: 14px 20px;
border-bottom: 1px solid var(--color-card-border);
transition: var(--transition-fast);
gap: 16px;
}

.news-list-item:last-child {
border-bottom: none;
}

.news-list-item:hover {
background: rgba(2, 132, 199, 0.01);
}

.list-item-meta {
display: flex;
align-items: center;
gap: 12px;
min-width: 140px;
flex-shrink: 0;
}

.list-number {
font-size: 0.95rem;
font-weight: 700;
color: var(--color-text-muted);
}

.list-date {
font-size: 0.75rem;
color: var(--color-text-secondary);
background: #f1f5f9;
padding: 2px 6px;
border-radius: 4px;
}

.list-item-title-wrapper {
display: flex;
align-items: center;
gap: 10px;
flex-grow: 1;
overflow: hidden;
}

.list-item-title {
font-size: 0.9rem;
font-weight: 500;
color: var(--color-text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.badge-new {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
font-size: 0.65rem;
font-weight: 700;
padding: 1.5px 5.5px;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: 0.04em;
box-shadow: 0 2px 4px rgba(239, 68, 68, 0.18);
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
line-height: 1;
}

.list-item-btn {
font-family: var(--font-primary);
font-size: 0.8rem;
color: var(--color-accent-blue);
background: none;
border: none;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 3px;
flex-shrink: 0;
transition: var(--transition-fast);
}

.arrow-icon-sm {
width: 10px;
height: 10px;
transition: var(--transition-fast);
}

.list-item-btn:hover {
color: #0369a1;
}

.list-item-btn:hover .arrow-icon-sm {
transform: translateX(2px);
}

/* Pagination UI */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 6px;
margin-top: 24px;
}

.page-btn {
font-family: var(--font-primary);
font-size: 0.82rem;
font-weight: 500;
color: var(--color-text-secondary);
background: var(--color-surface);
border: 1px solid var(--color-card-border);
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
transition: var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
background: #f1f5f9;
color: var(--color-text-primary);
border-color: #cbd5e1;
}

.page-btn.active {
background: var(--color-accent-blue);
color: white;
border-color: var(--color-accent-blue);
box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.page-arrow {
background: var(--color-surface);
}

.page-arrow svg {
width: 14px;
height: 14px;
}

.page-arrow.disabled {
opacity: 0.35;
cursor: not-allowed;
}

/* News Modal Inner Content */
.news-modal-content {
display: flex;
flex-direction: column;
gap: 18px;
}

.modal-news-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.modal-news-img:hover {
    transform: scale(1.015);
    opacity: 0.93;
}

.modal-news-header {
display: flex;
flex-direction: column;
gap: 6px;
}

.modal-news-date {
font-size: 0.78rem;
color: var(--color-text-muted);
}

.modal-news-title {
font-size: 1.15rem;
font-weight: 700;
color: var(--color-text-primary);
line-height: 1.4;
}

.modal-news-body {
font-size: 0.88rem;
color: var(--color-text-secondary);
line-height: 1.6;
}

/* News Responsive Optimizations */
@media (max-width: 768px) {
.news-list-item {
flex-direction: column;
align-items: flex-start;
gap: 8px;
padding: 12px 16px;
}

.list-item-meta {
width: 100%;
justify-content: space-between;
min-width: 0;
}

.list-item-title-wrapper {
width: 100%;
flex-direction: column;
align-items: flex-start;
gap: 6px;
}

.list-item-title {
width: 100%;
white-space: normal;
overflow: visible;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

.list-item-btn {
align-self: flex-end;
}
}

@media (max-width: 480px) {
.featured-news-grid {
grid-template-columns: 1fr !important;
}
}



/* ==========================================================================
   DIRECTORY SECTIONS
   ========================================================================== */
/* ==========================================================================
   SRU CONNECT - TEACHER DIRECTORY PAGE SPECIFIC STYLES
   ========================================================================== */

/* Directory Navigation & Breadcrumbs */
.directory-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.btn-back {
    font-family: var(--font-primary);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--color-text-primary);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.back-icon {
    width: 12px;
    height: 12px;
    transition: var(--transition-fast);
}

.btn-back:hover {
    color: var(--color-accent-blue);
}

.btn-back:hover .back-icon {
    transform: translateX(-2px);
}

.nav-breadcrumbs {
    font-size: 0.86rem;
    color: var(--color-text-secondary);
}

/* Directory Dashboard Stats Grid (Uniform Row & Glassmorphism) */
.directory-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 0 20px rgba(79, 70, 229, 0.1);
}

.dashboard-card.active {
    background: rgba(2, 132, 199, 0.02);
    border-color: var(--color-accent-blue);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Glowing Neon Gradient Icons */
.dashboard-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-card:hover .dashboard-icon {
    transform: scale(1.08);
}

.dashboard-card:nth-child(1) .dashboard-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: white;
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.35));
}

.dashboard-card:nth-child(2) .dashboard-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    filter: drop-shadow(0 4px 10px rgba(79, 70, 229, 0.35));
}

.dashboard-card:nth-child(3) .dashboard-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.35));
}

.dashboard-card:nth-child(4) .dashboard-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.35));
}

.dashboard-icon svg {
    width: 22px;
    height: 22px;
}

.dashboard-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-value-container {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.dashboard-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.dashboard-unit {
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--color-text-secondary);
}

.dashboard-label {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    font-weight: 550;
    letter-spacing: -0.01em;
}

/* Bento-aligned Cohorts grid */
.cohorts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cohort-card {
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.cohort-card:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 72, 153, 0.2);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 0 20px rgba(236, 72, 153, 0.08);
}

.cohort-card:hover .cohort-badge {
    transform: scale(1.08);
}

.cohort-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 4px 10px rgba(236, 72, 153, 0.35));
}

/* Custom separation styles */
.dashboard-section-wrapper {
    margin-bottom: 24px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.08) 50%, rgba(15, 23, 42, 0) 100%);
    margin: 36px 0;
    border: none;
}

/* Future Cohort Card styling */
.cohort-card-future {
    border: 2.5px dashed rgba(148, 163, 184, 0.45) !important;
    background: rgba(248, 250, 252, 0.55) !important;
    box-shadow: none !important;
    cursor: default !important;
}

.cohort-card-future:hover {
    transform: none !important;
    border-color: rgba(148, 163, 184, 0.7) !important;
    box-shadow: none !important;
}

.cohort-badge-future {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    filter: drop-shadow(0 4px 10px rgba(100, 116, 139, 0.25)) !important;
}

.cohort-badge-future svg {
    color: white !important;
}

.cohort-year-future {
    background: #cbd5e1 !important;
    color: #475569 !important;
}

.future-text {
    font-size: 1.28rem;
    font-style: italic;
    color: #94a3b8;
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 14px;
}

.cohort-badge svg {
    width: 20px;
    height: 20px;
}

.cohort-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cohort-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cohort-year {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    background: #e2e8f0;
    padding: 1px 6px;
    border-radius: 4px;
    width: fit-content;
    font-weight: 500;
}

.cohort-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cohort-count-row {
    font-size: 1.38rem;
    color: var(--color-text-primary);
    font-weight: 800;
    margin-top: 6px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

/* Teachers Grid inside Cohort */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.teacher-card {
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
}

.teacher-card:hover {
    transform: translateY(-5px);
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 0 20px rgba(2, 132, 199, 0.08);
}

.teacher-avatar-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    border: 2.5px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.teacher-card:hover .teacher-avatar-container {
    transform: scale(1.08);
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.25);
}

.teacher-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info {
    flex-grow: 1;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.teacher-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    width: 100%;
}

.teacher-nickname {
    font-size: 0.84rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    width: 100%;
}

.teacher-position {
    font-size: 0.84rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    width: 100%;
}

.teacher-school-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 4px;
    color: var(--color-text-secondary);
    width: 100%;
    line-height: 1.4;
}

.school-icon {
    width: 12px;
    height: 12px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.teacher-school {
    font-size: 0.84rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

/* Skeletons for Directory */
.skeleton-cohort-badge { width: 44px; height: 44px; border-radius: var(--radius-sm); }
.skeleton-teacher-avatar { width: 160px; height: 160px; border-radius: 50%; }
.skeleton-teacher-card { align-items: center; text-align: center; }

.skeleton-teacher-name { width: 70%; height: 14px; margin: 0 auto 8px auto; }
.skeleton-teacher-nick { width: 40%; height: 12px; margin: 0 auto 12px auto; }
.skeleton-teacher-school { width: 80%; height: 12px; margin: 0 auto; }
.skeleton-teacher-btn { width: 100%; height: 32px; border-radius: var(--radius-sm); }

/* Modal Inner - Dashboard Stats Breakdown */
.stats-modal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-modal-header {
    border-bottom: 1px solid var(--color-card-border);
    padding-bottom: 16px;
    margin-bottom: 4px;
}

.stats-modal-title {
    font-size: 1.42rem;
    font-weight: 750;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-modal-title .modal-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-modal-title.schools-theme .modal-icon {
    background: rgba(79, 70, 229, 0.08);
    color: var(--color-accent-indigo);
}

.stats-modal-title.provinces-theme .modal-icon {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.stats-modal-title.areas-theme .modal-icon {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.stats-modal-title.teachers-theme .modal-icon {
    background: rgba(2, 132, 199, 0.08);
    color: var(--color-accent-blue);
}

.stats-modal-subtitle {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    margin-top: 6px;
    font-weight: 400;
}

.stats-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.stats-breakdown-item:hover {
    background: #f1f5f9;
}

.stats-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.stats-item-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.stats-item-value-box {
    font-weight: 700;
    color: var(--color-accent-blue);
    font-size: 0.95rem;
}

.stats-progress-track {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 50px;
    overflow: hidden;
}

.stats-progress-bar {
    height: 100%;
    border-radius: 50px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gradients for different themes */
.schools-theme .stats-progress-bar {
    background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%);
}

.provinces-theme .stats-progress-bar {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.areas-theme .stats-progress-bar {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.teachers-theme .stats-progress-bar {
    background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
}

/* Grid layout for list of schools */
.stats-schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.stats-school-row {
    background: #f8fafc;
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.stats-school-row:hover {
    background: #f1f5f9;
    border-color: rgba(79, 70, 229, 0.15);
}

.school-row-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.school-row-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.school-row-teachers {
    background: rgba(79, 70, 229, 0.08);
    color: var(--color-accent-indigo);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

/* Stats Modal Teacher List Styles */
.stats-section-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-card-border);
    padding-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-click-tip {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--color-accent-blue);
}

.stats-teachers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar for list */
.stats-teachers-list::-webkit-scrollbar {
    width: 6px;
}
.stats-teachers-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.stats-teachers-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.stats-teachers-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.stats-teacher-row {
    background: #f8fafc;
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.stats-teacher-row:hover {
    background: #f1f5f9;
    border-color: rgba(2, 132, 199, 0.25);
    transform: translateY(-1px);
}

.stats-teacher-avatar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-teacher-row-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
}

.stats-teacher-row-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.stats-teacher-row-school {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 1.5px;
}

.stats-teacher-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-teacher-row-badge {
    background: rgba(2, 132, 199, 0.08);
    color: var(--color-accent-blue);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.stats-teacher-row-chevron {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
}

.btn-modal-back {
    font-family: var(--font-primary);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-accent-blue);
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.12);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    width: fit-content;
    transition: var(--transition-fast);
}

.btn-modal-back:hover {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.25);
    transform: translateX(-2px);
}

.stats-modal-footer-actions {
    margin-top: 12px;
}

/* Modal Inner - Teacher Profile */
.teacher-profile {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-header {
    display: flex;
    gap: 18px;
    align-items: center;
}

.profile-avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f1f5f9;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
    flex-shrink: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-tag {
    font-size: 0.78rem;
    color: var(--color-accent-indigo);
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
    font-weight: 500;
}

.profile-name {
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.profile-school {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section {
    border-top: 1px solid var(--color-card-border);
    padding-top: 16px;
}

.detail-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.detail-value {
    font-size: 0.92rem;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.contact-value {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-icon {
    width: 12px;
    height: 12px;
    color: var(--color-accent-blue);
}

/* Responsive adjustments for directory */
@media (max-width: 992px) {
    .directory-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
    .cohorts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .cohort-card {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }
    .dashboard-card {
        padding: 14px;
        gap: 12px;
    }
    .dashboard-value {
        font-size: 1.5rem;
    }
    .dashboard-icon {
        width: 40px;
        height: 40px;
    }
    .dashboard-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .directory-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .cohorts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .teachers-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   CONTACT SECTIONS
   ========================================================================== */
/* ==========================================================================
   SRU CONNECT - CONTACT US SPECIFIC STYLES
   ========================================================================== */

.contact-section-wrapper {
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-card, .contact-map-card {
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(2, 132, 199, 0.06);
    color: var(--color-accent-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(2, 132, 199, 0.1));
}

.contact-detail-icon svg {
    width: 18px;
    height: 18px;
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-text-label {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.contact-text-value {
    font-size: 0.88rem;
    color: var(--color-text-primary);
    line-height: 1.5;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-card-border);
    margin-top: 8px;
}

.map-container iframe {
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* ==========================================================================
   ADMIN SECTIONS
   ========================================================================== */
/* ==========================================================================
   SRU CONNECT - ADMIN LOGIN SPECIFIC STYLES
   ========================================================================== */

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.login-card {
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(79, 70, 229, 0.06);
    color: var(--color-accent-indigo);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 12px auto;
}

.login-lock-icon {
    width: 24px;
    height: 24px;
}

.login-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 300;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
}

.input-with-icon input {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-sm);
    outline: none;
    background: #f8fafc;
    color: var(--color-text-primary);
    transition: var(--transition-fast);
}

.input-with-icon input:focus {
    border-color: var(--color-accent-indigo);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.btn-login {
    background: var(--grad-primary);
    color: white;
    padding: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.12);
    margin-top: 6px;
}

.btn-login:hover {
    background: var(--grad-primary-hover);
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.2);
}


/* Mobile responsive login card adjustment */
@media (max-width: 480px) {
    .login-card {
        padding: 20px 16px;
    }
}

/* ==========================================================================
   SRU CONNECT - ADMIN DASHBOARD & CRUD STYLES
   ========================================================================== */

.admin-dashboard-section {
    margin-top: 24px;
}

.admin-dashboard-card {
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    margin-bottom: 24px;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 20px;
    margin-bottom: 20px;
    gap: 16px;
}

.dashboard-main-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.dashboard-welcome {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.btn-logout-danger {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 14px;
    transition: var(--transition-fast);
}

.btn-logout-danger:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.18);
}

.logout-icon {
    width: 14px;
    height: 14px;
}

/* Tab container */
.dashboard-tabs-container {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 1px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.dashboard-tabs-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.dashboard-tab-btn {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: var(--transition-fast);
}

.dashboard-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent-indigo);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.dashboard-tab-btn:hover {
    color: var(--color-accent-indigo);
    background: rgba(79, 70, 229, 0.03);
}

.dashboard-tab-btn.active {
    color: var(--color-accent-indigo);
    font-weight: 600;
}

.dashboard-tab-btn.active::after {
    transform: scaleX(1);
}

.tab-icon {
    width: 14px;
    height: 14px;
}

/* Tab contents */
.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.active {
    display: block;
    animation: fadeInDashboard 0.3s ease-out;
}

@keyframes fadeInDashboard {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.tab-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.tab-header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* Table styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #fafafb;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.admin-table th {
    background: #f1f5f9;
    color: var(--color-text-primary);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    color: var(--color-text-secondary);
    vertical-align: middle;
    background: white;
}

.admin-table tbody tr:hover td {
    background: #f8fafc;
}

.admin-table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: block;
}

/* Action buttons in tables */
.actions-cell {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-action {
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.btn-action-edit {
    background: rgba(2, 132, 199, 0.08);
    color: var(--color-accent-blue);
    border: 1px solid rgba(2, 132, 199, 0.12);
}

.btn-action-edit:hover {
    background: var(--color-accent-blue);
    color: white;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.15);
}

.btn-action-delete {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.btn-action-delete:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.15);
}

/* Forms in dashboard */
.admin-dashboard-form {
    background: #f8fafc;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.form-control {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--color-text-primary);
    background: white;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.form-control-sm {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    padding: 6px 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-sm);
    outline: none;
    background: white;
    color: var(--color-text-primary);
    cursor: pointer;
}

.form-divider {
    border: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin: 20px 0;
}

.form-section-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 14px;
}

.form-actions-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn-save-contact {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.15);
}

/* Reports Tab & Export Dashboard */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 12px;
}

.report-export-card {
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.report-export-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Media Queries for Reports Dashboard */
@media (max-width: 992px) {
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Modals custom styling */
.modal-title-custom {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 12px;
}

.modal-form-custom .form-control {
    width: 100%;
}

.form-actions-modal {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-cancel {
    background: rgba(15, 23, 42, 0.05);
    color: var(--color-text-secondary);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-cancel:hover {
    background: rgba(15, 23, 42, 0.1);
}

.btn-save {
    background: var(--grad-primary);
    color: white;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .admin-dashboard-card {
        padding: 20px 16px;
    }
    .flex-column-mobile {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .form-row-2, .form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .tab-header-controls {
        width: 100%;
        justify-content: space-between;
    }
    .dashboard-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    #adminLogoutBtn {
        align-self: flex-end;
    }
}

/* Custom Inactivity Alert Styles */
.modal-card-alert {
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.alert-icon-box {
    animation: pulseRed 2s infinite ease-in-out;
}

@keyframes pulseRed {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}


