/* ==================================
   YOBE STATE MINISTRY WEBSITE
   Official Colors: Green (#006400), Red (#dc143c), Gold (#ffd700)
   Developed by Nexatech Integrated Services
================================== */

/* ======================
   RESET & BASE STYLES
====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  overflow-x: hidden;
  padding-top: 200px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

a:hover {
  color: #dc143c;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.text-center {
  text-align: center;
}

/* ======================
   BUTTONS & LINKS
====================== */
.btn {
  display: inline-block;
  background: #dc143c;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: #b20000;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-light {
  background: white;
  color: #dc143c;
  font-weight: 600;
}

.btn-outline {
  background: transparent;
  border: 2px solid #dc143c;
  color: #dc143c;
}

.btn-outline:hover {
  background: #dc143c;
  color: white;
}

/* ======================
   SECTIONS & TYPOGRAPHY
====================== */
.section-padding {
  padding: 80px 0;
}

.section-title h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: #006400;
  margin-bottom: 10px;
  text-align: center;
}

.section-title p {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 50px;
  text-align: center;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin-bottom: 15px;
}

/* ======================
   HEADER & NAVIGATION
====================== */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 50px;
}

.logo img {
  width: 50px;
}

.logo h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: #006400;
  line-height: 1.3;
}

.logo span {
  font-size: 0.9rem;
  color: #dc143c;
}

.nav-list {
  display: flex;
  gap: 25px;
  margin-left: auto;
}

.nav-list a {
  font-weight: 500;
  color: #333;
  padding: 8px 0;
  position: relative;
}

.nav-list a:hover,
.nav-list a.active {
  color: #dc143c;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #dc143c;
  transition: width 0.3s;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* Dropdown Menus */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid #ddd;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 25px;
  transition: all 0.2s;
  font-size: 0.95rem;
  color: #333;
}

.dropdown-menu li a:hover {
  background: #fdf2f3;
  color: #dc143c;
  padding-left: 30px;
}

/* Hamburger for Mobile */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.mobile-menu ul li a {
  padding: 15px 30px;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

.mobile-menu ul li:last-child a {
  border-bottom: none;
}

/* ======================
   HERO SLIDER (INDEX)
====================== */
.hero-slider {
  position: relative;
  height: 90vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  max-width: 1000px;
  padding: 40px;
  background: rgba(0,0,0,0.6);
  border-radius: 15px;
  backdrop-filter: blur(4px);
  margin: 0 20px;
}

.slide-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.slide-content p {
  font-size: 1.4rem;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.slider-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot:hover,
.slider-dot.active {
  background: #dc143c;
}

/* ======================
   GENERIC HERO BANNER (Other Pages)
====================== */
.hero-banner {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)) center center no-repeat;
  background-size: cover;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ======================
   WELCOME SECTION
====================== */
.welcome-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.welcome-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.welcome-text h2 {
  font-size: 2.2rem;
  color: #006400;
  margin-bottom: 20px;
}

.signature {
  font-style: italic;
  color: #6c757d;
  margin-top: 20px;
  font-weight: 500;
}

.welcome-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ======================
   QUICK LINKS
====================== */
.quick-links-section {
  padding: 60px 0;
  text-align: center;
  background: white;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.quick-link-card {
  background: white;
  padding: 40px 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
}

.quick-link-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.quick-link-card i {
  font-size: 3rem;
  color: #dc143c;
  margin-bottom: 20px;
}

.quick-link-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #006400;
}

/* ======================
   NEWS PREVIEW
====================== */
.news-preview-section {
  padding: 80px 0;
  background: #fff;
}

.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-preview-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.news-preview-card:hover {
  transform: translateY(-5px);
}

.news-preview-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-preview-content {
  padding: 20px;
}

.news-preview-content .date {
  color: #6c757d;
  font-size: 0.9rem;
}

.news-preview-content h3 {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #006400;
}

/* ======================
   INVESTMENT SPOTLIGHT
====================== */
.investment-spotlight {
  padding: 80px 0;
  background: linear-gradient(135deg, #dc143c, #b20000);
  color: white;
  text-align: center;
}

.investment-spotlight h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.investment-spotlight p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* ======================
   ABOUT PAGE STYLES — UPDATED & COMPACT
   Matches site-wide card style (like Parastatals & Companies)
====================== */

/* Vision & Mission Cards */
.two-col.compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.compact-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
  text-align: center;
}

.compact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #dc143c;
}

