/**
 * Global Layout & Overflow Prevention
 * Forces content to wrap and hides accidental overflow
 */

/* Base body overflow control */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Block element max-width constraints */
.wp-block-cover,
.wp-block-group,
.wp-block-grid {
    max-width: 100vw;
    /* overflow-x: hidden; - Disabled: was breaking menu with vertical scroll */
}

/**
 * Code Blocks & Preformatted Text
 * Specific fixes for code blocks that might be hiding in the content
 */

pre,
.wp-block-preformatted {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

/**
 * Button Styles
 * WordPress button overrides and customizations
 */

/* Primary button styling */
.wp-block-button a {
    background-color: #000;
    color: #fff;
    font-weight: 400;
    font-size: 1em;
}

/* Hover state for primary buttons */
.wp-block-button a:hover {
    background-color: #333;
}

/* Elementor cart toggle button override */
a#elementor-menu-cart__toggle_button {
    background-color: white;
}

/* WooCommerce cart button border */
.elementor-widget-woocommerce-cart .woocommerce button.button {
    border-color: #000;
}

/**
 * Mega Menu - Submenu Item Styles
 * Specific padding and weight adjustments for mega menu items
 */

/* Submenu item styles under mega-menu-item-701 */
#mega-menu-item-701 li.mega-menu-item {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

#mega-menu-wrap-mobile-menu #mega-menu-mobile-menu li#mega-menu-item-701 > a.mega-menu-link {
    font-weight: 300;
}

/* Submenu item styles under mega-menu-item-703 */
#mega-menu-item-703 li.mega-menu-item {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

#mega-menu-wrap-mobile-menu #mega-menu-mobile-menu li#mega-menu-item-703 > a.mega-menu-link {
    font-weight: 300;
}

/* Submenu item styles under mega-menu-item-704 */
#mega-menu-item-704 li.mega-menu-item {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

#mega-menu-wrap-mobile-menu #mega-menu-mobile-menu li#mega-menu-item-704 > a.mega-menu-link {
    font-weight: 300;
}

/**
 * Mega Menu - Search Field Styles
 */

.mega-search-wrap form {
    border: solid #ccc 1px;
    margin: 0 45px 0 25px;
}

#mega-menu-item-975 .mega-search-wrap {
    padding: 35px 0 20px 0;
}

/**
 * Mega Menu - Search Icon (Dashicons magnifier)
 * Set the visual size of the search icon
 */

:root {
    --search-icon-size: 28px; /* Try 32px or 36px for larger icon */
}

.mega-search .search-icon.dashicons {
    font-size: var(--search-icon-size) !important;
    width: var(--search-icon-size);
    height: var(--search-icon-size);
    line-height: var(--search-icon-size);
    display: inline-flex;    /* Centers icon nicely */
    align-items: center;
    justify-content: center;
    padding: 20px 6px 6px 6px; /* Larger tap target */
    cursor: pointer;
}

/* Ensure the Dashicons pseudo-element inherits the size */
.mega-search .search-icon.dashicons::before {
    font-size: inherit !important;
    line-height: inherit !important;
}

/**
 * Mega Menu Mobile - Submenu Arrows
 * =================================
 * Controls the size and styling of mobile submenu indicators
 */

:root {
    --mm-indicator-size: 1.15em; /* 1.0 = default, 1.5 = larger */
}

@media (max-width: 1024px) {
    /* Enlarge indicator without overriding plugin transforms */
    #mega-menu-wrap-mobile-menu #mega-menu-mobile-menu .mega-indicator {
        font-size: var(--mm-indicator-size) !important;
        line-height: 1;
        margin-left: 0.5rem; /* Extra breathing room */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1em;
        height: 1em; /* Scales with font-size above */
    }

    /* Size inheritance for pseudo-elements */
    #mega-menu-wrap-mobile-menu #mega-menu-mobile-menu .mega-indicator::before,
    #mega-menu-wrap-mobile-menu #mega-menu-mobile-menu .mega-indicator::after {
        font-size: inherit !important;
    }

    /* SVG indicator sizing */
    #mega-menu-wrap-mobile-menu #mega-menu-mobile-menu .mega-indicator svg {
        width: 1em;
        height: 1em;
    }

    /* Wider tap target on right edge */
    #mega-menu-wrap-mobile-menu #mega-menu-mobile-menu > .mega-menu-item-has-children > a.mega-menu-link {
        padding-right: 0.75rem;
    }
}

