/* ==========================================================================
   TAP-WA — Telugu Association of Perth
   Stylesheet
   Typography: Poppins (display) + Inter (body)
   Palette: Navy (trust/institution) + Saffron & Maroon (festival warmth)
   ========================================================================== */

:root {
  --navy-dark: #0c2340;
  --navy: #163a63;
  --navy-soft: #274b78;
  --saffron: #f2a93c;
  --saffron-dark: #c96f0f;
  --maroon: #7a2432;
  --cream: #faf6ef;
  --cream-deep: #f2ead9;
  --ink: #1c2430;
  --muted: #6b7480;
  --green: #1f8a4c;
  --border: #e7e1d4;
  --white: #ffffff;

  --shadow-sm: 0 2px 10px rgba(12, 35, 64, 0.07);
  --shadow-md: 0 14px 34px rgba(12, 35, 64, 0.14);
  --shadow-lg: 0 24px 60px rgba(12, 35, 64, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-dark);
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
/*h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 700; } */
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 16px; color: #3c4453; }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 17px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--saffron-dark); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--maroon); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy-dark); color: var(--white); }
.btn-navy:hover { background: var(--navy); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--navy-dark); }
.btn-outline:hover { border-color: var(--navy-dark); background: var(--cream); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar {
  background: var(--navy-dark);
  color: #cdd8ea;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.tb-social { display: flex; gap: 14px; }
.tb-social a {
  color: #cdd8ea;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.tb-social a:hover { color: var(--saffron); }
.tb-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.tb-contact span { display: inline-flex; align-items: center; gap: 6px; }
.tb-contact i { color: var(--saffron); }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: var(--shadow-sm);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo-wrap {
  width: 70px;
  height: 60px;
  border-radius: 20%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.brand-logo-wrap img { width: 100%; height: 100%;  }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--navy); font-family: "Poppins", sans-serif; font-size: 1.15rem; }
.brand-text span { font-size: 0.72rem; color: var(--muted); }

.nav-links ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.80rem;
  color: var(--ink);
  padding: 6px 2px;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--saffron-dark);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 26px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 66, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 98;
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   PAGE HEADER (inner page banners)
   ========================================================================== */
.page-header {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  padding: 54px 0 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg, var(--saffron) 0 26px, var(--maroon) 26px 52px
  );
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.breadcrumb { font-size: 0.88rem; color: #b9c6de; }
.breadcrumb a { color: #d8e1f0; }
.breadcrumb a:hover { color: var(--saffron); }
.breadcrumb span { margin: 0 6px; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 76px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: var(--cream); }
.section-navy { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #e6ebf4; }
.section-navy p { color: #c3cee2; }

.section-head {  margin: 0 auto 42px; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.eyebrow-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--saffron-dark);
  margin-bottom: 10px;
  padding-left: 16px;
  border-left: 3px solid var(--saffron-dark);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- About-style split layouts ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.badge-card {
  position: absolute;
  right: -18px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 240px;
}
.badge-card .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--saffron-dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.badge-card strong { display: block; color: var(--navy-dark); font-size: 0.98rem; }
.badge-card span { font-size: 0.78rem; color: var(--muted); }

.check-list { margin: 20px 0 26px; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  color: #3c4453;
}
.check-list i { color: var(--green); margin-top: 4px; flex-shrink: 0; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Cards: pillar / info ---------- */
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pillar-card .icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--saffron-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.pillar-card p { font-size: 0.94rem; margin-bottom: 0; }

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--saffron-dark);
  border-radius: var(--radius-sm);
  padding: 22px 22px;
}
.info-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 1rem; }
.info-card ul { margin: 10px 0 0; }
.info-card ul li { display: flex; gap: 8px; margin: 8px 0; font-size: 0.9rem; color: #3c4453; }
.info-card ul i { color: var(--green); margin-top: 3px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 6px; }
.cta-banner p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   TEAM / COMMITTEE
   ========================================================================== */
.president-feature {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 46px;
  align-items: center;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.president-feature img {
  width: 100%; height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.president-feature .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  background: var(--maroon);
  padding: 5px 14px;
  border-radius: 999px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-card .photo { height: 210px; overflow: hidden; background: var(--cream-deep); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .info { padding: 16px 16px 18px; border-top: 3px solid var(--saffron-dark); }
.team-card .info h3 { margin: 0 0 4px; font-size: 0.98rem; }
.team-card .role { font-size: 0.8rem; color: var(--muted); }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.08); }

/* ==========================================================================
   CONTACT / FORMS
   ========================================================================== */
.contact-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
}
.contact-tile .icon {
  width: 50px; height: 50px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--saffron-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.contact-tile h3 { margin-bottom: 6px; }
.contact-tile p { margin: 0; font-size: 0.92rem; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0 8px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy-dark); }
.form-group input, .form-group textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--saffron-dark);
  box-shadow: 0 0 0 3px rgba(201, 111, 15, 0.15);
  background: var(--white);
}
.radio-row { display: flex; flex-direction: column; gap: 10px; }
.radio-row label { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: #3c4453; }
.radio-row input { width: auto; }

.detail-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.detail-table td:first-child { color: var(--muted); font-weight: 500; width: 42%; }
.detail-table td:last-child { color: var(--navy-dark); font-weight: 600; }

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 320px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }


@media (max-width: 1020px) {
.form-card {
    padding: 17px;
}

h2 {
    font-size: 21px;
}
}


/* ==========================================================================
   HOMEPAGE — HERO SLIDER
   ========================================================================== */
.tap-home-slider {
  position: relative;
  width: 100%;
  height: clamp(420px, 42vw, 620px);
  overflow: hidden;
  background: var(--navy-dark);
}
.tap-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out;
}
.tap-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.tap-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tap-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(0,0,0,.32);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: all .25s ease;
}
.tap-slider-arrow:hover { background: rgba(0,0,0,.65); transform: translateY(-50%) scale(1.06); }
.tap-slider-prev { left: 22px; }
.tap-slider-next { right: 22px; }
.tap-slider-dots {
  position: absolute; z-index: 6; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.tap-slider-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer; transition: all .25s ease;
}
.tap-slider-dots button.active { width: 26px; border-radius: 10px; background: #fff; }

/* ---------- Homepage about ---------- */
.tap-home-about-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 60px;
  align-items: center;
}
.tap-home-about-media { position: relative; min-height: 420px; }
.tap-home-about-media > img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.tap-home-stat {
  position: absolute; right: -18px; bottom: 22px;
  width: 190px; padding: 16px 18px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.tap-home-stat strong { display: block; color: var(--navy-dark); font-size: 19px; font-weight: 800; }
.tap-home-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------- Homepage events ---------- */
.tap-home-event-card {
  overflow: hidden; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tap-home-event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tap-home-event-image { width: 100%; height: 230px; overflow: hidden; }
.tap-home-event-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tap-home-event-card:hover .tap-home-event-image img { transform: scale(1.06); }
.tap-home-event-body { padding: 22px 24px 26px; }
.tap-home-event-tag {
  display: inline-block; margin-bottom: 8px; color: var(--saffron-dark);
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
}
.tap-home-event-body p { min-height: 50px; font-size: 0.92rem; margin-bottom: 16px; }

/* ---------- Homepage leadership ---------- */
.tap-home-person-card {
  overflow: hidden; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tap-home-person-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tap-home-person-image { height: 230px; background: var(--cream-deep); overflow: hidden; }
.tap-home-person-image img { width: 100%; height: 100%; object-fit: cover; }
.tap-home-person-info { padding: 15px 16px 17px; border-top: 3px solid var(--saffron-dark); }
.tap-home-person-info h3 { margin: 0 0 4px; font-size: 0.98rem; }
.tap-home-person-info p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.text-center { text-align: center; }
.tap-home-more-btn { margin-top: 34px; }

/* ---------- Homepage gallery preview ---------- */
.tap-home-gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 190px 190px;
  gap: 12px;
}
.tap-home-gallery-item { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--cream-deep); }
.tap-home-gallery-large { grid-row: span 2; }
.tap-home-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tap-home-gallery-item:hover img { transform: scale(1.06); }

/* ---------- Sponsors marquee ---------- */
.sponsor-slider { overflow: hidden; position: relative; margin-top: 30px; }
.sponsor-slider::before, .sponsor-slider::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
}
.sponsor-slider::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.sponsor-slider::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }
.sponsor-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: sponsor-scroll 38s linear infinite;
}
.sponsor-slider:hover .sponsor-track { animation-play-state: paused; }
.sponsor-card {
  flex: 0 0 auto;
  width: 150px; height: 84px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  background: var(--white);
}
.sponsor-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes sponsor-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-dark); color: #b9c6de; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 64px 0 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 55px; height: 50px; border-radius: 10px;  }
.footer-brand strong { color: #fff; font-family: "Poppins", sans-serif; font-size: 1.05rem; }
.site-footer p { color: #a9b7cf; font-size: 0.9rem; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: .01em; }
.footer-links li, .footer-contact li { margin: 10px 0; font-size: 0.9rem; }
.footer-links a { color: #b9c6de; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--saffron); }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; color: #b9c6de; }
.footer-contact i { color: var(--saffron); margin-top: 3px; }
.footer-contact .tb-social { margin-top: 16px; gap: 16px; }
.footer-contact .tb-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white);
}
.footer-contact .tb-social a:hover { background: var(--saffron-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: 0.82rem;
  color: #8fa0bd;
  text-align: center;
}

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 50;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--saffron-dark); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .nav-links {
    display: block;
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--white);
    padding: 100px 26px 26px;
    box-shadow: var(--shadow-lg);
    z-index: 58;
    overflow-y: auto;
  }
  .site-header.nav-open .nav-links ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-header.nav-open .nav-links a { display: block; padding: 13px 16px; }

  .nav-cta .btn span { display: none; }
  .nav-cta .btn { padding: 6px 12px; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tap-home-leader-grid { grid-template-columns: repeat(2, 1fr); }
  .president-feature { grid-template-columns: 1fr; }
  .president-feature img { height: 300px; }
}