.compact-card .icon-box {
  width: 70px;
  height: 70px;
  background: #fdf2f3;
  color: #dc143c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.compact-card h3 {
  font-size: 1.25rem;
  color: #006400;
  margin: 0 0 15px;
  line-height: 1.4;
}

/* History Section */
.history-content.compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.history-content.compact .history-text {
  padding: 0;
}

.history-content.compact .history-text p {
  margin-bottom: 15px;
  color: #555;
}

.history-content.compact .history-text strong {
  color: #006400;
}

.milestones.compact {
  padding-left: 20px;
  margin: 20px 0;
}

.milestones.compact li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
  color: #555;
  font-size: 0.95rem;
}

.milestones.compact li:before {
  content: "•";
  color: #dc143c;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.history-content.compact .history-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-height: 300px;
  object-fit: cover;
}

/* Org Chart */
.org-chart-container {
  text-align: center;
  margin: 50px 0 30px;
}

.org-chart-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-height: 500px;
  object-fit: contain;
}

/* Compact Leadership Grid */
.compact-leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.compact-leader-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s;
  border: 1px solid #eee;
}

.compact-leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #dc143c;
}

.compact-leader-card .leader-photo {
  height: 180px;
  overflow: hidden;
}

.compact-leader-card .leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.compact-leader-card:hover .leader-photo img {
  transform: scale(1.05);
}

.compact-leader-card h3 {
  font-size: 1.2rem;
  color: #006400;
  margin: 15px 10px 5px;
  font-weight: 600;
}

.compact-leader-card .leader-title {
  color: #dc143c;
  font-weight: 500;
  margin: 0 10px 20px;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .two-col.compact,
  .history-content.compact {
    grid-template-columns: 1fr;
  }

  .history-content.compact .history-image {
    margin-top: 30px;
  }

  .compact-leader-card .leader-photo {
    height: 160px;
  }

  .compact-card h3 {
    font-size: 1.15rem;
  }
}

/* ======================
   DEPARTMENTS PAGE
====================== */
.dept-section {
  margin: 60px 0;
}

.dept-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.dept-icon {
  font-size: 2.5rem;
  color: #dc143c;
  background: #fdf2f3;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-header h3 {
  font-size: 1.8rem;
  color: #006400;
  margin: 0;
}

.dept-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.functions-list,
.projects-list {
  padding-left: 20px;
}

.functions-list li,
.projects-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 10px;
}

.functions-list li:before {
  content: "•";
  color: #dc143c;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.projects-list li:before {
  content: "▹";
  color: #006400;
  position: absolute;
  left: 0;
}

.officer-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid #dc143c;
}

.officer-card h4 {
  color: #006400;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.officer-card p {
  margin: 5px 0;
  font-size: 1rem;
}

.officer-card i {
  color: #dc143c;
  margin-right: 8px;
}

.divider {
  border: 0;
  height: 1px;
  background: #eee;
  margin: 60px 0;
}

/* ======================
   FOOTER
====================== */
.footer-wide {
  background: #000000;
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-top {
  padding: 60px 0 40px;
  border-bottom: 1px solid #2d2f42;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #dc143c;
  display: inline-block;
}

.footer-logo img {
  width: 50px;
  margin-bottom: 15px;
}

.footer-logo h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 15px;
}

.footer-logo span {
  font-size: 0.9rem;
  color: #dc143c;
}

.footer-desc {
  color: #b0b0b0;
  margin-bottom: 25px;
  max-width: 300px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: #dc143c;
}

.footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: #dc143c;
  margin-top: 3px;
  font-size: 0.9rem;
}

.footer-developer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #2d2f42;
}

.footer-developer a {
  color: #dc143c;
  text-decoration: none;
  font-weight: 500;
}

.footer-developer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background: #00000;
  padding: 20px 0;
  text-align: left;
}

