/* ========== BASE STYLES ========== */
body {
    background-color: black;
    margin: 0;
    padding: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: #fff;
    font-family: 'Lato', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== NAVIGATION ========== */
.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: white;
    padding: 15px 30px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    transition: color 0.3s, transform 0.3s;
    position: relative;
    display: inline-block;
    color: black;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo:hover {
    color: #00bfff;
    transform: scale(1.05);
}

.logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #00bfff;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--body-font), var(--fallback-fonts);
    color: black;
    text-decoration: none;
    font-size: var(--font-size-nav);
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

.nav-link:hover {
    color: #00bfff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #00bfff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Accessibility focus styles */
.nav-link:focus,
.logo:focus {
    outline: 2px solid #00bfff;
    outline-offset: 2px;
}

/* ========== HERO SECTION ========== */
.hero {
    margin-bottom: 40px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 40px;
    /* Exact pixel value for left padding */
    padding-right: 20px;
    /* Exact pixel value for right padding */
    width: 100%;
    box-sizing: border-box;
}

.hero h1 {
    font-family: var(--header-font), var(--fallback-fonts);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    color: #fff;
}

.hero h2 {
    font-family: var(--header-font), var(--fallback-fonts);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-large);
    margin-bottom: 30px;
    width: 65%;
    /* THIS IS THE LINE TO CHANGE */
    color: #ccc;
}

.hero h3 {
    font-family: var(--header-font), var(--fallback-fonts);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-large);
    margin-bottom: 30px;
    width: 98%;
    /* This will now work! */
    color: #ccc;
}

/* ========== VIDEO/IMAGE CONTAINER ========== */
.video-container {
    width: 100%;
    height: auto;
    margin: 0 0 40px 0;
    padding: 0;
    box-sizing: border-box;
}

.featured-image {
    width: 100%;
    max-height: 75vh;
    display: block;
    object-fit: cover;
    object-position: center 80%;
    /* This moves the image up */
}

/* ========== MAIN CONTENT SECTIONS ========== */
.section {
    margin-bottom: 40px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 40px;
    /* Exact pixel value for left padding */
    padding-right: 40px;
    /* Exact pixel value for right padding */
    width: 100%;
    box-sizing: border-box;
}

.section h2 {
    font-family: var(--header-font), var(--fallback-fonts);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    border-bottom: 2px solid #00bfff;
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: #fff;
}

.section p {
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    margin-bottom: 20px;
    max-width: 90%;
    color: #eee;
}

.section ul {
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    margin-bottom: 20px;
    padding-left: 20px;
    max-width: var(--text-width);
}

.section li {
    margin-bottom: 8px;
}

/* Full-width content */
.full-width {
    max-width: 100% !important;
    width: 100%;
}

.section .full-width p,
p.full-width {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
}

/* ========== TEXT WITH IMAGE LAYOUT ========== */
.text-with-image {
    display: flex;
    gap: 40px;
    width: 100%;
    margin-bottom: 30px;
    align-items: flex-start;
}

.text-content {
    flex: 1 1 65%;
    max-width: 65%;
}

.side-image {
    flex: 0 1 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.side-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    margin-bottom: 8px;
}

/* Style for portrait-oriented images */
.portrait-image {
    max-height: 550px;
    /* Limit the height */
    width: auto;
    /* Let width adjust proportionally */
    object-fit: contain;
    /* Keep original aspect ratio */
    margin: 0 auto;
    /* Center the image */
    display: block;
    /* Needed for margin auto to work */
}

/* ========== IMAGE ROW & COLUMN LAYOUTS ========== */
.image-row {
    display: flex;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.image-column {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.image-column img {
    width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* ========== IMAGE CAPTION ========== */
.image-caption {
    text-align: center !important;
    width: 100%;
    margin: 8px auto 0;
    color: white;
    font-size: 1rem !important;
    font-family: 'Lato', Arial, sans-serif;
    /* Limit max width to keep captions from being too wide */
    max-width: 100%;
}

.caption-link {
    color: #00bfff;
    text-decoration: none;
    transition: color 0.3s;
}

.caption-link:hover,
.caption-link:focus {
    color: white;
    text-decoration: underline;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* ========== SOCIAL LINKS ========== */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 60px auto 20px;
    padding: 15px 0 0;
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-intro {
    color: white;
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body);
    text-align: center;
    margin: 0 0 15px 0;
    opacity: 0.9;
    font-weight: 300;
}

.social-links-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    color: #00bfff;
}

.social-link i {
    width: 20px;
    text-align: center;
}

/* ========== TRANSITIONS & ANIMATIONS ========== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: 9999;
    opacity: 1;
    pointer-events: all;
    transition: opacity 1.2s ease;
}

.fade-in-animation {
    animation: fadeIn 0.8s ease-in-out forwards;
}

.no-animation {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========== RESPONSIVE MEDIA QUERIES ========== */

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

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

    .hero h3 {
        font-size: 0.95rem;
    }

    .image-caption {
        font-size: 0.65rem;
    }

    .section p {
        font-size: 0.8rem;
    }
}

/* Small devices (large phones, 481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .logo {
        font-size: 1.1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

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

    .hero h3 {
        font-size: 1rem;
    }

    .image-caption {
        font-size: 0.7rem;
    }

    .section p {
        font-size: 0.85rem;
    }
}

/* Medium devices (tablets, 768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 1rem;
    }

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

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

    .image-caption {
        font-size: 0.75rem;
    }

    .section p {
        font-size: 0.9rem;
    }
}

/* Large devices (laptops/desktops, 1025px to 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .logo {
        font-size: 1.25rem;
    }

    .nav-link {
        font-size: 1.05rem;
    }

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

    .hero h3 {
        font-size: 1.35rem;
    }

    .image-caption {
        font-size: 0.8rem;
    }

    .section p {
        font-size: 0.95rem;
    }
}



/* Portrait orientation */
@media (orientation: portrait) {
    .video-container {
        height: 50vh;
    }
}

/* Landscape orientation */
@media (orientation: landscape) {
    .video-container {
        height: 75vh;
    }
}

/* High-resolution screens (retina displays) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    /* Optimizations for high-density screens */
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles if needed */
}

/* Print styles */
@media print {

    .top-menu,
    .social-links {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section p {
        font-size: 12pt;
    }
}