* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #7a1f2b;
  --primary-dark: #5a1720;
  --primary-light: #9a2f3b;
  --secondary: #1f5f4a;
  --secondary-dark: #164839;
  --accent: #c9a227;
  --accent-dark: #a88820;
  --light: #fff6e5;
  --cream: #fff6e5;
  --dark: #3a2a1a;
  --text: #3a2a1a;
  --text-light: #5a4a3a;
  --text-lighter: #7a6a5a;
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, #7a1f2b 0%, #1f5f4a 100%);
  --gradient-2: linear-gradient(135deg, #c9a227 0%, #1f5f4a 100%);
  --gradient-3: linear-gradient(135deg, #7a1f2b 0%, #5a1720 100%);
  --shadow: 0 8px 20px rgba(122, 31, 43, 0.15);
  --shadow-md: 0 12px 25px rgba(122, 31, 43, 0.2);
  --shadow-lg: 0 15px 35px rgba(122, 31, 43, 0.25);
  --shadow-xl: 0 25px 60px rgba(122, 31, 43, 0.3);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

html {
  scroll-behavior: smooth;
  /* Prevent horizontal scroll on mobile */
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(122, 31, 43, 0.2);
  min-height: 100vh;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: "Roboto Slab", serif;
  font-weight: 500;
}

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

section {
  padding: 80px 0;
}

/* Touch-friendly links and buttons */
a,
button {
  -webkit-tap-highlight-color: rgba(46, 125, 50, 0.2);
  touch-action: manipulation;
}

section {
  padding: 90px 0;
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--primary) 0px,
      transparent 2px,
      transparent 10px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--accent) 0px,
      transparent 2px,
      transparent 10px
    );
  background-size: 60px 60px;
  pointer-events: none;
}

.section-title {
  text-align: center;
  margin-bottom: 75px;
  position: relative;
  animation: fadeInUp 0.8s ease;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary);
  display: inline-block;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-title h2::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 5px;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(201, 162, 39, 0.4);
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary),
    transparent
  );
  border-radius: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 15px;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(
    135deg,
    var(--secondary) 0%,
    var(--secondary-dark) 50%,
    var(--secondary) 100%
  );
  background-size: 200% 100%;
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 10px 30px rgba(31, 95, 74, 0.4),
    0 0 0 0 rgba(31, 95, 74, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  background-position: 100% 0;
  transform: translateY(-6px) scale(1.05);
  box-shadow:
    0 20px 50px rgba(31, 95, 74, 0.5),
    0 0 30px rgba(201, 162, 39, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: var(--accent);
  letter-spacing: 2px;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover::after {
  transform: translateX(0) translateY(0) rotate(45deg);
}

.btn:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow:
    0 8px 20px rgba(31, 95, 74, 0.4),
    0 0 15px rgba(31, 95, 74, 0.2),
    inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn:focus {
  outline: none;
  box-shadow:
    0 10px 30px rgba(31, 95, 74, 0.4),
    0 0 0 4px rgba(31, 95, 74, 0.2);
}

/* Header Styles */
header {
  background:
    linear-gradient(135deg, rgba(122, 31, 43, 0.92), rgba(90, 23, 32, 0.95)),
    url("images/landscap.jpeg") no-repeat center center/cover;
  height: 100vh;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background-attachment: fixed;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(201, 162, 39, 0.1) 35px,
      rgba(201, 162, 39, 0.1) 37px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 35px,
      rgba(31, 95, 74, 0.1) 35px,
      rgba(31, 95, 74, 0.1) 37px
    );
  animation: pulse 8s ease-in-out infinite;
}

.hero-content {
  max-width: 900px;
  padding: 30px 20px;
  animation: fadeInUp 1s ease;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 25px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 35px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 300;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(122, 31, 43, 0.95),
    rgba(90, 23, 32, 0.98)
  );
  z-index: 1000;
  padding: 20px 0;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: var(--transition);
  box-shadow: 0 4px 30px rgba(122, 31, 43, 0.25);
  border-bottom: 2px solid var(--accent);
}

