/* ========== CSS VARIABLES ========== */
:root {
  --green-dark:    #1a5c2a;
  --green-mid:     #2e7d32;
  --green-light:   #43a047;
  --green-pale:    #e8f5e9;
  --green-accent:  #66bb6a;
  --gold:          #d4a843;
  --text-dark:     #1e2a1e;
  --text-mid:      #4a5e4a;
  --white:         #ffffff;
  --off-white:     #f7faf7;
  --shadow:        0 4px 24px rgba(30,42,30,.12);
  --radius:        10px;
  --nav-h:         80px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ========== PAGES (routing) ========== */
.page { display: none; min-height: calc(100vh - var(--nav-h) - 280px); }
.page.active { display: block; }

/* ========== NAV ========== */
nav {
  position: sticky; top: 0; z-index: 900;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 3px 14px rgba(0,0,0,.25);
}
.logo {
  display: flex;
  align-items: center;
  gap: 15px; /* Adds space between logo and any text */
  padding: 5px 0;
}
.logo img {
  height: 80px;    /* Change this to match your navbar height */
  width: auto;     /* Maintains aspect ratio */
  object-fit: contain; /* Ensures the logo isn't cropped */
  image-rendering: -webkit-optimize-contrast;
  background-color: #ffffff;    /* Pure white background */
  padding: 5px;                 /* Space between logo and the white edge */
  border-radius: 4px;           /* Optional: slightly rounds the corners */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: adds a subtle depth */
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-item {
  position: relative;
  color: rgba(255,255,255,.88);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .92rem; font-weight: 600;
  letter-spacing: .3px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-item:hover,
.nav-item.active {
  background: rgba(200, 200, 223, 0.15);
  color: #fff;
}

/* dropdown */
.has-dropdown > .dropdown {
  opacity: 0;
  visibility: hidden;
  position: absolute; 
  top: calc(100% + 6px); 
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 200px;
  overflow: hidden;
  z-index: 950;
  transition: opacity 0.3s ease, visibility 0s linear 0.15s;
}

.has-dropdown > .dropdown::before {
  content: '';
  position: absolute;
  top: -10px; /* Covers the 6px gap above the menu */
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}

.has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s; 
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: .9rem; 
  font-weight: 600;
  transition: background .18s;
  border-bottom: 1px solid #eee;
}

.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--green-pale); color: var(--green-dark); }


/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s; }

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* each slide sets its own height via min-height */
}

/* individual slides – hidden by default */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 100px 40px 90px;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;   /* non-active slides must not steal clicks */
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;   /* only the active slide is clickable */
  z-index: 2;
}

/* per-slide background gradients */
.hero-slide--1 {
  background: linear-gradient(135deg, rgba(26, 92, 42, 0.8) 0%, rgba(215, 216, 207, 0.6) 100%), url('./images/Welcome.webp'); 
  /* 2. Add these to make the image fit the screen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 3. Ensure the container is tall enough to see the image */
  min-height: 500px; 
}
.hero-slide--2 {
  background: linear-gradient(135deg, rgba(26, 92, 42, 0.8) 0%, rgba(215, 216, 207, 0.6) 100%), url('./images/Research.webp'); 
  /* 2. Add these to make the image fit the screen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 3. Ensure the container is tall enough to see the image */
  min-height: 500px; 
}
.hero-slide--3 {
  background: linear-gradient(135deg, rgba(26, 92, 42, 0.8) 0%, rgba(215, 216, 207, 0.6) 100%), url('./images/Conference.webp'); 
  /* 2. Add these to make the image fit the screen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 3. Ensure the container is tall enough to see the image */
  min-height: 500px; 
}
.hero-slide--4 {
  background: linear-gradient(135deg, rgba(26, 92, 42, 0.8) 0%, rgba(215, 216, 207, 0.6) 100%), url('./images/Community.webp'); 
  /* 2. Add these to make the image fit the screen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 3. Ensure the container is tall enough to see the image */
  min-height: 500px; 
}

