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

/* Basic Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #343a40;
  background-color: #f8f9fa;
}

/* Variables */
:root {
  --primary: #007bff;
  --accent: #fd7e14;
  --light: #f8f9fa;
  --dark: #343a40;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Header */
header {
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px var(--shadow);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

nav a:hover {
  color: var(--primary);
}

.header-button {
  background-color: var(--white);
  color: var(--primary) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.header-button.alt {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white) !important;
}

.header-button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  margin: 4px 0;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
  }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    flex-direction: column;
    width: 250px;
    padding: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
    border-top: 1px solid #eee;
  }
  nav ul.show {
    display: flex;
  }

  nav ul a {
    color: var(--dark);
    padding: 0.75rem 1rem;
    display: block;
    border-bottom: 1px solid #eee;
  }

  nav ul li:last-child a {
    border-bottom: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Slider */
#slider {
  position: relative;
  overflow: hidden;
  height: 450px; /* Restoring fixed height for stable layout */
  background-color: #f8f9fa;
  padding: 1.5rem 0; /* Add some padding to not stick to the edges */
}

.slides {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px; /* The space between slides */
  transition: transform 0.5s ease-in-out;
}

.slide {
  position: relative; /* Required for the ::before pseudo-element */
  width: 85%; /* Each slide is 85% of the container width */
  flex-shrink: 0;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.4; /* Fade out non-active slides */
  transform: scale(0.95); /* Slightly shrink non-active slides */
  transition: opacity 0.5s ease, transform 0.5s ease;
  /* background-color has been removed */
}

.slide::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px; /* Stretch to avoid blurry edges */
  background-image: inherit; /* This will be set by JS */
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.8);
  z-index: 0;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  position: relative; /* To ensure it sits on top of the ::before pseudo-element */
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure the full image is visible and sharp */
  display: block;
}

/* CTA */
#cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem; /* Reduced vertical padding */
}

#cta p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

.button {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.button:hover {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.button.small {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

main {
  display: block;
}

/* General Section Styling */
section {
  padding: 3rem 2rem;
}

main > section {
  display: block;
}

@media (max-width: 768px) {
  section {
    padding: 2rem 1rem;
  }
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}

/* Cards Row */
.cards-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  justify-content: center; /* Center the cards */
}

.activity-card {
  background: var(--white);
  border-radius: 12px;
  flex: 0 0 280px;
  box-shadow: 0 4px 8px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

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

.activity-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.activity-card h3,
.activity-card p {
  padding: 1rem;
}

.activity-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Override for tall news clipping images */
#news .activity-card img {
  height: auto;
  object-fit: contain;
}

/* Two Column Section */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.events,
.circulars {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px var(--shadow);
}

.events-list {
  list-style: none;
}

.events-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

.events-list li:last-child {
  border-bottom: none;
}

.circulars-scroll {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 1rem;
}

.circulars-scroll a {
  display: block;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.circulars-scroll a:hover {
  color: var(--accent);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 4px 8px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary);
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.team-card p {
  color: #6c757d;
}

/* Footer */
footer {
  background: var(--dark);
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
}

footer a {
  color: var(--white);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

.social {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem; /* Increased space */
}

.social-card {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem; /* Bigger icons */
  text-decoration: none;
  box-shadow: 0 4px 8px var(--shadow);
  transition: all 0.3s ease;
}

.social-card:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

address {
  font-style: normal;
  line-height: 1.8;
} 