/* * {
    line-height: 1.2;
} */

@media (min-width: 768px) {
    /* GENERAL */
    .grid-cols-3 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.md:text-30px {
    font-size: 30px !important;
}

.text-about-3 {
    font-size: 36px !important;
}
.hire-intro {
    text-align: center;
    font-size: 160px;
    line-height: 1;
}
.header-web img {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    width: 150px;
    margin: auto;
}

@media (max-width: 768px) {
    .text-30px {
        font-size: 30px !important;
    }

    .text-about-3 {
        font-size: 20px !important;
    }

    .header-web img {
        position: absolute;
        left: 24px;
        right: 24px;
    }

    .border-footer {
        display: none !important;
    }

    .dark .border-footer {
        display: block;
    }
}

@media (min-width: 768px) {
    .md\:gap-y-12 {
        row-gap: 2rem !important;
    }
}

.col-span-1 {
    grid-column: span 1;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-5 {
    grid-column: span 5;
}

.col-span-6 {
    grid-column: span 6;
}

/* Responsif untuk ukuran layar minimum 768px (setara dengan md di Tailwind) */
@media (min-width: 768px) {
    /* Contoh untuk span 2 kolom di layar medium ke atas */
    .md\:col-span-1 {
        grid-column: span 1;
    }

    .md\:col-span-2 {
        grid-column: span 2;
    }

    .md\:col-span-3 {
        grid-column: span 3;
    }

    .md\:col-span-4 {
        grid-column: span 4;
    }

    .md\:col-span-5 {
        grid-column: span 5;
    }

    .md\:col-span-6 {
        grid-column: span 6;
    }
}
.order-1 {
    order: 1;
}
.order-2 {
    order: 2;
}

/* NAVBAR */
.custom-navbar {
    position: fixed;
    width: 100%;
    background-color: transparent;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    transition: background-color 0.3s ease, width 0.3s ease, top 0.3s ease,
        padding 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

/* Navbar saat sudah discroll */
.custom-navbar.scrolled {
    width: 60%;
    margin: auto;
    top: 16px;
    background-color: rgba(255, 255, 255, 0.8); /* Transparansi */
    border-radius: 100px;
    padding: 16px 24px;
    backdrop-filter: blur(15px); /* Meningkatkan efek blur saat scroll */
}

.custom-navbar.scrolled .navbar-link {
    color: rgb(0 0 0 / var(--tw-text-opacity));
}

.custom-navbar.scrolled .navbar-link:hover {
    color: rgb(115 115 115);
}

body.menu-open .custom-navbar {
    width: 100% !important;
    top: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    padding: 28px 24px !important;
}

.dark .custom-navbar.scrolled {
    background-color: rgba(000, 000, 000, 0.5);
}

.dark .custom-navbar.scrolled .navbar-link {
    color: #fff;
    opacity: 0.75;
}

/* Overlay */
#mobile-menu-overlay {
    pointer-events: auto;
    z-index: 100;
}

#mobile-menu-overlay {
    z-index: 300;
}
@media (min-width: 768px) {
    .custom-navbar.scrolled {
        width: 60%;
        margin: auto;
        top: 16px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 100px;
        padding: 16px 24px;
        backdrop-filter: blur(15px);
    }
}

@media (max-width: 767px) {
    .custom-navbar.scrolled {
        width: 90%;
        top: 16px;
        padding: 12px 18px;
        border-radius: 100px;
        background-color: rgba(255, 255, 255, 0.8); /* biar ada efek shrink */
        backdrop-filter: blur(12px);
    }

    body.menu-open .custom-navbar {
        width: 100% !important;
        top: 0 !important;
        border-radius: 100px !important;
        background-color: transparent !important;
        padding: 28px 24px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .custom-navbar.scrolled {
        width: 60%;
    }
}

@media (min-width: 1280px) {
    .custom-navbar.scrolled {
        width: 60%;
    }
}

#mobile-menu-overlay #mobile-brand-text {
    color: #fff !important;
}

/* Section */
/* Your Custom CSS Goes here */
@media (min-width: 1024px) {
    .page-intro {
        font-size: 3.75rem;
    }
}
@media (min-width: 768px) {
    .page-intro {
        font-size: 3.4375rem;
    }
}
@media (min-width: 640px) {
    .page-intro {
        font-size: 2.8125rem;
    }
}
.page-intro {
    font-family: Untitled-Serif;
    font-size: 2.1875rem;
    line-height: 1.2;
    /* letter-spacing: 1px; */
}

/* FAQ */

.hs-accordion .question {
    font-size: 30px !important;
}

@media (max-width: 767px) {
    .hs-accordion .question {
        font-size: 24px !important;
    }
}

.hs-accordion .answer,
.hs-accordion .answer *,
.hs-accordion .answer font,
.hs-accordion .answer div,
.hs-accordion .answer span,
.hs-accordion .answer font {
    font-size: 1.125rem !important;
    line-height: 1.2;
}

.answer ul {
    list-style-type: square !important;
}

.hs-accordion svg {
    fill: #000;
}

.dark .hs-accordion svg {
    fill: #fff;
}

/* ===== Accordion Icon Animation ===== */
.hs-accordion .rotate-icon {
    transition: transform 0.3s ease, stroke 0.3s ease;
}

/* Ketika accordion dibuka */
.hs-accordion.active .rotate-icon {
    transform: rotate(180deg);
}

/* Gaya tambahan agar terasa lebih halus */
.hs-accordion .rotate-icon path {
    stroke: #000;
}

/* ===== Icon animation tanpa Tailwind ===== */
.icon-wrap {
    display: inline-flex;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Saat accordion aktif (Preline menambah class .active) → rotasi 180deg */
.hs-accordion.active .icon-wrap {
    transform: rotate(-180deg);
}

/* Opsional: ubah warna ikon saat aktif */
.hs-accordion.active .icon-wrap {
    color: #000; /* ganti sesuai selera */
}

/* Pastikan kedua SVG mengikuti warna teks saat ini */
.icon-wrap svg path {
    transition: stroke 0.3s ease;
}

.dark .hs-accordion .rotate-icon path {
    stroke: #fff;
}

.dark .hs-accordion.active .icon-wrap {
    color: #fff; /* ganti sesuai selera */
}

.border-footer {
    display: none !important;
}

/* Homepage */

/* About */
.about-content p {
    font-size: 1.25rem !important;
    line-height: 1.5em !important;
}

.about-accordion {
    font-size: 1.875rem !important;
}

.page-about ul {
    list-style-type: square;
    margin-left: 1.25em;
}
@media (max-width: 767px) {
    .team-row {
        gap: unset !important;
        row-gap: 1.5rem !important;
    }

    .about-accordion {
        font-size: 1.5rem !important;
    }
}

.team {
    --radius: 12px;
    --overlay-bg: rgba(0, 0, 0, 0.55);
    --img-h: 420px; /* tinggi default gambar di desktop */
    --img-h-sm: 340px; /* tinggi gambar di mobile */
}

/* Kartu tim (gambar + overlay hover) */
.team .team-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    outline: none;
    align-self: start; /* override items-stretch */
    transition: transform 0.25s ease;
}
.team .team-card::focus {
    box-shadow: unset !important;
}

.team .team-card:hover {
    transform: translateY(-2px);
}
.team .team-card:active {
    transform: translateY(-1px) scale(0.995);
}

/* Fokus keyboard (aksesibilitas) */
.team .team-card:focus-visible {
    box-shadow: 0 0 0 3px #000; /* Tailwind focus:ring-black equivalent */
}

/* Gambar */
.team .team-card img {
    display: block;
    width: 100%;
    height: var(--img-h);
    object-fit: cover;
    object-position: center top;
}

/* Hover Overlay (nama & jabatan muncul saat hover/focus) */
.team .team-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    color: #fff;
    display: flex;
    align-items: end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.team .team-card:hover .team-overlay,
.team .team-card:focus-visible .team-overlay {
    opacity: 1;
}

.team .team-overlay h3 {
    font-size: 1.125rem; /* ~text-xl */
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 4px 0;
}

.team .team-overlay p {
    font-size: 0.875rem; /* ~text-sm */
    opacity: 0.9;
    margin: 0;
}

/* Panel detail (muncul saat salah satu card dipilih)
     Catatan: visibilitas dikontrol JS dengan class Tailwind `hidden`.
     Di sini hanya styling tampilan. */
.team .team-detail {
    background: #000;
    color: #fff;
    padding: 1.25rem; /* 20px */
}
/* 
@media (max-width: 767px) {
    .team .team-detail {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: inherit;
        z-index: 1000;
    }
} */

/* Tombol Close di panel detail */
.team .team-detail button {
    cursor: pointer;
}

.team-detail-paragraph {
    max-height: 375px !important;
    overflow: auto;
}

/* Responsif: tinggi gambar lebih pendek di mobile */
@media (max-width: 767px) {
    .team .team-card img {
        height: var(--img-h-sm);
    }

    .team-detail-paragraph {
        height: calc(100vh - 200px) !important;
    }

    .teams-name {
        margin-bottom: 16px;
    }

    .teams-position {
        margin-bottom: 16px;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .team .team-card,
    .team .team-overlay {
        transition: none;
    }
}

/* pastikan item grid boleh stretch */
#teamRow {
    align-items: stretch;
}

/* samakan tinggi detail dengan tinggi gambar */
.team .team-detail {
    height: 100%;
}

@media (min-width: 768px) {
    .team .team-detail {
        min-height: var(--img-h);
    } /* default 420px */
}
@media (max-width: 767px) {
    .team .team-detail {
        min-height: var(--img-h-sm);
    } /* default 340px */
}

.team .teams-name {
    margin-left: 0px;
    text-align: left;
}

.team .teams-position {
    margin-top: 16px;
    text-align: left;
}

/* Work */

/* News */

/* Contact */
.btn-hire-us {
    background-color: #303030;
}
.btn-hire-us:hover {
    background-color: #5b5b5b;
}

/* Hire us */
.hire-us .title {
    font-weight: 400;
    font-size: 30px;
    margin-bottom: 24px;
}
.hire-us .btn {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 100px;
    color: #fff;
    font-size: 20px;
}

/* === Underline-only fields === */
.hire-us input,
.hire-us select,
.hire-us textarea {
    background: transparent;
    color: var(--text);
    border: none;
    border-bottom: 2px solid var(--input);
    border-radius: 0;
    padding: 14px 0 10px 0; /* atas | kanan | bawah | kiri */
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
    font-size: 28px;
}

/* Focus state */
.hire-us input:focus,
.hire-us select:focus,
.hire-us textarea:focus {
    border-bottom-color: var(--accent);
    background: transparent; /* pastikan tidak ada fill */
    box-shadow: none;
}

/* Placeholder & disabled */
.hire-us ::placeholder {
    color: var(--muted);
    opacity: 0.75;
}
.hire-us input:disabled,
.hire-us select:disabled,
.hire-us textarea:disabled {
    opacity: 0.6;
    border-bottom-color: #444;
}

/* Error state yang cocok dengan underline */
.hire-us .error {
    border-bottom-color: #ff6868 !important;
}
.hire-us .error-text {
    margin-top: 6px;
}

/* Hapus styling bawaan select agar rapi sebagai underline */
.hire-us select {
    -webkit-appearance: none;
    appearance: none;
    background-image: none; /* hilangkan arrow bawaan */
    padding-right: 24px; /* ruang untuk pseudo-arrow jika mau ditambah */
}

/* (Opsional) tambahkan arrow kecil sendiri di kanan select */
.hire-us select:after {
    display: none;
}
