/* =================================
   FOUNDATION STYLES (SIMPLIFIED)
   Only variables and base styles actually used
   ================================= */

/* External Font Import */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* CSS Custom Properties - Only Used Variables */
:root {
  /* Primary Brand Colors (Kenya Flag) */
  --primary-green: #378037;
  --primary-red: rgb(173, 71, 50);

  /* Hover States */
  --red-hover: rgb(134, 52, 36);
  --green-hover: #45a049;

  /* Status Colors */
  --warning-yellow: #ffc107;
  --warning-yellow-hover: #e0a800;

  /* Neutral Colors */
  --white: #ffffff;
  --off-white: rgb(230, 230, 230);
  --text-dark: #333;
  --text-muted: #bfc3c7;
  --dark-bg: #0a0a0a;
  --light-bg: #f8f9fa;

  /* Transparent Colors */
  --green-transparent: rgba(74, 157, 78, 0.1);
  --red-transparent: rgba(173, 71, 50, 0.1);

  /* Shadows */
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-standard: all 0.3s ease;
  --transition-fast: all 0.2s ease;

  /* Layout Values */
  --navbar-height: 140px;
  --navbar-height-mobile: 100px;

  /* Z-index */
  --z-navbar: 1030;
  --z-navbar-toggle: 1050;
  --z-overlay: 1020;
  --z-dropdown: 1000;
}

/* Base HTML Reset */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Body Base Styles */
body {
  /* Layout */
  margin: 0;
  padding-top: var(--navbar-height);
  overflow-x: hidden;
  background-color: var(--white);

  /* Typography */
  font-family: "Open Sans", "-apple-system", "BlinkMacSystemFont", "Segoe UI",
    "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);

  /* Performance */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "IBM Plex Serif", "Noto Serif", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Focus States */
*:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* Selection Styles */
::selection {
  background-color: var(--primary-green);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--primary-green);
  color: var(--white);
}

/* Responsive Body Padding */
@media (max-width: 991.98px) {
  body {
    padding-top: var(--navbar-height-mobile);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: var(--navbar-height-mobile);
  }
}

@media (max-width: 576px) {
  body {
    padding-top: var(--navbar-height-mobile);
  }
}

/* =================================
   NAVBAR COMPONENT STYLES
   Complete navbar system with responsive behavior
   ================================= */

/* =================================
   1. NAVBAR CONTAINER & PLACEHOLDER
   ================================= */

/* Fixed navbar placeholder container */
#navbar-placeholder {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  background-color: var(--light-bg) !important;
  min-height: 100px;
}

#navbar-placeholder .navbar {
  background-color: var(--light-bg) !important;
  min-height: inherit;
  position: relative;
}

#navbar-placeholder .navbar .container {
  min-height: inherit;
  background-color: var(--light-bg) !important;
}

#navbar-placeholder .navbar-brand-wrapper {
  background-color: var(--light-bg) !important;
}

/* =================================
   2. NAVBAR BASE STRUCTURE
   ================================= */

.navbar {
  background-color: var(--light-bg) !important;
  transition: var(--transition-standard);
  min-height: 100px;
}

/* =================================
   3. NAVBAR BRAND & LOGO
   ================================= */

.navbar-brand-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1rem 0 0.5rem 0;
  background-color: var(--light-bg) !important;
}

.navbar-brand img {
  height: 70px;
  width: auto;
}

/* =================================
   4. NAVBAR NAVIGATION WRAPPER
   ================================= */

.navbar-nav-wrapper {
  width: 100%;
  position: relative;
  background-color: var(--off-white) !important;
}

/* =================================
   5. DESKTOP NAVBAR LAYOUT (992px+)
   ================================= */

@media (min-width: 992px) {
  .navbar {
    flex-direction: column;
    padding: 0;
  }

  .navbar .container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .navbar-brand-wrapper {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
  }

  .navbar-nav-wrapper .navbar-collapse {
    width: 100%;
    background-color: var(--off-white) !important;
    padding: 0.5rem 0;
  }

  .navbar-nav {
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
  }
}

/* =================================
   6. NAVIGATION LINKS
   ================================= */

/* Base navigation link styles */
.nav-link {
  color: var(--primary-green) !important;
  font-weight: 500;
  padding: 0.75rem 0.5rem !important;
  transition: var(--transition-standard);
  border-bottom: 2px solid transparent;
  position: relative;
  white-space: nowrap;
  font-size: 0.9rem;
  min-width: max-content;
}

