/* ============================================
   REO Lubombo - Main Stylesheet
   Regional Education Office - Lubombo Region
   Clean, Professional Government Website
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e3347;
    --secondary: #e67e22;
    --secondary-light: #f39c12;
    --accent: #27ae60;
    --dark: #2c3e50;
    --gray-900: #1a1a2e;
    --gray-700: #495057;
    --gray-500: #6c757d;
    --gray-400: #adb5bd;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #3498db;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--gray-700);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    margin-left: 15px;
}

.top-bar a:hover {
    color: var(--secondary-light);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left i {
    margin-right: 5px;
    color: var(--secondary-light);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Header / Navbar ---------- */
.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.15rem;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
}

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

.nav-menu ul {
    display: flex;
    gap: 5px;
}

.nav-menu ul li a {
    display: block;
    padding: 24px 15px;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 1.5rem;
    color: var(--dark);
}

/* ---------- Hero Image Slider ---------- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.hero-slider .slides-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slider .slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark overlay on each slide */
.hero-slider .slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14,51,71,0.85) 0%, rgba(26,82,118,0.65) 50%, rgba(41,128,185,0.45) 100%);
    z-index: 1;
}

/* Slide content */
.hero-slider .slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .slide-content .container {
    text-align: center;
}

.hero-slider .slide-content h2 {
    color: var(--secondary-light);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(25px);
    animation: slideUp 0.8s 0.3s forwards;
}

.hero-slider .slide-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(25px);
    animation: slideUp 0.8s 0.5s forwards;
}

.hero-slider .slide-content p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(25px);
    animation: slideUp 0.8s 0.7s forwards;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.hero-slider .slide-content .hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(25px);
    animation: slideUp 0.8s 0.9s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide non-active slide content */
.hero-slider .slide:not(.active) .slide-content h2,
.hero-slider .slide:not(.active) .slide-content h1,
.hero-slider .slide:not(.active) .slide-content p,
.hero-slider .slide:not(.active) .slide-content .hero-buttons {
    opacity: 0;
    transform: translateY(25px);
    animation: none;
}

.hero-slider .slide.active .slide-content h2,
.hero-slider .slide.active .slide-content h1,
.hero-slider .slide.active .slide-content p,
.hero-slider .slide.active .slide-content .hero-buttons {
    animation: slideUp 0.8s forwards;
}

.hero-slider .slide.active .slide-content h2 { animation-delay: 0.3s; }
.hero-slider .slide.active .slide-content h1 { animation-delay: 0.5s; }
.hero-slider .slide.active .slide-content p { animation-delay: 0.7s; }
.hero-slider .slide.active .slide-content .hero-buttons { animation-delay: 0.9s; }

/* Slider navigation arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: var(--secondary);
    border-color: var(--secondary-light);
    transform: scale(1.2);
}

.slider-dots .dot:hover {
    background: rgba(255,255,255,0.7);
}

/* Responsive slider */
@media (max-width: 992px) {
    .hero-slider { height: 450px; }
    .hero-slider .slide-content h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .hero-slider { height: 380px; }
    .hero-slider .slide-content h1 { font-size: 1.8rem; }
    .hero-slider .slide-content h2 { font-size: 1.1rem; }
    .hero-slider .slide-content p { font-size: 0.95rem; }
    .slider-arrow { width: 40px; height: 40px; font-size: 1rem; }
    .slider-arrow.prev { left: 12px; }
    .slider-arrow.next { right: 12px; }
}

