/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding-top: 2%;

}

/* Header */

header {
    width: 100%;
    /* background-image: url("../image/background.png"); */
    height: auto;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding-bottom: 5%;
}

/* Basic Styling */
/*header {
    color: black;
    padding: 20px 0;
}*/

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    /* transition: color 0.3s; */
}

.nav-links li a:hover {
    color: #ffc107;
}

/* Hamburger Icon Styling */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: black;
}

/* Responsive Media Query */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 15%;
        background-color: white;
        position: absolute;
        top: 5%;
        left: 70%;
        padding: 1rem;
        border-radius: 5%;
    }

    .nav-links.active {
        display: flex;
    }
    .nav-links.active li:first-child{
        padding-top: 0.5rem;
    }

    .nav-links.active li{
        padding-top: 1.5rem;
    }

    .hamburger {
        display: flex;
    }
}


.header-content {
    width: 50%;
}


.header-content h2 {
    font-size: 200%;
    font-weight: 300%;
    line-height: 1.2;
    padding-top: 5%;
}

.header-content p {
    margin: 10% 0;
    color: #666;
}

.header-content .btn {
    background-color: black;
    color: #fff;
    padding: 2% 8%;
    text-decoration: none;
}

.header-image img {
    max-width: 100%;
    float: right;
    border-radius: 10%;
    position: relative;
}

/* About Section */
.about-section {
    text-align: center;
    justify-content: space-around;
    padding: 2%;
    background-color: white;
}

.about-header {
    justify-content: center;
    padding-right: 20%;
    padding-left: 20%;
}

.about-header h1 {
    float: center;
    font-size: 200%;
    margin-bottom: 5%;
}

.about-header p {
    font-size: 16px;
    color: #555;
}

.about-line{
    width: 20%;
    height: 5%;
    border-bottom: 2px solid black;
    margin-top: 5%;
    margin-left: 40%;
}

.about-content {
    background-color: #555;
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    gap: 2%;
    padding: 30px;
}

.about-content .image {
    width: 25%; /* Ukuran kotak */
    background-color: #fff;
    border-radius: 3%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.about-card {
    background-color: white;
    border-radius: 5%;
    box-shadow: 0 0 5% rgba(0, 0, 0, 1);
    overflow: hidden;
    width: 100%;
    padding: 2%;
}

.about-content .image img {
    width: 100%;
    height: 200px; /* Tetapkan tinggi tetap */
    object-fit: cover; 
    display: block;
}

.about-card h3 {
    margin: 10% 0;
    font-size: 100%;
    color: #333;
    text-align: center;
}

.about-card p {
    font-size: 100%;
    color: #777;
    margin-top: auto;
    text-align: center;
    padding-left: 3%;
    padding-right: 5%;
}


.btn-cart {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #f45b69;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-cart:hover {
    background-color: #e04a5a;
}


/* News Section */
.news-section {
    padding: 5%;
    background-color: #f4f4f4;
}

.section-title {
    text-align: center;
    font-size: 200%;
    color: #333;
    /* margin-bottom: 30px; */
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2%;
}

.news-card {
    background-color: white;
    border-radius: 2%;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 5% rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.news-card h4 {
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 3%;
    margin-top: auto;
}

.news-card p {
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 30%;
    margin-top: auto;
}

.news-card img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    border-bottom: 2px solid #f4f4f4;
}

.card-content {
    padding: 10%;
}

.card-content h3 {
    font-size: 100%;
    color: #333;
    margin-bottom: 5%;
    padding-left: 2%;

}

.card-content p {
    font-size: 100%;
    color: #777;
    margin-bottom: 3%;
    padding-left: 2%;

}

.card-content.featured p {
    font-size: 100%;
    color: #777;
    margin-bottom: 3%;
    padding-bottom: 32%;
}

.read-more {
    font-size: 14px;
    font-weight: bold;
    color: #f4a261;
    padding-left: 5%;
    text-decoration: none;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
}

/* Gallery Section */
.gallery {
    padding: 5% 0;
    background-color: white;
    text-align: center;
}

.gallery h2 {
    font-size: 200%;
    margin-bottom: 5%;
}

.galeri-grid-container {
    position: relative;
    padding-left: 2%;
    padding-right: 5%;
    padding-bottom: 5%;
    border-radius: 2%;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
    gap: 1%;
    padding-left: 2%;
    padding-bottom: 1%;
}

.grid-item {
    /* background-color: white;; */
    border-radius: 5%;
    padding-bottom: 10%;
}

.grid-item img {
    width: 90%;
    height: 90%;
    border-radius: 5%;
    object-fit: cover;
    aspect-ratio: 4/4;
}

.gallery .btn {
    background-color: black;
    color: #fff;
    padding: 1% 5%;
    text-decoration: none;
}

/* Footer */
footer {
    padding-top: 5%;
    background-color: black;
    color: #fff;
    padding-left: 10%;
    padding-right: 5%;
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 3%;
}

.footer-about, .footer-links, .footer-privacy, .footer-contact {
    width: 23%;
}

.footer-about h3, .footer-links h3, .footer-privacy h3, .footer-contact h3 {
    margin-bottom: 3%;
    font-size: 100%;
}

.footer-about p {
    font-size: 100%;
    color: #aaa;
}

.footer-links ul, .footer-privacy ul, .footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li, .footer-privacy ul li, .footer-contact ul li {
    margin-bottom: 5%;
    font-size: 100%;
}

.footer-links ul li a, .footer-privacy ul li a, .footer-contact ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 100%;
}

.footer-bottom {
    padding-top: 2%;
    padding-bottom: 2%;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 100%;
    color: #aaa;
}

.social-links a img {
    margin-right: 5%;
    width: 20%;
    height: 20%;
}

.logout-form button {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.logout-form button:hover {
    color: #ffc107;
}

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .container {
    width: 90%;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
  }

  .about-content {
    flex-wrap: wrap;
  }

  .about-content .image {
    width: 45%;
    margin-bottom: 20px;
  }

  .footer-about,
  .footer-links,
  .footer-privacy,
  .footer-contact {
    width: 45%;
    margin-bottom: 20px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding-top: 4%;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(90%, 1fr));
  }

  .about-content .image {
    width: 90%;
  }

  .footer-about,
  .footer-links,
  .footer-privacy,
  .footer-contact {
    width: 90%;
    margin-bottom: 20px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .logo {
    font-size: 20px;
  }

  .header-content h2 {
    font-size: 150%;
  }

  .header-content p {
    margin: 5% 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  .about-content .image {
    width: 100%;
  }

  .footer-about,
  .footer-links,
  .footer-privacy,
  .footer-contact {
    width: 100%;
  }
}