

:root {
  --primary: #ff6b00;
  --secondary: #0d4a9e;
  --dark: #222;
  --light: #f4f6f8;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/*----------image slider css----------*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

main {
  max-width: 1200px;
  min-width: 400px;
  height: 576px;
  margin: 100px auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 3px grey;
}

/* Slider container */


/* Slides setup */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 400px;
  height: 100%;
  transition: transform 0.6s ease;
}

.slide img {
  width: 100%;
  min-width: 400px;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  background-size: contain;
}

/* Arrow buttons inside image */
.prev, .next {
  position: absolute;
  top: 75%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease, transform 0.2s ease;
}

.prev:hover, .next:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

/* Positioning arrows */
.prev {
  left: 15px;
}

.next {
  right: 15px;
}

/* Arrow image size */
.prev img, .next img {
  width: 28px;
  height: 28px;
}

/*----------new nav bar----------*/
*{
  text-decoration: none;
}
.navbar{
  background-color: red;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  padding-right:15px;
  padding-left: 15px;
}
.navdiv{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo a{
  font-size: 35px;
  font-weight: 600;
  color: white;
}
.logo img{
  position: absolute;
  margin-top: 5px;
  margin-left: 10px;
}
li{
  list-style: none;
  display: inline-block;

}
li a{
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin-right:25px;
}
.navdiv {
  display: flex;
  list-style: none;
  color: var(--white);
  text-decoration: none;
  padding: 15px 20px;
  display: block;
  transition: all 0.3s ease;
  font-weight: 500;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: var(--light);
  color: var(--dark);
  scroll-behavior: smooth;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 80px;
}

.header-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  min-width: 400px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 15px;
}


/* Language toggle button */
.lang-toggle {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity .2s ease;
}
.lang-toggle:hover { opacity: .9; }

section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 40px auto;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

section:hover {
  transform: translateY(-5px);
}

h2 {
  color: var(--secondary);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  font-size: 2rem;
}

p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}


#leaders {
  padding: 40px 20px;
  text-align: center;
  background: #f9f9f9;
}

#leaders h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}

.lang-switch {
  margin-bottom: 25px;
}

.lang-switch button {
  margin: 0 5px;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  background: #0077cc;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.4s;
}

.lang-switch button:hover {
  background: #005fa3;
}

.leader-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.leader-card {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.leader-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #0077cc;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

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

.leader-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #222;
}

.leader-position {
  color: #555;
  margin-bottom: 12px;
  font-size: 1rem;
  font-style: italic;
}

.leader-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}


.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.contact-item {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: 50%;
}

.donate-options {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.donate-option {
  flex: 1;
  min-width: 250px;
  background: var(--light);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.donate-option h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin: 15px 0;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
}
/* --- Additional Mobile Optimizations (specifically targeting smaller screens) --- */
@media (max-width: 576px) {
  /* General Spacing */
  section {
    padding: 30px 15px; /* Reduce padding for more compact look */
    margin: 20px auto;
  }

  /* Header adjustments */
  h1 {
    font-size: 2rem; /* Slightly smaller main heading */
  }

  .tagline {
    font-size: 1.1rem; /* Slightly smaller tagline */
  }

  /* Navigation tweaks */
  .nav-container {
    padding: 0 10px; /* Reduce horizontal padding in nav */
    margin-left: auto; 
    margin-right: 15px; 
  }
  
  .logo {
    font-size: 1.3rem; /* Smaller logo text */
  }
  
  /* Section Headings */
  h2 {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }

  /* Body Text and Lists */
  p, li {
    font-size: 1rem; /* Standard readable size for mobile */
  }
  
  /* Leader Cards */
  .leader-cards {
    grid-template-columns: 1fr; /* Stack cards vertically on very small screens */
    gap: 20px;
  }

  /* Contact and Donate sections */
  .contact-info, .donate-options {
    gap: 20px;
    flex-direction: column; /* Stack contact/donate items for better readability */
  }
  
  .contact-item {
    min-width: unset;
  }

  /* Member Actions Buttons */

.member-actions-group {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  /* Base button styling */
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: flex; /* Aligns icon and text */
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary); /* Assuming a primary color variable */
  color: white;
}

.btn-secondary {
  background-color: var(--secondary); /* Assuming a secondary color variable */
  color: white;
}

  /* Footer */
  .social-links {
    gap: 15px; /* Tighter social link spacing */
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* Ensure Logo/Emblem image size is consistent on mobile */
header div[style*="width:40vw"] {
  width: 150px !important;
  max-width: 150px !important; /* Cap the logo size on mobile */
}

/* Ensure the language toggle is visible and accessible */
.lang-toggle {
    padding: 6px 10px;
    font-size: 0.9rem;
}

/* Adjust the positioning of the mobile menu icon and language toggle */
.mobile-menu {
  order: 2; /* Place menu icon after the language toggle */
}
.lang-toggle {
  order: 1; /* Place lang toggle first on the right side */
  margin-left: auto; /* Push it away from logo/title */
  margin-right: 15px; /* Spacing from menu icon */
}
/* Members Counter */
#members-counter {
  text-align: center;
  background: linear-gradient(135deg,#ffdf00,#ffb400);
  padding: 60px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: #222;
}
#members-counter h2 {
  color: #0d4a9e;
  border: none;
}
#members-counter .count {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ff6b00;
  margin-top: 10px;
}
#members-counter a {
  background: #ffcc00;
  color: #000;
  padding: 15px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: 0.3s;
  display: inline-block;
}
#members-counter a:hover {
  background: #ffdb4d;
}

/* Special (1 Cr+) Members */
.gold-member-card {
  border: 2px solid gold;
  background: #fffbea;
}
.gold-member-card .leader-icon { color: gold; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .nav-container {
    flex-wrap: wrap;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  section {
    padding: 40px 15px;
    margin: 20px auto;
  }
  
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  p, li {
    font-size: 0.95rem;
  }
  
  .leader-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-info, .donate-options {
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-item {
    min-width: unset;
  }
}

/* Modal overlay */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
/* Vision card  */
#vision {
  padding: 60px 20px;
  background: #f9f9f9;
}
#vision h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}
.vision-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.vision-card {
  background: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
}
.vision-card i {
  font-size: 2rem;
  color: #ff4d4d;
  margin-right: 15px;
  flex-shrink: 0;
}
.vision-card p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}
.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.lang-btn i {
  font-size: 16px;
}

.lang-btn:hover {
  background: gray;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #0d4a9e;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.back-btn:hover {
  background: #ff6b00;
}