/**
 * Mega Menu Mobile - Panel Positioning
 * =====================================
 * Fixed panel positioning below header with proper visibility states
 */

:root {
    --mobile-header-offset: 55px;
}

@media (max-width: 1024px) {
    /* Mobile panel - fixed below header, hidden by default */
    #mega-menu-wrap-mobile-menu > #mega-menu-mobile-menu {
        position: fixed !important;
        top: calc(var(--mobile-header-offset) + env(safe-area-inset-top)) !important;
        left: 0 !important;
        width: 100% !important;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 9999;
        will-change: transform;
        
        /* Prevent flash/linger when closing */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    /* Show panel only when toggle is open */
    #mega-menu-wrap-mobile-menu:has(.mega-toggle-label[aria-expanded="true"])
    > #mega-menu-mobile-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* When closed, force all submenus off */
    #mega-menu-wrap-mobile-menu:not(:has(.mega-toggle-label[aria-expanded="true"]))
    #mega-menu-mobile-menu .mega-sub-menu {
        display: none !important;
    }

    /* Collapse megamenu containers when closed */
    #mega-menu-wrap-mobile-menu:not(:has(.mega-toggle-label[aria-expanded="true"]))
    #mega-menu-mobile-menu li.mega-menu-item.mega-menu-megamenu {
        height: auto !important;
    }
}

/**
 * Mega Menu Mobile - Menu Item Spacing
 * =====================================
 * Adjusts spacing and tap target sizes for mobile menu items
 */

:root {
    --mm-item-gap: 5px;      /* Gap between top-level items */
    --mm-subitem-gap: 5px;   /* Gap between submenu items */
    --mm-link-pad: 5px;      /* Extra tap area inside each link */
}

@media (max-width: 1024px) {
    /* Top-level items - add vertical space */
    #mega-menu-mobile-menu > li.mega-menu-item {
        display: block !important;
    }
    
    #mega-menu-mobile-menu > li.mega-menu-item + li.mega-menu-item {
        margin-top: var(--mm-item-gap) !important;
    }

    /* Make links taller for easier tapping */
    #mega-menu-mobile-menu > li.mega-menu-item > a.mega-menu-link {
        display: block !important;
        padding-block: var(--mm-link-pad) !important;
    }

    /* Submenu items - add space between items */
    #mega-menu-mobile-menu .mega-sub-menu > li {
        display: block !important;
    }
    
    #mega-menu-mobile-menu .mega-sub-menu > li + li {
        margin-top: var(--mm-subitem-gap) !important;
    }
}

/**
 * WordPress Block Editor - Reverse Columns on Mobile
 * ===================================================
 * Mobile-specific column layout adjustments
 */

@media (max-width: 768px) {
    .reverse-mobile {
        flex-direction: column-reverse !important;
    }
    
    .wp-block-columns {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/**
 * Typography - Heading Styles
 * Font weight and size adjustments for various heading elements
 */

.wp-block-heading h4,
h2 {
    font-weight: 300 !important;
}

.wp-block-heading h1 {
    font-weight: 400 !important;
    font-size: 2em;
}

h1.elementor-heading-title.elementor-size-default {
    font-size: 3em;
    font-weight: 300 !important;
    text-shadow: #000 1px 1px 1px !important;
}

/**
 * Emoji Images
 * Fix for emoji images inside paragraphs with small font size
 */

p.has-small-font-size img[src*="emoji"] {
    height: 1em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

/**
 * Footer Column Styles
 * Reset footer lists and hide unwanted icons
 */

/* Complete footer list reset */
.footer-columns ul,
.footer-columns .wp-block-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.footer-columns li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 0 0.5rem 0 !important;
}

/* Hide Font Awesome icons if not wanted */
.footer-columns .li-icon {
    display: none !important;
}

/**
 * Zoom Card Component
 * ===================
 * Hover zoom effect with overlay and text transitions
 * Apply .hover-zoom-card class to containers you want animated
 */

/* Base container styles */
.hover-zoom-card {
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Clean overlay/text stacking */
    cursor: pointer;    /* Consistent cursor */
}

.hover-zoom-card * {
    cursor: pointer;
}

/* Image layer that scales smoothly */
.hover-zoom-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: inherit;
    background-position: inherit;
    background-repeat: inherit;
    background-size: cover;
    transform: scale(1);
    transition: transform .5s ease;
    will-change: transform;
}

/* Dark overlay that fades in on hover/focus */
.hover-zoom-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0);
    transition: background .35s ease;
}