nav.scrolled {
  padding: 14px 0;
  background: linear-gradient(
    135deg,
    rgba(122, 31, 43, 0.98),
    rgba(90, 23, 32, 1)
  );
  box-shadow: 0 8px 32px rgba(122, 31, 43, 0.35);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(122, 31, 43, 0.6), rgba(90, 23, 32, 0.8));
  border: 2px solid rgba(201, 162, 39, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
}

.nav-logo:hover .logo-badge {
  transform: rotate(-5deg) scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-family: 'Roboto Slab', serif;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.logo-tagline {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
  white-space: nowrap;
}

.nav-logo:hover .logo-name {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  transition: all 0.4s ease;
  gap: 4px;
  align-items: center;
  /* background: blue; */
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 12px 12px;
  display: block;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 10px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::before {
  opacity: 0;
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  width: 80%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: rgba(31, 95, 74, 0.3);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 8px;
  padding: 8px;
  outline: none;
  z-index: 1001;
  transition: var(--transition);
}

.hamburger:hover {
  background: rgba(31, 95, 74, 0.5);
  transform: scale(1.05);
  border-color: var(--accent);
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: linear-gradient(90deg, var(--white), var(--accent));
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Education Section */
.education-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 40px;
}

.school-card {
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(46, 125, 50, 0.08);
}

.school-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--accent),
    var(--secondary)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.school-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px rgba(122, 31, 43, 0.2);
}

.school-card:hover::before {
  transform: scaleX(1);
}

.school-img {
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff6e5, #fff0d5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.school-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(122, 31, 43, 0.08),
    rgba(31, 95, 74, 0.04)
  );
  opacity: 1;
  transition: opacity 0.4s ease;
}

.school-card:hover .school-img::after {
  opacity: 0.3;
}

.school-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) contrast(1.05);
}

.school-card:hover .school-img img {
  transform: scale(1.12) rotate(1deg);
  filter: brightness(1.05) contrast(1.1);
}

.school-img i {
  font-size: 5rem;
  color: var(--primary);
}

.school-info {
  padding: 30px;
}

.school-info h3 {
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 600;
}

.school-info p {
  color: var(--text-light);
  line-height: 1.8;
}

.school-info ul {
  list-style: none;
  margin: 25px 0;
}

.school-info ul li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  transition: var(--transition);
  background: rgba(122, 31, 43, 0.04);
  border-left: 3px solid transparent;
}

.school-info ul li:hover {
  background-color: rgba(31, 95, 74, 0.08);
  padding-left: 18px;
  border-left-color: var(--secondary);
  transform: translateX(5px);
}

.school-info ul li i {
  color: var(--primary);
  margin-right: 12px;
  width: 22px;
  font-size: 1.1rem;
}

/* Medical Section */
.clinics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 30px;
}

.clinic-card {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(122, 31, 43, 0.1);
  position: relative;
}

.clinic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.clinic-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.clinic-card:hover::before {
  transform: scaleX(1);
}

.doctor-img {
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff6e5, #fff0d5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.doctor-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clinic-card:hover .doctor-img::after {
  opacity: 1;
}

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

.clinic-card:hover .doctor-img img {
  transform: scale(1.08);
}

/* .doctor-img i {
            font-size: 5rem;
            color: var(--primary);
        } */

.clinic-info {
  padding: 28px;
  text-align: center;
}

.clinic-info h3 {
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.clinic-info p {
  margin-bottom: 12px;
  color: var(--text-light);
  line-height: 1.7;
}

.clinic-info p strong {
  color: var(--text);
  font-weight: 600;
}

.doctor-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(122, 31, 43, 0.06);
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid rgba(122, 31, 43, 0.08);
}

.doctor-hours i {
  color: var(--accent);
  font-size: 0.95rem;
}