/* subtle cross-hatch texture overlay (same SVG as before) */
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  /* background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none; */
  z-index: 0;
}

/* text / button inside every slide sit above the texture */
.hero-slide h1,
.hero-slide p,
.hero-slide .hero-btn { position: relative; z-index: 1; }

.hero-slide h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero-slide p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto;
  opacity: .9;
}
.hero-btn {
  display: inline-block; margin-top: 32px;
  background: var(--gold); color: #035c32;
  padding: 13px 36px; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  box-shadow: 0 4px 14px rgba(212,168,67,.4);
  transition: transform .2s, box-shadow .2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(226, 170, 40, 0.5); }

/* ---- arrow buttons ---- */
.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .22s, border-color .22s;
  cursor: pointer;
}
.hero-arrow:hover {
  background: rgba(255,255,255,.32);
  border-color: rgba(255,255,255,.6);
}
.hero-arrow--prev { left: 18px; }
.hero-arrow--next { right: 18px; }

/* ---- dot indicators ---- */
.hero-dots {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 10px;
}
.hero-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.38);
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.hero-dot.active,
.hero-dot:hover {
  background: var(--gold);
  transform: scale(1.25);
}

/* keep the slider box tall enough even when slides are absolute */
.hero-slider-spacer {
  width: 100%;
  padding: 100px 40px 110px;   /* matches slide padding */
  visibility: hidden;           /* invisible spacer that gives the container height */
  pointer-events: none;
}

/* ========== SECTION TITLES ========== */
.section-title {
  text-align: center;
  padding: 56px 20px 12px;
}
.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--green-dark);
  position: relative; display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 3px;
  background: var(--gold); border-radius: 2px;
}
.section-title p {
  color: var(--text-mid);
  margin-top: 20px; font-size: .97rem;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}
/* ========== New Table Styles ========== */
.account-table-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden; /* Ensures corners stay rounded */
}

.details-table th, .details-table td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.details-table th {
  background-color: #f9f9f9;
  color: var(--green-dark);
  font-weight: 600;
  width: 40%;
}

.details-table td {
  color: var(--text-mid);
  font-family: sans-serif;
}

.details-table tr:last-child th, 
.details-table tr:last-child td {
  border-bottom: none;
}

.details-table tr:hover {
  background-color: #fcfcfc;
}

/* Mobile responsive adjustment */
@media (max-width: 480px) {
  .details-table th, .details-table td {
    display: block;
    width: 100%;
    padding: 10px 18px;
  }
  .details-table th {
    background: transparent;
    padding-top: 15px;
    padding-bottom: 0;
    color: var(--gold); /* Highlight labels on mobile */
  }
}

/* ========== ABOUT (on home) ========== */
/* Container Layout */
.landscape-main-row {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr; /* Landscape Mode: Left side wider */
    gap: 50px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
    align-items: start;
}

/* --- About Section Styles --- */
/* Container Layout */
.landscape-main-row {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2:1 ratio for better balance */
    gap: 40px;
    max-width: 1300px;
    margin: 50px auto;
    padding: 0 30px;
    align-items: stretch; /* Forces both columns to be equal height */
}

/* --- About Us: Logo & Text Sync --- */
.about-flex-content {
    display: flex;
    gap: 25px;
    align-items: stretch; /* Image height expands to match text block */
}

.about-brand-img {
    flex: 0 0 350px; 
    height: 350px;    /* You must define a height for object-fit to work */
    overflow: hidden; /* Prevents any image spillover */
    display: flex;    /* Helps centering */
    align-items: center;
    justify-content: center; /* Ensures the image stays centered */
}
.about-brand-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Use 'contain' for logos so they don't get cropped */
    display: block;
}

.dynamic-logo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures logo doesn't stretch, just fills height */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers text vertically against the logo */
}