/* Ensure text sits above layers */
.hover-zoom-card > * {
    position: relative;
    z-index: 2;
}

/* Headings with text glow */
.hover-zoom-card h2 {
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8),
                 0 0 4px rgba(255, 255, 255, 0.6);
    transition: color .25s ease, text-shadow .25s ease;
    font-weight: 300 !important;
}

.hover-zoom-card h2 a {
    font-weight: 300 !important;
}

/* Hover & focus states */
.hover-zoom-card:hover::before,
.hover-zoom-card:focus-within::before {
    transform: scale(1.07); /* Subtle zoom */
}

.hover-zoom-card:hover::after,
.hover-zoom-card:focus-within::after {
    background: rgba(0, 0, 0, .35); /* Darken image */
}

.hover-zoom-card:hover h2,
.hover-zoom-card:focus-within h2 {
    color: #fff;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9),
                 0 0 4px rgba(255, 255, 255, 0.7);
}

/* Image element alternative (if using <img> instead of CSS background) */
.hover-zoom-card img.bg-zoom {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1);
    transition: transform .5s ease;
}

.hover-zoom-card:hover img.bg-zoom,
.hover-zoom-card:focus-within img.bg-zoom {
    transform: scale(1.07);
}

/* Clickable card link overlay */
.card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    text-indent: -9999px; /* Hide accidental text content */
}

.card-link-overlay:focus {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

/* Link container styling */
.link-container {
    display: block;
    text-decoration: none;
    color: inherit;
}

.link-container:hover,
.link-container:focus {
    text-decoration: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hover-zoom-card::before,
    .hover-zoom-card img.bg-zoom,
    .hover-zoom-card::after,
    .hover-zoom-card h2 {
        transition: none !important;
    }
}

/**
 * Responsive Mega Menu Visibility with Multiple Breakpoints
 */

/* Desktop: 1070px and above */
@media screen and (min-width: 1070px) {
    #mega-menu-wrap-mobile-menu {
        display: none !important;
    }
    
    #mega-menu-wrap-max_mega_menu_1 {
        display: block !important;
    }
}

/* Tablet & Mobile: 1024px and below */
@media screen and (max-width: 1069px) {
    #mega-menu-wrap-max_mega_menu_1 {
        display: none !important;
    }
    
    #mega-menu-wrap-mobile-menu {
        display: block !important;
    }
}

/**
 * Note: The following sections are intentionally empty but preserved
 * for future additions:
 * - UL List Arrows
 * - Remove Overlay
 */

/* 
###############
UL LIST ARROWS CSS START
###############
*/

/* Reserved for future list arrow styles */

/* 
###############
UL LIST ARROWS CSS END
###############
*/

/* 
#####################
REMOVE OVERLAY START
#####################
*/

/* Reserved for future overlay removal styles */

/* 
#####################
REMOVE OVERLAY END
#####################
*/


/* =========================
   DW Mega Menu Gallery Fader
========================= */

.mega-product-menu-gallery .gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* Stack all slides */
.mega-product-menu-gallery .gallery-item {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}

/* Active slide */
.mega-product-menu-gallery .gallery-item.is-active {
    opacity: 1;
    z-index: 2;
}

