/*
 * style.css
 * FINAL MERGED VERSION (Base styles + Enhanced Homepage Styles)
 */

:root{
  --color-white: rgba(255,255,255,1);
  --color-black: rgba(0,0,0,1);
  --color-cream-50: #fcfcf9;
  --color-cream-100: #fffdfd;
  --color-gray-100:#f8f9fb;
  --color-gray-200:#f5f5f5;
  --color-gray-300:#a7a9a9;
  --color-gray-400:#777c7c;
  --color-slate-500:#626c71;
  --color-charcoal-700:#1f2121;
  --color-charcoal-800:#262828;
  --color-slate-900:#13343b;
  --color-teal-300:#32b8c6;
  --color-teal-400:#2da6b2;
  --color-teal-500:#21808d;
  --color-teal-600:#1d7480;
  --color-teal-700:#1a6873;
  --color-red-400:#ff5459;
  --color-orange-400:#e68161;
  --radius-8:8px;
  --radius-12:12px;
  --radius-16:16px;
  --shadow-1:0 6px 18px rgba(0,0,0,.08);
  --shadow-2:0 12px 30px rgba(0,0,0,.12);
}
/* Base */
html,body{height:100%}
body{background:#f7fafb;color:#223; font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif;}
a{color:var(--color-teal-600);text-decoration:none}
a:hover{color:var(--color-teal-700);text-decoration:underline}

/* Navbar */
.navbar{background:linear-gradient(180deg,#1e8a97,#1a6e79); box-shadow:0 2px 12px rgba(0,0,0,.08)}
.navbar .navbar-brand{font-weight:700;letter-spacing:.2px}
.navbar .nav-link{color:#e9fdff!important;opacity:.9}
.navbar .nav-link:hover{opacity:1}
.navbar .dropdown-menu{border-radius:12px;border:1px solid rgba(0,0,0,.06); box-shadow: var(--shadow-2)}

/* Buttons */
.btn-teal{background:var(--color-teal-600);border-color:var(--color-teal-600);color:#fff}
.btn-teal:hover{background:var(--color-teal-700);border-color:var(--color-teal-700);color:#fff}
.btn-outline-teal{border-color:var(--color-teal-600);color:var(--color-teal-700)}
.btn-outline-teal:hover{background:var(--color-teal-600);color:#fff}
.bg-teal{background:var(--color-teal-600)!important;color:#fff!important}
.bg-teal-soft{background:rgba(33,128,141,.12)!important;color:#1b4b52!important;border:1px solid rgba(33,128,141,.22)}

/* Cards + glass */
.card{border:1px solid rgba(0,0,0,.06);border-radius:16px; box-shadow: var(--shadow-1)}
.card.glass{background:rgba(255,255,255,.85);backdrop-filter:blur(8px)}
.border-teal{border:1px solid rgba(33,128,141,.35)!important}

/* Forms */
.form-control,.form-select{border-radius:12px;border:1px solid rgba(0,0,0,.12)}
.form-control:focus,.form-select:focus{border-color:var(--color-teal-500); box-shadow:0 0 0 .2rem rgba(33,128,141,.15)}

/* Badges and pills */
.badge{border-radius:10px;padding:.35rem .5rem; font-weight:600}

/* Stats tiles */
.tile{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:16px; box-shadow:var(--shadow-1)}
.tile .val{font-weight:800; font-size:22px}
.tile .label{color:#4a5a60;font-size:12px}

/* Progress */
.progress{height:10px;border-radius:10px;background:#e9f3f5}
.progress .progress-bar{background:var(--color-teal-600)}

/* Lists / grids */
.card-img-top{border-top-left-radius:16px;border-top-right-radius:16px; object-fit:cover; aspect-ratio:16/9}

/* Footer */
.footer{color:#6e7c80}

/* Tables */
.table thead th{background:#f6fbfc}

/* Alerts */
.alert.glass{background:rgba(255,255,255,.85);border:1px solid rgba(0,0,0,.06)}

/* Avatar */
.avatar{width:44px;height:44px;border-radius:50%;object-fit:cover}

/* Utilities */
.shadow-1{box-shadow:var(--shadow-1)}
.shadow-2{box-shadow:var(--shadow-2)}
.rounded-12{border-radius:12px}
.rounded-16{border-radius:16px}

/* Links in cards */
.card a.stretched-link{text-decoration:none}

/* Gallery grid */
.gallery-card img{aspect-ratio:4/3;object-fit:cover}

/* Hero slider (premium) */
.hero-wrap { border-radius: 16px; overflow: hidden; }
.hero { position: relative; border-radius: 16px; }
.hero-bg { width: 100%; height: 70vh; min-height: 420px; max-height: 78vh; object-fit: cover; display: block; filter: saturate(1.02) contrast(1.02) brightness(.95); }
@media (max-width: 992px){ .hero-bg{ height: 58vh; } }
.hero-gradient { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.65) 100%),
  linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 40%); }

.hero-left { position: absolute; left: 3%; top: 18%; color: #eafcff; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.hero-title { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: .5px; margin: 0 0 6px; }
.hero-subtitle { font-size: clamp(14px, 1.6vw, 18px); opacity: .95; }

.hero-bottom { position: absolute; left: 3%; right: 3%; bottom: 4%; display: flex; gap: 18px; align-items: flex-end; }
.hero-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.hstat { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 14px 18px; min-width: 120px; backdrop-filter: blur(6px); }
.hstat-val { color: #fff; font-weight: 800; font-size: clamp(20px, 3.2vw, 28px); line-height: 1; }
.hstat-label { color: #dff7fb; font-size: 12px; opacity: .95; margin-top: 6px; }

.hero-progress { margin-left: auto; min-width: min(420px, 48%); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25) !important; backdrop-filter: blur(6px); padding: 14px 16px; border-radius: 16px; }
.hp-title { color: #eafcff; font-weight: 700; margin-bottom: 8px; }
.hp-caption { color: #eafcff; font-size: 12px; margin-top: 6px; opacity: .95; }
.progress-thin { height: 8px; border-radius: 10px; overflow: hidden; }

.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.hero .carousel-indicators [data-bs-target]{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.7)}
.hero .carousel-indicators .active{background:#fff}

/* News cards */
.news-card .card-img-top{aspect-ratio:16/9}
.news-card .card-title{font-weight:700}

/* Section headings */
.section-title{font-weight:800;letter-spacing:.2px}

/* Login/Admin forms */
.auth-wrap{max-width:440px;margin:0 auto}
.auth-wrap .card{border-radius:16px}

/* Responsive tweaks */
@media (max-width: 768px){
  .hero-progress{min-width:100%}
}

/* Small helpers */
.text-muted-2{color:#6b7b80!important}
.bg-secondary-subtle{background:#eef5f6;color:#35545a}


/* --- ENHANCED HOMEPAGE STYLES (from former index.php <style> block) --- */
/* Enhanced Hero Slider with your teal theme */
.enhanced-hero-carousel {
    border-radius: var(--radius-16);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    margin-bottom: 2rem;
    position: relative;
}

.enhanced-hero-slide {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 600px;
    overflow: hidden;
}

.enhanced-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.1) contrast(1.05) brightness(0.9);
    transition: all 0.8s ease;
}

.enhanced-hero-slide:hover img {
    transform: scale(1.02);
}

.enhanced-hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(60deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.7) 100%),
        linear-gradient(60deg, rgba(30,138,151,.6) 0%, rgba(30,138,151,.2) 50%, transparent 100%);
}

.enhanced-hero-content {
    position: absolute;
    left: 4%;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
    max-width: 600px;
}

.enhanced-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    line-height: 1.1;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #e9fdff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enhanced-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    color: #e9fdff;
}

.enhanced-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.enhanced-hero-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.enhanced-hero-btn-primary {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.enhanced-hero-btn-primary:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.enhanced-hero-btn-secondary {
    background: var(--color-teal-600);
    color: white;
    border-color: var(--color-teal-600);
}

.enhanced-hero-btn-secondary:hover {
    background: var(--color-teal-700);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,138,151,0.4);
}

/* Enhanced Stats with your existing tile design */
.enhanced-stats-section {
    margin: -1rem 0 3rem 0;
    position: relative;
    z-index: 10;
}

.enhanced-stats-container {
    background: white;
    border-radius: var(--radius-16);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(0,0,0,0.06);
}

.enhanced-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.enhanced-stat-tile {
    background: linear-gradient(135deg, var(--color-teal-50, #f0fdff) 0%, white 100%);
    border: 1px solid rgba(30,138,151,0.1);
    border-radius: var(--radius-16);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.enhanced-stat-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-teal-500), var(--color-teal-400));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.enhanced-stat-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
    border-color: var(--color-teal-300);
}

.enhanced-stat-tile:hover::before {
    transform: scaleX(1);
}

.enhanced-stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(30,138,151,0.3);
}

.enhanced-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-teal-700);
    margin-bottom: 0.5rem;
    font-family: -apple-system, system-ui, sans-serif;
}

.enhanced-stat-label {
    color: var(--color-slate-500);
    font-size: 0.9rem;
    font-weight: 600;
}

.enhanced-stat-live {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.enhanced-live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Enhanced Progress Section with your design */
.enhanced-progress-card {
    background: linear-gradient(135deg, var(--color-teal-50, #f0fdff) 0%, white 100%);
    border: 1px solid var(--color-teal-200, rgba(30,138,151,0.2));
    border-radius: var(--radius-16);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.enhanced-progress-card::before {
    content: '';
    position: absolute;
    top: -25%;
    left: -25%;
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, transparent, rgba(30,138,151,0.05), transparent);
    animation: shimmer 3s linear infinite;
}

.enhanced-progress-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-teal-700);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.enhanced-progress-bar-wrapper {
    background: rgba(30,138,151,0.1);
    border-radius: 25px;
    height: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

.enhanced-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-teal-500), var(--color-teal-600));
    border-radius: 25px;
    transition: width 2.5s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: slideProgress 2s ease-in-out infinite;
}

.enhanced-progress-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-slate-500);
    position: relative;
    z-index: 1;
}

/* Enhanced Content Cards with your glass effect */
.enhanced-content-section {
    margin: 4rem 0;
}

.enhanced-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.enhanced-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-teal-700);
    margin-bottom: 1rem;
    position: relative;
}

.enhanced-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-teal-500), var(--color-teal-600));
    border-radius: 2px;
}

.enhanced-section-subtitle {
    font-size: 1.1rem;
    color: var(--color-slate-500);
    max-width: 600px;
    margin: 0 auto;
}

.enhanced-news-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-16);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.enhanced-news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2);
    border-color: var(--color-teal-300);
}

