/* Responsive.css */

/* SMALL PHONES - max width 480px */
@media (max-width: 480px) {
    .slides, .slide img {
        width: 100%;
        height: auto;
    }
    .welcome-text-container {
        flex-direction: column;
        text-align: center;
    }
    .welcome-text p {
        font-size: 14px;
    }
    .milestone-container {
        flex-direction: column;
        gap: 20px;
    }
    .services-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .services-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .insights-section .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
  .services-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .services-content h1,
  .services-content h2,
  .services-content h3 {
    margin-bottom: 6px;
  }

  .services-content p {
    margin-top: 0;
    margin-bottom: 8px;
  }
}

/* POTONG SEMUA KEMUNGKINAN JARAK */
section,
.services,
.services-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* SECTION SETELAH SERVICES */
.services-container + *,
.services + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* TABLETS - 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .slides, .slide img {
        width: 100%;
        height: auto;
    }
    .welcome-text-container {
        flex-direction: column;
        text-align: center;
    }
    .welcome-text p {
        font-size: 16px;
    }
    .milestone-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .services-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .services-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .insights-section .articles-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* LAPTOPS / DESKTOPS - 769px to 1200px */
@media (min-width: 769px) and (max-width: 1200px) {
    .services-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .insights-section .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* LARGE SCREENS / TV - min-width 1201px */
@media (min-width: 1201px) {
    .services-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
    .insights-section .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== MOBILE (≤480px) ===== */
@media only screen and (max-width: 480px) {
    .articless-carousel-section {
        padding: 20px 10px;
    }

    .carousel-tracks {
        display: flex;
        flex-direction: column;
        gap: 20px;
        transform: none !important;
    }

    .article-item {
        flex: 1 0 100%;
        max-width: 100%;
    }

    .article-img-container img {
        width: 100%;
        height: auto;
    }

    .article-content h3 {
        font-size: 16px;
    }

    .article-content p {
        font-size: 14px;
    }

    /* Modal */
    #articleModal .modal-content {
        flex-direction: column;
        width: 90%;
    }

    #articleModal .modal-left,
    #articleModal .modal-right {
        width: 100%;
    }

    #articleModal .modal-left img {
        width: 100%;
        height: auto;
    }
}

/* ===== TABLET (481px - 768px) ===== */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    .articless-carousel-section {
        padding: 25px 15px;
    }

    .article-item {
        flex: 1 0 48%;
        max-width: 48%;
    }

    .article-content h3 {
        font-size: 18px;
    }

    .article-content p {
        font-size: 15px;
    }

    /* Modal */
    #articleModal .modal-content {
        flex-direction: column;
        width: 85%;
    }
}

/* ===== LAPTOP (769px - 1024px) ===== */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .article-item {
        flex: 1 0 48%;
        max-width: 48%;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-content p {
        font-size: 16px;
    }

    /* Modal */
    #articleModal .modal-content {
        flex-direction: row;
        width: 80%;
    }

    #articleModal .modal-left,
    #articleModal .modal-right {
        width: 50%;
    }
}

/* ===== DESKTOP / TV (>1024px) ===== */
@media only screen and (min-width: 1025px) {
    .article-item {
        flex: 1 0 23%;
        max-width: 23%;
    }

    .article-content h3 {
        font-size: 22px;
    }

    .article-content p {
        font-size: 16px;
    }

    #articleModal .modal-content {
        flex-direction: row;
        width: 70%;
    }

    #articleModal .modal-left,
    #articleModal .modal-right {
        width: 50%;
    }
}

@media (max-width: 480px) {
  .logo-scroller { margin-bottom: 60px; }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .logo-scroller { margin-bottom: 80px; }
}

@media (min-width: 1025px) {
  .logo-scroller { margin-bottom: 120px; }
}

