/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}
/* Section Title Styling */
.section h2 {
    font-size: 1.2rem;
    color: red !important; /* Ensures red color */
    font-weight: bold !important; /* Ensures bold text */
    margin-bottom: 2px;
    border-bottom: 2px solid red; /* Optional: Adds a red underline for style */
    padding-bottom: 5px;
}
.section h3 {
    font-size: 1.0rem; /* Adjust the font size of subheadings */
    color: #444; /* Set a color for the subheadings */
    margin-bottom: 0px; /* Reduce the spacing below the subheading */
    margin-top: 0px; /* Adjust spacing above the subheading */
}
.section p {
    margin-bottom: 8px; /* Reduce spacing between paragraphs */
    line-height: 1.6; /* Ensure readability */
}


.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: url no-repeat center center; /* Ensure the image is correctly referenced */
    background-size: cover; /* Adjusts the background image to cover the entire header area */
    color: white; /* Optional: Ensure text contrasts with the banner image */
    border: none; /* Removes any border applied to the header */
    box-shadow: none; /* Removes any shadow if applied */
}
.header-content {
    display: flex;
    align-items: center;
}

.header-content h1 {
    font-size: 2rem;
    margin-right: 20px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007BFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Banner Section */
.banner {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height as needed */
    overflow: hidden;
    box-sizing: border-box;
    background-color: #000; /* Fallback background color */
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header Content Layout */
.header-content {
    position: absolute;
    top: 50%;
    width: 95%;
    display: flex;
    justify-content: space-between; /* Align content to the edges */
    align-items: center;
    transform: translateY(-50%);
    padding: 0 20px; /* Add padding for spacing */
    color: white;
}

/* Contact Details on the Left */
.contact-details {
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); /* Shadow for readability */
}

.contact-details a {
    color: #FFD700; /* Gold color for links */
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Profile Information on the Right */
.profile-info {
    text-align: center;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 20%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
}

.profile-info h1 {
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); /* Adds shadow for readability */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-details {
        text-align: center;
        margin-bottom: 20px;
    }
}

/* Contact Details */
.contact-details {
    text-align: right;
    font-size: 0.9rem;
}

.contact-details p {
    margin: 5px 0;
}

/* Navigation Bar */
.navbar {
    background-color: #333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: red !important; /* Set the color of the navigation links to red */
    text-decoration: none !important; /* Remove underline */
    font-weight: bold !important; /* Make the links bold */
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.navbar ul li a:hover {
    color: darkred !important; /* Change to a darker shade of red on hover */
    text-decoration: underline !important; /* Optionally underline on hover */
}

/* Section Styles */
.section {
    padding: 20px;
    margin: 10px auto;
    max-width: 900px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
   
}
/* Hide all sections except About Me */
.section {
    display: none;
}

#about {
    display: block; /* Ensure About Me is visible by default */
}

/* Blog Section */
.blog-post {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.blog-title {
    font-weight: bold;
    cursor: pointer;
    color: #007BFF;
    text-decoration: none;
}

.blog-title:hover {
    text-decoration: underline;
}

.blog-content {
    display: none;
    padding-top: 5px;
}
/* Funding Section */
#funding {
    display: none;
}

#funding h2 {
    color: #0066cc;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

#funding p {
    font-size: 1rem;
    text-align: justify;
    margin-bottom: 15px;
    color: #444;
}

#funding .funding-message {
    font-size: 1.1rem;
    font-style: italic;
    color: #0066cc;
    text-align: center;
    margin-bottom: 20px;
}

#funding .funding-support {
    text-align: center;
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}


/* Gallery Section */
.gallery-container {
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevent line breaks */
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex; /* Enables scrolling horizontally */
    gap: 15px; /* Space between items */
}

figure {
    display: inline-block;
    margin: 0;
    text-align: center;
}

figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #555;
}

/* Gallery Thumbnail */
.gallery-thumbnail {
    width: 300px; /* Set thumbnail size */
    height: 200px; /* Maintain aspect ratio */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-thumbnail:hover {
    transform: scale(1.20); /* Zoom on hover */
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    text-align: center;
    position: relative;
}


.lightbox-slide {
    display: none;
    text-align: center;
}

.lightbox-slide img {
    max-width: 90%;
    max-height: 80%;
    margin-bottom: 30px;
    border-radius: 8px;
}
.lightbox-content p {
    color: white;
    font-size: 1.2rem;
}
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1100;
}

.close:hover {
    color: #bbb;
}

.prev, .next {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transform: translateY(-50%);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.prev:hover, .next:hover {
    color: #bbb;
}

/* Footer Section */
.footer {
    text-align: center;
    padding: 10px 0;
    background-color: #333;
    color: white;
    font-size: 0.9rem;
}
.blog-post {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.blog-post h3 {
    color: #333;
    margin-bottom: 10px;
}

.blog-date {
    color: #777;
    font-size: 0.9rem;
}

.read-more {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}



/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-details {
        text-align: left;
        margin-top: 10px;
    }

    .gallery-thumbnail {
        width: 150px; /* Resize images for smaller screens */
    }

    .gallery-container {
        padding: 5px; /* Reduce padding on smaller devices */
    }
}