@media (max-width: 900px) {
  .about-grid,
  .tap-home-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media img,
  .tap-home-about-media, .tap-home-about-media > img { height: 340px; min-height: 340px; }
  .grid-3, .contact-tiles { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tb-contact { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .about-grid[style*="1.4fr"], .about-grid[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 720px) {
  .tap-home-slider { height: 320px; }
  .tap-slider-arrow { width: 38px; height: 38px; font-size: 15px; }
  .tap-slider-prev { left: 12px; }
  .tap-slider-next { right: 12px; }

  .section { padding: 52px 0; }
  .section-tight { padding: 34px 0; }

  .grid-3, .grid-4, .contact-tiles { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .tap-home-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 170px 170px; }
  .tap-home-gallery-large { grid-row: span 1; }

  .president-feature { padding: 22px; }

  .cta-banner { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .cta-banner .cta-actions { width: 100%; }
  .cta-banner .cta-actions .btn { flex: 1; }

  .footer-grid { grid-template-columns: 1fr; padding: 48px 0 30px; gap: 34px; }
}

@media (max-width: 520px) {
  .brand-text span { display: none; }
  .grid-3, .grid-4, .contact-tiles { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .tap-home-gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 210px); }
  .about-media img, .tap-home-about-media, .tap-home-about-media > img { height: 260px; min-height: 260px; }
  .badge-card { right: 8px; left: 8px; max-width: none; }
  .page-header { padding: 40px 0 30px; }
}

/* Sponsor Section Base Styling */
.sponsor-section {
  padding: 60px 0;
  background-color: #fdfdfd;
}

/* Marquee Container */
.sponsor-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

/* Infinite Scroll Track */
.sponsor-track {
  display: flex;
  align-items: center;
  gap: 30px; /* Card ల మధ్య space */
  width: max-content;
  animation: scroll 30s linear infinite;
}

.sponsor-slider:hover .sponsor-track {
  animation-play-state: paused; /* Hover చేసినప్పుడు ఆగడానికి */
}

/* Card Styling - సైజు పెంచడం జరిగింది */
.sponsor-card {
  width: 200px;  /* Card వెడల్పు పెంచాం */
  height: 100px; /* Card ఎత్తు పెంచాం */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #eaeaea;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Image Fit & Visibility */
.sponsor-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Image దెబ్బతినకుండా స్పష్టంగా పడుతుంది */
  filter: grayscale(0%); /* Full Colors కనిపించడానికి */
}

/* Keyframe Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}



.tap-home-check-list {
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.tap-home-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  line-height: 1.55;
}

.tap-home-check-list i {
  color: #159447;
  margin-top: 3px;
  flex: 0 0 auto;
}




/* =========================================
   SPONSORS SECTION
========================================= */

.tap-sponsors-section {
  background: #f8fafc;
  overflow: hidden;
}


/* -----------------------------------------
   SECTION HEADING
----------------------------------------- */

.tap-sponsors-section .section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.tap-sponsors-section .section-head h2 {
  margin: 10px 0 12px;
  color: #16233b;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
}

.tap-sponsors-section .section-head p {
  max-width: 680px;
  margin: 0 auto;
  color: #667085;
  font-size: 16px;
  line-height: 1.7;
}


/* =========================================
   MARQUEE WRAPPER
========================================= */

.sponsor-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 12px 0 25px;
}


/* Side Fade */

.sponsor-marquee::before,
.sponsor-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 5;
  pointer-events: none;
}

.sponsor-marquee::before {
  left: 0;

  background:
    linear-gradient(
      to right,
      #f8fafc 0%,
      rgba(248, 250, 252, 0) 100%
    );
}

.sponsor-marquee::after {
  right: 0;

  background:
    linear-gradient(
      to left,
      #f8fafc 0%,
      rgba(248, 250, 252, 0) 100%
    );
}


/* =========================================
   MOVING TRACK
========================================= */

.sponsor-track {
  display: flex;
  
  gap: 24px;

  width: max-content;

  animation:
    sponsorMove 55s linear infinite;
}


/* Pause on hover */

.sponsor-marquee:hover .sponsor-track {
  animation-play-state: paused;
}


/* =========================================
   SPONSOR CARD
========================================= */

.sponsor-card {
  width: 220px;
  height: 125px;

  flex: 0 0 220px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;

  background: #ffffff;

  border: 1px solid #e6eaf0;

  border-radius: 16px;

  box-shadow:
    0 8px 28px rgba(16, 24, 40, 0.07);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


/* =========================================
   LOGO
========================================= */

.sponsor-card img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  object-position: center;

  transition:
    transform 0.3s ease;
}


/* =========================================
   HOVER
========================================= */

.sponsor-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 14px 35px rgba(16, 24, 40, 0.12);
}

