/* =========================================
   KOMPONEN: TOMBOL
   ========================================= */

.hero-cta-button {
  display: inline-block;
  background-color: #047d78;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(4, 125, 120, 0.2);
  -webkit-transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  -moz-transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  -ms-transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  -o-transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-cta-button:hover {
  background-color: #035f5b;
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(4, 125, 120, 0.3);
}

.hero-cta-button.secondary {
  background-color: transparent;
  color: #047d78;
  border: 2px solid #047d78;
  box-shadow: none;
}

.hero-cta-button.secondary:hover {
  background-color: #e0f2f1; /* Light green hover */
  color: #035f5b;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(4, 125, 120, 0.1);
}

.btn-animated {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #047d78;
  border: 2px solid #047d78;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.btn-animated:hover {
  background-color: #047d78;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(4, 125, 120, 0.2);
}

.btn-announcement {
  display: inline-block;
  padding: 8px 22px;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #047d78;
  background-color: transparent;
  border: 2px solid #047d78;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-announcement:hover {
  background-color: #047d78;
  color: #ffffff;
}

.service-link {
  display: inline-block;
  padding: 10px 25px;
  font-weight: 600;
  color: #ffffff;
  background-color: #047d78;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  align-self: center;
  box-shadow: 0 4px 10px rgba(4, 125, 120, 0.2);
  margin-top: auto;
  gap: 0;
}

.service-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.service-link:hover {
  background-color: #035f5b;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(4, 125, 120, 0.3);
}

.service-link:hover i {
  transform: translateX(4px);
}

.team-contact-btn {
  display: inline-block;
  padding: 10px 25px;
  font-weight: 600;
  color: #047d78;
  background-color: transparent;
  border: 2px solid #047d78;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.team-contact-btn:hover {
  background-color: #047d78;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(4, 125, 120, 0.2);
}

.btn-show-more {
  background-color: transparent;
  color: #047d78;
  border: 2px solid #047d78;
  padding: 10px 25px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-show-more:hover {
  background-color: #047d78;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(4, 125, 120, 0.2);
}

.btn-show-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-show-more.hidden {
  display: none;
}

.btn-banner-info {
  display: inline-block;
  background-color: #ffffff;
  color: #2c3e50;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-banner-info:hover {
  background-color: #a7d7c5;
  color: #035f5b;
  transform: scale(1.05);
}

/* =========================================
   KOMPONEN: MODAL (POPUP)
   ========================================= */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
}

#modalTitle {
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.modal-list {
  list-style: none;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
}

.modal-list li a {
  text-decoration: none;
  color: #047d78;
  font-weight: 600;
  display: block;
  padding: 12px 15px;
  background-color: #f0f4f8;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 1px solid #e0e0e0;
}

.modal-list li a:hover {
  background-color: #047d78;
  color: #fff;
  border-color: #047d78;
}

#welcome-modal .modal-content p {
  margin-top: 1rem;
  line-height: 1.7;
  text-align: left;
}

.welcome-modal-btn {
  background-color: #047d78;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease;
}

.welcome-modal-btn:hover {
  background-color: #035f5b;
}

.modal-list-register li a {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #333;
}

.modal-list-register li a:hover {
  background-color: #047d78;
  color: #fff;
  border-color: #047d78;
}

.modal-list-register li a i {
  width: 20px;
  text-align: center;
  color: #047d78;
  transition: color 0.2s ease;
}

.modal-list-register li a:hover i {
  color: #fff;
}

/* =========================================
   KOMPONEN: KARTU & GRID
   ========================================= */

/* Quick Links Grid */
.links-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.link-item {
  text-align: center;
  width: 150px;
}

.link-item a {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease, color 0.3s ease;
  height: 150px;
  border: 1px solid #eee;
}

.link-item a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background-color: #047d78;
  color: #ffffff;
}

.link-item i {
  font-size: 2.5rem;
  color: #047d78;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.link-item a:hover i {
  color: #ffffff;
}

.link-item p {
  font-weight: 600;
  line-height: 1.3;
  font-size: 0.9rem;
}

/* Fasyankes Counter Grid */
#fasyankes-section {
  background-color: #ffffff;
}

.fasyankes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.fasyankes-card {
  background: #fdfdfd;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fasyankes-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.fasyankes-card i {
  font-size: 2.5rem;
  color: #047d78;
  margin-bottom: 1rem;
}

.fasyankes-count {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.fasyankes-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  line-height: 1.4;
  margin: 0;
}

/* Key Services Grid */
.key-services-section {
  background-color: #2c3e50;
  background-repeat: repeat;
  background-position: center center;
  background-size: cover;
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.key-services-section .container {
  position: relative;
  z-index: 1;
}

.key-services-section .section-title {
  color: #ffffff;
}

.key-services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 950px;
  margin: 0 auto;
}

.key-service-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  flex-basis: 280px;
  flex-grow: 0;
}

.key-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(4, 125, 120, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: #e0f2f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.service-icon i {
  font-size: 2rem;
  color: #047d78;
}

.service-icon img.service-icon-img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

