*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Basic Styling */
body {
    font-family: 'Georgia', serif;
    background-color: #f9f7f1;
    margin: 0;
    padding: 0;
}
.page1{
    height: auto;
    width: 100%;
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html,
body{
    height: 100%;
    width: 100%;
}
.page1{
    min-height: 100vh;
    width: 100%;
    position: relative;
}
nav{
    width: 100%;
    height: 60px;
    background-color: rgb(13, 13, 37);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 10px 50px;
    position: fixed;
    z-index: 9999999;
    
}
nav h1 a{
    color: white;
    text-decoration: none;
}
nav .explore{
    padding: 10px 10px;
    background-color:#C96868;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    color: white;
    transition: 0.5s;
}

.navelem ul li{
    display: inline-block;
    color: white;
    padding:5px 10px;
    border: 1px solid white;
    border-radius: 50px;
    gap: 30px;
    transition: 0.5s;
    z-index: 99999;
    
    

    
}

.navelem ul li a{
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 10px;
    z-index: 999999;

}
.navelem ul li:hover{
    border: 2px solid white;
    background-color: white;
    z-index: 99999;
    
}
.navelem ul li a:hover{
    color: black;
    background-color: transparent;
    z-index: 99999;
}
.space{
    width: 2%;
}
nav .explore:hover{
    background-color: #FD8B51;
}
ul li {
    position: relative; /* Ensures the dropdown is positioned relative to the parent li */
}

.dropdown {
    display: none;
    position: absolute;
    margin-top: 5px;
    top: 100%; /* Makes sure it appears just below the parent menu item */
    left: 0;
    background-color:  rgb(13, 13, 37);
    z-index: 1; /* Ensures the dropdown is on top */
    padding: 10px 0;
    border-radius: 10px;
}

ul li:hover .dropdown, 
.dropdown:hover {
    display: block; /* Keeps the dropdown visible when hovering over it */
}

.dropdown ul {
    margin: 0;
    padding: 0;
}

.dropdown ul li {
    display: block;
    margin: 10px 0;
    border: none;
    white-space: nowrap;
}
.dropdown ul li:hover{
    background-color:white;
    border-radius:0%;
    
}
/* /* ---------------------------------- */
ul li {
    position: relative; /* Ensures the dropdown is positioned relative to the parent li */
}

.dropdown1 {
    display: none;
    position: absolute;
    margin-top: 5px;
    top: 100%; /* Makes sure it appears just below the parent menu item */
    left: 0;
    background-color:  rgb(13, 13, 37);
    z-index: 1; /* Ensures the dropdown is on top */
    padding: 10px 0;
    border-radius: 10px;
}

ul li:hover .dropdown1, 
.dropdown11:hover {
    display: block; /* Keeps the dropdown visible when hovering over it */
}

.dropdown1 ul {
    margin: 10px;
    padding: 0;
}

.dropdown1 ul li {
    display: block;
    margin: 10px 0;
    border: none;
    white-space: nowrap;
    
}
.dropdown1 ul li:hover{
    background-color:white;
    border-radius:0%;
    color: black;
} 
#menu-icon{
    position: absolute;
    right: 3%;
    font-size: 20px;
    padding: 5px 10px;
    background-color: #C96868;
    color: white;
    border: none;
}
/* ////////////////////////////media queries and side bar//////////// */
.sidebar {
    position: fixed;
    top: 0;
    right: -250px; /* Initially off-screen */
    width: 250px;
    height: 100vh;
    background-color: rgb(13, 13, 37);
    transition: right 0.3s ease; /* Smooth transition */
    z-index: 9999;
    padding: 20px; /* Add some padding */
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 20px 0; /* Space between items */
    color: white;
    
}
.sidebar ul li:hover {
   
    color: black;
    
}

.sidebar ul li a{
    color: white;
    text-decoration: none;
}

.sidebar.open {
    right: 0; /* Move sidebar into view */
}
.sidebar .explore{
    padding: 5px 5px;
    background-color:#C96868;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    color: white;
    transition: 0.5s;
}
/* Media Queries */
@media (max-width: 1024px) {
    .navelem {
        display: none; /* Hide horizontal navigation on small screens */
    }

    .sidebar {
        width: 200px; /* Adjust sidebar width for smaller screens */
    }

    .sidebar.open {
        right: 0; /* Ensure sidebar is visible */
    }

    nav {
        padding: 10px; /* Adjust padding for smaller screens */
    }

    nav h1 {
        font-size: 18px; /* Adjust font size for smaller screens */
    }

    nav .explore {
        font-size: 20px; /* Adjust button size for smaller screens */
        display: none;
    }
   
}

.news-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
    position: absolute;
    top: 15%;
    left: 3%;
   
}

.news-box {
    background-color: #ffffff;
    border: 1px solid #d8d2c3;
    padding: 20px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.2s ease;
    
}

.news-box:hover {
    transform: scale(1.02);
}

.photo {
    height: 200px;
    background-color: #e0e0e0;
    background-image: url('path/to/image.jpg'); /* Replace with image path */
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #d8d2c3;
    margin-bottom: 15px;
}

.headline {
    font-size: 1.5em;
    margin: 0;
    color: #333333;
}

.snippet {
    font-size: 1em;
    color: #666666;
    margin: 10px 0;
}

.read-more {
    font-size: 1em;
    color: #ff5a5f;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ff5a5f;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background (0.2s ease, color 0.2s ease);
    display: inline-block;
}

.read-more:hover {
    background-color: #ff5a5f;
    color: #ffffff;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .news-section {
        grid-template-columns: 1fr;
    }

    .photo {
        height: 150px;
    }
}
