/* Font Face Declarations */
@font-face {
    font-family: 'Hand of Sean';
    src: url('../fonts/HandOfSean.woff2') format('woff2'),
         url('../fonts/HandOfSean.woff') format('woff'),
         url('../fonts/HandOfSean.ttf') format('truetype'),
         url('../fonts/HandOfSean.eot') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    height: 100%;
    font-family: 'Raleway', sans-serif;
    overflow: hidden; /* Prevent all scrolling */
}

/* Cover Link Styles */
.cover-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.cover-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Cover Section Styles */
.cover-section {
    position: fixed;
    top: 0; /* Start from top for index page */
    left: 0;
    width: 100%;
    height: 100%; /* Full height for index page */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    cursor: pointer;
}

/* Contents page specific cover section */
.contents-page .cover-section {
    top: 100px; /* Start below the header */
    height: calc(100% - 200px); /* Full height minus header (100px) and footer (100px) */
}

/* Video Background */
.cover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Image Background Fallback */
.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Sustainability Background Image */
.sustainability-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Revegetation Background Image */
.revegetation-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Custodianship Background Image */
.custodianship-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Citizen Science Background Image */
.citizen-science-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Reef Health Background Image */
.reef-health-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* UNESCO Background Image */
.unesco-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Overlay for better text readability */
.cover-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 80, 145, 0.4);
    z-index: 1;
}

/* Cover Content */
.cover-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    padding: 2rem;
}

/* Logo Styles */
.cover-content .logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 2rem;
}

.cover-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.cover-content p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Subheading Styles */
.cover-content .subheading {
    font-family: 'Hand of Sean', cursive;
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 2rem;
    font-style: normal;
    letter-spacing: -1px;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #005596;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the logo */
    padding: 25px 25px 0 0; /* 25px top and right padding */
}

/* Header Logo */
.header-logo {
    height: 133px; /* 75% of 133px = 100px (inside header), 25% = 33px (hanging over) */
    width: auto;
    position: relative;
    top: 25px; /* Push 25% (33px) below the header bottom */
}

/* Header Time */
.header-time {
    position: absolute;
    right: 25px; /* 25px from right edge */
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    height: 50px;
    padding: 15px 0; /* 15px top and bottom padding */
    color: white;
    font-family: 'Raleway', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Styles */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #005596;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between icons and text */
    padding: 15px 25px; /* 15px top/bottom, 25px left/right */
}

/* Sustainability page footer color */
.sustainability-page .main-footer {
    background-color: #742357; /* Deep Purple - matches sustainability button */
}

/* Revegetation page footer color */
.revegetation-page .main-footer {
    background-color: #449983; /* Teal Green - matches revegetation button */
}

/* Custodianship page footer color */
.custodianship-page .main-footer {
    background-color: #55c1ac; /* Light Teal - matches custodianship button */
}

/* Citizen Science page footer color */
.citizen-science-page .main-footer {
    background-color: #ffd400; /* Yellow - matches citizen science button */
}

/* Reef Health page footer color */
.reef-health-page .main-footer {
    background-color: #f47c26; /* Orange - matches reef health button */
}

/* UNESCO page footer color */
.unesco-page .main-footer {
    background-color: #f04e5e; /* Coral Red - matches UNESCO button */
}

/* Footer Icons */
.footer-icons {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between the two icons */
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-icon:hover {
    opacity: 0.7;
    text-decoration: none;
}

.footer-icon img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1); /* Make icons white */
}

.footer-text {
    color: rgba(255, 255, 255, 0.25); /* White with 25% opacity */
    font-family: 'Hand of Sean', cursive;
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: -1px;
}

/* Island Name */
.island-name {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Page Heading */
.cover-content .page-heading {
    font-family: 'Hand of Sean', cursive;
    font-size: 4rem;
    font-weight: normal;
    color: white;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -1px;
    text-transform: capitalize;
}

/* Main Buttons Container */
.main-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 75vw; /* 75% of viewport width */
    gap: 35px;
}

/* Category Buttons Container */
.category-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 75vw; /* 75% of viewport width */
    gap: 35px;
    margin: 2rem auto 0; /* Center horizontally and add top spacing */
}

