/* Hero Block Styles */

.hero-block {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Minimum Height Variants */
.hero-block.min-height-full {
    min-height: 100vh;
}

.hero-block.min-height-large {
    min-height: 80vh;
}

.hero-block.min-height-medium {
    min-height: 60vh;
}

.hero-block.min-height-small {
    min-height: 40vh;
}

.hero-block.has-background-image {
    color: #ffffff;
}

.hero-block:not(.has-background-image) {
    background-color: transparent ;
    color: #1b365d;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(27, 54, 93, 0.7);
    z-index: 1;
}

/* Cloud Layers */
.hero-clouds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}



.hero-cloud {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    animation: floatClouds1 20s linear infinite;
}

/* Individual cloud positioning and sizing */
.hero-cloud-1 {
    width: 200px;
    height: 120px;
    top: 10%;
    left: -10%;
    animation-name: floatClouds1;
}

.hero-cloud-2 {
    width: 150px;
    height: 90px;
    top: 20%;
    right: -5%;
    animation-name: floatClouds2;
}

.hero-cloud-3 {
    width: 180px;
    height: 110px;
    top: 60%;
    left: -15%;
    animation-name: floatClouds3;
}

.hero-cloud-4 {
    width: 120px;
    height: 70px;
    top: 70%;
    right: -10%;
    animation-name: floatClouds4;
}

.hero-cloud-5 {
    width: 160px;
    height: 95px;
    top: 30%;
    left: 20%;
    animation-name: floatClouds5;
}

/* Cloud Animations */
@keyframes floatClouds1 {
    0% { 
        transform: translateX(-100px) translateY(0px); 
        opacity: 0;
    }
    10% { 
        transform: translateX(-50px) translateY(-5px); 
        opacity: 0.8;
    }
    25% { 
        transform: translateX(50px) translateY(-10px); 
        opacity: 0.9;
    }
    50% { 
        transform: translateX(200px) translateY(5px); 
        opacity: 0.8;
    }
    75% { 
        transform: translateX(350px) translateY(-5px); 
        opacity: 0.7;
    }
    90% { 
        transform: translateX(450px) translateY(-2px); 
        opacity: 0.3;
    }
    100% { 
        transform: translateX(500px) translateY(0px); 
        opacity: 0;
    }
}

@keyframes floatClouds2 {
    0% { 
        transform: translateX(100px) translateY(0px); 
        opacity: 0;
    }
    10% { 
        transform: translateX(50px) translateY(5px); 
        opacity: 0.8;
    }
    25% { 
        transform: translateX(-50px) translateY(10px); 
        opacity: 0.9;
    }
    50% { 
        transform: translateX(-200px) translateY(-5px); 
        opacity: 0.8;
    }
    75% { 
        transform: translateX(-350px) translateY(5px); 
        opacity: 0.7;
    }
    90% { 
        transform: translateX(-450px) translateY(2px); 
        opacity: 0.3;
    }
    100% { 
        transform: translateX(-500px) translateY(0px); 
        opacity: 0;
    }
}

@keyframes floatClouds3 {
    0% { 
        transform: translateX(-120px) translateY(0px); 
        opacity: 0;
    }
    10% { 
        transform: translateX(-80px) translateY(-3px); 
        opacity: 0.8;
    }
    33% { 
        transform: translateX(100px) translateY(-8px); 
        opacity: 0.9;
    }
    66% { 
        transform: translateX(300px) translateY(3px); 
        opacity: 0.8;
    }
    90% { 
        transform: translateX(450px) translateY(1px); 
        opacity: 0.3;
    }
    100% { 
        transform: translateX(500px) translateY(0px); 
        opacity: 0;
    }
}

@keyframes floatClouds4 {
    0% { 
        transform: translateX(80px) translateY(0px); 
        opacity: 0;
    }
    10% { 
        transform: translateX(50px) translateY(3px); 
        opacity: 0.8;
    }
    33% { 
        transform: translateX(-100px) translateY(8px); 
        opacity: 0.9;
    }
    66% { 
        transform: translateX(-300px) translateY(-3px); 
        opacity: 0.8;
    }
    90% { 
        transform: translateX(-450px) translateY(-1px); 
        opacity: 0.3;
    }
    100% { 
        transform: translateX(-500px) translateY(0px); 
        opacity: 0;
    }
}

