/* start hero content */
.main-content {
    flex-grow: 1;
    padding-top: 60px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    padding: 30px;
    margin: auto;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: bold;
    color: #162C60;
}

.hero-content p {
    color: #949BB8;
    font-size: 16px;
    margin: 15px 0;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background-color: #006EFF;
    color: white;
    padding: 12px 20px;
    /* border-radius: 25px; */
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background-color: #0056D2;
    color: #fff;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 50px;
    padding: 12px; 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3); /* shadow lebih tebal saat hover */
}



/* Desktop Screen (min-width: 1025px) */
@media (min-width: 1025px) {
    .hero {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

/* Tablet Screen (1024px - 768px) */
@media (max-width: 1024px) {
    .hero {
        flex-direction: row;
        gap: 20px;
        padding: 30px;
        margin: 40px 10px;
    }

    .hero-content {
        max-width: 600px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-image {
        max-width: 500px;
    }

    .hero-image img {
        padding: 0px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* Mobile Screen (767px and below) */
@media (max-width: 767px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-top: 20px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-image {
        padding: 0 !important;
        max-width: 300px;
    }

    .hero-image img {
        max-width: 100%;
        padding: 0 !important;
    }
}

/* end hero section */




/* start services*/
.services {
    padding: 50px 20px;
}

.services h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 50px;
    text-align: center;
    color: #162C60;
}

/* Grid Container */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 1000px;
    margin: auto;
}

/* Service Item */
.service-item {
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s ease-in-out;
}

.service-item:hover {
    transform: translateY(-5px);
}

/* Icon Container */
.service-icon {
    background-color: #E0ECFF;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50px;
    margin-bottom: 20px;
}

/* Icon Image */
.service-icon img {
    width: 40%;
    height: auto;
    object-fit: contain;
}

/* Title */
.service-item h3 {
    font-size: 20px;
    font-weight: bold;
    color: #162C60;
    margin-bottom: 10px;
}

/* Description */
.service-item p {
    font-size: 16px;
    color: #949BB8;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-icon {
        width: 100px;
        height: 80px;
    }

    .service-icon img {
        width: 50%;
    }

    .services h2 {
        font-size: 24px;
    }

    .service-item h3 {
        font-size: 18px;
    }

    .service-item p {
        font-size: 15px;
    }
}

/* end services */


/* start running text */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: #0066FF;
    padding: 10px 0;
    white-space: nowrap;
    position: relative;
}

.marquee {
    display: flex;
    width: max-content;
    /* Supaya lebar sesuai isi teks */
    animation: marquee 45s linear infinite;
}

.marquee span {
    font-size: 16px;
    font-weight: bold;
    color: white;
    display: inline-block;
    padding-right: 10px;
    /* Jarak antar teks */
}

/* Animasi Infinite Scrolling */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Responsive for Tablets and Mobile */
@media (max-width: 992px) {
    .marquee-container {
        padding: 8px 0;
    }

    .marquee span {
        font-size: 16px;
        padding-right: 8px;
    }

    .marquee {
        animation-duration: 35s;
    }
}

@media (max-width: 768px) {
    .marquee-container {
        padding: 6px 0;
    }

    .marquee span {
        font-size: 15px;
        padding-right: 6px;
    }

    .marquee {
        animation-duration: 35s;
    }
}

@media (max-width: 576px) {
    .marquee-container {
        padding: 5px 0;
    }

    .marquee span {
        font-size: 14px;
        padding-right: 5px;
    }

    .marquee {
        animation-duration: 35s;
    }
}

/* end running text */

/* start section emergency  */
.emergency-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF9F9 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.emergency-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
}

.emergency-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.emergency-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.emergency-section-visual {
    position: relative;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(184, 0, 0, 0.05);
}

.emergency-section-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.emergency-section-visual:hover .emergency-section-image {
    transform: scale(1.02);
}

.emergency-section-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #E60000;
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
    z-index: 2;
}

.emergency-section-badge-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.emergency-section-badge-content i {
    font-size: 16px;
}

