/* ==========================================
   GLOBAL STYLES & VARIABLES
   ========================================== */
:root {
    --primary-color: #4DA8DA;
    --secondary-color: #87CEEB;
    --dark-text: #2C3E50;
    --body-bg: #F8FBFF;
}

* { box-sizing: border-box; }

body {
    background-color: var(--body-bg);
    color: var(--dark-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

body.public-site {
    padding-top: 76px; 
}

/* ==========================================
   FRONT-END WEBSITE STYLES
   ========================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

.btn-nav-link {
    position: relative; color: var(--dark-text) !important; font-weight: 500;
    padding: 8px 16px !important; border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-nav-link::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: 2px; left: 50%;
    background-color: var(--primary-color); transition: all 0.3s ease;
    transform: translateX(-50%); border-radius: 2px;
}
.btn-nav-link:hover::after, .btn-nav-link.active::after { width: 60%; }
.btn-nav-link:hover, .btn-nav-link.active { color: var(--primary-color) !important; background-color: rgba(77, 168, 218, 0.05); }

.btn-primary {
    background-color: var(--primary-color); border-color: var(--primary-color);
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(77, 168, 218, 0.2);
}
.btn-primary:hover, .btn-primary.active {
    background-color: #3a9fd8; border-color: #3a9fd8; transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 168, 218, 0.3);
}

/* ==========================================
   HERO SECTION (FIXED BLACK OVERLAY)
   ========================================== */

.hero-section {
    position: relative;
    background-color: #000000; 
    padding: 140px 0;
    /* THIS IS THE MAGIC LINE - Makes the section take up the full screen height */
    min-height: 100vh; 
    
    /* These two lines keep your text perfectly centered vertically if the screen gets very tall */
    display: flex; 
    align-items: center; 
    
    border-radius: 0 0 50px 50px;
    margin-bottom: 60px;
    overflow: hidden;
    color: #ffffff;
}

/* Background Image */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Ensures the image focuses on the center */
    z-index: 0; 
}

/* THE BLACK OVERLAY */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Changed from 0.88 to 0.65 to make it lighter */
    z-index: 1; 
}

/* Floating Circle Animation */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
    animation: floatCircle 6s ease-in-out infinite;
}

@keyframes floatCircle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2; /* Text above overlay */
}

.hero-title span {
    color: var(--secondary-color);
}

