/* ============================================================
   NHSP-KP Website Stylesheet
   ============================================================ */

:root {
    --primary: #1a4a7a;
    --primary-dark: #0d2d4f;
    --primary-light: #2563aa;
    --secondary: #27ae60;
    --accent: #e67e22;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-section: #eef2f7;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(26, 74, 122, 0.10);
    --shadow-hover: 0 8px 32px rgba(26, 74, 122, 0.18);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: #fff; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

/* ---- TOP BAR ---- */
.top-bar {
    background: var(--primary-dark);
    color: #b8cce4;
    font-size: 0.78rem;
    padding: 7px 0;
}
.top-bar span { font-size: 0.78rem; }
.top-bar i { color: var(--secondary); }

/* ---- NAVBAR ---- */
.main-navbar {
    background: #fff;
    box-shadow: 0 2px 16px rgba(26,74,122,0.10);
    padding: 0;
    transition: var(--transition);
}
.main-navbar.scrolled { box-shadow: 0 4px 24px rgba(26,74,122,0.15); }
.navbar-brand { padding: 10px 0; }
.brand-title { font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.brand-subtitle { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; line-height: 1.2; }
.main-navbar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 1.2rem 1rem !important;
    position: relative;
    transition: var(--transition);
}
.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 1rem; right: 1rem;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: var(--transition);
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--primary) !important; }
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: none; padding: 8px; }
.navbar-toggler:focus { box-shadow: none; }

/* ---- PAGE HERO ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23ffffff0d" d="M0,50 C360,100 1080,0 1440,50 L1440,100 L0,100 Z"/></svg>') bottom/cover;
}
.page-hero h1 { color: #fff; font-weight: 800; font-size: 2.2rem; }
.page-hero .breadcrumb { background: none; padding: 0; margin: 0; }
.page-hero .breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb-item a:hover { color: #fff; }

/* ---- SECTION STYLES ---- */
.section-padding { padding: 80px 0; }
.section-bg { background: var(--bg-section); }
.section-title {
    font-size: 2rem; font-weight: 800;
    color: var(--primary-dark);
    position: relative; margin-bottom: 1rem;
}
.section-title::after {
    content: '';
    display: block; width: 60px; height: 4px;
    background: var(--secondary);
    border-radius: 2px; margin-top: 12px;
}
.section-title.text-center::after { margin: 12px auto 0; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }

