@media (min-width: 768px) {
    .modal-dialog {
        width: 900px;
        margin: 30px auto;
    }
}

@media (max-width: 920px) {
    .modal-dialog {
        width: 700px;
        margin: 30px auto;
    }
}

/* ========================================================
   GLOBAL HIGH-CONTRAST READABLE TYPOGRAPHY
   (Disamakan dengan font konten Visi & Misi: #222, solid & jelas terbaca)
   ======================================================== */

/* Content paragraphs, about us, descriptions */
.text-content p,
.text-content-big p,
.text-content-small p,
.text-content,
.text-content-big {
    color: #222222 !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
}

/* Section heading subtitles & intro text */
.section-heading p {
    color: #222222 !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

/* Primary lists (Visi & Misi) */
.primary-list li {
    color: #222222 !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
}

/* Halaman Tentang Kami - Informasi Legalitas & Blok Grey */
.section-block-grey p,
.section-block p {
    color: #222222;
    font-size: 15px;
    line-height: 1.8;
}

.section-block-grey p.text-center {
    color: #334155 !important;
    font-size: 15px;
    line-height: 1.85;
}

.section-block-grey p.text-center b {
    color: #0f172a !important;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    margin-top: 2px;
}

/* Service cards descriptions (Halaman Layanan & Beranda) */
.service-card-desc,
.service-box-text p,
.services-section p,
.services-page-section p {
    color: #334155 !important;
    font-size: 14px;
    line-height: 1.7;
}

/* Halaman Portofolio: deskripsi proyek, accordion & tabel */
.panel-grey .panel-body,
.panel-grey .panel-body p,
.accordion-body,
.accordion-body p,
.project-single-text p,
.project-info-shortcode-text p {
    color: #222222 !important;
    font-size: 14.5px;
    line-height: 1.8;
}

.panel-grey .panel-body table td,
.panel-grey .panel-body table th {
    color: #222222 !important;
    font-size: 14px;
}

/* Halaman Galeri: deskripsi album */
.gallery-album-desc {
    color: #334155 !important;
    font-size: 14px;
    line-height: 1.65;
}

/* Halaman Kontak: kartu informasi kontak */
.contact-info-section p {
    color: #222222 !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.contact-info-section h4 {
    color: #0f172a !important;
    font-weight: 700;
}

/* Form input, labels, text */
form label,
form .form-control {
    color: #222222 !important;
}

/* ========================================================
   CRITICAL: PRESERVE FOOTER EXACTLY AS EXISTING
   (Pastikan footer tetap seperti existing karena sudah jelas terbaca)
   ======================================================== */
footer p {
    color: #94a3b8 !important;
}

footer strong {
    color: #ffffff !important;
}

footer h3 {
    color: #ffffff !important;
}

footer a {
    color: #94a3b8 !important;
}

footer a:hover {
    color: #f08715 !important;
}

footer .footer-bar p {
    color: #64748b !important;
}

/* Preserve dark parallax counter text */
.counter-stat-box p {
    color: #94a3b8 !important;
}

.counter-stat-box h4,
.counter-stat-box h3 {
    color: #ffffff !important;
}

/* ========================================================
   NAVBAR COMPACT & PROPORTIONAL HEIGHT (~74px)
   - Logo jelas, proporsional, rasio terjaga
   - Menu bernafas lega (tidak mepet)
   - Tidak ada gap putih di bawah navbar (.nav-wrapper disinkronkan)
   ======================================================== */
.nav-wrapper {
    min-height: 74px !important;
    height: auto !important;
}

.navbar-custom {
    min-height: 74px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.navbar-header-custom {
    padding: 8px 0px !important;
}

.navbar-logo {
    display: inline-block;
    line-height: 58px;
    padding: 0;
}

.navbar-logo img {
    height: 58px !important;
    max-height: 58px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.navbar-custom .navbar-links-custom li {
    padding: 15px 0px !important;
}

.navbar-custom .navbar-links-custom li a {
    padding: 12px 18px !important;
    line-height: 20px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
    transition: all 0.25s ease !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
    background-color: #f08715 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(240, 135, 21, 0.3) !important;
}

@media (max-width: 1200px) {
    .nav-wrapper {
        min-height: 64px !important;
    }
    .navbar-custom {
        min-height: 64px !important;
    }
    .navbar-header-custom {
        padding: 8px 0 !important;
    }
    .navbar-logo img {
        height: 48px !important;
        max-height: 48px !important;
    }
    .navbar-custom .navbar-links-custom li {
        padding: 0 !important;
    }
    .navbar-custom .navbar-links-custom li a {
        padding: 12px 16px !important;
        border-radius: 0 !important;
    }
}

/* ========================================================
   HOMEPAGE SERVICES SECTION - UNIFORM EQUAL HEIGHT PER ROW
   ======================================================== */
.services-equal-row {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-flex-wrap: wrap !important;
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
}

.services-equal-row:before,
.services-equal-row:after {
    display: none !important;
}

.services-equal-row > [class*='col-'] {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-flex-direction: column !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    margin-bottom: 30px;
}

.services-equal-row .service-card-item {
    width: 100% !important;
    height: 100% !important;
    margin-bottom: 0 !important;
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-flex-direction: column !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    -webkit-box-pack: start !important;
    -webkit-justify-content: flex-start !important;
    -ms-flex-pack: start !important;
    justify-content: flex-start !important;
}

.services-equal-row .service-card-title {
    min-height: 44px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
}

.services-equal-row .service-card-desc {
    -webkit-box-flex: 1 !important;
    -webkit-flex-grow: 1 !important;
    -ms-flex-positive: 1 !important;
    flex-grow: 1 !important;
    margin-bottom: 0 !important;
}


/* ========================================================
   HOMEPAGE NEW SECTIONS: WORKFLOW, EQUIPMENT & TWO-TIER CLIENTS
   ======================================================== */
.workflow-section {
    background: #0b1a2d;
    padding: 85px 0 90px 0;
    position: relative;
    overflow: hidden;
}

.workflow-section .section-heading span {
    color: #f08715;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
}

.workflow-section .section-heading h3 {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 30px;
    margin-top: 10px;
    letter-spacing: -0.3px;
}

.workflow-section .section-heading p {
    color: #94a3b8 !important;
    font-size: 15px;
    line-height: 1.7;
}

.workflow-timeline-wrapper {
    position: relative;
    margin-top: 50px;
}

@media (min-width: 992px) {
    .workflow-timeline-line {
        position: absolute;
        top: 36px;
        left: 8%;
        right: 8%;
        height: 2px;
        background: linear-gradient(90deg, rgba(240, 135, 21, 0.2) 0%, rgba(240, 135, 21, 0.8) 50%, rgba(240, 135, 21, 0.2) 100%);
        z-index: 1;
    }
}

.workflow-step-card {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 10px 12px;
    margin-bottom: 25px;
}

.workflow-step-number {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: #0f253e;
    border: 2px solid #f08715;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(240, 135, 21, 0.25);
    transition: all 0.3s ease;
}

.workflow-step-card:hover .workflow-step-number {
    background: #f08715;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(240, 135, 21, 0.5);
}

.workflow-step-title {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.35;
}

.workflow-step-desc {
    color: #94a3b8 !important;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Equipment Section */
.equipment-section {
    background: #ffffff;
    padding: 85px 0 90px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.equipment-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 28px 22px 24px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
}

.equipment-card:hover {
    background: #ffffff;
    border-color: #f08715;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(240, 135, 21, 0.12);
}

.equipment-icon-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.equipment-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: rgba(7, 117, 152, 0.1);
    color: #077598;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
}

.equipment-card:hover .equipment-icon-circle {
    background: #f08715;
    color: #ffffff;
}

.equipment-badge-pill {
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.equipment-title {
    color: #0f172a !important;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.equipment-desc {
    color: #64748b !important;
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 16px;
    flex-grow: 1;
}

.equipment-specs-wrap {
    border-top: 1px dashed #cbd5e1;
    padding-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.equipment-spec-tag {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #077598;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Client 4 Pillars */
.client-pillar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #077598;
    border-radius: 8px;
    padding: 24px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
}

.client-pillar-card.pillar-orange {
    border-top-color: #f08715;
}

.client-pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.client-pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #077598;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.client-pillar-card.pillar-orange .client-pillar-icon {
    color: #f08715;
    background: #fff7ed;
}

.client-pillar-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a !important;
    margin-bottom: 4px;
    line-height: 1.35;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.client-pillar-sector {
    font-size: 11.5px;
    font-weight: 700;
    color: #f08715;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.client-pillar-desc {
    font-size: 13px;
    color: #475569 !important;
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
}

.client-pillar-tags {
    font-size: 11px;
    color: #077598;
    font-weight: 600;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}
