/* ============================================
   COLOR VARIABLES - Blue & Light Green
   ============================================ */
:root {
    --primary-blue: #3498db;
    --primary-blue-dark: #2980b9;
    --primary-blue-light: #ebf5fb;
    --light-green: #a8e6cf;
    --light-green-dark: #8cd8b8;
    --light-green-light: #e0f7ef;
    --accent-gold: #ffd166;
    --accent-maroon: #d8a5a5;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ============================================
   GLOBAL STYLES WITH FADE ANIMATIONS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    animation: fadeInBody 1s ease-out;
}

@keyframes fadeInBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a {
    text-decoration: none;
    color: var(--primary-blue-dark);
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--primary-blue);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all var(--transition-fast);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background-color: transparent;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.badge-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    animation: fadeIn 0.6s ease-out;
}

.badge-success {
    background-color: var(--light-green);
    color: var(--text-dark);
    animation: fadeIn 0.6s ease-out;
}

.badge-info {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue-dark);
    animation: fadeIn 0.6s ease-out;
}
/* ==============================
   NOTIFICATION SYSTEM STYLES
   ============================== */

.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 18px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    animation: slideInRight 0.4s ease forwards, fadeOut 0.4s ease forwards 4.6s;
    opacity: 0;
    transform: translateX(100px);
    pointer-events: auto;
    border-left: 5px solid;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
    opacity: 0.3;
}

.notification.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    color: #155724;
}

.notification.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    color: #721c24;
}

.notification.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffdf0 0%, #fff9e6 100%);
    color: #856404;
}

.notification.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    color: #0c5460;
}

