/*
 * responsive.css — Intra Asia Website
 * Full coverage: 320px → 1920px+
 *
 * ── PROJECT BREAKPOINT STANDARD (single source of truth) ──
 *   Mobile:        max-width: 480px   (covers up to 430px Pro-Max phones)
 *   Tablet:        481px – 768px
 *   Desktop small: 769px – 1024px
 *   Desktop:       min-width: 1025px
 *
 *   NOTE: original spec asked for a 428px mobile cap, but that excludes
 *   430px-wide phones (iPhone 14/15 Pro Max) from mobile styles, so the
 *   mobile cap is kept at 480px. Refinement tiers 360px stay as-is.
 *
 *   Legacy queries in this file (1440/1200/1024/768/600/480/360) are being
 *   migrated to the standard above incrementally, per page pass.
 */

/* ========================================
   LARGE DESKTOP (max-width: 1440px)
   ======================================== */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }

    /* Hero */
    .banner_man {
        height: 520px;
    }

    .banner_man2 {
        height: 480px;
    }

    /* Product page jumbroton */
    .section-product-page__jumbroton .--product-icon img {
        width: 360px;
        height: 340px;
    }
}

/* ========================================
   DESKTOP MEDIUM (max-width: 1200px)
   ======================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Hero */
    .banner_man {
        height: 480px;
    }

    .banner_man2 {
        height: 440px;
    }

    /* Product page */
    .section-product-page__jumbroton .--product-controll {
        padding: 0 40px;
    }

    .section-product-page__why-choose-me .get-product {
        width: 90%;
        max-width: 800px;
    }

    .section-product-page__why-choose-me-product .insurance-navigation {
        width: 90%;
        max-width: 800px;
    }

    .section-product-page__why-choose-me-content {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Rating */
    .rating-page-container {
        padding: 60px 24px;
    }

    /* Media */
    .section-media-page-content {
        padding: 60px 24px;
    }
}

/* ========================================
   TABLET LANDSCAPE (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    /* General */
    .container,
    .section-title {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Hero */
    .banner_man {
        height: auto;
        min-height: 420px;
        padding-bottom: 40px;
    }

    .banner_man2 {
        height: auto;
        min-height: 380px;
    }

    .huruf_banner_contact h1 {
        font-size: 36px;
    }

    /* Rating */
    .rating-page-container {
        padding: 60px 20px;
    }

    .rating-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Media Page */
    .section-media-page-content {
        padding: 60px 20px;
    }

    .body-tab-media__item-box {
        gap: 24px;
    }

    /* Berita Detail */
    .section-media-page-detail__left {
        padding: 120px 40px 80px 120px;
    }

    /* Product Page */
    .section-product-page__jumbroton {
        padding-top: 180px;
    }

    .section-product-page__jumbroton .--product-icon img {
        width: 320px;
        height: 300px;
    }

    .section-product-page__jumbroton .--product-name-content h2 {
        font-size: 44px !important;
        line-height: 52px !important;
    }

    .section-product-page__jumbroton .--product-name-content h4 {
        font-size: 28px !important;
        line-height: 36px !important;
    }

    .section-product-page__jumbroton .--product-name-content p {
        font-size: 17px !important;
        padding: 0 16px;
    }

    .section-product-page__why-choose-me .get-product {
        width: 92%;
        max-width: 800px;
    }

    .section-product-page__why-choose-me-product .insurance-navigation {
        width: 92%;
        max-width: 800px;
    }

    .section-product-page__why-choose-me-content {
        padding-left: 32px;
        padding-right: 32px;
    }

    .section-product-page__why-choose-me-content .title {
        font-size: 36px !important;
        line-height: 44px !important;
    }

    .section-product-page__why-choose-me-content .product-strength-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-product-page__why-choose-me-content .product-term-and-condition-box-right {
        width: 80%;
    }

    .accordion-button2 {
        font-size: 22px !important;
    }

    /* Footer */
    footer .row {
        gap: 20px;
    }
}

