/********** Template CSS **********/
:root {
    --primary: #224870;
    --light: #f8f9fa;
    --dark: #222236;
}

/*** Global Reset ***/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/*** Back to Top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 20px;
    bottom: 20px;
    z-index: 99;
}

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

/*** Typography ***/
p {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    color: #555;
}

h1, h2, h3, h4,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Fredoka One', cursive;
    font-weight: 700;
    color: #242457;
}

h5, h6 {
    font-weight: 600;
}

/*** Buttons ***/
.btn {
    font-weight: 500;
    transition: 0.3s ease;
}

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

.btn-primary:hover {
    background: #18324d;
}

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

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

/*** Navbar ***/
.navbar {
    transition: 0.5s;
}

.navbar .nav-link {
    padding: 20px 15px;
    color: var(--dark);
    font-weight: 500;
}

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

.navbar.sticky-top {
    top: 0;
}

.navbar .dropdown-toggle::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 5px;
}

/*** Desktop Dropdown Animation ***/
@media (min-width: 992px) {
    .navbar .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
        display: block;
    }

    .navbar .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
}

/*** Mobile Navbar ***/
@media (max-width: 991.98px) {

    .navbar .nav-link {
        padding: 10px 0;
    }

    .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid #eee;
    }

    .navbar-collapse {
        background: #fff;
        padding: 15px;
    }
}

/*** Header ***/
.page-header {
    background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)),
                url(../img/carousel-1.jpg) center/cover no-repeat;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

@media (max-width: 768px) {
    .page-header {
        padding: 50px 15px;
    }
}

/*** Facility ***/
.facility-item * {
    transition: 0.3s ease;
}

.facility-item:hover * {
    color: #fff !important;
}

.facility-icon,
.facility-text {
    background: rgba(255,255,255,.95);
    padding: 20px;
    border-radius: 10px;
}

.facility-item:hover .facility-icon,
.facility-item:hover .facility-text {
    background: var(--primary);
}

/*** About ***/
.about-img img {
    width: 100%;
    transition: 0.3s ease;
    border-radius: 10px;
}

.about-img img:hover {
    transform: scale(1.03);
}

/*** Classes ***/
.classes-item {
    transition: 0.3s ease;
}

.classes-item:hover {
    transform: translateY(-10px);
}

/*** Team ***/
.team-text {
    position: absolute;
    width: 220px;
    height: 220px;
    background: #fff;
    border: 12px solid var(--light);
    border-radius: 50%;
    transition: 0.3s ease;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel {
    padding: 1.5rem;
}

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

/*** Footer ***/
.footer {
    background: var(--primary);
    color: #fff;
    padding: 40px 0;
}
.footer p {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    color: 
#BFBFC9;
}

.footer .btn-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    border: 1px solid rgba(255,255,255,.5);
}

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

.footer .btn-link {
    font-size: 15px;
    display: block;
    color: #fff;
}

.footer .copyright {
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,.2);
    margin-top: 20px;
    padding-top: 15px;
    text-align: center;   /* Center align text */
}

/*** Contact Form ***/
.contact-form {
    max-width: 500px;
    margin: auto;
    padding: 20px;
}

.contact-form label {
    display: block;
    margin-top: 10px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #18324d;
}
