/* ===== HOME PAGE SPECIFIC STYLES ===== */

/* FIRST SECTION STYLES */
.first-section-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  transform-origin: top left;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #e9f1f4;
  padding: 150px 0;
  margin-top: 50px;
}

.first-section {
  position: relative;
  width: 100%;
  height: 100vh;
  transform-origin: top left;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #e9f1f4;
  padding: 150px 0;
}

.background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.first-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.container-first {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  padding: 20px;
  margin: 0;
}

.first-text {
  text-align: left;
  padding: 0 60px;
}

.first-text h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.first-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 3rem;
}

.first-text p {
  font-size: 1rem;
  width: 50vw;
  line-height: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.photo-source {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.75rem;
  color: #ffffffcc;
  z-index: 2;
  font-style: italic;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
}

/* WHY KIRANA SECTION */
.why-kirana {
  text-align: center;
  padding: 50px 20px;
}

.why-kirana h2 {
  color: #193a65;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.why-kirana p {
  font-size: 1rem;
  color: #6d6e71;
  line-height: 1.2rem;
}

.why-kirana .highlight {
  color: #193a65;
  font-weight: 700;
}

.why-kirana-container{
  max-width: 85%;
  margin: 0 auto;
}
/* FEATURES SECTION */
.features-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.features-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.3s ease-in-out;
}

.feature-box {
  flex: 0 0 100%;
  padding: 0;
  background-color: #193a65;
  overflow: hidden;
  cursor: pointer;
  margin: 0 auto;
  transition: all 0.3s ease;
  position: relative;
  touch-action: pan-y;
}

.feature-box p {
  color: #ffffff;
}

.image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #193a65;
  color: #e9f1f4;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 10px;
  text-align: center;
  transition: opacity 0.3s ease;
}

/* Overlay show on hover and active */
.feature-box:hover .overlay,
.feature-box:focus .overlay,
.feature-box:active .overlay {
  opacity: 0.7;
}

/* FEATURES SECTION */
.features-desktop .row {
    display: flex;
    justify-content: center; /* Pusatkan horizontal */
    gap: 20px; /* Jarak antar box */
    flex-wrap: wrap;
}

.features-desktop .col-md-3 {
    flex: 0 0 calc(33.333% - 40px); /* 3 kolom dengan gap */
    max-width: calc(33.333% - 40px); /* Sesuaikan dengan gap */
    margin: 10px 0; /* Spacing vertikal */
}

.feature-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-box:hover {
  background-color: #0a93d1;
}
 
.title-box {
  padding: 20px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.title-box h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}


.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FEFEFE;
  color: #193a65;
  border-radius: 10px;
  border: none;
  font-size: 1.5rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  display: none;
}

.nav-btn.prev {
  left: 5px;
}

.nav-btn.next {
  right: 5px;
}

/* QUALITY PRIORITY SECTION */
.quality-priority {
  position: relative;
  height: 430px;
  background-image: url('../images/home/prioritybg.jpg');
  background-size: cover;
  background-position: 30% 35%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.quality-priority .overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.quality-priority .overlay-content {
  position: relative;
  z-index: 2;
  width: 800px;
  padding: 40px;
  margin-left: 40px;
}

.quality-priority h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 3rem;
  margin-bottom: 0.75rem;
}

.quality-priority h2 span {
  color: #e9f1f4;
  display: block;
}

.quality-priority p {
  font-size: 1rem;
  line-height: 1.2rem;
  color: #e9f1f4;
}

/* CERTIFICATION SECTION */
.certification-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px 20px;
  background-color: #ffffff;
}

.certification-logos img {
  height: 15vh;
  object-fit: contain;
}

/* ===== HOME PAGE RESPONSIVE STYLES ===== */
@media screen and (min-width: 2560px){
  .why-kirana{
    max-width: 2200px;
    margin: 0 auto !important;
  }
  .why-kirana-container{
    width: 100% !important;
    margin: 0 auto !important;
  }
  .feature-box {
    width: 100%;
    height: 100%;
  }
}

