@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap");
/*---------------------------------
            General Styles 
-----------------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap");
@font-face {
    font-family: "Jakarta Sans";
    src: url("../fonts/Jakarta Sans.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
}
.card img {
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.card img:hover {
    transform: scale(1.1);
    margin-bottom: 1rem;
}
.card-content {
    padding: 15px;
}
.card-title {
    color: #8b8f7a;
    font-weight: bold;
}
.card-date {
    color: gray;
    font-size: 0.9em;
}
.card-theme {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #8b8f7a;
    color: white;
    border-radius: 20px;
    font-size: 0.8em;
}
.button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #8b8f7a;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1em;
    cursor: pointer;
}

.payment-methods {
    margin-top: 20px;
}
.payment-methods img {
    width: 50px;
    margin: 5px;
}
.customer-service {
    margin-top: 20px;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}
.portfolio-item img {
    width: 100%;
    transition: transform 0.3s ease-in-out;
    border-radius: 10px;
}
.portfolio-item:hover img {
    transform: scale(1.1);
    margin-bottom: 2rem;
}
.btn-load-more {
    border: 2px solid #8b8f7a;
    color: #8b8f7a;
    border-radius: 20px;
    padding: 10px 20px;
}
.btn-load-more:hover {
    border: 2px solid #8b8f7a;
    color: #8b8f7a;
    border-radius: 20px;
    padding: 10px 20px;
}
.hidden {
    display: none;
}

/* Ensure the nav item is positioned correctly */
.nav-item.dropdown {
    position: relative;
}

/* Ensure the dropdown is hidden by default */
.custom-dropdown-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2-column layout */
    gap: 5px 10px; /* Space between items */
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 550px;

    position: absolute;
    top: 100%; /* Appears below the nav item */
    left: 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Show the dropdown when hovering */
.nav-item.dropdown:hover .custom-dropdown-menu,
.nav-item.dropdown:focus-within .custom-dropdown-menu,
.custom-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ensure menu items are properly displayed */
.custom-dropdown-menu li {
    list-style: none;
}

/* Style menu links */
.custom-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
    text-align: center;
}

.custom-dropdown-menu a:hover {
    background: #8b8f7a;
    color: white !important;
}
