/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF; /* Light lavender background */
    color: #333;
    border-left: 50px solid #3D52A0; /* Deep purple left border */
    border-right: 50px solid #3D52A0; /* Deep purple right border */
}

/* Add padding to content area to prevent overlap with borders */
main, .blog-list, .travel-plans, .blog-post {
    padding-left: 20px;
    padding-right: 20px;
}

/* Increase the content width (max-width) */
main, .blog-list, .travel-plans, .blog-post {
    max-width: 1000px; /* Widen the content area */
    margin: 0 auto; /* Keep it centered */
}

/* Header */
header {
    background-color: #3D52A0; /* Deep purple header */
    color: white;
    padding: 10px 0;
    text-align: center;
    border-bottom: 6px solid #333; /* Added subtle black border */
    margin-bottom: 30px; /* Increased space below header */
}

/* Navigation Menu */
nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
    position: relative; /* For dropdown positioning */
}

nav ul li a {
    color: white;
    text-decoration: none;
}

/* Dropdown Menu Styling */
nav ul li ul {
    display: none;
    position: absolute;
    background-color: #fff; /* White dropdown background */
    list-style-type: none;
    padding: 0;
    margin: 0;
    top: 100%; /* Position below the parent li */
    left: 0; /* Default position for most dropdowns */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    min-width: 200px;
}

nav ul li ul li {
    display: block;
    white-space: nowrap;
}

nav ul li:hover ul {
    display: block;
}

/* Special case for dropdowns near the right edge */
nav ul li:last-child ul,
nav ul li:nth-last-child(2) ul {
    left: auto;
    right: 0;
}

nav ul li ul li a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    background-color: white;
    border-bottom: 1px solid #ddd; /* Added subtle bottom border */
}

nav ul li ul li a:hover {
    background-color: #7091E6; /* Hover effect with light blue */
}

/* Travel Plans */
.travel-plans {
    text-align: center;
    margin: 40px auto; /* Increased space above and below section */
    max-width: 1000px; /* Widen the content area */
    padding: 10px;
    background-color: #EDE8F5; /* Light lavender background */
    border-radius: 10px;
    border: 1px solid #3D52A0; /* Deep purple border */
}

.travel-plans h2 {
    color: #3D52A0; /* Deep purple for headings */
} 

/* Travel Plan Images */
.travel-plans-img-container {
    margin-top: 20px;
    text-align: center; /* Center the image and caption */
}

.travel-plans-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.caption {
    margin-top: 10px;
    font-style: italic;
    text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    color: black; /* Light blue caption text */
}

/* Styling for the new image + caption container */
.travel-image-caption {
    text-align: center; /* Center the content */
    margin-top: 40px; /* Increased space above */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the image and caption horizontally */
}

.travel-image-caption .travel-plans-img {
    width: 100%; /* Ensure the image is responsive */
    height: auto; /* Maintain the aspect ratio */
    border-radius: 10px; /* Optional: adds rounded corners */
}

.travel-image-caption .caption {
    margin-top: 10px;
    font-style: italic;
   /*   max-width: 80%; Ensure the caption doesn't stretch too wide */
    text-align: center; /* Center the caption text */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
    color: #8697C4; /* Light blue caption text */
}

main {
    text-align: center;
    padding: 20px;
    margin-bottom: 40px; /* Added more space below the main content */
}

main h2 {
    color: #3D52A0; /* Deep purple for headings */
}


main h3 {
    color: #3D52A0; /* Deep purple for headings */
} 

/* Blog Post */
.blog-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto; /* Increased space above and below section */
    max-width: 1000px; /* Widen the content area */
    padding: 10px;
    background-color: #fff; /* White background for posts */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Slight black shadow */
    border-radius: 10px;
    border: 1px solid #3D52A0; /* Deep purple border */
}

/* STAR */
.image-caption-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px; /* Increased space below the images */
}

.double-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px; /* Increased space below the images */
}

.blog-post-img {
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #3D52A0; /* Deep purple border around images */
}

.caption {
    max-width: 50%;
    font-style: italic;
    color: #8697C4; /* Light blue caption text */
    text-align: left;
    margin-left: 10px;
}

/* Reverse Layout */
.reverse-layout {
    flex-direction: row-reverse;
    text-align: right;
}