.key-service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.key-service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Team Grid */
.team-section {
  background-color: #ffffff;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  background-color: #fdfdfd;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-basis: 280px;
  flex-grow: 0;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.team-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  overflow: hidden;
  border: 4px solid #e0f2f1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.team-job {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Info (Notes) List */
.notes-section .notes-list-modern {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.note-item {
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border: 1px solid #eef0f2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease,
    transform 0.4s ease;
}

.note-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.note-icon {
  flex-shrink: 0;
  padding-top: 4px;
}

.note-icon i {
  font-size: 1.5rem;
  color: #047d78;
}

.note-content {
  flex-grow: 1;
}

.note-content p {
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.7;
}

.note-timestamp {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-style: italic;
  color: #888;
}

.notes-list-modern .note-item:nth-child(n + 4) {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
}

.notes-list-modern .note-item.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  margin-top: 1.25rem;
}

.notes-list-modern .note-item:nth-child(1) {
  margin-top: 0;
}

.show-more-container {
  text-align: center;
  margin-top: 2rem;
}

#trigger-aduan-modal-note {
  font-weight: bold;
  color: #0056b3;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#trigger-aduan-modal-note:hover {
  color: #003d80;
}

/* =========================================
   KOMPONEN: SWIPER / CAROUSEL
   ========================================= */

/* Carousel Pengumuman */
#announcement-section {
  background: linear-gradient(
      rgba(240, 244, 248, 0.8),
      rgba(240, 244, 248, 0.8)
    ),
    url("../asset/BG-Tangsel.webp") no-repeat center center/cover;
  background-attachment: fixed;
}

.announcement-swiper {
  position: relative;
  padding-bottom: 40px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #eee;
}
.announcement-card {
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  text-align: center;
  position: relative;
}
.announcement-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
}
.announcement-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0;
}
.announcement-card img {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: block;
  border: 1px solid #eee;
}
.announcement-swiper .swiper-pagination .swiper-pagination-bullet {
  background-color: #047d78;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.announcement-swiper .swiper-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Carousel Tautan Lainnya */
.testimonials {
  background-color: #2c3e50;
}
.swiper.init-swiper {
  overflow: hidden;
}
.testimonials .swiper.init-swiper {
  padding-bottom: 40px;
}
.testimonial-item {
  background: #ffffff;
  padding: 2.5rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  text-align: center;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.testimonial-item a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}
.testimonial-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}
.testimonial-item h3 {
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  margin-top: 0;
  line-height: 1.4;
}
.testimonials .swiper-pagination .swiper-pagination-bullet {
  background-color: #ffffff;
  opacity: 0.7;
}
.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* =========================================
   KOMPONEN: RUNNING TEXT BANNER
   ========================================= */
.announcement-banner-section {
  background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%);
  padding: 0.75rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #047d78;
  position: relative;
  z-index: 900;
}

.announcement-banner-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.announcement-banner-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  -webkit-animation: marquee 20s linear infinite;
  width: max-content;
}

.announcement-banner-wrapper:hover .announcement-banner-content {
  animation-play-state: paused;
}

.announcement-item {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.announcement-item i {
  margin-right: 0;
  color: #a7d7c5;
  font-size: 1.1rem;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ================== */
/* == MEDIA QUERIES == */
/* ================== */

@media (max-width: 991.98px) {
  .key-services-grid {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .fasyankes-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .fasyankes-count {
    font-size: 2rem;
  }
  .testimonial-item {
    height: 220px;
  }
  .testimonial-item img {
    width: 70px;
    height: 70px;
  }
  .testimonial-item h3 {
    font-size: 0.9rem;
  }
  .announcement-card {
    padding: 2rem 1.5rem 2.5rem 1.5rem;
  }
  .announcement-card h4 {
    font-size: 1.15rem;
  }
  .announcement-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
  }
  .announcement-swiper {
    padding-bottom: 35px;
  }
  .key-services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 1.5rem;
  }
  .key-service-card {
    min-height: auto;
    padding: 1.5rem;
  }
  .announcement-item {
    font-size: 0.85rem;
    padding: 0 1.5rem;
    gap: 0.75rem;
  }
  .announcement-item i {
    font-size: 1rem;
  }
  .btn-banner-info {
    font-size: 0.75rem;
    padding: 3px 10px;
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .fasyankes-grid {
    grid-template-columns: 1fr;
  }
  .announcement-card {
    padding: 1.5rem 1rem 2.5rem 1rem;
  }
  .announcement-card img {
    max-height: 200px;
  }
  .announcement-card h4 {
    font-size: 1.1rem;
  }
  .announcement-card p {
    font-size: 0.9rem;
  }
  .regulasi-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
  }
  .regulasi-card a {
    padding: 1.5rem 0.5rem;
  }
  .regulasi-card i {
    font-size: 2.5rem;
  }
  .regulasi-card h3 {
    font-size: 1rem;
  }
  .note-item {
    padding: 1rem;
    gap: 1rem;
  }
  .note-icon i {
    font-size: 1.25rem;
  }
  .note-content p {
    font-size: 0.9rem;
  }
}
