body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

h1 {
    text-align: center;
    margin-top: 20px;  /* Add margin to space out the heading */
    font-size: 32px;
    color: #2C3E50;
    padding: 0 20px; /* Ensure heading doesn't get too close to the sides on smaller screens */
}

.content {
    padding: 20px;
    font-size: 18px;
    color: #34495E;
}

.content b {
    color: #1ABC9C;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2C3E50;
    padding: 60px 20px;
    color: white;
    position: relative;
}

.navbar-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.navbar-logo .p {
    font-size: 24px;
    margin: 0;
    font-style: italic;
}

.navbar-logo .nav-text {
    font-size: 10px;
    margin: 0;
    font-style: italic;
}

.navbar-logo i {
    font-size: 24px;
    margin-left: 10px;
}

/* Navbar Contact */
.navbar-contact {
    display: block;  /* Ensure it's displayed */
    color: white;  /* Ensure text color is white */
}
.navbar-contact span {
    position: relative;
    left: 20px;
    padding: 5px 10x;
    font-size: 16px;  /* Adjust font size for better readability */
}

.navbar-contact a {
    color: white;  /* Set the color of the links to white */
    text-decoration: none;  /* Remove underline from the links */
}

.navbar-contact a:hover {
    color: #1ABC9C;  /* Change color on hover to green */
    text-decoration: underline;  /* Underline links on hover for better UX */
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 30px;
    color: white;
}

/* Sliding Menu */
.navbar-links {
    position: absolute;
    top: 0;
    left: -250px; /* Initially off-screen */
    width: 250px;
    height: 100%;
    background-color: #34495E; /* Background color of sliding menu */
    transition: left 0.3s ease;
    padding-top: 60px; /* Space for logo */
    z-index: 9999;
}

.navbar-links.active {
    left: 0; /* Menu slides in */
}

.navbar-links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.navbar-links ul li {
    text-align: center;
    margin: 15px 0;
}

.navbar-links ul li a {
    text-decoration: none;
    color: rgb(236, 241, 240);
    font-size: 18px;
    padding: 15px;
    display: block;
    transition: background-color 0.3s ease;
}

/* Change color of menu items when hovered or clicked */
.navbar-links ul li a:hover,
.navbar-links ul li a.active {
    background-color: #e2e7e6; /* Color when hovered or clicked */
}

/* Image Slider Styles */
.slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
}

.img-container {
    position: relative;
    width: 100%;
    height: 400px; /* Set the height of the image container */
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    display: none; /* Initially hide all images */
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

/* Service Styles */
.service-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 30px;
}

.service-item {
    background-color: #f9f9f9; /* Light grey background */
    padding: 20px; /* Increase padding for better spacing */
    margin: 15px;
    text-align: center;
    width: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px; /* Rounded corners for a smoother look */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effect */
}

.service-item:hover {
    background-color: #1ABC9C; /* Change to a green color when hovered */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Larger shadow on hover */
}

.service-item img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Rounded image corners */
}

/* Mobile View (Below 768px) */
@media (max-width: 768px) {
    .navbar-links.active {
        left: 0; /* Slide the menu in */
    }

    .hamburger-menu {
        display: block; /* Show hamburger icon */
    }

    .navbar-links ul li {
        width: 100%;
    }

    .navbar-links ul li a {
        font-size: 20px;
    }

    .slider {
        height: 400px; /* Adjust slider height for mobile screens */
    }

    h1 {
        font-size: 28px; /* Adjust title size for mobile */
        margin-top: 15px; /* Ensure the title is above the slider */
        padding: 0 20px; /* Ensure no text overlaps */
    }

    .content {
        margin-top: 30px; /* Add space between content and slider */
    }

    .service-item {
        width: 90%;
        margin: 10px 0;
        background-color: #f1f1f1; /* Lighter grey background for mobile */
    }

    .service-item:hover {
        background-color: #16a085; /* Darker green on hover for mobile */
    }

    .navbar-contact {
        text-align: center;
        font-size: 18px;
    }

    .navbar-contact p {
        font-size: 16px;
    }
}

/* Tablet View (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .navbar-links {
        width: 200px; /* Slightly narrower menu */
    }

    .slider {
        height: 350px; /* Adjust slider height for tablet screens */
    }

    h1 {
        font-size: 30px; /* Adjust title size for tablet screens */
    }

    .service-item {
        width: 40%;
    }

    .service-item:hover {
        background-color: #1ABC9C;
    }
}

/* Desktop View (Above 1024px) */
@media (min-width: 1024px) {
    .navbar-links {
        position: relative;
        left: 0;
        background-color: transparent;
        display: flex;
        justify-content: flex-end;
    }

    .navbar-links ul {
        display: flex;
        margin: 0;
    }

    .navbar-links ul li {
        margin: 0 20px;
    }

    .navbar-links ul li a {
        font-size: 16px;
        padding: 10px;
    }

    .slider {
        height:400px; /* Larger slider height for desktop */
    }

    h1 {
        font-size:32px; /* Larger title for desktop */
    }

    .service-item {
        width: 22%;
        background-color: #f8f8f8; /* Lighter grey background for desktop */
    }

    .service-item:hover {
        background-color: #1ABC9C;
    }
}
.heading_element_destinations{
    text-align: center;
}
.para_element{
    text-align: center;
}
/* Popular Destinations Section Styles */
.Popular_img_container {
    position: relative; /* This will be the reference for positioning the button */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;  /* Ensuring it takes the full available width */
    margin-bottom: 50px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid */
    gap: 15px;
    width: 100%;
    justify-items: center;
}

