/* ============================================================
   SWD Portal – Main Stylesheet
   ============================================================ */

:root {
    --primary-green: #1a6b3c;
    --light-green:   #28a745;
    --accent-gold:   #f4a012;
    --dark-bg:       #0f2d1f;
    --footer-bg:     #023d5d;
    --top-bar-bg:    #0193de;
}

/* Base */
* { font-family: 'Inter', sans-serif; }
body { background-color: #f8f9fa; }

/* ── Top Bar ── */
.top-bar { background-color: var(--top-bar-bg); }

/* ── Navbar ── */
.navbar .nav-link.active,
.navbar .nav-link:hover { color: var(--primary-green) !important; }

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(135deg, #0f2d1f 0%, #1a6b3c 50%, #28a745 100%);
    min-height: 480px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
}
.hero-stat-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    transition: transform .2s;
}
.hero-stat-card:hover { transform: translateY(-4px); }

/* ── Service Cards ── */
.service-card {
    border: none;
    border-radius: 16px;
    transition: all .25s ease;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(26,107,60,.15);
}
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}

/* ── Quick Access Bar ── */
.quick-access {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.quick-btn {
    border-radius: 12px;
    padding: .75rem 1rem;
    transition: all .2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 500;
    color: #495057;
    border: 1.5px solid #e9ecef;
}
.quick-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: #f0faf4;
}
.quick-btn i { font-size: 1.5rem; }

/* ── Notice Board ── */
.notice-board { border-left: 4px solid var(--primary-green); }
.notice-item { padding: .5rem 0; border-bottom: 1px dashed #dee2e6; font-size: .875rem; }
.notice-item:last-child { border-bottom: none; }

/* ── Stats Section ── */
.stat-item { border-radius: 16px; }

/* ── Footer ── */
.footer-main { background-color: var(--footer-bg); }
.footer-top { border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-heading { position: relative; padding-bottom: .5rem; }
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--light-green);
}
.footer-links { display: flex; flex-direction: column; gap: .3rem; }
.footer-links a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: .875rem;
    transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-contact { color: rgba(255,255,255,.75); font-size: .875rem; }
.footer-social-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    text-decoration: none;
}
.footer-social-btn:hover { background: #0093de; color: #fff; }
.footer-bottom { background: rgba(0,0,0,.25); }

/* ── Scroll-to-top ── */
#scrlTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0093de;
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,147,222,.4);
    font-size: 1.1rem;
    cursor: pointer;
}
