﻿body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

header {
    background-color: #007bff;
    color: #fff;
    padding: 5px; /* Reduced padding */
    text-align: center;
}

h1 {
    margin: 5px 0; /* Reduced margin */
}

p {
    margin: 5px 0; /* Reduced margin */
}

nav {
    background-color: #333;
    color: #fff;
    overflow: hidden;
}

nav a {
    float: left;
    display: block;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

nav a:hover {
    background-color: red;
}

.menu-icon {
    display: none;
    float: right;
    padding: 14px 20px;
    cursor: pointer;
}

.menu-icon i {
    color: #fff;
    font-size: 24px;
}

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.category {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.category:hover {
    transform: translateY(-5px);
}

.category img {
    width: 100%;
    height: 400px; /* Adjusted height to double the original for all categories except places-to-visit */
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.category#places-to-visit img {
    height: 200px; /* Adjusted height to 200px for places-to-visit category */
}

.category-content {
    padding: 20px;
}

.category h2 {
    color: #007bff;
    margin-bottom: 10px;
}

.item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9; /* Slightly different background for items */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Softer shadow */
    transition: transform 0.2s;
}

.item:hover {
    transform: translateY(-2px);
}

.item h3 {
    margin-top: 0;
    color: #0056b3;
}

.item p {
    margin-bottom: 0;
    text-align: justify; /* Justify the text in paragraphs */
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    width: 100%;
    margin-top: 20px;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
}

.mySlides {
    display: none;
    border-radius: 25px; /* Add this line for rounded corners */
}

/* Adjusted CSS for desktop and mobile view */
@media (min-width: 769px) {
    .row {
        display: flex;
        flex-wrap: nowrap; /* Prevents wrapping in desktop view */
    }

    .column {
        flex: 1 1 50%; /* Make columns take up 50% of the space */
        max-width: 50%;
    }

    .details-section {
        padding-left: 20px; /* Add some padding to the text section */
    }

    .details-section p {
        text-align: justify; /* Justify the text in paragraphs */
    }
}

@media (max-width: 768px) {
    nav a {
        float: none;
        display: block;
        text-align: left;
    }

    .menu-icon {
        display: block;
    }

    nav {
        display: none;
        background-color: #333; /* Ensure the nav background is dark */
        color: #fff; /* Ensure the nav text is white */
        position: fixed; /* Ensure the nav stays fixed on top */
        top: 0; /* Position at the top */
        width: 100%; /* Full width */
        z-index: 1000; /* Ensure the nav stays on top of other elements */
    }

    nav.active {
        display: block;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .row {
        display: block; /* Stacks the columns in mobile view */
    }

    .column {
        width: 100%; /* Columns take full width in mobile view */
        max-width: 100%;
        padding: 0;
    }

    .column img {
        width: 100%; /* Image takes full width of mobile */
    }

    .details-section {
        padding-left: 20px; /* Add some padding to the text section */
    }
    
    .details-section p {
        text-align: justify; /* Justify the text in paragraphs */
    }

    .menu-icon {
        display: block;
        float: right;
        padding: 14px 20px;
        cursor: pointer;
        color: #fff; /* Ensures the menu icon is White */
        background-color: #333; /* Ensures the background color is dark */
        z-index: 1001; /* Ensures the menu icon stays on top of the nav */
    }

    .menu-icon i {
        font-size: 24px;
    }
}