.hero-section .lead {
    color: #e2e8f0;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.btn-hero-custom {
    background-color: #ffffff;
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-hero-custom:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Public Cards */
.public-card {
    background: white; border: none; border-radius: 20px; padding: 35px 30px;
    height: 100%; box-shadow: 0 5px 25px rgba(77, 168, 218, 0.06);
    border-left: 5px solid transparent; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.public-card:hover {
    transform: translateY(-12px); box-shadow: 0 20px 40px rgba(77, 168, 218, 0.12);
    border-left-color: var(--primary-color);
}
.public-card .icon-box {
    width: 70px; height: 70px; background-color: #e3f2fd; border-radius: 15px;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    color: var(--primary-color); margin-bottom: 20px; transition: all 0.4s ease;
}
.public-card:hover .icon-box { background-color: var(--primary-color); color: white; transform: rotateY(180deg); }
.public-card h5 { font-weight: 700; color: var(--dark-text); margin-bottom: 15px; }
.public-card p { color: #666; font-size: 0.95rem; line-height: 1.7; }

.section-heading { font-size: 2.2rem; font-weight: 800; color: var(--dark-text); margin-bottom: 15px; }
.section-subheading { color: #888; font-size: 1.1rem; margin-bottom: 40px; }

/* Staff Cards */
.staff-card { text-align: center; padding-top: 60px; margin-top: 20px; }
.staff-avatar, .staff-avatar-img {
    width: 120px; height: 120px; border-radius: 50%;
    margin: -90px auto 20px; border: 5px solid white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.staff-avatar {
    background-color: #e3f2fd; color: var(--primary-color);
    display: flex; align-items: center; justify-content: center; font-size: 3.2rem;
}
.staff-avatar-img {
    object-fit: cover; background-color: #f0f0f0; display: block;
}
.public-card:hover .staff-avatar, .public-card:hover .staff-avatar-img {
    transform: scale(1.08); box-shadow: 0 12px 30px rgba(77, 168, 218, 0.2);
}

/* Contact Form */
.contact-form-container { background: white; border-radius: 25px; padding: 30px; box-shadow: 0 10px 40px rgba(77, 168, 218, 0.08); }
.contact-form-container .form-label { font-weight: 600; color: var(--dark-text); margin-bottom: 8px; }
.contact-form-container .form-control, .contact-form-container .form-select {
    border: 2px solid #e9ecef; border-radius: 12px; padding: 12px 20px;
    transition: all 0.3s ease; background-color: #f8fbff;
}
.contact-form-container .form-control:focus, .contact-form-container .form-select:focus {
    border-color: var(--primary-color); box-shadow: 0 0 0 0.25rem rgba(77, 168, 218, 0.15); background-color: white;
}
.btn-submit {
    background-color: var(--primary-color); color: white; border: none; padding: 14px;
    border-radius: 12px; font-weight: 600; font-size: 1.1rem; transition: all 0.3s ease; width: 100%;
}
.btn-submit:hover { background-color: #3a9fd8; color: white; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(77, 168, 218, 0.3); }

.alert { border-radius: 12px; border: none; padding: 15px 20px; font-weight: 500; }
.alert-success { background-color: #d4edda; color: #155724; }
.alert-error { background-color: #f8d7da; color: #721c24; }

/* ==========================================
   ADMIN PANEL STYLES (FULLY RESPONSIVE)
   ========================================== */

.sidebar {
    width: 270px; min-height: 100vh; background: #ffffff;
    box-shadow: 2px 0 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; padding-top: 20px;
}
.sidebar-logo {
    padding: 0 20px 25px; color: #4DA8DA; font-size: 1.4rem;
    border-bottom: 2px solid #87CEEB; margin-bottom: 20px; font-weight: 700;
}
.sidebar a, .offcanvas-body a {
    display: flex; align-items: center; padding: 13px 25px; color: #6c757d;
    text-decoration: none; font-weight: 500; font-size: 0.95rem;
    border-left: 4px solid transparent; margin-bottom: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar a i, .offcanvas-body a i { margin-right: 12px; font-size: 1.1rem; }
.sidebar a:hover, .offcanvas-body a:hover {
    background-color: #F0F8FF; color: #4DA8DA; border-left-color: #4DA8DA; transform: translateX(5px);
}
.sidebar a.active, .offcanvas-body a.active {
    background-color: #F0F8FF; color: #4DA8DA; border-left-color: #4DA8DA; font-weight: 600;
}
.sidebar a.logout-btn, .offcanvas-body a.logout-btn { color: #dc3545; }
.sidebar a.logout-btn:hover, .offcanvas-body a.logout-btn:hover { background-color: #fff5f5; border-left-color: #dc3545; color: #dc3545; }

.offcanvas { max-width: 270px !important; }
.offcanvas-header { border-bottom: 2px solid #87CEEB; }
.offcanvas-body { padding: 20px 0 !important; }

.admin-content {
    background-color: #F8F9FA;
    min-height: 100vh;
    overflow: visible !important; 
}

.mobile-toggle-btn {
    position: fixed; top: 15px; left: 15px; z-index: 1040;
    background-color: var(--primary-color); border: none; color: white;
    width: 45px; height: 45px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.mobile-toggle-btn:hover { background-color: #3a9fd8; transform: scale(1.05); }

.admin-stat-card {
    background: white; border-radius: 15px; padding: 25px; border: none;
    box-shadow: 0 4px 20px rgba(77, 168, 218, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease; border-left: 5px solid transparent;
}
.admin-stat-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(77, 168, 218, 0.15); }
.admin-stat-card.blue { border-left-color: #4DA8DA; }
.admin-stat-card.green { border-left-color: #28a745; }
.admin-stat-card.orange { border-left-color: #ffc107; }

.stat-icon {
    width: 60px; height: 60px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.8rem;
    margin-bottom: 15px; transition: transform 0.3s ease;
}
.admin-stat-card:hover .stat-icon { transform: scale(1.1) rotate(5deg); }
.bg-light-blue { background-color: #e3f2fd; color: #4DA8DA; }
.bg-light-green { background-color: #e8f5e9; color: #28a745; }
.bg-light-orange { background-color: #fff8e1; color: #ffc107; }

.table-custom {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}
.table-custom:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.table-custom thead th {
    background-color: #4DA8DA; color: white; border: none; font-weight: 600;
    padding: 16px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px;
    white-space: nowrap;
}
.table-custom tbody td {
    padding: 15px 16px; vertical-align: middle; border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
}
.table-custom tbody tr:hover { background-color: #F0F8FF; }

.admin-form-container {
    background: white; padding: 30px; border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04); transition: box-shadow 0.3s ease; height: 100%;
}
.admin-form-container:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.07); }
.admin-form-container .form-label { font-weight: 600; color: #555; margin-bottom: 8px; }
.admin-form-container .form-control, .admin-form-container .form-select {
    border-radius: 10px; padding: 12px 15px; border: 1px solid #e0e0e0; transition: all 0.3s ease;
}
.admin-form-container .form-control:focus, .admin-form-container .form-select:focus {
    border-color: #4DA8DA; box-shadow: 0 0 0 0.25rem rgba(77, 168, 218, 0.15);
}
.btn-admin-primary {
    background-color: #4DA8DA; color: white; border: none; padding: 12px 30px;
    border-radius: 10px; font-weight: 600; transition: all 0.3s ease;
}
.btn-admin-primary:hover {
    background-color: #3a9fd8; color: white; transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 168, 218, 0.3);
}
.btn-delete {
    background-color: #ff6b6b; color: white; border: none; padding: 6px 14px;
    border-radius: 6px; font-size: 0.85rem; transition: all 0.3s ease;
}
.btn-delete:hover {
    background-color: #fa5252; color: white; transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(250, 82, 82, 0.3);
}

@media (max-width: 991.98px) {
    .hero-title { font-size: 2.5rem; }
}
@media (max-width: 575.98px) {
    .hero-section { padding: 80px 0; border-radius: 0 0 30px 30px; }
    .hero-title { font-size: 2rem; }
}

/* ==========================================
   MODERN FOOTER STYLES
   ========================================== */
.main-footer {
    background: #1e293b; color: #cbd5e1; padding: 60px 0 40px; margin-top: 0;
}
.footer-heading {
    color: #4DA8DA; font-weight: 700; font-size: 1.2rem; margin-bottom: 25px;
    position: relative; padding-bottom: 12px;
}
.footer-heading::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px;
    background: #4DA8DA; border-radius: 2px; transition: width 0.3s ease;
}
.main-footer:hover .footer-heading::after { width: 100%; }
.footer-text { color: #94a3b8; font-size: 0.95rem; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #94a3b8; text-decoration: none; font-size: 0.95rem;
    transition: all 0.3s ease; display: inline-block;
}
.footer-links a:hover { color: #ffffff; transform: translateX(6px); }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
    color: #94a3b8; margin-bottom: 15px; font-size: 0.95rem; display: flex; align-items: flex-start;
}
.footer-contact-list li i { color: #4DA8DA; margin-top: 4px; font-size: 1rem; }
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid #334155;
    color: #94a3b8; margin-right: 10px; font-size: 1rem; transition: all 0.3s ease;
}
.social-icons a:hover {
    background-color: #4DA8DA; border-color: #4DA8DA; color: white;
    transform: translateY(-4px); box-shadow: 0 5px 15px rgba(77, 168, 218, 0.4);
}
.footer-bottom {
    background: #0f172a; padding: 20px 0; text-align: center; border-top: 1px solid #334155;
}
.footer-bottom p { color: #64748b; font-size: 0.9rem; margin: 0; }
@media (max-width: 575.98px) {
    .main-footer { text-align: center; }
    .footer-heading::after { left: 50%; transform: translateX(-50%); }
    .footer-links a:hover { transform: translateX(0) scale(1.05); }
    .footer-contact-list li { justify-content: center; }   
}

/* ==========================================
   MODERN LOGIN PAGE STYLES
   ========================================== */
.login-wrapper { display: flex; min-height: 100vh; box-shadow: 0 0 50px rgba(0,0,0,0.1); }
.login-left-side {
    flex: 1; background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white; display: flex; flex-direction: column; justify-content: center;
    align-items: center; padding: 50px; position: relative; overflow: hidden;
}
.login-left-side::before {
    content: ''; position: absolute; top: -100px; left: -100px; width: 400px; height: 400px;
    background: rgba(77, 168, 218, 0.1); border-radius: 50%; animation: floatCircle 6s ease-in-out infinite;
}
.login-left-side::after {
    content: ''; position: absolute; bottom: -150px; right: -150px; width: 500px; height: 500px;
    background: rgba(135, 206, 235, 0.1); border-radius: 50%; animation: floatCircle 8s ease-in-out infinite reverse;
}
.login-brand-icon { font-size: 6rem; color: #4DA8DA; margin-bottom: 30px; z-index: 1; text-shadow: 0 10px 30px rgba(77, 168, 218, 0.3); }
.login-left-side h1 { font-size: 2.5rem; font-weight: 800; z-index: 1; margin-bottom: 15px; letter-spacing: 1px; }
.login-left-side p { font-size: 1.1rem; color: #94a3b8; z-index: 1; text-align: center; max-width: 400px; }
.login-right-side { flex: 1; background-color: #ffffff; display: flex; justify-content: center; align-items: center; padding: 50px; }
.login-form-container { width: 100%; max-width: 420px; }
.login-form-container h3 { color: #1e293b; font-weight: 800; font-size: 1.8rem; margin-bottom: 8px; }
.login-form-container p.text-muted { margin-bottom: 35px; font-size: 0.95rem; }
.login-input-group { position: relative; margin-bottom: 25px; }
.login-input-group .form-control { border: none; border-bottom: 2px solid #e2e8f0; border-radius: 0; padding: 15px 15px 15px 50px; font-size: 1rem; transition: all 0.3s ease; background: transparent; }
.login-input-group .form-control:focus { box-shadow: none; border-bottom-color: #4DA8DA; }
.login-input-group .input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; transition: color 0.3s ease; font-size: 1.1rem; }
.login-input-group .form-control:focus + .input-icon, .login-input-group .form-control:focus ~ .input-icon { color: #4DA8DA; }
.login-btn-modern { background: linear-gradient(135deg, #4DA8DA 0%, #3a9fd8 100%); color: white; border: none; padding: 14px; border-radius: 12px; font-weight: 600; font-size: 1.05rem; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; box-shadow: 0 5px 20px rgba(77, 168, 218, 0.3); }
.login-btn-modern:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(77, 168, 218, 0.4); color: white; }
@media (max-width: 991.98px) { .login-wrapper { flex-direction: column; } .login-left-side { padding: 60px 30px; min-height: auto; } .login-brand-icon { font-size: 4rem; margin-bottom: 20px; } .login-left-side h1 { font-size: 1.8rem; } .login-right-side { padding: 40px 30px; } }

/* ==========================================
   PREMIUM DASHBOARD STYLES
   ========================================== */
.dashboard-welcome {
    background: white; border-radius: 20px; padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(77, 168, 218, 0.06); margin-bottom: 30px;
    border-left: 6px solid var(--primary-color); display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 15px;
}
.welcome-text h2 { color: var(--dark-text); font-size: 1.8rem; font-weight: 800; margin-bottom: 5px; }
.welcome-text p { color: #888; margin: 0; font-size: 0.95rem; }
.welcome-date { text-align: right; }
.welcome-date h3 { color: var(--primary-color); font-weight: 700; font-size: 2rem; margin: 0; line-height: 1; }
.welcome-date span { color: #888; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.quick-action-card {
    background: white; padding: 25px 20px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    text-align: center; text-decoration: none; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.quick-action-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(77, 168, 218, 0.15); border-color: var(--primary-color); color: var(--dark-text); }
.quick-action-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 15px; transition: all 0.4s ease; }
.quick-action-card:hover .quick-action-icon { transform: scale(1.1) rotate(5deg); }
.quick-action-card h6 { font-weight: 700; margin-bottom: 0; color: var(--dark-text); }
.quick-action-card p { font-size: 0.8rem; color: #888; margin: 0; }
.activity-item { display: flex; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid #f1f1f1; transition: all 0.2s ease; }
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background-color: #F8FBFF; border-radius: 10px; padding-left: 10px; padding-right: 10px; }
.activity-avatar { width: 45px; height: 45px; border-radius: 50%; background-color: #e3f2fd; color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-right: 15px; flex-shrink: 0; font-size: 1rem; }
.activity-content h6 { font-size: 0.95rem; margin-bottom: 3px; font-weight: 600; color: var(--dark-text); }
.activity-content small { color: #aaa; font-size: 0.8rem; }
/* ==========================================
   INTRODUCTION PAGE LIST STYLES
   ========================================== */
.custom-intro-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.custom-intro-list li:hover {
    transform: translateX(8px);
}

.custom-intro-list li i {
    margin-top: 4px; /* Aligns icon perfectly with text */
}
/* ==========================================
   FULL WIDTH FOOTER FIX
   ========================================== */

/* This overrides any container styles that might be trapping the footer inside a card */
.main-footer, .footer-bottom {
    width: 100% !important;
    border-radius: 0 !important; /* Removes rounded corners */
    margin-top: 0 !important;
    box-shadow: none !important;
}
/* ==========================================
   HOME PAGE SLIDER STYLES
   ========================================== */

.home-slider-img {
    aspect-ratio: 1 / 1; /* Forces a perfect square no matter what size the original image is */
    width: 100%;
    object-fit: cover; /* Prevents stretching */
    border-radius: 15px; /* Slightly rounded corners for a modern look */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.home-slider-img:hover {
    transform: scale(1.02); /* Very subtle zoom on hover */
}

/* Style the left/right arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
}

.carousel-control-prev {
    left: -15px;
}

.carousel-control-next {
    right: -15px;
}