/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 76px;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 700;
    color: #00843D !important;
}

.navbar-logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    margin: 0 10px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00843D;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}
.navbar .nav-link.dropdown-toggle::after {
    display: none !important;
}

.btn-outline-success {
    border-radius: 20px;
    padding: 8px 20px;
    border-color: #00843D;
    color: #00843D;
}

.btn-outline-success:hover {
    background-color: #00843D;
    color: white;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 76px);
    position: relative;
}

.hero .carousel {
    height: calc(100vh - 76px);
}

.hero .carousel-item {
    height: calc(100vh - 76px);
}

.hero-slide {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), center/cover no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    color: #4CAF50;
    text-align: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, white, transparent);
    z-index: 1;
}

.hero .carousel-inner,
.hero .carousel-item {
    height: 100%;
}

.hero .carousel-item .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* About Section */
.about {
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.about .lead {
    color: #555;
    line-height: 1.8;
}

/* Services Section */
.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #00843D;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 3rem;
    color: #00843D;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: #333;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    background-color: #f8f9fa;
    padding: 5rem 0;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, transparent);
}

.cta h2 {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #333;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    position: relative;
}

.footer h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #00843D;
}

.footer p {
    color: #aaa;
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 15px;
    opacity: 0.8;
}

.social-links a:hover {
    color: #00843D !important;
    opacity: 1;
    transform: translateY(-3px);
}

/* Buttons */
.btn-success {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #00843D;
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,132,61,0.3);
    background-color: #006e33;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .text-md-end {
        text-align: center !important;
        margin-top: 2rem;
    }

    .social-links {
        margin-top: 1rem;
    }

    .social-links a {
        margin: 0 10px;
    }
}

/* Member Cards */
.member-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #00843D;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.member-card:hover::before {
    transform: scaleX(1);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.member-card img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.member-card .card-body {
    padding: 1.5rem;
}

.member-card h5 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
}

.member-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .member-card, .hero h1, .hero .lead {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* New alternating member layout */
.member-alternate {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  transition: box-shadow 0.3s ease;
}
.member-alternate.even {
  flex-direction: row-reverse;
}
.member-alternate img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  flex-shrink: 0;
}
.member-bio {
  padding: 0 2rem;
  max-width: 600px;
}
.member-bio h5 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #333;
}
.member-bio p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .member-alternate {
    flex-direction: column !important;
    text-align: center;
  }
  .member-alternate.even {
    flex-direction: column !important;
  }
  .member-alternate img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }
  .member-bio {
    padding: 0;
    max-width: 100%;
  }
}

/* Highlight effect for member on hover */
.member-alternate.highlight {
  box-shadow: 0 0 15px 3px #00843D;
  border-radius: 15px;
  transition: box-shadow 0.3s ease;
}

/* Style for hr between members */
hr {
  border: none;
  border-top: 1px solid #00843D;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 132, 61, 0.4);
}

/* Carousel Styling for About Section */
.about .carousel {
  max-width: 800px;
  margin: 0 auto;
}

.about .carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  min-height: 300px;
}

.about .carousel-inner .row {
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.about .carousel-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #333;
  text-align: center;
}

.about .carousel-item .lead {
  line-height: 1.3;
  word-break: break-word;
  white-space: normal;
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
  hyphens: auto;
  padding: 0 0.5rem;
}

.about .carousel-item ul {
  max-height: 250px;
  overflow-y: auto;
  padding-left: 1.5rem;
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.about .carousel-item ul li {
  margin-bottom: 0.3rem;
}

.about .carousel-indicators {
  bottom: -60px;
}

.about .carousel-indicators [data-bs-target] {
  background-color: #00843D;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.5;
}

.about .carousel-indicators .active {
  background-color: #006e33;
  opacity: 1;
}

.about .carousel-control-prev,
.about .carousel-control-next {
  width: 10%;
  opacity: 0.8;
}

.about .carousel-control-prev-icon,
.about .carousel-control-next-icon {
  background-image: none;
  width: auto;
  height: auto;
  border-radius: 50%;
  background-color: transparent;
}

.about .carousel-control-prev:hover,
.about .carousel-control-next:hover {
  opacity: 1;
}

/* Fix for text rendering in carousel */
.carousel-item .lead {
  line-height: 1.4;
  word-break: break-word;
  white-space: normal;
}
.carousel-control-prev .fs-1,
.carousel-control-next .fs-1 {
    color: #28a745 !important;
    background: #fff;
    border-radius: 50%;
    padding: 0.25em 0.6em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Final smooth fade fix for About Carousel (no blank slide) */
#aboutCarousel.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#aboutCarousel.carousel-fade .carousel-item.active,
#aboutCarousel.carousel-fade .carousel-item-next.carousel-item-start,
#aboutCarousel.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  position: relative;
  z-index: 1;
}

#aboutCarousel.carousel-fade .active.carousel-item-start,
#aboutCarousel.carousel-fade .active.carousel-item-end {
  opacity: 0;
  position: absolute;
  z-index: 0;
}

/* Multi-step form styles */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
}
/* ...existing code... */

.hero-slide {
    position: relative; /* needed so caption can be positioned inside slide */
    background-size: cover;
    background-position: center;
    min-height: 60vh;
}

/* bottom-left caption */
.hero-caption {
    position: absolute;
    left: 30px;
    bottom: 30px;
    max-width: 420px;
    background: rgba(255,255,255,0.85); /* subtle panel so text is readable */
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 50px;
}

/* smaller heading / text already used (h4 + .small) */
/* responsive tweaks */
@media (max-width: 768px) {
    .hero-slide { min-height: 40vh; }
    .hero-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        padding: 12px;
    }
}


/* State chapter content image styling (tweaked for cleaner look) */
#stateInfo { display: none; margin-top: 1.5rem; }
#stateInfo img {
  height: 250px;
  object-fit: cover;
}
#stateText {
  overflow: visible;
  line-height: 1.7;
  font-size: 0.98rem;
}

/* images inserted inline and floated left/right */
.state-img {
  max-width: 38%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  margin-bottom: 1rem;
  display: block;
}
.state-img.img-left {
  float: left;
  margin: 0 20px 16px 0;
}
.state-img.img-right {
  float: right;
  margin: 0 0 16px 20px;
}

/* keep paragraphs readable and clear floats after content */
.state-paragraph {
  margin-bottom: 1rem;
}

/* clearfix to make sure container grows with floats */
#stateText::after {
  content: "";
  display: table;
  clear: both;
}

/* responsive: stack images under paragraphs on small screens */
@media (max-width: 768px) {
  .state-img { float: none; max-width: 100%; margin: 1rem 0; }
  #stateText { padding: 0 0.5rem; }
}