/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* Reset and base styles */
:root {
    /* Color Palette */
    --navy: #1B2A41;
    --charcoal: #2C3642;
    --cream: #F5F2EB;
    --taupe: #9B8E83;
    --stone: #8B8178;
    --emerald: #1D4B4A;
    --burgundy: #732F30;
    --moss: #4A593D;
    --gold: #B6935C;
    --paper: #F8F6F0;
    
    /* Functional Colors */
    --primary-color: var(--navy);
    --secondary-color: var(--charcoal);
    --accent-color: var(--gold);
    --text-color: var(--charcoal);
    --light-text: var(--taupe);
    --background-color: var(--paper);
    
    /* Spacing */
    --section-padding: 6rem 2rem;
    --container-max-width: 1200px;
    --language-bar-height: 2.5rem;
    --main-nav-height: 4.5rem;
    --total-header-height: calc(var(--language-bar-height) + var(--main-nav-height));
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', serif;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
}

/* Decorative Elements */
.decorative-frame {
    padding: 2rem;
    position: relative;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: var(--language-bar-height);
    left: 0;
    right: 0;
    height: var(--main-nav-height);
    background-color: rgba(245, 242, 235, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-full {
    display: block;
}

.logo-mobile {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--navy);
    position: absolute;
}

.hamburger {

}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    bottom: -8px;
}