.copyright {
  color: #888;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-list {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-menu.active {
    display: block;
  }

  .logo {
    margin-right: 20px;
  }

  .welcome-content,
  .history-content,
  .dept-content,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .slide-content h2 {
    font-size: 2.5rem;
  }

  .slide-content p {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .slide-content {
    padding: 30px 20px;
  }

  .slide-content h2 {
    font-size: 2rem;
  }

  .compact-leader-card .leader-photo {
    height: 160px;
  }

  .compact-leader-card h3 {
    font-size: 1.1rem;
  }
}

/* ======================
   PARASTATALS PAGE
====================== */

/* Compact Parastatals Grid */
.parastatals-grid.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.parastatal-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
}

.parastatal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #dc143c;
}

.parastatal-card h3 {
  font-size: 1.25rem;
  color: #006400;
  margin: 0 0 15px;
  line-height: 1.4;
}

.parastatal-card .location {
  font-size: 0.95rem;
  color: #dc143c;
  font-weight: 500;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.parastatal-card .description {
  color: #555;
  font-size: 0.95rem;
  margin: 0 0 20px;
  line-height: 1.5;
}

.parastatal-card .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .parastatals-grid.compact {
    grid-template-columns: 1fr;
  }

  .parastatal-card h3 {
    font-size: 1.15rem;
  }
}

/* ======================
   INDIVIDUAL PARASTATAL PAGE
====================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.overview-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mandate-list {
  padding-left: 20px;
  margin: 20px 0;
}

.mandate-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 10px;
}

.mandate-list li:before {
  content: "•";
  color: #dc143c;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Functions Grid */
.functions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.function-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s;
}

.function-card:hover {
  transform: translateY(-5px);
}

.function-icon {
  width: 70px;
  height: 70px;
  background: #f8f9fa;
  color: #dc143c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.function-card h3 {
  font-size: 1.2rem;
  color: #006400;
  margin-bottom: 15px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.project-card h3 {
  color: #006400;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.project-card p {
  margin: 5px 0;
  color: #555;
}

/* Leader Profile */
.leader-profile {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  margin-top: 50px;
}

.leader-photo img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.leader-info h3 {
  font-size: 1.5rem;
  color: #006400;
  margin-bottom: 5px;
}

.leader-title {
  color: #dc143c;
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.leader-contact p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
}

.leader-contact i {
  color: #dc143c;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .two-col,
  .leader-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .leader-photo {
    margin: 0 auto;
  }

  .leader-contact {
    justify-content: center;
  }
}

/* ======================
   COMPACT COMPANIES GRID
====================== */

.companies-grid.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.company-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
}

.company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #dc143c;
}

.company-card h3 {
  font-size: 1.25rem;
  color: #006400;
  margin: 0 0 15px;
  line-height: 1.4;
}

.company-card .location {
  font-size: 0.95rem;
  color: #dc143c;
  font-weight: 500;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.company-card .description {
  color: #555;
  font-size: 0.95rem;
  margin: 0 0 20px;
  line-height: 1.5;
}

.company-card .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .companies-grid.compact {
    grid-template-columns: 1fr;
  }

  .company-card h3 {
    font-size: 1.15rem;
  }
}

/* ======================
   RESOURCES PAGE
====================== */

.resources-grid.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.resource-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #dc143c;
}

.resource-card h3 {
  font-size: 1.25rem;
  color: #006400;
  margin: 0 0 15px;
  line-height: 1.4;
}

.resource-card .date {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.resource-card .description {
  color: #555;
  font-size: 0.95rem;
  margin: 0 0 20px;
  line-height: 1.5;
}

.resource-card .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  margin: 0 0 15px;
  font-size: 1.1rem;
}

.gallery-btn {
  display: inline-block;
  background: #dc143c;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
}

.gallery-btn:hover {
  background: #b20000;
}

/* Responsive */
@media (max-width: 768px) {
  .resources-grid.compact,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .resource-card h3 {
    font-size: 1.15rem;
  }
}

/* ======================
   CONTACT PAGE
====================== */

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 50px;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: #006400;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
}

.contact-info i {
  color: #dc143c;
  margin-top: 4px;
  font-size: 1.1rem;
}

.quick-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.quick-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  color: #dc143c;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
}