/* Contact action buttons row */
.doctor-contacts {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(122, 31, 43, 0.08);
  border-radius: 0 0 15px 15px;
  overflow: hidden;
}

.doc-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
  min-height: 44px;
}

.doc-btn + .doc-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.doc-btn i {
  font-size: 1rem;
}

/* Phone — blue-green */
.doc-btn-phone {
  background: #2196a8;
  color: #fff;
}
.doc-btn-phone:hover {
  background: #1a7a85;
  color: #fff;
}

/* WhatsApp — green */
.doc-btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.doc-btn-whatsapp:hover {
  background: #1aad52;
  color: #fff;
}

/* Email — primary red */
.doc-btn-email {
  background: var(--primary);
  color: #fff;
}
.doc-btn-email:hover {
  background: var(--primary-dark);
  color: #fff;
}


/* Agriculture Section */
.agriculture-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 40px;
  align-items: center;
}

.agriculture-stats {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.agriculture-stats::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.2), transparent 70%);
  animation: rotate 20s linear infinite;
}

.agriculture-stats h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.agriculture-stats > p {
  position: relative;
  z-index: 1;
  opacity: 0.95;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 25px 18px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.stat-item h4 {
  font-size: 2.3rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.95;
}

.landowners {
  margin-top: 35px;
  position: relative;
  z-index: 1;
}

.landowners h4 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.landowner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.landowner {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 50px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.landowner:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.landowner-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

/* .landowner-img i {
            font-size: 1.2rem;
            color: var(--primary);
        } */
.landowner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landowner span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* Population Section */
.population-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 30px;
}

.population-stats {
  background: linear-gradient(135deg, var(--white), var(--cream));
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgba(122, 31, 43, 0.1);
}

.population-stats h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
}

.population-stats > p {
  color: var(--primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Population number - moved from inline style */
.population-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
}

/* Population gender grid - moved from inline style */
.population-gender-grid {
  grid-template-columns: 1fr 1fr;
}

.chart-container {
  width: 100%;
  height: 300px;
  margin-top: 30px;
  position: relative;
}

.chart {
  position: absolute;
  bottom: 0;
  width: 70px;
  background-color: var(--primary);
  border-radius: 8px 8px 0 0;
  transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.male-chart {
  left: 25%;
  transform: translateX(-50%);
  background-color: var(--secondary);
}

.female-chart {
  right: 25%;
  transform: translateX(50%);
  background-color: var(--accent);
}

.chart-label-M {
  position: absolute;
  bottom: -30px;
  left: 25%;
  transform: translateX(-50%);
  font-weight: 500;
  white-space: nowrap;
}

.chart-label-F {
  position: absolute;
  bottom: -30px;
  right: 25%;
  transform: translateX(50%);
  font-weight: 500;
  white-space: nowrap;
}

/* Sports Section */
.sports-content {
  background-color: var(--white);
  border-radius: 15px;
  padding: 50px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 50px;
  align-items: center;
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.sports-list {
  padding-right: 20px;
}

.sports-list h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 25px;
  font-weight: 600;
}

.sports-list p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.sports-list ul {
  list-style: none;
}

.sports-list li {
  margin-bottom: 15px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--cream), #fff0d5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sports-list li:hover {
  transform: translateX(8px);
  border-left-color: var(--secondary);
  box-shadow: var(--shadow);
}

.sports-list li i {
  color: var(--primary);
  margin-right: 15px;
  font-size: 1.4rem;
  min-width: 25px;
}

.tournaments {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 15px;
  color: var(--white);
}

.tournaments h4 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.tournament-count {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.tournaments p {
  line-height: 1.7;
  opacity: 0.95;
}

/* Pride Section */
.pride-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 35px;
}

.pride-card {
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 1px solid rgba(122, 31, 43, 0.1);
  position: relative;
}

.pride-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--accent),
    var(--secondary)
  );
  transform: scaleX(0);
  transition: transform 0.5s ease;
  z-index: 1;
}