.sponsor-card:hover img {
  transform: scale(1.05);
}


/* =========================================
   ANIMATION
========================================= */

@keyframes sponsorMove {

  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(
      calc(-50% - 12px)
    );
  }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

  .tap-sponsors-section .section-head h2 {
    font-size: 32px;
  }

  .sponsor-card {
    width: 195px;
    height: 110px;
    flex-basis: 195px;
    padding: 16px;
  }

  .sponsor-track {
    gap: 20px;
    animation-duration: 48s;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

  .tap-sponsors-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .tap-sponsors-section .section-head {
    padding: 0 15px;
    margin-bottom: 28px;
  }

  .tap-sponsors-section .section-head h2 {
    font-size: 28px;
  }

  .tap-sponsors-section .section-head p {
    font-size: 14px;
    line-height: 1.6;
  }

  .sponsor-card {
    width: 165px;
    height: 95px;

    flex-basis: 165px;

    padding: 13px;

    border-radius: 12px;
  }

  .sponsor-track {
    gap: 16px;
    animation-duration: 38s;
  }

  .sponsor-marquee::before,
  .sponsor-marquee::after {
    width: 45px;
  }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

  .sponsor-card {
    width: 150px;
    height: 88px;
    flex-basis: 150px;
  }

  .sponsor-track {
    gap: 14px;
  }

}


