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

html,
body {
    height: 100%;
    /* Ensures the full page height for background image */
}

body {
    font-family: 'Arial', sans-serif;
    /* Example font */
    line-height: 1.6;
    color: #000;

    /* background: url('./images/background_image_1.jpg') no-repeat center center fixed; */
    /* random image selection starts here */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    /* random image selection ends here */

    height: 100%;
    /* Full height for background image */
}

header {
    text-align: center;
    padding: 20px 0;
}

header h1 {
    font-size: 3em;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    /* Space for the underline */
}

/* Centering the main app container */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header h1:after {
    content: '';
    width: 100%;
    height: 3px;
    background-color: red;
    position: absolute;
    left: 0;
    bottom: -10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    background: #333;
    /* Dark background for the nav */
    text-align: center;
}

nav ul li {
    display: inline-block;
    /* Display inline for horizontal menu */
}

nav ul li a {
    display: block;
    /* Make the links fill the li for larger click area */
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    /* White text color */
    font-weight: bold;
}

nav ul li a:hover,
nav ul li a.active {
    background: #555;
    /* Lighter background on hover and active */
}

/* Hamburger button styling */
#hamburger-btn {
    display: none;
    /* Hidden by default */
    background: none;
    border: none;
    color: #fff;
    /* Match the text color of your nav */
    padding: 10px;
    font-size: 1.5em;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.75em;
    margin-top: auto;
    /* Smaller font size */
}

footer p {
    color: #666;
    /* Dark gray color */
}


#what-we-do {
    background: rgba(255, 255, 255, 0.9);
    /* Semi-transparent background for readability */
    padding: 40px 0;
}

#what-we-do .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#what-we-do h2 {
    text-align: center;
    margin-bottom: 30px;
}

#what-we-do .content {
    font-size: 1.1em;
    /* Slightly larger font size for readability */
    line-height: 1.8;
    /* Increased line height for readability */
}

#what-we-do .timeline {
    margin-top: 30px;
    background: #f0f0f0;
    /* Light background for the timeline */
    padding: 20px;
    border-radius: 8px;
    /* Rounded corners */
}

#what-we-do .timeline ul {
    list-style-type: none;
}

#what-we-do .timeline ul li {
    margin-bottom: 10px;
    /* Space between list items */
}

#what-we-do .timeline ul li:before {
    content: '▹';
    /* Custom bullet */
    color: red;
    /* Color of the bullet */
    font-weight: bold;
    /* Make the bullet bold */
    display: inline-block;
    /* Needed to apply margins */
    width: 20px;
    /* Space before the list text */
    margin-left: -20px;
    /* Align with the content above */
}

#who-we-are .container {
    max-width: 1200px;
    margin: 0 auto;
    /* Center the container */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center align items for mobile view */
}

.team-member {
    width: 100%;
    /* Full width to contain flex children */
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    /* Spacing between team members */
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

.team-member img {
    width: 150px;
    /* Fixed width for the image */
    height: 150px;
    /* Fixed height for images */
    border-radius: 50%;
    /* Circular images */
    margin-right: 20px;
    /* Space between the image and the text */
    object-fit: cover;
    /* Ensure the aspect ratio is maintained */
}

.member-info {
    flex-grow: 1;
    /* Allow the text to fill the space next to the image */
}


#contact {
    text-align: center;
    /* Center-align the text */
    padding: 20px;
}

#contact a {
    color: #009688;
    /* Set your desired color */
    text-decoration: none;
    /* Removes the underline */
    font-weight: bold;
    /* Makes it bold */
}

#contact a:hover {
    text-decoration: underline;
    /* Adds an underline on hover for better user interaction */
}


/* Add active class styling */
nav ul li a.active {
    background: #555;
    /* Lighter background for active item */
    color: #fff;
    /* White text color for active item */
}

/* Section improvements */
.content-section {
    padding: 50px 0;
    /* Increased padding */
    background-color: rgba(255, 255, 255, 0.8);
    /* Light background for better readability */
    margin: 30px 0;
    /* Add margin to separate sections */
    border-radius: 8px;
    /* Optional: rounded corners for aesthetics */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Optional: subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth transition for hover effect */
}