@media (max-width: 480px) {
    .hero-slider { height: 320px; }
    .hero-slider .slide-content h1 { font-size: 1.4rem; }
    .hero-slider .slide-content h2 { font-size: 1rem; }
    .hero-slider .slide-content .hero-buttons { flex-direction: column; align-items: center; }
    .slider-arrow { width: 34px; height: 34px; font-size: 0.85rem; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ---------- Page Header (Sub-pages) ---------- */
.page-header {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/banner.png') center center / cover no-repeat;
    margin-top: -1px;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14,51,71,0.88) 0%, rgba(26,82,118,0.72) 50%, rgba(41,128,185,0.55) 100%);
    z-index: 1;
}
.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}
.page-header h1 {
    color: white;
    font-size: 2.6rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.page-header .breadcrumb {
    font-size: 0.9rem;
    opacity: 0.85;
}
.page-header .breadcrumb a {
    color: rgba(255,255,255,0.85);
}
.page-header .breadcrumb a:hover {
    color: var(--secondary-light);
}

@media (max-width: 768px) {
    .page-header { min-height: 220px; }
    .page-header h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
    .page-header { min-height: 180px; }
    .page-header h1 { font-size: 1.6rem; }
}

/* ---------- Section Styles ---------- */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--gray-100);
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title .underline {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ---------- Quick Links / Services Grid ---------- */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.quick-link-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.quick-link-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 18px;
}

.quick-link-card h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.quick-link-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ---------- News Cards ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.news-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.news-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 100%);
    z-index: 1;
}

.news-card-image .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.news-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-body .date {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.news-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-body h3 a {
    color: var(--dark);
}

.news-card-body h3 a:hover {
    color: var(--primary);
}

.news-card-body p {
    color: var(--gray-500);
    font-size: 0.9rem;
    flex: 1;
}

.news-card-body .read-more {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

.news-card-body .read-more:hover {
    color: var(--secondary);
}

/* Featured news */
.news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.news-featured .news-card:first-child {
    grid-row: span 1;
}

.news-featured .news-card:first-child .news-card-image {
    height: 250px;
}

/* ---------- Construction / School Project Card ---------- */
.news-card-construction {
    border: 2px solid #2e7d32;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(46, 125, 50, 0.15);
    transition: var(--transition);
}

.news-card-construction:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.25);
    border-color: #1b5e20;
}

.news-card-construction .news-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-construction .news-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(46, 125, 50, 0.08) 0%, rgba(27, 94, 32, 0.2) 100%);
    z-index: 1;
}

.news-card-construction .news-card-body {
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f8e9 100%);
}

.news-card-construction .news-card-body h3 {
    color: #1b5e20;
    font-size: 1.2rem;
    line-height: 1.5;
}

.news-card-construction .news-card-body h3 a {
    color: #1b5e20;
}

.news-card-construction .news-card-body h3 a:hover {
    color: #2e7d32;
}

.news-card-construction .news-card-body .read-more {
    color: #2e7d32;
    font-weight: 700;
}

.news-card-construction .news-card-body .read-more:hover {
    color: #1b5e20;
}

/* ---------- Stats ---------- */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--secondary-light);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ---------- Events List ---------- */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.event-item:hover {
    box-shadow: var(--shadow-md);
}

.event-date {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    text-align: center;
    min-width: 90px;
}

.event-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-date .year {
    font-size: 0.75rem;
    opacity: 0.7;
}

.event-info {
    padding: 18px 25px;
    flex: 1;
}

.event-info h4 {
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.event-info .venue {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.event-info .venue i {
    margin-right: 5px;
    color: var(--primary-light);
}

/* ---------- Content Page ---------- */
.content-page {
    padding: 50px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.content-main {
    line-height: 1.8;
}

.content-main h2 {
    color: var(--primary);
    font-size: 1.6rem;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

.content-main h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin: 25px 0 12px;
}

.content-main p {
    margin-bottom: 15px;
    color: var(--gray-700);
}

.content-main ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.content-main ul li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--gray-700);
    font-size: 0.9rem;
}

.sidebar-widget ul li a:hover {
    color: var(--primary);
}

/* ---------- Schools Table ---------- */
.schools-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.schools-filters select,
.schools-filters input {
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-main);
    background: var(--white);
    color: var(--gray-700);
}

.schools-filters select:focus,
.schools-filters input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.data-table thead {
    background: var(--primary);
    color: var(--white);
}