.emergency-section-tag {
    display: inline-block;
    background: rgba(184, 0, 0, 0.1);
    color: #B80000;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.emergency-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.3;
}

.emergency-section-description {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.emergency-section-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.emergency-call{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.emergency-call {
    background: #E60000;
    color: white;
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.2);
}

.emergency-call:hover {
    background: #C50000;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(230, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .emergency-section-grid {
        gap: 40px;
    }

    .emergency-section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .emergency-section {
        padding: 60px 0;
    }

    .emergency-section-content {
        text-align: center;
    }

    .emergency-section-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .emergency-section-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .emergency-section-title {
        font-size: 28px;
    }

    .emergency-section-buttons {
        flex-direction: column;
    }

    .emergency-call {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .emergency-section {
        padding: 40px 0;
    }

    .emergency-section-title {
        font-size: 24px;
    }

    .emergency-call{
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* end section emergency  */

/* start kolaborasi */
.collab-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 30px;
    max-width: 1200px;
    margin: auto;
}

.collab-content {
    max-width: 50%;
}

.collab-content h2 {
    font-size: 36px;
    font-weight: bold;
    color: #162C60;
}

.collab-content p {
    color: #949BB8;
    font-size: 16px;
    margin: 15px 0;
    line-height: 1.8;
}

.collab-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    /* Agar tombol tetap rapi jika ruang terbatas */
}

.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    min-width: 120px;
    /* Ukuran minimum agar tetap proporsional */
}

.btn-primary {
    background-color: #006EFF;
    color: white;
    border: 2px solid #006EFF;
}

.btn-primary:hover {
    background-color: #0056D2;
    border-color: #0056D2;
}

.btn-outline {
    background-color: transparent;
    color: #006EFF;
    border: 2px solid #006EFF;
}

.btn-outline:hover {
    background-color: #006EFF;
    color: white;
}

.collab-image {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin-right: 0;
}

.collab-image img {
    width: 100%;
    max-width: 500px;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    border-radius: 20px;
}

/* ============ RESPONSIVE ============ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .collab-section {
        flex-direction: row;
        padding: 30px 30px 50px 30px;
        gap: 30px;
    }

    .collab-content {
        max-width: 50%;
    }

    .collab-content h2 {
        font-size: 32px;
    }

    .collab-buttons {
        gap: 10px;
    }

    .collab-image {
        max-width: 80%;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .collab-section {
        padding: 20px 20px 50px 20px;
        gap: 20px;
        flex-direction: column-reverse;
        /* Susunan vertikal */
    }

    .collab-content {
        max-width: 100%;
        text-align: center;
    }

    .collab-content h2 {
        font-size: 24px;
        /* Ukuran lebih kecil */
    }

    .collab-content p {
        font-size: 14px;
    }

    .collab-buttons {
        display: flex;
        gap: 10px;
        justify-content: center;
        /* Posisi ke tengah */
        flex-wrap: nowrap;
        /* Agar tombol tidak turun ke bawah */
    }

    .btn-primary,
    .btn-outline {
        width: auto;
        /* Ukuran tombol otomatis sesuai konten */
        padding: 8px 16px;
        /* Ukuran tombol lebih kecil */
        font-size: 13px;
        /* Font lebih kecil */
    }

    .collab-image {
        max-width: 100%;
        margin-top: 20px;
        /* Jarak antara gambar dan konten */
    }
}

/* end kolaborasi */


/* start donor section */
.donor-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 30px;
    width: 100%;
    margin: auto;
    background-color: #F2F7FF;
    margin-bottom: 70px;
}

.donor-container {
    display: flex;
    align-items: center;
    width: 100%;
    /* Menjamin container mengambil lebar penuh */
    gap: 20px;
}

.donor-image {
    position: relative;
    width: 50%;
    display: flex;
    justify-content: center;
    /* Menjaga gambar agar berada di tengah */
}

.donor-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    padding-left: 0;
    border-radius: 20px;
}

.donor-content {
    width: 50%;
}