/* Two Images Side by Side */

.video-caption-wrapper {
    display: flex;
    align-items: center; /* Align video and caption vertically */
    justify-content: space-between; /* Add space between video and caption */
    gap: 20px; /* Space between the video and the caption */
    margin-bottom: 30px; /* Consistent spacing below the section */
}

.video-caption-wrapper video {
    max-width: 45%; /* Matches the size of images in other sections */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Rounded corners */
    border: 2px solid #3D52A0; /* Match the border style */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
}

.video-caption-wrapper .caption {
    max-width: 50%; /* Matches the caption width for other sections */
    text-align: left; /* Align text to the left */
    font-style: italic; /* Keep the italic styling */
    color: #8697C4; /* Use the same caption color */
}


.image-video-wrapper {
    display: flex;
    justify-content: center; /* Center items horizontally */
    gap: 10px; /* Add space between image and video */
    align-items: center; /* Align items to the center vertically */
}

.image-video-wrapper img,
.image-video-wrapper video {
    width: auto; /* Allow natural width */
    height: 600px; /* Set a consistent height for both */
    object-fit: cover; /* Ensure the content scales within the dimensions */
    border-radius: 10px; /* Rounded corners for consistency */
    border: 2px solid #3D52A0; /* Match the border style */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for consistency */
}

.image-video-wrapper + .caption {
    text-align: center; /* Center-align the caption */
    max-width: 80%; /* Limit the width for better readability */
    margin: 10px auto; /* Center the caption horizontally */
    font-style: italic; /* Maintain italic styling */
    color: #8697C4; /* Ensure the caption text matches the others */
}

.double-image .image-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between the images */
}

.double-image .blog-post-img {
    max-width: 45%;
    margin: 0; /* Remove margin between images */
}

.double-image .caption {
    max-width: 100%;
    text-align: center; /* Center the caption below both images */
    margin-top: 20px; /* Space between images and caption */
    color: #8697C4; /* Light blue caption text */
}


/* Three Images Side by Side */
.triple-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px; /* Increased space below the images */
}

.triple-image .image-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between the images */
}

.triple-image .blog-post-img {
    max-width: 30%; /* Adjust to fit three images */
    margin: 0; /* Remove margin between images */
}

.triple-image .caption {
    max-width: 100%;
    text-align: center; /* Center the caption below the images */
    margin-top: 20px; /* Space between images and caption */
    color: #8697C4; /* Light blue caption text */
}

/* Blog list styling */
.blog-list article {
    background-color: #ffffff;
    margin: 40px auto; /* Increased space above and below each article */
    padding: 10px;
    border-radius: 10px;
    max-width: 1000px; /* Widen the content area */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #3D52A0; /* Deep purple border */
}

.blog-list article img {
    display: block; /* Ensures the image appears on a new line */
    margin: 10px auto; /* Centers the image with space above and below */
    max-width: 50%; /* Reduce the size of images to half the container width */
    width: auto; /* Scales based on container */
    height: auto; /* Maintains aspect ratio */
    border-radius: 10px; /* Optional: Rounded corners */
    border: 2px solid #3D52A0; /* Matches your existing border styling */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Adds a shadow for a polished look */
}

/* Sidebar */
aside {
    text-align: center;
    padding: 20px;
    background-color: #7091E6; /* Light blue background for sidebar */
    margin-bottom: 40px; /* Increased space below the sidebar */
    border: 1px solid #3D52A0; /* Deep purple border */
}

aside h2 {
    color: #3D52A0; /* Deep purple for sidebar headings */
}

/* About Me Image */
.about-me-img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px; /* Increased space below the image */
    border: 3px solid #3D52A0; /* Deep purple border around image */
}

/* Footer */
footer {
    background-color: #3D52A0; /* Deep purple footer */
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
    clear: both;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin-top: 40px; /* Increased space above footer */
}

/* Lightbox Overlay */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top of other elements */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    align-items: center;
    justify-content: center;
    cursor: zoom-out; /* Indicate clicking closes the lightbox */
}

/* Centered image inside the lightbox */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #3D52A0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Close button (X) in the top corner */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none; 
}
.lightbox-close:hover {
    color: #ddd;
}
