:root {
  --color-gold: #feb31a;
  --color-blue: #004178;
}

html,
body {
  overflow-x: hidden;
}

.color-gold {
  color: var(--color-gold) !important;
}

.bg-gold {
  background-color: var(--color-gold) !important;
}

.color-blue {
  color: var(--color-blue) !important;
}

:root {
  --navbar-height: 72px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 11000;
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.3, 1),
    box-shadow 200ms ease;
  transform: translateY(0);
}

.navbar.navbar-hidden {
  transform: translateY(-110%);
  box-shadow: none;
}

.navbar.navbar-visible {
  transform: translateY(0);
}

/* When navbar is fixed, give the page top spacing equal to navbar height */
body.has-fixed-navbar {
  padding-top: var(--navbar-height);
}

.title-content {
  line-height: 1.2;
  word-wrap: break-word;
}

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
  .title-content {
    font-size: 2rem;
    max-width: 650px;
  }
}

/* Handphone (≤ 576px) */
@media (max-width: 576px) {
  .title-content {
    font-size: 2rem;
    max-width: 90%;
  }
}

.navbar {
  padding: 0.75rem 0;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
}

.navbar-brand img {
  height: 45px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text .brand-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-blue);
  margin: 0;
}

.brand-text .brand-tagline {
  font-size: 0.75rem;
  color: var(--color-blue);
  margin: 0;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: var(--color-blue) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-gold) !important;
}

.nav-link.active {
  color: var(--color-gold) !important;
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 4px;
}

/* Mobile menu styles */
@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 1rem;
  }

  .navbar-nav {
    gap: 0;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    border-left: 3px solid transparent;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    border-left-color: var(--color-gold);
    background-color: rgba(254, 179, 26, 0.05);
  }
}

.navbar-toggler {
  border-color: none !important;
  padding: 0.5rem 0.75rem;
  border: none !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

/* Responsive logo text */
@media (max-width: 576px) {
  .brand-text .brand-name {
    font-size: 0.9rem;
  }

  .brand-text .brand-tagline {
    font-size: 0.7rem;
  }

  .navbar-brand img {
    height: 38px;
  }
}

/* button style */
.btn-yayasan-primary {
  background-color: var(--color-gold);
  border-color: none;
  border: none;
  font-weight: 600;
  color: #004178;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
}

.btn-yayasan-primary:hover {
  background-color: #e4a117;
  transition: all 0.3s ease;
}

/* Program Section Styles */
.program-wrapper {
  position: relative;
  padding: 2rem 0;
  z-index: auto;
}

.program-horizontal-bg {
  position: absolute;
  width: 100%;
  height: 180px;
  top: 60%;
  left: 0;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #004178 0%, #feb31a 100%);
  border-radius: 12px;
  z-index: 1;
}

@media (max-width: 1024px) {
  .program-horizontal-bg {
      display: none !important;
  }
}


.program-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.program-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 2rem;
  z-index: 2;
}

.program-circle-border {
  border-radius: 50%;
  padding: 0.6rem;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #004178, #feb31a) border-box;
  border: 4px solid transparent;
  z-index: 3;
  position: relative;
}
.program-circle {
  position: relative;
  width: 320px;
  height: 320px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 0;
  border: 1px solid #ede8e8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.program-icon {
  margin-bottom: 1rem;
}

.program-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.program-content {
  text-align: center;
}

.program-content h5 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.program-title {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.program-content .btn-yayasan-primary {
  padding: 0.5rem 1.25rem;
}

.program-bg {
  position: absolute;
  width: 120px;
  height: 280px;
  top: 50%;
  transform: translateY(-56%);
  z-index: 1;
  border-radius: 12px;
}

/* Gallery / Activity Card Styles */
.gallery-section .swiper {
  padding: 1rem 0 2rem;
}

.description-clamp {
  max-width: 520px;          
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;     
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}


.acara-section .swiper {
  padding: 1rem 0 2rem;
}

.activity-card {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.12);
}

.activity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 30%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.activity-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  color: #fff;
}

.activity-date {
  font-size: 0.9rem;
  opacity: 0.95;
  margin-bottom: 0.25rem;
}

.activity-title {
  font-size: 1.5rem;
  margin: 0 0 0.8rem 0;
  font-weight: 700;
}

.btn-activity {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: var(--color-blue);
  padding: 0.45rem 0.9rem;
  font-weight: 600;
}

.btn-activity .btn-arrow {
  font-weight: 700;
}

.swiper-button-prev,
.swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.05);
  color: var(--color-blue);
  border: 1px solid #e5eaf2;
  color: var(--color-blue);
  z-index: 99999 !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: #f0f0f0;
  transition: all 0.3s ease;
}

.swiper-button-prev::after,
.swiper-button-next::after,
.swiper-button-prev::before,
.swiper-button-next::before {
  display: none !important;
  content: none !important;
}

.swiper-button-prev,
.swiper-button-next {
  z-index: 99999 !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.event-image-img {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 2 / 1; 
  object-fit: cover;
  border-radius: 12px;
}


@media (max-width: 1024px) {
  .acara-section .row {
    flex-direction: row;
  }

  .event-image-img {
    max-width: 480px;
    margin: 0 auto;
    border-radius: 8px;
  }

  .event-content {
    margin-top: 8rem;
    text-align: left;
  }
}



@media (max-width: 768px) {
  .acara-section .row {
    flex-direction: column;
  }

  .event-image-img {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
  }

  .event-content {
      margin-top: 4rem;
    text-align: left;
  }
}



.site-footer {
  background: var(--color-blue);
  color: #ffffff;
  padding: 2rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer .footer-logo img {
  height: 160px;
  width: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

.site-footer .footer-address {
  line-height: 1.5;
  opacity: 0.95;
}

.site-footer .footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0.75rem 0 1rem;
  max-width: 300px;
}

.site-footer .social-icons {
  gap: 0.5rem;
}

.site-footer .social-icons i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 0.5rem;
  color: #fff;
  transition: background 0.3s ease;
}

.site-footer .social-icons i:hover {
  background: rgba(255, 255, 255, 0.2);
}

.site-footer .footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Testimonial Card Styles */
.testimonial-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.quote-icon {
  margin-bottom: 1.5rem;
}

.quote-icon img {
  width: 32px;
  height: 32px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-initial {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--color-blue);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.875rem;
  color: #888;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 1.5rem;
  }
}

