/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #0D2444;
  --color-accent: #B8860B;
  --color-bg-light: #F8F5F0;
  --color-bg-dark: #101622;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dark-mode {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  font-weight: 900;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.header {
  background-color: rgba(248, 245, 240, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

body.dark-mode .header {
  background-color: rgba(16, 22, 34, 0.8);
}

.header-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(13, 36, 68, 0.1);
  padding-bottom: 0;
  position: relative;
}

body.dark-mode .header-content {
  border-bottom-color: rgba(184, 134, 11, 0.2);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.logo {
  height: 5rem;
  width: auto;
  position: relative;
  top: 0;
}



.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.3s;
}

body.dark-mode .nav-link {
  color: var(--color-white);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link.active {
  color: var(--color-accent);
  font-weight: 700;
}

.donate-btn {
  min-width: 84px;
  padding: 0.625rem 1rem;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.donate-btn:hover {
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

body.dark-mode .mobile-menu-btn {
  color: var(--color-white);
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  background-color: var(--color-bg-light);
  padding: 1rem;
  border-top: 1px solid rgba(13, 36, 68, 0.1);
}

body.dark-mode .mobile-nav {
  background-color: var(--color-bg-dark);
  border-top-color: rgba(184, 134, 11, 0.2);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  padding: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
}

body.dark-mode .mobile-nav-link {
  color: var(--color-white);
}

.mobile-nav-link.active {
  color: var(--color-accent);
  font-weight: 700;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(13, 36, 68, 0.10);
  background: rgba(13, 36, 68, 0.05);
  color: var(--color-primary);
  /* Ensuring text is visible on light bg */
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1152px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(13, 36, 68, 0.8);
  /* Dark text for light footer */
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(13, 36, 68, 0.1);
  color: rgba(13, 36, 68, 0.6);
  font-size: 0.875rem;
}

/* Main Content */
main {
  flex: 1;
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom right, rgba(13, 36, 68, 0.9), rgba(13, 36, 68, 0.7)), url('Images/hero.jpeg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  height: 482px;
  /* Fixed height as requested */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
  margin: 0 auto;
}

/* Two Column Layout */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Weekly Header */
.weekly-header {
  text-align: left;
  margin-bottom: 2rem;
}

.week-of {
  font-size: 1.125rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.parasha-name {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

body.dark-mode .parasha-name {
  color: var(--color-white);
}

.date-range {
  font-size: 1.125rem;
  color: var(--color-primary);
  opacity: 0.7;
}

body.dark-mode .date-range {
  color: var(--color-white);
}

/* Announcements */
.announcements {
  background-color: rgba(184, 134, 11, 0.1);
  border-left: 4px solid var(--color-accent);
  border-radius: 0.75rem;
  padding: 2rem;
}

body.dark-mode .announcements {
  background-color: rgba(184, 134, 11, 0.2);
}

.announcements h3 {
  font-size: 1.875rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

body.dark-mode .announcements h3 {
  color: var(--color-white);
}

.announcement-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(13, 36, 68, 0.1);
  margin-bottom: 1rem;
}

body.dark-mode .announcement-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.announcement-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.announcement-item h4 {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

body.dark-mode .announcement-item h4 {
  color: var(--color-white);
}

.announcement-item p {
  color: rgba(13, 36, 68, 0.8);
  line-height: 1.6;
  margin: 0;
}

body.dark-mode .announcement-item p {
  color: rgba(255, 255, 255, 0.8);
}

/* Weekly Derasha */
.weekly-derasha {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .weekly-derasha {
  background-color: rgba(13, 36, 68, 0.2);
}

.weekly-derasha h3 {
  font-size: 1.875rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

body.dark-mode .weekly-derasha h3 {
  color: var(--color-white);
}

.weekly-derasha .content {
  color: rgba(13, 36, 68, 0.8);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

body.dark-mode .weekly-derasha .content {
  color: rgba(255, 255, 255, 0.8);
}

.weekly-derasha .author {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 600;
}

/* Minyan Schedule */
.minyan-schedule {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 6rem;
}

body.dark-mode .minyan-schedule {
  background-color: rgba(13, 36, 68, 0.2);
}

.minyan-schedule h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

body.dark-mode .minyan-schedule h3 {
  color: var(--color-white);
}

.schedule-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(13, 36, 68, 0.1);
}

body.dark-mode .schedule-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-day {
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.schedule-times {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.schedule-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(13, 36, 68, 0.8);
}

body.dark-mode .schedule-time {
  color: rgba(255, 255, 255, 0.8);
}

/* News Cards */
.news-section h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

body.dark-mode .news-section h3 {
  color: var(--color-white);
}

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

.news-card {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

body.dark-mode .news-card {
  background-color: rgba(13, 36, 68, 0.2);
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.news-card-content {
  padding: 1.5rem;
}

.news-card-date {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card h4 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

body.dark-mode .news-card h4 {
  color: var(--color-white);
}

.news-card p {
  font-size: 0.875rem;
  color: rgba(13, 36, 68, 0.8);
  line-height: 1.6;
  margin: 0;
}

body.dark-mode .news-card p {
  color: rgba(255, 255, 255, 0.8);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-accent);
}

.timeline-item {
  position: relative;
  padding-left: 5rem;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 1.375rem;
  top: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--color-accent);
  border-radius: 50%;
  border: 3px solid var(--color-bg-light);
}

body.dark-mode .timeline-dot {
  border-color: var(--color-bg-dark);
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

body.dark-mode .timeline-content h4 {
  color: var(--color-white);
}

.timeline-content p {
  color: rgba(13, 36, 68, 0.8);
  line-height: 1.6;
}

body.dark-mode .timeline-content p {
  color: rgba(255, 255, 255, 0.8);
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.program-card {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, transform 0.3s;
}

body.dark-mode .program-card {
  background-color: rgba(13, 36, 68, 0.2);
}

.program-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.program-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(184, 134, 11, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.program-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent);
}

.program-card h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

body.dark-mode .program-card h3 {
  color: var(--color-white);
}

.program-card p {
  color: rgba(13, 36, 68, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

body.dark-mode .program-card p {
  color: rgba(255, 255, 255, 0.8);
}

.program-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* Contact Form */
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .contact-info {
  background-color: rgba(13, 36, 68, 0.2);
}

.contact-info h2 {
  font-size: 1.875rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

body.dark-mode .contact-info h2 {
  color: var(--color-white);
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(184, 134, 11, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-accent);
}

.contact-item-content h3 {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

body.dark-mode .contact-item-content h3 {
  color: var(--color-white);
}

.contact-item-content p {
  color: rgba(13, 36, 68, 0.8);
  margin: 0;
}

body.dark-mode .contact-item-content p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-form {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .contact-form {
  background-color: rgba(13, 36, 68, 0.2);
}

.contact-form h2 {
  font-size: 1.875rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

body.dark-mode .contact-form h2 {
  color: var(--color-white);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

body.dark-mode .form-group label {
  color: var(--color-white);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(13, 36, 68, 0.2);
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-white);
  color: var(--color-primary);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background-color: rgba(13, 36, 68, 0.3);
  border-color: rgba(184, 134, 11, 0.3);
  color: var(--color-white);
}

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

.submit-btn {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.submit-btn:hover {
  transform: scale(1.02);
}

/* Audio Card */
.audio-card {
  background-color: var(--color-white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(13, 36, 68, 0.1);
  margin-bottom: 1.5rem;
}

body.dark-mode .audio-card {
  background-color: rgba(13, 36, 68, 0.2);
  border-color: rgba(184, 134, 11, 0.2);
}

.audio-card-content {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.play-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.3s;
}

.play-btn:hover {
  background-color: rgba(184, 134, 11, 0.9);
}

.play-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: white;
  color: white;
}

.audio-info {
  flex: 1;
}

.audio-info h4 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

body.dark-mode .audio-info h4 {
  color: var(--color-white);
}

.audio-info p {
  font-size: 0.875rem;
  color: rgba(13, 36, 68, 0.8);
  margin-bottom: 0.75rem;
}

body.dark-mode .audio-info p {
  color: rgba(255, 255, 255, 0.8);
}

.audio-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(13, 36, 68, 0.6);
}

body.dark-mode .audio-meta {
  color: rgba(255, 255, 255, 0.6);
}

/* Video Card */
.video-card {
  background-color: var(--color-white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(13, 36, 68, 0.1);
  transition: box-shadow 0.3s;
}

body.dark-mode .video-card {
  background-color: rgba(13, 36, 68, 0.2);
  border-color: rgba(184, 134, 11, 0.2);
}

.video-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.video-thumbnail:hover .video-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

.video-play-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.video-thumbnail:hover .video-play-btn {
  background-color: rgba(184, 134, 11, 0.9);
}

.video-play-btn svg {
  width: 2rem;
  height: 2rem;
  fill: white;
  margin-left: 0.25rem;
}

.video-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.video-info {
  padding: 1.25rem;
}

.video-date {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.video-info h4 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

body.dark-mode .video-info h4 {
  color: var(--color-white);
}

.video-info p {
  font-size: 0.875rem;
  color: rgba(13, 36, 68, 0.8);
  line-height: 1.6;
  margin: 0;
}

body.dark-mode .video-info p {
  color: rgba(255, 255, 255, 0.8);
}

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

/* Resource Sections */
.resource-section {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-icon {
  width: 2rem;
  height: 2rem;
  color: var(--color-accent);
}

.section-header h2 {
  font-size: 2rem;
  color: var(--color-primary);
}

body.dark-mode .section-header h2 {
  color: var(--color-white);
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .two-column-layout {
    grid-template-columns: 2fr 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 4rem;
  }
}

/* Utilities */
.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Minyan Schedule Chips Implementation */
.section-title {
  color: #D4AF37;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.schedule-group {
  margin-bottom: 1rem;
}

.schedule-label {
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.time-chip {
  border-radius: 4px;
  background: #F8F5F0;
  color: rgba(13, 36, 68, 0.80);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  padding: 0.25rem 0.6rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  /* Reduced from 2.5rem */
  height: 2rem;
  /* Reduced from 2.5rem */
  background-color: #000000;
  border-radius: 50%;
  color: #ffffff !important;
  /* Force white color to override footer link styles */
  transition: transform 0.2s;
}

/* =========================================
   About Us Page Styles
   ========================================= */

/* Hero Specific for About Us if needed override, otherwise uses global .hero */

/* 1. Our History Section */
.history-section {
  padding: 4rem 1.5rem;
  background-color: var(--color-background);
}

.history-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .history-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.history-text h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.history-text p {
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.history-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.history-caption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

/* 2. Timeline Section */
.timeline-section {
  padding: 4rem 1.5rem;
  background-color: #FDFBF7;
  /* Slightly warmer background */
  text-align: center;
}

.timeline-header {
  margin-bottom: 4rem;
}

.timeline-header h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.timeline-header p {
  color: #666;
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Center Line */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-accent);
  /* Gold line */
  transform: translateX(-50%);
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

/* Dot on the line */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* Centered exactly */
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  z-index: 2;
  border: 2px solid #fff;
}

.timeline-content-side,
.timeline-image-side {
  width: 45%;
  position: relative;
}

.timeline-image-side img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-year {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* Mobile Responsiveness for Timeline */
@media (max-width: 768px) {
  .timeline-wrapper::before {
    left: 20px;
    /* Line moves to left */
  }

  .timeline-row {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 50px;
    /* Space for line */
  }

  /* Reset widths */
  .timeline-content-side,
  .timeline-image-side {
    width: 100%;
    text-align: left !important;
    /* Force left align on mobile */
  }

  .timeline-image-side {
    margin-bottom: 1.5rem;
    order: -1;
    /* Image first on mobile? Or text first? Let's check design. Usually image top is good */
  }

  .timeline-year {
    /* text-align will be handled by parent reset */
  }

  .timeline-dot {
    left: 20px;
    /* Align dot with line */
  }
}


/* 3. Leadership Section */
.leadership-section {
  padding: 4rem 1.5rem;
  background-color: var(--color-background);
  text-align: center;
}

.leadership-header {
  margin-bottom: 3rem;
}

.leadership-header h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.leader-card {
  text-align: center;
}

.leader-img-wrapper {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.leader-name {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.leader-role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leader-bio {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* 4. CTA Section */
.cta-section {
  padding: 4rem 1.5rem;
  background-color: var(--color-primary);
  /* Dark Blue */
  color: #fff;
  text-align: center;
  margin-bottom: 4rem;
  /* Spacing from footer if needed outside container? Actually better full width */
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-btn {
  display: inline-block;
  background-color: var(--color-accent);
  /* Gold */
  color: var(--color-primary);
  /* Dark Text on Gold */
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-btn:hover {
  opacity: 0.9;
}

.social-btn:hover {
  transform: scale(1.1);
}

.social-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* -------------------------------------------------------------------------- */
/*                              Programs Page                                 */
/* -------------------------------------------------------------------------- */

/* Section Headings */
.section-heading {
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Filter Section */
.filter-section {
  background-color: var(--color-background);
  padding: 1.5rem 0;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 3rem;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border: 1px solid #D1D5DB;
  border-radius: 2rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--color-accent);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #F3F4F6;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.filter-btn:hover {
  background: #E5E7EB;
}

.filter-btn.active {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

/* Featured Program Spotlight */
.featured-program {
  margin-bottom: 4rem;
}

.featured-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.featured-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.program-tag {
  color: #4B5563;
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.featured-content h3 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.featured-content p {
  color: #4B5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.program-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6B7280;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.featured-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-gold {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
}

.btn-gold:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-grey {
  background-color: #E5E7EB;
  color: #374151;
  border: 1px solid #E5E7EB;
}

.btn-grey:hover {
  background-color: #D1D5DB;
  border-color: #D1D5DB;
}

/* Upcoming Programs Grid */
.upcoming-programs {
  margin-bottom: 5rem;
}

.programs-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.program-card-new {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.program-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 200px;
  width: 100%;
  overflow: hidden;
}

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

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-tag-small {
  color: #059669;
  /* Or Gold depending on preference, green/blue for variety */
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.program-card-new h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.program-card-new p {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
  /* Pushes button to bottom */
}

.program-meta-small {
  color: #9CA3AF;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6B7280;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.btn-full-width {
  display: block;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  background-color: #F3F4F6;
  color: #4B5563;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-full-width:hover {
  background-color: #E5E7EB;
  color: #1F2937;
}

/* Newsletter Section */
.newsletter-section {
  background-color: #F8F7F4;
  /* Light Beige background */
  padding: 4rem 1rem;
  text-align: center;
  border-radius: 1rem;
  margin-bottom: 3rem;
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-section h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.newsletter-section p {
  color: #6B7280;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

.newsletter-form input {
  padding: 0.75rem 1.25rem;
  border: 1px solid #D1D5DB;
  border-radius: 2rem;
  font-size: 1rem;
  outline: none;
  flex: 1;
}

.newsletter-form input:focus {
  border-color: var(--color-accent);
}

/* Responsive Programs Page */
@media (min-width: 768px) {
  .featured-card {
    flex-direction: row;
  }

  .featured-image {
    width: 50%;
    height: auto;
  }

  .featured-content {
    width: 50%;
  }

  .newsletter-form {
    flex-direction: row;
  }
}

/* -------------------------------------------------------------------------- */
/*                               Contact Page                                 */
/* -------------------------------------------------------------------------- */

/* Header */
.contact-header {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.contact-header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-header p {
  font-size: 1.1rem;
  color: #4B5563;
  max-width: 800px;
}

/* Contact Grid (Info + Map) */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 900px) {
  .contact-grid {
    flex-direction: row;
    align-items: stretch;
  }
}

/* Left Column: Contact Details */
.contact-details {
  flex: 0 0 45%;
  /* slightly less than half */
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon-wrapper {
  color: var(--color-primary);
}

.contact-text h4 {
  font-size: 1.1rem;
  /* Slightly larger heading for "Address", "Phone", etc */
  color: #6B7280;
  /* Grey color for label */
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-text p {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1.4;
}

.contact-divider {
  height: 1px;
  background-color: #E5E7EB;
  width: 100%;
}

/* Right Column: Map */
.contact-map {
  flex: 1;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 400px;
  background-color: #F3F4F6;
  position: relative;
}

.contact-map img,
.contact-map iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
}


/* Contact Form Section */
.contact-form-section {
  background-color: #F8F7F4;
  /* Light Beige background */
  padding: 4rem 2rem;
  border-radius: 1rem;
  margin-bottom: 4rem;
}

.contact-form-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.contact-form-new {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-group label {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  font-size: 1rem;
  outline: none;
  background-color: #FFF;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  border: none;
  cursor: pointer;
}