.enhanced-news-card .card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.enhanced-news-card:hover .card-img-top {
    transform: scale(1.05);
}

.enhanced-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.enhanced-card-content {
    padding: 1.5rem;
}

.enhanced-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-charcoal-700);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.enhanced-card-text {
    color: var(--color-slate-500);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.enhanced-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: auto;
}

.enhanced-card-date {
    color: var(--color-gray-400);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-card-btn {
    background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-card-btn:hover {
    color: white;
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(30,138,151,0.3);
}

/* Enhanced CTA Section with your teal gradient */
.enhanced-cta-section {
    background: linear-gradient(135deg, var(--color-teal-600), var(--color-teal-700));
    border-radius: var(--radius-16);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
}

.enhanced-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.enhanced-cta-content {
    position: relative;
    z-index: 1;
}

.enhanced-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.enhanced-cta-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.enhanced-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.enhanced-cta-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-cta-btn-white {
    background: white;
    color: var(--color-teal-700);
}

.enhanced-cta-btn-white:hover {
    color: var(--color-teal-700);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.enhanced-cta-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.enhanced-cta-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes slideProgress {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .enhanced-hero-title {
        font-size: 2rem;
    }
    
    .enhanced-hero-subtitle {
        font-size: 1rem;
    }
    
    .enhanced-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .enhanced-hero-btn {
        justify-content: center;
    }
    
    .enhanced-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .enhanced-section-title {
        font-size: 2rem;
    }
    
    .enhanced-cta-title {
        font-size: 2rem;
    }
    
    .enhanced-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}