/* index.css - Styles for Aarambh School Website */

/* ===== Counter Section ===== */
.counter-section {
    position: relative;
    overflow: hidden;
    background: #ffedd5;
}

.counter-doodle-bg {
    display: none;
}

.counter-content {
    position: relative;
    z-index: 1;
}

.counter-item {
    transition: .5s;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2;
}

.counter-item:hover {
    background: var(--primary) !important;
}

.counter-item:hover i,
.counter-item:hover h1,
.counter-item:hover p {
    color: #FFFFFF !important;
}

.counter-item h1 {
    font-size: 45px;
    font-weight: 700;
    color: var(--dark);
}

/* ===== Facilities Section ===== */
.facilities-section {
    position: relative;
    overflow: hidden;
}

.facilities-doodle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    background-image: url('../img/banner/bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.facilities-content {
    position: relative;
    z-index: 1;
}

.facilities-content .text-center {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.facility-card {
    height: 100%;
    padding: 40px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .06);
    transition: .4s;
    position: relative;
    z-index: 2;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
    border-color: transparent;
    background: #FFFFFF;
}

.facility-icon-box {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: .4s;
}

.facility-card:hover .facility-icon-box {
    transform: scale(1.1);
}

.facility-card h3 {
    font-size: 22px;
}

.facility-card p {
    color: #6c757d;
}

/* ===== Appointment Section ===== */
.appointment-section {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 80px 0 !important;
}

.appointment-doodle-bg {
    display: none;
}

.appointment-content {
    position: relative;
    z-index: 1;
    max-width: 100% !important;
    padding: 0 !important;
}

.appointment-content .bg-light {
    position: relative;
    z-index: 2;
    border-radius: 0 !important;
}

.appointment-content .container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Keep text content inside with padding */
.appointment-content .p-5 {
    padding: 60px 50px !important;
}

.appointment-textarea {
    height: 100px;
}

.appointment-img-col {
    min-height: 400px;
}

.appointment-img-col img {
    object-fit: cover;
}

/* ===== Call To Action Section ===== */
.cta-img-col {
    min-height: 400px;
}

.cta-img-col img {
    object-fit: cover;
}

/* ===== Section Intro (narrow centered text) ===== */
.intro-narrow {
    max-width: 600px;
}

/* ===== Program Item Colors ===== */
.program-toddler {
    background-color: #3B2D9E;
}

.program-playgroup {
    background-color: #D9531E;
}

.program-nursery {
    background-color: #8B1F82;
}

.program-kg {
    background-color: #4E9A3B;
}

/* ===== About Section ===== */
.about-img {
    position: relative;
}

.about-shape-wrap {
    position: relative;
    padding: 30px 10px;
}

.about-shape-primary {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 65%;
    height: 60%;
    background: var(--primary);
    border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
    z-index: 0;
}

.about-shape-dark {
    position: absolute;
    bottom: -25px;
    right: -15px;
    width: 45%;
    height: 45%;
    background: var(--dark);
    opacity: .1;
    border-radius: 55% 45% 40% 60% / 50% 60% 40% 50%;
    z-index: 0;
}

.about-img .about-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    border: 6px solid #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    transition: .5s;
}

.about-img .about-photo-main {
    width: 80%;
    margin: 0 auto;
    display: block;
}

.about-img .about-photo:hover {
    transform: translateY(-6px);
}

/* ===== Programs Section ===== */
.program-item {
    height: 100%;
    padding: 20px 20px 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: .4s;
}

.program-item:hover {
    transform: translateY(-8px);
}

.program-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.program-label-wrap {
    width: 100%;
}

.program-label {
    display: block;
    width: 100%;
    padding: 12px 10px;
    text-align: center;
    background: #FFD400;
    color: #C0392B;
    font-family: 'Lobster Two', cursive;
    font-weight: 700;
    font-size: 20px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ===== Gallery Section ===== */
.gallery-photo-carousel {
    padding-bottom: 10px;
}

.gallery-photo-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

.gallery-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.gallery-photo-item:hover img {
    transform: scale(1.08);
}

/* Fallback: never let the carousel stay hidden if Owl's JS is slow/blocked */
.gallery-photo-carousel {
    min-height: 1px;
}

.gallery-photo-carousel:not(.owl-loaded) {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
}

.gallery-photo-carousel:not(.owl-loaded) .gallery-photo-item {
    flex: 0 0 auto;
    width: 220px;
}

/* ===== Owl Carousel Overrides ===== */
.owl-carousel .owl-item {
    display: flex;
    justify-content: center;
}

/* ===== Theme Colors ===== */
.bg-primary {
    background-color: #FE5D37 !important;
}

.bg-success {
    background-color: #4E9A3B !important;
}

.bg-warning {
    background-color: #D9531E !important;
}

.bg-info {
    background-color: #8B1F82 !important;
}

.btn-primary {
    background-color: #FE5D37;
    border-color: #FE5D37;
}

.btn-primary:hover {
    background-color: #2d1f7a;
    border-color: #2d1f7a;
}

.text-primary {
    color: #FE5D37 !important;
}

.border-primary {
    border-color: #FE5D37 !important;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    .program-img {
        height: 200px;
    }
    
    .facility-card {
        padding: 20px 15px;
    }
    
    .about-photo-main {
        max-height: 300px;
    }
}

#bannerCarousel .carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

@media (max-width: 992px) {
    #bannerCarousel .carousel-item img {
        height: 350px;
    }
}

@media (max-width: 576px) {
    #bannerCarousel .carousel-item img {
        height: 220px;
    }
}

/* Carousel Prev/Next Button Styling */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    opacity: 1;
    transition: background-color 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--bs-primary, #0d6efd);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Gallery carousel controls sit inside the container, not the edges */
#galleryCarousel .carousel-control-prev {
    left: -10px;
}

#galleryCarousel .carousel-control-next {
    right: -10px;
}

@media (max-width: 768px) {
    #galleryCarousel .carousel-control-prev,
    #galleryCarousel .carousel-control-next {
        display: none;
    }
}

/* Indicators (dots) styling */
.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    margin: 0 4px;
}

.carousel-indicators button.active {
    background-color: #fff;
}

#galleryCarousel .carousel-indicators button {
    background-color: #ccc;
}

#galleryCarousel .carousel-indicators button.active {
    background-color: var(--bs-primary, #0d6efd);
}