/* Container & Masking */
.sponsor-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 30px 0;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

/* Track & Animation Speed Controls */
.sponsor-track {
  display: flex;
  align-items: center;
  gap: 35px;
  width: max-content;
  /* Time ni 50s ki pencham, deeni valla scrolling chaala SLOW ga & Smooth ga untundhi */
  animation: slowInfiniteScroll 50s linear infinite; 
}

/* Pause on Hover */
.sponsor-slider:hover .sponsor-track {
  animation-play-state: paused;
}

/* HD Logo Box Styling */
/* Card size ni penchi Padding ni thaggincham */
/* Card size ni penchi Padding ni thaggincham */
.sponsor-card {
  flex: 0 0 auto;
  width: 200px;         /* 180px nundi 200px ki pencham */
  height: 120px;        /* 100px nundi 120px ki pencham */
  padding: 8px 12px;    /* Padding thaggincham - valla Logo ki ekkuva space dhorukutundi */
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

/* Logos visibility & size optimization */
.sponsor-card img {
  width: 100%;
  height: 100%;
  /* Contain vaadadam valla image cut avvakunda card lo entha వీలైతే entha pedda ga fit avutundi */
  object-fit: contain; 
  
  /* Image Clarity Settings */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}

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

/* Logo Image Clarity Settings */
.sponsor-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Sharp & Crisp Clarity kosam */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Animation Keyframe */
@keyframes slowInfiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.placeholder-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
}