.nav-link:hover {
  color: var(--primary-green) !important;
  border-bottom-color: var(--primary-green);
}

.nav-link.active {
  color: var(--primary-green) !important;
  border-bottom-color: var(--primary-green);
}

/* =================================
   7. RESPONSIVE NAVIGATION ADJUSTMENTS
   ================================= */

/* Large desktop adjustments (1300px and below) */
@media (max-width: 1300px) {
  .nav-link {
    font-size: 0.85rem;
    padding: 0.75rem 0.4rem !important;
  }

  .navbar-nav {
    gap: 1rem !important;
  }
}

/* Medium desktop adjustments (1200px and below) */
@media (max-width: 1200px) {
  .nav-link {
    font-size: 0.8rem;
    padding: 0.75rem 0.3rem !important;
  }

  .navbar-nav {
    gap: 0.8rem !important;
  }
}

/* Small desktop adjustments (1100px and below) */
@media (max-width: 1100px) {
  .nav-link {
    font-size: 0.75rem;
    padding: 0.75rem 0.25rem !important;
  }

  .navbar-nav {
    gap: 0.5rem !important;
  }
}

/* =================================
   8. DROPDOWN MENUS
   ================================= */

.dropdown-menu {
  background-color: var(--white);
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  color: var(--primary-green);
  transition: var(--transition-standard);
}

.dropdown-item:hover {
  background-color: var(--primary-green);
  color: var(--white);
}

.dropdown-item.active {
  background-color: var(--primary-green);
  color: var(--white);
  font-weight: 600;
}

/* Desktop dropdown hover behavior */
@media (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
  }

  .dropdown-menu {
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast),
      visibility var(--transition-fast);
  }
}

/* =================================
   9. MOBILE HAMBURGER TOGGLE
   ================================= */

.navbar-toggler {
  position: absolute !important;
  top: 50% !important;
  right: 20px !important;
  transform: translateY(-50%) !important;
  z-index: var(--z-navbar-toggle) !important;
  border: none !important;
  padding: 0.25rem 0.5rem !important;
  transition: none !important;
  background: transparent !important;
  margin: 0 !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
}

/* Hide default Bootstrap toggle icon */
.navbar-toggler .navbar-toggler-icon {
  display: none !important;
}

/* Custom hamburger lines */
.navbar-toggler::before,
.navbar-toggler::after {
  content: "" !important;
  width: 35px !important;
  height: 4px !important;
  border-radius: 2px !important;
  display: block !important;
}

.navbar-toggler::before {
  background-color: var(--primary-red) !important;
}

.navbar-toggler::after {
  background-color: var(--primary-green) !important;
}

.navbar-toggler .hamburger-middle {
  width: 35px !important;
  height: 4px !important;
  background-color: var(--text-dark) !important;
  border-radius: 2px !important;
  display: block !important;
}

/* Hide hamburger on desktop */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* =================================
   10. MOBILE NAVBAR BEHAVIOR (991px and below)
   ================================= */

