*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.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: 5%;
}
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 */
        z-index:99999;
    }

    .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;
    }
   
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.blog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    margin-top: 5%;
    

}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    
    
    
}

/* Blog Container */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Blog Post */
.blog-post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    opacity: 0; /* Start hidden for animation */
    transform: translateY(20px); /* Start from below */
    animation: fadeIn 0.5s forwards; /* Apply fade-in animation */
}

/* Animation for blog post */
@keyframes fadeIn {
    to {
        opacity: 1; /* Fade in */
        transform: translateY(0); /* Move to original position */
    }
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.blog-image {
    height: 200px;
    background-color: #e0e0e0;
    background-image: url('path/to/image.jpg'); /* Replace with your image */
    background-size: cover;
    background-position: center;
}

.blog-title {
    font-size: 1.8em;
    margin: 10px;
    color: #333;
}

.blog-snippet {
    font-size: 1em;
    color: #666;
    margin: 10px;
}

.read-more {
    display: inline-block;
    margin: 10px;
    padding: 10px 15px;
    background-color: #ff5a5f;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Added transform transition */
}

.read-more:hover {
    background-color: #e05454;
    transform: scale(1.05); /* Scale up on hover */
}

/* Responsive Styling */
@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
    }
}