.donor-content h2 {
    font-size: 36px;
    font-weight: bold;
    color: #162C60;
    margin-bottom: 25px;
}

.donor-content p {
    color: #949BB8;
    font-size: 16px;
    margin: 15px 0;
    line-height: 1.8;
    margin-bottom: 40px;
}

.btn-donor {
    display: inline-block;
    background-color: #006EFF;
    color: white;
    padding: 12px 20px;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-donor i {
    margin-right: 8px;
    font-size: 24px;
    vertical-align: middle;
}


.btn-donor:hover {
    background-color: #0056D2;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .donor-section {
        padding: 30px;
        /* Menyesuaikan padding untuk tablet */
    }

    .donor-container {
        gap: 40px;
    }

    .donor-image {
        width: 45%;
    }

    .donor-content {
        width: 55%;
    }

    .donor-content h2 {
        font-size: 32px;
        /* Mengurangi ukuran font untuk tablet */
    }

    .donor-content p {
        font-size: 16px;
        /* Mengurangi ukuran font untuk tablet */
    }

    .btn-donor {
        padding: 10px 18px;
        /* Menyesuaikan ukuran tombol */
        font-size: 14px;
        /* Menyesuaikan ukuran font tombol */
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .donor-section {
        padding: 30px;
    }

    .donor-container {
        flex-direction: column;
        gap: 30px;
    }

    .donor-image {
        width: 100%;
        /* Membuat gambar memenuhi lebar pada mobile */
        justify-content: center;
    }

    .donor-content {
        width: 100%;
        text-align: center;
        /* Menyelaraskan teks ke tengah */
    }

    .donor-content h2 {
        font-size: 24px;
        /* Mengurangi ukuran font pada mobile */
    }

    .donor-content p {
        font-size: 14px;
        /* Mengurangi ukuran font pada mobile */
    }

    .btn-donor {
        padding: 10px 20px;
        /* Mengurangi ukuran padding tombol */
        width: 100%;
        /* Membuat tombol memenuhi lebar */
    }
}

/* Extra Small (max-width: 480px) */
@media (max-width: 480px) {
    .donor-section {
        padding: 20px;
    }

    .donor-container {
        gap: 20px;
    }

    .donor-content h2 {
        font-size: 24px;
    }

    .btn-donor {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* end donor section */




/* start layanan section */

.layanan-section {
    position: relative;
    background-size: cover;
    border-radius: 20px;
    color: white;
    overflow: hidden;
    max-width: 1000px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    height: 250px;
    /* Atur sesuai tinggi gambar yang kamu gunakan */
    padding: 40px;
}

.layanan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 110, 255, 0.85), rgba(2, 42, 94, 0.3));
    z-index: 1;
}

.layanan-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.layanan-content h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.layanan-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: white;
}