/* Make images fill consistently */
.mega-product-menu-gallery .gallery-icon,
.mega-product-menu-gallery .gallery-icon img {
    width: 100%;
    height: 100%;
}

/* Crop images to consistent landscape */
.mega-product-menu-gallery .gallery-icon img {
    object-fit: cover;
    display: block;
}

.mega-product-menu-gallery .gallery-item {
    transform: scale(1.02);
    transition:
        opacity 1.2s ease,
        transform 6s ease;
}

.mega-product-menu-gallery .gallery-item.is-active {
    transform: scale(1);
}


/* Custom Social Menu Item Styles */
#mega-menu-item-2347 {
    padding: 10px !important;
}

#mega-menu-item-2347.custom-processed {
    min-width: 300px;
}

/* Search wrapper styles */
#mega-menu-item-2347 .mega-search-wrap {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

#mega-menu-item-2347 .mega-search {
    position: relative;
    display: flex;
    align-items: center;
}

#mega-menu-item-2347 .mega-search input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#mega-menu-item-2347 .mega-search input[type="text"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

#mega-menu-item-2347 .search-icon {
    cursor: pointer;
    margin-left: 10px;
    font-size: 20px;
    width: auto;
    height: auto;
    transition: transform 0.2s ease;
}

#mega-menu-item-2347 .search-icon:hover {
    transform: scale(1.1);
}

#mega-menu-item-2347 .mega-search input[type="submit"] {
    display: none; /* Hide default submit button */
}

/* Social label styles */
#mega-menu-item-2347 .social-label-link {
    display: block !important;
    margin-bottom: 15px !important;
    padding: 10px 0 !important;
    text-align: center !important;
}

#mega-menu-item-2347 .social-label-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

#mega-menu-item-2347 .social-label-text {
    font-size: 1em;
    font-weight: 400;
}

/* Social icons wrapper */
#mega-menu-item-2347 .social-icons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    padding: 0;
    gap: 0;
}

#mega-menu-item-2347 .social-icon {
    color: #000;
    text-decoration: none;
    font-size: 40px;
    margin-right: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#mega-menu-item-2347 .social-icon:last-child {
    margin-right: 0;
}

#mega-menu-item-2347 .social-icon:hover {
    color: #007cba;
    transform: translateY(-3px);
}

/* Individual brand colors on hover (optional) */
#mega-menu-item-2347 .social-icon[aria-label="Facebook"]:hover {
    color: #1877f2;
}

#mega-menu-item-2347 .social-icon[aria-label="Instagram"]:hover {
    color: #e4405f;
}

#mega-menu-item-2347 .social-icon[aria-label="LinkedIn"]:hover {
    color: #0a66c2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #mega-menu-item-2347 .social-icon {
        font-size: 30px;
        margin-right: 20px;
    }
    
    #mega-menu-item-2347.custom-processed {
        min-width: 250px;
    }
}

/* Animation for search */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mega-menu-item-2347 .mega-search-open {
    animation: slideDown 0.3s ease;
}

/* Remove border from search form */
#mega-menu-item-2347 .mega-search {
    border: none !important;
    outline: none !important;
}

#mega-menu-item-2347 .mega-search-wrap {
    border-bottom: none !important;
}

/* Remove any potential borders from form elements */
#mega-menu-item-2347 .mega-search input[type="text"] {
    border: 1px solid #ddd; /* Keep input border but remove form border */
}