.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.data-table tbody tr:hover {
    background: var(--gray-100);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary { background: rgba(26,82,118,0.1); color: var(--primary); }
.badge-secondary { background: rgba(230,126,34,0.1); color: var(--secondary); }
.badge-success { background: rgba(39,174,96,0.1); color: var(--accent); }

/* ---------- Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    margin-bottom: 15px;
}

.contact-info-card .icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.contact-info-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-main);
    color: var(--gray-700);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}

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

/* ---------- Departments Grid ---------- */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.department-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.department-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.department-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.department-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.department-card .dept-head {
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-500);
}

.department-card .dept-head strong {
    color: var(--dark);
}

/* ---------- Staff Grid ---------- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.staff-card {
    background: var(--white);
    border-radius: var(--radius-md);
    text-align: center;
    padding: 30px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.staff-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.staff-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.staff-card .position {
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.staff-card .department {
    color: var(--gray-400);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ---------- Downloads ---------- */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.download-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.download-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-item-info .file-icon {
    width: 45px;
    height: 45px;
    background: rgba(26,82,118,0.08);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.download-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.download-item-info p {
    color: var(--gray-400);
    font-size: 0.8rem;
}

/* ============================================
   Downloads Page — Professional Document Cards
   ============================================ */

/* Hero Introduction */
.dl-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 32px 36px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26, 82, 118, 0.25);
}

.dl-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.dl-hero-text {
    flex: 1;
}

.dl-hero-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.dl-hero-text p {
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 560px;
}

.dl-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.dl-stat {
    text-align: center;
}

.dl-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.dl-stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.7;
    margin-top: 2px;
}

.dl-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.25);
}

/* Filter Tabs */
.dl-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dl-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.dl-filter-btn i {
    font-size: 0.8rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.dl-filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(26, 82, 118, 0.04);
}

.dl-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(26, 82, 118, 0.25);
}

.dl-filter-btn.active i {
    color: rgba(255,255,255,0.85);
}

/* Document Cards Grid */
.dl-documents-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Individual Document Card */
.dl-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    gap: 24px;
}

.dl-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.dl-card-left {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

/* PDF Icon */
.dl-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.dl-card:hover .dl-card-icon {
    transform: scale(1.05);
}

.dl-card-icon.forms {
    background: #FFF7ED;
    color: #C2410C;
}

.dl-card-icon.curriculum {
    background: #EFF6FF;
    color: #1D4ED8;
}

.dl-card-icon.inspection {
    background: #ECFDF5;
    color: #047857;
}

/* Card Info */
.dl-card-info {
    flex: 1;
    min-width: 0;
}

.dl-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.dl-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dl-badge.forms {
    background: #FFF7ED;
    color: #9A3412;
}

.dl-badge.curriculum {
    background: #EFF6FF;
    color: #1E40AF;
}

.dl-badge.inspection {
    background: #ECFDF5;
    color: #065F46;
}

.dl-file-type {
    font-size: 0.78rem;
    color: var(--gray-500);
}

.dl-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 5px;
    line-height: 1.35;
}

.dl-card-desc {
    font-size: 0.87rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin: 0;
}

/* Download Button */
.dl-card-actions {
    flex-shrink: 0;
}

.dl-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.dl-btn-download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.dl-btn-download:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(26, 82, 118, 0.35);
    color: var(--white);
    transform: translateY(-1px);
}

.dl-btn-download:hover::before {
    opacity: 1;
}

.dl-btn-download:active {
    transform: translateY(0);
}

/* Empty State */
.dl-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.dl-empty-state i {
    font-size: 2.5rem;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.dl-empty-state h3 {
    font-size: 1.15rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.dl-empty-state p {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Help Bar */
.dl-help-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding: 18px 24px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    gap: 16px;
    flex-wrap: wrap;
}

.dl-help-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--gray-700);
}

.dl-help-bar-left i {
    color: var(--primary-light);
    font-size: 1rem;
}

.dl-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: var(--white);
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.dl-help-btn:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(26, 82, 118, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .dl-hero {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 20px;
    }

    .dl-hero-text p {
        max-width: 100%;
    }

    .dl-hero-stats {
        justify-content: center;
    }

    .dl-card {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 16px;
    }

    .dl-card-actions {
        display: flex;
        justify-content: flex-end;
    }

    .dl-filters {
        justify-content: center;
    }

    .dl-help-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ---------- Pagination ---------- */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    gap: 5px;
}