/* Slightly scale up the section on hover for emphasis */
.content-section:hover {
    /* transform: scale(1.02); */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Typography improvements */
.content-section h2 {
    margin-bottom: 20px;
    color: #333;
    /* Darker shade for heading for better contrast */
    font-weight: 600;
    /* Make headings a bit bolder */
}

.content-section p,
.content-section li {
    color: #444;
    /* Slightly darker text for better readability */
    font-size: 1rem;
    /* Adjust text size as needed */
}

/* Utilize a before pseudo-element for a color block at the top of each section */
.content-section:before {
    content: '';
    display: block;
    height: 5px;
    background-color: #009688;
    /* Use your theme color */
    border-radius: 8px 8px 0 0;
    /* Rounded top corners */
}


/* Add a hover effect to images to make them stand out */
.team-member img {
    transition: transform 0.3s ease;
    /* Smooth transition for hover effect */
}

.team-member img:hover {
    transform: scale(1.1);
    /* Slightly scale up images on hover */
}

/* Make sure to add the 'active' class to the active nav item in your JavaScript */


/* Centering the main app container */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Content sections */
.content-section {
    flex: 1;
    /* This will allow the content section to grow and fill available space */
    display: flex;
    /* Enables flexbox for centering */
    justify-content: center;
    /* Centers content horizontally */
    align-items: center;
    /* Centers content vertically */
    padding: 40px 15px;
    /* Adds padding around the content */
}

.content-section .container {
    max-width: 1200px;
    /* Adjust as necessary */
    width: 100%;
    /* Makes sure the container takes up the available width */
    padding: 0 15px;
    /* Adds some padding inside the container */
    text-align: center;
    /* Center text by default */
}

/* Adjust the team-member layout for mobile */
.team-member {
    display: flex;
    justify-content: center;
    /* Center team members horizontally */
    align-items: center;
    flex-direction: column;
    /* Stack them vertically on smaller screens */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.gallery-item p {
    text-align: center;
    margin-top: 5px;
}

.gallery-image {
    border-radius: 12px;
    object-fit: cover;
    max-width: 100%;
}

.gallery-video {
    border-radius: 12px;
    width: 100% !important;
    height: auto !important;
    display: block;

}


/* Adjustments for video highlights */
.video-highlight {
    margin-bottom: 20px;
    /* Space between each video highlight */
    padding: 15px;
    /* Padding around the content */
    background-color: #f9f9f9;
    /* Light background for contrast */
    border-radius: 4px;
    /* Rounded corners for aesthetics */
    border: 1px solid #ddd;
    /* Border for distinction */
    text-align: center;
    /* Center-align the text content */
}

/* Styles for the title and description in the video highlight */
.video-highlight h3,
.video-highlight p {
    margin-top: 10px;
    /* Space above the title/description */
    color: #333;
    /* Darker text for better readability */
}

/* Styles specifically for the iframe container within video highlights */
.video-highlight .iframe-container {
    position: relative;
    /* Relative positioning for absolute children */
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    /* Collapse the div and let padding-bottom give it height */
    overflow: hidden;
    /* Prevents content from overflowing */
    background: #000;
    /* Background color in case the iframe doesn't load */
}

.video-highlight iframe {
    position: absolute;
    /* Absolute positioning within the .iframe-container */
    top: 0;
    left: 0;
    /* Align to the top-left corner of the .iframe-container */
    width: 100%;
    /* Full width of the container */
    height: 100%;
    /* Full height of the container */
}

.advisors {
    display: grid;
    grid-template-columns: 2fr 5fr;
    /* Adjust the ratio to make the image column narrower and the text column wider */
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 20px;
    padding: 20px;
    align-items: unsafe;
}

.advisors img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.advisor-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    word-break: keep-all;
    /* Prevents breaking words inappropriately for Korean text */

}

.advisor-info h3 {
    color: #333;
    margin-bottom: 10px;
}

.advisor-info ul {
    list-style: none;
    padding: 0;
}

.advisor-info ul li {
    color: black;
    margin-bottom: 0.3em;
    /* line-height: 1.6;  */

}

.advisor-info p {
    color: #555;
    margin-bottom: 0.5em;
    /* line-height: 1.5; */
}

/* 

.advisor-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    text-align: left;
}

.advisor-info h3 {
    color: #333; 
    margin-bottom: 10px;
    text-align: left; 
}

.advisor-info ul {
    list-style-position: inside;
} */


/* Media query for mobile devices */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
        /* Smaller font size for mobile */
    }

    .team-member {
        flex-direction: column;
        /* Stack vertically on small screens */
        align-items: center;
        /* Center align items for mobile view */
    }

    .team-member img {
        margin-bottom: 10px;
        /* Space between the image and text on mobile */
    }

    .member-info {
        text-align: center;
        /* Center the text on mobile */
    }

    .content-section {
        padding: 20px;
        /* Less padding on mobile */
    }

    .content-section .container {
        padding: 0 10px;
        /* Adjust padding for smaller screens */
    }

    .video-highlight {
        margin-bottom: 15px;
        /* Smaller margin on mobile */
    }

    .video-highlight h3,
    .video-highlight p {
        margin-top: 8px;
        /* Smaller space above the title/description */
    }

    .advisors {
        grid-template-columns: 1fr;
        /* Stack on smaller screens */
    }

}