@media (max-width: 767.98px) {
    .fiturcard {
        display: none;
    }

    .slider1 {
        display: block !important;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .hero-section {
        height: 50vh !important;
    }

    .hero-section h1 {
        font-size: 42px !important;
    }

    .hero-section p {
        width: 700px !important;
    }

    .content-box {
        width: 48%;
    }

    .image-box {
        width: 48%;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .hero-section {
        height: 30rem;
    }

    .hero-section h1 {
        font-size: 36px !important;
        width: 600px !important;
    }

    .hero-section p {
        width: 600px !important;
    }

    .card-container {
        height: 250px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-description {
        font-size: 13px;
    }

    .about .col-8 h1 {
        font-size: 40px !important;
    }

    .about .col-8 p {
        width: 100% !important;
        max-width: 100% !important;
    }

    .about .col-4 {
        padding-left: 0 !important;
    }

    .border-custom,
    .border-persent,
    .border-img-flora,
    .border-img-fauna {
        width: 120px;
        height: 110px;
        padding-top: 2rem !important;
    }

    /* Timeline adjustments sudah ada di kode utama */
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .container-custom .hero-section {
        padding: 0;
        margin: 0;
    }

    .text-khusus {
        background-color: #788599;
        padding: 0 10px;
        color: white;
    }

    .p-hero {
        display: none;
    }

    .hero-section {
        background-size: cover;
        height: 25rem !important;
        border-radius: 15px;
        position: relative;
        top: 120px;
        padding-top: 0 !important;
    }

    .hero-section h1 {
        font-size: 28px !important;
        width: 90% !important;
        margin: 0 auto;
    }

    .hero-section p {
        width: 90% !important;
        font-size: 14px;
    }

    .button-container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .plant-button {
        padding: 6px 15px;
        font-size: 11px;
    }

    .plant-icon {
        width: 32px;
        height: 32px;
    }

    .row.g-4 {
        gap: 15px !important;
    }

    .col-lg-3,
    .col-md-6,
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .card-container {
        margin-top: 150px !important;
        height: 220px;
        margin-bottom: 15px;
    }

    .info-wrapper {
        height: auto;
    }

    .info-wrapper .card-container {
        height: 150px;
        margin-bottom: 10px;
    }

    .info-button-area {
        height: auto;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .filter-tabs {
        padding-left: 0 !important;
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .filter-all-tabs {
        padding-left: 0 !important;
        text-align: center;
        margin-top: 10px;
    }

    .section-news {
        gap: 15px;
    }

    .dekstop-news {
        display: none;
    }

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

    .card-news {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .img-news {
        height: 250px;
    }

    .about .col-8,
    .about .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .about .col-8 {
        margin-bottom: 30px;
        padding-top: 0 !important;
    }

    .about .col-8 h1 {
        font-size: 32px !important;
        margin-bottom: 20px;
    }

    .border-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .border-row {
        display: flex;
        gap: 10px;
    }

    .border-custom,
    .border-persent,
    .border-img-flora,
    .border-img-fauna {
        width: 140px;
        height: 120px;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-box h3 {
        font-size: 1.3rem;
    }

    .gallery-card {
        height: 300px;
        margin-bottom: 20px;
    }

    .gallery-card .content {
        padding: 1.5rem;
    }

    .desktop-galery {
        display: none !important;
    }

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

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        height: 22rem;
        background-position: center;
    }

    .hero-section h1 {
        font-size: 24px !important;
        padding-top: 3rem !important;
    }

    .hero-section p {
        font-size: 13px;
        line-height: 1.5;
    }

    .card-container {
        height: 200px;
        border-radius: 15px;
    }

    .card-content {
        padding: 20px !important;
    }

    .card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .card-description {
        font-size: 12px;
        line-height: 1.5;
    }

    .podcast-btn {
        padding: 8px 20px;
        font-size: 11px;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .filter-tabs .nav-link {
        font-size: 13px;
        padding: 5px 10px;
    }

    .img-news {
        height: 200px;
        border-radius: 15px;
    }

    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .about .col-8 h1 {
        font-size: 28px !important;
    }

    .border-custom,
    .border-persent,
    .border-img-flora,
    .border-img-fauna {
        width: 120px;
        height: 100px;
        padding-top: 1.5rem !important;
    }

    .border-custom,
    .border-persent {
        font-size: 14px;
    }

    .why-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .timeline-content {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 15px;
        width: 10px;
        height: 10px;
        border: 3px solid #fff;
    }

    .content-box {
        padding: 15px;
    }

    .content-box h3 {
        font-size: 1.1rem;
    }

    .content-box p {
        font-size: 0.85rem;
    }

    .image-box img {
        height: 160px;
    }

    .gallery-card {
        height: 250px;
    }

    .gallery-card .content h4 {
        font-size: 1.1rem;
    }
}

/* Very small devices (less than 400px) */
@media (max-width: 399.98px) {
    .hero-section {
        height: 20rem;
    }

    .hero-section h1 {
        font-size: 20px !important;
    }

    .plant-button {
        font-size: 10px;
        gap: 8px;
    }

    .plant-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .card-container {
        height: 180px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-description {
        font-size: 11px;
    }

    .filter-tabs .nav-link {
        font-size: 11px;
        padding: 3px 8px;
    }

    .border-custom,
    .border-persent,
    .border-img-flora,
    .border-img-fauna {
        width: 100px;
        height: 90px;
        padding-top: 1rem !important;
    }

    .gallery-card {
        height: 220px;
    }

    .btn-outline-dark {
        padding: 6px 20px;
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .hero-section {
        background: none !important;
        color: black !important;
        height: auto;
    }

    .plant-button,
    .podcast-btn,
    .news-btn {
        display: none;
    }

    .card-container {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .card-bg {
        display: none;
    }

    .card-content {
        color: black !important;
    }
}
