/* Variabel */
:root {
  --primary-color: #c95142;
  --secondary-color: #c03a2bd9;
  --dark-color: #2c3e50ee;
  --light-gray: #f8f9fa;
}

/* Ketika Blok Tulisan */
::selection {
  background: var(--primary-color);
  color: var(--light-gray);
}

hr.hr-section {
  border: none;
  height: 2px;
  width: 60%;
  margin: 1rem auto 2rem;
  background: linear-gradient(
    to right,
    transparent,
    var(--secondary-color),
    transparent
  );
}

/* Bootstrap Accordian Overriding */
.accordion-button:not(.collapsed) {
  --bs-accordion-active-color: #fff;
  --bs-accordion-active-bg: #e74c3c;
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}

.accordion-button {
  color: var(--dark-color);
  font-size: 0.9rem;
  line-height: 24px;
}

.accordion-body {
  font-size: 0.85rem;
  text-align: justify;
  overflow: hidden;
}

.accordion-body pre {
  text-align: center;
}

.accordion-button:focus {
  box-shadow: none !important;
}

/* Button Bootstrap Overriding */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: transparent;
}

.btn-primary.table-btn {
  background-color: #e08d80;
  border-color: #e08d80;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary.table-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--primary-color);
}

.btn-primary.backtotop {
  background-color: var(--light-gray);
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 80px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary.backtotop:hover {
  background-color: var(--primary-color);
  color: var(--light-gray);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-outline-primary {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: transparent;
}

#backToTop {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#backToTop.show {
  opacity: 1;
  transform: translateY(-20px);
}

#backToTop.hide {
  opacity: 0;
  transform: translateY(20px);
}

/* Datatable Sorting Icon dihilangkan */
table.dataTable thead .sorting_disabled:after,
table.dataTable thead .sorting_disabled:before {
  display: none;
}

/* Tooltip Bootstrap */
.custom-tooltip {
  --bs-tooltip-bg: #212121;
  --bs-tooltip-color: var(--light-gray);
}

/* DataTable Overriding */
#tabel-portal_wrapper .dataTables_paginate .paginate_button {
  background: white !important;
  color: var(--dark-color) !important;
  border: var(--dark-color) !important;
  border-radius: 50px !important;
  box-shadow: none !important;
  padding: 0.5em 0.2em !important;
}

#tabel-portal_wrapper .dataTables_paginate .paginate_button.current {
  color: var(--primary-color) !important;
  transition: all 0.3s ease;
}

#tabel-portal_wrapper .dataTables_paginate .paginate_button:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.dataTables_filter input:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--primary-color) !important; 
}

.dataTables_filter input {
  border: 1px solid var(--primary-color) !important;
  border-radius: 6px;
  padding: 6px 10px;
}

/* Dokumen */
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

/* Navbar CSS */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color) !important;
  letter-spacing: 2px;
}

.navbar-nav .nav-link {
  color: #333 !important;
  font-weight: 600;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link.active {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  scroll-margin-top: 80px;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../img/Pameran_Sinasja_59x84_Pleiades_TelagaMerdada.jpg") center/cover
      no-repeat;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 5rem;
  font-weight: 550;
  letter-spacing: 5px;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  line-height: 1.8;
}

/* Section Styles */
.section-padding {
  padding: 30px 0;
}

@media screen and (max-width: 992px) {
  .section-padding {
    padding: 30px 0;
  }
}

.section-padding.about-section {
  padding: 245px 0 30px 0;
}

/* Padding ketika selain mobile */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .section-padding.about-section {
    padding: 380px 0 30px 0;
  }
}

.section-title {
  font-size: 3rem;
  font-weight: 500;
  /* margin-bottom: 2rem; */
  color: var(--dark-color);
}

.section-title.map {
  margin-bottom: 1rem;
}

/* Feature Cards */
.feature-card {
  background: #f39e60;
  border-radius: 15px;
  padding: 1.5rem 2rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: none;
}