@media screen and (min-width: 3840px) {
    .why-kirana{
    max-width: 3200px;
  }
  .why-kirana-container{
    width: 100% !important;
    justify-content: center;
  }
  .feature-box {
    width: 100%;
    height: 100%;
  }

}
/* Large screens (1920px and up) */
@media screen and (min-width: 2560px),
       screen and (min-width: 3840px) {
  .first-section {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
  }

  .container-first {
    margin: 0 50px!important;
    padding: 0 !important;
    width: 2000px;
  }

  .first-text h3 {
    font-size: 2rem !important;
  }

  .first-text h2 {
    font-size: 5rem;
    line-height: 5rem;
  }

  .first-text p {
    width: 100%;
    font-size: 2rem;
    line-height: 2.4rem;
  }
  .why-kirana h2 {
    font-size: 5rem !important;
  }

  .why-kirana p {
    font-size: 2rem !important;
    line-height: 2.4rem;
    margin-bottom: 2.4rem;
  }

  .col-md-3{
    width: 50%;
  }
  .title-box h3{
    font-size: 2.3rem !important;
  }

  .quality-priority .overlay-content {
    max-width: 1500px;
    width: 1500px;
  }
  .quality-priority {
    height: 50vh !important;
  }

  .quality-priority h2 {
    font-size: 5rem !important;
    line-height: 5rem;
    margin-bottom: 2.5rem;
  }

  .quality-priority p {
    font-size: 2rem !important;
    line-height: 2.4rem;
  }

  .certification-logos img {
    height: 12vh;
  }
}

@media screen and (min-width: 1920px){

  .first-text h3 {
    font-size: 1.5rem;
  }
  
  .first-text h2 {
    font-size: 3.5rem;
  }

  .quality-priority {
    height: 600px;
  }

  .quality-priority h2, .why-kirana h2{
    font-size: 2.75rem;
  }

  .first-text p, .quality-priority p, .why-kirana p{
    font-size: 1.2rem;
    line-height: 1.4rem;
  }

  .title-box h3{
    font-size: 1.4rem;
  }
}
/* Tablet and below (992px and down) */
@media (max-width: 992px) {
  .first-section {
    min-height: auto;
  }

  .first-text {
    padding: 0 30px;
  }

  .quality-priority .overlay-content {
    margin-left: 20px;
    padding: 20px;
  }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
  .first-section {
    padding: 0 10px;
    min-height: 100vh;
    width: 100%;
  }

  .first-section-wrapper{
    padding: 0;
    height: 100vh;
  }

  .container-first {
    margin-left: 0 !important;
    padding: 0;
    text-align: center;
  }

  .first-text {
    padding: 0 20px;
  }

  .first-text h3 {
    font-size: 16px;
  }

  .first-text h2 {
    font-size: 28px;
  }

  .first-text p {
    font-size: 1rem;
    width: 100%;
  }

  .why-kirana h2 {
    font-size: 28px;
  }

  .why-kirana p {
    font-size: 14px;
  }

  .quality-priority {
    height: auto;
    padding: 40px 20px;
    background-position: 60% 35%;
  }

  .quality-priority .overlay-content {
    margin-left: 0;
    padding: 20px;
  }

  .quality-priority h2 {
    font-size: 28px;
  }

  .quality-priority p {
    font-size: 16px;
  }

  /* Mobile slider styles */
  .features-mobile {
    width: 100%;
    overflow: hidden;
  }

  .features-track {
    display: flex;
    flex-wrap: nowrap;
  }

  .feature-box {
    flex: 0 0 100%;
    margin: 0;
  min-width: 100%;

  }
  .title-box h3{
    font-size: 1rem;
  }

  .nav-btn {
    display: flex !important;
  }
  /* CERTIFICATION SECTION */
.certification-logos {
  gap: 10px;
  padding: 10px 5px;
  background-color: #ffffff;
}

.certification-logos img {
  height: 10vh;
  object-fit: contain;
}
}

/* Small mobile (600px and down) */
@media (max-width: 600px) {
  .container-first {
    max-width: 600px;
    padding: 20px 10px;
    margin: 0;
  }

  .first-text {
    padding: 0 15px;
  }
}