/* Specific styles for about.html */
#about-hero {
    position: relative; /* Needed for absolute positioning of images */
    width: 100vw; /* Full viewport width */
    max-width: none; /* Override parent max-width */
    margin-left: calc(-50vw + 50%); /* Center trick for full-bleed */
    margin-right: calc(-50vw + 50%);
    height: 70vh; /* Adjust height as needed */
    overflow: hidden; /* Hide parts of images that might overflow */
}

#about-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, might crop */
    object-position: center; /* Center the image */
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
}

#about-hero img.active {
    opacity: 1;
}

/* Optional: Add a subtle overlay to make text more readable if you add text later */
/* #about-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); 
}
*/

#about-extended {
    padding-top: 40px; /* Adjust top padding to control space below hero */
    text-align: left; /* Override default center align for bio */
    max-width: 1000px; /* Increased max-width */
    /* Note: section default padding adds side padding */
}
#about-extended h2 {
    text-align: center; /* Center the heading specifically */
}
.language-toggle {
    margin-bottom: 20px;
    text-align: center; /* Position toggle in the center */
}
.lang-btn {
    padding: 8px 16px; /* Slightly adjusted padding */
    cursor: pointer;
    border: 1px solid #ddd; /* Lighter grey border */
    background-color: #f0f0f0; /* Light grey background for inactive */
    color: #666; /* Darker grey text for inactive */
    border-radius: 50px; /* Pill shape */
    margin: 0 10px; /* Increased horizontal margin for spacing */
    box-shadow: 0 2px 5px var(--color-shadow); /* Updated shadow */
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease; /* Smooth transition */
}
.lang-btn.active {
    background-color: var(--color-accent); /* Accent color background for active */
    color: var(--color-bg); /* Light text for active */
    border-color: var(--color-accent); /* Match background */
    box-shadow: 0 3px 7px var(--color-shadow-hover); /* Slightly stronger shadow */
}
.lang-btn:not(.active):hover {
    background-color: #e0e0e0; /* Slightly darker grey on hover */
    border-color: #ccc;
    color: #333;
}
.bio-content {
     max-width: 70ch; /* Limit width for readability */
     margin-left: auto;
     margin-right: auto;
     margin-bottom: 30px; /* Space below bio text */
}
.bio-fr {
    display: none; /* Hide French initially */
}

/* New Bio Layout Styles */
.bio-row {
    display: flex;
    align-items: center; /* Vertically center items in the row */
    margin-bottom: 40px; /* Space between rows */
    gap: 30px; /* Space between text and image */
}

.bio-text {
    flex: 1; /* Allow text block to take available space */
    min-width: 0; /* Prevent flex item overflow */
}

.bio-text p {
    margin-bottom: 0; /* Remove default p margin if needed, handled by row margin */
}

.bio-image {
    flex: 0 0 40%; /* Image takes 40% of width, doesn't grow/shrink */
    max-width: 40%;
    text-align: center; /* Center image if it's smaller than container */
}

.bio-image img {
    max-width: 100%;
    width: 100%; /* Ensure image takes full width of its container */
    height: auto; /* Allow aspect-ratio to determine height */
    aspect-ratio: 16 / 9; /* Enforce 16:9 ratio */
    object-fit: cover; /* Cover the area, cropping if needed */
    display: block; /* Remove extra space below image */
    border-radius: var(--border-radius-lg); /* Match card radius */
    box-shadow: 0 2px 5px var(--color-shadow); /* Match card shadow */
    transition: box-shadow 0.2s ease; /* Add transition */
}

.bio-image img:hover {
    box-shadow: 0 4px 10px var(--color-shadow-hover); /* Match card hover shadow */
}

/* Modifier for image on the left */
.bio-row.image-left {
    flex-direction: row-reverse; /* Reverse the order */
}

/* Modifier for full-width row (only text) */
.bio-row.full-width .bio-text {
    flex-basis: 100%; /* Text takes full width */
    max-width: 70ch; /* Apply readability width limit */
    margin-left: auto; /* Center the text block */
    margin-right: auto;
}

.bio-row.full-width .bio-image {
    display: none; /* Hide image container in full-width rows */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .bio-row {
        flex-direction: column; /* Stack text and image vertically */
        gap: 20px; /* Adjust gap for vertical layout */
    }

    .bio-row.image-left {
        flex-direction: column; /* Ensure stacking regardless of class */
    }

    .bio-image {
        flex-basis: auto; /* Reset flex basis */
        max-width: 80%; /* Allow image to be wider on small screens */
        margin: 0 auto; /* Center the image block */
    }

     .bio-row.full-width .bio-text {
        max-width: 100%; /* Allow full width text on small screens */
    }
}
/* End New Bio Layout Styles */

/* Topic Cards Styles */
.topic-cards {
    display: grid;
    /* Default to 2 columns for wider screens */
    grid-template-columns: 1fr 1fr;
    gap: 25px; /* Space between cards */
    margin-top: 40px; /* Space above the cards section */
    margin-bottom: 40px; /* Space below the cards section */
    padding: 0 15px; /* Add some horizontal padding */
}

/* Use auto-fit for smaller screens to allow stacking */
@media (max-width: 768px) {
    .topic-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.card {
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 5px var(--color-shadow); /* Updated shadow */
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 10px var(--color-shadow-hover); /* Updated hover shadow */
}

.card-icon {
    font-size: 2.5rem; /* Make icon larger */
    display: block;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-text); /* Changed from --color-accent */
}

.card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}
/* End Topic Cards Styles */

/* Video Player Styles */
.video-container {
    margin-top: 40px;
    margin-bottom: 40px; /* Add space below video */
    text-align: center; /* Center the video */
}

.bio-video {
    max-width: 80%; /* Control video width, adjust as needed */
    height: auto; /* Maintain aspect ratio */
    border-radius: var(--border-radius-lg); /* Match card radius */
    box-shadow: 0 2px 5px var(--color-shadow); /* Match card shadow */
    display: inline-block; /* Allow centering via text-align */
    transition: box-shadow 0.2s ease; /* Add transition */
}

.bio-video:hover {
     box-shadow: 0 4px 10px var(--color-shadow-hover); /* Match card hover shadow */
}

/* Responsive video width */
@media (max-width: 768px) {
    .bio-video {
        max-width: 95%; /* Allow video to be wider on small screens */
    }
}
/* End Video Player Styles */

.speaking-cta {
    margin-top: 40px;
    text-align: center;
}
.speaking-cta h3 {
    margin-bottom: 15px;
}
.speaking-cta p {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Style for the press excerpt image */
.press-excerpt-image {
    display: block; /* Ensure it takes up its own line */
    max-width: 50%; /* Adjust width to half of the container */
    margin: 25px auto; /* Center the image with vertical spacing */
    border-radius: var(--border-radius-lg); /* Match card radius */
    box-shadow: 0 2px 5px var(--color-shadow); /* Match card shadow */
    transition: box-shadow 0.2s ease; /* Add transition */
}

.press-excerpt-image:hover {
    box-shadow: 0 4px 10px var(--color-shadow-hover); /* Match card hover shadow */
}