.btn-lihat {
    display: inline-block;
    background-color: white;
    color: #006eff;
    padding: 10px 20px;
    border-radius: 0.375rem;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-lihat:hover {
    background-color: #e0e0e0;
}


/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .layanan-section {
        padding: 30px;
        height: 220px;
        max-width: 100%;
        margin: 30px;
    }

    .layanan-content {
        max-width: 70%;
        /* Mengurangi lebar konten untuk tablet */
    }

    .layanan-content h2 {
        font-size: 22px;
        /* Mengurangi ukuran font untuk judul */
    }

    .layanan-content p {
        font-size: 16px;
        /* Mengurangi ukuran font untuk paragraf */
    }

    .btn-lihat {
        padding: 10px 18px;
        font-size: 13px;
        /* Menyesuaikan ukuran tombol */
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .layanan-section {
        flex-direction: column;
        padding: 20px;
        height: auto;
        /* Membuat tinggi adaptif pada mobile */
        max-width: 80%;
    }

    .layanan-content {
        max-width: 100%;
    }

    .layanan-content h2 {
        font-size: 20px;
        /* Menyesuaikan ukuran font judul di mobile */
    }

    .layanan-content p {
        font-size: 14px;
        /* Menyesuaikan ukuran font paragraf di mobile */
        margin-bottom: 20px;
        /* Mengurangi jarak bawah untuk p */
    }

    .btn-lihat {
        padding: 10px 20px;
        font-size: 14px;
        /* Ukuran tombol sedikit lebih besar */
        width: 100%;
        /* Tombol memenuhi lebar layar pada mobile */
        text-align: center;
        /* Tombol ditengah */
    }
}

/* Extra Small (max-width: 480px) */
@media (max-width: 480px) {
    .layanan-section {
        padding: 30px;
        max-width: 100%;
        margin: 20px;
    }

    .layanan-content h2 {
        font-size: 18px;
        /* Mengurangi ukuran font judul di ponsel kecil */
    }

    .layanan-content p {
        font-size: 12px;
        /* Mengurangi ukuran font di ponsel kecil */
    }

    .btn-lihat {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* end layanan section */

/* start testimoni section */
.testimoni-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: auto;
    min-height: 300px;
    margin-top: 70px;
    margin-bottom: 50px;
}

.testimoni-image {
    display: flex;
    justify-content: center;
}

.testimoni-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 60px 20px 20px 20px;
    max-height: 300px;
}

.testimoni-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.testimoni-content h3 {
    font-size: 28px;
    color: #0A1E64;
    font-weight: bold;
}

.testimoni-content p {
    font-size: 16px;
    color: #6B7A99;
    line-height: 1.6;
    min-height: 40px;
}

.testimoni-name {
    font-weight: bold;
    color: #0A1E64;
}

.carousel-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.carousel-controls button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

.carousel-controls button:hover {
    background: #0A1E64;
    color: #fff;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .testimoni-section {
        gap: 30px;
        padding: 30px;
        flex-wrap: wrap;
    }

    .testimoni-image {
        flex: 0 0 40%;
    }

    .testimoni-image img {
        width: 100%;
        max-height: 250px;
        /* Kurangi tinggi gambar */
    }

    .testimoni-content {
        flex: 1;
        padding-left: 0;
        text-align: left;
        gap: 10px;
    }

    .testimoni-content h3 {
        font-size: 24px;
    }

    .testimoni-content p {
        font-size: 14px;
    }

    .carousel-controls {
        gap: 8px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .testimoni-section {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .testimoni-image {
        flex: 0 0 100%;
        justify-content: center;
    }

    .testimoni-image img {
        width: 100%;
        max-height: 250px;
        border-radius: 30px 10px 10px 10px;
        /* Kurangi radius agar proporsional */
    }

    .testimoni-content {
        width: 100%;
        text-align: center;
    }

    .testimoni-content h3 {
        font-size: 22px;
    }

    .testimoni-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .carousel-controls {
        gap: 6px;
        justify-content: center;
    }
}

/* end testimoni section */



/* start faq */
.faq-container {
    padding: 50px 20px;
    max-width: 900px;
    margin: 0 auto 50px auto;
    border-radius: 12px;
}

.desc-faq {
  color: #949BB8;
  font-size: 16px;
  margin: 5px 0;
  line-height: 1.6;
  width: 700px;
}

.faq-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #162C60;
}

.faq-item {
    border-bottom: 1px solid #dce3f1;
    padding: 12px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    margin-bottom: 10px;
}

.faq-question:hover {
    color: #304a8a;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 16px;
    color: #4b4b4b;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.faq-answer.show {
    max-height: 500px;
    opacity: 1;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .faq-container {
        max-width: 750px;
        padding: 40px 20px;
    }

    .faq-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .faq-question {
        font-size: 17px;
    }

    .faq-answer {
        font-size: 15px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .faq-container {
        max-width: 600px;
        padding: 30px 15px;
    }

    .faq-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 14px;
    }
}

/* Extra Small (max-width: 480px) */
@media (max-width: 480px) {
    .faq-container {
        max-width: 90%;
        padding: 20px 10px;
    }

    .faq-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .faq-question {
        font-size: 15px;
    }

    .faq-answer {
        font-size: 13px;
    }
}

/* end faq */