.pride-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-xl);
}

.pride-card:hover::before {
  transform: scaleX(1);
}

.pride-img {
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream), #fff0d5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pride-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.02) 100%
  );
  z-index: 1;
}

.pride-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 50%,
    rgba(122, 31, 43, 0.05)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.pride-card:hover .pride-img::after {
  opacity: 1;
}

.pride-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
  filter: brightness(1.02) contrast(1.05);
}

.pride-card:hover .pride-img img {
  transform: scale(1.1);
  filter: brightness(1.05) contrast(1.08);
}

.pride-img i {
  font-size: 5rem;
  color: var(--primary);
}

.pride-info {
  padding: 32px 25px;
  text-align: center;
  background: linear-gradient(180deg, var(--white), #fafafa);
  position: relative;
}

.pride-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pride-card:hover .pride-info::before {
  opacity: 1;
}

.pride-info h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.pride-info p {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.pride-info p:last-child {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  height: 240px;
  position: relative;
  box-shadow: var(--shadow);
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

.gallery-item i {
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.gallery-item:hover i {
  transform: scale(1.2);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: var(--white);
  padding: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-weight: 500;
  font-size: 0.95rem;
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* View More Button Container */
.view-more-container {
  text-align: center;
  margin-top: 40px;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition);
}

.view-more-btn i {
  font-size: 1.2rem;
}

.view-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Page Header for Gallery Page */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 100px 0 60px 0;
  margin-top: 70px;
  text-align: center;
  border-bottom: 3px solid var(--accent);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* =============================================
   GALLERY PAGE — TWO-SECTION LAYOUT
   ============================================= */

.gallery-section {
  padding: 80px 0;
}

.video-gallery-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f0e8d5 100%);
  border-top: 2px solid rgba(122, 31, 43, 0.08);
}

/* Section header with icon + title */
.gallery-section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.gallery-section-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(122, 31, 43, 0.25);
  flex-shrink: 0;
}

.gallery-section-icon.video-icon {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  box-shadow: 0 8px 20px rgba(31, 95, 74, 0.25);
}

.gallery-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  position: relative;
}

.gallery-section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 8px;
}

.gallery-section-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ---- Video Grid ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 28px;
}

.video-item {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(122, 31, 43, 0.08);
}

.video-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* 16:9 responsive iframe wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #111;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-top: 1px solid rgba(122, 31, 43, 0.07);
}

.video-caption i {
  font-size: 1.2rem;
  color: var(--secondary);
  flex-shrink: 0;
}



/* About Section */
.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 40px;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image i {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Location Section */
.location {
  position: relative;
  overflow: hidden;
}

.location::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(122, 31, 43, 0.03),
    transparent 50%
  );
  pointer-events: none;
}

.location-container {
  background: linear-gradient(135deg, var(--white), var(--cream));
  border-radius: 20px;
  padding: 45px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(122, 31, 43, 0.1);
  position: relative;
  overflow: hidden;
}

.location-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent),
    var(--secondary)
  );
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.location-container:hover::before {
  opacity: 0.1;
}

.map-container {
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid var(--accent);
}

.map-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(122, 31, 43, 0.1), transparent);
  pointer-events: none;
  z-index: 1;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: relative;
  z-index: 0;
}

.map-container i {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 40px;
}

.contact-info {
  background-color: var(--secondary);
  color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  color: var(--white);
}

.contact-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.contact-details {
  list-style: none;
}

.contact-details li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  color: var(--white);
}

.contact-details i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-right: 15px;
  min-width: 25px;
}

.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(122, 31, 43, 0.1);
}

.contact-form h3 {
  color: var(--primary);
  font-size: 1.9rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(31, 95, 74, 0.15);
}

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 70px 0 30px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--accent);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 25px,
      rgba(201, 162, 39, 0.05) 25px,
      rgba(201, 162, 39, 0.05) 27px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 25px,
      rgba(31, 95, 74, 0.05) 25px,
      rgba(31, 95, 74, 0.05) 27px
    );
  opacity: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 50px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-column h3 {
  font-size: 1.6rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-weight: 600;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 2px;
}