/* Visi Misi Section Styles */
.visi-misi-section {
  position: relative;
}

.visi-misi-section .container {
  position: relative;
  z-index: 2;
}

.misi-container {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02);
  border: 1px solid #e5eaf2;
}

.misi-item {
  padding: 1rem;
}

.misi-number {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.misi-divider {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .visi-title {
    font-size: 2rem;
  }

  .visi-text {
    font-size: 1rem;
  }

  .misi-container {
    margin: 0 1rem;
  }

  .misi-item {
    margin-bottom: 1.5rem;
  }
}

.divider-right {
  position: absolute;
  right: 0;
  top: 20%;
  width: 3px !important;
  height: 60%;
  background-color: var(--color-gold);
}

.nilai-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.nilai-header {
  background: linear-gradient(135deg, var(--color-blue) 50%, var(--color-gold));
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.nilai-content {
  background: #ffffff;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  padding: 1.8rem;
  text-align: center;
  line-height: 1.7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  width: 100%;
  max-width: 100%;
  color: var(--color-blue);
  flex-grow: 1;
}

@media (max-width: 768px) {
  .nilai-header {
    padding: 1.5rem 1.25rem;
  }

  .nilai-title {
    font-size: 1.1rem;
  }

  .nilai-content {
    padding: 1.5rem 1.25rem;
  }

  .nilai-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* our team */
.team-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  position: relative;
  padding: 1rem;
}

.team-wrapper::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #0a74da;
  top: calc(1.5rem + 6px);
  left: 50%;
  transform: translateX(calc(-53% - 8px));
  z-index: 1;
}

.team-circle {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 8px solid var(--color-blue);
  display: flex;
  z-index: 2;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.team-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.programs-container {
  width: 100%;
}

.program-section {
  width: 100%;
  position: relative;
}

.programs-container .program-section:nth-of-type(odd) .row {
  flex-direction: row;
}

.programs-container .program-section:nth-of-type(odd) .program-image {
  text-align: end;
}

.programs-container .program-section:nth-of-type(even) .row {
  flex-direction: row-reverse;
}

.programs-container .program-section:nth-of-type(even) .program-image {
  text-align: start;
}

.photo-stack {
  position: relative;
  display: inline-block;
}

.photo {
  width: 85%;
  border-radius: 15px;
}

.programs-container .program-section:nth-of-type(odd) .photo-front {
  position: relative;
  transform: rotate(3deg);
  z-index: 2;
}

.programs-container .program-section:nth-of-type(odd) .photo-back {
  position: absolute;
  top: -80px;
  left: -24px;
  transform: rotate(-6deg);
  z-index: 0;
}

.programs-container .program-section .photo-front {
  position: relative;
  transform: rotate(-3deg);
  z-index: 2;
}

.programs-container .program-section:nth-of-type(even) .photo-back {
  position: absolute;
  top: -80px;
  right: -24px;
  left: auto;
  transform: rotate(6deg);
  z-index: 0;
}

@media (max-width: 768px) {
  .photo {
    width: 90%;
  }

  .programs-container .program-section:nth-of-type(odd) .photo-back {
    top: -20px;
    left: 15px;
  }

  .programs-container .program-section:nth-of-type(even) .photo-back {
    top: -20px;
    right: 15px;
  }
}

@media (max-width: 576px) {
  .photo {
    width: 95%;
  }

  .programs-container .program-section:nth-of-type(odd) .photo-back {
    top: -15px;
    left: 10px;
  }

  .programs-container .program-section:nth-of-type(even) .photo-back {
    top: -15px;
    right: 10px;
  }
}

@media (max-width: 767.98px) {
  .programs-container .program-section:nth-of-type(odd) .row,
  .programs-container .program-section:nth-of-type(even) .row {
    flex-direction: column !important;
  }

  .programs-container .program-section:nth-of-type(odd) .program-image,
  .programs-container .program-section:nth-of-type(even) .program-image {
    text-align: center !important;
  }

  .programs-container .program-section:nth-of-type(odd) .photo-front,
  .programs-container .program-section:nth-of-type(even) .photo-front {
    transform: rotate(3deg);
  }

  .programs-container .program-section:nth-of-type(odd) .photo-back,
  .programs-container .program-section:nth-of-type(even) .photo-back {
    left: 10px;
    right: auto;
    transform: rotate(-6deg);
  }
}

.accordion-button:not(.collapsed) .fa-chevron-down {
  transform: rotate(180deg);
}

.accordion-button::after {
  display: none;
}

.accordion-button:focus {
  box-shadow: none;
}

/* Style untuk button saat expanded */
.accordion-button:not(.collapsed) {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  border-radius: 12px 12px 0 0 !important;
}

/* Style untuk button saat collapsed */
.accordion-button.collapsed {
  border-radius: 12px !important;
}

.accordion-button .feather-chevron-down {
  transition: transform 0.3s ease;
}
.accordion-button:not(.collapsed) .feather-chevron-down {
  transform: rotate(180deg);
}
