/* Source Sans 3 Font - Self-hosted Variable Fonts */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('../fonts/source-sans3/SourceSans3-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
    src: url('../fonts/source-sans3/SourceSans3-Italic.woff2') format('woff2');
}

/* Apply Source Sans 3 font globally */
body,
html,
h1, h2, h3, h4, h5, h6,
p, li, a, span, div,
input, textarea, select, button,
.btn, .menu, .navbar,
.hero, .section {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* H1 heading styles - consistent across all pages */
h1 {
    text-align: center;
    font-weight: 400;
}

/* H2 heading styles - consistent across all pages */
h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
}

.hero{
    padding-bottom: 4rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 2rem;
    }
}

/* Section-specific h2 adjustments */
.welcome-section h2 {
    margin-top: 5rem;
}

.distances-section h2 {
    margin-bottom: 15px;
}

.partners-section h2 {
    margin-bottom: 0;
}

.sponsors-section h2{
    margin-bottom: 0;
}

/* Text-Image Modular Template Styles */
.modular-text-image {
    padding: 3rem 0;
}

.text-image-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.text-image-container.image-right {
    flex-direction: row;
}

.text-image-container.image-left {
    flex-direction: row-reverse;
}

.text-image-content {
    flex: 1;
}

.text-image-picture {
    flex-shrink: 0;
}

.text-image-picture img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.text-only {
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .text-image-container {
        flex-direction: column !important;
    }
    
    .text-image-picture {
        width: 100%;
        flex-basis: 100% !important;
    }
}

/* Utility classes for default pages (non-modular) */
.image-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 45%;
    padding-top: 0.5em;
}

.image-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 45%;
    padding-top: 0.5em;
}

.image-center {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
}

.image-left img,
.image-right img,
.image-center img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .image-left,
    .image-right {
        float: none;
        margin: 1rem auto;
        max-width: 100%;
        display: block;
    }
}

/* WT Watermark - Background logo on hero images bottom-right */
.modular-hero::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background-image: url('../images/wt-watermark.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Make hero positioned relative for absolute positioning */
.modular-hero {
    position: relative;
}

/* Slightly more visible on hover */
.modular-hero:hover::after {
    opacity: 0.6;
    pointer-events: auto;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .modular-hero::after {
        bottom: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
        opacity: 0.3;
    }
    
    .modular-hero:hover::after {
        opacity: 0.6;
    }
}

/* Smaller on very small screens */
@media (max-width: 480px) {
    .modular-hero::after {
        bottom: 12px;
        right: 12px;
        width: 48px;
        height: 48px;
        opacity: 0.12;
    }
    
    .modular-hero:hover::after {
        opacity: 0.2;
    }
}