@keyframes floatClouds5 {
    0% { 
        transform: translateX(0px) translateY(0px); 
        opacity: 0;
    }
    10% { 
        transform: translateX(10px) translateY(-2px); 
        opacity: 0.8;
    }
    25% { 
        transform: translateX(50px) translateY(-5px); 
        opacity: 0.9;
    }
    50% { 
        transform: translateX(100px) translateY(0px); 
        opacity: 0.8;
    }
    75% { 
        transform: translateX(150px) translateY(5px); 
        opacity: 0.7;
    }
    90% { 
        transform: translateX(180px) translateY(2px); 
        opacity: 0.3;
    }
    100% { 
        transform: translateX(200px) translateY(0px); 
        opacity: 0;
    }
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 2rem;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}

/* Intro Text Section */
.hero-intro {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-intro-text {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1B365D;
    /* Ensure sufficient color contrast (WCAG 2.1 AA) */
    /* #1B365D on white/light backgrounds meets 4.5:1 contrast ratio */
}

/* Main Title Section */
.hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-main-title {
    color: #0033A0;
    text-align: center;
    text-shadow: 3px 4px 0 #FFDC00;
    font-size: 120px;
    font-style: normal;
    margin: 0;
    font-family: "alternate-gothic-atf", sans-serif !important;
    text-transform: uppercase;
    /* Ensure sufficient color contrast (WCAG 2.1 AA) */
    /* #0033A0 on white/light backgrounds meets 4.5:1 contrast ratio */
    /* Text shadow provides additional visual separation */
}

/* Description Text Section */
.hero-description {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-description-text {
    font-size: 26px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%; /* 32.5px */
    color: #1B365D !important;
    text-align: center;
    margin: 0;
    /* Ensure sufficient color contrast (WCAG 2.1 AA) */
    /* #1B365D on white/light backgrounds meets 4.5:1 contrast ratio */
    /* Always use #1B365D regardless of background image */
}

/* Button Wrapper Section */
.hero-button-wrapper {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Scroll Section */
.hero-scroll-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Animation Speed Variants */
.hero-block.animation-slow .hero-intro {
    animation-duration: 1.2s;
}

.hero-block.animation-slow .hero-title {
    animation-duration: 1.2s;
}

.hero-block.animation-slow .hero-description {
    animation-duration: 1.2s;
}

.hero-block.animation-slow .hero-button-wrapper {
    animation-duration: 1.2s;
}

.hero-block.animation-slow .hero-scroll-section {
    animation-duration: 1.2s;
}

.hero-block.animation-fast .hero-intro {
    animation-duration: 0.5s;
}

.hero-block.animation-fast .hero-title {
    animation-duration: 0.5s;
}

.hero-block.animation-fast .hero-description {
    animation-duration: 0.5s;
}

.hero-block.animation-fast .hero-button-wrapper {
    animation-duration: 0.5s;
}

.hero-block.animation-fast .hero-scroll-section {
    animation-duration: 0.5s;
}

.hero-scroll-text {
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
    opacity: 0.9;
    max-width: 500px;
    color: #1B365D;
    text-transform: uppercase;
    /* Ensure sufficient color contrast (WCAG 2.1 AA) */
    /* #1B365D on white/light backgrounds meets 4.5:1 contrast ratio */
}

.hero-scroll-button {
    background: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    padding: 0;
    animation: subtleBounce 2s ease-in-out infinite;
    position: relative;
    /* Ensure sufficient touch target size (WCAG 2.5.5) */
    min-width: 44px;
    min-height: 44px;
}

/* Visually hidden but accessible button text for screen readers */
.hero-scroll-button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
    /* Keep accessible to screen readers */
    clip-path: inset(50%);
}

.hero-scroll-button:hover {
    opacity: 0.9;
    transform: translateY(2px);
}

.hero-scroll-button:focus {
    outline: 3px solid #FFDC00;
    outline-offset: 2px;
    /* High contrast focus indicator (WCAG 2.4.7) */
    box-shadow: 0 0 0 3px rgba(255, 220, 0, 0.5), 0 0 0 5px rgba(0, 51, 160, 0.3);
}

.hero-scroll-button:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.hero-scroll-button:focus-visible {
    outline: 3px solid #FFDC00;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 220, 0, 0.5), 0 0 0 5px rgba(0, 51, 160, 0.3);
}

.hero-scroll-button:active {
    transform: translateY(4px);
}

.hero-scroll-icon {
    width: 58px;
    height: 24px;
    display: block;
    pointer-events: none;
}

.hero-scroll-button:hover .hero-scroll-icon {
    transform: translateY(2px);
}

/* Text Color Variants */
.hero-block.text-light {
    color: #ffffff;
}

.hero-block.text-light .hero-intro-text,
.hero-block.text-light .hero-scroll-text {
    color: #ffffff;
    /* White text on dark backgrounds - ensure sufficient contrast */
    /* If background is too light, text may need adjustment */
}

.hero-block.text-dark {
    color: #1b365d;
}

.hero-block.text-dark .hero-intro-text,
.hero-block.text-dark .hero-description-text,
.hero-block.text-dark .hero-scroll-text {
    color: #1b365d;
    /* Dark text on light backgrounds - meets contrast requirements */
}

.hero-block.text-dark .hero-scroll-button {
   /* border-color: #1b365d;
    color: #1b365d;*/
}

.hero-block.text-dark .hero-scroll-button:hover {
    /*border-color: #0033a0;
    color: #0033a0;*/
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Full Width Breakout for Bootstrap */
.hero-block {
    /* Ensure full width even within Bootstrap containers */
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: none;
}

/* Alternative full-width approach for edge cases */
.hero-block.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Responsive Design */
@media (max-width: 768px) {
		.hero-main-title {
			font-size: 120px;
		}
	}
@media (max-width: 991px) {
		.hero-main-title {
			font-size: 100px;
		}
	}
@media (max-width: 768px) {
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-intro-text {
        font-size: 1rem;
    }
    
    .hero-main-title {
        font-size: 90px;
        text-shadow: 2px 3px 0 #FFDC00;
    }
    
    .hero-description-text {
        font-size: 22px;
        line-height: 125%;
    }
    
    .hero-scroll-text {
        font-size: 1.125rem;
    }
    
    .hero-scroll-button {
        width: 50px;
        height: 50px;
    }
    
    .hero-scroll-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Cloud responsive adjustments */
    .hero-cloud-1 {
        width: 120px;
        height: 70px;
    }
    
    .hero-cloud-2 {
        width: 100px;
        height: 60px;
    }
    
    .hero-cloud-3 {
        width: 110px;
        height: 65px;
    }
    
    .hero-cloud-4 {
        width: 80px;
        height: 50px;
    }
    
    .hero-cloud-5 {
        width: 90px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .hero-block {
        min-height: 80vh;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .hero-main-title {
        font-size: 75px;
        text-shadow: 1px 2px 0 #FFDC00;
    }
    .hero-intro-text{
	    font-size: 20px;
    }
    .hero-description-text {
        font-size: 20px;
        line-height: 125%;
    }
    .hero-scroll-text{
	    font-size: 20px;
    }
    .hero-scroll-section {
        margin-top: 1.5rem;
    }
}

/* High contrast mode support (WCAG 1.4.11) */
@media (prefers-contrast: high) {
    .hero-block {
        border: 2px solid currentColor;
    }
    
    .hero-scroll-button {
        border: 3px solid currentColor;
        background-color: ButtonFace;
    }
    
    .hero-scroll-button:focus {
        border-color: Highlight;
        outline: 3px solid Highlight;
    }
    
    .hero-main-title {
        text-shadow: none;
        border: 1px solid currentColor;
        padding: 0.25em;
    }
    
    .hero-intro-text,
    .hero-scroll-text {
        border: 1px solid currentColor;
        padding: 0.25em;
    }
}

/* Screen reader only class for announcements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
    clip-path: inset(50%);
}

/* Reduced motion support (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    .hero-intro,
    .hero-title,
    .hero-description,
    .hero-button-wrapper,
    .hero-scroll-section {
        animation: none;
        opacity: 1;
    }
    
    .hero-scroll-button {
        animation: none;
    }
    
    .hero-scroll-button:hover {
        transform: none;
    }
    
    .hero-scroll-button:hover .hero-scroll-icon {
        transform: none;
    }
    
    .hero-cloud {
        animation: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Additional Animation Classes */
.hero-scroll-button.pulse {
   /* animation: pulse 1.5s infinite;*/
}

.hero-scroll-button.fade-out {
    /*opacity: 0.3;
    transform: scale(0.8);*/
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 220, 0, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 220, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 220, 0, 0);
    }
}

/* Subtle bounce animation for scroll button */
@keyframes subtleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}