.image-grid .about_Bhimtal,
.image-grid .about_ramnagar,
.image-grid .about_almora,
.image-grid .about_kainchi,
.image-grid .about_naukuchiyatal,
.image-grid .about_nainital,
.image-grid .about_haridwar,
.image-grid .about_sattal {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px; /* Rounded corners for image containers */
}

.image-grid img {
    width: 100%;
    height: 200px; /* Set a consistent height for the images */
    object-fit: cover; /* Ensure the images cover the container without distortion */
    border-radius: 8px;
    transition: transform 0.3s ease-in-out; /* Smooth transition effect */
}

/* Ensure the text is positioned correctly on top of the images */
.image-grid span {
    position: absolute;
    bottom: 20px; /* Adjusted from 15px */
    left: 20px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
    z-index: 2; /* Ensure text is above the image */
}

.image-grid a {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 2; /* Ensure the button is above the image */
}

.image-grid a:hover {
    background-color: #1ABC9C; /* Green color on hover */
}

/* Hover effect for images */
.image-grid .about_Bhimtal:hover img,
.image-grid .about_ramnagar:hover img,
.image-grid .about_almora:hover img,
.image-grid .about_kainchi:hover img,
.image-grid .about_naukuchiyatal:hover img,
.image-grid .about_nainital:hover img,
.image-grid .about_haridwar:hover img,
.image-grid .about_sattal:hover img {
    transform: scale(1.05); /* Zoom-in effect on hover */
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns layout for mobile */
    }

    .image-grid img {
        height: 180px; /* Adjust image height for smaller screens */
    }

    .image-grid span {
        font-size: 16px; /* Adjust text size for mobile screens */
        bottom: 10px; /* Adjust text positioning */
    }

    .image-grid a {
        font-size: 12px; /* Smaller font size for mobile */
        bottom: 5px; /* Adjust button positioning */
    }
}

/* Tablet View Adjustments (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns layout for tablet */
    }

    .image-grid img {
        height: 200px; /* Maintain consistent image height */
    }

    .image-grid span {
        font-size: 18px; /* Adjust text size for tablet screens */
    }

    .image-grid a {
        font-size: 14px; /* Adjust button size for tablet screens */
    }
}

/* Desktop View Adjustments */
@media (min-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns layout for larger screens */
    }

    .image-grid img {
        height: 250px; /* Adjust image height for larger screens */
    }

    .image-grid span {
        font-size: 20px; /* Larger text size for desktop */
    }

    .image-grid a {
        font-size: 16px; /* Larger button size for desktop */
    }
}

/* Footer Styles */
footer {
    background-color: #2C3E50; /* Dark background */
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.about-us, .contact-info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1ABC9C; /* Green color */
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1ABC9C; /* Green color on hover */
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1ABC9C; /* Green color on hover */
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        margin-top: 10px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .footer-links {
        margin-top: 20px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 15px;
    }
}

@media (min-width: 1024px) {
    .footer-links {
        margin-top: 30px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 20px;
    }
}

/* General button styling */
.book-now-button {
    position: absolute;  /* Position relative to the Popular_img_container */
    bottom: -25px;        /* 20px from the bottom of the container */
    left: 50%;           /* Center horizontally */
    transform: translateX(-50%); /* Offset by half its width */
    z-index: 1000;       /* Ensure it's above other elements */
}

.book-now-button button {
    padding: 12px 25px;   /* Adjust button size */
    background-color: #16a085; /* Button color */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;    /* Rounded corners */
    transition: background-color 0.3s ease;
}

.book-now-button button:hover {
    background-color: #1abc9c;  /* Darker shade on hover */
}

.contact-us-button {
    position: fixed;        /* Fixed position at the bottom of the screen */
    bottom: 80px;           /* Ensure it’s above the Book Now button */
    left: 50%;              /* Center horizontally */
    transform: translateX(-50%); /* Offset by half its width */
    z-index: 1000;          /* Ensure it stays on top */
    animation: float 2s infinite alternate; /* Floating animation */
}

.contact-us-button button {
    padding: 12px 25px;   /* Adjust button size */
    background-color: #1abc9c; /* Button color */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;    /* Rounded corners */
    transition: background-color 0.3s ease;
}

.contact-us-button button:hover {
    background-color: #16a085;  /* Darker shade on hover */
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0); /* Start position */
    }
    100% {
        transform: translateY(-10px); /* Move up slightly */
    }
} html {
    scroll-behavior: smooth;
}