/* Mobile menu active states */
.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Change breakpoint to 1200px for all mobile navigation styles */
@media (max-width: 1200px) {
    .mobile-menu-toggle {
        display: block;
        width: 30px;
        height: 30px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-container {
        padding: 0 1.2rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: calc(var(--language-bar-height) + var(--main-nav-height));
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - var(--total-header-height));
        background-color: var(--cream);
        flex-direction: column;
        gap: 0;
        padding: 2rem 1.5rem;
        transform: translateX(100%);
        transition: all 0.3s ease;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        display: flex;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        text-align: left;
        width: 100%;
    }

    :root {
        --language-bar-height: 2.5rem;
        --main-nav-height: 4rem;
        --total-header-height: calc(var(--language-bar-height) + var(--main-nav-height));
    }

    .language-bar .container {
        padding: 0 1.2rem;
    }

    .language-selector {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .logo-full {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    :root {
        --language-bar-height: 2.5rem;
        --main-nav-height: 4rem;
        --total-header-height: calc(var(--language-bar-height) + var(--main-nav-height));
    }

    .language-bar .container {
        padding: 0 1rem;
    }
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Hero Section Base Styles */
.hero {
    margin-top: var(--total-header-height);
    min-height: calc(100vh - var(--total-header-height));
    background-color: var(--navy);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
}

.hero-split {
    display: flex;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
}

.hero-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}

.hero-content {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    padding: 4rem;
    background-color: var(--navy);
}

.hero-text {
    max-width: 600px;
    padding: 0 2rem;
}

.hero h1 {
    color: var(--cream);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--cream);
    opacity: 0.9;
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero {
        margin-top: var(--total-header-height);
        min-height: auto;
        padding: 0;
    }

    .hero-split {
        flex-direction: column;
        min-height: auto;
        width: 100%;
    }

    .hero-image {
        flex: none;
        height: 45vh;
        width: 100%;
    }

    .hero-content {
        flex: none;
        width: 100%;
        padding: 2.5rem 0;
        margin: 0;
    }

    .hero-text {
        padding: 0 1.5rem;
        width: 100%;
        max-width: none;
    }

    .hero .section-container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-image {
        height: 40vh;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .hero-text {
        padding: 0 1.2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Reset section container for hero */
.hero .section-container {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Adjust spacing after hero */
.about {
    padding-top: 0;
    margin-top: 0;
}

@media (max-width: 768px) {
    /* Reset main padding on mobile */
    main {
        padding: 0;
    }

    /* Reset section container on mobile */
    .section-container {
        padding: 0 1rem;
    }

    /* But keep hero container full width */
    .hero .section-container {
        padding: 0;
    }
}

/* Buttons and CTAs */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border: 2px solid var(--accent-color);
    border-radius: 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button:hover {
    background-color: var(--accent-color);
    color: var(--cream);
}

/* New Button Styles - You can choose which one you like! */
/* Just change the class name in the HTML from "button" to any of these: */

/* Style 1: Filled Button */
.button-filled {
    background-color: var(--accent-color);
    color: var(--cream);
    border: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.button-filled:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(182, 147, 92, 0.2);
}

/* Style 2: Soft Button */
.button-soft {
    background-color: rgba(182, 147, 92, 0.1);
    color: var(--accent-color);
    border: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.button-soft:hover {
    background-color: rgba(182, 147, 92, 0.2);
}

/* Style 3: Underline Button */
.button-underline {
    background: none;
    border: none;
    color: var(--accent-color);
    padding: 0.5rem 0;
    position: relative;
}

.button-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.button-underline:hover::after {
    transform: scaleX(1);
}

/* Style 4: Double Border Button */
.button-double {
    background: none;
    color: var(--accent-color);
    padding: 1rem 2rem;
    border: 2px solid var(--accent-color);
    position: relative;
    z-index: 1;
}

.button-double::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--accent-color);
    z-index: -1;
    transition: all 0.3s ease;
}

.button-double:hover::after {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Button Color Variations */
/* Just change the class name in the HTML from "button" to any of these new ones */

/* Navy Button with Updates */
.button-navy {
    background-color: var(--navy);
    color: var(--cream);
    border: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    text-decoration: none;  /* Removes underline */
    border-radius: 30px;    /* Makes buttons rounded */
    display: inline-block;
    text-align: center;
}

.button-navy:hover {
    background-color: #2C3E5D;  /* slightly lighter navy */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 42, 65, 0.2);  /* subtle shadow on hover */
}

/* Burgundy Button with Updates */
.button-burgundy {
    background-color: var(--burgundy);
    color: var(--cream);
    border: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    text-decoration: none;  /* Removes underline */
    border-radius: 30px;    /* Makes buttons rounded */
    display: inline-block;
    text-align: center;
}

.button-burgundy:hover {
    background-color: #8B383A;  /* slightly lighter burgundy */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(115, 47, 48, 0.2);  /* subtle shadow on hover */
}

/* Emerald Button */
.button-emerald {
    background-color: var(--emerald);
    color: var(--cream);
    border: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.button-emerald:hover {
    background-color: #285E5D;  /* slightly lighter emerald */
    transform: translateY(-2px);
}

/* Cream Button with Navy Text */
.button-cream {
    background-color: var(--cream);
    color: var(--navy);
    border: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.button-cream:hover {
    background-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 42, 65, 0.1);
}

/* Gradient Button */
.button-gradient {
    background: linear-gradient(135deg, var(--navy) 0%, var(--burgundy) 100%);
    color: var(--cream);
    border: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.button-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 42, 65, 0.2);
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--navy) 100%);
}

/* Charcoal Button */
.button-charcoal {
    background-color: var(--charcoal);
    color: var(--cream);
    border: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.button-charcoal:hover {
    background-color: #3D4A57;  /* slightly lighter charcoal */
    transform: translateY(-2px);
}

/* Section Styling */
section:not(.hero) {
    padding-top: 3.6rem;
}

/* Speaking section button spacing */
.speaking .section-container > .button-navy {
    display: block;
    margin: 2rem auto;  /* Equal margin top and bottom */
    width: fit-content;
}

/* Special case for last section - only bottom padding is larger */
.contact {
    padding-top: 1rem;    /* Reduced from 3.6rem to match speaking section */
    padding-bottom: 6rem;   /* Keep more space before footer */
}

/* Adjust spacing for media section's bottom margin */
.media {
    padding-bottom: 1rem;  /* Reduced to match the spacing pattern */
}

.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    text-align: left;
}

/* Image Placeholders */
.image-placeholder {
    background-color: var(--stone);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    margin: 2rem 0;
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Libre Baskerville', serif;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--taupe);
    background-color: var(--cream);
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--navy);
    color: var(--cream);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-section {
    text-align: left;
}

.footer-section h4 {
    color: var(--cream);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: 'Libre Baskerville', serif;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--cream);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--cream);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    grid-column: 1 / -1;
}

.legal-links {
    margin-bottom: 1rem;
}

.legal-links a {
    color: var(--cream);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.legal-links a:hover {
    opacity: 1;
}

.copyright {
    color: var(--cream);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    footer {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-section {
        text-align: center;
        padding: 0 1rem;
    }

    .footer-section h4 {
        margin-bottom: 1.2rem;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        margin-bottom: 0.6rem;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.2rem;
    }

    .legal-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .copyright {
        padding: 0 1rem;
        line-height: 1.4;
    }
}

/* Small phones */
@media (max-width: 480px) {
    footer {
        padding: 2rem 0.5rem 1rem;
    }

    .footer-container {
        gap: 1.5rem;
    }

    .footer-section {
        padding: 0 0.5rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .footer-bottom {
        margin-top: 1.2rem;
    }

    .legal-links {
        gap: 0.8rem;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
    }

    .hero-image {
        flex: 0 0 40vh;
        width: 100%;
    }

    .hero-content {
        padding: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .language-bar {
        padding: 0.3rem 0;
    }
    
    .language-selector {
        justify-content: center;
    }
    
    .main-nav {
        top: var(--language-bar-height);
    }

    :root {
        --language-bar-height: 2.5rem;
        --main-nav-height: 4rem;
        --total-header-height: calc(var(--language-bar-height) + var(--main-nav-height));
    }
    
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Topic Cards */
.topic-card {
    perspective: 1000px;
    height: 250px;
    cursor: pointer;
    position: relative;
}

.topic-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.topic-card-front, 
.topic-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid var(--accent-color);
    text-align: center;
    border-radius: 4px;
}

.topic-card-front {
    background-color: var(--cream);
    transform: rotateY(0deg);
    z-index: 2;
}

.topic-card-back {
    background-color: var(--navy);
    transform: rotateY(180deg);
    z-index: 1;
}

.topic-card-back p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--cream);
    text-align: center;
}

.topic-card h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0;
    color: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    width: 100%;
}

.topic-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
    position: static;
}

/* Desktop hover behavior */
@media (min-width: 769px) {
    .topic-card:hover .topic-card-inner {
        transform: rotateY(180deg);
    }
    
    .topic-card:hover .topic-icon {
        transform: scale(1.2);
    }
}

/* Mobile flip behavior */
@media (max-width: 768px) {
    .topic-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        height: auto;
        min-height: 200px;
    }
    
    /* This is the key fix - when flipped, rotate the inner container */
    .topic-card.flipped .topic-card-inner {
        transform: rotateY(180deg);
    }
    
    .topic-card-front {
        transition: all 0.3s ease;
    }
    
    .topic-card:active .topic-card-front {
        transform: scale(0.98) rotateY(0deg);
    }
    
    /* Ensure proper stacking on mobile */
    .topic-card.flipped .topic-card-front {
        z-index: 1;
    }
    
    .topic-card.flipped .topic-card-back {
        z-index: 2;
    }
}

