*{
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}
:root{
    --color-primary: #92afdc;
    --color-success: #00bf8e;
    --color-warning: #e6e93b;
    --color-danger: #bf001d;
    --color-danger-variant: #851729;
    --color-white: #fff;
    --color-light: rgba(255,255,255,0.7);
    --color-black: #000;
    --color-bg: #1f2641;
    --color-bg1: #2e3267;
    --color-bg2: #424890;
    --container-width-lg: 76%;
    --container-width-md: 90%;
    --container-width-sm: 94%;
    --transition: all 400ms ease;  
}
body{
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    color: var(--color-white);
    background-color: var(--color-bg);
}
.container{
    width: var(--container-width-lg);
    margin: 0 auto;
}
section{
    padding: 6rem 0;
}
section h2{
    text-align: center;
    margin-bottom: 4rem;
}
h1,h2,h3,h4,h5{
    line-height: 1.2;
}
h1{
   font-size: 2.4rem; 
}
h2{
    font-size: 2rem; 
 }
 h3{
    font-size: 1.6rem; 
 }
 h4{
    font-size: 1.3rem; 
 }
 a{
    color: var(--color-white);
 }
 img{
    width: 100%;
    display:block;
    object-fit: cover;
 }
.btn{
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    transition: var(--transition);
}
.btn:hover{
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-primary{
    background: var(--color-danger);
    color: var(--color-white);
}
nav{
    background: transparent;
    width: 100vw;
    height: 6rem;
    position: fixed;
    top: 0;
    z-index: 11;
}

.window-scroll{
    background: var(--color-primary);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.2);
}
.headline-bar {
    background-color: #1f2641;
    padding-bottom: 20px;
    text-align: center;
    margin-top: 0.25rem;
}

.headline-bar span {
    font-size: 20px;

}

