/* ------------------------------------------------------------------------- */
        /* Styles for the new content block */
        .masthead-blue-menu-block {
            background-color: #1C489F !important;
            background-image: url("../../../images/homepage/masthead/sun-stars-yellow.png");
            background-repeat: no-repeat; /* Prevents the image from tiling */
            background-position: bottom right; /* Centers the image */
            background-size: 276px 360px;
            width: 100%;
            height: 100%; 
            font-size-adjust: +1rem;
            text-transform: uppercase;
            display: flex; /* Use flexbox for vertical centering */
            flex-direction: column;
            justify-content: center;
            align-items: center; /* Center menu items */
        }

.masthead-blue-menu-block ul {
    width: 100%;
    margin: 0;
    padding: 0; 
}

.masthead-blue-menu-block li {
    width: 100%;
    margin: 0;
    padding: 0; 
}
        .masthead-menu-item-white {
            color: white;
            text-decoration: none;
            display: block;
            padding: 10px 15px; /* Add some horizontal padding */
            font-family: 'Revans Medium', sans-serif;
            font-size: 1.4rem;
            transition: background-color 0.3s ease, padding-left 0.3s ease;
            width: 100%; /* Make links take full width of their container */
            text-align: left;
            border-radius: 4px; /* Slight rounding for hover effect */
        }

        .masthead-menu-item-white:hover {
            /* background-color: rgba(255, 255, 255, 0.2); */
            color: #D82226;
        }





/* --- New MastHead Image Slider -- */
/* --- Masthead Slider Container and Basic Layout --- */
.masthead-slider-container {
    position: relative; 
    width: 100%;
    /* Set a specific height based on your image size */
    height: 724px; 
    overflow: hidden; 
}

/* --- Individual Slide Styling --- */
.masthead-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.masthead-slider-slide.active {
    opacity: 1; 
}

/* --- Image Styling --- */
.masthead-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    position: absolute;
    z-index: 1; 
}




/* ------------------------------------------------------------------------- */
/* --- BASE TEXT STYLES (Consolidated) --- */
.masthead-slide-text-top, 
.masthead-slide-text-bottom {
    position: relative;
    z-index: 2;
    font-family: 'Revans Medium', sans-serif;
    text-align: center;
    padding: 0px 20px;
    
    /* 1. Initial State: Start off the left edge and invisible */
    opacity: 0;
    transform: translateY(-100%);
    
    /* 2. Transition for the slide effect */
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease-in-out;
}

.masthead-slide-text-top {
    color: #1c489f;
    font-size: 5rem; /* Use REM for responsive sizing */
    margin-bottom: -10px; /* Adjust spacing between lines */
}

.masthead-slide-text-bottom {
    color: #D82226;
    font-size: 5rem; /* Match top or set slightly smaller if needed */
}

/* --- ACTIVE ANIMATION STATE --- */
.masthead-slider-slide.active .masthead-slide-text-top {
    /* Slide in to its final position (0) */
    transform: translateY(0); 
    opacity: 1;
}

.masthead-slider-slide.active .masthead-slide-text-bottom {
    /* Add a slight delay to the bottom text for a staggered effect */
    transition-delay: 0.2s; 
    transform: translateY(0);
    opacity: 1;
}



/* ------------------------------------------------------------------------- */
/* Social Media Links Styles */
.masthead-social-media-overlay {
    position: absolute;
    top: 20px; /* Distance from the top of the slider */
    right: 20px; /* Distance from the right of the slider */
    z-index: 10; /* Ensure it's above slider images and text */
    display: flex;
    flex-direction: column; /* Stack icons vertically */
    gap: 10px; /* Space between icons */
}

.masthead-social-media-overlay a {
    /* color: white; / * White icons */
    /* background-color: #1c489f; / * Semi-transparent background */
    width: 46px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10%; /* Circular icons */
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.masthead-social-media-overlay a:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/*
 * 1. Base Styling (Applied to all icons)
 */
.masthead-social-icon {
  /* Treat the anchor tag like a box to hold the background image */
  display: inline-block;
  width: 45px; /* Adjust size as needed */
  height: 45px; /* Adjust size as needed */
  margin: 0 10px; /* Spacing between icons */

  /* Background image settings */
  background-size: cover; /* Ensures the PNG fills the box */
  background-repeat: no-repeat;
  
  /* Smooth transition for a nicer effect */
  transition: background-image 0.3s ease;
}

/*
 * 2. Specific Image Paths (Replace 'path/to/...' with your actual image URLs)
 */

/* Facebook */
.fb {
  background-image: url('../../../images/homepage/socialmedia/Facebook.png');
}

.fb:hover {
  background-image: url('../../../images/homepage/socialmedia/Facebook-hover.png');
}

/* YouTube */
.yt {
  background-image: url('../../../images/homepage/socialmedia/YouTube.png');
}

.yt:hover {
  background-image: url('../../../images/homepage/socialmedia/YouTube-hover.png');
}

/* Instagram */
.ig {
  background-image: url('../../../images/homepage/socialmedia/Instagram.png');
}

.ig:hover {
  background-image: url('../../../images/homepage/socialmedia/Instagram-hover.png');
}

/* ------------------------------------------------------------------------- */
/* Responsive adjustments for the new block */
@media (max-width: 767.98px) { /* On small screens, stack vertically */
    .blue-menu-block {
        width: 100%; /* Full width on mobile */
        height: auto; /* Auto height to fit content */
        margin-bottom: 20px; /* Space between blocks */
    }
    .image-slider-container {
        height: 300px; /* Shorter height for slider on mobile */
    }
    .slide-text-top {
        font-size: 1.5rem; /* Smaller font on mobile */
        transform: translateY(-20px);
    }
    .slide-text-bottom {
        font-size: 1rem;
        transform: translateY(20px);
    }



    .masthead-slide-text-top {
        font-size: 3rem; /* Use REM for responsive sizing */
    }

    .masthead-slide-text-bottom {
        font-size: 3rem; /* Match top or set slightly smaller if needed */
    }    
}