/* --- News & Events: Diagonal Shape --- */
.news-event-card-diagonal {
    background-color: #58a340; /* Solid Outer Green Box */
    padding: 25px;
    height: 400px; /* Matches height of the About Us content */
    max-height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 30px;
    align-self: start;
    overflow: hidden;
    flex: none;
    min-height: 400px;
    
    /* DIAGONAL CORNERS: Top-Left & Bottom-Right Rounded, others Pointed */
    border-radius: 60px 0 60px 0; 
}

.news-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* IMPORTANT: Tell the grid cell not to stretch */
    height: fit-content; 
    align-self: start;
}

.news-card-title {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 5px;
    display: inline-block;
}

/* Clean Ticker Area (No inner box) */
.ticker-view-clean {
    /*flex: 1;*/
    overflow: hidden;
    position: relative;
    height: 250px; 
    margin-top: 5px;
    flex-grow: 1;
    
}

.ticker-link-light {
    padding: 8px 0;
    text-decoration: none;
    color: #fcfbf7; /* Yellow text */
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.ticker-link-light:hover {
    color: #ffffff;
    transform: translateX(10px);
}

.pdf-icon {
    font-size: 0.9rem;
}

/* --- Ticker Animation --- */
@keyframes tickerScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.ticker-scroll-wrapper {
    display: flex;
    flex-direction: column;
    animation: tickerScroll 25s linear infinite;
}

.ticker-scroll-wrapper:hover {
    animation-play-state: paused;
}

/* Typography & Titles */
.title-text { color: #1a4a2a; font-family: 'Playfair Display', serif;font-size: 2.2rem; margin: 0; }
.accent-line { width: 60px; height: 4px; background: #d4af37; margin: 10px 0; }
.org-name { color: #1a4a2a; font-family:sans-serif;margin-bottom: 15px; font-weight: bold; font-size: 15.88px; }

/* Responsive */
@media (max-width: 1024px) {
    .landscape-main-row { grid-template-columns: 1fr; }
    .about-flex-content { flex-direction: column; }
    .about-brand-img { flex: 0 0 auto; height: 300px; }
    .news-event-card-diagonal { height: auto; max-height: 550px; border-radius: 50px 0 50px 0; margin-top: 20px; }
}
/* ========== VERTICAL CARDS (Services, Membership) ========== */
.cards-row {
  display: flex; gap: 28px; flex-wrap: wrap;
  justify-content: center;
  padding: 10px 28px 56px;
  max-width: 1100px; margin: 0 auto;
}
.card {
  background: #fff; border-radius: 14px;
  box-shadow: var(--shadow);
  flex: 1 1 260px; max-width: 340px;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 32px rgba(30,42,30,.18); }
.card-header {
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  padding: 28px 20px 22px;
  text-align: center; color: #fff;
}
.card-header i { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.card-header h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; }
.card-body { padding: 22px 20px 28px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--text-mid); font-size: .93rem; flex: 1; text-align: justify;margin-top: 10px;}
.card-btn {
  display: inline-block; margin-top: 18px; align-self: flex-start;
  background: var(--green-mid); color: #fff;
  padding: 9px 22px; border-radius: 50px;
  font-size: .88rem; font-weight: 600;
  transition: background .2s;
}
.card-btn:hover { background: var(--green-dark); }

/* ========== CONTACT (on home) ========== */
.contact-wrap {
  background-color: #f9f9f9;
  padding: 80px 0; /* Outside vertical space */
}

/* This creates the LARGE outside horizontal space */
.contact-outer-container {
  max-width: 1000px; /* Reduced width to force more outside space */
  margin: 0 auto;    /* Centers the whole block */
  padding: 0 40px;   /* Extra safety padding */
}

.contact-flex-row {
  display: flex;
  align-items: center;
  /* This creates the LESS space between contact and map */
  gap: 30px; 
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-info-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Tight spacing between info items */
}

.info-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.info-row i {
  color: #28a745; /* Green theme */
  font-size: 1.2rem;
  margin-top: 4px;
}

.info-row h4 {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.info-row p {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: #666;
}

.map-container {
  flex: 1.5; /* Map stays slightly larger */
  height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* Responsive adjustment for small screens */
@media (max-width: 850px) {
  .contact-flex-row {
    flex-direction: column;
  }
  .contact-outer-container {
    padding: 0 20px;
  }
}

/* ========== TEAM ========== */
.team-tabs { display: flex; justify-content: center; gap: 12px; padding: 8px 20px 4px; flex-wrap: wrap; }
.team-tab {
  background: #fff; border: 2px solid var(--green-mid); color: var(--green-mid);
  padding: 9px 22px; border-radius: 50px;
  font-weight: 600; font-size: .9rem;
  transition: .2s;
}
.team-tab:hover, .team-tab.active { background: var(--green-mid); color: #fff; }
.team-grid {
  display: none; flex-wrap: wrap; gap: 28px; justify-content: center;
  padding: 28px 28px 56px; max-width: 1100px; margin: 0 auto;
}
.team-grid.active { display: flex; }
.team-card {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  width: 240px; overflow: hidden; text-align: center;
  transition: transform .22s;
}
.team-card:hover { transform: translateY(-4px); }
.team-photo {
  width: 100%; height: auto;
  background: linear-gradient(135deg, var(--green-pale), var(--green-accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(46,125,50,.5);
}
.team-info { padding: 18px 16px 20px; }
.team-info h4 { color: var(--green-dark); margin-bottom: 2px; }
.team-info .role { color: var(--gold); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.team-info .message { color: var(--text-mid); font-size: .88rem; margin-top: 8px; font-style: italic; }

/* ========== EVENTS ========== */
.event-tabs { display: flex; justify-content: center; gap: 14px; padding: 8px 20px 4px; }
.event-tab {
  background: #fff; border: 2px solid var(--green-mid); color: var(--green-mid);
  padding: 9px 28px; border-radius: 50px;
  font-weight: 600; font-size: .92rem; transition: .2s;
}
.event-tab:hover, .event-tab.active { background: var(--green-mid); color: #fff; }
.event-list { display: none; max-width: 960px; margin: 0 auto; padding: 24px 28px 56px; }
.event-list.active { display: block; }
.event-block {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  margin-bottom: 28px; overflow: hidden;
}
.event-block-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: #fff; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.event-block-header h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; }
.event-block-header span { font-size: .82rem; opacity: .8; }
.event-categories { display: flex; gap: 16px; padding: 20px 24px; flex-wrap: wrap; }
.event-cat {
  flex: 1 1 180px;
  border: 1.5px solid #ddd; border-radius: 10px;
  padding: 16px;
  transition: border-color .2s;
}
.event-cat:hover { border-color: var(--green-accent); }
.event-cat h5 { color: var(--green-dark); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.event-cat h5 i { color: var(--gold); }
.event-cat p { color: var(--text-mid); font-size: .87rem; margin-bottom: 10px; }
.pdf-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-mid); font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--green-mid); border-radius: 20px;
  padding: 5px 14px; transition: .2s;
}
.pdf-link:hover { background: var(--green-mid); color: #fff; }
.pdf-link i { font-size: .78rem; }

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  padding: 20px 36px 56px;
  max-width: 2100px; margin: 0 auto;
}
.gallery-item {
  background: linear-gradient(135deg, var(--green-pale), #c8e6c9);
  border-radius: 12px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: rgba(46,125,50,.4);
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s;
  overflow: hidden; position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This crops the image to fit the 4/3 ratio perfectly */
  display: block;
}
.gallery-item:hover { transform: scale(1.04); box-shadow: 0 8px 28px rgba(30,42,30,.2); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: rgba(26,92,42,.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .95rem; font-weight: 600;
  opacity: 0; transition: opacity .25s;
}
.gallery-item:hover .overlay { opacity: 1; }

/* ========== MEMBERSHIP ========== */
.membership-card .card-header { background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); }
.membership-card .price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--green-dark);
  margin-bottom: 6px;
}
.membership-card .price span { font-size: 1rem; color: var(--text-mid); font-family: 'Source Sans 3', sans-serif; }
.membership-card ul { list-style: none; margin-bottom: 14px; }
.membership-card ul li { padding: 5px 0; color: var(--text-mid); font-size: .92rem; }
.membership-card ul li::before { content: '✓ '; color: var(--green-light); font-weight: 700; }
.gform-wrap { max-width: 680px; margin: 40px auto 56px; padding: 0 20px; text-align: center; }
.gform-wrap iframe { width: 100%; border: none; border-radius: 12px; box-shadow: var(--shadow); min-height: 500px; }

/* ========== TERMS ========== */
.terms-tabs { display: flex; justify-content: center; gap: 14px; padding: 8px 20px 4px; }
.terms-tab {
  background: #fff; border: 2px solid var(--green-mid); color: var(--green-mid);
  padding: 9px 26px; border-radius: 50px;
  font-weight: 600; font-size: .92rem; transition: .2s;
}
.terms-tab:hover, .terms-tab.active { background: var(--green-mid); color: #fff; }
.terms-content { display: none; max-width: 820px; margin: 0 auto; padding: 30px 28px 56px; }
.terms-content.active { display: block; }
.terms-content h3 { font-family: 'Playfair Display', serif; color: var(--green-dark); margin-bottom: 14px; font-size: 1.4rem; }
.terms-content h4 { color: var(--green-mid); margin: 22px 0 8px; }
.terms-content ul {margin-bottom: 8px;}
.terms-content li {margin-left: 20px;margin-bottom: 5px;}
/*.terms-content p { color: var(--text-mid); margin-bottom: 12px; line-height: 1.75; }*/

/* ========== MAP ========== */
.map-section { padding: 0 28px 56px; max-width: 960px; margin: 0 auto; }
.map-section iframe { width: 100%; height: 320px; border: none; border-radius: 14px; box-shadow: var(--shadow); }

/* ========== FOOTER  (2-col: About+Socials | Contact) ========== */
:root {
  --gold: #d4af37;
  --green-dark: #1a5c2a;
  --green-mid: #2e7d32;
}

footer {
  background: linear-gradient(135deg, var(--green-dark) 0%,var(--green-mid) 100%);
  color: rgba(255,255,255,.82);
  padding: 60px 40px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* 2fr for About gives it more space, 1fr for branches keeps them closer */
  grid-template-columns: 2fr 1fr 1fr 1fr; 
  /* 'column-gap' controls the space between all columns */
  column-gap: 30px; 
}

/* Specifically adding extra margin to the right of the About section for more space */
.about-section {
  padding-right: 50px; 
}

/* Logo Styling */
.footer-logo img {
  max-width: 140px; /* Adjust this to fit your logo perfectly */
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1); /* Makes a dark logo pure white to match text */
}

.footer-col h4 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-col p {
  font-size: .88rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  padding: 6px 0;
  font-size: .85rem;
  display: flex;
  align-items: flex-start;
}

.footer-col ul li i {
  margin-right: 12px;
  color: var(--gold);
  margin-top: 4px;
  font-size: 0.9rem;
}

/* Responsive fixes for tablet/mobile */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr; /* Drop to 3 columns on tablets */
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr; /* Stack everything on mobile */
    text-align: center;
  }
  .about-section { padding-right: 0; }
  .footer-col h4 { display: inline-block; }
  .footer-col ul li { justify-content: center; }
}

.social-links { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.social-links a {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(218, 196, 4, 0.7);
  transition: .22s;
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.footer-bottom {
  max-width: 1100px; margin: 36px auto 0;
  border-top: 1px solid rgba(211, 181, 8, 0.12);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; opacity: .6;
  color: rgba(233, 211, 11, 0.938);
}

/* ========== RESPONSIVE ========== */
.mobile-menu {
  display: none;
}
@media (max-width: 860px) {

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {

    display: block;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--green-dark);
    z-index: 800;

    max-height: 0;

    overflow: hidden;

    /* FIX: Prevents the "ghost" white line */

    visibility: hidden;

    pointer-events: none;

    transition: max-height .35s ease, visibility .35s ease;

    /* Remove any default margins that might bleed out */

    margin: 0;

    padding: 0;

    border: none;

  }

  .mobile-menu.open {
    max-height: 520px;

    visibility: visible;

    pointer-events: auto;
  }

  .mobile-menu a {

    display: block;

    color: #fff;

    padding: 11px 28px;

    font-size: .94rem;

    font-weight: 600;

    text-decoration: none;

    /* Removed border-bottom to ensure no lines appear inside or below */

    border-bottom: none;

    margin: 0;
    /* Ensures no margin is pushing against the navbar */

  }

  .mobile-menu a:hover {
    background: rgba(255, 255, 255, .1);
  }

  .about-wrap {
    flex-direction: column;
  }

  .about-img {
    width: 100%;
    min-width: unset;
    height: 200px;
  }

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

  .hero-slide {
    padding: 80px 28px 100px;
  }

  .hero-slide h1 {
    font-size: 2.2rem;
  }

  .hero-slider-spacer {
    padding: 80px 28px 100px;
  }

}


/* ========== Membership Application Form Style ========== */

.membership-section {
    padding: 60px 20px;
    background-color: #f4f4f4; /* Light grey background */
    display: flex;
    justify-content: center;
}

.application-card {
    background: #ffffff;
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border-top: 8px solid #28a745; /* The Green SARPS theme */
}

.card-header {
    padding: 30px;
    text-align: center;
}

/* .green-line {
    width: 60px;
    height: 4px;
    background: #28a745;
    margin: 10px auto;
} */

.card-body {
    padding: 0 40px 40px;
    text-align: center;
}

.requirements-box {
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.9rem;
}

.requirements-box ul {
    list-style: none;
    padding: 0;
}

.apply-now-btn {
    display: inline-block;
    background-color: #28a745;
    color: white !important;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.apply-now-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* ========== President Message section style ========== */
.president-section {
    padding: 80px 20px;
    background-color: #ffffff; /* Contrast with your green footer */
}

.president-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center; /* Vertical center alignment */
    gap: 60px; /* Space between photo and text */
}

/* Photo Styling */
.president-photo {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.president-photo img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0px #d4af37; /* Gold accent offset */
    display: block;
}

/* Content Styling */
.president-content {
    flex: 1.5;
}

.gold-quote {
    font-size: 2.5rem;
    color: #d4af37;
    opacity: 0.3;
    margin-bottom: 10px;
}

.message-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #1a4a2a; /* Your dark green */
    margin: 0;
}

.green-line {
    width: 60px;
    height: 4px;
    background: #1d7a32;
    margin: 15px 0 25px;
}

.message-text {
    font-style: italic;
    font-size: 1.0rem;
    line-height: 1.2;
    color: #103a1e;
    margin-bottom: 30px;
}

.president-details .name {
    font-size: 1.3rem;
    color: #1a4a2a;
    margin-bottom: 5px;
}

.president-details .designation {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Responsive: Stack on mobile */
@media (max-width: 850px) {
    .president-container {
        flex-direction: column;
        text-align: center;
    }
    
    .green-line {
        margin: 15px auto 25px;
    }
    
    .president-photo img {
        box-shadow: 0px 10px 20px rgba(0,0,0,0.1);
    }
}
/* Signature Style */
.signature-container {
    position: relative;
    display: inline-block;
    font-family: sans-serif;
    font-size: 15px;
  }

  .signature-line {
    letter-spacing: -1px; /* Keeps underscores tight */
  }

  .signature-image {
    position: absolute;
    bottom: 5px;      /* Adjust this to move image up/down */
    left: 100px;      /* Adjust this to move image left/right over the line */
    height: 50px;     /* Size of your signature */
    pointer-events: none; /* Allows clicking "through" the image if needed */
  }


