/* src/assets/css/style.css */
@import './tailwind.css';

/*
    Custom CSS to extend modern.css with Tailwind utilities
    This file adds specific styling for the Victoria Educational Trust website
*/

/* Custom styles for specific elements or overrides */
.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Basic styling for embed-responsive if using iframes for videos */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}
.embed-responsive::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}
.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Form input focus styles */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); /* Softer focus ring */
    outline: none;
}

/* Add any other specific custom styles here */

/* Modern Text Gradient */
.text-gradient {
    /* Deep Blue to Lighter Blue */
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes slide-up-fade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-ken-burns {
    animation: ken-burns 20s ease-out forwards;
}

.animate-slide-up-fade {
    animation: slide-up-fade 0.8s ease-out forwards;
}

.animate-slide-up-fade-delay-2 {
    animation: slide-up-fade 0.8s ease-out 0.2s forwards;
}

.animate-slide-up-fade-delay-4 {
    animation: slide-up-fade 0.8s ease-out 0.4s forwards;
}

/* Card Hover Effects */
/* This class now defines the "Modern Card" look */
.hover-card-lift {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8); /* Slate 200 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy, smooth transition */
}
.hover-card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.1), 0 10px 10px -5px rgba(30, 58, 138, 0.04); /* Blue-tinted shadow */
    border-color: #93c5fd; /* Blue 300 highlight */
}

/* Lightbox Styles */
#lightbox-modal {
    display: none;
    position: fixed;
    z-index: 5000; /* High z-index to cover everything */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox-modal.show {
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.3s;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.1rem;
}

@keyframes zoom {
    from {transform:scale(0.9); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 5001;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Disable scroll when lightbox is open */
body.lightbox-active {
    overflow: hidden;
}
