:root {
    /* Colors */
    --color-primary: #007bff;
    --color-primary-dark: #0056b3;
    --color-text: #333;
    --color-text-light: #666;
    --color-background: turquoise;
    --color-white: #fff;

    /* Shadows */
    --shadow-small: 0 2px 16px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 4px 32px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --radius-default: 16px;
    --radius-round: 50%;

    /* Transitions */
    --transition-default: all 0.3s ease;
    --transition-fast: all 0.2s cubic-bezier(.4, 0, .2, 1);
}

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

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #4f7982;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header-section {
    background-color: var(--color-white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-home-link {
    text-decoration: none;
    color: inherit;
}

.blog-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text);
}

/* Navigation */
.navigation-bar {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-default);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
}

/* Language Toggle */
.language-toggle {
    background: var(--color-white);
    border: 1px solid #bbb;
    border-radius: 12px;
    padding: 2px 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    min-width: 48px;
    min-height: 28px;
}

.language-toggle:hover {
    background-color: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.lang-option {
    transition: var(--transition-default);
    opacity: 0.6;
}

.lang-option.active {
    opacity: 1;
    color: var(--color-primary);
    font-weight: 700;
}

.language-toggle:hover .lang-option,
.language-toggle:hover .lang-option.active {
    color: var(--color-white);
}

.lang-divider {
    opacity: 0.4;
}

/* Main Content */
.main-section {
    padding: 60px 0;
}

.blog-posts {
    display: grid;
    gap: 60px;
}

.blog-post {
    opacity: 1;
    transform: none;
    transition: var(--transition-default);
}

.blog-post.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Images */
.main-image {
    width: 100%;
    height: 290px;
    object-fit: cover;
    border-radius: var(--radius-default);
    display: block;
    background: var(--color-white);
    box-shadow: var(--shadow-small);
    transition: var(--transition-default);
}

.main-image:hover {
    box-shadow: var(--shadow-large);
}

/* Styled Images with Overlay Text */
.styled-image {
    margin: 0;
    border-radius: var(--radius-default);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    background: var(--color-white);
    position: relative;
}

.styled-image:hover {
    box-shadow: var(--shadow-large);
}

.image-caption {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

/* Blog Content */
.blog-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: black;
    margin: 0;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

.blog-content blockquote {
    font-style: italic;
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid var(--color-primary);
}

.blog-content strong {
    font-weight: 600;
    color: var(--color-text);
}

/* Leadership Section */
.leadership-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.leadership-card {
    background: var(--color-white);
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-small);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    transition: var(--transition-default);
    opacity: 0;
    transform: translateY(30px);
}

.leadership-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.leadership-card:hover {
    box-shadow: var(--shadow-large);
}

.leadership-card figure {
    margin: 0;
}

.leadership-card img {
    border-radius: var(--radius-default) var(--radius-default) 0 0;
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center 10%;
}

.leadership-card figcaption {
    padding: 1.5rem;
}

.leadership-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.leadership-card .role {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    border-radius: var(--radius-round);
    box-shadow: var(--shadow-small);
    transition: var(--transition-default);
}

.social-icon-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

/* Language Switching Animation */
.lang-switching {
    pointer-events: none;
}

.lang-switching * {
    transition: opacity 0.15s ease;
}

/* Touch Device Adjustments */
.touch-device .leadership-card:hover {
    transform: none;
}

.touch-device .social-icon-link:hover {
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section .container {
        flex-direction: column;
        gap: 20px;
    }

    .blog-name {
        font-size: 1.5rem;
    }

    .navigation-bar {
        gap: 20px;
    }

    .blog-headline {
        font-size: 1.8rem;
    }

    .main-image {
        height: 250px;
    }

    .leadership-section {
        flex-direction: column;
        align-items: center;
    }

    .leadership-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-section {
        padding: 40px 0;
    }

    .blog-posts {
        gap: 40px;
    }

    .blog-headline {
        font-size: 1.6rem;
    }

    .social-links {
        gap: 15px;
    }

    .image-caption {
        top: 35%;
    }
}

/* Section Cards (same style as leadership cards) */
.section-card {
    background: var(--color-white);
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-small);
    overflow: hidden;
    transition: var(--transition-default);
    margin-bottom: 2rem;
}

.section-card:hover {
    box-shadow: var(--shadow-large);
}

.section-card figure {
    margin: 0;
}

.section-card img {
    border-radius: var(--radius-default) var(--radius-default) 0 0;
    width: 100%;
    height: 290px;
    object-fit: cover;
    display: block;
}

.section-card-caption {
    padding: 1.5rem;
    background: var(--color-white);
    text-align: center;
}

.section-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}

.section-card-caption p {
    margin-bottom: 1em;
}

.section-card-caption strong {
    display: block;
    margin-bottom: 0.5em;
    color: #333;
    font-weight: bold;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    margin-top: 2rem;
}

/* Let long email addresses and other text wrap */
.footer-column,
.section-card-caption {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Make the language button easier to tap */
.language-toggle {
    min-height: 44px;
    min-width: 64px;
}

@media (max-width: 768px) {
    /* Stack footer columns on smaller screens */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Override the later 290px image rule */
    .section-card img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    /* Reduce padding around mobile text */
    .section-card-caption {
        padding: 1rem;
    }
}

/* Remove duplicate padding from nested captions */
.section-card-caption .section-card-caption {
    padding: 0;
}
/* Keep the expanded navigation usable on narrow screens. */
.navigation-bar {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Shared language selector: each language is keyboard and touch accessible. */
.site-logo { display: block; width: 200px; max-width: 100%; height: auto; }
.language-toggle { padding: 0 4px; cursor: default; }
.language-toggle .lang-option {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .8rem;
    min-width: 40px;
    min-height: 44px;
    cursor: pointer;
}
.language-toggle .lang-option.active { color: var(--color-primary-dark); }
.lang-option:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 2px; }
[data-content-lang][hidden] { display: none !important; }
