* {
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  transition: .3s;
}
body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif; 
  color: #333;
}

img {
  max-width: 100%;
}
p {
  line-height: 1.5;
}



h2 {
  font-size: 30px;
  margin-top: 0;
}

/*--------------------HEADER--------------------*/

.logo {
  width: 200px; /* Increased from 150px */
  height: auto; /* Maintains aspect ratio */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 4%;
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 9999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


nav a {
  color: black;
  padding: 15px;
}

nav a:hover {
  background-color: #524bd2;
  color: white;
  border-radius: 5px;
}


.btn {
  background-color: #524bd2;
  color: #ffffff;
  padding: 11px 35px;
  border-radius: 5px;

}

.btn:hover {
  background-color: #413baf;
}
/*--------------------BUTTON--------------------*/

.btn1 {
  background-color: #524bd200;
  color: white;
  padding: 10px 17px;
  border-radius: 5px;
  border: 1px solid #ffffff;
  margin-left: 12px;
}

.btn1:hover {
  background-color: #524bd2;
  color: white;
  border: none;
}

/*--------------------HEADER--------------------*/

.title {
  text-align: center;
  padding: 15px;
}

section {
  padding-top: 34px;
  padding-bottom: 80px;
}
.row {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
}

.col {
  flex: 250px;
  padding: 15px;
  margin: 10px;
}

/*--------------------HERO--------------------*/

.hero {
  background-image: url(../images/Banner.webp);
  background-size: cover;
  background-position: center;
  min-height: 92vh;
  place-content: center;
  color: white;
  animation: bgup 3s;
}

@keyframes bgup {
  0% {
    background-position: top;
  }
  100% {
    background-position: center;
  }
}

.hero h1{
  font-size:120px;
  margin: 5px;
  line-height: 120px;
}

.hero p {
  line-height: 32px;
  font-size:29px;
  margin-top: 17px;
  margin-bottom: 33px;
  
}

.hero .col{
  text-align: center;
}

span1 {
  color: #948ff5;
}
span {
  color: #000000;
}


/*--------------------ABOUT--------------------*/
.custom-button {
  display: inline-block;
  margin-bottom: 1%;
  padding: 10px 28px;
  background-color: #e2e9fb; 
  color: #94a3ff;
  border-radius: 10px; 

  font-weight: 500;
  font-size: 17px;
}

.text-bold{
  font-size: 63px;
  line-height: 60px;
  margin: 10px;
  margin-left: 0px;
  text-transform: uppercase;
}

.aboutp{
  text-align: justify;
  text-align-last: left;
}

/* Container for the list */
.service-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

section#courses.courses {
  padding-bottom: 1px;
}

.service-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 17px; /* Adjusted to match your button font size */
  gap: 10px;      /* Slightly tighter gap for the smaller icon */
}

/* The Smaller Purple Circle */
.tick-circle {
  min-width: 18px;  /* Reduced from 26px */
  height: 18px;     /* Reduced from 26px */
  background-color: #524bd2; 
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

/* Adjusted White Tick Mark to fit the smaller circle */
.tick-circle::after {
  content: "";
  position: absolute;
  left: 6px;       /* Centering adjustment */
  top: 3px;        /* Centering adjustment */
  width: 4px;      /* Smaller width */
  height: 8px;     /* Smaller height */
  border: solid white;
  border-width: 0 2px 2px 0; /* Thinner border for a cleaner look */
  transform: rotate(45deg);
}

/*--------------------SCROLL--------------------*/

.scroll {
  padding: 60px;
}


.scroll {
    background-color: #524bd2;
    text-align: center;
}

.scroll img{
    opacity: 60%;
}

.scroll img:hover{
    opacity: 100%;
}

.scroll .row {
  flex-wrap: nowrap;
  overflow: hidden;
}
.scroll img {
  animation: scroll 15s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-600%);
  }
}


/*--------------------SERVICES--------------------*/

.service .row{
  text-align: center;
  padding-top: 30px;
}

.headline{
  font-size: 50px;
  margin-bottom: 20px;
}

.service h4{
    margin-bottom: -10px;
}

.service .col:hover{
    transform: scale(1.05);
}

.service .col {
  transition: 0.6s;
}

