body h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  font-family: oxygen;
}

.hero {padding-top: 120px;}
.hero h1 {
    text-align: center;
    color: #5BA62A;
    font-size: 56px;
    margin-top: 0.75em;
    font-weight: bold;
}

.card-container {
  display: flex;
  gap: 20px;
  width: 90%;
  max-width: 1200px;
  transition: all 0.5s ease;
}

.card-container {
  display: flex;
  position: relative;
  gap: 4em;
  width: 100%;
  margin: auto;
  max-width: 1200px;
  transition: all 0.5s ease;
  margin-top: 3em;
}

.card {
  flex: 1;
  background: #f9fff2 !important;
  padding: 4em;
  border: none !important;
  border-radius: 50px !important;
  box-shadow: 0px 0px 15px 2px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.card p {font-weight: bold;}
/* Expand selected card */
.card.expand {
  flex: 1 0 100%;
  position: relative; /* back to flow */
  z-index: 2;
}

/* Shrink and fade out */
.card.shrink {
  position: absolute;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  pointer-events: none;
}

.section-two p {
    color: #224B73;
    font-size: 18px;
    width: 92%;
    margin: auto;
    margin-top: 3em;
    margin-bottom: 1em;
}


.section-three {
  padding-top: 50px;
}

.section-three .title {
    text-align: center;
    color: #5BA62A;
    font-size: 56px;
    margin-bottom: 1em;
}
.section-three .box {
  border-radius: 50px;
  padding: 4em;
  background: #ffffff;
  box-shadow: 0px 0px 75px 2px rgba(0,0,0,0.1);
  margin-bottom: 3.5em;
  display: flex;
  align-items: center;
}

.section-three .content-right {
    text-align: right;

}

.section-three .content h1 {
  color: #5BA62A;
  font-weight: 500;
  margin-bottom: 0;
}

.section-three h3 {
  color: #5BA62A;
  font-weight: 300;
  margin-bottom: 1.35em;
}

.section-three p {
  color: #224B73;
  font-size: 18px;
  margin-bottom: 1.25em;
}

.section-three img {
  display: flex;
  margin: auto;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  transition: all 0.3s ease;
}
.card-container {
            display: flex;
            gap: 20px;
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .card {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            flex: 1;
            text-align: center;
            border: 2px solid transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Normal state - icon and title section */
        .icon-title-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card:hover {
            border-color: #007bff;
            box-shadow: 0 4px 12px rgba(0,123,255,0.15);
        }

        .card img {
            width: 60px;
            height: 60px;
            transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                        height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card-title {
            font-weight: 600;
            margin: 0;
            color: #333;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card-description {
            margin-top: 15px;
            color: #666;
            line-height: 1.6;
            opacity: 0;
            max-height: 0;
            overflow: hidden;
            transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Hidden state - simple display none, no fancy transitions */
        .card.hidden {
            display: none;
        }

        /* Show all cards in normal state */
        .card:not(.hidden):not(.expanded) {
            display: flex;
        }

        /* Expanded state */
        .card.expanded {
            flex: none;
            width: 100%;
            text-align: left;
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            gap: 20px;
            padding: 30px;
            background: #fff;
            box-shadow: 0 8px 24px rgba(0,0,0,0.1);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Left section with icon and title in expanded state */
        .card.expanded .icon-title-section {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
            flex-shrink: 0;
            min-width: 200px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card.expanded img {
            width: 160px;
            height: 160px;
            transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                        height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                        
        }

        .card.expanded .card-title {
            margin: 0;
            font-size: 1.2em;
            text-align: left;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .header .navbar-nav ul li a.active:hover {
  color: #ffffff !important;
  background: #5ca62acc;
  border-radius: 50px;
}

        .card.expanded .card-description {
            opacity: 1;
            max-height: 500px;
            margin-top: 0;
            flex: 1;
            transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card.expanded .card-title {
            margin: 0;
            font-size: 1.2em;
        }

        .card.expanded .card-description {
            opacity: 1;
            max-height: none;
            margin-top: 0;
        }

        /* Layout wrapper for expanded content */
        .card-content-wrapper {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        /* Normal state - content is inline */
        .card:not(.expanded) .card-content-wrapper {
            display: block;
        }
.card {
  flex: 1 1 250px;
  max-width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease;
  opacity: 1;
  transform: scale(1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.card img {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
  transition: all 0.5s ease;
}

.card.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.card.expanded {
  width: 100%;
  max-width: none;
  height: auto;
  background-color: #f9fff1;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  z-index: 1; /* lower z-index, no overlap */
  position: relative; /* instead of absolute */
  transition: all 0.5s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}


.card.expanded[data-position="left"] {
  flex-direction: row;
  text-align: left;
}

.card.expanded[data-position="right"] {
  flex-direction: row-reverse;
  text-align: right;
}

.card.expanded[data-position="center"] {
  flex-direction: column;
  text-align: center;
}

.card-description {
  opacity: 0;
  max-width: 400px;
  transition: opacity 0.5s ease;
}

.card.expanded .card-description {
  opacity: 1;
}

.card-title {
  font-weight: bold;
  margin-bottom: 10px;
}


@media (max-width: 991px) {
  .hero {padding-top: 70px;}
  .hero h1 {font-size: 36px;}
  .card-container {
    display: grid;
    width: 80%;
    gap: 2em;
  }
  .card {padding: 2em 1em 1em 1em;}
  .section-two p {margin-top: 1em;}
  .section-two .description {
    margin-top: 3em;
    font-size: 15px;
    font-weight: 600;
  }
  .section-three .box {
    margin-inline: 0.5em;
    padding: 2.5em 1em;
  }
  .section-three .title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 1em;
  }
  .section-three .content h1 {font-size: 18px;}
  .section-three p {
    font-size: 14px;
    margin-bottom: 2em !important;
  }
  .section-three img {width: 100%;}
}

.service-block {
  display: flex;
  align-items: center;
  background-color: #f8fff0; /* light greenish background */
  border-radius: 30px;
  padding: 40px;
  margin: 40px auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  gap: 40px;
}

.service-icon {
  flex: 1;
  text-align: center;
}

.service-icon img {
  width: 120px;
  height: auto;
}

.service-icon h2 {
  font-size: 18px;
  font-weight: 700; /* Bold */
  margin-top: 15px;
  color: #333;
}

.service-description {
  flex: 2;
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}
