/* Custom styles for SPI KPK Landing Page */
:root {
  --primary-color: #ED1C24;
  --secondary-color: #6C757D;
  --dark-color: #212529;
  --light-color: #F8F9FA;
  --success-color: #198754;
  --footer-color: #000E33;
}



body {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar a {
  color: white;
  text-decoration: none;
}

.top-bar i {
  margin-right: 5px;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid #e9ecef;
  padding: 15px 0;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

.nav-link {
  font-weight: 500;
  margin: 0 10px;
  color: var(--secondary-color) !important;
}

.nav-link.active {
  color: var(--dark-color) !important;
  position: relative;
}

.nav-link.active:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
}
.navbar-nav .nav-link {
  padding-top:10px;
  padding-bottom:20px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 8px 20px;
  font-weight: 500;
  border-radius: 5px;
}
.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 8px 20px;
  font-weight: 500;
  border-radius: 5px;
  box-shadow: 0 0 0 .25rem rgba(237, 28, 36, 0.7);
}
.btn-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 8px 20px;
  box-shadow: 0 0 0 .25rem rgba(237, 28, 36, 0.7);

}

/* Hero Section */
.hero {

  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  /* font-size: 2.5rem */
  font-weight: 700;
  color: #212529;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h2 {
  /* font-size: 2rem; */
  font-weight: 700;
  color: #212529;
  margin-bottom: 20px;
}
.hero h3{
  font-weight: 600;
  
}

.hero p {
  /* font-size: 1rem; */
  color: #6c757d;
  margin-bottom: 30px;
}

.hero-image {
  background-image: url('../images/hero-image-2.png');
  background-size: cover;
  background-position: center;
  height: calc(100vh - 100px);
  /* border-radius: 10px; */
}

.ellipse-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background-color: rgba(220, 53, 69, 0.05);
  top: -300px;
  left: -300px;
  z-index: -1;
}

/* Section Title */
.section-title {
  /* margin-bottom: 50px; */
}

.section-title.text-left {
  text-align: left;
}

.section-title h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.section-title h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #212529;
}

.title-with-dot {
  position: relative;
  display: inline-block;
  /* padding-left: 20px; */
}

.title-with-dot:before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-100%);
  width: 32px;
  height: 32px;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: 0;
}
.title-with-dot>h2 {
  z-index: 1;
  position:relative;
}


/* Responden Cards */
.responden-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.responden-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.responden-card.highlighted {
  background-color: var(--primary-color);
  color: white;
}

.responden-card.highlighted .card-title,
.responden-card.highlighted .card-subtitle,
.responden-card.highlighted p {
  color: white;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  margin-bottom: 5px;
}

.card-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 15px;
}

/* SPI Explanation Section */
.spi-explanation-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  /* box-shadow: 0 5px 15px rgba(0,0,0,0.05); */
}

.explanation-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.spi-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 1.25rem;
  margin-left: 5px;
}

.explanation-image {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explanation-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.dots-pattern {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin: 5px 0;
}

/* Stacked Images Section */
.stacked-image-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
  transition: all 0.3s ease;
}

.stacked-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.stacked-image-container:hover {
  /* box-shadow: 0 15px 40px rgba(0,0,0,0.15); */
}

.stacked-image-container:hover .stacked-image {
  transform: scale(1.02);
}

/* Footer */
.footer {
  background-color: #000E33;
  color: white;
  padding: 30px 0 20px;
  margin-top: 80px;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 25px;
  font-size: 1.25rem;
}

.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer ul li {
  margin-bottom: 15px;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: white;
  text-decoration: none;
}

.contact-info {
  /* color: rgba(255,255,255,0.7); */
}

.contact-info i {
  color: var(--primary-color);
  width: 20px;
  margin-right: 15px;
  text-align: center;
}

.contact-info p {
  margin-bottom: 0;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.25rem;
  }
  
  .hero-image {
    height: 300px;
    margin-top: 30px;
  }
  
  .footer h5 {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    text-align: center;
  }
  
  .top-bar .col-md-4 {
    margin-top: 5px;
  }
  
  .hero {
    padding: 20px 0;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .social-icons {
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .contact-info i {
    width: 16px;
    margin-right: 10px;
  }
}

@media (max-width: 576px) {
  .stacked-image-container.position-absolute {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-top: 20px;
  }
}