.footer-column p {
  line-height: 1.8;
  opacity: 0.9;
}

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

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

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-links a:hover::after {
  width: 100%;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  z-index: -1;
}

.social-links a:hover {
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 10px 25px rgba(201, 162, 39, 0.4);
}

.social-links a:hover::before {
  transform: scale(1);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
  text-align: center;
}

.ri-hearts-line {
  color: #e74c3c;
  font-size: 1.3rem;
  animation: heartbeat 1.2s infinite;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--secondary) 0%,
    var(--secondary-dark) 100%
  );
  background-size: 200% 200%;
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow:
    0 8px 25px rgba(31, 95, 74, 0.4),
    0 0 0 0 rgba(201, 162, 39, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  backdrop-filter: blur(10px);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulse-ring {
  0%,
  100% {
    box-shadow:
      0 8px 25px rgba(31, 95, 74, 0.4),
      0 0 0 0 rgba(201, 162, 39, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 8px 25px rgba(31, 95, 74, 0.4),
      0 0 0 10px rgba(201, 162, 39, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-8px) rotate(360deg) scale(1.1);
  background-position: 100% 100%;
  box-shadow:
    0 15px 40px rgba(31, 95, 74, 0.5),
    0 0 30px rgba(201, 162, 39, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: var(--accent);
  animation: none;
}

.scroll-to-top:active {
  transform: translateY(-4px) scale(0.95);
  box-shadow:
    0 8px 20px rgba(31, 95, 74, 0.4),
    inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
  z-index: 2;
}

.scroll-indicator span {
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

.scroll-indicator i {
  font-size: 2rem;
  color: var(--accent);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-15px) translateX(-50%);
  }
  60% {
    transform: translateY(-8px) translateX(-50%);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  nav .container {
    margin-left: 20px;
    margin-right: 20px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  nav .container {
    flex-direction: row;
  }

  .nav-logo {
    margin-bottom: 0;
    gap: 10px;
  }

  .logo-badge {
    width: 44px;
    height: 44px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .logo-name {
    font-size: 0.95rem;
  }

  .logo-tagline {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }

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

  .sports-content,
  .contact-content,
  .location-container {
    padding: 35px;
  }

  .about-image {
    height: 350px;
  }

  .map-container {
    height: 400px;
  }

  .population-stats,
  .agriculture-stats {
    padding: 35px;
  }

  .pride-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .pride-img {
    height: 280px;
  }

  .pride-info h3 {
    font-size: 1.6rem;
  }

  .pride-info {
    padding: 25px 20px;
  }
}

@media (max-width: 768px) {
  nav .container {
    margin-left: 0;
    padding: 0 15px;
  }

  .logo-badge {
    width: 40px;
    height: 40px;
  }

  .logo-icon {
    width: 26px;
    height: 26px;
  }

  .logo-name {
    font-size: 0.9rem;
  }

  .logo-tagline {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.4rem;
    letter-spacing: 1px;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 15px;
  }

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

  section {
    padding: 60px 0;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(
      135deg,
      rgba(122, 31, 43, 0.98),
      rgba(90, 23, 32, 0.98)
    );
    flex-direction: column;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    padding: 20px 0;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 40px rgba(122, 31, 43, 0.4);
    border-top: 2px solid var(--accent);
    gap: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links li {
    margin: 12px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideInLeft 0.3s forwards;
  }

  .nav-links.active li:nth-child(1) {
    animation-delay: 0.1s;
  }
  .nav-links.active li:nth-child(2) {
    animation-delay: 0.15s;
  }
  .nav-links.active li:nth-child(3) {
    animation-delay: 0.2s;
  }
  .nav-links.active li:nth-child(4) {
    animation-delay: 0.25s;
  }
  .nav-links.active li:nth-child(5) {
    animation-delay: 0.3s;
  }
  .nav-links.active li:nth-child(6) {
    animation-delay: 0.35s;
  }
  .nav-links.active li:nth-child(7) {
    animation-delay: 0.4s;
  }
  .nav-links.active li:nth-child(8) {
    animation-delay: 0.45s;
  }
  .nav-links.active li:nth-child(9) {
    animation-delay: 0.5s;
  }
  .nav-links.active li:nth-child(10) {
    animation-delay: 0.55s;
  }
  .nav-links.active li:nth-child(11) {
    animation-delay: 0.6s;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 12px 20px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .education-content,
  .clinics-grid,
  .agriculture-container,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sports-content,
  .contact-form,
  .location-container {
    padding: 30px 25px;
  }

  .footer-content {
    gap: 35px;
  }

  .about-image {
    height: 300px;
  }

  .map-container {
    height: 350px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-item {
    height: 200px;
  }

  .pride-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .pride-card {
    border-radius: 15px;
  }

  .pride-img {
    height: 260px;
  }

  .pride-info {
    padding: 24px 20px;
  }

  .pride-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .pride-info p {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .doctor-img {
    height: 240px;
  }

  .school-img {
    height: 220px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 50px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
    letter-spacing: 0.3px;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 0.98rem;
    line-height: 1.6;
    padding: 0 10px;
  }

  header {
    height: 100vh;
    background-attachment: scroll;
  }

  .section-title h2 {
    font-size: 1.85rem;
    letter-spacing: 0.5px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title p {
    font-size: 0.92rem;
    padding: 0 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-item {
    height: 220px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 13.5px;
    letter-spacing: 1px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .view-more-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .school-info,
  .clinic-info {
    padding: 24px 20px;
  }

  .pride-info {
    padding: 25px 20px;
  }

  .school-info h3,
  .clinic-info h3 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .school-info ul li {
    font-size: 0.9rem;
  }

  .agriculture-stats,
  .sports-content,
  .location-container {
    padding: 20px;
  }

  .agriculture-stats h3,
  .sports-list h3 {
    font-size: 1.7rem;
  }

  .crops-info {
    margin-top: 30px;
  }

  .crops-info h3 {
    font-size: 1.7rem;
  }

  .crops-info ul li {
    font-size: 0.88rem;
    padding-left: 30px;
  }

  .landowner-list {
    gap: 12px;
  }

  .landowner {
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  .landowner-img {
    width: 38px;
    height: 38px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-item {
    padding: 20px 15px;
  }

  .stat-item h4 {
    font-size: 2rem;
  }

  .stat-item p {
    font-size: 0.9rem;
  }

  .population-stats h3 {
    font-size: 2rem;
  }

  .population-stats > p {
    font-size: 3rem;
  }

  .nav-logo img {
    height: 45px;
  }

  .nav-logo p {
    font-size: 0.75rem;
  }

  .container {
    width: 92%;
    padding: 0 15px;
  }

  .about-image {
    height: 250px;
  }

  .about-text h3 {
    font-size: 1.7rem;
  }

  .about-text p {
    font-size: 0.95rem;
    text-align: justify;
  }

  .map-container {
    height: 300px;
  }

  .pride-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .pride-card {
    border-radius: 12px;
    max-width: 400px;
    margin: 0 auto;
  }

  .pride-img {
    height: 280px;
  }

  .pride-info {
    padding: 22px 18px;
  }

  .pride-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .pride-info p {
    font-size: 0.88rem;
    margin-bottom: 4px;
    line-height: 1.6;
  }

  .pride-info p:last-child {
    font-size: 0.85rem;
  }

  .doctor-img,
  .school-img {
    height: 220px;
  }

  .chart-container {
    height: 250px;
  }

  .chart {
    width: 60px;
  }

  .chart-label-M,
  .chart-label-F {
    font-size: 0.9rem;
  }

  .tournament-count {
    font-size: 4rem;
  }

  .tournaments h4 {
    font-size: 1.5rem;
  }

  .tournaments p {
    font-size: 0.9rem;
  }

  .sports-list li {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .sports-list li i {
    font-size: 1.2rem;
  }

  .contact-form h3,
  .contact-info h3 {
    font-size: 1.6rem;
  }

  .contact-details li {
    font-size: 0.9rem;
  }

  .contact-details strong {
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  /* Better input handling on iOS */
  .form-group input,
  .form-group textarea,
  .form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .footer-content {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .footer-column p {
    font-size: 0.9rem;
  }

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

  .footer-links a {
    font-size: 0.9rem;
  }

  .copyright p {
    font-size: 0.85rem;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.3rem;
  }

  .page-header {
    padding: 80px 0 50px 0;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
    padding: 0 15px;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

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

  .nav-logo span {
    font-size: 1rem;
  }

  .container {
    width: 96%;
    padding: 0 12px;
  }

  .btn {
    padding: 11px 24px;
    font-size: 12px;
    min-height: 42px;
  }

  .school-info,
  .clinic-info,
  .pride-info {
    padding: 20px 16px;
  }

  .school-info h3,
  .clinic-info h3 {
    font-size: 1.4rem;
  }

  .school-info ul li {
    font-size: 0.88rem;
    padding: 9px;
  }

  .stat-item h4 {
    font-size: 1.9rem;
  }

  .stat-item p {
    font-size: 0.88rem;
  }

  .population-stats > p {
    font-size: 2.8rem;
  }

  .tournament-count {
    font-size: 3.8rem;
  }

  .pride-card {
    max-width: 100%;
  }

  .pride-img {
    height: 260px;
  }

  .pride-info h3 {
    font-size: 1.4rem;
  }

  .pride-info p {
    font-size: 0.86rem;
  }

  .gallery-item {
    height: 220px;
  }

  .contact-form,
  .contact-info {
    padding: 24px 18px;
  }

  .form-group input,
  .form-group textarea {
    padding: 13px 14px;
    font-size: 0.92rem;
  }

  .footer-column {
    padding: 0 8px;
  }

  .footer-column h3 {
    font-size: 1.35rem;
  }

  .scroll-to-top {
    width: 44px;
    height: 44px;
    bottom: 18px;
    right: 18px;
  }

  .tournament-count {
    font-size: 3.5rem;
  }

  .pride-card {
    max-width: 100%;
  }

  .pride-img {
    height: 240px;
  }

  .pride-info h3 {
    font-size: 1.3rem;
  }

  .pride-info p {
    font-size: 0.84rem;
  }

  .gallery-item {
    height: 200px;
  }

  .contact-form,
  .contact-info,
  .location-container,
  .sports-content {
    padding: 20px 12px;
  }

  .form-group input,
  .form-group textarea {
    padding: 11px 12px;
    font-size: 0.88rem;
  }

  .footer-column {
    padding: 0 8px;
  }

  .footer-column h3 {
    font-size: 1.3rem;
  }

  .scroll-to-top {
    width: 44px;
    height: 44px;
    bottom: 18px;
    right: 18px;
  }

  .page-header h1 {
    font-size: 1.7rem;
  }

  .page-header p {
    font-size: 0.9rem;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 0.88rem;
  }

  .sports-list h3,
  .tournaments h4 {
    font-size: 1.5rem;
  }

  .sports-list li {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .landowner {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .landowner-img {
    width: 35px;
    height: 35px;
  }

  nav {
    padding: 12px 0;
  }

  nav.scrolled {
    padding: 10px 0;
  }

  .hamburger {
    padding: 6px;
  }

  .hamburger span {
    width: 22px;
    height: 2.5px;
  }

  .doctor-img {
    height: 180px;
  }

  .school-img {
    height: 160px;
  }

  .map-container {
    height: 250px;
  }

  .contact-form h3 {
    font-size: 1.5rem;
  }

  .footer-links a {
    font-size: 0.88rem;
  }

  .social-links a {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  header {
    height: auto;
    min-height: 100vh;
    padding: 80px 0 40px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  section {
    padding: 40px 0;
  }
}

/* =============================================
   ADDITIONAL RESPONSIVE IMPROVEMENTS
   ============================================= */

/* Override inline styles for population stats grid on mobile */
@media (max-width: 576px) {
  /* Population stats grid - override inline style */
  .population-stats .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
    margin-top: 25px;
  }

  /* Single stat item below the 2-col grid */
  .population-stats > .stat-item {
    margin-top: 12px !important;
  }

  /* Chart container improvements */
  .chart-container {
    height: 220px;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .chart {
    width: 55px;
  }

  /* Sports content - ensure single column stacking */
  .sports-content {
    grid-template-columns: 1fr !important;
    gap: 30px;
    padding: 25px 18px;
  }

  .sports-list {
    padding-right: 0;
  }

  /* Contact form full width on mobile */
  .contact-form {
    padding: 25px 18px;
  }

  /* Better touch targets for nav links */
  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Location container padding */
  .location-container {
    padding: 20px 15px;
  }

  /* Agriculture container - ensure full width */
  .agriculture-container {
    grid-template-columns: 1fr !important;
  }

  /* Crops info list items */
  .crops-info ul li {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Footer newsletter form */
  .footer-column form .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Section title margin */
  .section-title {
    margin-bottom: 40px;
  }
}

/* Tablet range (577px - 768px) improvements */
@media (min-width: 577px) and (max-width: 768px) {
  /* Gallery - 2 columns on tablet */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-item {
    height: 210px;
  }

  /* Pride grid - 2 columns on tablet */
  .pride-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Sports content stacking */
  .sports-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
  }

  .sports-list {
    padding-right: 0;
  }

  /* Population stats grid */
  .population-stats .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Medium tablet range (769px - 992px) improvements */
@media (min-width: 769px) and (max-width: 992px) {
  /* Nav logo sizing */
  .nav-logo img {
    height: 55px;
  }

  .nav-logo p {
    font-size: 0.85rem;
  }

  /* Nav links font size */
  .nav-links a {
    font-size: 0.9rem;
    padding: 10px 8px;
  }

  /* Gallery - 3 columns */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  /* Pride grid - 3 columns */
  .pride-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .pride-img {
    height: 260px;
  }

  /* Sports content */
  .sports-content {
    padding: 35px 30px;
    gap: 35px;
  }

  /* Contact form */
  .contact-form {
    padding: 35px 30px;
  }

  /* Location container */
  .location-container {
    padding: 35px 30px;
  }
}

/* Fix for very wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-content h1 {
    font-size: 4rem;
  }

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

/* Ensure images never overflow their containers */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for iOS Safari - prevent text size adjustment */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Improve touch targets on all interactive elements */
@media (max-width: 768px) {
  a, button, input[type="submit"], input[type="button"] {
    min-height: 44px;
  }

  /* Prevent horizontal overflow from any element */
  * {
    max-width: 100%;
  }

  /* Fix for fixed background on mobile (performance) */
  header {
    background-attachment: scroll;
  }

  /* Nav logo responsive */
  .nav-logo img {
    height: 50px;
  }

  .nav-logo p {
    font-size: 0.8rem;
  }

  /* Better spacing for section titles on mobile */
  .section-title {
    margin-bottom: 45px;
  }

  /* Ensure contact info doesn't overflow */
  .contact-info p {
    word-break: break-word;
  }

  /* Population chart labels - better mobile positioning */
  .chart-label-M,
  .chart-label-F {
    font-size: 0.85rem;
  }
}

/* =============================================
   SCROLL-REVEAL ANIMATION (all pages)
   ============================================= */

/* Initial hidden state — set by JS */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Visible state — added by IntersectionObserver */
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
