/* ---------------- GENERAL ---------------- */
body{
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    margin:0;
    padding:0;
}


/* ---------------- HEADER ---------------- */
.main-header{
    width:100%;
    background:#fff;
    padding:15px 30px;
    display:flex;
    justify-content:center; /* Center content */
    align-items:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    position:sticky;
    top:0;
    z-index:999;
    flex-wrap:wrap; /* Wrap on small screens */
}

.logo{
    font-size:26px;
    font-weight:bold;
    color:#007BFF;
    margin-right:50px; /* Space between logo and menu */
}

.navbar ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    justify-content:center; /* Center the menu items */
}

.navbar a{
    text-decoration:none;
    padding:8px 12px;
    border-radius:6px;
    color:#333;
    font-weight:600;
    transition:0.3s;
}

.navbar a:hover{
    background:#007BFF;
    color:#fff;
}

/* Dropdown */
.dropdown{
    position:relative;
}
.dropdown-menu{
    display:none;
    position:absolute;
    top:40px;
    left:0;
    background:#fff;
    min-width:160px;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    padding:10px 0;
    z-index:1000;
}
.dropdown-menu li{
    list-style:none;
}
.dropdown-menu a{
    display:block;
    padding:10px 15px;
    color:#333;
}
.dropdown-menu a:hover{
    background:#007BFF;
    color:#fff;
}

/* Hover effect only for desktop */
@media(min-width:769px){
    .dropdown:hover .dropdown-menu{
        display:block;
    }
}

/* Mobile: click/tap dropdown */
@media(max-width:768px){
    .dropdown .dropdown-menu{
        position:relative;
        top:0;
        left:0;
        box-shadow:none;
        display:none;
        padding-left:10px;
    }
    .dropdown.active .dropdown-menu{
        display:block;
    }
}


/* Mobile Dropdown */
@media(max-width:768px){
    .main-header{
        justify-content:space-between;
    }
    .navbar ul{
        flex-direction:column;
        gap:0;
        background:#fff;
        position:absolute;
        top:60px;
        right:0;
        width:200px;
        display:none;
        box-shadow:0 5px 15px rgba(0,0,0,0.2);
    }
    .navbar ul.active{
        display:flex;
    }
    .navbar a{
        padding:12px 15px;
    }
    .dropdown:hover .dropdown-menu{
        display:none; /* Disable hover dropdown on mobile */
    }
    .dropdown .dropdown-menu{
        position:relative;
        top:0;
        left:0;
        box-shadow:none;
        padding-left:10px;
    }
}


/* ---------------- SLIDER ---------------- */
.slider{
    width:100%;
    max-height:350px;
    overflow:hidden;
    position:relative;
    margin-bottom:25px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
}
.slides{
    display:flex;
    width:300%;
    animation: slideAnim 12s infinite;
}
.slide{
    width:100%;
}
.slide img{
    width:100%;
    height:350px;
    object-fit:cover;
    display:block;
}

@keyframes slideAnim{
    0%{transform: translateX(0);}
    33%{transform: translateX(-100%);}
    66%{transform: translateX(-200%);}
    100%{transform: translateX(0);}
}

/* ---------------- MAIN CONTENT ---------------- */
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:20px 0;
}

h1{
    text-align:center;
    margin-bottom:20px;
    color:#333;
}

.search-form{
    text-align:center;
    margin-bottom:30px;
}
.search-form input{
    padding:10px 15px;
    width:250px;
    border-radius:6px;
    border:1px solid #ccc;
    outline:none;
}
.search-form input:focus{
    border-color:#007BFF;
}
.search-form button{
    padding:10px 15px;
    border:none;
    background:#007BFF;
    color:#fff;
    border-radius:6px;
    cursor:pointer;
    transition:0.3s;
}
.search-form button:hover{
    background:#0056b3;
}

/* ---------------- GALLERY ---------------- */
.gallery{
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap:20px;
    justify-content:center;
}

.image-item{
    width:300px;
    height:400px;
    background:#fff;
    border-radius:12px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    position:relative;
}

.image-item img{
    width:100%;
    height:85%;
    object-fit:cover;
    border-radius:10px;
}

.download-btn{
    position:absolute;
    bottom:15px;
    left:50%;
    transform:translateX(-50%);
    padding:8px 15px;
    background:#28a745;
    color:#fff;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-size:14px;
    transition:0.3s;
}
.download-btn:hover{
    background:#218838;
}

/* ---------------- PAGINATION ---------------- */
.pagination{
    text-align:center;
    margin-top:30px;
}
.pagination a{
    display:inline-block;
    padding:8px 14px;
    margin:0 4px;
    background:#e0e0e0;
    text-decoration:none;
    border-radius:6px;
    color:#333;
    transition:0.3s;
}
.pagination a.active{
    background:#007BFF;
    color:#fff;
}
.pagination a:hover{
    background:#0056b3;
    color:#fff;
}

/* ---------------- MODAL ---------------- */
.modal{
    display:none;
    position:fixed;
    z-index:1000;
    left:0;
    top:0;
    width:100%;
    height:100%;
    overflow:auto;
    background-color: rgba(0,0,0,0.6);
}
.modal-content{
    background-color:#fff;
    margin:5% auto;
    padding:30px;
    border-radius:12px;
    width:500px;
    max-width:95%;
    text-align:center;
    position:relative;
    box-shadow:0 10px 25px rgba(0,0,0,0.3);
}
.close{
    position:absolute;
    top:15px;
    right:20px;
    font-size:26px;
    font-weight:bold;
    cursor:pointer;
}
.confirm-btn{
    display:inline-block;
    padding:10px 20px;
    background:#28a745;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    margin-top:20px;
    font-weight:600;
    transition:0.3s;
}
.confirm-btn:hover{
    background:#218838;
}

/* ---------------- RESPONSIVE ---------------- */
@media(max-width:768px){
    .slider .slide img{
        height:200px;
    }
    .image-item{
        width:90%;
        height:300px;
    }
    .download-btn{
        font-size:13px;
        padding:6px 12px;
    }
}
