/* =========================================
   IEI Jharkhand State Centre – Style Sheet
   Navy Blue (#1a3a6e) + Gold (#c9a84c)
   ========================================= */

:root {
  --navy: #1a3a6e;
  --navy-dark: #0d2455;
  --navy-light: #2a5ba8;
  --gold: #c9a84c;
  --gold-light: #e8c96d;
  --gold-dark: #a8873a;
  --light-blue-bg: #f0f4fa;
  --text-muted: #6c757d;
}

* { box-sizing: border-box; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  font-size: 15px;
  background: #fff;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* ---- Top Bar ---- */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 7px 0;
}
.top-bar a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color .2s; }
.top-bar a:hover { color: var(--gold); }
.top-bar .bi { font-size: 12px; }

/* ---- Header ---- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.fixed-navbar {
  position: sticky;
  top: 0; /* sticks just below header automatically */
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.logo-circle {
  width: 60px; height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255,255,255,0.3);
}
.logo-text { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--navy); font-size: 18px; }
@font-face {
    font-family: 'Olde English';           /* Give it a name (any name you like) */
    src: url('../fonts/Olde English Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.site-title { 
    color: #fff;
    font-family: 'Olde English', 'old english text mt';
    font-size: 1.7rem; 
  }
.site-subtitle { color: var(--gold-light); font-size: 13px; font-weight: 500; }
.icon-color a { color: #fff }


/* ---- Main Nav ---- */
.main-nav {
  background: var(--navy-light);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.main-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  padding: 12px 16px !important;
  font-weight: 500;
  font-size: 14px;
  border-radius: 4px;
  transition: all .2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #fff !important;
  background: rgba(201,168,76,0.25);
}
.main-nav .nav-link.active { border-bottom: 2px solid var(--gold); }
.main-nav .navbar-toggler { border: none; }

/* ---- Announcement Marquee ---- */
.announcement-bar {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 7px 0;
  font-size: 13px;
  overflow: hidden;
}
.announcement-label {
  white-space: nowrap;
  font-weight: 700;
  background: var(--navy-dark);
  color: #fff;
  padding: 3px 12px;
  border-radius: 3px;
  margin-right: 12px;
  flex-shrink: 0;
}
.marquee-wrapper {
  overflow: hidden;
  flex: 1;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: inline-block; padding-right: 10px; }
.marquee-item a { color: var(--navy-dark); font-weight: 600; text-decoration: none; }
.marquee-item a:hover { text-decoration: underline; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Buttons ---- */
.btn-navy {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
  font-weight: 600;
  transition: all .2s;
}
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  font-weight: 600;
  transition: all .2s;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border: 2px solid var(--gold);
  font-weight: 700;
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 30px 0 24px;
  border-bottom: 3px solid var(--gold);
}
.page-title { font-size: 2rem; color: #fff; margin: 0; }
.page-subtitle { color: var(--gold-light); font-size: 14px; }
.breadcrumb-item a { color: var(--gold-light); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- Section Styles ---- */
.section-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 12px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.section-heading {
  color: var(--navy);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-gold { background: var(--gold) !important; }
.bg-light-blue { background: var(--light-blue-bg); }

/* ---- Hero Carousel ---- */
.hero-img {
  height: 520px;
  object-fit: cover;
  filter: brightness(0.75);
}
.carousel-placeholder {
  height: 520px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.placeholder-logo {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.carousel-caption {
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  bottom: 0; left: 0; right: 0;
  padding: 30px 20px 20px;
  text-align: left;
}
.carousel-title { font-size: 1.8rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }

/* ---- Stats ---- */
.stat-card {
  background: #fff;
  border: 2px solid var(--light-blue-bg);
  border-radius: 12px;
  padding: 24px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-icon { font-size: 2rem; color: var(--gold); margin-bottom: 8px; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy); font-weight: 700; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ---- Services ---- */
.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 22px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 100%;
  transition: all .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.service-icon {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card h5 { color: var(--navy); font-weight: 700; }
.service-card p { color: var(--text-muted); font-size: 14px; }

/* ---- Leadership ---- */
.leader-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-top: 4px solid var(--gold);
}
.leader-photo-wrap { background: var(--light-blue-bg); text-align: center; padding: 30px; }
.leader-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); }
.leader-photo-placeholder {
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--navy); color: rgba(255,255,255,0.4);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.leader-info { padding: 24px; }
.leader-role-badge {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
}
.leader-name { color: var(--navy); font-weight: 700; }
.leader-title { font-size: 13px; }
.leader-bio { font-size: 14px; color: var(--text-muted); }

/* ---- Event Thumbnails (Home) ---- */
.event-thumb-link { text-decoration: none; }
.event-thumb-card { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.event-thumb-img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s; }
.event-thumb-card:hover .event-thumb-img { transform: scale(1.05); }
.event-thumb-placeholder { width: 100%; height: 200px; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,0.2); }
.event-thumb-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,26,58,0.9));
  color: #fff; padding: 20px 12px 12px;
}

/* ---- Event Cards (Gallery) ---- */
.event-card-link { text-decoration: none; }
.event-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform .25s; height: 100%; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.event-img-wrap { position: relative; }
.event-img { width: 100%; height: 220px; object-fit: cover; }
.event-img-placeholder { width: 100%; height: 220px; background: var(--light-blue-bg); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--navy); opacity: 0.3; }
.event-photo-count {
  position: absolute; top: 10px; right: 10px;
  background: rgba(26,58,110,0.85);
  color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 20px;
}
.event-body { padding: 16px; }
.event-name { color: var(--navy); font-weight: 700; font-family: 'Playfair Display', serif; font-size: 1rem; }
.event-date { color: var(--gold-dark); font-size: 13px; font-weight: 600; }
.event-desc { color: var(--text-muted); font-size: 13px; }

/* ---- Gallery Lightbox ---- */
.gallery-thumb { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; }
.gallery-thumb-img { width: 100%; height: 180px; object-fit: cover; transition: transform .3s; }
.gallery-thumb:hover .gallery-thumb-img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(26,58,110,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  font-size: 2rem; color: #fff;
}
.gallery-thumb:hover .gallery-overlay { opacity: 1; }
.gallery-caption { font-size: 12px; color: var(--text-muted); margin-top: 5px; text-align: center; }

/* ---- Members ---- */
.member-tabs .nav-link {
  color: var(--navy) !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  transition: all .2s;
}
.member-tabs .nav-link.active {
  color: var(--gold-dark) !important;
  border-bottom-color: var(--gold) !important;
  background: transparent !important;
}
.member-tabs .nav-link:hover { color: var(--navy-light) !important; }
.bg-gold { background: var(--gold) !important; color: var(--navy-dark) !important; }
.member-card {
  background: #fff; border-radius: 12px; padding: 24px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform .2s;
}
.member-card:hover { transform: translateY(-4px); }
.member-avatar-wrap { position: relative; display: inline-block; }
.member-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.member-avatar-placeholder {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--light-blue-bg); border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--navy); opacity: 0.4;
}
.member-name { color: var(--navy); font-weight: 700; font-size: 15px; }
.member-designation { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ---- Downloads ---- */
.table-navy thead th { background: var(--navy); color: #fff; font-weight: 600; border: none; font-size: 14px; }

/* ---- Contact ---- */
.contact-form .form-control { border: 2px solid #e0e8f0; padding: 10px 14px; border-radius: 8px; }
.contact-form .form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,110,0.12); }
.contact-form .form-label { font-weight: 600; color: var(--navy); font-size: 14px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--light-blue-bg); padding: 16px; border-radius: 10px;
}
.contact-icon {
  width: 42px; height: 42px; background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem; flex-shrink: 0;
}
.whatsapp-cta {
  background: #e8f5e9; border: 1px solid #c8e6c9;
  border-radius: 10px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.whatsapp-cta .bi-whatsapp { font-size: 1.8rem; color: #25d366; }
.whatsapp-cta h6 { font-weight: 700; color: #1b5e20; }
.whatsapp-cta small { color: var(--text-muted); font-size: 12px; }
.map-placeholder {
  background: var(--light-blue-bg); border-radius: 10px;
  height: 160px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--navy); opacity: 0.5;
}

/* ---- Login ---- */
.login-section { min-height: 70vh; display: flex; align-items: center; }
.login-card { background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.12); overflow: hidden; }
.login-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 10px 10px; color: #fff; }
.login-header h4 { color: #fff; }
.login-body { padding: 28px; }
.login-body .form-control { border: 2px solid #e0e8f0; border-radius: 8px; }
.login-body .form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,110,0.12); }
.login-body .input-group-text { background: var(--light-blue-bg); border: 2px solid #e0e8f0; color: var(--navy); }
.logo-circle-lg {
  width: 80px; height: 80px;
  background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  border: 3px solid rgba(255,255,255,0.3);
}

/* ---- Admin Portal ---- */
.stat-admin-card {
  background: #fff; border-radius: 12px; padding: 20px 14px;
  text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: block; transition: transform .2s;
}
.stat-admin-card:hover { transform: translateY(-3px); }
.stat-admin-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; font-size: 1.2rem; color: #fff;
}
.stat-admin-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.stat-admin-label { font-size: 12px; color: var(--text-muted); }
.card-header.bg-navy { background: var(--navy) !important; }
.card-header.bg-gold { background: var(--gold) !important; }

/* ---- About Page ---- */
.mission-list { padding-left: 20px; }
.mission-list li { padding: 5px 0; color: #555; }
.objective-card { background: var(--light-blue-bg); border-radius: 8px; padding: 12px 16px; font-size: 14px; color: #444; }
.info-sidebar { background: var(--navy); color: #fff; border-radius: 12px; padding: 24px; }
.sidebar-heading { color: var(--gold); font-weight: 700; }
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
.info-list li:last-child { border-bottom: none; }
.info-list li strong { color: var(--gold); }
.leader-card-sm { background: var(--light-blue-bg); border-radius: 10px; padding: 16px; border-left: 4px solid var(--gold); }
.leader-avatar-sm {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: 1.5rem; overflow: hidden;
}
.leader-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.badge-role-sm { background: var(--gold); color: var(--navy-dark); font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; }

/* ---- Footer ---- */
.site-footer { background: #0d1f3c; color: rgba(255,255,255,0.75); }
.footer-heading { color: var(--gold); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-social {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); text-decoration: none; transition: all .2s;
}
.footer-social:hover { background: var(--gold); color: var(--navy); }
.footer-brand { display: flex; align-items: center; }
.logo-circle-sm {
  width: 32px; height: 32px; background: var(--gold); border-radius: 50%;
  align-items: center; justify-content: center;
}
.logo-text-sm { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--navy); font-size: 10px; }

/* ---- WhatsApp Floating Button ---- */
.whatsapp-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9999;
  transition: all .3s;
  animation: wa-pulse 2.5s infinite;
}
.whatsapp-btn:hover { transform: scale(1.12); box-shadow: 0 8px 30px rgba(37,211,102,0.6); color: #fff; }
.wa-tooltip {
  position: absolute;
  right: 66px;
  background: rgba(0,0,0,0.75);
  color: #fff; font-size: 12px;
  padding: 5px 10px; border-radius: 6px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.whatsapp-btn:hover .wa-tooltip { opacity: 1; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,0.7); }
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state .bi { font-size: 4rem; opacity: 0.25; display: block; margin-bottom: 16px; }
.empty-state h5 { color: var(--navy); opacity: 0.6; }

/* ---- Responsive ---- */
@media (max-width: 368px) {
  .site-title { font-size: 1.3rem; }
  .site-subtitle { font-size: 11px; }
  .hero-img, .carousel-placeholder { height: 280px; }
  .carousel-title { font-size: 1.1rem; }
  .section-heading { font-size: 1.4rem; }
  .page-title { font-size: 1.5rem; }
  .logo-circle { width: 48px; height: 48px; }
  .logo-text { font-size: 14px; }
}
.mt-8 { 
  margin-top: 8rem !important; 
}

.text-justify {
  text-align: justify !important;
}