/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f7f6;
    color: #333;
}

/* Welcome card */
.auth-container {
    max-width: 700px;
    margin: 32px auto 8px;
    padding: 28px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 10px;
}

.auth-container p {
    color: #555;
}

/* ---------- PAGE LAYOUT ---------- */
.home-wrap {
    max-width: 1100px;
    margin: 24px auto 48px;
    padding: 0 16px;
}

/* Two top boxes (Hindi + English) */
.top-boxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Card style used by all three boxes */
.info-box,
.slideshow-box {
    background: #ffffff;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Text cards */
.info-box {
    padding: 24px 22px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.info-box h3 {
    margin-bottom: 10px;
    color: #4CAF50;
    font-size: 1.35rem;
}

.info-box p {
    color: #555;
    line-height: 1.55;
}

/* Slideshow card (below) */
.slideshow-box {
    overflow: hidden;
    /* keep images inside the border */
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* responsive height */
    min-height: 320px;
    /* fallback if aspect-ratio not supported */
}

/* Slides with fade */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .auth-container h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .top-boxes {
        grid-template-columns: 1fr;
    }

    /* stack Hindi + English */
    .slideshow-container {
        min-height: 260px;
    }
}

@media (max-width: 500px) {
    .auth-container {
        margin: 20px;
        padding: 20px;
    }

    .auth-container h2 {
        font-size: 1.4rem;
    }

    .slideshow-container {
        min-height: 220px;
    }
}