@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.welcome-message {
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    width: calc(20% - 10px);
    /* Adjust for 5 cards in a row */
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: scale(1.05);
}

.blog-card img {
    width: 100%;
    height: auto;
}

.blog-card-content {
    padding: 10px;
    text-align: center;
}

.blog-card-content h3 {
    font-size: 1.2em;
    margin: 10px 0;
    color: #333;
}

.blog-card-content p {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0 15px;
}

.blog-card-content span {
    font-size: 1em;
    font-weight: bold;
    color: #27ae60;
}
/* more blog card */
.blog-card.selected {
    border: 3px solid green; /* Highlight the selected card */
    position: relative;
}

.blog-card.selected::after {
    content: '✔';
    color: white;
    background-color: green;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 14px;
}


/* Modal Styles */
.modal {
    display: none;/* Hidden by default */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#ForgotPassword {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #ff0000;
}

textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    cursor: pointer;
}

button.btn-primary {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
}

button.btn-primary:hover {
    background-color: #0056b3;
}

.messageDiv {
    background-color: hsl(327, 90%, 28%);
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 4px;
    font-size: 1rem;
    opacity: 0;
    animation: fadeOut 7s forwards;
}


.messageDiv .success {
    color: green;
}

.messageDiv .error {
    color: red;
}

/* reset password */
.reset-password-container {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.reset-password-container .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        /* Full width on smaller screens */
        max-width: 90%;
        /* Slight margin on smaller screens */
        padding: 15px;
    }

    input {
        width: 100%;
        /* Inputs take full width */
    }
}

/* map styling */
/* Center the map and add spacing on the sides */
#map {
    height: 600px;
    /* Height of the map */
    width: 80%;
    /* Reduced width to add side spacing */
    margin: 0 auto;
    /* Center the map horizontally */
    margin-bottom: 100px;
    /* move the map up */
    border: 2px solid #ddd;
    /* Optional: Add a border to make it visually distinct */
    border-radius: 8px;
    /* Optional: Add rounded corners */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    /* Optional: Add a shadow for better aesthetics */
}

/* Responsive styles */
@media (max-width: 768px) {
    .blog-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .blog-card {
        width: calc(100% - 10px);
    }
}/* Navbar Styles */
.navbar {
    background-color: #333; /* Add a background color for the navbar */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links ul li {
    display: inline;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
}

.nav-links ul li a:hover {
    background-color: #444;
    border-radius: 4px;
}

.notification {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 12px;
    margin-left: 5px;
}

/* Menu Icon for Mobile */
.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 30px;
    color: white;
}

/* Mobile view - 768px and below */
@media (max-width: 768px) {
    .nav-links ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px;
        z-index: 100;
    }

    .nav-links ul li {
        margin: 10px 0;
    }

    .menu-icon {
        display: block;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links ul li a {
        padding: 12px;
        text-align: center;
        width: 100%;
    }
}

/* Small mobile devices - 480px and below */
@media (max-width: 480px) {
    .logo a {
        font-size: 20px;
    }

    .nav-links ul li a {
        font-size: 14px;
    }
}
