/********** Purple Springs International Schools — CSS **********/
:root {
    --primary: #702963;
    --primary-hover: #581C87;
    --secondary: #1E3A8A;
    --light: #FBF7FB;
    --dark: #1E1B2E;
    --accent: #F59E0B;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

/* Portal Login Navbar Button */
.btn-portal-launch {
    background: linear-gradient(135deg, #702963 0%, #1E3A8A 100%);
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(112, 41, 99, 0.3);
    transition: all 0.3s ease;
}
.btn-portal-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(112, 41, 99, 0.5);
    color: #ffffff !important;
}


/*** Heading ***/
h1, h2, h3, h4,
.h1, .h2, .h3, .h4,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 800;
}

h5, h6, .h5, .h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}


/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}


/*** Header & Hero ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: url(../img/bg-header-top.png) center center repeat-x;
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
    background: url(../img/bg-header-bottom.png) center center repeat-x;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 28px;
        font-weight: 700;
    }
}

.page-header {
    background: linear-gradient(rgba(30, 27, 46, .8), rgba(112, 41, 99, .8)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** Campus & Facility Cards ***/
.campus-card {
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.campus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-text {
    position: relative;
    min-height: 220px;
    padding: 30px;
    border-radius: 24px;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}


/*** Classes & Programmes ***/
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}


/*** Testimonials ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}


/*** Footer ***/
.footer {
    background-color: var(--dark);
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 42px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 15px;
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary) !important;
    letter-spacing: 1px;
    box-shadow: none;
}


/********** Custom Enhancements **********/

/* Top Announcement Bar */
.top-bar {
    background-color: var(--dark);
    color: #ffffff;
    font-size: 14px;
}
.top-bar a {
    color: #ffffff;
    transition: color 0.3s ease;
}
.top-bar a:hover {
    color: #F59E0B;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #FFFFFF;
}
.whatsapp-widget i {
    font-size: 22px;
}

/* Gallery Filters */
.gallery-filter-btn {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s ease;
}
.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
}

/* Admission Step Cards */
.admission-step-card {
    border-left: 5px solid var(--primary);
    background: var(--light);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}
.admission-step-card:hover {
    transform: translateX(5px);
}
.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

/* Mobile Responsive Tweaks */
@media (max-width: 576px) {
    .whatsapp-widget span {
        display: none;
    }
    .whatsapp-widget {
        padding: 14px;
        border-radius: 50%;
        left: 20px;
        bottom: 20px;
    }
    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
    h1, .display-2 {
        font-size: 24px !important;
    }
}


/* Subtitle Contrast & Anti-Fading Enhancements */
.text-muted {
    color: #4B5563 !important; /* Darker grey for high contrast readability */
}
.text-white-50 {
    color: rgba(255, 255, 255, 0.9) !important; /* High contrast white */
}
.section-subtitle, p.fs-5.text-muted, p.text-muted {
    color: #374151 !important;
    opacity: 1 !important;
}
.header-carousel .owl-carousel-item p {
    color: #FFFFFF !important;
    opacity: 1 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.animated {
    animation-fill-mode: both;
}