/* If there's a fieldset or form border */
#mega-menu-item-2347 .mega-search form,
#mega-menu-item-2347 .mega-search fieldset {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove ALL outlines and borders from toggle elements */
.mega-menu-toggle *,
.mega-menu-toggle *:active,
.mega-menu-toggle *:focus,
.mega-menu-toggle *:visited,
.mega-toggle-block *,
.mega-toggle-block *:active,
.mega-toggle-block *:focus {
    outline: 0 !important;
    outline: none !important;
    outline-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Remove default browser focus ring */
.mega-menu-toggle:focus,
.mega-toggle-block:focus,
.mega-toggle-label:focus {
    outline: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove focus ring on click/tap for mobile devices */
.mega-menu-toggle {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
}


.hero-title {
  /* Text shadow with strong black border effect */
  text-shadow: 

    2px 2px 0 rgba(0, 0, 0, 0.5);
  
  /* Initial state for animation (hidden and slightly above) */
  opacity: 0;
  transform: translateY(-20px);
  
  /* Animation properties */
  animation: fadeInDown 0.8s ease-out forwards;
  
  /* Optional: smooth transition for any hover effects */
  transition: all 0.3s ease;
}

/* Keyframes for the easing down animation */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  70% {
    opacity: 0.8;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Center the CF7 form and add horizontal spacing */
.wpcf7 form {
    font-family: Montserrat, sans-serif;
}

/* Center the CF7 form and add horizontal spacing */
.wpcf7 {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: Montserrat, sans-serif;
}

/* Style all input fields, textareas, and select elements */
.wpcf7 input:not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #000000;
    border-radius: 6px;
    color: #555555;
    background-color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    font-family: inherit; /* This inherits Montserrat from parent */
}

/* Style the submit button */
.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 12px 15px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 6px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: inherit; /* This inherits Montserrat from parent */
}

/* Rest of the CSS remains the same... */

/* Optional: Add focus style for better UX */
.wpcf7 input:not([type="submit"]):focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

/* Optional: Submit button hover effect */
.wpcf7 input[type="submit"]:hover {
    background-color: #333333;
    border-color: #333333;
}

/* Ensure consistent spacing between form elements */
.wpcf7 p {
    margin-bottom: 20px;
}

.wpcf7 p:last-of-type {
    margin-bottom: 0;
}

/* Style the response output message */
.wpcf7-response-output {
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

/* Make sure the spinner aligns properly */
.wpcf7-spinner {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .wpcf7 {
        padding: 0 15px;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .wpcf7 {
        padding: 0 12px;
    }
}

/* Search Icon Styling - Keep your existing icon styles */
.search-icon-header {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.search-icon-header:hover {
    opacity: 0.7;
}

/* Modal Background Overlay */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.search-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.search-modal-content {
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.4s ease;
}

/* Search Input Field */
.search-modal-input {
    width: 100%;
    padding: 20px;
    font-size: 24px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #333;
    outline: none;
    font-family: inherit;
}

.search-modal-input:focus {
    box-shadow: 0 0 0 2px #007cba, 0 0 0 4px rgba(0, 124, 186, 0.2);
}

/* Close Button */
.search-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s ease;
    line-height: 1;
}

.search-modal-close:hover {
    transform: scale(1.1);
    color: #007cba;
}

/* Search Button in Modal */
.search-modal-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.search-modal-submit:hover {
    opacity: 0.7;
}

.search-modal-submit svg {
    width: 24px;
    height: 24px;
}

/* Form wrapper */
.search-form-wrapper {
    position: relative;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-modal-input {
        font-size: 18px;
        padding: 15px;
    }

    .search-modal-content {
        width: 95%;
    }

    .search-modal-close {
        top: -45px;
        font-size: 35px;
    }
}


/* Initial state: hidden and positioned */
.wp-block-cover__inner-container .hp-dream,
.wp-block-cover__inner-container .hp-ufl,
.wp-block-cover__inner-container .hp-nigeria {
  opacity: 0;
}

/* hp-dream: fade in easing out from above */
.wp-block-cover__inner-container .hp-dream {
  animation: fadeInFromAbove 0.8s ease-out forwards;
}

/* hp-ufl: fade in easing out from below */
.wp-block-cover__inner-container .hp-ufl {
  animation: fadeInFromBelow 0.8s ease-out forwards;
}

/* hp-nigeria: fade in after 1 second, no movement */
.wp-block-cover__inner-container .hp-nigeria {
  animation: fadeInOnly 0.8s ease-out forwards;
  animation-delay: 1s;
}

/* Keyframes for fade in from above */
@keyframes fadeInFromAbove {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keyframes for fade in from below */
@keyframes fadeInFromBelow {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keyframes for fade in without movement */
@keyframes fadeInOnly {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}