@media (max-width: 991.98px) {
  /* Mobile navbar base */
  .navbar {
    min-height: 100px;
  }

  /* Mobile hamburger positioning */
  .navbar-toggler {
    top: -45px !important;
    right: 25px !important;
  }

  /* Mobile navigation styles */
  .nav-item {
    width: 100% !important;
    min-height: 44px;
    display: block !important;
    pointer-events: auto !important;
  }

  .nav-link {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-left: 4px solid transparent !important;
    border-bottom: none;
    background-color: transparent;
  }

  .nav-link:hover,
  .nav-link.active {
    border-left-color: var(--primary-green);
    border-bottom: none;
    background-color: var(--green-transparent);
  }

  /* Mobile navbar wrapper */
  .navbar-nav-wrapper {
    background-color: var(--off-white) !important;
  }

  /* Mobile collapse container */
  .navbar-collapse {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto !important;
    scroll-behavior: smooth;
  }

  /* Mobile navbar nav */
  .navbar-nav {
    flex-direction: column !important;
    width: 100% !important;
    pointer-events: auto !important;
  }

  /* Mobile dropdown behavior */
  .dropdown-menu.show {
    display: block !important;
    animation: fadeIn 0.2s ease-in-out;
  }

  /* Mobile dropdown items */
  .dropdown-item {
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.75rem 2.5rem;
  }

  .dropdown-item.long-text {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  /* Ensure all interactive elements work on mobile */
  .navbar *[role="button"],
  .navbar button,
  .navbar a {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
}

/* =================================
   11. TABLET NAVBAR ADJUSTMENTS (768px and below)
   ================================= */

@media (max-width: 768px) {
  .navbar {
    min-height: 100px;
  }

  .navbar-brand-wrapper {
    margin-bottom: 0;
    padding: 0.5rem 0;
  }

  .navbar-toggler {
    top: -45px !important;
    right: 25px !important;
  }
}

/* =================================
   12. MOBILE NAVBAR ADJUSTMENTS (576px and below)
   ================================= */

@media (max-width: 576px) {
  .navbar {
    min-height: 100px;
  }

  .navbar-brand-wrapper {
    margin-bottom: 0;
    padding: 0.5rem 0;
  }

  .navbar-toggler {
    top: -45px !important;
    right: 25px !important;
  }
}

/* =================================
   13. SMALL MOBILE ADJUSTMENTS (480px and below)
   ================================= */

@media (max-width: 480px) {
  .navbar-toggler {
    top: -45px !important;
    right: 20px !important;
  }
}

/* =================================
   14. DROPDOWN ANIMATION KEYFRAMES
   ================================= */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================
   END OF NAV
   ================================= */

/* =================================
   HERO SECTIONS COMPONENT
   All hero/banner section styles
   ================================= */

/* =================================
   1. WELCOME HERO (Standard Page Hero)
   ================================= */

.welcome-hero {
  background: var(--white);
  color: var(--text-dark);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e9ecef;
}

.welcome-hero .container {
  position: relative;
  z-index: 2;
}

.welcome-hero h1 {
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.welcome-hero .lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark);
  opacity: 0.8;
}

/* Welcome Hero Button Styles */
.welcome-hero .btn {
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  transition: var(--transition-standard);
  box-shadow: var(--shadow-card);
}

.welcome-hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.welcome-hero .btn-danger {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

.welcome-hero .btn-danger:hover {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
}

.welcome-hero .btn-outline-success {
  color: var(--primary-green);
  border-color: var(--primary-green);
  background-color: transparent;
}

.welcome-hero .btn-outline-success:hover {
  background-color: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

/* Welcome Hero Responsive */
@media (max-width: 768px) {
  .welcome-hero {
    padding: 3rem 0;
  }

  .welcome-hero h1 {
    font-size: 2.5rem;
  }

  .welcome-hero .lead {
    font-size: 1.1rem;
  }

  .welcome-hero .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .welcome-hero h1 {
    font-size: 2rem;
  }

  .welcome-hero .d-flex {
    flex-direction: column;
  }

  .welcome-hero .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* =================================
   2. HERO MODERN (Gradient Hero)
   ================================= */

.hero-modern {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-red));
  color: var(--white);
  min-height: 75vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Hero Modern Content */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero Modern Responsive */
@media (max-width: 991.98px) {
  .hero-modern {
    padding-top: 100px;
    min-height: 70vh;
  }
}

/* =================================
   3. HERO SLIDER (Image Carousel Hero)
   ================================= */

.hero-slider {
  background: none;
  position: relative;
  overflow: hidden;
  min-height: 75vh;
}

/* Slider Container */
.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider-track {
  display: flex;
  width: 600%; /* 6 slides */
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

/* Individual Slides */
.slide {
  width: 16.666%; /* 100% / 6 slides */
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.slide-background {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Slide Placeholder (for missing images) */
.slide-placeholder {
  text-align: center;
  color: var(--text-muted);
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.slide-placeholder h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.slide-placeholder p {
  font-size: 1.1rem;
  margin: 0;
}

/* Slide Overlay (for future content over images) */
.slide-overlay {
  display: none; /* Currently hidden, can be enabled later */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* =================================
   4. SLIDER CONTROLS
   ================================= */

/* Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-standard);
  z-index: 3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
  color: var(--primary-green);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
  will-change: transform;
  backface-visibility: hidden;
  align-items: center;
  justify-content: center;
}

.indicator {
  width: 15px !important;
  height: 15px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.7) !important;
  background: transparent !important;
  cursor: pointer;
  transition: var(--transition-standard);
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  box-sizing: border-box !important;
}

.indicator.active {
  background: var(--white) !important;
  border-color: var(--white) !important;
}

.indicator:hover {
  border-color: var(--white) !important;
  background: rgba(255, 255, 255, 0.5) !important;
}

/* =================================
   5. HERO SLIDER RESPONSIVE
   ================================= */

@media (max-width: 991.98px) {
  .hero-slider {
    min-height: 70vh;
  }
}

@media (max-width: 768px) {
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .prev-btn {
    left: 15px;
  }

  .next-btn {
    right: 15px;
  }

  .slider-indicators {
    bottom: 20px;
    gap: 10px;
  }

  .indicator {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
  }

  .slide-placeholder h3 {
    font-size: 1.5rem;
  }

  .slide-placeholder p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-slider {
    min-height: 60vh;
  }

  .slide-placeholder {
    padding: 1rem;
  }

  .slide-placeholder h3 {
    font-size: 1.25rem;
  }

  .slide-placeholder p {
    font-size: 0.9rem;
  }
}

/* =================================
   END
   ================================= */

/* =================================
   CONTENT & TYPOGRAPHY COMPONENTS
   All content styling, typography, and layout components
   ================================= */

/* =================================
   1. GENERAL CONTENT CONTAINERS
   ================================= */

.content {
  padding: 3rem 0;
  background-color: var(--light-bg);
}

.content-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* =================================
   2. SECTION HEADERS & TITLES
   ================================= */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =================================
   3. NEWS & ARTICLE COMPONENTS
   ================================= */

.news-section {
  padding: 4rem 0;
  background: var(--white);
}

.news-item {
  border-left: 4px solid var(--primary-green);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.news-item:nth-child(even) {
  border-left-color: var(--primary-red);
}

.news-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-date {
  background: var(--primary-green);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.news-item:nth-child(even) .news-date {
  background: var(--primary-red);
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-read-more {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-item:nth-child(even) .news-read-more {
  color: var(--primary-red);
}

.news-read-more:hover {
  color: var(--red-hover);
}

/* =================================
   4. CARD SYSTEM & CUSTOMIZATIONS
   ================================= */

/* Card Header Customizations */
.card-header h2 {
  font-weight: 600;
}

.card-text {
  font-family: "Georgia", serif;
  line-height: 1.8;
}

/* Trusted Logos/Partners */
.trusted-logos {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.trusted-logos:hover {
  opacity: 1;
}

/* =================================
   5. BOOTSTRAP COLOR OVERRIDES
   ================================= */

/* Background Color Overrides */
.card-header.bg-success,
.bg-success {
  background-color: var(--primary-green) !important;
}

.card-header.bg-danger,
.bg-danger {
  background-color: var(--primary-red) !important;
}

.card-header.bg-warning,
.bg-warning {
  background-color: var(--warning-yellow) !important;
  color: var(--text-dark) !important;
}

.card-header.bg-secondary,
.bg-secondary {
  background-color: var(--text-dark) !important;
}

.card-header.bg-info,
.bg-info {
  background-color: var(--primary-green) !important;
}

.card-header.bg-primary,
.bg-primary {
  background-color: var(--primary-red) !important;
}

/* Text Color Overrides */
.text-success {
  color: var(--primary-green) !important;
}

.text-danger {
  color: var(--primary-red) !important;
}

.text-warning {
  color: var(--warning-yellow) !important;
}

.text-info {
  color: var(--primary-green) !important;
}

.text-primary {
  color: var(--primary-red) !important;
}

.text-secondary {
  color: var(--text-dark) !important;
}

/* =================================
   6. BUTTON SYSTEM OVERRIDES
   ================================= */

/* Solid Button Styles */
.btn-success {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-success:hover {
  background-color: var(--green-hover);
  border-color: var(--green-hover);
}

.btn-danger {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-danger:hover {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-warning {
  background-color: var(--warning-yellow);
  border-color: var(--warning-yellow);
  color: var(--text-dark);
}

.btn-warning:hover {
  background-color: var(--warning-yellow-hover);
  border-color: var(--warning-yellow-hover);
  color: var(--text-dark);
}

/* Outline Button Styles */
.btn-outline-success {
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-outline-success:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-outline-danger {
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-outline-danger:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-outline-warning {
  color: var(--warning-yellow);
  border-color: var(--warning-yellow);
}

.btn-outline-warning:hover {
  background-color: var(--warning-yellow);
  border-color: var(--warning-yellow);
  color: var(--text-dark);
}

/* =================================
   7. ALERT SYSTEM OVERRIDES
   ================================= */

.alert-success {
  background-color: var(--green-transparent);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.alert-danger {
  background-color: var(--red-transparent);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-color: var(--warning-yellow);
  color: var(--warning-yellow-hover);
}

.alert-info {
  background-color: var(--green-transparent);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

/* =================================
   8. FOOTER COMPONENT
   ================================= */

footer {
  background-color: var(--dark-bg);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  margin-top: 0;
}

/* =================================
   END OF CONTENT & TYPOGRAPHY COMPONENTS
   ================================= */

/* =================================
   NOTICES & SPECIAL SECTIONS COMPONENT
   Important announcements, notices, and special content areas
   ================================= */

/* =================================
   1. NOTICES SECTION CONTAINER
   ================================= */

.notices-section {
  background: var(--red-hover);
  color: var(--white);
  padding: 3rem 0;
  position: relative;
}

.notices-section .container {
  position: relative;
}

/* =================================
   2. NOTICES HEADER
   ================================= */

.notices-header {
  text-align: center;
}

.notices-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0;
}

/* =================================
   3. NOTICE ITEMS & GLASSMORPHISM
   ================================= */

.notice-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
}

.notice-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* =================================
   4. NOTICE ICONS & CONTENT
   ================================= */

.notice-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.notice-content {
  flex: 1;
}

.notice-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.notice-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.notice-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

/* =================================
   5. CLICKABLE NOTICES & INTERACTIONS
   ================================= */

.clickable-notice {
  cursor: pointer;
}

.clickable-notice:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.clickable-notice .notice-icon {
  background: rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
}

/* =================================
   6. NOTICE ANIMATIONS
   ================================= */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* =================================
   7. NOTICES RESPONSIVE DESIGN
   ================================= */

@media (max-width: 768px) {
  .notices-section {
    padding: 2.5rem 0;
  }

  .notices-title {
    font-size: 1.75rem;
  }

  .notice-item {
    padding: 1.5rem;
    gap: 1rem;
  }

  .notice-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .notice-title {
    font-size: 1.1rem;
  }

  .notice-text {
    font-size: 0.9rem;
  }
}

/* =================================
   END OF NOTICES & SPECIAL SECTIONS COMPONENT
   ================================= */

/* =================================
   SERVICE & CTA COMPONENTS
   Interactive service cards, call-to-action sections, and promotional elements
   ================================= */

/* =================================
   1. SERVICE PREVIEW CARDS
   ================================= */

.service-preview {
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  height: 100%;
}

.service-preview:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-green);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  position: relative;
}

.service-icon i {
  position: relative;
  z-index: 2;
}

/* =================================
   2. CALL-TO-ACTION SECTIONS
   ================================= */

.cta-section {
  background: var(--red-hover);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><rect x="20" y="5" width="10" height="10" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="15" r="3" fill="rgba(255,255,255,0.08)"/></svg>')
    repeat;
}

/* =================================
   3. STATISTICS SECTION
   ================================= */

.stats-section {
  background: var(--light-bg);
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-green);
  display: block;
}

/* =================================
   4. FEATURE CARDS
   ================================= */

.feature-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Feature Card Responsive */
@media (max-width: 991.98px) {
  .feature-card {
    margin-top: 3rem;
  }
}

/* =================================
   5. STAFF & PLACEHOLDER COMPONENTS
   ================================= */

.staff-photo-placeholder {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.staff-photo-placeholder.small {
  height: 120px;
  padding: 1rem;
}

.staff-title {
  font-size: 1.2rem;
  font-weight: 500;
}

/* =================================
   6. BADGE SYSTEM OVERRIDES
   ================================= */

/* Solid Badge Styles */
.badge.bg-success {
  background-color: var(--primary-green) !important;
}

.badge.bg-danger {
  background-color: var(--primary-red) !important;
}

.badge.bg-warning {
  background-color: var(--warning-yellow) !important;
  color: var(--text-dark) !important;
}

.badge.bg-info {
  background-color: var(--primary-green) !important;
}

.badge.bg-primary {
  background-color: var(--primary-red) !important;
}

.badge.bg-secondary {
  background-color: var(--text-dark) !important;
}

/* Outline Badge Styles */
.badge.bg-outline-success {
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
  background: transparent;
}

.badge.bg-outline-primary {
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
  background: transparent;
}

/* =================================
   7. BORDER UTILITY OVERRIDES
   ================================= */

.border-success {
  border-color: var(--primary-green) !important;
}

.border-danger {
  border-color: var(--primary-red) !important;
}

.border-warning {
  border-color: var(--warning-yellow) !important;
}

.border-info {
  border-color: var(--primary-green) !important;
}

.border-primary {
  border-color: var(--primary-red) !important;
}

.border-secondary {
  border-color: var(--text-dark) !important;
}

/* =================================
   END OF SERVICE & CTA COMPONENTS
   ================================= */

.president-photo-placeholder {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ministry-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.ministry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.anthem-verse {
  position: relative;
}

.anthem-verse p {
  font-family: "Georgia", serif;
  line-height: 1.8;
}

/* =================================
   GALLERY SYSTEM - CONSOLIDATED
   All gallery-related classes in one place
   ================================= */

/* Main Gallery Container */
.gallery-container {
  padding: 4rem 0;
  background: var(--white);
}

/* Category Filter */
.gallery-filter {
  margin-bottom: 2rem;
  text-align: center;
}

.gallery-filter-btn {
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  margin: 0.25rem;
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 128, 55, 0.3);
}

/* Gallery Grid System */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Individual Gallery Items */
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  background: var(--white);
  aspect-ratio: 4/3;
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Gallery Images */
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  backface-visibility: hidden;
  will-change: transform;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* Gallery Overlay System */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--white);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Overlay Content */
.gallery-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.gallery-description {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.gallery-date {
  font-size: 0.75rem;
  opacity: 0.7;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter States */
.gallery-item.hidden {
  display: none;
}

.gallery-item.fade-out {
  opacity: 0;
  transform: scale(0.9);
}

.gallery-item.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* =================================
   RESPONSIVE BREAKPOINTS
   ================================= */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .gallery-title {
    font-size: 0.95rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .gallery-container {
    padding: 3rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
  }

  .gallery-filter-btn {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
    margin: 0.2rem;
  }

  .gallery-overlay {
    padding: 1.25rem;
  }

  .gallery-title {
    font-size: 0.9rem;
  }

  .gallery-description {
    font-size: 0.8rem;
  }
}

/* Mobile Phones */
@media (max-width: 576px) {
  .gallery-container {
    padding: 2rem 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-filter-btn {
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
    margin: 0.15rem;
  }

  .gallery-item {
    border-radius: 8px;
  }

  .gallery-overlay {
    padding: 1rem;
  }

  .gallery-title {
    font-size: 0.85rem;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  .gallery-filter {
    margin-bottom: 1.5rem;
  }

  .gallery-filter-btn {
    display: block;
    width: 100%;
    margin: 0.15rem 0;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-grid {
    gap: 0.75rem;
  }
}

/* =================================
   PERFORMANCE OPTIMIZATIONS
   ================================= */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-image,
  .gallery-overlay,
  .gallery-filter-btn {
    transition: none;
  }

  .gallery-item:hover .gallery-image {
    transform: none;
  }

  .gallery-item:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gallery-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
  }

  .gallery-filter-btn {
    border-width: 3px;
  }
}

/* =================================
   STAFF TABLE
   ================================= */
.staff-table {
  border: 2px solid var(--primary-green);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.staff-table thead th {
  background-color: var(--primary-green) !important;
  color: white;
  border-color: var(--primary-green) !important;
  font-weight: 600;
  text-align: left;
  vertical-align: middle;
  padding: 1rem;
  font-size: 1.1rem;
}

.staff-table tbody tr {
  transition: all 0.2s ease;
}

.staff-table tbody tr:hover {
  background-color: var(--green-transparent);
}

.staff-table tbody td {
  vertical-align: middle;
  padding: 1rem;
  border-color: #dee2e6;
  text-align: left;
}

.staff-name {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1rem;
}

.staff-designation {
  color: var(--text-dark);
  font-weight: 400;
  font-size: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .staff-table {
    font-size: 0.9rem;
  }

  .staff-table thead th {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
  }

  .staff-table tbody td {
    padding: 0.75rem 0.5rem;
  }

  .staff-name,
  .staff-designation {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .staff-table {
    font-size: 0.85rem;
  }

  .staff-table thead th {
    padding: 0.6rem 0.4rem;
    font-size: 0.9rem;
  }

  .staff-table tbody td {
    padding: 0.6rem 0.4rem;
  }

  .staff-name,
  .staff-designation {
    font-size: 0.85rem;
  }
}
