@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  color: #2C2C2C;
  line-height: 1;
  background: linear-gradient(135deg, rgba(139, 111, 71, 0.05), rgba(107, 78, 135, 0.05));
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .5rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.3rem;
}

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

ul {
  list-style: none;
}

/* ===================================
   LAYOUT
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 2rem 0;
}

section.bg-light {
  background: #F8F6F3;
}

#trustees {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(139, 111, 71, 0.05), rgba(107, 78, 135, 0.05));
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  background: #FFFFFF;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar .logo img {
  height: 99px;
  margin-top: -0.5rem;  
  object-fit: contain;
}

.navbar .logo .logo-text {
  font-size: 1.5rem;
  color: #8B6F47;
  font-weight: 700;
}

.navbar .nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.navbar .nav-links a {
  color: #2C2C2C;
  font-weight: 500;
  position: relative;
}

.navbar .nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6B4E87;
  transition: width 0.3s ease;
}

.navbar .nav-links a:hover::after, 
.navbar .nav-links a.active::after {
  width: 100%;
  text-decoration: none;
}

.navbar .donate-btn {
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
  color: #FFFFFF !important;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar .donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.navbar .donate-btn::after {
  display: none;
}

.navbar .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.navbar .hamburger span {
  width: 25px;
  height: 3px;
  background: #8B6F47;
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

.navbar .hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* ===================================
   HERO SECTIONS
   =================================== */
