/* Custom styles for Indian School Website */

/* Base body styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main {
    flex: 1;
}

/* Prevent image download */
img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: auto;
}

/* Navbar customization */
.navbar-brand {
    font-size: 1.4rem;
}

/* Footer */
footer h5 {
    font-size: 1.1rem;
}

footer a.text-light:hover {
    opacity: 0.7;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    padding: 4rem 0;
}

/* Card hover effect */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Gallery grid */
.gallery-img {
    cursor: pointer;
    object-fit: cover;
    width: 100%;
    height: 220px;
    border-radius: 0.375rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2;
    position: relative;
}

/* Hero carousel */
.carousel-hero-img {
    object-fit: cover;
    height: 480px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .carousel-hero-img {
        height: 280px;
    }
}

/* WhatsApp floating widget */
.whatsapp-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
    }

    .whatsapp-widget {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
}