/* Content Buttons */
.content-button {
    flex: 1;
    border: none;
    border-radius: 12px; /* Slightly rounded square edges */
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.content-button::before {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Hand of Sean', cursive;
    font-size: 8rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.content-button:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Category Buttons */
.category-button {
    flex: 1;
    border: none;
    border-radius: 12px; /* Slightly rounded square edges */
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-decoration: none;
}

.category-button:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Button Colors - Different colors for each button */
.sustainability-btn {
    background-color: #742357; /* Deep Purple */
}

.revegetation-btn {
    background-color: #449983; /* Teal Green */
}

.custodianship-btn {
    background-color: #55c1ac; /* Light Teal */
}

.citizen-science-btn {
    background-color: #ffd400; /* Golden Yellow */
}

.reef-health-btn {
    background-color: #f47c26; /* Orange */
}

.unesco-btn {
    background-color: #f04e5e; /* Coral Red */
}

/* Sustainability Color for Category Buttons */
.sustainability-color {
    background-color: #742357; /* Deep Purple - matches sustainability theme */
    position: relative;
    overflow: hidden;
}

.sustainability-color::before {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Hand of Sean', cursive;
    font-size: 8rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* Revegetation Color for Category Buttons */
.revegetation-color {
    background-color: #449983; /* Teal Green - matches revegetation theme */
    position: relative;
    overflow: hidden;
}

.revegetation-color::before {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Hand of Sean', cursive;
    font-size: 8rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* Custodianship Color for Category Buttons */
.custodianship-color {
    background-color: #55c1ac; /* Light Teal - matches custodianship theme */
    position: relative;
    overflow: hidden;
}

.custodianship-color::before {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Hand of Sean', cursive;
    font-size: 8rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* Citizen Science Color for Category Buttons */
.citizen-science-color {
    background-color: #ffd400; /* Yellow - matches citizen science theme */
    position: relative;
    overflow: hidden;
}

.citizen-science-color::before {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Hand of Sean', cursive;
    font-size: 8rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* Reef Health Color for Category Buttons */
.reef-health-color {
    background-color: #f47c26; /* Orange - matches reef health theme */
    position: relative;
    overflow: hidden;
}

.reef-health-color::before {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Hand of Sean', cursive;
    font-size: 8rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* UNESCO Color for Category Buttons */
.unesco-color {
    background-color: #f04e5e; /* Coral Red - matches UNESCO theme */
    position: relative;
    overflow: hidden;
}

.unesco-color::before {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Hand of Sean', cursive;
    font-size: 8rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}


/* Secondary Navigation Panel */
.secondary-nav {
    position: fixed;
    bottom: 100px; /* Above the footer */
    left: 0;
    right: 0;
    height: 100px;
    background-color: #005596;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 999;
    padding: 0 25px;
}

.secondary-nav-link {
    color: white;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.secondary-nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.secondary-nav-link.current {
    color: #ffd400;
    font-weight: 700;
    text-decoration: underline;
}

.nav-separator {
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Main Content - Hidden for interactive screen */
.main-content {
    display: none; /* Hide main content for interactive screen */
}

/* Main Content - Scrollable content area (only for internal pages) */
.internal-page .main-content {
    display: block;
    position: fixed;
    top: 200px; /* 200px space from header */
    left: 0;
    right: 0;
    bottom: 200px; /* 200px space above secondary nav */
    z-index: 100;
    overflow: hidden;
}

.content-area {
    width: 100%; /* Full width */
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* 20% transparent white */
    overflow-y: auto;
    padding: 20px 90px 20px 25px; /* 25px left padding, 90px right padding for arrows, 20px top/bottom */
    box-sizing: border-box;
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.content-area::-webkit-scrollbar {
    display: none; /* WebKit browsers (Chrome, Safari, Edge) */
}

.page-category {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #005091;
    margin-bottom: 0.75rem;
}

.water-title {
    font-family: 'Hand of Sean', cursive;
    font-size: 2.5rem;
    font-weight: normal;
    color: #005091;
    letter-spacing: -1px;
}

.content-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #005091;
    margin-bottom: 2rem;
    text-align: left;
}

.content-body {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

.content-body * {
    font-family: 'Raleway', sans-serif;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    font-family: 'Raleway', sans-serif;
    color: #005091;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

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

.content-body ul,
.content-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-body img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

/* Hand of Sean font class for nicedit */
.content-body .handofsean {
    font-family: 'Hand of Sean', cursive !important;
    font-size: 1.2em;
    letter-spacing: -1px;
}

/* Make all images in content area 100% width with auto height */
.content-body img {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1rem 0;
}

/* Make Heading 4 always use Hand of Sean font */
.content-body h4 {
    font-family: 'Hand of Sean', cursive !important;
    font-size: 1.3em;
    letter-spacing: -1px;
    font-weight: normal;
}

/* Handle nicedit font face attributes */
.content-body font[face="hand of sean"] {
    font-family: 'Hand of Sean', cursive !important;
    letter-spacing: -1px;
    font-size: 24px !important;
    color: white !important; /* White text */
    background-color: #742357 !important; /* Sustainability purple background */
    padding: 25px !important; /* 25px padding all around */
    border-radius: 6px !important; /* Rounded corners */
    display: inline-block !important; /* Make it a box */
    margin: 4px 0 !important; /* Small margin around the box */
}

/* Hand of Sean Speech Bubble Style */
.content-body .handofsean-speechbubble {
    background-color: #005596 !important;
    color: white !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    border-radius: 15px !important;
    position: relative !important;
    display: block !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.content-body .handofsean-speechbubble::before {
    content: "Did you know?" !important;
    font-family: 'Hand of Sean', cursive !important;
    font-size: 24px !important;
    color: white !important;
    display: block !important;
    margin-bottom: 10px !important;
    letter-spacing: -1px !important;
}

.content-body .handofsean-speechbubble::after {
    content: "" !important;
    position: absolute !important;
    bottom: -20px !important;
    right: 50px !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 20px solid transparent !important;
    border-right: 20px solid transparent !important;
    border-top: 20px solid #005596 !important;
}

.content-body .handofsean-speechbubble p {
    font-family: 'Raleway', sans-serif !important;
    font-size: 24px !important;
    color: white !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.content-body font[face="raleway"] {
    font-family: 'Raleway', sans-serif !important;
}

/* YouTube Videos Section - Only for video page */
.youtube-videos-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 100%;
}

.youtube-video-item {
    position: relative;
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.youtube-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.youtube-video-item:hover .play-button {
    background: rgba(255, 0, 0, 0.9);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1400px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    /* 16:9 aspect ratio */
    aspect-ratio: 16 / 9;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 0, 0, 0.8);
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Hide YouTube branding and links */
.video-container iframe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Additional YouTube branding removal */
.lightbox-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

/* Hide any YouTube logo or branding elements */
.video-container iframe[src*="youtube.com"] {
    filter: contrast(1.1) brightness(1.05);
}

/* Additional overlay to block YouTube branding */
.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 3;
    pointer-events: none;
}

/* Hide YouTube logo specifically */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    /* Additional parameters to hide branding */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* More aggressive YouTube branding removal */
.lightbox-content {
    overflow: hidden;
}

.lightbox-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 4;
    pointer-events: none;
}

/* Hide specific YouTube elements */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    /* Additional parameters to hide branding */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Hide any overflow branding */
    overflow: hidden;
}

/* Additional overlay for YouTube branding */
.video-container {
    position: relative;
    overflow: hidden;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
    pointer-events: none;
}

/* Make YouTube completely unclickable */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    overflow: hidden;
    /* Completely disable all interaction with iframe */
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-select: none;
    -webkit-context-menu: none;
    -moz-context-menu: none;
    -ms-context-menu: none;
    context-menu: none;
}

/* Overlay to completely block all YouTube interactions */
.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    pointer-events: auto;
    /* This overlay catches all clicks and prevents them from reaching YouTube */
    cursor: default;
}

/* Additional overlay for extra protection */
.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
    pointer-events: none;
}

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

/* Gallery Mosaic Styles */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 2rem;
    padding: 0 25px;
}

/* Coming Soon Message */
.coming-soon-message {
    grid-column: 1 / -1;
    text-align: left;
    padding: 2rem 0;
    font-family: 'Raleway', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #005596;
    line-height: 1.6;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Image Lightbox Styles */
#image-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

#image-lightbox .lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#image-lightbox .lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

#image-lightbox .lightbox-close:hover {
    background: rgba(255, 0, 0, 0.8);
}

.lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.main-content .scroll-buttons {
    position: absolute;
    right: 15px;
    top: 15px;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5; /* Lower than cover-link z-index */
    pointer-events: none; /* Allow clicks to pass through to content */
}

.main-content .scroll-btn {
    pointer-events: auto; /* Re-enable clicks on buttons */
}

.main-content .scroll-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.main-content .scroll-btn:hover {
    transform: scale(1.1);
}

.main-content .scroll-btn img {
    width: 60px;
    height: 60px;
    display: block;
}

/* Portrait Orientation Optimizations */
@media screen and (orientation: portrait) {
    .cover-section {
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .cover-content .logo {
        max-width: 300px;
        margin-bottom: 1.5rem;
    }
    
    .cover-content h1 {
        font-size: 3.5rem;
    }
    
    .cover-content p {
        font-size: 1.2rem;
    }
    
    .cover-content .subheading {
        font-size: 1.8rem;
    }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .cover-content .logo {
        max-width: 240px;
        margin-bottom: 1rem;
    }
    
    .cover-content h1 {
        font-size: 3rem;
    }
    
    .cover-content p {
        font-size: 1rem;
    }
    
    .cover-content .subheading {
        font-size: 1.5rem;
    }
    
    .cover-content {
        padding: 1rem;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .cover-content .logo {
        max-width: 200px;
        margin-bottom: 0.8rem;
    }
    
    .cover-content h1 {
        font-size: 2.5rem;
    }
    
    .cover-content p {
        font-size: 0.9rem;
    }
    
    .cover-content .subheading {
        font-size: 1.3rem;
    }
}

/* Blockquote Styles */
blockquote {
    position: relative;
    background-color: #f8f9fa;
    border-left: 4px solid #005596;
    padding: 20px 25px 20px 40px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 0 4px 4px 0;
}


blockquote p {
    margin: 0;
    font-style: italic;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Alternative version with different quotation mark positioning */
blockquote.alternative::before {
    top: 5px;
    left: 10px;
    font-size: 42px;
}

/* Dark theme variant */
blockquote.dark {
    background-color: #2c3e50;
    border-left-color: #005596;
}

blockquote.dark p,
blockquote.dark cite {
    color: #ecf0f1;
}

blockquote.dark::before {
    color: #005596;
}

/* Responsive adjustments for blockquotes */
@media (max-width: 768px) {
    blockquote {
        padding: 15px 20px 15px 35px;
        margin: 15px 0;
    }
    
    
    blockquote p {
        font-size: 1rem;
    }
}
