/* ── INNER PAGE STYLES ── */

/* Navbar — always navy, slightly taller than homepage */
.navbar { background: var(--navy) !important; height: 60px !important; padding: 0 !important; }

/* Page Hero */
.page-hero {
  padding: 100px 24px 120px;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(
    125deg,
    #1a2d4a 0%,
    #1e3a6e 30%,
    #1a4a6a 55%,
    #1a6070 75%,
    #1a7070 100%
  );
}

/* Subtle dot texture */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(45,189,182,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

/* Curved bottom wave matching We Care style */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--tint-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 2;
}

/* Teal accent glow top right */
.page-hero-accent {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,189,182,0.18) 0%, rgba(45,189,182,0.06) 50%, transparent 70%);
  z-index: 0;
}

/* Second accent bottom left */
.page-hero-accent2 {
  position: absolute;
  bottom: 40px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  z-index: 0;
}

/* Gold accent line left */
.page-hero-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, transparent, #C9A84C, transparent);
  z-index: 1;
}

.page-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-breadcrumb {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(45,189,182,0.85);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-breadcrumb span { color: rgba(238,243,248,0.3); font-size: 0.9em; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.0;
  margin-top: 0;
  position: relative;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* Teal underline accent on title */
.page-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(to right, var(--teal), rgba(45,189,182,0.3));
  border-radius: 2px;
  margin-top: 18px;
}

/* Subtitle */
.page-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(238,243,248,0.75);
  max-width: 560px;
  line-height: 1.7;
  margin-top: 20px;
  font-weight: 400;
}

