body{
    background: url('../images/home/about-bg.jpg') no-repeat center/cover;
}

body.modal-open {
    overflow: hidden;
}

.hero {
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Circle navigation container */
.circle-container {
    flex: 1;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 80px;
}

/* Each circle */
.circle {
  position: relative;
  width: 130px;
  height: 130px;
  background-color: #2E7D32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.circle-icon {
    width: 48%;
    height: 48%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* makes colored PNGs white */
    transition: transform .35s ease, filter .35s ease;
}

/* Text (hidden by default, appears on hover) */
.circle span {
  position: absolute;
  bottom: -35px;
  font-size: 1rem;
  color: #333;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  font-weight: 600;
}

/* Hover effects */
.circle:hover {
  background-color: #47aa4c;
  transform: translateY(-7px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.circle:hover span {
  opacity: 1;
  transform: translateY(0);
}


/* Savings Section */
.savings{
    height: auto;
    padding: 60px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.savings .savings-content{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.savings .savings-content .savings-header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.savings .savings-content .savings-header .savings-title{
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
}

.savings .savings-content .savings-header .savings-description{
    color: #222;
    text-align: center;
}

.savings .savings-content .savings-card-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.savings .savings-content .savings-card-container .group-row{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
}

.savings .savings-content .savings-card-container .group-row .savings-card{
    flex: 1 1 calc(50% - 20px);
    height: 160px;
    perspective: 1000px;
    cursor: pointer;
}

.savings .savings-content .savings-card-container .group-row .savings-card .card-inner {
    position: relative;
    color: #fff;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.savings .savings-content .savings-card-container .group-row .savings-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.savings .savings-content .savings-card-container .group-row .savings-card .card-inner .card-front,
.savings .savings-content .savings-card-container .group-row .savings-card .card-inner .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    backface-visibility: hidden;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.savings-card .card-inner .card-front{
    background: url('../images/services/savings.png') no-repeat center center/cover;
}

.savings .savings-content .savings-card-container .group-row .savings-card .card-inner .card-back {
  background: #fff;
  border: 4px solid #3A7F4F;
  color: #3A7F4F;
  transform: rotateY(180deg);
  text-align: center;
}

.savings .savings-content .savings-card-container .group-row .savings-card .savings-name{
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    padding: 10px 20px;
    background: rgba(0,0,0,0.35);      /* optional dark overlay for better readability */
    border-radius: 6px;
}


/* Loans Section */
.loans {
  height: auto;
  padding: 100px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loans .loans-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.loans .loans-content .loans-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.loans .loans-content .loans-header  .loans-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
}

.loans .loans-content .loans-header .loans-description {
    color: #222;
    text-align: center;
}

.loans-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.loans-carousel {
    overflow: hidden;
    border-radius: 16px;
    width: 100%;
}

.loans-wrapper {
    display: flex;
    gap: 24px;
    padding: 20px 10px;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.loans-wrapper::-webkit-scrollbar {
    display: none;
}

/* Loan Card Styling */
.loans-item {
    min-height: 250px;
    min-width: 300px;
    flex: 0 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loan-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    border: 2px solid rgba(46, 125, 50, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.loan-card:hover {
    transform: translateY(-10px);
    border-color: #2E7D32;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.loans-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a5d1a;
    margin: 0 0 12px 0;
}

.loan-max {
    font-size: 1.1rem;
    color: #333;
    margin: 8px 0;
    font-weight: 600;
}

.loan-interest {
    display: inline-block;
    background: #e6f7e6;
    color: #1a5d1a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 12px;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #1a5d1a;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -60px; }
.next-btn { right: -60px; }


/* Benefits Section */
.benefits {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0 20px;
}

.benefits .benefits-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
    max-width: 1200px;
}

.benefits .benefits-content .benefits-hex-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.benefits .benefits-content .benefits-hex-grid .hex-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.hex-row:nth-child(1), .hex-row:nth-child(3) {
    justify-content: flex-start;
    padding-left: 85px;
}
.hex-row:nth-child(2) {
    justify-content: flex-start;
    align-items: center;
    gap: 0 !important;
    padding-left: 0;
}

.hex-wrapper {
    width: 150px;
    aspect-ratio: 1 / 1;
    background: #fff; /* border color */
    clip-path: polygon(
        50% 0%,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );
    padding: 4px; /* border thickness */
}

.hex {
    width: 100%;
    height: 100%;
    background: #3A7F4F;
    clip-path: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s ease;
}

.benefits .benefits-content .benefits-hex-grid .hex-row .hex:hover {
    background: #316C43;
}

.benefits .benefits-content .benefits-hex-grid .hex-row .hex img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.hex.active,
.hex:active {
    background: #33b458 !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(46, 107, 63, 0.6);
}

/* Benefits info styling */
.benefits-info {
    width: 200px;
    padding: 0 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefits-info.show {
    opacity: 1;
}

.benefits-info .benefit-title {
    color: #2E6B3F;
}

.benefits .benefits-content .benefits-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.benefits .benefits-content .benefits-text .benefits-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.benefits .benefits-content .benefits-text .benefits-description {
  color: #222;
}


/* Others Section */
.other-services {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 70px;
}

.other-services .other-services-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.other-services .other-services-content .section-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 20px;
}

.other-services .other-services-content .section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.other-services .other-services-content .section-header .section-description {
    color: #222;
}

.other-services .other-services-content .services-body {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.other-services .other-services-content .services-body .services-labels {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    font-weight: 500;
    color: #111;
    border-right: 2px solid #000;
    padding-right: 28px;
    gap: 50px;
    cursor: pointer;
}

.other-services .other-services-content .services-body .services-labels .tab {
    position: relative;
    transition: color 0.3s;
}

.other-services .other-services-content .services-body .services-labels .tab.active {
    color: #2E7D32;
    font-weight: 700;
}

.other-services .other-services-content .services-body .services-labels .tab.active::after {
    content: '';
    position: absolute;
    right: -34px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #2E7D32;
    border-radius: 50%;
}

.other-services .other-services-content .services-body .services-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
    justify-content: flex-start;
}

.other-services .other-services-content .services-body .service-item {
    width: calc(33.333% - 20px);
    height: 230px; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    color: white;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.other-services .service-item.seminar{
    background: url('../images/services/seminar.jpg') center / cover no-repeat;
}

.other-services .service-item.livelihood{
    background: url('../images/services/livelihood.jpg') center / cover no-repeat;
}

.other-services .service-item.community{
    background: url('../images/services/community-service.jpg') center / cover no-repeat;
}

.other-services .service-item.financial{
    background: url('../images/services/financial-literacy.jpg') center / cover no-repeat;
}

.other-services .service-item.educational{
    background: url('../images/services/educational-assistance.jpg') center / cover no-repeat;
}

.other-services .service-item.products{
    background: url('../images/services/members-product.jpg') center / cover no-repeat;
}

.other-services .service-item.puregold{
    background: url('../images/services/puregold.jpg') center / cover no-repeat;
}

.other-services .service-item.sm{
    background: url('../images/services/sm-gift.jpg') center / cover no-repeat;
}

.other-services .service-item.pmpc{
    background: url('../images/services/purchase-card.jpg') center / cover no-repeat;
}

.other-services .service-item.rice{
    background: url('../images/services/rice.png') center / cover no-repeat;
}

.other-services .service-item.turmeric{
    background: url('../images/services/turmeric.png') center / cover no-repeat;
}

.other-services .service-item.honey{
    background: url('../images/services/pure-honey.png') center / cover no-repeat;
}

.other-services .service-item.peanut{
    background: url('../images/services/peanut-butter.png') center / cover no-repeat;
}

.other-services .service-item.dishwashing{
    background: url('../images/services/dishwashing-liquid.png') center / cover no-repeat;
}

.other-services .service-item.conditioner{
    background: url('../images/services/fabric-conditioner.png') center / cover no-repeat;
}

.other-services .service-item.detergent{
    background: url('../images/services/liquid-detergent.png') center / cover no-repeat;
}

.other-services .other-services-content .services-body .service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-item h3{
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    padding: 10px 20px;
    background: rgba(0,0,0,0.35);
}

.other-services .other-services-content .services-body .service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
