@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

* { 
    box-sizing: border-box; 
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}


.header {
    padding: 80px 50px;
    text-align: center;
    color: white;
    border-bottom: 4px solid #004d40;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/Frame1.png');
    background-size: 60%;
    background-position: center;
    position: relative;
}

h1 {
    font-size: 45px;
}

.navbar {
    display: flex;
    justify-content: center;
    background-color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

.navbar a:hover, .navbar a.active {
    background-color: #00796b;
}


.row {  
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    overflow: auto;
}

.side {
    flex: 30%;
    padding-right: 20px;
}

.side h2, .side h3 { 
    color: #00796b; 
}

.main { 
    flex: 70%; 
}

.main.full-width {
    flex: 100%;
}

.page-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}


.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
}

.card-body h2 { 
    margin-top: 0; 
}


.btn {
    display: block;
    width: 80%;
    margin: 20px auto 0 auto;
    padding: 10px 20px;
    background-color: transparent;
    color: #00796b;
    border: 2px solid #00796b;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #00796b;
    color: white;
}


.profile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.destinasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}


.photo-grid {
    column-count: 3;
    column-gap: 15px;
}

.grid-item {
    margin-bottom: 15px;
    break-inside: avoid;
}

.photo-grid .gallery-item {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.grid-item:hover .gallery-item {
    transform: scale(1.1);
}

.lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; }
.lightbox-content { max-width: 85%; max-height: 85%; animation: zoomIn 0.3s ease-in-out; }
.lightbox-close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }
@keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } }



.footer {
    padding: 25px;
    text-align: center;
    background: #333;
    color: #f4f7f6;
    margin-top: 20px;
}


@media (max-width: 992px) {
    .photo-grid {
        column-count: 2;
    }
}

@media screen and (max-width: 768px) {
    .row {   
        flex-direction: column;
        padding: 10px;
    }
    .side {
        padding-right: 0;
        margin-bottom: 20px;
    }
    .photo-grid {
        column-count: 1;
    }
}