/* Ensure icons don't show on back of card */
.topic-card-back .topic-icon {
    display: none;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.media-item {
    padding: 2rem;
    background-color: var(--cream);
    border: 2px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    position: relative;
}

.media-item h4 {
    margin-bottom: 0.5rem;
    min-height: 4.2rem;  /* Set minimum height for title to ensure consistency */
    line-height: 1.4;
}

.media-item .interview-details,
.media-item .interview-date {
    margin: 0.3rem 0;
}

.media-item .button-navy {
    margin-top: auto;
    align-self: flex-start;
    width: fit-content;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.interview-details {
    color: var(--burgundy);
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.interview-date {
    color: var(--taupe);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.interview-description {
    color: var(--charcoal);
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

.publication-item .button-navy {
    padding: 0.8rem 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .media h3 {
        font-size: 1.6rem;
        margin: 2rem 0 1.5rem;
    }
}

/* Contact Wrapper */
.contact-wrapper {
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem;
    background-color: var(--cream);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Section Intros */
.section-intro {
    font-size: 1.3rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
}

/* Remove previous hero background styles */
.hero-background {
    display: none;
}

/* Content Panels in About Section */
.content-panel {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.content-panel.reverse {
    flex-direction: row-reverse;
}

.text-block {
    flex: 3;
}

.decorative-image {
    flex: 2;
    position: relative;
    min-height: 300px;
    background: var(--navy);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.decorative-image::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border: 1px solid var(--gold);
    opacity: 0.3;
    border-radius: 2px;
}

.placeholder-svg {
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-panel,
    .content-panel.reverse {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .decorative-image {
        min-height: 200px;
        width: 100%;
    }
}

.decorative-quote {
    margin: 4rem auto;
    padding: 3rem;
    text-align: center;
    position: relative;
    max-width: 800px;
    background-color: var(--navy);
    border-radius: 4px;
}

.decorative-quote blockquote {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: var(--cream);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

.quote-accent {
    color: var(--gold);
    font-size: 2rem;
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Remove the old content panel styles since we're not using them anymore */
.content-panel,
.content-panel.reverse,
.text-block,
.decorative-image,
.placeholder-svg {
    display: none;
}

.about-with-sidebar {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.main-content {
    flex: 2;
}

.visual-sidebar {
    flex: 1;
    padding-left: 2rem;
    border-left: 1px solid var(--gold);
}

.sidebar-element {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--navy);
    border-radius: 4px;
}

.sidebar-element h3 {
    color: var(--cream);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Libre Baskerville', serif;
}

.elegant-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elegant-list li {
    color: var(--cream);
    margin-bottom: 1.2rem;
    font-family: 'Source Sans Pro', sans-serif;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.elegant-list li::before {
    content: '•';
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 0.1rem;
}

.stat-number {
    font-size: 3rem;
    color: var(--gold);
    font-family: 'Libre Baskerville', serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--cream);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
}

/* Make it stack on mobile */
@media (max-width: 768px) {
    .about-with-sidebar {
        flex-direction: column;
    }
    
    .visual-sidebar {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--gold);
        padding-top: 2rem;
    }
}

/* Remove the old quote styles since we're not using them anymore */
.decorative-quote,
.quote-accent {
    display: none;
}

/* Button Container Styles */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

/* Reset text alignment to left */
.section-container {
    text-align: left;  /* Reset to left alignment */
}

/* Special case for buttons that are direct children of section-container */
.section-container > .button-burgundy {
    display: block;
    width: fit-content;
    margin: 2rem auto;  /* This centers the button while keeping text left-aligned */
}

/* Keep contact form elements left-aligned except the button */
.contact-form {
    text-align: left;
}

.contact-form button {
    display: block;
    margin: 2rem auto;  /* Centers the button */
}

/* Media Section Styles */
.media h3 {
    color: var(--navy);
    font-size: 1.8rem;
    margin: 3rem 0 2rem;
}

.media h4 {
    color: var(--navy);
    font-size: 1.3rem;
    margin: 0 0 1rem;
    line-height: 1.4;
}

/* Publications List Styles */
.publications-list {
    margin: 2rem 0;
}

.publication-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gold);
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    justify-content: space-between;
}

.publication-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.publication-text {
    margin: 0;
    line-height: 1.6;
    font-size: 1.1rem;
    flex: 1;
}

.publication-text em {
    font-style: italic;
}

.publication-item .button-navy {
    padding: 0.8rem 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .publication-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .publication-item .button-navy {
        align-self: flex-start;
    }
}

/* Thank You Page Styles */
.thank-you-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.thank-you-section h1 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.thank-you-section p {
    color: var(--charcoal);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.thank-you-section .button-navy {
    margin-top: 2rem;
}

/* Language Bar */
.language-bar {
    background-color: var(--navy);
    height: var(--language-bar-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.language-bar .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.language-selector {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
}

.language-selector a {
    color: var(--cream);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-family: 'Source Sans Pro', sans-serif;
}

.language-selector a:hover {
    opacity: 1;
}

.language-selector a.active {
    opacity: 1;
    font-weight: 600;
}

.language-selector .separator {
    color: var(--cream);
    opacity: 0.4;
}

/* Legal Links */
.legal-links {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--cream);
}

.legal-links a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--gold);
}

.legal-links .separator {
    margin: 0 0.5rem;
    color: var(--cream);
    opacity: 0.7;
}

.copyright {
    margin-top: 1.5rem;
    color: var(--cream);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Privacy and Terms Pages */
.privacy-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: var(--total-header-height) auto 0;  /* Add margin-top equal to header height */
}

.privacy-section .date {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.privacy-content {
    line-height: 1.6;
}

.privacy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.privacy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content p {
    margin-bottom: 1rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--navy);
    color: var(--cream);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: var(--gold);
    transform: translateY(-3px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Professional Profile Page Styles */
.professional-profile {
    padding: var(--section-padding);
    margin-top: var(--total-header-height);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.profile-image {
    flex: 0 0 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-title {
    flex: 1;
}

.profile-title h1 {
    margin-bottom: 1rem;
    color: var(--navy);
}

.profile-title .subtitle {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: var(--gold);
    font-size: 1.4rem;
    margin: 0;
}

.profile-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.profile-links {
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-image {
        flex: 0 0 250px;
        height: 250px;
        margin: 0 auto;
    }

    .profile-title {
        text-align: center;
    }
}

/* Section Backgrounds */
section:nth-child(even) {
    background-color: var(--cream);
}

section:nth-child(odd) {
    background-color: #fff;
}

/* Add subtle borders to sections for better visual separation */
section {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ensure proper spacing between sections */
section:not(:first-child) {
    margin-top: -1px; /* Prevent double borders */
}

/* Topic Cards Adjustments */
.topic-card-front h3 {
    display: flex;
    flex-direction: column;
    align-items: center;  /* Center all items horizontally */
    gap: 1rem;
    text-align: center;  /* Center the text */
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    width: 100%;
}

.topic-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
    position: static;
}

.topic-card-front {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;  /* Center content horizontally */
    justify-content: center;  /* Center content vertically */
    height: 100%;  /* Take full height of card */
    text-align: center;  /* Ensure all text is centered */
}

/* Back of card should also be centered */
.topic-card-back {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-card-back p {
    text-align: center;
}

/* Mobile Responsiveness - Comprehensive Update */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Navigation adjustments */
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Mobile menu */
    .nav-links {
        display: none; /* Hide default menu */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--cream);
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 1rem;
    }

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

    .mobile-menu-toggle {
        display: block;
        width: 30px;
        height: 30px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hamburger {
        width: 100%;
        height: 2px;
        background-color: var(--navy);
        position: relative;
        transition: all 0.3s ease;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--navy);
        transition: all 0.3s ease;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    /* Hero section adjustments */
    .hero {
        margin-top: var(--total-header-height);
        min-height: auto;
    }

    .hero-split {
        flex-direction: column;
    }

    .hero-image {
        height: 40vh;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Section padding adjustments */
    section {
        padding: 3rem 1rem;
    }

    .section-container {
        padding: 0 1rem;
    }

    /* About section */
    .about-with-sidebar {
        flex-direction: column;
        gap: 2rem;
    }

    .visual-sidebar {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--gold);
        padding-top: 2rem;
    }

    /* Topics grid */
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .topic-card {
        height: auto;
        min-height: 200px;
    }

    /* Media section */
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .media-item {
        min-height: auto;
        padding: 1.5rem;
    }

    .publication-item {
        flex-direction: column;
        gap: 1rem;
    }

    /* Contact form */
    .contact-wrapper {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    /* Button adjustments */
    .button-navy,
    .button-burgundy {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    /* Professional profile */
    .profile-header {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 1rem;
    }

    .profile-image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .profile-content {
        padding: 0 1rem;
    }

    /* Language selector */
    .language-bar .container {
        padding: 0 1rem;
    }

    .language-selector {
        justify-content: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    /* Further typography reduction */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Tighter spacing */
    section {
        padding: 2rem 0.8rem;
    }

    .hero-content {
        padding: 2rem 0.8rem;
    }

    /* Smaller images */
    .profile-image {
        width: 150px;
        height: 150px;
    }

    /* Adjust card heights */
    .topic-card {
        min-height: 180px;
    }

    .media-item {
        padding: 1.2rem;
    }

    /* Footer adjustments */
    .footer-container {
        padding: 0 0.8rem;
    }

    /* Form elements */
    input,
    textarea {
        padding: 0.8rem;
    }

    /* Button size */
    .button-navy,
    .button-burgundy {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .section-container {
        padding: 0 2rem;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Add smooth transitions for menu */
.nav-links {
    transition: all 0.3s ease;
}

/* Ensure proper touch targets */
@media (max-width: 768px) {
    .nav-links a,
    .footer-links a,
    .social-links a {
        padding: 0.8rem 0;
        display: inline-block;
    }

    .topic-card,
    .media-item,
    button {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 768px) {
    .privacy-section {
        padding: 2rem 1rem;
        margin-top: var(--total-header-height);
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(27, 42, 65, 0.8);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 4px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-family: 'Libre Baskerville', serif;
}

.modal p {
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal .button-navy {
    display: inline-block;
    margin: 0 auto;
}

.modal.success h3 {
    color: var(--emerald);
}

.modal.error h3 {
    color: var(--burgundy);
}

.modal-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal.success .modal-icon {
    color: var(--emerald);
}

.modal.error .modal-icon {
    color: var(--burgundy);
}

/* Modal animation */
.modal-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active .modal {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
} 