/* =====================================================
   ABOUT PAGE SPECIFIC STYLES
===================================================== */

/* =====================================================
   ABOUT HERO SECTION
===================================================== */
.about-hero-section {
  position: relative;
  min-height: 100vh;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 48px;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(179deg,
      rgba(166, 44, 122, 0.7) 0%,
      rgba(166, 44, 122, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.about-hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
}

/* Add divider as pseudo-element at bottom */
.about-hero-section::after {
  content: '';
  position: absolute;
  bottom: -5px;
  width: 100%;
  height: 100px;
  background-image: url('../images/devider.svg');
  background-size: contain;
  background-position: center bottom;
  background-repeat: repeat-x;
  z-index: 10;
  pointer-events: none;
}

.about-badge {
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 24px;
  font-family: 'Marko One', cursive;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  display: inline-block;
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
}

.about-hero-box {
  background: linear-gradient(180deg, #EFD38B 0%, rgba(239, 211, 139, 0.6) 100%);
  border-radius: 34px;
  padding: 48px 40px;
  width: 100%;
  position: relative;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.about-numinda-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: -48px;
}

.about-hero-text-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 32px;
}

.about-hero-text-box p {
  font-family: 'Noto Sans Sinhala', sans-serif;
  color: #777777;
  font-size: clamp(10px, 1.5vw, 14px);
  margin-bottom: 10px;
  text-align: justify;
}

.about-hero-text-box p:last-child {
  margin-bottom: 0;
}

.about-hero-intro {
  font-size: clamp(10px, 1.8vw, 14px) !important;
}

.about-hero-intro strong {
  font-family: 'Noto Sans Sinhala', sans-serif;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  color: #777777;
}

/* =====================================================
   ABOUT CONTENT SECTION (තවදුරටත්)
===================================================== */
.about-content-section {
  padding: 80px 0 180px 0;
  position: relative;
}

/* Add divider as pseudo-element at bottom */
.about-content-section::after {
  content: '';
  position: absolute;
  bottom: -5px;
  width: 100%;
  height: 100px;
  background-image: url('../images/devider_3.svg');
  background-size: contain;
  background-position: center bottom;
  background-repeat: repeat-x;
  z-index: 10;
  pointer-events: none;
}

.about-content-title {
  font-family: 'Noto Sans Sinhala', sans-serif;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about-content-text {
  font-family: 'Noto Sans Sinhala', sans-serif;
  color: #777777;
  font-size: clamp(10px, 1.4vw, 14px);
  line-height: 1.8;
}

.about-content-text p {
  margin-bottom: 20px;
  text-align: justify;
}

.about-content-text p:last-child {
  margin-bottom: 0;
}

.about-content-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

/* =====================================================
   COUNTER SECTION
===================================================== */
.counter-section {
  background: linear-gradient(-1.61deg, rgba(16, 77, 177, 1) 0%, rgba(3, 56, 145, 1) 100%);
  padding: 80px 0 180px 0;
  position: relative;
  overflow: visible;
}

/* Top-left decorative SVG */
.counter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background-image: url('../images/counter_bg_before.svg');
  background-size: contain;
  background-position: top left;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

/* Add divider as pseudo-element at bottom */
.counter-section::after {
  content: '';
  position: absolute;
  bottom: -5px;
  width: 100%;
  height: 100px;
  background-image: url('../images/devider.svg');
  background-size: contain;
  background-position: center bottom;
  background-repeat: repeat-x;
  z-index: 10;
  pointer-events: none;
}

.counter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 56, 145, 0.3);
  z-index: 0;
}

/* Bottom-right decorative SVG */
.counter-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: url('../images/counter_bg_after.svg');
  background-size: contain;
  background-position: bottom right;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

.counter-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.counter-box {
  background: linear-gradient(101.54deg, rgba(142, 107, 18, 1) 0%, rgba(238, 210, 139, 1) 72.49%, rgba(142, 107, 18, 1) 100%);
  border-radius: 16px;
  border: 2px solid #dbc087;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(219, 192, 135, 0.4);
}

.counter-number {
  font-family: 'Marko One', cursive;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
}

.counter-label {
  font-family: 'Noto Sans Sinhala', sans-serif;
  font-size: clamp(14px, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  text-align: center;
}

/* =====================================================
   FAQ SECTION
===================================================== */
.faq-section {
  padding: 80px 0;
}

.faq-title {
  font-family: 'Noto Sans Sinhala', sans-serif;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.accordion {
  max-width: 1000px;
  margin: 0 auto;
}

.accordion-item {
  border: none;
  margin-bottom: 16px;
  overflow: hidden;
}

.accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-header {
  margin: 0;
  background: linear-gradient(90deg, #8E6B12 2.75%, #EED28B 98.74%, #8E6B12 109.73%, #C9AA5C 165.87%, #95731C 223.07%);
  border-radius: 8px;
  overflow: hidden;
}

.accordion-button {
  background: transparent;
  border: none;
  font-family: 'Noto Sans Sinhala', sans-serif;
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 700;
  color: #ffffff;
  padding: 20px 24px;
  width: 100%;
  text-align: left;
  position: relative;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background: rgba(239, 211, 139, 0.4);
  color: #4d3700;
}

.accordion-button:focus {
  box-shadow: none;
  outline: none;
}

.accordion-button::after {
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-collapse {
  background: transparent;
}

.accordion-body {
  padding: 21px 24px;
  font-family: 'Noto Sans Sinhala', sans-serif;
  font-size: clamp(10px, 1.4vw, 14px);
  line-height: 2;
  color: #4d3700;
  border-top: 1px solid rgba(255, 232, 119, 0.3);
  background: rgba(239, 211, 139, 0.40);
  margin-top: 10px;
  border-radius: 5px;
  overflow: hidden;
}

/* =====================================================
   RESPONSIVE STYLES
===================================================== */
@media (max-width: 991.98px) {
  .about-hero-section {
    padding-top: 100px;
    padding-bottom: 36px;
    min-height: auto;
  }

  .about-badge {
    top: 20px;
    left: 20px;
    font-size: 14px;
    padding: 10px 20px;
  }

  .about-hero-box {
    padding: 36px 28px;
    border-radius: 24px;
  }

  .about-hero-text-box {
    padding: 24px;
  }

  .about-hero-section::after {
    height: 150px;
  }

  .about-content-section {
    padding: 155px 0 50px 0;
  }

  .about-content-section::after {
    height: 150px;
  }

  .counter-section {
    padding: 155px 0 80px 0;
  }

  .counter-section::after {
    height: 150px;
  }

  .counter-box {
    min-height: 120px;
    padding: 24px 20px;
  }

  .faq-section {
    padding: 155px 0 50px 0;
  }
}

@media (max-width: 767.98px) {
  .about-hero-section {
    padding-top: 90px;
    padding-bottom: 28px;
  }

  .about-badge {
    top: 16px;
    left: 16px;
    font-size: 12px;
    padding: 8px 16px;
  }

  .about-hero-box {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .about-hero-text-box {
    padding: 20px;
  }

  .about-hero-section::after {
    height: 100px;
  }

  .about-content-section {
    padding: 130px 0 50px 0;
  }

  .about-content-section::after {
    height: 100px;
  }

  .counter-section {
    padding: 130px 0 50px 0;
  }

  .counter-section::after {
    height: 100px;
  }

  .counter-box {
    min-height: 100px;
    padding: 20px 16px;
  }

  .faq-section {
    padding: 130px 0 50px 0;
  }

  .accordion-button {
    padding: 16px 20px;
  }

  .accordion-button::after {
    right: 20px;
    font-size: 16px;
  }

  .accordion-body {
    padding: 16px 20px;
  }
}

@media (max-width: 575.98px) {
  .about-hero-section {
    padding-top: 80px;
  }

  .about-badge {
    top: 12px;
    left: 12px;
    font-size: 11px;
    padding: 6px 14px;
  }

  .about-hero-box {
    padding: 24px 16px;
    border-radius: 14px;
  }

  .about-hero-text-box {
    padding: 16px;
  }

  .about-hero-section::after {
    height: 80px;
  }

  .about-content-section {
    padding: 120px 0 50px 0;
  }

  .about-content-section::after {
    height: 80px;
  }

  .counter-section {
    padding: 120px 0 50px 0;
  }

  .counter-section::after {
    height: 80px;
  }

  .counter-wrapper {
    gap: 12px;
  }

  .counter-box {
    min-height: 90px;
    padding: 16px 12px;
  }

  .faq-section {
    padding: 120px 0 50px 0;
  }

  .accordion-button {
    padding: 14px 18px;
    padding-right: 44px;
  }

  .accordion-body {
    padding: 14px 18px;
  }
}