/* =========================================================
   TENTANG NJA EXPRESS
   File: css/tentang.css
========================================================= */

.section-tentang {
    background: #ffffff;
    padding: 55px 20px 60px;
}

.section-tentang .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* layout 2 kolom */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}

/* =========================================================
   KIRI: BOX TEKS
========================================================= */

.about-main {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(0, 82, 204, 0.18);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
    padding: 28px 28px 22px;
}

.about-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark, #003b99);
    margin-bottom: 14px;
    line-height: 1.25;
}

.about-main p {
    font-size: 14px;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 12px;
}

/* tombol kanan bawah */
.about-main .about-btn-wrap {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start; /* biar lebih natural seperti company profile */
}

.about-main .btn-about {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;
    border-radius: 999px;
    background: var(--accent, #ff1b1c);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 10px 22px rgba(230, 0, 0, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.about-main .btn-about:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(230, 0, 0, 0.42);
    filter: brightness(1.03);
}

/* =========================================================
   KANAN: PHOTO CARD (LOGO + OVERLAY TEKS)
========================================================= */

.about-media {
    display: flex;
    align-items: stretch;
}

/* ✅ tinggi card dibuat konsisten (biar logo tidak “nge-stretch”) */
.about-photo-card {
    position: relative;
    width: 100%;
    min-height: 420px; /* <--- penting: biar proporsional */
    border-radius: 22px;
    overflow: hidden;

    background: radial-gradient(
        circle at 20% 10%,
        #0b4a6b,
        #062b43 70%,
        #041a2a
    );
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.06);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

/* ✅ Logo dibuat “lebih kecil & rapi” */
.about-photo-img {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;

    /* penting: jangan biarkan logo memenuhi tinggi */
    object-fit: contain;
    object-position: center;

    /* “frame” putih halus supaya logo terlihat premium */
    background: rgba(255, 255, 255, 0.92);
    padding: 36px;

    /* bikin logo tidak tampak “kepotong” oleh overlay */
    box-sizing: border-box;
}

/* ✅ overlay dibuat hanya dominan di bawah, bukan menutup semuanya */
.about-photo-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;

    padding: 18px 18px 18px;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.28) 45%,
        rgba(0, 0, 0, 0.05) 70%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* ✅ pastikan warna teks overlay selalu putih (tidak ketimpa typography global) */
.about-photo-overlay,
.about-photo-overlay h3,
.about-photo-overlay p {
    color: #ffffff !important;
}

/* badge “Sejak 2019” dibuat lebih kecil dan tidak full lebar */
.about-badge {
    align-self: flex-start; /* tidak lagi center full */
    width: auto;
    max-width: none;

    padding: 6px 12px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* judul overlay */
.about-photo-overlay h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

/* deskripsi overlay */
.about-photo-overlay p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    opacity: 0.95;
    max-width: 92%;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-photo-card {
        min-height: 360px;
    }

    .about-photo-img {
        padding: 28px;
    }
}

@media (max-width: 600px) {
    .about-main {
        padding: 20px 18px 18px;
        border-radius: 18px;
    }

    .about-title {
        font-size: 20px;
    }

    .about-photo-card {
        min-height: 320px;
        border-radius: 18px;
    }

    .about-photo-img {
        padding: 22px;
    }

    .about-photo-overlay {
        padding: 14px 14px 14px;
    }
}
