/* ===== CTA Section Design ===== */
/* Designed for visual impact and clear hierarchy */
.cta-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #f9f6fb 0%, #f1ebf5 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(158, 29, 93, 0.1);
  border-radius: 50%;
  filter: blur(20px);
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: rgba(59, 27, 114, 0.1);
  border-radius: 50%;
  filter: blur(20px);
}

.container.cta-buttons {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Primary Button Design */
.cta-btn.primary {
  background: #9e1d5d;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(158, 29, 93, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-btn.primary:hover {
  background: #87184f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(158, 29, 93, 0.4);
}

/* Secondary Button Design */
.cta-btn.secondary {
  background: #3b1b72;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn.secondary:hover {
  background: #2c1355;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 27, 114, 0.3);
}

/* Micro-interactions */
.cta-btn:active {
  transform: translateY(1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container.cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* Accessibility Features */
.cta-btn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}


/* Mobile Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: relative;
    background-color: var(--primary-color);
}

.logo {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    margin-left: 2rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 100;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links li a {
        margin: 0;
        padding: 1rem;
        display: block;
    }
}
.navbar .nav-links li a {
    position: relative;
    color: white;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.navbar .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #c19a5b;
    transition: width 0.3s ease;
}

.navbar .nav-links li a:hover::after {
    width: 100%;
}


.navbar .nav-links li a.active::after {
    width: 100%;
}
/* Departments Section */
#departments {
  padding: 4rem 1rem;
  background-color: #f8f9fa;
}

#departments .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

#departments h2 {
  font-size: 2.5rem;
  color: #3b1b72;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

#departments h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #9e1d5d;
}

.department-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.department {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.department:hover {
  transform: translateY(-5px);
}

.department i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #3b1b72;
}

.department h3 {
  font-size: 1.25rem;
  color: #333;
}

/* Bible Study Section */
#biblestudy {
  padding: 4rem 1rem;
  background-color: #3b1b72;
  text-align: center;
}

#biblestudy .container {
  max-width: 800px;
  margin: 0 auto;
}

#biblestudy h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 2rem;
}

#bookingForm {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
}

#bookingForm input {
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

#bookingForm button {
  padding: 1rem 2rem;
  background-color: #9e1d5d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#bookingForm button:hover {
  background-color: #801444;
}

#responseMsg {
  color: white;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .department-list {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  #departments h2,
  #biblestudy h2 {
    font-size: 2rem;
  }

  #bookingForm {
    padding: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .department-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Mobile-First Approach - Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

:root {
  --primary: #9e1d5d;
  --light: #fff;
  --dark: #1e1e1e;
  --accent: #3b1b72;
  --text-primary: #222;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #fdfdfd;
  color: var(--text-primary);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--light);
  border-bottom: 2px solid var(--primary);
  z-index: 1000;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.nav-links {
  display: none;
  flex-direction: column;
  width: 100%;
  background: var(--light);
  position: absolute;
  top: 100%;
  left: 0;
}

.nav-links.show {
  display: flex;
}

.nav-links li {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  margin-top: 60px;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* Department Grid */
.department-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Founder Section */
.founder-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.founder-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Forms */
form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

input,
button {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Media Queries */
@media (min-width: 576px) {
  .department-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    width: auto;
    gap: 1.5rem;
  }

  .nav-links li {
    padding: 0;
    border-bottom: none;
  }

  .department-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .founder-container {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 992px) {
  .department-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }
}

/* Touch Target Optimization */
button,
a,
input[type="checkbox"],
input[type="radio"] {
  min-height: 44px;
  min-width: 44px;
}

/* Performance Optimization */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 0.75rem;
}

/* Mobile-Specific Enhancements */
@media (max-width: 767px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    -webkit-tap-highlight-color: transparent;
  }

  .section {
    padding: 3rem 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .slider-item p {
    font-size: 0.9rem;
    padding: 0 1rem;
  }
}

/* Landscape Orientation Handling */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 150vh;
  }
}