.notification-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-message {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.notification-time {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.notification-time i {
    margin-right: 5px;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    transition: opacity 0.2s ease;
    font-size: 1.1rem;
    line-height: 1;
}

.notification-close:hover {
    opacity: 1;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progressBar 5s linear forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Hover effects */
.notification:hover {
    transform: translateX(0) translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive notifications */
@media (max-width: 768px) {
    .notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 10px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .notifications-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .notification {
        padding: 12px 15px;
        border-radius: 10px;
    }
    
    .notification-icon {
        font-size: 1.3rem;
        margin-right: 12px;
    }
    
    .notification-title {
        font-size: 1rem;
    }
    
    .notification-message {
        font-size: 0.9rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .notification {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .notification.success {
        border-left-color: #38a169;
        background: linear-gradient(135deg, #22543d 0%, #276749 100%);
        color: #c6f6d5;
    }
    
    .notification.error {
        border-left-color: #e53e3e;
        background: linear-gradient(135deg, #742a2a 0%, #9b2c2c 100%);
        color: #fed7d7;
    }
    
    .notification.warning {
        border-left-color: #d69e2e;
        background: linear-gradient(135deg, #744210 0%, #975a16 100%);
        color: #feebc8;
    }
    
    .notification.info {
        border-left-color: #3182ce;
        background: linear-gradient(135deg, #2a4365 0%, #2c5282 100%);
        color: #bee3f8;
    }
}

/* Accessibility */
.notification:focus-within {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.notification-close:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   TOP NAVIGATION BAR WITH FADE
   ============================================ */
.top-nav {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-green) 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    animation: slideDown 0.5s ease-out;
}

.btn-logout{
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 2px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.top-nav-info {
    display: flex;
    align-items: center;
}

.top-nav-info span {
    display: flex;
    align-items: center;
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.top-nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.top-nav-links a:hover {
    color: var(--light-green-light);
    text-decoration: underline;
}

/* ============================================
   MAIN NAVIGATION BAR WITH FADE
   ============================================ */
.main-navbar {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-fast);
    animation: fadeInDown 0.6s ease-out 0.3s both;
}
.main-navbar .navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5px 0;
    animation: fadeInDown 0.6s ease-out 0.4s both;
}

/* Logo container */
.logo-container {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* School logo styling */
.school-logo {
    height: 50px; 
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all var(--transition-fast);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

.school-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.15));
}

/* Brand text container */
.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
}

/* School name styling */
.school-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue-dark);
    line-height: 1.1;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-out 0.5s both;
}

/* School tagline styling */
.school-tagline {
    font-size: 0.75rem;
    color: var(--light-green-dark);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.2px;
    animation: fadeIn 0.6s ease-out 0.6s both;
}

/* Adjust navigation items for new layout */
.navbar-nav {
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .school-logo {
        height: 45px;
        max-width: 160px;
    }
    
    .school-name {
        font-size: 1.2rem;
    }
    
    .school-tagline {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .main-navbar .navbar-brand {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    
    .logo-container {
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .school-logo {
        height: 40px;
        max-width: 140px;
    }
    
    .brand-text {
        align-items: flex-start;
    }
    
    .school-name {
        font-size: 1.1rem;
        line-height: 1;
    }
    
    .school-tagline {
        font-size: 0.65rem;
        line-height: 1;
    }
    .btn-group{
        font-size: 1.1rem;
        padding: auto;
    }
}

@media (max-width: 576px) {
    .school-logo {
        height: 35px;
        max-width: 120px;
    }
    
    .school-name {
        font-size: 1rem;
    }
    
    .school-tagline {
        font-size: 0.6rem;
    }
}

/* Animation for logo */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.school-logo {
    animation: logoFadeIn 0.8s ease-out 0.5s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 15px !important;
    margin: 0 5px;
    border-radius: 20px;
    transition: all var(--transition-fast);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.navbar-nav .nav-link:nth-child(1) { animation-delay: 0.5s; }
.navbar-nav .nav-link:nth-child(2) { animation-delay: 0.6s; }
.navbar-nav .nav-link:nth-child(3) { animation-delay: 0.7s; }
.navbar-nav .nav-link:nth-child(4) { animation-delay: 0.8s; }
.navbar-nav .nav-link:nth-child(5) { animation-delay: 0.9s; }

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
    /* background-color: var(--primary-blue-light); */
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    animation: fadeIn 0.3s ease-out;
}

.admin-link {
    background-color: var(--light-green-light);
    color: var(--light-green-dark) !important;
    border-radius: 20px;
    animation-delay: 1s !important;
}

.admin-link:hover {
    background-color: var(--light-green) !important;
    color: var(--text-dark) !important;
}

/* ============================================
   HERO SECTION WITH ENHANCED FADES
   ============================================ */
.hero-section {
    background: linear-gradient(rgba(52, 152, 219, 0.85), rgba(168, 230, 207, 0.85)), 
                url('../images/school-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn var(--transition-slow);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    animation: fadeIn 2s ease-out;
}

.hero-section .display-4 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-section .btn-light {
    background-color: var(--white);
    color: var(--primary-blue);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-section .btn-light:hover {
    background-color: var(--light-green);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Carousel Styles with Crossfade */
.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.carousel-inner {
    height: 500px;
}

.carousel-item {
    height: 500px;
    position: relative;
    animation: carouselFadeIn 0.8s ease-out;
}

@keyframes carouselFadeIn {
    from {
        opacity: 0.5;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.carousel-item.active {
    animation: carouselFadeInActive 0.8s ease-out;
}

@keyframes carouselFadeInActive {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 40px;
    animation: slideUpFade 0.8s ease-out 0.3s both;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-news-badge {
    background-color: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    animation: fadeInLeft 0.6s ease-out 0.4s both;
}

.carousel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.carousel-text {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 1;
    max-width: auto;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    transition: all var(--transition-fast);
    animation: fadeIn 0.6s ease-out 0.8s both;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--primary-blue);
}

.carousel-indicators {
    bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    transition: all var(--transition-fast);
}

.carousel-indicators .active {
    background-color: var(--primary-blue);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* Hero Info Card with Fade */
.hero-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInRight 0.8s ease-out 0.5s both;
}

.welcome-title {
    color: var(--primary-blue-dark);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.welcome-text {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 30px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.school-motto {
    font-style: italic;
    color: var(--light-green-dark);
    font-size: 1.2rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-blue-light);
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* Quick Links with Staggered Fade */
.quick-links {
    margin-top: 30px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 20px;
    background-color: var(--primary-blue-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-blue-dark);
    font-weight: 600;
    transition: all var(--transition-fast);
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out forwards;
}

.quick-link-item:nth-child(1) { animation-delay: 0.9s; }
.quick-link-item:nth-child(2) { animation-delay: 1s; }
.quick-link-item:nth-child(3) { animation-delay: 1.1s; }

.quick-link-item:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateX(5px);
}

.quick-link-item i {
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-inner,
    .carousel-item,
    .hero-info-card {
        height: 400px;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .carousel-inner,
    .carousel-item {
        height: 350px;
    }
    .welcome-card{
        display: none;
    }
    .hero-info-card {
        height: auto;
        margin-top: 20px;
    }
    
    .carousel-overlay {
        padding: 1px;
    }
    
    .carousel-text{
        font-size: 0.85rem;
        margin-top: 1px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   NEWS CARDS WITH FADE
   ============================================ */
#news{
    background: linear-gradient(rgba(52, 152, 219, 0.85), rgba(168, 230, 207, 0.85)), 
                url('../images/staff.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn var(--transition-slow);
}
.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-fast);
    height: 100%;
    background: var(--white);
    animation: fadeInUp 0.8s ease-out;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.2);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 600;
    animation: fadeIn 0.6s ease-out;
}

.news-card .card-title {
    color: var(--primary-blue-dark);
    font-weight: 700;
    margin-top: 10px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.news-card .card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.news-card .card-footer {
    background-color: transparent;
    border-top: 1px solid var(--medium-gray);
    padding: 1rem 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* ============================================
   SECTION STYLES WITH FADE
   ============================================ */
section {
    padding: 80px 0;
    animation: fadeInUp 0.8s ease-out;
}
.contact-image-container{
    animation: fadeInUp 0.8S ease-out;
}
section.bg-light {
    background-color: var(--light-green-light) !important;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--light-green));
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.5s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

/* ============================================
   CARDS WITH FADE
   ============================================ */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-fast);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card.border-primary {
    border: 2px solid var(--primary-blue) !important;
}

.card.border-success {
    border: 2px solid var(--light-green) !important;
}

/* ============================================
   TEAM CARDS WITH FADE
   ============================================ */
.team-card {
    border: 2px solid var(--primary-blue-light);
    transition: all var(--transition-fast);
    animation: fadeInUp 0.8s ease-out;
}

.team-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.team-card .card-title {
    color: var(--primary-blue-dark);
    font-weight: 700;
}

/* ============================================
   STATISTICS SECTION WITH COUNTER ANIMATION
   ============================================ */
.stat-counter {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-green) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.stat-item {
    margin: 20px 0;
    animation: fadeInUp 0.8s ease-out;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ============================================
   FEATURE HIGHLIGHTS WITH STAGGERED FADE
   ============================================ */
.feature-highlight {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
    height: 100%;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.feature-highlight:nth-child(1) { animation-delay: 0.2s; }
.feature-highlight:nth-child(2) { animation-delay: 0.4s; }
.feature-highlight:nth-child(3) { animation-delay: 0.6s; }

.feature-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.15);
}

.feature-highlight i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.feature-highlight h4 {
    color: var(--primary-blue-dark);
    margin-bottom: 15px;
}
/* ============================================
   SERVICES PAGE STYLES
   ============================================ */

/* Page Header */
.page-header-wrapper {
    margin-top: -20px;
    margin-bottom: 30px;
}

.page-header-bg {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-green) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.page-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-title-divider {
    width: 100px;
    height: 4px;
    background: white;
    margin: 30px auto 0;
    border-radius: 2px;
}

/* Main Services */
.stats-highlight .stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

.services-hero-image {
    position: relative;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 30px;
    color: white;
}

.overlay-content {
    text-align: center;
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--light-green);
}

.overlay-content h5 {
    font-size: 1.5rem;
    margin-bottom: 0;
    font-weight: 700;
}

/* Section Headers */
.section-header {
    position: relative;
    margin-bottom: 3rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.15);
}

.service-card.academic {
    border-top-color: var(--primary-blue);
}

.service-card.special {
    border-top-color: var(--light-green);
}

.service-card.support {
    border-top-color: var(--accent-gold);
}

.service-icon {
    text-align: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.service-card.academic .service-icon {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-blue);
}

.service-card.special .service-icon {
    background: rgba(168, 230, 207, 0.1);
    color: var(--light-green-dark);
}

.service-card.support .service-icon {
    background: rgba(255, 209, 102, 0.1);
    color: var(--accent-gold);
}

.service-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin: 0 auto;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.service-features li {
    margin-bottom: 10px;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
}

.service-features li i {
    color: var(--primary-blue);
    margin-right: 10px;
    margin-top: 3px;
    font-size: 0.9rem;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.service-age {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Program Highlight Badges */
.program-highlight {
    margin-top: 20px;
}

.program-highlight .badge {
    background: var(--primary-blue-light);
    color: var(--primary-blue-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(rgba(52, 152, 219, 0.85), rgba(168, 230, 207, 0.85)), 
                url('../images/school-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn var(--transition-slow);
}

.accordion-item {
    border: 1px solid var(--medium-gray);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    background: white;
    color: var(--primary-blue-dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 20px;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-blue-light);
    color: var(--primary-blue-dark);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-blue);
}

.accordion-body {
    padding: 20px;
    background: white;
    color: var(--text-light);
    line-height: 1.5;
    text-align: justify;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-title {
        font-size: 2.8rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
}

@media (max-width: 768px) {
    .page-header-bg {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .section-intro .section-title {
        font-size: 2rem;
    }
    
    .image-container img {
        height: 300px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.page-header-wrapper {
    position: relative;
    margin-top: -20px;
    margin-bottom: 5px;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.page-header-bg {
    background: linear-gradient(rgba(52, 152, 219, 0.85), rgba(168, 230, 207, 0.85)), 
                url('../images/school-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
}
.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: -1;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
}

.page-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.page-title-divider {
    width: 100px;
    height: 4px;
    background: white;
    margin: 20px auto;
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.5s both;
}

/* Content styling adjustments */
.content-section {
    padding-top: 10px;
}
#staff-member{
    background: linear-gradient(rgba(52, 152, 219, 0.85), rgba(168, 230, 207, 0.85)), 
                url('../images/img-1.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn var(--transition-slow);
}
/* History section specific styling with slide show*/
#history-section {
    scroll-margin-top: 10px;
}

.history-section {
    position: relative;
}

.history-image-slider {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.history-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.history-slide.active {
    opacity: 1;
}

.history-slide-1 {
    background-image: url('../images/staff.jpg');
}

.history-slide-2 {
    background-image: url('../images/img-2.jpg');
}

.history-slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.history-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-slider-dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

.history-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(52, 152, 219, 0.8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid white;
}

.history-slider-nav:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-50%) scale(1.1);
}

.history-content {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history-content h2 {
    margin-bottom: 20px;
}

.history-content .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 15px;
}

.history-content .lead::-webkit-scrollbar {
    width: 6px;
}

.history-content .lead::-webkit-scrollbar-track {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 3px;
}

.history-content .lead::-webkit-scrollbar-thumb {
    background: var(--primary-blue-light);
    border-radius: 3px;
}

.history-content .lead::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Image fallback styling */
.image-fallback {
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--light-green-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue-dark);
    height: 100%;
}

.image-fallback i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.image-fallback p {
    font-weight: 600;
    text-align: center;
    padding: 0 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .history-image-slider,
    .history-content {
        height: 350px;
    }
    
    .history-content .lead {
        max-height: 280px;
        margin-top: -48px;
    }
}

@media (max-width: 768px) {

    .history-image-slider {
        height: 300px;
        margin-bottom: 10px;
    }
    
    .history-content {
        height: auto;
    }
    
    .history-content .lead {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .history-image-slider {
        height: 250px;
    }
    
    .history-slider-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .history-slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* Animation for page content */
.section-content {
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 40px;
}

/* ============================================
   TEAM CAROUSEL STYLES
   ============================================ */

.team-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.team-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-carousel-slide {
    display: none;
    padding: 30px;
    animation: fadeInTeam 0.8s ease-out;
}

.team-carousel-slide.active {
    display: block;
}

@keyframes fadeInTeam {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-carousel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .team-carousel-card {
        flex-direction: row;
        text-align: left;
    }
}

.team-carousel-image {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .team-carousel-image {
        margin-right: 30px;
        margin-bottom: 0;
    }
}

.team-member-carousel-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-member-carousel-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--light-green-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-member-carousel-placeholder i {
    font-size: 4rem;
    color: var(--primary-blue);
}

.team-carousel-content {
    flex: 1;
    color: white;
}

.team-carousel-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.team-carousel-position {
    font-size: 1.2rem;
    color: var(--light-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.team-carousel-department,
.team-carousel-qualification,
.team-carousel-email,
.team-carousel-phone {
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .team-carousel-department,
    .team-carousel-qualification,
    .team-carousel-email,
    .team-carousel-phone {
        justify-content: flex-start;
    }
}

.team-carousel-department i,
.team-carousel-qualification i,
.team-carousel-email i,
.team-carousel-phone i {
    color: var(--light-green);
    margin-right: 10px;
    width: 20px;
}

.team-carousel-bio {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 120px;
    overflow-y: auto;
}

.team-carousel-bio::-webkit-scrollbar {
    width: 5px;
}

.team-carousel-bio::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.team-carousel-bio::-webkit-scrollbar-thumb {
    background: var(--light-green);
    border-radius: 3px;
}

.team-carousel-contact {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

@media (min-width: 768px) {
    .team-carousel-contact {
        justify-content: flex-start;
    }
}

.team-contact-link {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-contact-link:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Carousel Controls */
.team-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.team-carousel-prev,
.team-carousel-next {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.team-carousel-prev:hover,
.team-carousel-next:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.1);
}

.team-carousel-dots {
    display: flex;
    gap: 10px;
}

.team-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.team-carousel-dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

/* Auto-play Indicator */
.team-carousel-auto {
    margin-top: 20px;
    text-align: center;
}

.team-carousel-timer {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.team-carousel-progress {
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 30s linear;
}

.team-carousel-auto-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .team-carousel-wrapper {
        padding: 10px;
    }
    
    .team-carousel-slide {
        padding: 20px;
    }
    
    .team-member-carousel-img,
    .team-member-carousel-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .team-member-carousel-placeholder i {
        font-size: 3rem;
    }
    
    .team-carousel-name {
        font-size: 1.5rem;
    }
    
    .team-carousel-position {
        font-size: 1.1rem;
    }
    
    .team-carousel-controls {
        flex-wrap: wrap;
    }
}
/* Facilities hover effect */
.facility-card {
    transition: all 0.3s ease;
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.15);
}

/* Section titles spacing fix */
.section-title {
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header-bg {
        padding: 40px 0 30px;
        background-attachment: scroll;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
    
    .team-card-container {
        height: 320px;
    }
    
    .team-member-img,
    .team-member-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .team-member-placeholder i {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .page-header-bg {
        padding: 30px 0 25px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .team-card-container {
        height: 300px;
    }
    
    .team-card-back {
        padding: 20px;
    }
    
    .team-member-back-bio {
        max-height: 80px;
        font-size: 0.85rem;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header h2 {
    color: var(--primary-blue-dark);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.header-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--light-green));
    margin: 20px auto 30px;
    border-radius: 2px;
}

/* Testimonial Card Styles */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
}

.quote-icon {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
}

.rating {
    margin-bottom: 20px;
}

.rating i {
    margin-right: 3px;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.author-img i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.author-info h5 {
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Desktop specific styles */
@media (min-width: 768px) {
    .testimonial-card {
        height: 320px;
        display: flex;
        flex-direction: column;
    }
    
    .testimonial-content {
        flex: 1;
    }
    
    .testimonial-author {
        margin-top: auto;
    }
}

/* ============================================
   MOBILE CAROUSEL STYLES
   ============================================ */

@media (max-width: 767px) {
    .testimonials-section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Carousel Wrapper */
    .testimonial-carousel-wrapper {
        position: relative;
        padding: 0 10px;
    }
    
    /* Carousel Container */
    .testimonial-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 10px 5px;
        scrollbar-width: none; /* Firefox */
    }
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    .testimonial-carousel::-webkit-scrollbar {
        display: none;
    }
    
    /* Each Slide */
    .testimonial-slide {
        flex: 0 0 85%;
        min-width: 85%;
        scroll-snap-align: start;
    }
    
    /* Testimonial Card adjustments for mobile */
    .testimonial-card {
        padding: 20px;
        margin: 0;
        height: auto;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .author-img {
        width: 40px;
        height: 40px;
    }
    
    .author-img i {
        font-size: 1.5rem;
    }
    
    .author-info h5 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
    
    /* Carousel Controls */
    .carousel-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 25px;
        gap: 20px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: var(--primary-blue);
        color: white;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
        flex-shrink: 0;
    }
    
    .carousel-prev:hover,
    .carousel-next:hover {
        background: var(--primary-blue-dark);
        transform: scale(1.1);
    }
    
    .carousel-indicators {
        display: flex;
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(52, 152, 219, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .indicator.active {
        background: var(--primary-blue);
        transform: scale(1.2);
    }
    
    /* Active slide highlight */
    .testimonial-slide.active .testimonial-card {
        border: 2px solid var(--primary-blue);
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    }
}

/* Desktop - hide carousel controls */
@media (min-width: 768px) {
    .carousel-controls {
        display: none;
    }
}

/* ============================================
   FOOTER WITH FADE
   ============================================ */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 60px 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

.footer-brand h4 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-blue);
    animation: expandWidth 0.6s ease-out 0.5s both;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out forwards;
}

.footer-links li:nth-child(1) { animation-delay: 0.4s; }
.footer-links li:nth-child(2) { animation-delay: 0.5s; }
.footer-links li:nth-child(3) { animation-delay: 0.6s; }
.footer-links li:nth-child(4) { animation-delay: 0.7s; }
.footer-links li:nth-child(5) { animation-delay: 0.8s; }

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.contact-info- p {
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    animation: fadeInRight 0.6s ease-out forwards;
}

.contact-info p:nth-child(1) { animation-delay: 0.4s; }
.contact-info p:nth-child(2) { animation-delay: 0.5s; }
.contact-info p:nth-child(3) { animation-delay: 0.6s; }
.contact-info p:nth-child(4) { animation-delay: 0.7s; }

.contact-info i {
    color: var(--primary-blue);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    transition: all var(--transition-fast);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.social-icon:nth-child(1) { animation-delay: 0.5s; }
.social-icon:nth-child(2) { animation-delay: 0.6s; }
.social-icon:nth-child(3) { animation-delay: 0.7s; }
.social-icon:nth-child(4) { animation-delay: 0.8s; }
.social-icon:nth-child(5) { animation-delay: 0.9s; }

.social-icon:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    color: var(--white);
}

.newsletter .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 25px 0 0 25px;
    padding: 10px 20px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter .btn {
    border-radius: 0 25px 25px 0;
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.footer-divider {
    background-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 30px;
    animation: fadeIn 0.6s ease-out 0.8s both;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-fast);
    animation: fadeInUp 0.6s ease-out 1s both;
}

.footer-link:hover {
    color: var(--primary-blue);
}

/* ============================================
   BACK TO TOP BUTTON WITH FADE
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 998;
    animation: fadeIn 0.6s ease-out;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.back-to-top:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* ============================================
   ALERTS WITH FADE
   ============================================ */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background-color: var(--light-green-light);
    color: var(--text-dark);
    border-left: 4px solid var(--light-green);
}

.alert-info {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue-dark);
    border-left: 4px solid var(--primary-blue);
}

.alert-warning {
    background-color: #fff3cd;
    color: var(--text-dark);
    border-left: 4px solid #ffc107;
}

/* ============================================
   BREADCRUMB WITH FADE
   ============================================ */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-success {
    color: var(--light-green-dark) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

/* ============================================
   PAGE LOAD ANIMATION
   ============================================ */
.page-load-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-green) 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 1s ease-out 1.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all var(--transition-fast);
    animation: fadeInUp 0.8s ease-out 1.2s both, whatsappPulse 2s infinite;
    overflow: hidden;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float .whatsapp-icon {
    font-size: 2rem;
    transition: transform var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-icon {
    transform: scale(1.2);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

/* WhatsApp icon in social links */
.social-links .whatsapp-icon {
    color: #25D366;
}

.social-links .whatsapp-icon:hover {
    background-color: #25D366;
    color: white;
}

/* Responsive adjustments for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float .whatsapp-icon {
        font-size: 1.8rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Make sure WhatsApp button doesn't overlap other buttons */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 70px;
        right: 15px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
}

/* Animation for WhatsApp button */
@keyframes bounceWhatsApp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-float {
    animation: fadeInUp 0.8s ease-out 1.2s both, bounceWhatsApp 3s ease-in-out infinite 2s;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .top-nav {
        font-size: 0.8rem;
    }
    
    .school-name {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 12px !important;
        margin: 2px 0;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    /* Reduce animation delays on mobile */
    .navbar-nav .nav-link,
    .quick-link-item,
    .footer-links li,
    .contact-info p,
    .social-icon {
        animation-delay: 0s !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .top-nav-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .top-nav-info span.ms-3 {
        margin-left: 0 !important;
        margin-top: 5px;
    }
}

/* ============================================
    Beautiful Loading Spinner
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.95;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.spinner-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 40px;
}

.spinner-outer {
    width: 150px;
    height: 150px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #4fc3f7;
    border-radius: 50%;
    animation: spin 3s linear infinite;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

.spinner-middle {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 110px;
    height: 110px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-right: 4px solid #ff9800;
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
}

.spinner-inner {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-bottom: 4px solid #4caf50;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.spinner-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.95); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.95); }
}

.loading-text {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-top: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.loading-subtext {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 15px;
    font-style: italic;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 25px auto 0;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #4caf50);
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.loading-time {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.8;
}

.dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.loading-complete {
    opacity: 0;
    visibility: hidden;
}

.loading-quote {
    font-size: 14px;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: inline-block;
    font-style: italic;
}


/* Page Header */
.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: white;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Downloads Section */
.downloads-section {
    margin-bottom: 40px;
}

.download-card {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #1a5f7a;
}

.download-icon {
    margin-right: 20px;
    color: #1a5f7a;
}

.download-info {
    flex-grow: 1;
}

.download-info h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.file-size {
    color: #666;
    font-size: 0.9em;
}

.btn-download {
    min-width: 120px;
}

/* Info Box */
.info-box {
    background: #f8f9fa;
    border-left: 4px solid #1a5f7a;
    border-radius: 5px;
    padding: 20px;
    margin: 30px 0;
}

.info-box-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-box-header h3 {
    margin: 0;
    color: #2c3e50;
}

.info-box-content {
    color: #555;
}

.info-box-content .fa-ul {
    margin-left: 1.5em;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-header {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c3e50 100%);
    color: white;
    padding: 15px 20px;
}

.widget-header h4 {
    margin: 0;
    font-size: 1.1em;
}

.widget-content {
    padding: 20px;
}

/* Calendar Highlights */
.calendar-highlights {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.highlight-item:last-child {
    border-bottom: none;
}

.highlight-date {
    text-align: center;
    background: #f8f9fa;
    border-radius: 5px;
    padding: 8px;
    min-width: 60px;
    margin-right: 15px;
}

.highlight-month {
    display: block;
    font-size: 0.8em;
    color: #1a5f7a;
    font-weight: bold;
    text-transform: uppercase;
}

.highlight-day {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

.highlight-info h6 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.highlight-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Contact Widget */
.contact-widget p {
    margin-bottom: 10px;
    color: #555;
}

.contact-widget i {
    color: #1a5f7a;
    width: 20px;
}

/* Admission Sections */
.admission-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admission-section h3 {
    color: #1a5f7a;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.admission-content ul {
    padding-left: 20px;
}

.admission-content li {
    margin-bottom: 8px;
    color: #555;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.process-step {
    display: flex;
    align-items: flex-start;
}

.step-number {
    background: #1a5f7a;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h6 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Instructions Box */
.instructions-box {
    background: #e8f4fc;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #1a5f7a;
}

.instructions-box h4 {
    color: #1a5f7a;
}

.instructions-list {
    padding-left: 20px;
    color: #555;
}

.instructions-list li {
    margin-bottom: 8px;
}
/* ==============================
   FORM STYLES
   ============================== */

/* Form Container */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f7;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.form-card-header {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c3e50 100%);
    color: white;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-card-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.form-card-header p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.form-card-body {
    padding: 40px;
}

/* Form Elements */
.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-control, .form-select, .form-file {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    line-height: 1.5;
    color: #2c3e50;
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #e8edf2;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-control:focus, .form-select:focus, .form-file:focus {
    border-color: #1a5f7a;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
    outline: 0;
    background-color: #f8fbfd;
}

.form-control:hover, .form-select:hover, .form-file:hover {
    border-color: #c8d6e5;
}

/* File Input Styling */
.file-input-container {
    position: relative;
}

.file-input-preview {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.file-input-preview:hover {
    border-color: #1a5f7a;
    background: #f0f7fa;
}

.file-icon {
    font-size: 2rem;
    color: #1a5f7a;
    margin-right: 15px;
}

.file-info h6 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.file-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Form Switches */
.form-switch {
    padding-left: 3.5em;
    min-height: 2.5em;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    margin-left: -3.5em;
    background-color: #dee2e6;
    border: 2px solid #dee2e6;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-position: left center;
    transition: background-position 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.form-switch .form-check-input:checked {
    background-color: #1a5f7a;
    border-color: #1a5f7a;
    background-position: right center;
}

.form-switch .form-check-label {
    padding-top: 0.5em;
    color: #495057;
    font-weight: 500;
}

/* Form Help Text */
.form-text {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6c757d;
}

.form-text i {
    margin-right: 5px;
}

/* Form Validation */
.is-invalid {
    border-color: #e74c3c !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

.invalid-feedback {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #e74c3c;
}

.is-valid {
    border-color: #27ae60 !important;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eef2f7;
}

.btn-primary {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c3e50 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.3);
    background: linear-gradient(135deg, #2c3e50 0%, #1a5f7a 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    border-color: #1a5f7a;
    color: #1a5f7a;
    background-color: rgba(26, 95, 122, 0.05);
}

/* Form Steps (for multi-step forms) */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #eef2f7;
    z-index: 1;
}

.form-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #eef2f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.form-step.active .step-number {
    background: #1a5f7a;
    border-color: #1a5f7a;
    color: white;
}

.form-step.completed .step-number {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.form-step.active .step-label {
    color: #1a5f7a;
    font-weight: 600;
}

/* Form Grid */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

/* Form Sidebar */
.form-sidebar {
    background: #f8fbfd;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #eef2f7;
}

.form-sidebar h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eef2f7;
}

.form-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-sidebar li {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    color: #6c757d;
    font-size: 0.9rem;
}

.form-sidebar li:last-child {
    border-bottom: none;
}

.form-sidebar li i {
    color: #1a5f7a;
    margin-right: 10px;
    width: 20px;
}

/* Form Preview */
.form-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #eef2f7;
    margin-top: 30px;
}

.form-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-preview-title {
    color: #2c3e50;
    margin: 0;
}

.preview-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.preview-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eef2f7;
}

.preview-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.preview-value {
    font-weight: 500;
    color: #2c3e50;
}

/* Form Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Form Success/Error Messages */
.form-message {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    animation: slideIn 0.3s ease;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #27ae60;
    color: #155724;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #e74c3c;
    color: #721c24;
}

.form-message.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #17a2b8;
    color: #0c5460;
}

.form-message.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    color: #856404;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Animation for Inputs */
.form-control, .form-select {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   RESPONSIVE FORM STYLES
   ============================== */

@media (max-width: 992px) {
    .form-container {
        padding: 20px;
    }
    
    .form-card-body {
        padding: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .form-card-body {
        padding: 25px 20px;
    }
    
    .form-card-header {
        padding: 20px;
    }
    
    .form-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-steps::before {
        display: none;
    }
    
    .form-step {
        display: flex;
        align-items: center;
        text-align: left;
    }
    
    .step-number {
        margin: 0 15px 0 0;
        flex-shrink: 0;
    }
    
    .preview-content {
        grid-template-columns: 1fr;
    }
    
    .file-input-preview {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .file-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 15px;
    }
    
    .form-card-body {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
    
    .form-control, .form-select, .form-file {
        padding: 12px 14px;
    }
    
    .form-actions {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .btn-primary, .btn-outline-secondary {
        padding: 12px 20px;
    }
}

/* Form Print Styles */
@media print {
    .form-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .form-actions, .form-switch, .form-file {
        display: none !important;
    }
    
    .form-control, .form-select {
        border: 1px solid #ddd;
        background: none;
    }
}

/* Form Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .form-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .form-control, .form-select, .form-file {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .form-label {
        color: #e2e8f0;
    }
    
    .form-text {
        color: #a0aec0;
    }
    
    .form-sidebar {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .preview-item {
        background: #1a202c;
        border-color: #4a5568;
    }
    
    .preview-value {
        color: #e2e8f0;
    }
}

/* Form Accessibility */
.form-control:focus-visible, 
.form-select:focus-visible, 
.form-file:focus-visible {
    outline: 2px solid #1a5f7a;
    outline-offset: 2px;
}

/* Form Placeholder Styling */
.form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

.form-control::-webkit-input-placeholder {
    color: #adb5bd;
}

.form-control::-moz-placeholder {
    color: #adb5bd;
}

.form-control:-ms-input-placeholder {
    color: #adb5bd;
}

.form-control:-moz-placeholder {
    color: #adb5bd;
}
/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.document-item:last-child {
    border-bottom: none;
}

/* Submission Points */
.submission-points p {
    margin-bottom: 10px;
    color: #555;
}

.submission-points strong {
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .download-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .download-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .download-info {
        margin-bottom: 15px;
    }
    
    .download-action {
        width: 100%;
    }
    
    .btn-download {
        width: 100%;
    }
    
    .form-header {
        flex-direction: column;
        text-align: center;
    }
    
    .form-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}


/* Gallery Styles */
.gallery-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icons {
    display: flex;
    gap: 15px;
}

.gallery-icon {
    width: 45px;
    height: 45px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-icon:hover {
    background: #0056b3;
    transform: scale(1.1);
    color: white;
}

.gallery-caption {
    padding: 20px;
}

.gallery-caption h5 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.file-upload-area:hover {
    border-color: #007bff;
}

.file-upload-area input[type="file"] {
    width: 100%;
}

/* Page Header */
.page-header {
    background-size: cover;
    background-position: center;
    padding: 100px 0 50px;
    margin-bottom: 50px;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item.active {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-image-container {
        height: 200px;
    }
    
    .gallery-icons {
        gap: 10px;
    }
    
    .gallery-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .gallery-card {
        margin-bottom: 20px;
    }
}
