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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2B2B2B;
}

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

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

ul {
  list-style: none;
}

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  color: #1C4B27;
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #1C4B27;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #1C4B27;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slideshow {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

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

/* Add this to your existing CSS */
.event-slideshow {
  position: relative;  /* Needed for absolute positioning inside */
  width: 100%;
  height: 500px;      /* Adjust height to fit event cards */
  border-radius: 8px; /* Match your event card style */
  overflow: hidden;    /* Ensures rounded corners */
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  width: 90%;
  max-width: 800px;
  padding: 20px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-indicators {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: white;
  transform: scale(1.2);
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #1C4B27;
}

.subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  margin-bottom: 20px;
  color: #1C4B27;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1C4B27;
}

.feature-card p {
  color: #666;
}

/* About Section
.about {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1C4B27;
}

.about-text p {
  margin-bottom: 30px;
  color: #555;
} */
 /* About Section */
.about {
  padding: 20px 0;
  background-color: #f9f9f9; /* Light background for contrast */
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
  /* align-items: center; */
  max-width: 1200px; /* Prevent overly wide text lines */
  margin: 0 auto; /* Center the content */
  padding: 0 20px; /* Add padding on small screens */
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1C4B27;
  line-height: 1.3; /* Better spacing for headings */
}

.about-text p {
  margin-bottom: 30px;
  color: #555;
  line-height: 1.8; /* Improves readability */
  font-size: 1.1rem; /* Slightly larger text */
}

/* Optional: Add a subtle border or accent */
.about-text h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #1C4B27;
  margin-top: 15px;
}

.about-text {
  padding: 30px;
  border-radius: 8px; /* Soft rounded corners */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Subtle shadow */
  background: white; /* Ensure contrast */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 30px;
  }
}

/* ===== Programs Section ===== */
.programs-section {
  padding: 4rem 2rem;
  background: var(--bg-light);
  text-align: center;
}

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

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

.program-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.program-card img {
  max-width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
}

.program-card h3 {
  color: var(--primary-color);
  margin: 1rem 0 0.5rem;
  font-size: 1.25rem;
}

.program-card p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.program-card .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent-color);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.program-card .btn:hover {
  background: darken(var(--accent-color), 10%);
}

/* Add these to your existing CSS */
.program-category-title {
  color: var(--primary-color);
  margin: 3rem 0 1.5rem;
  font-size: 1.5rem;
  text-align: left;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  width: fit-content;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}


.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #1C4B27;
  margin-bottom: 5px;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* Events Section */
.events {
  padding: 10px 0;
  background: #fff; /* Or match your theme */
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #1C4B27;
  margin-bottom: 50px;
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  align-items: center;
  margin-bottom: 60px;
  border-radius: 8px;
  overflow: hidden; /* Ensures rounded corners for images */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Optional card effect */
}

.event-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover; /* Ensures images fill the container */
}

.event-details h3 {
  font-size: 1.8rem;
  color: #1C4B27;
  margin-bottom: 10px;
}

.event-date {
  color: #777;
  font-weight: 600;
  margin-bottom: 15px;
}

.event-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.event-button {
  display: inline-block;
  padding: 10px 20px;
  background: #1C4B27;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.event-button:hover {
  background: #14361E;
}


.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start; /* Key change */
  margin-bottom: 60px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Ensure image/slideshow and text start at the same top point */
.event-image, .event-details {
  margin-top: 0;
  padding-top: 0;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .event-card {
    grid-template-columns: 1fr;
  }
  .event-image img {
    max-height: 100%; /* Control mobile image height */
  }
}



/* Contact Section */
.contact {
  padding: 30px 0;
  background-color: #f9f9f9;
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #1C4B27;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #1C4B27;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-weight: 500;
  color: #555;
}

input, textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #1C4B27;
}

.btn {
  background-color: #1C4B27;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #1C4B27;
}

/* Footer */
.footer {
  background-color: #1C4B27;
  color: white;
  padding: 60px 0 20px;
}

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

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.link-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.link-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}

.link-column ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.link-column a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content,
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image {
    order: -1;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
}

/* Updated Footer Styles */

.footer {
  background-color: #1C4B27;
  color: #FFFFFF;
  padding: 40px 20px;
}

.footer a {
  color: #C49A00;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer small, .footer .secondary {
  color: #E0E0E0;
}


.program-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  cursor: pointer;
  max-height: 120px;
}

.program-card.expanded {
  max-height: 400px;
}

.card-details {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.program-card.expanded .card-details {
  opacity: 1;
  height: auto;
  margin-top: 15px;
}
.fancy-card {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('backgrounds/card-bg1.jpg') center/cover no-repeat;
  border-radius: 15px;
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-height: 120px;
}

.fancy-card.expanded {
  max-height: 400px;
}

.fancy-card .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  width: 30px;
  height: 30px;
  filter: brightness(1.2);
}

.card-details {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.fancy-card.expanded .card-details {
  opacity: 1;
  height: auto;
  margin-top: 15px;
}

.fancy-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}


.gradient-card {
  background: linear-gradient(to bottom right, #002b5c, #005aa7); /* SDSC blue tones */
  color: white;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  max-height: 120px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gradient-card.expanded {
  max-height: 400px;
}

.gradient-card .card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.gradient-card .card-details {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.gradient-card.expanded .card-details {
  opacity: 1;
  height: auto;
  margin-top: 15px;
}

/* Add the logo watermark */
.gradient-card::after {
  content: "";
  background: url('images/sdsc-logo.png') center/120px no-repeat;
  opacity: 0.05;
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 150px;
  height: 150px;
  pointer-events: none;
}