@media (min-width: 576px) {
    .headline-bar span {
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .headline-bar span {
        font-size: 10px;
    }
}

@media (min-width: 992px) {
    .headline-bar span {
        font-size: 15px;
    }
}

@media (min-width: 1200px) {
    .headline-bar span {
        font-size: 20px;
    }
}

.nav_container{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
.heading{
    display: flex;
    align-items: center;
}
.heading img{
    width: 3rem;
    height: 3rem;
    border-radius: 50%;

}

.logo-link,
.name-link {
    text-decoration: none;
    color: inherit; /* Ensures link color inherits from parent */
}

.logo {
    width: 50px; /* Adjust as needed */
    height: auto; /* Ensures aspect ratio is maintained */
    margin-right: 10px; /* Adjust as needed for spacing */
}

.name {
    margin: 0; /* Removes default margin for h4 */
}
nav button{
    display: none;
}
.nav_menu{
    display: flex;
    align-items: center;
    gap: 4rem;
}
.nav_menu a{
    font-size: 0.9rem;
    transition: var(--transition);
}
.nav_menu a:hover{
    color: var(--color-bg2);
}
.profile-dropdown {
    position: relative;
    width: fit-content;
  }
  
  .profile-dropdown-list {
    position: absolute;
    top: 68px;
    width: 250px; /* Increased width */
    right: 0;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transform-origin: top right;
    transform: scaleY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .profile-dropdown-list.active {
    opacity: 1;
    transform: scaleY(1);
  }
  
  .profile-dropdown-btn {
    display: flex;
    align-items: center;
    width: 150px;
    justify-content: space-between;
    padding-right: 1rem;
    font-weight: 200;
    border: 1px solid #007bff;
    border-radius: 50px;
    cursor: pointer;
    transition: box-shadow 0.2s, background-color 0.2s;
  }
  
  .profile-dropdown-btn span {
    margin: 0 0.1rem;
    margin-right: 0;
  }
  
  .profile-dropdown-btn:hover {
    background-color: #4886c3;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  }
  
  .profile {
    position: relative;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .profile i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 5px;
    width: 5px;
  }
  .profile-dropdown-list-item a {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #001f54;
    padding-right: 2rem;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .profile-dropdown-list-item a i {
    margin-right: 2rem;
    
    font-size: 1.1rem;
    width: 2.3rem;
    height: 2.3rem;
    background-color: #112f4d;
    color: #f9f5f5;
    line-height: 2.3rem;
    text-align: center;
    border-radius: 50%;
  }
  
  .profile-dropdown-list-item {
    /* padding: 0rem 1rem 1rem 0rem; */
    transition: #fff 0.2s, padding-left 0.2s;
    font-family: Arial, sans-serif;
  }
  
  .profile-dropdown-list-item:hover {
    padding-left: 1.5rem;
    color: #0c073b;
    background-color: #a7c3ee;
    opacity: 0.7;
    transition: all 0.3s ease;
  }
  
 
  
  /* Animation for dropdown */
  @keyframes slideIn {
    from {
      transform: translateY(-10px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .profile-dropdown-list.active {
    animation: slideIn 0.3s ease forwards;
    animation-delay: 0.1s;
    opacity: 1;
  }

header{
  position: relative;
  top: 5rem;
  overflow: hidden; 
  height: 70vh;
  margin-bottom: 5rem; 
}
.header_container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    height: 100%;
}
.header_left h1{
    margin-bottom: 2rem;
}

.header_left p{
    margin: 1rem 0 2.4rem;

}
.header_left a{
    border-radius: 2rem;
    color: #000;
    background-color: #92afdc;
}
.categories{
    background: var(--color-bg1);
    padding: 4rem 0;
}
.categories h1{
    line-height: 1;
    margin-bottom: 3rem;
}
.categories_container{
    display: flex; /* Changed from grid to flex */
    justify-content: space-between;
    align-items: center;
}
.categories_left{
    max-width: 40%;
    margin-right: 2rem;
}
.categories_left p{
    margin: 1rem 0 3rem;
    
}
.categories_left a{
    border-radius: 2rem;
    color: #fff;
    background-color: #1f2641;
}
.categories_right{
    display: flex; /* Changed from grid to flex */
    gap: 1rem;
    overflow-x: auto;
}
.category{
    background: var(--color-bg2);
    padding: 2rem;
    border-radius: 2rem;
    transition: var(--transition);
    min-width: 200px; /* Adjusted minimum width */
    flex: 1;
}
.category p{
    font-size: 0.8rem;
}
.category:hover{
    box-shadow: 0 3rem 3rem rgba(0,0,0,0.3);
    transform: scale(1.1);
    z-index: 1;
}
.category_icon{
    background: var(--color-warning);
    padding: 0.7rem;
    border-radius: 0.9rem;
}
.category h5{
    margin: 2rem 0 1rem;
}
.category:nth-child(2) .category_icon{
    background: var(--color-danger);
}
.category:nth-child(3) .category_icon{
    background: var(--color-success);
}

.courses {
    margin-top: 2rem;
    padding: 4rem 0;
    background-color: transparent; /* Added background color */
}

.courses h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #fff; /* Adjusted text color */
}

.courses_container {
    display: flex;
    gap: 2rem;
    justify-content: center; /* Center align the items */
    overflow-x: auto;
}

.course {
    background: transparent;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    width: 600px; /* Set a fixed width */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Added box shadow */
}

.course:hover {
    transform: translateY(-5px); /* Add a slight lift on hover */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2); /* Enhanced box shadow */
}

.course_image img {
    max-width: 100%;
    height: auto; /* Ensure image aspect ratio is maintained */
}

.course_info {
    padding: 2rem;
}

.course_info h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #fff; /* Adjusted text color */
}

.course_info p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #fff; /* Adjusted text color */
    line-height: 1.6; /* Improved readability */
}
.faqs{
    background: var(--color-bg1);
    box-shadow: inset 0 0 3rem rgba(0,0,0,0.5);
}
.faqs_container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.faq{
   padding: 2rem; 
   display: flex;
   align-items: center;
   gap: 1.4rem;
   height: fit-content;
   background: var(--color-primary);
   cursor: pointer;
   border-radius: 2rem;
}
.faq h4{
    font-size: 1rem;
    line-height: 2.2;
}
.faq_icon{
    align-self: flex-start;
    font-size: 1.2rem;
}
.faq p{
    margin-top: 0.8rem;
    display: none;
}
.faq.open p{
    display: block;
}
.testimonials_container{
    overflow-x: hidden;
    position: relative;
    margin-bottom: 5rem;
}
.testimonial{
    padding-top: 2rem;
}
.avatar{
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 0.5rem solid var(--color-bg1);
}
.testimonial_info{
    text-align: center;
}
.testimonial_body{
    background: var(--color-primary);
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
    border-radius: 2rem;
}
.testimonial_body::before{
    content: "";
    display: block;
    background: linear-gradient(135deg, transparent, var(--color-primary),var(--color-primary));
    width: 3rem;
    height: 3rem;
    position: absolute;
    left: 50%;
    top: -1.5rem;
    transform:rotate(45deg);


}
footer{
    background: var(--color-bg1);
    padding-top: 5rem;
    font-size: 0.9rem;
}
.footer_container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
}
.footer_container > div h4{
    margin-bottom: 1.2rem;
}
.footer_1 p{
    margin: 1rem 0 2rem;
}
footer ul li{
    margin-bottom: 0.7rem;
}
footer ul li a:hover{
    text-decoration: underline;
}
.footer_socials{
    display: flex;
    font-size: 3rem;
    margin-top: 1.5rem;
}

.footer_copyright{
    text-align: center;
    margin-top: 4rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--color-bg2);

}
.whatsapp-icon {
    position: fixed;
    bottom: 20px; /* Adjust vertical position as needed */
    right: 20px; /* Adjust horizontal position as needed */
    z-index: 1000;
    width: 50px; /* Adjust icon container size */
    height: 50px;
    border-radius: 50%; /* Make the container circular */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(10, 250, 10); /* Ensure the icon appears on top of other content */
}

.whatsapp-icon svg{
    font-size: 40px !important;
    color: rgb(255, 255, 255); /* Set the icon color to green */
    line-height: 1 !important; /* Add padding for visual appearance */
}

@media screen and (max-width: 1024px){
    .container{
        width: var(--container-width-md); 

    }
    h1{
        font-size: 2.2rem;
    }
    h2{
        font-size: 1.7rem;
    }
    h3{
        font-size: 1.4rem;
    }
    h4{
        font-size: 1.2rem;
    }
    nav button{
        display: inline-block;
        background: transparent;
        font-size: 1.8rem;
        color: var(--color-white);
        cursor: pointer;
    }
    nav button#close-menu-btn{
        display: none;
    }
    .nav_menu{
        position: fixed;
        top: 5rem;
        right: 5%;
        height: fit-content;
        width: 18rem;
        flex-direction: column;
        gap: 0;
        display: none;
    }
    .nav_menu li{
        width: 100%;
        height: 2.5rem;
        animation: animateNavItems 400ms linear forwards ;
        transform-origin: top right;
    }
    .nav_menu li:nth-child(2){
        animation-delay: 200ms;
    }
    .nav_menu li:nth-child(3){
        animation-delay: 400ms;
    }
    .nav_menu li:nth-child(4){
        animation-delay: 600ms;
    }
    @keyframes animateNavItems {
        0%{
            transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
            opacity: 0;
        }
        100%{
            transform: rotateZ(0) rotateX(0) scale(1);
            opacity: 1;

        }
        
    }
    .nav_menu li a{
        background: var(--color-primary);
        box-shadow: -4rem 6rem 10rem rgba(0,0,0,0.6);
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
    }
    .nav_menu li a:hover{
        background: var(--color-bg2);
        color: var(--color-white);
    }
    header{
        height: 52vh;
        margin-bottom: 4rem;
    }
    .header_container{
        gap: 0;
        padding-bottom: 3rem;
    }
    .categories{
        height: auto;
    }
    .categories_container{
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .categories_left{
        margin-right: 0;
    }
    .courses{
        margin-top: 0;
    }
    .courses_container{
        grid-template-columns: 1fr 1fr;
    }
    .faqs_container{
        grid-template-columns: 1fr;
    }
    .faq{
        padding: 1.5rem;
    }
    .footer_container{
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (max-width: 600px){
.container{
    width: var(--container-width-sm);
}
.nav_menu{
    right: 3%;
}
header{
    height: 100vh;
}
.header_container{
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 0;
}
.header_left p{
    margin-bottom: 1.3rem;
}
.categories_right{
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}
.category{
    padding: 1rem;
    border-radius: 1rem;
}
.category_icon{
    margin-top: 4px;
    display: inline-block;
}
.courses_container{
    grid-template-columns: 1fr;
}
.testimonial_body{
    padding: 1.2rem;
    
}

.footer_container{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
}
.footer_1 p{
    margin: 1rem auto;
}


}
    

