/* ==== Global Styles ==== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #212529;
    background-color: #f8f9fa;
    line-height: 1.6;
}


/* Start Pre Loader*/


/* Full Screen Loader */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    /* light white transparent bg */
    backdrop-filter: blur(6px);
    /* blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}


/* Rotating Circle */

.loader-circle {
    width: 120px;
    height: 120px;
    border: 5px solid #007bff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: rotate 1.2s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Static Logo with scaling only */

.loader-logo {
    width: 60px;
    animation: scalePulse 2.5s infinite ease-in-out;
}


/* Rotate Border */

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Scale Pulse Logo */

@keyframes scalePulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}


/* End Pre Loader*/

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: #0d6efd;
}

a {
    color: #6610f2;
    text-decoration: none;
}

a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
}

.btn-primary:hover {
    background-color: #0056d2;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

.text-muted {
    color: #6c757d !important;
}


/* Sticky Navbar with Shadow */

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    color: #212529 !important;
    transition: 0.3s;
}

.nav-link:hover {
    color: #0d6efd !important;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}


/* Dropdown on hover (desktop only) */

@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}


/* Custom Toggle Button */

.custom-toggler {
    border: none;
    background: transparent;
    outline: none;
}

.custom-toggler .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #000;
    transition: all 0.3s;
}

.custom-toggler.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler.active .bar:nth-child(2) {
    opacity: 0;
}

.custom-toggler.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar-brand {
    font-weight: bold;
    color: #0d6efd !important;
}

.dropdown-menu {
    border-radius: 0;
}


/* Hero Section */

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    color: #f1f1f1;
}

.hero-section {
    height: 100vh;
    background: url('https://media.istockphoto.com/id/178472827/photo/elementary-school-students-with-computers.jpg?s=612x612&w=0&k=20&c=RkeE_qCWRkAHRI0oxeNNS4IOPOqg1aBBLktOS9JBvNI=') no-repeat center center/cover;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    /* background: rgba(255, 255, 255, 0.05); */
    /* backdrop-filter: blur(10px); */
    padding: 40px;
    border-radius: 15px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); */
    max-width: 700px;
    margin: auto;
}

.btn-hero {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-hero:hover {
    background-color: #ffffff;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}


/* Courses Section */

.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


/* ==== Why Choose Us Section ==== */

#why-choose-us {
    background-color: #f8f9fa;
    padding: 60px 0;
}

#why-choose-us h2 {
    font-size: 2.5rem;
    color: #212529;
    font-weight: 700;
}

#why-choose-us i {
    transition: transform 0.3s ease-in-out;
}

#why-choose-us i:hover {
    transform: scale(1.1);
}

#why-choose-us .col-md-4 {
    margin-bottom: 30px;
}

#why-choose-us .font-weight-bold {
    font-size: 1.3rem;
    color: #212529;
}

#why-choose-us .text-muted {
    font-size: 1rem;
    color: #6c757d;
}


/* ==== Counter Section ==== */

#counters {
    background-color: #0d6efd;
    /* Blue background */
    padding: 60px 0;
    color: #fff;
    /* White text color for better contrast */
}

#counters i {
    color: #fff;
    /* Icon color */
    margin-bottom: 15px;
}

#counters h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
}

#counters p {
    font-size: 1.1rem;
    margin-top: 5px;
    color: #e0e0e0;
    /* Light gray color for the paragraph */
}

#counters h2 {
    text-shadow: 2px 2px 4px rgb(241, 237, 237);
}


/* Start Testimonials Section */


/* Slider Section Styling */

.testimonials-slider {
    padding: 60px 30px;
    background: #f5f5f5;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
    max-width: 700px;
    margin: auto;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.slide img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #00aaff;
}

.slide h3 {
    margin: 10px 0 5px;
    font-size: 20px;
    color: #222;
}

.slide span {
    font-size: 14px;
    color: #777;
}

.slide p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}


/* End Testimonials Section */


/* Gallery Section Styling */

.gallery-section {
    padding: 60px 30px;
    background: #f8f9fa;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.gallery-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-box img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-box:hover img {
    transform: scale(1.1);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-box:hover .img-overlay {
    opacity: 1;
}

.img-overlay h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}


/* Start CTA section start*/

.cta-section {
    background: linear-gradient(to right, #00aaff, #0077cc);
    padding: 80px 20px;
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffff;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    background-color: #fff;
    color: #0077cc;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.cta-button:hover {
    background-color: #f2f2f2;
    color: #005fa3;
}


/* End CTA section start*/

.pro-footer {
    background: #1e1e1e;
    color: #fff;
    padding: 60px 20px 20px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.3);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-box {
    width: 100%;
    max-width: 260px;
    margin-bottom: 30px;
}

.footer-logo {
    width: 140px;
    margin-bottom: 15px;
}

.footer-box h3 {
    font-size: 20px;
    color: #00aaff;
    margin-bottom: 15px;
}

.footer-box p,
.footer-box li,
.footer-box a {
    font-size: 15px;
    color: #ccc;
    line-height: 1.8;
}

.footer-box a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-box a:hover {
    color: #00aaff;
}

.footer-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social a {
    font-size: 16px;
    color: #ccc;
    margin-right: 12px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2);
    color: #00aaff;
}

.subscribe form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe input[type="email"] {
    padding: 10px;
    border: none;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    background: #2a2a2a;
    color: #fff;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.subscribe button {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background-color: #00aaff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe button:hover {
    background-color: #007acc;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}


/* Responsive */

@media (max-width: 768px) {
    .footer-box {
        width: 100%;
        max-width: 100%;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}

#scrollBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 18px;
    display: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#scrollBtn:hover {
    background-color: #0056b3;
}


/*========= CTA POP UP CSS=========*/

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

.close-button {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* WhatsApp Button */

.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.whatsapp-icon {
    font-size: 24px;
    color: white;
}

.whatsapp-text {
    font-weight: 500;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}