.quick-link-btn:hover {
  background: #dc143c;
  color: white;
}

.contact-form h3 {
  font-size: 1.5rem;
  color: #006400;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  background: #dc143c;
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #b20000;
}

.map-container {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin: 40px 0;
}

.departments-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.dept-contact-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  transition: transform 0.3s, box-shadow 0.3s;
}

.dept-contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #dc143c;
}

.dept-contact-card h4 {
  font-size: 1.2rem;
  color: #006400;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dept-contact-card p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-size: 0.95rem;
}

.dept-contact-card i {
  color: #dc143c;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-split {
    grid-template-columns: 1fr;
  }

  .quick-links {
    flex-direction: column;
    gap: 10px;
  }

  .quick-link-btn {
    justify-content: center;
  }
}

/* ======================
   MOBILE MENU FIXES — DROPDOWNS WORKING
====================== */

/* Show dropdowns on mobile */
.mobile-menu .dropdown-menu {
  position: static;
  background: white;
  margin: 0;
  padding: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 0 0 10px 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu .dropdown.active .dropdown-menu {
  max-height: 500px;
}

/* Style dropdown links */
.mobile-menu .dropdown-menu li a {
  display: block;
  padding: 12px 30px;
  font-size: 0.95rem;
  color: #333;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  transition: background 0.2s;
}

.mobile-menu .dropdown-menu li a:hover {
  background: #f8f9fa;
  color: #dc143c;
}

/* Hide chevrons on mobile — use arrow instead */
.mobile-menu .dropdown i {
  display: none;
}

/* Add arrow indicator for dropdowns */
.mobile-menu .dropdown::after {
  content: "▼";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Rotate arrow when dropdown is open */
.mobile-menu .dropdown.active::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Ensure dropdowns don't get cut off */
.mobile-menu {
  width: 100%;
  position: fixed;
  top: 70px;
  left: 0;
  background: white;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  z-index: 999;
  overflow-y: auto;
  max-height: calc(100vh - 70px);
}

/* ======================
   DEPARTMENTS PAGE — CLEAN & BEAUTIFUL
====================== */

.dept-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.tab-btn {
  background: #f8f9fa;
  color: #333;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.tab-btn:hover,
.tab-btn.active {
  background: #dc143c;
  color: white;
}

.dept-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.dept-grid.active-grid {
  display: grid;
}

.dept-card {
  background: white;
  border-radius: 15px;
  padding: 35px 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.dept-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.dept-card.tech {
  border-top: 4px solid #dc143c;
}

.dept-card.service {
  border-top: 4px solid #006400;
}

.dept-icon {
  width: 80px;
  height: 80px;
  background: #fdf2f3;
  color: #dc143c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  transition: transform 0.3s;
}

.dept-card.tech .dept-icon {
  background: #fdf2f3;
  color: #dc143c;
}

.dept-card.service .dept-icon {
  background: #f0fff0;
  color: #006400;
}

.dept-card:hover .dept-icon {
  transform: scale(1.1);
}

.dept-card h3 {
  font-size: 1.3rem;
  color: #2b2d42;
  margin: 15px 0 10px;
}

.dept-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Department Details */
.dept-details-section {
  padding: 0 0 80px;
  background: #f9f9f9;
}

.dept-detail {
  background: white;
  border-radius: 15px;
  padding: 50px;
  margin: 80px 0;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  border-left: 5px solid #dc143c;
}

.dept-detail:nth-child(even) {
  border-left-color: #006400;
}

.dept-detail h2 {
  font-size: 2rem;
  color: #2b2d42;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.functions-list,
.projects-list {
  padding-left: 20px;
}

.functions-list li,
.projects-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 10px;
}

.functions-list li:before {
  content: "•";
  color: #dc143c;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.projects-list li:before {
  content: "▹";
  color: #006400;
  position: absolute;
  left: 0;
}

.officer-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid #dc143c;
}

.officer-card h4 {
  color: #2b2d42;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.officer-card p {
  margin: 5px 0;
  font-size: 1rem;
}

.officer-card i {
  color: #dc143c;
  margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .dept-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 80%;
    max-width: 300px;
  }

  .detail-content {
    grid-template-columns: 1fr;
  }

  .dept-detail {
    padding: 30px 20px;
    margin: 50px 0;
  }

  .dept-card h3 {
    font-size: 1.2rem;
  }
}

/* Gallery Categories */
.gallery-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.gallery-btn {
  background: white;
  color: #333;
  border: 2px solid #eee;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-btn:hover,
.gallery-btn.active {
  background: #dc143c;
  color: white;
  border-color: #dc143c;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10;
}

.lightbox-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox-nav button:hover {
  background: rgba(255,255,255,0.4);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 20px;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width

/* ======================
   LEADERSHIP SECTION — REDESIGNED
====================== */

/* Governor Section */
.governor-section {
  margin-bottom: 60px;
}

.governor-frame {
  width: 220px;
  height: 280px;
  margin: 0 auto 30px;
  border: 8px solid #f8f9fa;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 10px;
  overflow: hidden;
  background: white;
}

.governor-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.governor-section h3 {
  color: #006400;
  font-size: 1.4rem;
  margin: 15px 0 5px;
}

.governor-section h4 {
  font-size: 1.3rem;
  color: #dc143c;
  margin: 0 0 10px;
}

.governor-section .leader-title {
  color: #555;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Commissioner & Perm Sec */
.commissioner-permsec-section {
  margin-bottom: 60px;
}

.leader-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.leader-pair {
  text-align: center;
  max-width: 300px;
}

.leader-pair .leader-photo {
  width: 160px;
  height: 200px;
  margin: 0 auto 20px;
  border: 5px solid #f8f9fa;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.leader-pair .leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-pair h4 {
  color: #006400;
  font-size: 1.2rem;
  margin: 15px 0 5px;
}

.leader-pair .leader-title {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.leader-pair p {
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Directors */
.directors-section h3 {
  color: #006400;
  font-size: 1.6rem;
  margin: 0 0 40px;
}

.directors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-items: center;
}

.director-card {
  text-align: center;
  max-width: 240px;
}

.director-card .leader-photo {
  width: 140px;
  height: 170px;
  margin: 0 auto 15px;
  border: 4px solid #f8f9fa;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.director-card .leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-card h4 {
  color: #006400;
  font-size: 1.15rem;
  margin: 10px 0 5px;
}

.director-card .leader-title {
  color: #dc143c;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .governor-frame {
    width: 180px;
    height: 230px;
  }

  .leader-row {
    gap: 30px;
  }

  .leader-pair .leader-photo {
    width: 140px;
    height: 170px;
  }

  .director-card .leader-photo {
    width: 120px;
    height: 150px;
  }

  .governor-section h4 {
    font-size: 1.2rem;
  }
}

/* ======================
   LEADERSHIP GRID - ABOUT PAGE
====================== */

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.leader-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: #dc143c;
}

.leader-photo {
  width: 120px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #f8f9fa;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-card h3 {
  color: #006400;
  font-size: 1.15rem;
  margin: 10px 0 5px;
  font-weight: 600;
}

.leader-title {
  color: #dc143c;
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .leader-photo {
    width: 110px;
    height: 130px;
  }
}

@media (max-width: 576px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .leader-photo {
    width: 100px;
    height: 120px;
  }

  .leader-card {
    padding: 20px;
  }
}

/* ======================
   ZONAL OFFICES - CONTACT PAGE
====================== */

.zonal-offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.zonal-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
}

.zonal-card.active {
  border-color: #dc143c;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.zonal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.zonal-icon {
  width: 50px;
  height: 50px;
  background: #fdf2f3;
  color: #dc143c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.2rem;
}

.zonal-card h3 {
  color: #006400;
  font-size: 1.25rem;
  margin: 10px 0 5px;
  font-weight: 600;
}

.zonal-title {
  color: #dc143c;
  font-size: 1rem;
  margin: 5px 0 10px;
  font-weight: 500;
}

.zonal-location {
  color: #555;
  font-size: 1rem;
  margin: 10px 0;
  font-weight: 500;
}

.zonal-phone {
  color: #555;
  font-size: 0.95rem;
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.zonal-phone i {
  color: #dc143c;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .zonal-offices-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .zonal-card {
    padding: 25px;
  }
}