/* ============================================
   OSHMIS Public Portal - Daffodil Dream Theme
   ============================================ */

:root {
  --yellow-primary: #F4D03F;
  --yellow-light: #F9E79F;
  --teal: #85C1AE;
  --teal-dark: #5FA898;
  --white: #FFFFFF;
  --dark: #1C2833;
  --gray-light: #F7F9F9;
  --gray-mid: #D5D8DC;
  --text-dark: #212121;
  --text-muted: #5D6D7E;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --radius: 8px;
  --font: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--dark);
  color: var(--yellow-light);
  font-size: 0.78rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--yellow-light); text-decoration: none; }
.topbar a:hover { color: var(--yellow-primary); }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--yellow-primary);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 70px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
}
.nav-brand img {
  height: 50px;
  width: 50px;
  object-fit: contain;
}
.nav-brand-text { line-height: 1.2; }
.nav-brand-text .title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal-dark);
}
.nav-brand-text .subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
}
.nav-menu li { position: relative; }
.nav-menu a {
  display: block;
  padding: 0.55rem 1rem;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu li.active > a {
  background: var(--yellow-primary);
  color: var(--dark);
}
.nav-menu .login-btn a {
  background: var(--teal);
  color: var(--white);
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
}
.nav-menu .login-btn a:hover { background: var(--teal-dark); }

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  min-width: 200px;
  border-top: 3px solid var(--yellow-primary);
  z-index: 999;
  list-style: none;
  padding: 6px 0;
}
.dropdown-menu a {
  border-radius: 0;
  padding: 0.6rem 1.2rem;
  font-size: 0.84rem;
}
.dropdown-menu a:hover { background: var(--yellow-light); }
.nav-menu li:hover > .dropdown-menu { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HERO / CAROUSEL ── */
.carousel {
  position: relative;
  overflow: hidden;
  height: 480px;
  background: var(--dark);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,40,51,0.85) 0%, transparent 60%);
}
.slide-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 3rem;
  color: var(--white);
  max-width: 700px;
}
.slide-content .badge {
  display: inline-block;
  background: var(--yellow-primary);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.slide-content h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.slide-content p { font-size: 0.95rem; opacity: 0.9; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: var(--yellow-primary); color: var(--dark); border-color: var(--yellow-primary); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots {
  position: absolute;
  bottom: 16px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}
.dot.active { background: var(--yellow-primary); transform: scale(1.2); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2C3E50 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  border-bottom: 4px solid var(--yellow-primary);
}
.page-hero h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.page-hero p { opacity: 0.8; font-size: 0.95rem; }
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  margin-top: 0.6rem;
  opacity: 0.7;
}
.breadcrumb a { color: var(--yellow-light); text-decoration: none; }
.breadcrumb span { color: var(--yellow-primary); }

/* ── SECTIONS ── */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--gray-light); }
.section-title {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--yellow-primary);
  border-radius: 2px;
}
.section-subtitle { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 2rem; }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-top: 4px solid var(--teal);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.14); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── STAT STRIP ── */
.stats-strip {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1rem;
}
.stat-item h3 { font-size: 2rem; font-weight: 800; }
.stat-item p { font-size: 0.82rem; opacity: 0.85; margin-top: 0.2rem; }

/* ── TABLE / GRID ── */
.search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.search-bar input, .search-bar select {
  padding: 0.55rem 1rem;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus, .search-bar select:focus { border-color: var(--teal); }
.search-bar input { flex: 1; min-width: 200px; }
.data-table-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.data-table thead {
  background: linear-gradient(135deg, var(--dark) 0%, #2C3E50 100%);
  color: var(--white);
}
.data-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  user-select: none;
}
.data-table th:hover { background: rgba(255,255,255,0.1); }
.data-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--gray-mid); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--yellow-light); }
.badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-valid { background: #D5F5E3; color: #1E8449; }
.badge-expired { background: #FADBD8; color: #C0392B; }
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--gray-mid);
  font-size: 0.84rem;
  color: var(--text-muted);
}
.pagination-btns { display: flex; gap: 4px; }
.pagination-btns button {
  padding: 4px 10px;
  border: 1px solid var(--gray-mid);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.2s;
}
.pagination-btns button:hover, .pagination-btns button.active {
  background: var(--yellow-primary);
  border-color: var(--yellow-primary);
  color: var(--dark);
  font-weight: 600;
}
.no-results { text-align: center; padding: 2.5rem; color: var(--text-muted); }