.service img{
    border-radius: 15%;
    border: solid 3px rgb(255, 255, 255);
    box-shadow:   0 6px 20px 0 rgba(0, 0, 0, 0.153);
}

.service img {
  width: 1000px;           /* Set a specific width (or height) */
  aspect-ratio: 1 / 1;    /* Forces the height to match the width */
  object-fit: cover;      /* Crucial: Prevents the image from looking "squashed" */
}

.service h3{
  color: #524bd2;
  font-size: 20px;
  margin-bottom: 5px;
}

.service p{
  margin-top: 5px;
}

/*--------------------COURSES--------------------*/


        /* Container for the boxes */
        .card-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* This centers the bottom 2 boxes */
        gap: 30px; 
        width: 100%;
        padding:  70px 10px  10px 40px; 
        max-width: 1200px; /* Constrained to keep the 3-column layout looking tight */
        margin: 0 auto;
        }   

        /* THE BOX (CARD) */
        .card {
        /* (100% / 3) = 33.33%. This forces 3 per row. */
        flex: 0 1 calc(33.333% - 30px); 
        min-width: 300px; /* Prevents them from getting too skinny on small screens */
        background-color: white;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid #e0e0e0;
        text-decoration: none;
        display: block;
        transition: transform 0.4s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }

        /* BOX HOVER */
        .card:hover {
            transform: translateY(-10px);
        }

        /* Image Wrapper */
        .image-container {
            width: 100%;
            height: 300px;
            overflow: hidden;
            position: relative;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
        }

        .image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
            display: block;
        }

        /* IMAGE HOVER ZOOM */
        .card:hover .image-container img {
            transform: scale(1.1);
        }

        /* Text Area */
        .text-content {
            padding: 25px;
            text-align: center;
        }

        .text-content h3 {
            margin: 0;
            color: #222;
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.3s ease;
        }

        /* TEXT HOVER COLOR */
        .card:hover .text-content h3 {
            color: #524bd2;
        }

        /* Mobile Adjustments */
        @media (max-width: 600px) {
            .card-container {
                /* Reduced side padding for small mobile screens but kept 20px for visible space */
                padding: 30px 20px;
            }
            .card {
                width: 100%;
                max-width: none;
            }
            .image-container {
                height: 220px;
            }
        }

/*---------COUNTER--------------------*/

.counter {
  background-color: #524bd2;
  padding: 20px 0;
}

.counter .row {
  text-align: center;
  margin-bottom: 1px;
}

.counter h2 {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 1px;
}

.counter p {
  font-size: 35px;
  color: #ffffff;
  margin-top: 1px;
  margin-bottom: 1px;
}

/*--------------------TESTIMONIALS--------------------*/

/* The main container for the testimonial */
.testimonial-box {
  position: relative;
  background-color: #fff;
  padding: 60px 30px 30px; 
  border: 6px solid #ece6ff;
  border-radius: 50px;
  text-align: center;
  
  /* --- NEW RULES TO FIX HEIGHT --- */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers the text vertically if there is extra space */
  height: 76%;           /* Forces the box to fill the column height */
  margin-top: 80px;       /* Keep your existing margin */
}

.testimonial-box{
  margin-top: 80px;
}

/* The circular profile image */
.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* Makes the image a perfect circle */
  border: 6px solid #ece6ff; /* Matches the border of the main box */
  object-fit: cover; /* Ensures the image doesn't stretch */

  /* Positioning the image at the top center */
  position: absolute;
  top: -40px; /* Moves it up by half its height to overlap the border */
  left: 50%;
  transform: translateX(-50%); /* Centers it horizontally */
}

/* Styles for the text content */
.content h3 {
  color: #524bd2; /* The dark blue/purple color for the name */
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.content .university {
  color: #666; /* Lighter color for the subtitle */
  font-size: 14px;
  margin: 5px 0 20px; /* Spacing below the subtitle */
}

.content blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  font-weight: 500;
}
   /* 2. GHOST PULSE ANIMATION */
        @keyframes ghost-pulse {
            0% {
                /* Start with a visible blue outline very close to the card */
                outline: 0px solid rgba(168, 200, 252, 0.5);
            }
            100% {
                /* Expand the outline outward and fade it to transparent */
                outline: 15px solid rgba(59, 130, 246, 0);
            }
        }

        .v-ghost-p:hover {
            border-color: #d9e2ff;
            /* Trigger the animation on hover */
            animation: ghost-pulse 1s ;
            /* Optional: slight lift to complement the pulse */
            transform: translateY(-2px);
        }