@media screen and (max-width: 768px) {
  .feature-card {
    padding: 0rem 0rem;
  }
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card.bg-danger {
  background: #9f5255 !important;
  color: white;
}

.feature-card.bg-dark {
  background: #e16a54 !important;
  color: white;
}

.feature-card h5 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.feature-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
  height: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image i {
  font-size: 4rem;
  color: white;
  opacity: 0.9;
}

.service-content {
  padding: 2rem;
}

.card-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: #6c757d;
  line-height: 1.5;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  text-align: justify;
}

.card-subtitle.data-portal {
  text-align: center;
  margin-bottom: 0.25rem;
}

.service-content h5 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
  color: #666;
}

.service-list li::before {
  content: "\F26A";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Map Section */
.map-container {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer-section {
  background: linear-gradient(rgba(154, 45, 33, 0.921), rgba(172, 46, 32, 0.74)),
    url("../img/gedungbrin.jpg") no-repeat center center/cover;
  color: white;
  padding: 30px 0 10px;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: ffffff;
  margin-bottom: 20px;
}

.footer-description {
  color: var(--light-gray);
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: #ecf0f1;
}

.contact-item i {
  width: 20px;
  margin-right: 10px;
  color: white;
}

.map-container {
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Custom Animations */
.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
    letter-spacing: 5px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

#mapid {
  height: 100%;
  max-width: 100%;
}

.social-links a {
  color: var(--light-gray);
  font-size: 1.2rem;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--dark-color);
}

/* Additional loading styles */
body:not(.loaded) .hero-content {
  opacity: 0;
  transform: translateY(50px);
}

body.loaded .hero-content {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}

/* Improved mobile responsiveness */
@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem !important;
    letter-spacing: 3px !important;
  }

  .section-padding {
    padding: 60px 0;
  }

  .feature-card,
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Enhanced accessibility */
/* .btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
} */

/* Print styles */
@media print {
  .navbar,
  .btn,
  #backToTop,
  .hero-section {
    display: none !important;
  }
}

/* Informasi Pembuatan Akun */

.timeline-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 20px 0;
  white-space: nowrap;
  scroll-behavior: smooth;
}

.timeline-wrapper::-webkit-scrollbar {
  height: 8px;
}

.timeline-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.timeline-wrapper::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

.timeline {
  display: inline-flex;
  position: relative;
  min-width: max-content;
  align-items: center;
  padding: 0 1px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  z-index: 1;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 250px;
  margin: 0 10px;
  z-index: 2;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--secondary-color);
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
}

.timeline-content {
  background: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 15px rgba(163, 82, 82, 0.25);
  border: 1px solid #e9ecef;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(163, 82, 82, 0.25);
}

.timeline-year {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 15px;
}

.timeline-details {
  color: var(--dark-color);
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: left;
}

.timeline-details p {
  margin-bottom: 8px;
}

.timeline-details p:last-child {
  margin-bottom: 0;
}

.timeline-header {
  text-align: center;
  margin-bottom: 30px;
}

.timeline-header h2 {
  color: var(--secondary-color);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Informasi Pembuatan akun versi 2 */
.timeline-with-icons {
  border-left: 1px solid hsl(0, 0%, 90%);
  position: relative;
  list-style: none;
}

.timeline-with-icons .timeline-item {
  position: relative;
}

.timeline-with-icons .timeline-item:after {
  position: absolute;
  display: block;
  top: 0;
}

.timeline-with-icons .timeline-icon {
  position: absolute;
  left: -48px;
  background-color: var(--primary-color);
  color: var(--light-gray);
  border-radius: 50%;
  height: 31px;
  width: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-item {
    min-width: 250px;
    margin: 0 20px;
  }

  .timeline-header h2 {
    font-size: 2rem;
  }

  .timeline-year {
    font-size: 1.8rem;
  }
}