/* ── PUBLICATIONS ── */
.pub-section { margin-bottom: 2.5rem; }
.pub-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-dark);
  padding: 0.6rem 1rem;
  background: var(--yellow-light);
  border-left: 4px solid var(--yellow-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1rem;
}
.pub-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.pub-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid var(--gray-mid);
}
.pub-item:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--teal); }
.pub-icon { font-size: 1.4rem; color: var(--teal); flex-shrink: 0; }
.pub-meta { flex: 1; }
.pub-meta strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.pub-meta span { font-size: 0.78rem; color: var(--text-muted); }
.pub-dl { font-size: 1.2rem; color: var(--teal); }

/* ── ACCORDION (FAQs) ── */
.faq-category { margin-bottom: 2rem; }
.faq-category-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.8rem;
}
.faq-category-label::before {
  content: '';
  display: block;
  width: 5px;
  height: 22px;
  background: var(--yellow-primary);
  border-radius: 3px;
}
.accordion-item {
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.accordion-item.open { box-shadow: var(--shadow); }
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  gap: 1rem;
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--yellow-light); }
.accordion-header.open { background: var(--yellow-light); color: var(--dark); }
.accordion-icon {
  font-size: 1.1rem;
  color: var(--teal);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.accordion-icon.open { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  background: var(--gray-light);
}
.accordion-body.open { max-height: 600px; }
.accordion-body-inner {
  padding: 1rem 1.2rem;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── CHEMICALS ── */
.chem-filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  align-items: center;
}
.chem-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--yellow-light);
  color: var(--dark);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-text p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about-highlights { display: flex; flex-direction: column; gap: 1rem; }
.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--yellow-primary);
}
.highlight-card h4 { font-size: 0.95rem; color: var(--teal-dark); margin-bottom: 0.3rem; }
.highlight-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }
.objectives-list {
  list-style: none;
  margin-top: 1rem;
}
.objectives-list li {
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.87rem;
  color: var(--text-muted);
}
.objectives-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ── LOGIN PAGE ── */
.login-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--yellow-light) 0%, var(--white) 100%);
  padding: 3rem 1rem;
}
.login-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.login-card img { height: 70px; margin-bottom: 1rem; }
.login-card h2 { font-size: 1.4rem; margin-bottom: 0.3rem; color: var(--dark); }
.login-card .sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.8rem; }
.form-group { margin-bottom: 1rem; text-align: left; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--dark); }
.form-group input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(133,193,174,0.2); }
.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.btn-primary:hover { background: var(--teal-dark); }
.login-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; }
.login-note a { color: var(--teal); text-decoration: none; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: var(--yellow-primary);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--yellow-primary);
  display: inline-block;
}
.footer-col p, .footer-col li {
  font-size: 0.83rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}
.footer-col ul { list-style: none; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.83rem;
}
.footer-col ul li a:hover { color: var(--yellow-primary); }
.footer-brand img { height: 60px; margin-bottom: 0.8rem; filter: brightness(1.1); }
.footer-brand p { font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  align-items: flex-start;
}
.footer-contact-item .icon { font-size: 1rem; margin-top: 2px; color: var(--teal); flex-shrink: 0; }
.footer-bottom {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: var(--yellow-primary); text-decoration: none; }

/* ── FLOATING CONTACT BUTTON ── */
.contact-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
}
.contact-fab {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.3rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(133,193,174,0.55);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: pulse-teal 2.5s infinite;
  font-family: var(--font);
}
.contact-fab:hover {
  background: var(--teal-dark);
  transform: scale(1.05);
}
.contact-fab svg { width: 20px; height: 20px; flex-shrink: 0; }
@keyframes pulse-teal {
  0%, 100% { box-shadow: 0 4px 20px rgba(133,193,174,0.55); }
  50%       { box-shadow: 0 6px 30px rgba(133,193,174,0.8); }
}

/* ── CONTACT POPUP OVERLAY ── */
.contact-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,40,51,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}
.contact-overlay.open { display: flex; }