.pagination ul li a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
}

.pagination ul li a:hover,
.pagination ul li.active a {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ---------- News Detail ---------- */
.news-detail {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-hero {
    width: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    display: flex;
    align-items: flex-end;
}

.news-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}

.news-detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 35px;
    color: white;
}

.news-detail-hero-content h1 {
    font-size: 1.7rem;
    color: white;
    margin: 12px 0 14px;
    line-height: 1.35;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.news-detail-hero-content .badge {
    background: var(--secondary);
    padding: 5px 14px;
    font-size: 0.78rem;
}

.news-detail-hero-content .news-meta i {
    color: rgba(255,255,255,0.7) !important;
}

.news-detail .news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--gray-500);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.news-detail .news-meta i {
    margin-right: 5px;
    color: var(--primary-light);
}

.news-detail .news-content {
    line-height: 1.9;
    font-size: 1.02rem;
}

.news-detail .news-content p {
    margin-bottom: 18px;
}

.news-detail .news-content h2,
.news-detail .news-content h3 {
    margin: 30px 0 15px;
}

.news-detail .news-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.news-detail .news-content ul li {
    margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.75);
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-about p {
    margin-bottom: 15px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-light);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact ul li i {
    color: var(--secondary-light);
    margin-top: 4px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ---------- Alert / Flash Messages ---------- */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(39,174,96,0.1);
    border-color: var(--success);
    color: #1a7a3c;
}

.alert-error {
    background: rgba(231,76,60,0.1);
    border-color: var(--danger);
    color: #c0392b;
}

.alert-info {
    background: rgba(52,152,219,0.1);
    border-color: var(--info);
    color: #1a6fa0;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 997;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.back-to-top.visible {
    display: flex;
}

/* ============================================
   HOMEPAGE-SPECIFIC SECTIONS
   ============================================ */

/* ---------- Mission & Vision ---------- */
.home-mv-section {
    padding: 70px 0;
    background: var(--white);
}
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.mv-card {
    padding: 40px 35px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.mv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}
.mission-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
}
.vision-card {
    background: linear-gradient(135deg, var(--secondary) 0%, #d35400 100%);
    color: white;
}
.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}
.mv-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
}
.mv-card h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}
.mv-card p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.92;
    position: relative;
    z-index: 1;
}

/* ---------- Impact Section ---------- */
.home-impact-section {
    padding: 80px 0;
    background: var(--gray-100);
}
.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.section-label {
    display: inline-block;
    background: rgba(26,82,118,0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
}
.impact-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.3;
}
.impact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.impact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.6;
}
.impact-icon {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.impact-image {
    position: relative;
}
.impact-img-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    position: relative;
}
.impact-img-frame img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.impact-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    color: white;
    padding: 30px 25px 20px;
    font-size: 0.9rem;
    font-style: italic;
}

/* ---------- Homepage Stats Section ---------- */
.home-stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.home-stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.home-stats-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.home-stats-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    position: relative;
    z-index: 1;
}
.home-stat-item {
    text-align: center;
    padding: 10px 20px;
}
.home-stat-number {
    color: var(--secondary-light);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}
.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.7;
}
.home-stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.home-stat-icon {
    color: rgba(255,255,255,0.15);
    font-size: 2.5rem;
    margin-top: 8px;
}
.home-stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.15);
}