.placeholder-photo i {
    font-size: 3rem;
    color: var(--muted);
}

/* =========================================
   TAP HOME - LEADERSHIP CARDS
   ========================================= */

.tap-home-leader-grid {
    align-items: stretch;
}

.tap-home-person-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 45, 78, 0.08);
    box-shadow: 0 8px 24px rgba(15, 45, 78, 0.08);
    transition: all 0.3s ease;
}

.tap-home-person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(15, 45, 78, 0.14);
}

/* Photo area */
.tap-home-person-image {
    width: 100%;
    height: 275px;
    overflow: hidden;
    background: #eef2f6;
    position: relative;
}

/* All photos */
.tap-home-person-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

/* Slight zoom on hover */
.tap-home-person-card:hover .tap-home-person-image img {
    transform: scale(1.03);
}

/* Individual photo positioning */
.tap-home-person-card:nth-child(1)
.tap-home-person-image img {
    object-position: center 18%;
}

.tap-home-person-card:nth-child(2)
.tap-home-person-image img {
    object-position: center 15%;
}

.tap-home-person-card:nth-child(3)
.tap-home-person-image img {
    object-position: center 10%;
}

/* Placeholder */
.tap-home-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
}

.tap-home-placeholder i {
    font-size: 64px;
    color: #9aa6b2;
}

/* Card information */
.tap-home-person-info {
    min-height: 105px;
    padding: 18px 18px 20px;
    border-top: 3px solid #d97706;
    background: #ffffff;
}

.tap-home-person-info h3 {
    margin: 0 0 7px;
    color: #0b3157;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.tap-home-person-info p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.45;
}

/* Leadership section */
.tap-home-leadership {
    padding-top: 70px;
    padding-bottom: 70px;
}

.tap-home-leadership .section-head {
    margin-bottom: 38px;
}

.tap-home-more-btn {
    margin-top: 38px;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 991px) {

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

    .tap-home-person-image {
        height: 300px;
    }

}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 575px) {

    .tap-home-leadership {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .tap-home-leadership .section-head {
        margin-bottom: 28px;
    }

    .tap-home-leader-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tap-home-person-image {
        height: 360px;
    }

    .tap-home-person-info {
        min-height: auto;
        padding: 16px 17px 18px;
    }

    .tap-home-person-info h3 {
        font-size: 17px;
    }

    .tap-home-person-info p {
        font-size: 14px;
    }

}