.hero {
  background: linear-gradient(130deg, rgba(107, 78, 135, 0.85), rgba(139, 111, 71, 0.85)), 
              url("images/LOGO CGSG.jpg") center/cover;
  color: #FFFFFF;
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero-about {
  background: linear-gradient(130deg, rgba(107, 78, 135, 0.9), rgba(139, 111, 71, 0.85)), 
              url("images/ChatGPT Image Dec 4, 2025, 07_23_48 PM.png") center/cover;
  color: #FFFFFF;
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero h1, .hero-about h1 {
  color: #FFFFFF;
  font-size: 3.6rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero .tagline, .hero-about .tagline {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero .cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero .cta-buttons .btn {
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.hero .cta-buttons .btn.btn-primary {
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}

.hero .cta-buttons .btn.btn-primary:hover,
.hero .cta-buttons .btn.btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.hero .cta-buttons .btn.btn-outline {
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}

/* ===================================
   SECTION COMPONENTS
   =================================== */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: #2c1c3ad4;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #6B4E87, #8B6F47);
  border-radius: 2px;
}

.section-title p {
  color: #666;
  margin-top: 2rem;
  font-size: 1.3rem;
}

/* ===================================
   VISION SECTION
   =================================== */
.vision-section {
  background: linear-gradient(135deg, rgba(139, 111, 71, 0.05), rgba(107, 78, 135, 0.05));
}

.vision-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vision-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  width: 100%;
}

.vision-images img {
  width: 350px;
  max-width: 100%;
  height: auto;
  border-radius: 10%;
  border: 2px solid #9d9898;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vision-section .section-title {
  width: 100%;
}

.vision-section .section-title h2 {
  margin-top: 0;
}

.vision-section .vision-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #ffffff;
  font-style: italic;
  font-weight: 500;
  padding: 2rem;
  border-left: 4px solid #6B4E87;
  background: linear-gradient(130deg, rgba(107, 78, 135, 0.8), rgba(139, 111, 71, 0.8)), 
              url("images/StockCake-Swirling_Indian_Pattern_1764792066.jpg") center/cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

/* ===================================
   CARDS
   =================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cards-grid-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cards-grid-gi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: linear-gradient(130deg, rgba(107, 78, 135, 0.8), rgba(139, 111, 71, 0.8)), 
              url("images/StockCake-Swirling_Indian_Pattern_1764792066.jpg") center/cover;
  color: #FFFFFF !important;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid #8B6F47;
}

.card-about {
  max-width: 950px;
  margin: 0 auto 2rem;
  background: linear-gradient(130deg, rgba(107, 78, 135, 0.8), rgba(139, 111, 71, 0.8)), 
              url("images/StockCake-Swirling_Indian_Pattern_1764792066.jpg") center/cover;
  color: #FFFFFF !important;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #8B6F47;
}

.card-about-about {
  background: linear-gradient(130deg, rgba(107, 78, 135, 0.8), rgba(139, 111, 71, 0.8)), 
              url("images/StockCake-Swirling_Indian_Pattern_1764792066.jpg") center/cover;
  color: #FFFFFF !important;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid #8B6F47;
}

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

.card .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
  border-radius: 50%;
  box-shadow: 0 2px 15px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #FFFFFF;
}

.card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.card p {
  color: #ffffff;
  line-height: 1.8;
}

.card .learn-more {
  color: #ffff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}

.card .learn-more:hover {
  color: #b29b7b;
}

/* ===================================
   TEAM SECTION
   =================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-member {
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.team-member .member-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
  box-shadow: 0 5px 25px rgba(250, 249, 249, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #FFFFFF;
  font-weight: 700;
}

.team-member h3 {
  color: #6B4E87;
  margin-bottom: 0.5rem;
}

.team-member .role {
  color: #b2b1b1;
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-member p {
  color: #666;
  line-height: 1.8;
  text-align: left;
}

/* Trustees Page Specific Styles */
#trustees .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-member-trustees {
  margin-top: 0;
  min-height: 600px;
}

.team-member-trustees h3 {
  color: #FFFFFF !important;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.team-member-trustees .role {
  color: #FFFFFF !important;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.trustee-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  display: block;
  padding: 10px;
}

.trustee-bio {
  color: #FFFFFF !important;
  line-height: 1.6;
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 0;
}

/* ===================================
   INFO BOX
   =================================== */
.info-box {
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
  color: #FFFFFF;
  padding: 3rem;
  border-radius: 15px;
  margin: 3rem 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.info-box h3 {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.info-box .info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.info-box .info-item i {
  font-size: 1.5rem;
}

/* ===================================
   HEALTH TOPICS
   =================================== */
.health-topics .topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.health-topics .topic-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid #D4A574;
}

.health-topics .topic-card:hover {
  transform: translateX(10px);
  border-left-color: #6B4E87;
}

.health-topics .topic-card h4 {
  color: #6B4E87;
  margin-bottom: 0.5rem;
}

.health-topics .topic-card p {
  color: #666;
  font-size: 0.95rem;
}

.topic-details {
  background: #F8F6F3;
  padding: 3rem;
  border-radius: 15px;
  margin-top: 2rem;
  border-left: 5px solid #6B4E87;
}

.topic-details h3 {
  color: #6B4E87;
  margin-bottom: 1.5rem;
}

.topic-details .detail-section {
  margin-bottom: 2rem;
}

.topic-details .detail-section h4 {
  color: #8B6F47;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.topic-details .detail-section ul {
  list-style: disc;
  margin-left: 2rem;
}

.topic-details .detail-section ul li {
  margin-bottom: 0.8rem;
  line-height: 1.2;
  color: #666;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-grid-gi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
}

.contact-card {
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-card .contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: #FFFFFF;
}

.contact-card h3 {
  color: #6B4E87;
  margin-bottom: 1rem;
}

.contact-card a {
  color: #8B6F47;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-card a:hover {
  color: #6B4E87;
}

/* ===================================
   CTA SECTION (Call to Action)
   =================================== */
.cta-section {
  background: linear-gradient(135deg, rgba(107, 78, 135, 0.9), rgba(139, 111, 71, 0.9));
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.cta-section .cta-text {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .cta-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto 0;
  border-radius: 10px;
}

.cta-section .cta-buttons-container {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-outline {
  border-color: white;
  color: white;
}

/* ===================================
   CONTENT WRAPPER
   =================================== */
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.content-wrapper p {
  font-size: 1.3rem;
  text-align: center;
  line-height: 1.8;
}

.content-wrapper-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.content-wrapper-donations {
  max-width: 700px;
  margin: 0 auto;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: linear-gradient(135deg, #2C2C2C, #1a1a1a);
  color: #FFFFFF;
  padding: 4rem 0 2rem;
  font-size: 1.0rem !important;
}

.footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.footer .footer-section h3 {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer .footer-section p, 
.footer .footer-section li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
  line-height: 1.5rem;
  font-size: 1.0rem !important;
}

.footer .footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer .footer-section a:hover {
  color: #D4A574;
}

.footer .footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer .social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  background: #D4A574;
  transform: translateY(-3px);
}

.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: "Poppins", sans-serif;
}

.btn.btn-primary {
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
  color: #FFFFFF;
}

.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.btn.btn-outline {
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
  color: #FFFFFF;
}

.btn.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease;
}

/* ===================================
   ACCORDION
   =================================== */
.accordion {
  margin: 2rem 0;
}

.accordion .accordion-item {
  background: #FFFFFF;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.accordion .accordion-item .accordion-header {
  background: #F8F6F3;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion .accordion-item .accordion-header:hover {
  background: rgb(238, 233, 226);
}

.accordion .accordion-item .accordion-header h4 {
  color: #6B4E87;
  margin: 0;
}

.accordion .accordion-item .accordion-header .icon {
  font-size: 1.5rem;
  color: #8B6F47;
  transition: transform 0.3s ease;
}

.accordion .accordion-item .accordion-header.active .icon {
  transform: rotate(180deg);
}

.accordion .accordion-item .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion .accordion-item .accordion-content .content-inner {
  padding: 1.5rem;
  color: #666;
  line-height: 1.8;
}

.accordion .accordion-item .accordion-content.active {
  max-height: 2000px;
}

/* ===================================
   CAROUSEL
   =================================== */
.carousel {
  width: 100%;
  max-width: 900px;
  height: 450px;
  margin: auto;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.carousel input {
  display: none;
}

.slides {
  width: 500%;
  height: 100%;
  display: flex;
  transition: margin-left 0.6s ease;
}

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

/* slide movement */
#s1:checked ~ .slides { margin-left: 0%; }
#s2:checked ~ .slides { margin-left: -100%; }
#s3:checked ~ .slides { margin-left: -200%; }
#s4:checked ~ .slides { margin-left: -300%; }
#s5:checked ~ .slides { margin-left: -400%; }

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

.dot {
  width: 13px;
  height: 13px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot:hover {
  background: #fff;
}

#s1:checked ~ .dots label[for="s1"],
#s2:checked ~ .dots label[for="s2"],
#s3:checked ~ .dots label[for="s3"],
#s4:checked ~ .dots label[for="s4"],
#s5:checked ~ .dots label[for="s5"] {
  background: white;
}

.arrows {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  display: none;
  transform: translateY(-50%);
}

.arrow::before {
  content: "❮";
  font-size: 26px;
  color: #fff;
  text-align: center;
  line-height: 48px;
  display: block;
}

.arrow.right::before {
  content: "❯";
}

.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

.arrow:hover {
  background: rgba(0,0,0,0.8);
}

#s1:checked ~ .arrows .s1 { display: block; }
#s2:checked ~ .arrows .s2 { display: block; }
#s3:checked ~ .arrows .s3 { display: block; }
#s4:checked ~ .arrows .s4 { display: block; }
#s5:checked ~ .arrows .s5 { display: block; }

/* ===================================
   COLLAPSIBLE BOX
   =================================== */
.collapsible-box {
  margin-top: 1rem;
}

.collapsible-box input {
  display: none;
}

.collapsible-box .header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  cursor: pointer;
  border-radius: 10px;
  color: #fff;
}

.collapsible-box .arrow::before {
  content: "▼";
  display: inline-block;
  transition: transform 0.3s ease;
}

.collapsible-box input:checked + .header .arrow::before {
  transform: rotate(-180deg);
}

.collapsible-box .content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.collapsible-box input:checked + .header + .content {
  max-height: 1000px;
  padding-top: 1rem;
}

/* ===================================
   PAGE TABLE OF CONTENTS
   =================================== */
.page-toc {
  background: #f6f4f9;
  padding: 3rem 0;
  border-bottom: 1px solid #e0dcea;
}

.toc-title {
  color: #6B4E87;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li a {
  display: block;
  padding: 1rem 1.2rem;
  background: white;
  border-left: 4px solid #6B4E87;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.toc-list li a:hover {
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
  color: white;
  transform: translateY(-2px);
}

/* ===================================
   CONTACT PAGE - MODERN FORM
   =================================== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 4rem auto;
  max-width: 1300px;
}

.contact-form-wrapper {
  background: #FFFFFF;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-top: 5px solid #8B6F47;
}

.contact-form-wrapper h2 {
  font-size: 2.4rem;
  color: #6B4E87;
  margin-bottom: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.required {
  color: #e74c3c;
}

.optional {
  font-weight: 400;
  color: #888;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.9rem 1.2rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: #fdfdfb;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6B4E87;
  box-shadow: 0 0 0 4px rgba(107, 78, 135, 0.15);
  background: #fff;
}

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

.error {
  color: #e74c3c;
  font-size: 0.95rem;
  margin-top: 0.4rem;
  min-height: 1.2rem;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-actions .btn {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-actions .btn i {
  font-size: 1.2rem;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ===================================
   FORM ELEMENTS
   =================================== */
label {
  font-weight: 600;
  margin-bottom: 6px;
}

input, textarea {
  padding: 10px 12px;
  border: 1px solid #d6dbe0;
  border-radius: 8px;
  font-size: 1.3rem;
  outline: none;
}

input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(11, 118, 239, 0.12);
  border-color: #6B4E87;
}

button {
  background: linear-gradient(135deg, #6B4E87, #8B6F47);
  color: #FFFFFF;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

#status {
  margin-top: 12px;
  color: #666;
}

/* ===================================
   RESPONSIVE - LARGE TABLETS
   =================================== */
@media (max-width: 1200px) {
  .vision-images img {
    width: 300px;
  }

  /* Trustees on large tablets */
  #trustees .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (min-width: 1200px) {
  /* Force 3 columns on large screens */
  #trustees .team-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1024px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 3rem auto;
  }
    
  .contact-info-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .vision-images img {
    width: 280px;
  }
  
  .vision-images {
    gap: 1.2rem;
  }

  /* Trustees on tablets - keep horizontal if space allows */
  #trustees .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  .trustee-photo {
    width: 200px;
    height: 200px;
  }

  .trustee-bio {
    font-size: 1.1rem;
  }
}

/* ===================================
   RESPONSIVE - TABLETS
   =================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  section {
    padding: 3rem 0;
  }

  /* Navigation Mobile */
  .navbar .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: #FFFFFF;
    flex-direction: column;
    padding: 5rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .navbar .nav-links.active {
    right: 0;
  }

  .navbar .hamburger {
    display: flex;
  }

  /* Hero Mobile */
  .hero, .hero-about {
    padding: 5rem 0 3rem;
  }

  .hero h1, .hero-about h1 {
    font-size: 2.5rem;
  }

  .hero .tagline, .hero-about .tagline {
    font-size: 1.1rem;
  }

  .hero .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  /* Vision Section Mobile */
  .vision-images {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    margin-bottom: 2rem;
  }
  
  .vision-images img {
    width: 100%;
    max-width: 450px;
    margin: 0;
  }

  /* Cards Mobile */
  .cards-grid,
  .cards-grid-about {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Trustees Mobile - Stack vertically */
  #trustees .team-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .trustee-photo {
    width: 170px;
    height: 170px;
  }

  .team-member-trustees {
    margin-top: 0;
    margin-bottom: 2rem;
    min-height: auto;
  }

  .team-member-trustees:last-child {
    margin-bottom: 0;
  }

  /* Footer Mobile */
  .footer .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Carousel Mobile */
  .carousel {
    height: 400px;
    max-width: 100%;
  }

  /* Typography Mobile */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  /* CTA Section Mobile */
  .cta-section {
    padding: 3rem 1.5rem;
  }

  .cta-section .cta-text {
    font-size: 1.2rem;
  }

  .cta-section .cta-buttons-container {
    flex-direction: column;
    gap: 1rem;
  }

  /* Contact Page Mobile */
  .contact-page-grid {
    gap: 2.5rem;
    margin: 2rem auto;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }

  .contact-form-wrapper h2 {
    font-size: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

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

  .form-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }

  .contact-card .contact-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .contact-card h3 {
    font-size: 1.3rem;
  }

  .contact-card a,
  .contact-card p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .carousel {
    height: 280px;
  }

  .arrow {
    width: 40px;
    height: 40px;
  }

  .arrow::before {
    line-height: 40px;
    font-size: 20px;
  }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */
@media (max-width: 576px) {
  /* Vision Images Mobile */
  .vision-images {
    gap: 1.2rem;
  }
  
  .vision-images img {
    max-width: 100%;
    border-radius: 8%;
  }

  /* Hero Mobile */
  .hero .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  /* Typography Mobile */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .carousel {
    height: 300px;
  }

  .cta-section .cta-text {
    font-size: 1.1rem;
  }

  /* Trustees Small Mobile */
  .trustee-photo {
    width: 140px;
    height: 140px;
  }

  .team-member-trustees h3 {
    font-size: 1.5rem;
  }

  .trustee-bio {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Contact Page Mobile */
  .contact-page-grid {
    gap: 2rem;
    margin: 1.5rem auto;
  }

  .contact-form-wrapper {
    padding: 1.5rem 1rem;
  }

  .contact-form-wrapper h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .contact-form-wrapper p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .form-grid {
    gap: 1.2rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .form-actions {
    margin-top: 1.5rem;
  }

  .form-actions .btn {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  .contact-card {
    padding: 1.8rem 1.2rem;
    border-radius: 12px;
  }

  .contact-card .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .contact-card h3 {
    font-size: 1.2rem;
    margin: 0.8rem 0 0.6rem;
  }

  .contact-card a,
  .contact-card p {
    font-size: 0.95rem;
  }

  #status {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .vision-images {
    gap: 1rem;
  }

  .contact-form-wrapper {
    padding: 1.2rem 0.8rem;
  }

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

  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
  }

  .form-actions .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }

  .contact-card {
    padding: 1.5rem 1rem;
  }

  .contact-card .contact-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}