/* ---------- Core Values ---------- */
.home-values-section {
    padding: 80px 0;
    background: var(--white);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.value-card {
    text-align: center;
    padding: 35px 25px 30px;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.value-card:hover::before {
    transform: scaleX(1);
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    border-color: transparent;
}
.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(41,128,185,0.25);
    transition: var(--transition);
}
.value-card:hover .value-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(41,128,185,0.35);
}
.value-card h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.value-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---------- Departments Section ---------- */
.home-departments-section {
    padding: 80px 0;
    background: var(--gray-100);
}
.dept-leader-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 25px 35px;
    border-radius: var(--radius-lg);
    margin-bottom: 35px;
    box-shadow: 0 8px 30px rgba(14,51,71,0.2);
}
.reo-photo-container {
    flex-shrink: 0;
    text-align: center;
}
.reo-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.reo-photo-caption {
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}
.dept-leader-info h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.dept-leader-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}
.dept-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.dept-card-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.dept-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: transparent;
}
.dept-card-img {
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 2rem;
    position: relative;
}
.dept-card-item:nth-child(2) .dept-card-img { background: linear-gradient(135deg, #1a6e4e, #27ae60); }
.dept-card-item:nth-child(3) .dept-card-img { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.dept-card-item:nth-child(4) .dept-card-img { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.dept-card-item:nth-child(5) .dept-card-img { background: linear-gradient(135deg, #d35400, #e67e22); }
.dept-card-item:nth-child(6) .dept-card-img { background: linear-gradient(135deg, #2980b9, #3498db); }
.dept-card-item:nth-child(7) .dept-card-img { background: linear-gradient(135deg, #16a085, #1abc9c); }
.dept-card-item:nth-child(8) .dept-card-img { background: linear-gradient(135deg, #2c3e50, #34495e); }
.dept-card-item:nth-child(9) .dept-card-img { background: linear-gradient(135deg, #7f8c8d, #95a5a6); }

.dept-card-body {
    padding: 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.dept-card-body h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.dept-services {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1;
}
.dept-services li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.88rem;
    color: var(--gray-600);
}
.dept-services li i {
    color: var(--accent);
    font-size: 0.7rem;
    flex-shrink: 0;
}
.dept-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-light);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}
.dept-card-link:hover {
    color: var(--secondary);
    gap: 10px;
}

/* ---------- News & Events (Homepage Layout) ---------- */
.home-news-events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.home-ne-column h3.home-ne-heading {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}
.home-news-list, .home-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.home-news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.home-news-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}
.home-news-date {
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 55px;
    flex-shrink: 0;
}
.home-news-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}
.home-news-day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}
.home-news-info h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.4;
}
.home-news-info p {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
}
.home-event-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.home-event-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}
.home-event-date {
    background: var(--secondary);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 55px;
    flex-shrink: 0;
}
.home-event-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}
.home-event-day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}
.home-event-info h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
}
.home-event-info p {
    font-size: 0.82rem;
    color: var(--gray-500);
}
.home-event-info p i {
    margin-right: 5px;
    color: var(--primary-light);
}

/* ---------- Homepage Responsive ---------- */
@media (max-width: 992px) {
    .mv-grid { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr; gap: 30px; }
    .impact-img-frame img { height: 300px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .dept-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .home-stat-divider { display: none; }
}

@media (max-width: 768px) {
    .home-mv-section { padding: 50px 0; }
    .mv-card { padding: 30px 25px; }
    .home-impact-section { padding: 60px 0; }
    .home-stats-section { padding: 40px 0; }
    .home-stat-number { font-size: 2.2rem; }
    .home-stat-label { font-size: 0.8rem; }
    .home-values-section { padding: 60px 0; }
    .values-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .value-card { padding: 25px 18px; }
    .home-departments-section { padding: 60px 0; }
    .dept-cards-grid { grid-template-columns: 1fr; }
    .dept-leader-banner { padding: 20px 25px; flex-direction: column; text-align: center; }
    .reo-photo { width: 120px; height: 120px; }
    .home-news-events-grid { grid-template-columns: 1fr; gap: 30px; }
    .impact-content h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .values-grid { grid-template-columns: 1fr; }
    .impact-img-frame img { height: 220px; }
    .home-stat-number { font-size: 1.8rem; }
}

/* ============================================
   About Page — Department Detail Sections
   ============================================ */
.dept-detail-section { margin-top: 50px; }
.dept-detail-section > h2 {
    text-align: center; font-size: 2rem; color: var(--primary-dark);
    margin-bottom: 8px;
}
.dept-detail-section > .dept-intro {
    text-align: center; color: var(--gray-700); font-size: 1.05rem;
    max-width: 700px; margin: 0 auto 40px auto;
}

/* Individual department card */
.dept-detail-card {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 35px;
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.3s ease;
}
.dept-detail-card:hover { box-shadow: var(--shadow-lg); }

.dept-detail-header {
    padding: 28px 35px; color: var(--dark); position: relative;
    border-bottom: 3px solid var(--primary);
}
.dept-detail-header h3 { font-size: 1.5rem; margin-bottom: 4px; color: #1a1a1a; }
.dept-detail-header p { font-size: 0.95rem; line-height: 1.5; color: var(--gray-700); }

.dept-detail-body { padding: 35px; }

/* Mission / Vision highlight boxes */
.dept-mv-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px;
}
.dept-mv-box {
    padding: 22px 25px; border-radius: var(--radius-md); border-left: 4px solid;
}
.dept-mv-box.mission {
    background: #eaf2f8; border-color: #2980b9;
}
.dept-mv-box.vision {
    background: #eafaf1; border-color: #27ae60;
}
.dept-mv-box h4 { font-size: 1rem; margin-bottom: 8px; }
.dept-mv-box.mission h4 { color: #1a5276; }
.dept-mv-box.vision h4  { color: #117a65; }
.dept-mv-box p { font-size: 0.92rem; color: var(--gray-700); line-height: 1.6; }

/* Sub-sections inside a department */
.dept-sub-section { margin-bottom: 28px; }
.dept-sub-section:last-child { margin-bottom: 0; }
.dept-sub-section > h4 {
    font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 2px solid var(--gray-200);
}

/* Cadre / two-column list layout */
.dept-cadre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.dept-cadre-col h5 {
    font-size: 1rem; color: var(--primary); margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.dept-cadre-col h5::before {
    content: ''; display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; background: var(--secondary);
}
.dept-cadre-col ul {
    list-style: none; padding: 0;
}
.dept-cadre-col ul li {
    position: relative; padding-left: 22px; margin-bottom: 8px;
    font-size: 0.92rem; color: var(--gray-700); line-height: 1.5;
}
.dept-cadre-col ul li::before {
    content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: bold;
}

/* Programme tags */
.dept-programme-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.dept-programme-tag {
    background: var(--gray-100); border: 1px solid var(--gray-300);
    padding: 8px 16px; border-radius: 20px; font-size: 0.88rem;
    color: var(--primary-dark); display: flex; align-items: center; gap: 6px;
}
.dept-programme-tag i { color: var(--secondary); }

/* Curriculum highlights */
.dept-curriculum-list { list-style: none; padding: 0; }
.dept-curriculum-list li {
    position: relative; padding: 12px 16px 12px 48px; margin-bottom: 8px;
    background: var(--gray-100); border-radius: var(--radius-sm); font-size: 0.92rem;
    color: var(--gray-700); line-height: 1.5;
}
.dept-curriculum-list li .hl-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 1rem; color: var(--secondary);
}

/* Process / Steps (Accounts FPE) */
.dept-steps { list-style: none; padding: 0; counter-reset: step; }
.dept-steps li {
    counter-increment: step; position: relative; padding: 18px 18px 18px 65px;
    margin-bottom: 12px; background: var(--gray-100); border-radius: var(--radius-md);
    border-left: 4px solid var(--primary); font-size: 0.92rem; color: var(--gray-700); line-height: 1.5;
}
.dept-steps li::before {
    content: counter(step); position: absolute; left: 16px; top: 18px;
    width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 0.9rem;
}

/* Key duties list */
.dept-duties-list { list-style: none; padding: 0; }
.dept-duties-list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 0; border-bottom: 1px solid var(--gray-200);
    font-size: 0.92rem; color: var(--gray-700); line-height: 1.5;
}
.dept-duties-list li:last-child { border-bottom: none; }
.dept-duties-list li strong { color: var(--primary-dark); min-width: 160px; flex-shrink: 0; }

/* Purpose / three-pillar grid */
.dept-purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.dept-purpose-item {
    background: var(--gray-100); padding: 20px; border-radius: var(--radius-md);
    text-align: center; border-top: 3px solid var(--primary);
}
.dept-purpose-item i { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.dept-purpose-item h5 { font-size: 0.95rem; color: var(--primary-dark); margin-bottom: 6px; }
.dept-purpose-item p { font-size: 0.85rem; color: var(--gray-500); }

/* FPE info banner */
.dept-fpe-banner {
    background: linear-gradient(135deg, #eafaf1, #d5f5e3);
    padding: 25px 30px; border-radius: var(--radius-md);
    border: 1px solid #a9dfbf; margin-bottom: 25px;
}
.dept-fpe-banner h4 { color: #117a65; margin-bottom: 10px; font-size: 1.05rem; }
.dept-fpe-banner ul {
    list-style: none; padding: 0;
}
.dept-fpe-banner ul li {
    position: relative; padding-left: 22px; margin-bottom: 6px;
    font-size: 0.92rem; color: var(--gray-700); line-height: 1.5;
}
.dept-fpe-banner ul li::before {
    content: '\2713'; position: absolute; left: 0; color: #27ae60; font-weight: bold;
}

/* TRC highlight box */
.dept-trc-box {
    background: linear-gradient(135deg, #fef9e7, #fdebd0);
    padding: 25px 30px; border-radius: var(--radius-md);
    border: 1px solid #f5cba7; margin-bottom: 25px;
}
.dept-trc-box h4 { color: #b9770e; margin-bottom: 8px; font-size: 1.05rem; }
.dept-trc-box p { font-size: 0.92rem; color: var(--gray-700); line-height: 1.6; }

/* Responsive departments */
@media (max-width: 768px) {
    .dept-mv-grid { grid-template-columns: 1fr; }
    .dept-cadre-grid { grid-template-columns: 1fr; }
    .dept-purpose-grid { grid-template-columns: 1fr; }
    .dept-detail-header { padding: 22px 25px; }
    .dept-detail-body { padding: 25px 20px; }
    .dept-duties-list li { flex-direction: column; gap: 4px; }
    .dept-duties-list li strong { min-width: unset; }
}
@media (max-width: 480px) {
    .dept-detail-section > h2 { font-size: 1.5rem; }
    .dept-detail-header h3 { font-size: 1.25rem; }
}

/* ---------- Responsive Design ---------- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .news-featured {
        grid-template-columns: 1fr;
    }

    /* hero-slider responsive handled above */
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .top-bar { display: none; }

    .menu-toggle { display: block; }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        display: none;
        z-index: 999;
    }

    .nav-menu.active { display: block; }

    .nav-menu ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-menu ul li a {
        padding: 12px 25px;
        border-bottom: none;
    }

    /* hero-slider responsive handled above */

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .section { padding: 40px 0; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .schools-filters {
        flex-direction: column;
    }

    .schools-filters select,
    .schools-filters input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* hero-slider responsive handled above */
    .event-item { flex-direction: column; text-align: center; }
    .event-date { width: 100%; padding: 12px; }
    .departments-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.pt-2 { padding-top: 20px; }
.pb-2 { padding-bottom: 20px; }

/* ---------- Search Bar ---------- */
.search-bar {
    display: flex;
    gap: 0;
    max-width: 400px;
    margin: 0 auto 30px;
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.95rem;
}

.search-bar button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: 0.95rem;
}

.search-bar button:hover {
    background: var(--primary-light);
}

/* ---------- Filter Tabs ---------- */
.filter-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid var(--gray-300);
    border-radius: 25px;
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

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

/* ---------- Admin Styles ---------- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--gray-900);
    color: var(--white);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1001;
}

.admin-sidebar .admin-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.admin-sidebar .admin-brand h2 {
    color: var(--white);
    font-size: 1.1rem;
}

.admin-sidebar .admin-brand span {
    color: var(--secondary-light);
    font-size: 0.8rem;
}

.admin-nav {
    padding: 15px 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.admin-nav a i {
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    margin-left: 250px;
    padding: 25px;
    background: var(--gray-100);
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    padding: 18px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.4rem;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.admin-card h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.admin-stat-card {
    background: var(--white);
    padding: 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.admin-stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ---------- Admin Table Actions ---------- */
.actions-cell {
    display: flex;
    gap: 6px;
}

.btn-action {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid;
    background: var(--white);
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-action-edit {
    color: var(--info);
    border-color: var(--info);
}

.btn-action-edit:hover {
    background: var(--info);
    color: var(--white);
}

.btn-action-delete {
    color: var(--danger);
    border-color: var(--danger);
}

.btn-action-delete:hover {
    background: var(--danger);
    color: var(--white);
}

/* Admin Login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.login-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--primary);
}

.login-box .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.login-box .form-group {
    margin-bottom: 18px;
}

.login-box .btn {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }
}

/* ============================================
   AI CHATBOT WIDGET
   ============================================ */

/* Floating Action Button */
.chatbot-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 6px 25px rgba(26,82,118,0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: none;
}
.chatbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(26,82,118,0.5);
}
.chatbot-fab.chatbot-fab-active {
    transform: rotate(90deg) scale(1.05);
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

/* Notification Badge */
.chatbot-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    animation: chatbot-pulse 2s infinite;
    display: none;
}
@keyframes chatbot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(231,76,60,0); }
}

/* Chat Window */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 540px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.68, -0.15, 0.265, 1.15);
    border: 1px solid var(--gray-200);
}
.chatbot-window.chatbot-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
}
.chatbot-header-title {
    font-size: 0.95rem;
    font-weight: 600;
}
.chatbot-header-status {
    font-size: 0.75rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}
.chatbot-status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    animation: chatbot-status-blink 2s infinite;
}
@keyframes chatbot-status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.chatbot-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}
.chatbot-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--gray-100);
    scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
}

/* Message Wrappers */
.chatbot-msg-wrapper {
    display: flex;
    gap: 10px;
    max-width: 88%;
    animation: chatbot-fadeIn 0.3s ease;
}
@keyframes chatbot-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chatbot-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.chatbot-msg-bot {
    align-self: flex-start;
}

/* Message Bubbles */
.chatbot-msg {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    word-wrap: break-word;
}
.chatbot-msg-user-bubble {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-bottom-right-radius: 4px;
}
.chatbot-msg-bot-bubble {
    background: var(--white);
    color: var(--gray-700);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.chatbot-msg-bot-bubble a {
    color: var(--secondary);
    font-weight: 600;
}
.chatbot-msg-bot-bubble a:hover {
    text-decoration: underline;
}

/* Bot Avatar in Messages */
.chatbot-msg-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Typing Indicator */
.chatbot-typing-bubble {
    padding: 16px 20px;
    display: flex;
    gap: 5px;
    align-items: center;
}
.chatbot-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: chatbot-typing 1.4s infinite ease-in-out;
}
.chatbot-typing-dot:nth-child(1) { animation-delay: 0s; }
.chatbot-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatbot-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Contact Card inside chat */
.chatbot-contact-card {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chatbot-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
}
.chatbot-contact-item > i {
    color: var(--primary);
    margin-top: 3px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.chatbot-contact-item a {
    color: var(--secondary);
    font-weight: 600;
}

/* Suggestion Buttons */
.chatbot-suggestions {
    display: flex;
    gap: 8px;
    padding: 0 20px 14px;
    flex-wrap: wrap;
    flex-shrink: 0;
    background: var(--gray-100);
}
.chatbot-suggestion-btn {
    padding: 7px 14px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-size: 0.78rem;
    font-family: var(--font-main);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.chatbot-suggestion-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Input Area */
.chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.chatbot-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 24px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    color: var(--gray-700);
    outline: none;
    transition: var(--transition);
    background: var(--gray-100);
}
.chatbot-input:focus {
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.1);
}
.chatbot-input::placeholder {
    color: var(--gray-400);
}
.chatbot-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.chatbot-send:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(26,82,118,0.3);
}

/* Chatbot Responsive */
@media (max-width: 480px) {
    .chatbot-fab {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }
    .chatbot-window {
        bottom: 84px;
        right: 10px;
        left: 10px;
        width: auto;
        height: 70vh;
        max-height: 500px;
        border-radius: 14px;
    }
    .chatbot-suggestions {
        padding: 0 14px 10px;
    }
}