/* Per-page subtle gradient shifts — all share the base navy-to-teal gradient */
.page-hero--about    { background: linear-gradient(125deg, #1a2d4a 0%, #1e3a6e 30%, #1a4a6a 55%, #1a6070 75%, #1a7070 100%); }
.page-hero--sponsors { background: linear-gradient(125deg, #1a2d4a 0%, #1e3a6e 30%, #1a5060 60%, #1a6858 100%); }
.page-hero--contact  { background: linear-gradient(125deg, #141e38 0%, #1e3a6e 30%, #185470 60%, #186870 100%); }

/* Inner sections */
.inner-section {
  padding: 80px 0 100px;
  background: var(--tint-bg);
}

/* Program cards — teal fade always visible, intensifies on hover */
.program-card {
  background: linear-gradient(135deg, rgba(45,189,182,0.14) 0%, rgba(45,189,182,0.02) 100%);
  border: 1px solid rgba(45,189,182,0.25);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.program-card-icon {
  width: 52px; height: 52px;
  background: rgba(45,189,182,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  margin-bottom: 20px;
  transition: background 0.35s ease, color 0.35s ease;
}
.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  transition: color 0.35s ease;
}
.program-card p {
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.65;
  margin: 0;
  transition: color 0.35s ease;
}
.program-card:hover {
  background: linear-gradient(135deg, rgba(45,189,182,0.35) 0%, rgba(45,189,182,0.08) 100%);
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(45,189,182,0.18);
}
.program-card:hover .program-card-icon {
  background: var(--teal);
  color: #ffffff;
}

/* Content + Sidebar */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}
.content-main .section-title { font-size: 1.8rem; }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.value-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-light);
  position: relative;
  min-height: 360px;
  cursor: default;
  transition: border-color var(--transition);
  background: var(--white);
}

/* Photo layer — hidden by default, fills whole card */
.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: var(--card-bg-pos, center);
  opacity: 0;
  transition: opacity 0.45s ease;
  border-radius: var(--radius-lg);
}
/* Overlay — just enough to make text readable, photo still very visible */
.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,15,30,0.75) 0%,
    rgba(8,15,30,0.2) 45%,
    rgba(8,15,30,0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  border-radius: var(--radius-lg);
}
.value-card:hover { border-color: transparent; }
.value-card:hover::before { opacity: 1; }
.value-card:hover::after { opacity: 1; }

.value-card-inner {
  position: relative;
  z-index: 2;
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.value-card-inner {
  position: relative;
  z-index: 2;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.value-card-icon {
  width: 52px; height: 52px;
  background: rgba(45,189,182,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  margin-bottom: auto;
  transition: background 0.45s ease, color 0.45s ease;
  flex-shrink: 0;
}
.value-card:hover .value-card-icon {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 80px;
  margin-bottom: 10px;
  transition: color 0.45s ease;
  line-height: 1.2;
}
.value-card:hover h3 { color: #ffffff; }
.value-card p {
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.65;
  transition: color 0.45s ease;
  margin: 0;
}
.value-card:hover p { color: rgba(238,243,248,0.85); }

/* On mobile/touch devices, show the photo and text colours by default — no hover available */
@media (max-width: 768px), (hover: none) {
  .value-card::before { opacity: 1; }
  .value-card::after { opacity: 1; }
  .value-card { border-color: transparent; }
  .value-card .value-card-icon {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
  }
  .value-card h3 { color: #ffffff; }
  .value-card p { color: rgba(238,243,248,0.85); }
}



/* Committee */
.committee-placeholder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.committee-card { text-align: center; }
.committee-avatar {
  width: 72px;
  height: 72px;
  background: var(--grey-light);
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid var(--grey-light);
}
.committee-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.committee-role {
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 2px;
}

/* Sidebar */
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--grey-light);
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.sidebar-list li {
  font-size: 0.875rem;
  color: var(--grey);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-light);
}
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list strong { color: var(--charcoal); }
.sidebar-card--green {
  background: var(--navy);
}
.sidebar-card--green h4 { color: var(--teal); }
.sidebar-card--green p { font-size: 0.875rem; color: rgba(247,244,238,0.75); }

/* Fixtures table */
.fixtures-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.fixtures-table thead {
  background: var(--navy);
  color: var(--off-white);
}
.fixtures-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fixtures-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--grey-light);
}
.fixtures-table tr:last-child td { border-bottom: none; }
.fixtures-table tr:hover td { background: var(--off-white); }
.badge-home { background: rgba(46,104,68,0.12); color: var(--navy-mid); font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; }
.badge-away { background: rgba(201,168,76,0.15); color: var(--teal-dark); font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--grey-light);
  color: var(--grey);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--navy);
  color: var(--off-white);
  border-color: var(--navy);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-light);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.8rem;
  font-weight: 500;
  transition: transform var(--transition);
}
.gallery-item:hover { transform: scale(1.02); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--grey-light);
}
.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--off-white);
  transition: border-color var(--transition);
  resize: vertical;
  min-height: 120px;
}
.form-textarea:focus { outline: none; border-color: var(--navy-mid); }

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(15,32,68,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; color: var(--navy-mid); }
.contact-detail-text strong { display: block; font-size: 0.875rem; color: var(--navy); margin-bottom: 2px; }
.contact-detail-text span { font-size: 0.875rem; color: var(--grey); }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-light);
  margin-top: 32px;
  height: 260px;
}

/* Teams page */
.teams-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.team-page-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-light);
}
.team-page-card-header {
  background: var(--navy);
  padding: 32px 24px;
  text-align: center;
}
.team-page-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--off-white);
  margin-bottom: 4px;
}
.team-page-card-header span {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.team-page-card-body { padding: 24px; }
.team-page-card-body p { font-size: 0.875rem; color: var(--grey); margin-bottom: 16px; }
.team-detail-list { list-style: none; margin-bottom: 20px; }
.team-detail-list li {
  font-size: 0.85rem;
  color: var(--charcoal);
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-light);
  display: flex;
  justify-content: space-between;
}
.team-detail-list li:last-child { border-bottom: none; }
.team-detail-list span { color: var(--grey); }

/* Sponsor CTA section */
.sponsor-cta {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}
.sponsor-cta-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Responsive inner */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .committee-placeholder { grid-template-columns: repeat(2, 1fr); }
  .teams-page-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
  .committee-placeholder { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .teams-page-grid { grid-template-columns: 1fr; }
  .fixtures-table { font-size: 0.8rem; }
  .fixtures-table th, .fixtures-table td { padding: 10px 10px; }
  .sponsor-cta {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
  .sponsor-cta-card { padding: 24px; }
}