/* ========================================
   TABLET PORTRAIT (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Typography */
    h1,
    .section-title h2 {
        font-size: 32px !important;
        line-height: 40px !important;
    }

    h2 {
        font-size: 28px !important;
        line-height: 36px !important;
    }

    h3 {
        font-size: 22px !important;
        line-height: 30px !important;
    }

    /* Hero */
    .banner_man {
        height: auto;
        min-height: 400px;
        padding-bottom: 30px;
    }

    .banner_man2 {
        height: auto;
        min-height: 350px;
    }

    .huruf_banner_contact {
        text-align: center;
    }

    .huruf_banner_contact h1 {
        font-size: 28px !important;
    }

    .huruf_banner_contact p {
        font-size: 16px;
    }

    .huruf_banner h1 {
        font-size: 28px !important;
        line-height: 36px !important;
        padding-bottom: 8px !important;
    }

    .huruf_banner h3,
    .huruf_banner p {
        font-size: 16px !important;
        line-height: 24px !important;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Rating Section */
    .rating-page-container {
        padding: 40px 16px;
    }

    .rating-page-title {
        font-size: 32px !important;
        line-height: 40px !important;
    }

    .rating-page-subtitle {
        font-size: 16px !important;
        margin-bottom: 40px;
    }

    .rating-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rating-card {
        padding: 24px;
    }

    .rating-card-name {
        font-size: 18px;
    }

    .rating-card-stars {
        font-size: 18px;
    }

    .rating-card-comment {
        font-size: 14px;
        line-height: 22px;
    }

    /* Media Page */
    .section-media-page-hero {
        height: 400px;
        padding: 40px 20px;
    }

    .section-media-page-hero h1 {
        font-size: 32px !important;
        line-height: 40px !important;
    }

    .section-media-page-content {
        padding: 40px 16px;
    }

    .body-tab-media__item-box {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-article {
        width: 100%;
    }

    .card-article-top {
        height: 200px;
    }

    .card-article-title {
        font-size: 16px;
        line-height: 22px;
    }

    .card-article-desc {
        font-size: 13px;
        line-height: 20px;
    }

    /* Pagination */
    .pagination {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Berita Detail */
    .section-media-page-detail {
        flex-direction: column;
    }

    .section-media-page-detail__left {
        width: 100% !important;
        padding: 80px 20px 40px !important;
    }

    .section-media-page-detail__left-title {
        font-size: 28px !important;
        line-height: 36px !important;
    }

    .section-media-page-detail__left-content {
        margin-top: 24px;
        padding: 0;
    }

    .section-media-page-detail__left-content-image {
        height: 250px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .section-media-page-detail__right {
        width: 100% !important;
        padding: 20px !important;
    }

    .media-recomendation-box {
        position: relative;
        top: auto;
    }

    /* Information / Call Center */
    .informasi {
        padding: 40px 16px;
    }

    .call-center-section {
        padding: 40px 16px;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* FAQ */
    .faq-container {
        padding: 0 16px;
    }

    .faq-item {
        padding: 20px 16px;
    }

    .faq-item h3 {
        font-size: 16px;
        padding-right: 40px;
        line-height: 24px;
    }

    .faq-content p {
        font-size: 14px;
        line-height: 22px;
    }

    /* Footer */
    footer {
        padding: 40px 20px 20px;
    }

    footer .row {
        flex-direction: column;
        gap: 30px;
    }

    footer .col-lg-3,
    footer .col-lg-4 {
        width: 100%;
        margin-bottom: 20px;
    }

    footer h4 {
        font-size: 17px;
    }

    footer p,
    footer a {
        font-size: 14px;
    }

    /* Product Page */
    .section-product-page__jumbroton {
        padding-top: 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
    }

    .section-product-page__jumbroton .--product-icon {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        z-index: 1;
    }

    .section-product-page__jumbroton .--product-icon img {
        width: 260px;
        height: auto;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }

    .section-product-page__jumbroton .--product-controll {
        display: none !important;
    }

    .section-product-page__jumbroton .--product-controll-mobile {
        display: flex !important;
        column-gap: 8px;
        justify-content: space-between;
        margin-top: 20px;
        width: 100%;
        padding: 0 16px;
    }

    .section-product-page__jumbroton .--product-controll-mobile .btn-secondary {
        font-size: 14px;
        padding: 8px 12px;
        width: auto;
        flex: 1;
    }

    .section-product-page__jumbroton .--product-name-sm {
        min-height: unset;
        padding-top: 12px;
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }

    .section-product-page__jumbroton .--product-name-content {
        align-items: center;
        display: flex;
        flex-direction: column;
        color: #fff;
    }

    .section-product-page__jumbroton .--product-name-content h4 {
        font-size: 18px !important;
        line-height: 26px !important;
        margin-bottom: 6px;
    }

    .section-product-page__jumbroton .--product-name-content h2 {
        font-size: 32px !important;
        line-height: 40px !important;
        padding-bottom: 12px;
    }

    .section-product-page__jumbroton .--product-name-content p {
        font-size: 15px !important;
        line-height: 24px !important;
        padding: 0 8px;
    }

    /* Get product card */
    .section-product-page__why-choose-me .get-product {
        width: 95%;
        border-radius: 20px;
        padding: 16px 20px;
    }

    .section-product-page__why-choose-me .get-product .start-from {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 16px;
    }

    .section-product-page__why-choose-me .get-product p {
        width: auto;
        font-size: 14px;
    }

    .section-product-page__why-choose-me .get-product h4 {
        width: auto;
        font-size: 26px !important;
        line-height: 34px !important;
        margin-bottom: 0;
    }

    .section-product-page__why-choose-me .get-product .start-from-right .btn-primary {
        font-size: 15px;
        padding: 12px 20px;
        width: auto;
        margin: 0;
    }

    /* Insurance navigation */
    .section-product-page__why-choose-me-product .insurance-navigation {
        width: 95%;
        flex-direction: column;
        row-gap: 12px;
    }

    /* Why choose me content */
    .section-product-page__why-choose-me-content {
        padding-left: 16px;
        padding-right: 16px;
        margin-top: 32px;
        padding-bottom: 48px;
    }

    .section-product-page__why-choose-me-content .title {
        font-size: 28px !important;
        line-height: 36px !important;
        margin-bottom: 16px;
    }

    /* Product strength */
    .section-product-page__why-choose-me-content .product-strength-box {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-product-page__why-choose-me-content .product-strength-box .card-product-strength {
        flex-direction: column;
        min-height: unset;
        row-gap: 10px;
        padding: 14px;
    }

    .section-product-page__why-choose-me-content .product-strength-box .card-product-strength-title {
        font-size: 17px !important;
        line-height: 26px !important;
    }

    /* Accordion */
    .accordion-button2 {
        font-size: 18px !important;
        padding: 12px 16px !important;
        display: flex !important;
        width: 100% !important;
        white-space: normal !important;
        word-break: break-word;
    }

    .accordion-body {
        font-size: 14px;
        line-height: 22px;
        padding: 12px 16px;
    }

    .accordion-body li {
        margin-left: 16px !important;
        font-size: 14px !important;
    }

    /* Product term and condition */
    .section-product-page__why-choose-me-content .product-term-and-condition {
        margin-top: 24px;
    }

    /* Override style.css fixed widths — make everything fluid on mobile */
    .section-product-page__why-choose-me-content .product-term-and-condition-box,
    .section-product-page__why-choose-me-content .product-term-and-condition-box-right {
        width: 100% !important;
        padding: 0 !important;
    }

    .section-product-page__why-choose-me-content .product-term-and-condition .detail-product-information-box .accordion {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 14px !important;
    }

    .section-product-page__why-choose-me-content .product-term-and-condition .detail-product-information-box .accordion-button2 {
        width: 100% !important;
        padding: 12px 14px !important;
        display: flex !important;
        white-space: normal !important;
        word-break: break-word;
    }

    .product-term-and-condition-title {
        font-size: 22px !important;
        width: 100% !important;
    }

    .product-term-and-condition-desc {
        font-size: 14px !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

    .section-product-page__why-choose-me-content .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Utility */
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    .full-width-mobile {
        width: 100% !important;
    }
}

/* ========================================
   MOBILE LARGE (max-width: 600px)
   ======================================== */
@media (max-width: 600px) {
    /* ── MOBILE HERO: bg full-width, image absolute top-right, text below ── */
    section.hero,
    section#hero {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Banner outer: no padding, auto height */
    .banner_man {
        padding: 0 !important;
        height: auto !important;
        min-height: unset !important;
    }

    /* Banner inner: auto height, no overflow clip (gambar sedikit overflow atas) */
    .banner_man2 {
        height: auto !important;
        min-height: unset !important;
        overflow: visible !important;
        padding: 0 !important;
        position: static !important;
    }

    /* Container: full width, no horizontal padding */
    .banner_man2 > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    /* Row: stacked column, no gap */
    .banner_man2 .row {
        flex-direction: column !important;
        margin: 0 !important;
    }

    /* Semua kolom: full width */
    .banner_man2 [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 !important;
    }

    /* Gambar: urutan pertama (atas), tinggi tetap, sedikit overflow ke atas */
    .banner_man2 .hero-img {
        order: -1 !important;
        height: 210px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        margin-top: -15px !important;
        position: static !important;
    }

    .banner_man2 .hero-img .hero2-wrapper {
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }

    .banner_man2 .hero-img img {
        height: 230px !important;
        width: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center bottom !important;
    }

    /* Teks: di bawah gambar, padding normal */
    .banner_man2 .huruf_banner,
    .banner_man2 .huruf_banner_contact {
        padding: 20px 24px 32px !important;
        position: static !important;
        display: block !important;
        width: 100% !important;
    }

    /* Judul — override inline style */
    .banner_man2 h1 {
        color: #fff !important;
        font-size: 28px !important;
        font-weight: 800 !important;
        line-height: 36px !important;
        margin-bottom: 8px !important;
        padding-bottom: 0 !important;
        text-align: left !important;
    }

    /* Subtitle/deskripsi */
    .banner_man2 h3 {
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 20px !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .banner_man2 .huruf_banner p,
    .banner_man2 .huruf_banner_contact p {
        color: #fff !important;
        font-size: 14px !important;
        line-height: 20px !important;
        margin: 0 !important;
    }

    /* Tab media scrollable */
    .body-tab-media__title {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .body-tab-media__title-item {
        white-space: nowrap;
        font-size: 14px;
        padding: 8px 16px;
    }

    /* Cards */
    .card-article-top {
        height: 190px;
    }

    /* Product grid 1 col */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Rating */
    .rating-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ========================================
   MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    /* Typography */
    h1,
    .section-title h2 {
        font-size: 26px !important;
        line-height: 34px !important;
    }

    h2 {
        font-size: 22px !important;
        line-height: 30px !important;
    }

    h3 {
        font-size: 18px !important;
        line-height: 26px !important;
    }

    /* General */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    section {
        padding: 30px 0;
    }

    /* Hero ≤480px: font lebih kecil, gambar lebih pendek */
    .banner_man2 h1 {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    .banner_man2 h3,
    .banner_man2 .huruf_banner p,
    .banner_man2 .huruf_banner_contact p {
        font-size: 13px !important;
    }

    .banner_man2 .huruf_banner,
    .banner_man2 .huruf_banner_contact {
        padding: 16px 20px 28px !important;
    }

    .banner_man2 .hero-img {
        height: 185px !important;
    }

    .banner_man2 .hero-img img {
        height: 200px !important;
    }

    /* Rating Section */
    .rating-page-container {
        padding: 30px 16px;
    }

    .rating-page-title {
        font-size: 26px !important;
        line-height: 34px !important;
        margin-bottom: 12px;
    }

    .rating-page-subtitle {
        font-size: 14px !important;
        margin-bottom: 30px;
    }

    .rating-card {
        padding: 20px;
    }

    .rating-card-header {
        gap: 12px;
    }

    .rating-card-photo,
    .rating-card-photo-placeholder {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .rating-card-name {
        font-size: 16px;
    }

    .rating-card-stars {
        font-size: 16px;
    }

    .rating-card-comment {
        font-size: 13px;
        line-height: 20px;
    }

    /* Media Page */
    .section-media-page-hero {
        height: 300px;
        padding: 30px 16px;
    }

    .section-media-page-hero h1 {
        font-size: 26px !important;
        line-height: 34px !important;
    }

    .section-media-page-content {
        padding: 30px 16px;
    }

    .body-tab-media {
        margin-bottom: 20px;
    }

    .body-tab-media__title {
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .body-tab-media__title-item {
        font-size: 14px;
        padding: 8px 16px;
        white-space: nowrap;
    }

    .body-tab-media__item-box {
        gap: 16px;
    }

    .card-article-top {
        height: 180px;
    }

    .card-article-title {
        font-size: 15px;
        line-height: 20px;
    }

    .card-article-desc {
        font-size: 12px;
        line-height: 18px;
    }

    .card-article-footer {
        padding: 8px;
    }

    .card-article-time {
        font-size: 11px;
    }

    /* Pagination */
    .pagination {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Berita Detail */
    .section-media-page-detail__left {
        padding: 60px 16px 30px !important;
    }

    .section-media-page-detail__left-title {
        font-size: 22px !important;
        line-height: 30px !important;
        margin-bottom: 12px;
    }

    .section-media-page-detail__left-time {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .section-media-page-detail__left-content {
        margin-top: 20px;
    }

    .section-media-page-detail__left-content-image {
        height: 200px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .section-media-page-detail__left-content-desc {
        font-size: 14px;
        line-height: 22px;
    }

    .section-media-page-detail__right {
        padding: 16px !important;
    }

    .media-recomendation-box {
        padding: 16px;
    }

    .media-recomendation-box__title {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .media-recomendation-box__list {
        row-gap: 16px;
    }

    .media-recomendation-box__list-item-title {
        font-size: 14px;
        line-height: 20px;
    }

    .media-recomendation-box__list-item-desc {
        font-size: 13px;
        line-height: 20px;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* FAQ */
    .faq-item {
        padding: 16px;
    }

    .faq-item h3 {
        font-size: 14px;
        line-height: 20px;
    }

    .faq-content p {
        font-size: 13px;
        line-height: 20px;
    }

    /* Footer */
    footer {
        padding: 30px 16px 16px;
    }

    footer h4 {
        font-size: 16px;
    }

    footer p,
    footer a {
        font-size: 13px;
    }

    /* Buttons */
    .btn,
    button {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 14px;
        padding: 10px;
        width: 100%;
    }

    /* Product Page */
    .section-product-page__jumbroton {
        padding-top: 60px;
    }

    .section-product-page__jumbroton .--product-icon {
        top: 40px;
    }

    .section-product-page__jumbroton .--product-icon img {
        width: 220px;
    }

    .section-product-page__jumbroton .--product-name-content h4 {
        font-size: 14px !important;
        line-height: 22px !important;
    }

    .section-product-page__jumbroton .--product-name-content h2 {
        font-size: 26px !important;
        line-height: 34px !important;
    }

    .section-product-page__jumbroton .--product-name-content p {
        font-size: 13px !important;
        line-height: 20px !important;
    }

    .section-product-page__jumbroton .--product-name-sm {
        padding-bottom: 50px;
    }

    .section-product-page__why-choose-me .get-product {
        width: 96%;
        padding: 14px 16px;
    }

    .section-product-page__why-choose-me .get-product h4 {
        font-size: 22px !important;
        line-height: 30px !important;
    }

    .section-product-page__why-choose-me .get-product .start-from-right .btn-primary {
        font-size: 14px;
        padding: 10px 18px;
    }

    .accordion-button2 {
        font-size: 16px !important;
        display: flex !important;
        width: 100% !important;
        padding: 11px 14px !important;
        white-space: normal !important;
        word-break: break-word;
    }

    .accordion-body li {
        font-size: 13px !important;
    }

    /* Ensure accordion fluid at 480px */
    .section-product-page__why-choose-me-content .product-term-and-condition .detail-product-information-box .accordion {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .section-product-page__why-choose-me-content .product-term-and-condition .detail-product-information-box .accordion-button2 {
        width: 100% !important;
        display: flex !important;
        white-space: normal !important;
    }

    .section-product-page__why-choose-me-content .title {
        font-size: 22px !important;
        line-height: 30px !important;
    }

    .section-product-page__why-choose-me-content .product-strength-box .card-product-strength-title {
        font-size: 15px !important;
    }
}

/* ========================================
   EXTRA SMALL MOBILE (max-width: 360px)
   ======================================== */
@media (max-width: 360px) {
    /* Typography */
    h1,
    .section-title h2 {
        font-size: 22px !important;
        line-height: 30px !important;
    }

    h2 {
        font-size: 18px !important;
        line-height: 26px !important;
    }

    h3 {
        font-size: 16px !important;
        line-height: 22px !important;
    }

    /* General */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Hero ≤360px */
    .banner_man2 h1 {
        font-size: 20px !important;
        line-height: 28px !important;
    }

    .banner_man2 h3,
    .banner_man2 .huruf_banner p,
    .banner_man2 .huruf_banner_contact p {
        font-size: 12px !important;
    }

    .banner_man2 .huruf_banner,
    .banner_man2 .huruf_banner_contact {
        padding: 14px 16px 24px !important;
    }

    .banner_man2 .hero-img {
        height: 165px !important;
        margin-top: -10px !important;
    }

    .banner_man2 .hero-img img {
        height: 180px !important;
    }

    /* Media page */
    .section-media-page-hero {
        height: 260px;
    }

    .card-article-top {
        height: 160px;
    }

    /* Berita Detail */
    .section-media-page-detail__left-content-image {
        height: 170px;
    }

    /* Product Page */
    .section-product-page__jumbroton {
        padding-top: 54px;
    }

    .section-product-page__jumbroton .--product-icon {
        top: 30px;
    }

    .section-product-page__jumbroton .--product-icon img {
        width: 200px;
    }

    .section-product-page__jumbroton .--product-name-content h4 {
        font-size: 12px !important;
        line-height: 18px !important;
    }

    .section-product-page__jumbroton .--product-name-content h2 {
        font-size: 22px !important;
        line-height: 30px !important;
    }

    .section-product-page__jumbroton .--product-name-sm {
        padding-bottom: 40px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .section-product-page__why-choose-me .get-product {
        width: 96%;
        padding: 12px;
    }

    .section-product-page__why-choose-me .get-product .start-from-right .btn-primary {
        font-size: 13px;
        padding: 8px 14px;
        width: auto;
        margin: 0;
    }

    .section-product-page__why-choose-me-product .insurance-navigation {
        width: 96%;
    }

    .section-product-page__why-choose-me-content .title {
        font-size: 20px !important;
        line-height: 28px !important;
    }

    .accordion-button2 {
        font-size: 14px !important;
        display: flex !important;
        width: 100% !important;
        padding: 10px 12px !important;
    }

    /* Fix: style.css hardcodes width:320px on this accordion at <=360px */
    .section-product-page__why-choose-me-content .product-term-and-condition .detail-product-information-box .accordion {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 12px !important;
    }

    /* Fix: style.css hardcodes width:280px on this button at <=360px */
    .section-product-page__why-choose-me-content .product-term-and-condition .detail-product-information-box .accordion-button2 {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        white-space: normal !important;
        word-break: break-word;
    }

    /* Fix: style.css has hardcoded width:300px on title at <=360px */
    .section-product-page__why-choose-me-content .product-term-and-condition-title {
        width: 100% !important;
        font-size: 20px !important;
    }

    /* Fix: style.css has hardcoded width:330px on desc at <=360px */
    .section-product-page__why-choose-me-content .product-term-and-condition-desc {
        width: 100% !important;
        font-size: 14px !important;
        margin-top: 0 !important;
    }

    /* Rating */
    .rating-card {
        padding: 16px;
    }

    .rating-card-photo,
    .rating-card-photo-placeholder {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* FAQ */
    .faq-item {
        padding: 12px;
    }

    .faq-item h3 {
        font-size: 13px;
    }

    /* Pagination */
    .pagination a,
    .pagination span {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* Buttons */
    .btn,
    button {
        padding: 9px 16px;
        font-size: 13px;
    }
}

/* ========================================
   LANDSCAPE MOBILE (max-height: 500px, landscape)
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .banner_man {
        height: auto;
        min-height: 220px;
    }

    .banner_man2 {
        min-height: 200px;
    }

    .section-media-page-hero {
        height: 220px;
        padding: 20px 16px;
    }

    .section-product-page__jumbroton {
        padding-top: 60px;
    }

    .section-product-page__jumbroton .--product-icon img {
        width: 160px;
        height: auto;
    }
}

/* ========================================
   TOUCH DEVICE IMPROVEMENTS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Minimum touch target: 44px — keep native display so layout is not broken */
    .btn,
    button,
    .pagination a,
    .pagination span,
    .faq-toggle,
    nav a,
    .body-tab-media__title-item {
        min-height: 44px;
    }

    /* accordion-button2 must stay flex+full-width — only ensure min-height */
    .accordion-button2 {
        min-height: 44px;
        display: flex !important;
        width: 100% !important;
        align-items: center;
    }

    /* Remove hover-only effects on touch */
    .card:hover,
    .card-article:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ========================================
   HIGH-DPI / RETINA SCREENS
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ========================================
   PRINT MEDIA
   ======================================== */
@media print {
    .banner_man,
    .banner_man2,
    nav,
    .pagination,
    .call-center-section,
    .hide-mobile {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    h1 { font-size: 24pt !important; }
    h2 { font-size: 18pt !important; }
    h3 { font-size: 14pt !important; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
@media (max-width: 768px) {
    .hide-mobile  { display: none !important; }
    .show-mobile  { display: block !important; }
    .text-center-mobile { text-align: center !important; }
    .full-width-mobile  { width: 100% !important; }
}

@media (min-width: 769px) {
    .hide-desktop  { display: none !important; }
    .show-desktop  { display: block !important; }
}

/* Overflow guard — prevents horizontal scroll on all viewports */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* All images are naturally responsive unless overridden */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent tables from breaking layout on small screens */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

@media (min-width: 769px) {
    table {
        display: table;
    }
}

/* ========================================
   LEGACY LAYOUT OVERRIDES
   Fix hardcoded widths from main.css that
   cause horizontal overflow on all devices.
   ======================================== */

/* --- Hero / Banner --- */
.hero video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}
.hero2 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}
.huruf_banner h1,
.huruf_banner_contact h1,
.huruf_banner_contact p {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* --- Maps --- */
#map,
#map2 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}

/* --- Contact section fixed-width boxes --- */
.info_contact {
    height: auto !important;
}
.info_contact .box-contact-mini,
.box-contact-mini2,
.box-contact-mini-xl {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}
.box-contact-mini2 {
    border-color: transparent !important;
}
.info_contact .box-contact-mini .info_contact_box,
.info_contact .box-contact-mini-xl .info_contact_box-xl,
.box-contact-mini2 .info_contact_box2 {
    width: 100% !important;
    max-width: 100% !important;
}
.box-contact-mini2 .info_contact_box3 {
    position: relative !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* --- Info / Rangka sections --- */
.info {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}
.rangka-info {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}
.box-rangka {
    border: none !important;
    max-width: 100% !important;
    height: auto !important;
}

/* --- Kotak icon --- */
.kotak_icon {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border: none !important;
}
.kotak_icon img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
}
.kotak_icon h3 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
}

/* --- Kotak-kami --- */
.kotak-kami {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
}
.kotak-kami .box h3,
.kotak-kami .box img {
    max-width: 100% !important;
    width: 100% !important;
}

/* --- Kotak mini info img overflow fix --- */
.kotak_mini_info img {
    padding-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* --- Debug colored borders removal --- */
.mobile-nav-toggle {
    border: none !important;
}
.hero_budaya {
    border: none !important;
}
.contact_info-xl h1,
.label-section-title h4 {
    border: none !important;
}
.rangka-info-sub2-gabung,
.rangka-info-sub2-kotak,
.stepper-wrapper {
    border: none !important;
}

/* --- Services / Product cards on small screens --- */
@media (max-width: 480px) {
    .services .service-item {
        margin-left: 0 !important;
    }
    .services .service-item h6 {
        width: 100% !important;
        max-width: 100% !important;
    }
    .image-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .image-container img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        position: relative !important;
        margin-left: 0 !important;
    }
    .gambar-hover {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* --- Header height on mobile --- */
@media (max-width: 768px) {
    .header {
        height: auto !important;
        min-height: 70px;
    }
}


/* --- Contact info box widths on mobile --- */
@media (max-width: 768px) {
    .box-contact-mini .info_contact_box2,
    .box-contact-mini-xl .info_contact_box2-xl {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .box-contact-mini .info_contact_box h1,
    .box-contact-mini .info_contact_box h6,
    .box-contact-mini2 .info_contact_box2 h6,
    .box-contact-mini-xl .info_contact_box-xl h1,
    .box-contact-mini-xl .info_contact_box-xl h6 {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* --- FAQ section — ensure no overflow --- */
@media (max-width: 480px) {
    .faq-container {
        padding: 0 8px !important;
    }
    .faq-item h3 {
        font-size: 14px !important;
        line-height: 20px !important;
        padding-right: 32px !important;
    }
}

/* --- Section title on very small screens --- */
@media (max-width: 360px) {
    .section-title {
        padding-bottom: 30px !important;
    }
    .section-title h2 {
        font-size: 20px !important;
    }
}

/* --- Ensure Bootstrap grid cols don't overflow --- */
@media (max-width: 575px) {
    .col-xl-3,
    .col-md-6,
    .col-lg-4,
    .col-lg-3,
    .col-lg-6 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .row {
        margin-left: -12px !important;
        margin-right: -12px !important;
    }
}
