

@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .card-hover {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
    .form-focus {
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }
    .form-focus:focus {
        border-color: #0072CE;
        box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.1);
        outline: none;
    }
    .form-focus:focus {
        border-color: #0072CE;
        box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.1);
        outline: none;
        }
    }


/* Utilities converted to plain CSS to avoid unknown @apply at-rule errors */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Magazine card style (replaces Tailwind @apply rules) */
.magazine-card {
    background-color: #ffffff;
    border-radius: 0.5rem; /* rounded-lg */
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    transition: all 300ms ease;
    cursor: pointer;
    transform: translateZ(0);
}
.magazine-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-0.5rem); /* hover:-translate-y-2 */
}
.magazine-card:hover .magazine-overlay {
    opacity: 1;
}

/* Overlay used on magazine cards */
.magazine-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: auto;
}
.magazine-overlay:hover {
    opacity: 1;
}

/* Buttons */
.btn-primary {
    background-color: #003366; /* primary */
    color: #ffffff;
    padding: 0.5rem 1.5rem; /* py-2 px-6 */
    border-radius: 0.375rem; /* rounded-md */
    transition: all 300ms ease;
    outline: none;
    border: none;
}
.btn-primary:hover {
    background-color: rgba(0, 51, 102, 0.9);
}
.btn-primary:focus {
    box-shadow: 0 0 0 4px rgba(0, 114, 206, 0.1);
}
.btn-secondary {
    background-color: #FF6B00; /* secondary */
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 300ms ease;
    outline: none;
    border: none;
}
.btn-secondary:hover {
    background-color: rgba(255, 107, 0, 0.9);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.btn-secondary:focus {
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.08);
}
.magazine-overlay .btn-secondary:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    background-color: #FF6B00 !important;
    border: 1px solid yellow !important;
}

/* Navigation link styles */
.nav-link {
    color: #4a5568; /* approximate text-gray-700 */
    transition: color 300ms;
    padding: 0.5rem 0.75rem; /* px-3 py-2 */
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-block;
}
.nav-link:hover {
    color: #003366; /* primary */
}
.nav-link.active {
    background-color: #003366;
    color: #ffffff;
}

/* Page turn controls */
.page-turn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem; /* w-10 */
    height: 2.5rem;
    background-color: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003366;
    cursor: pointer;
    z-index: 10;
    transition: background-color 300ms, color 300ms;
}
.page-turn.prev { left: 1rem; } /* left-4 */
.page-turn.next { right: 1rem; } /* right-4 */
.page-turn:hover {
    background-color: #003366;
    color: #ffffff;
}

/* Article card */
.article-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.06);
    transition: box-shadow 300ms, transform 300ms;
    padding: 1.5rem; /* p-6 */
}
.article-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Search input */
.search-input {
    width: 100%;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border: 1px solid #D1D5DB; /* gray-300 */
    border-radius: 0.375rem;
    outline: none;
    transition: box-shadow 300ms, border-color 300ms;
    background-clip: padding-box;
}
.search-input:focus {
    box-shadow: 0 0 0 4px rgba(0, 114, 206, 0.1);
    border-color: transparent;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.unity-heading {
    margin-top: 50px; 
}
.unity-heading {
    color: #0c0d0f; /* This is a deep blue color, similar to what's in the image */
    font-family: Arial, sans-serif; /* Use the same font family as the box titles */
    font-size: 18px; /* A size typical for a medium heading, adjust as needed */
    font-weight: bold; /* Ensures it is bold */
    text-align: left; /* Ensures the heading is centered */
    margin-top: 50px; 
    }
.unity-body-text {
    text-align: left; 
}


/* Custom style for the shadow effect on the title for better contrast */
.text-shadow {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}
.text-primary {
    color: #1f2937; /* Dark Slate Gray */
}
.text-accent {
    color: #ef4444; /* Red 500 */
}
.text-neutral-dark {
    color: #374151; /* Gray 700 */
}

/* Style for links inside the modal */
#modal-content a {
    color: #0d3b66; /* Primary color for links */
    text-decoration: underline;
    font-weight: 600;
}

/* CSS to apply the custom text-shadow */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* Slightly stronger shadow */
}


.hero-background {
    /* Set the image path */
    background-image: url('../images/24-1920x1080.jpg');

    /* 1. Control Sizing: Scale the image to cover the entire container */
    background-size: cover; 

    /* 2. Control Position: Center the image */
    background-position: center; 

    /* 3. Control Opacity/Darkness (Optional): This creates the dark blue overlay effect you had */
    background-blend-mode: multiply; /* Blends the image with the background color */
    /* ADJUSTED: Brighter, more vibrant blue for the overlay */
    background-color: #0072C6; /* Solid bright blue */
    /* If you want it even lighter, you can reduce the '0.9' to '0.8' or '0.7' */
}


/* Custom styles for Education Page*/
.nav-link-item {
    /* Large, prominent button styling */
    transition: all 0.2s ease;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1.125rem; /* lg */
    font-weight: 600; /* semi-bold */
    cursor: pointer;
    text-align: center;
}
.nav-link-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.nav-link-item.active {
    background-color: white;
    color: #002B5C !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #002B5C;
}
.card-hover {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.info-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    height: 100%; /* Ensure cards are the same height */
}
.info-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
/* Style for the internal navigation buttons */
.internal-nav-btn {
    @apply inline-flex items-center px-4 py-2 border border-primary text-sm font-medium rounded-md shadow-sm text-primary bg-white hover:bg-primary hover:text-white transition-colors duration-200;
}

/* Custom CSS for the Page Banner */
.page-title-bg {
    background-image: 
        linear-gradient(rgba(0, 50, 100, 0.8), rgba(0, 50, 100, 0.8)), 
        url('../images/24-1920x1080.jpg'); 
    
    background-size: cover;          
    background-position: center center;
    background-repeat: no-repeat;
    
    height: 200px;                   
    border-radius: 1rem;             
    overflow: hidden; 
    position: relative;          
    
    color: white; 
    text-align: center;              
}
.banner-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Custom CSS for the Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-open {
    display: flex;
    opacity: 1;
}
.modal-card {
    background-color: white;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-open .modal-card {
    transform: translateY(0);
}

/* Custom styling for the scrollbar on the modal content for better visibility */
.modal-card::-webkit-scrollbar {
    width: 8px;
}
.modal-card::-webkit-scrollbar-thumb {
    background-color: #0072CE;
    border-radius: 4px;
}
.modal-card::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}


/* Custom CSS for the "About" section background to match the banner */
.about-background-tint {
    /* Use the deep navy blue color with high opacity (0.9) */
    background-image: 
        linear-gradient(rgba(26, 84, 159, 0.9), rgba(0, 44, 85, 0.9)), 
        url('../images/24-1920x1080.jpg'); 
    
    background-size: cover;          
    background-position: center center;
    background-repeat: no-repeat;
    
    /* Ensure no solid background color conflicts */
    background-color: transparent !important;
}

/* Ensure the text is readable and the original image layer is visible */
.background-image-wrapper {
    /* Since we are tinting the background of the parent div, 
       we need to REMOVE this wrapper or remove its contents/opacity property, 
       as it will tint the whole background twice. */
    display: none; /* Hide the old image wrapper */
}