/*--------------------FORM--------------------*/

.form{
  background-color: #f1f4ff;
}

.form .row{
  align-items: center;
  }

.form p{
  font-weight: 400;
  font-size: 20px;
  text-align: justify;
  text-align-last: left;
}

/*--------------------CONTACT--------------------*/

.contact{
  color: white;
  background-color: #111827;
}

.contact a{
  color: white;
  display: block;
  padding-bottom: 10px;
}

/*--------------------FOOTER--------------------*/
footer  {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #1c273f;
    background-color: #111827;
    color: #e7e7e7;
}

/*--------------------UPARROW & WHAT'S APP--------------------*/

.uparrow {
    position: fixed;
    right: 30px;
    bottom: 30px;
    animation: shake 5s infinite;
}

@keyframes shake{
    0% {transform: translatey(0);}
    50% {transform: translatey(15px);}
    100% {transform: translatey(0);}
}
.whatsapp{
    position: fixed;
    left: 30px;
    bottom: 30px;
    animation: shake 5s infinite;
}

@keyframes shake{
    0% {transform: translatey(0);}
    50% {transform: translatey(15px);}
    100% {transform: translatey(0);}
}


/*--- media query for mobile---*/
@media screen and  (max-width: 500px) {



    .hero h1 {
    font-size:60px;
    margin: 5px;
    line-height: 60px;
    }

    .hero .col{
  text-align: left;
  }

    nav a{
        display: block;
        text-align: center;
    }

.text-bold{
  font-size: 50px;
  line-height: 50px;
  text-transform: uppercase;
}

    .about .row{
      flex-direction: column;
    }

}

/*--- media query for tab---*/
@media screen and (min-width: 501px) and (max-width: 950px) { 
    
    .logo{
        width: 130px;
    }

    .btn{
      font-size: 14px;
    }

    nav a{
        font-size: 15px;
        padding: 10px;
    }

    .hero .col{
      text-align: left;
    }

    .about .row{
      flex-direction: column;
    }
}

/* --- Desktop Adjustments --- */
.hamburger, .close-menu, .mobile-btn {
    display: none; /* Hide mobile elements on desktop */
}

/* --- Mobile Styling (Side Menu) --- */
@media screen and (max-width: 950px) {
    .desktop-btn {
        display: none;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        margin: 5px 0;
        transition: 0.3s;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 250px;
        height: 100vh;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        padding: 50px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 10000;
    }

    /* When menu is active */
    nav.active {
        right: 0;
    }

    nav a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .close-menu {
        display: block;
        font-size: 30px;
        position: absolute;
        top: 20px;
        right: 25px;
        cursor: pointer;
    }

    .mobile-btn {
        display: inline-block;
        margin-top: 20px;
        text-align: center;
    }
}

.black-footer {
    background-color: #181a22;
    color: #fff;
    padding: 4rem 1.5rem;
    margin-top: auto;
}

/* Inner Layout Container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Social Icon Row */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Social Icon Styling */
.social-circle {
    width: 4rem;
    height: 4rem;
    border: 1px solid #3f3f46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
    text-decoration: none;
}

/* Hover effects for icons: Using a scale and shadow for depth */
.social-circle:hover {
    background-color: #fff;
    color: #000000;
    border-color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}

/* Contact Details Styling */
.contact-info {
    color: #71717a;
    font-size: 0.875rem;
    text-align: center;
}

.text-muted {
    color: #a1a1aa;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Enhanced Contact Links */
.contact-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.contact-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.divider {
    margin: 0 0.75rem;
    opacity: 0.3;
}

/* Copyright Bar Styling */
.copyright-bar {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #18181b;
    width: 100%;
    max-width: 600px;
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #52525b;
}

/* Responsive adjust for mobile */
@media (max-width: 640px) {
    .social-circle {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }
    .social-links {
        gap: 1rem;
    }
    .contact-info p {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .divider {
        display: none;
    }
}