.contact-popup {
  background: var(--white);
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.popup-header {
  background: linear-gradient(135deg, var(--dark) 0%, #2C3E50 100%);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--yellow-primary);
}
.popup-header h3 { font-size: 1rem; margin: 0; }
.popup-header p  { font-size: 0.78rem; opacity: 0.75; margin: 2px 0 0; }
.popup-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.popup-close:hover { background: rgba(255,255,255,0.25); }

.popup-body { padding: 1.5rem; }

.popup-form-group {
  margin-bottom: 1rem;
}
.popup-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.popup-form-group label .req { color: #E74C3C; margin-left: 2px; }
.popup-form-group input,
.popup-form-group select,
.popup-form-group textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.87rem;
  font-family: var(--font);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.popup-form-group input:focus,
.popup-form-group select:focus,
.popup-form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(133,193,174,0.2);
}
.popup-form-group textarea { resize: vertical; min-height: 90px; }

/* Captcha block */
.captcha-block {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.captcha-box {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--dark);
  min-width: 110px;
  text-align: center;
  font-family: 'Courier New', monospace;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.captcha-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 4px,
    rgba(133,193,174,0.08) 4px, rgba(133,193,174,0.08) 8px
  );
}
.captcha-refresh {
  background: none;
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--teal-dark);
  transition: background 0.2s;
}
.captcha-refresh:hover { background: var(--yellow-light); }
.captcha-input {
  flex: 1;
}

.popup-submit {
  width: 100%;
  padding: 0.72rem;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font);
}
.popup-submit:hover { background: var(--teal-dark); }

/* Validation error */
.field-error {
  font-size: 0.75rem;
  color: #E74C3C;
  margin-top: 4px;
  display: none;
}
.field-error.show { display: block; }
.popup-form-group input.invalid,
.popup-form-group select.invalid,
.popup-form-group textarea.invalid {
  border-color: #E74C3C;
}

/* Success state */
.popup-success {
  display: none;
  text-align: center;
  padding: 2rem 1.5rem;
}
.popup-success .success-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
}
.popup-success h4 { font-size: 1.1rem; color: var(--dark); margin-bottom: 0.4rem; }
.popup-success p  { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; }
.popup-success .btn-close-success {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.6rem 1.6rem;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

/* Alert bar */
.popup-alert {
  display: none;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}
.popup-alert.error   { background: #FADBD8; color: #C0392B; }
.popup-alert.success { background: #D5F5E3; color: #1E8449; }
.popup-alert.show    { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel { height: 360px; }
  .slide-content h2 { font-size: 1.4rem; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 2px;
    border-top: 3px solid var(--yellow-primary);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { border-radius: 6px; }
  .dropdown-menu { position: static; box-shadow: none; border-top: none; padding-left: 1rem; display: none; }
  .nav-menu li.dropdown-open > .dropdown-menu { display: block; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel { height: 300px; }
  .slide-content { padding: 1.2rem 1.4rem; }
  .slide-content h2 { font-size: 1.1rem; }
  .contact-fab span { display: none; }
  .contact-fab { padding: 0.9rem; border-radius: 50%; }
}

/* ── INSPECTOR CARDS ── */
.inspectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.inspector-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s;
  border-top: 4px solid var(--yellow-primary);
}
.inspector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}
.inspector-photo-wrap {
  background: linear-gradient(135deg, var(--yellow-light) 0%, #fff 100%);
  padding: 1.5rem 1rem 0.8rem;
}
.inspector-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal);
  box-shadow: 0 3px 12px rgba(133,193,174,0.4);
  background: var(--gray-mid);
}
.inspector-body {
  padding: 0.8rem 1rem 1.2rem;
}
.inspector-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.inspector-sex {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 0.6rem;
}
.inspector-sex.male   { background: #D6EAF8; color: #1A5276; }
.inspector-sex.female { background: #FDEDEC; color: #922B21; }
.inspector-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--teal-dark);
  word-break: break-all;
  text-decoration: none;
  transition: color 0.2s;
}
.inspector-email:hover { color: var(--dark); }
.inspector-division {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Filter toolbar */
.inspector-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}
.inspector-toolbar input,
.inspector-toolbar select {
  padding: 0.55rem 1rem;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.87rem;
  outline: none;
  transition: border-color 0.2s;
}
.inspector-toolbar input   { flex: 1; min-width: 200px; }
.inspector-toolbar input:focus,
.inspector-toolbar select:focus { border-color: var(--teal); }
.inspectors-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