/* ---- HERO SECTION (Homepage) ---- */
.hero-section {
    position: relative; min-height: 92vh;
    display: flex; align-items: center;
    overflow: hidden; background: var(--primary-dark);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,45,79,0.95) 0%, rgba(26,74,122,0.80) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-badge {
    display: inline-block;
    background: rgba(39,174,96,0.2);
    border: 1px solid rgba(39,174,96,0.5);
    color: #6ee7a6;
    font-size: 0.75rem; font-weight: 600;
    padding: 4px 14px; border-radius: 50px;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px;
}
.hero-title { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero-title span { color: #7ec8f7; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.80); margin-bottom: 2rem; max-width: 540px; }
.hero-stats {
    display: flex; gap: 2rem; margin-top: 2.5rem;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2.2rem; font-weight: 800; color: #7ec8f7; line-height: 1; }
.hero-stat .lbl { font-size: 0.75rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.5px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--secondary); color: #fff;
    border: none; padding: 13px 30px;
    border-radius: 50px; font-weight: 600;
    font-size: 0.9rem; transition: var(--transition);
}
.btn-hero-primary:hover { background: #1e9950; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(39,174,96,0.4); }
.btn-hero-outline {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 12px 28px; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* ---- CARDS ---- */
.card-nhsp {
    background: #fff;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}
.card-nhsp:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-nhsp .card-img-top { height: 200px; object-fit: cover; }
.card-nhsp .card-body { padding: 1.5rem; }
.card-nhsp .card-title { font-weight: 700; color: var(--primary-dark); font-size: 1rem; }
.card-nhsp .card-text { color: var(--text-muted); font-size: 0.88rem; }
.card-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.card-meta i { color: var(--primary); }
.card-category {
    display: inline-block;
    background: rgba(26,74,122,0.08);
    color: var(--primary);
    font-size: 0.72rem; font-weight: 600;
    padding: 3px 10px; border-radius: 50px;
    margin-bottom: 8px; text-transform: uppercase;
    letter-spacing: 0.5px;
}
.read-more {
    color: var(--primary); font-weight: 600;
    font-size: 0.85rem; display: inline-flex;
    align-items: center; gap: 4px;
}
.read-more:hover { color: var(--secondary); gap: 8px; }
.read-more i { font-size: 0.75rem; transition: var(--transition); }

/* ---- STATS SECTION ---- */
.stats-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 60px 0; }
.stat-item { text-align: center; padding: 20px; }
.stat-icon { width: 60px; height: 60px; background: rgba(255,255,255,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 1.5rem; color: #7ec8f7; }
.stat-num { font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

/* ---- OBJECTIVES ---- */
.objective-card {
    background: #fff; border-radius: var(--radius);
    padding: 1.5rem; border-left: 4px solid var(--primary);
    box-shadow: var(--shadow); transition: var(--transition);
    height: 100%;
}
.objective-card:hover { border-left-color: var(--secondary); transform: translateX(4px); }
.objective-num { font-size: 2rem; font-weight: 800; color: rgba(26,74,122,0.12); line-height: 1; float: right; }
.objective-icon { width: 44px; height: 44px; background: rgba(26,74,122,0.08); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; margin-bottom: 12px; }
.objective-card h6 { font-weight: 700; color: var(--primary-dark); font-size: 0.9rem; margin-bottom: 8px; }
.objective-card p { color: var(--text-muted); font-size: 0.83rem; margin: 0; }

/* ---- DIRECTOR MESSAGE ---- */
.director-section { background: linear-gradient(135deg, var(--bg-section) 0%, #fff 100%); }
.director-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.director-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary); }
.director-photo-placeholder { width: 120px; height: 120px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #fff; border: 4px solid rgba(26,74,122,0.2); }
.quote-icon { color: rgba(26,74,122,0.12); font-size: 5rem; line-height: 1; }

/* ---- TEAM ---- */
.team-card {
    background: #fff; border-radius: var(--radius);
    text-align: center; padding: 2rem 1.5rem;
    box-shadow: var(--shadow); transition: var(--transition);
    height: 100%;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.team-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--border); }
.team-photo-placeholder { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.team-name { font-weight: 700; color: var(--primary-dark); font-size: 0.92rem; margin-bottom: 4px; }
.team-designation { color: var(--text-muted); font-size: 0.80rem; }

/* ---- INTERVENTIONS ---- */
.intervention-item {
    background: #fff; border-radius: var(--radius);
    padding: 1.5rem; display: flex;
    align-items: flex-start; gap: 1rem;
    box-shadow: var(--shadow); transition: var(--transition);
    height: 100%;
}
.intervention-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.intervention-icon { width: 50px; height: 50px; min-width: 50px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; }
.intervention-text h6 { font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; font-size: 0.9rem; }
.intervention-text p { color: var(--text-muted); font-size: 0.83rem; margin: 0; }

/* ---- NEWS ---- */
.news-img { height: 200px; object-fit: cover; width: 100%; }
.news-date-badge { background: var(--primary); color: #fff; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; display: inline-block; margin-bottom: 10px; }

/* ---- PROCUREMENT ---- */
.procurement-item {
    background: #fff; border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}
.procurement-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.status-badge {
    font-size: 0.75rem; font-weight: 600;
    padding: 4px 12px; border-radius: 50px;
    display: inline-block;
}
.status-open { background: rgba(39,174,96,0.12); color: var(--secondary); }
.status-closed { background: rgba(231,76,60,0.12); color: #c0392b; }
.status-awarded { background: rgba(26,74,122,0.10); color: var(--primary); }
.deadline-badge { font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.deadline-badge.expired { color: #c0392b; }

/* ---- GRM ---- */
.grm-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.grm-step { text-align: center; padding: 1.5rem; }
.grm-step-icon { width: 64px; height: 64px; background: rgba(26,74,122,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); margin: 0 auto 12px; }
.grm-step h6 { font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.grm-step p { font-size: 0.83rem; color: var(--text-muted); margin: 0; }
.form-control, .form-select {
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 10px 14px; font-size: 0.9rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,74,122,0.1); }
.form-label { font-weight: 600; font-size: 0.85rem; color: var(--text-dark); margin-bottom: 6px; }
.btn-submit { background: var(--primary); color: #fff; border: none; padding: 13px 40px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; transition: var(--transition); }
.btn-submit:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,74,122,0.25); }

/* ---- ABOUT ---- */
.about-intro { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; }
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 2rem; padding-left: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -5px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline-item h6 { font-weight: 700; color: var(--primary-dark); }
.timeline-item p { color: var(--text-muted); font-size: 0.88rem; }
.district-badge { display: inline-block; background: rgba(26,74,122,0.08); color: var(--primary); font-size: 0.78rem; font-weight: 600; padding: 5px 14px; border-radius: 50px; margin: 4px; border: 1px solid rgba(26,74,122,0.15); }

/* ---- EVENTS ---- */
.event-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); height: 100%; }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.event-date-block { background: var(--primary); color: #fff; text-align: center; padding: 12px; min-width: 60px; }
.event-date-block .day { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.event-date-block .month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; }
.event-status-upcoming { background: rgba(39,174,96,0.12); color: var(--secondary); }
.event-status-completed { background: rgba(26,74,122,0.1); color: var(--primary); }
.event-status-cancelled { background: rgba(231,76,60,0.12); color: #c0392b; }

/* ---- GALLERY ---- */
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(26,74,122,0.65); opacity: 0; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 2rem; }

/* ---- BACK TO TOP ---- */
.back-to-top { position: fixed; bottom: 30px; right: 30px; z-index: 9999; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 50%; box-shadow: var(--shadow-hover); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(10px); transition: var(--transition); font-size: 1rem; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---- FOOTER ---- */
.site-footer { background: #0d2140; }
.footer-top { padding: 60px 0 40px; }
.footer-heading { color: #fff; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1rem; padding-bottom: 8px; border-bottom: 2px solid var(--secondary); display: inline-block; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links li a { color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: var(--transition); }
.footer-links li a:hover { color: #fff; padding-left: 4px; }
.footer-links.small-list li { color: rgba(255,255,255,0.65); font-size: 0.82rem; margin-bottom: 4px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { color: rgba(255,255,255,0.65); font-size: 0.83rem; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li i { color: var(--secondary); margin-top: 3px; min-width: 14px; }
.social-links { display: flex; gap: 8px; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: var(--transition); }
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-bottom { background: #081829; padding: 16px 0; }

/* ---- ALERTS ---- */
.alert-success-custom { background: rgba(39,174,96,0.1); border: 1.5px solid rgba(39,174,96,0.3); color: #1e9950; border-radius: var(--radius-sm); padding: 14px 18px; }
.alert-error-custom { background: rgba(231,76,60,0.1); border: 1.5px solid rgba(231,76,60,0.3); color: #c0392b; border-radius: var(--radius-sm); padding: 14px 18px; }
.ticket-box { background: rgba(26,74,122,0.06); border: 2px dashed var(--primary); border-radius: var(--radius); padding: 1.5rem; text-align: center; margin-top: 1rem; }
.ticket-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); letter-spacing: 2px; }

/* ---- PAGINATION ---- */
.pagination .page-link { color: var(--primary); border-color: var(--border); border-radius: var(--radius-sm) !important; margin: 0 2px; }
.pagination .page-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ---- UTILITIES ---- */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.divider { border: none; border-top: 2px solid var(--border); margin: 2rem 0; }
.no-results { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.no-results i { font-size: 3rem; color: var(--border); display: block; margin-bottom: 1rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .main-navbar .nav-link { padding: 0.7rem 1rem !important; }
    .main-navbar .nav-link::after { display: none; }
    .top-bar { display: none; }
}
@media (max-width: 767px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    .section-padding { padding: 50px 0; }
    .hero-section { min-height: auto; padding: 80px 0 60px; }
    .hero-stats { gap: 1.2rem; }
    .stat-num { font-size: 2rem; }
}
