@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style-type: none;
}
:root{
    --primary-color: #000D83;
    --secondary-color: #0bb4FF;
    --primary-text-color: #04093185;
    --background-color: #E7EFFF;
    --sub_heading_font_size: 1.125rem;
    --heading_font_size: 2.5rem;

}
html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Open Sans', sans-serif;
    width: 100%; /* Full width of the viewport- For Responsive Design */
    overflow-x: hidden; /* Prevent horizontal scroll */
}
/* header section */
header{
    display: flex; /* same line */
    justify-content: space-between; /* space between items */
    align-items: center; /* center items vertically */
    font-size: 1em;
    color: var(--primary-text-color);
    padding: 15px;
    background-color: var(--background-color);
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 10; /* Ensure header is above other content */

}
header > * {
    max-width: 1440px; /* Limit width for larger screens */
    margin: 0 auto; /* Center content */
    padding: 10px; /* Add padding for spacing */

}
nav ul  {
    display: flex;
    gap: 20px; /* Space between menu items */
    list-style-type: none;

}
nav ul li {
    padding: 0 10px;
}
nav ul li a {
    color: var(--primary-color);
    text-decoration: none;

}
nav ul li a:hover,.menu-btn a:hover {
    color: var(--secondary-color);
}

.menu-btn a{
    padding: 0 10px;

}
.menu-btn .signup{
    margin-left: 10px;
    border: 1px solid var(--primary-color);
    padding: 5px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease,color 0.3s ease;
}
.menu-btn .signup:hover{
    background-color: var(--primary-color);
    color: var(--background-color);

}
/* hero section styling */
.hero-section{
    background-color: var(--background-color);
    padding: 15px;

}
.container{
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 100px 15px;
  }

  .hero-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    gap: 2rem;
}
.hero-image{
    width: 50%; /* Adjust width as needed */
}
.hero-image img{
    width: 100%;
}
.sub_heading{
    font-size: var(--sub_heading_font_size);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 16px;
}
.heading{
    font-size: var(--heading_font_size);
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 24px;    

}
.hero-text h1.heading,.school-section h2.heading{
    width: 60%;
}

p{
    font-size: 1rem;
    color: var(--primary-text-color);
    line-height: 1.7;
    font-weight: 400;

}
.hero-text p{
    width: 70%;
    margin-bottom: 20px; /* Space below the paragraph */
}
.btn-group{
    margin: 24px 0;
    display: inline-flex;
    align-items: center;
    gap: 2rem; /* Space between buttons */
}
.btn, .outline-btn{
    padding: 16px 38px;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;

}
.btn:hover,.outline-btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
    
}
.btn a {
    color: white;
}
.outline-btn a{
    color: var(--primary-color);
   
}
.outline-btn{
    background-color: transparent;
    
}
/* avater group */
.avater-stats{
    display: flex;
    gap: 1.25rem; /* Space between avatars */
    align-items: center; /* Center avatars vertically */
    margin-top: 20px;
    margin-bottom: 10px;
}
.avater-group{
    display: flex;
    align-items: center;
}
.avater{
    position: relative;
    margin-left: -15px; /* Overlap avatars */

}
.avater-image img{
    border: 2px solid #fff; /* White border around avatars */
    border-radius: 50%; /* Circular avatars */
    width: 48px; /* Fixed width for avatars */
    height: 48px; /* Fixed height for avatars */

}
.placeholder .avater-counter{
    width: 48px; /* Fixed width for avatars */
    height: 48px; /* Fixed height for avatars */
    background-color: black;
    border-radius: 50%; /* Circular placeholder */
    color: white;
    font-size: 0.875rem; /* Smaller font size for counter */
    font-weight: bold;
    display: flex;
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    position: relative;
    left: -20px; /* Adjust position to overlap with avatars */


}
/* about section styling */
.about-section{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem; /* Space between items */
    padding: 15px;

}
.about-image, .about-info{
    width: 50%;
}
.about-info h2.heading{
    width: 65%;
}

/* why us box */
.why-us{
    margin-top: 40px;
    display: flex;
    gap: 2rem;
    flex-direction: column;
    justify-content: space-between;
}

.why-us-box{
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 100%;
    max-width: 80%;
    cursor: pointer;
    transition: all 0.3s ease-in;
}

.why-us-box:hover{
    transform: scale(1.05);
}

.icon-text{
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 40px;
}

.icon{
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #EDFAFF;
    border-radius: 50%;
}

.icon img{
    width: 24px;
    height: 24px;
}

h3{
    font-size: 1rem;
    color: #333;
    line-height: 40px;
}

.arrow-icon{
    margin-left: auto;
}

/* school section */
.school-section{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem; /* Space between items */
    padding: 15px;

}
.school-section .text-content p{
    width: 65%;
}

/* studying section */
.class-content{
    text-align: center;
}
.classes-section h2.heading{
    width: 42%;
    margin: 0 auto; /* Center heading */
}

.class-cards{
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four equal columns */
    gap:2rem; /* Space between cards */
    justify-content: center; /* Center cards horizontally */

}
.class-card{
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    padding: 16px;
    text-align: center;
    transition: transform 0.3s ease; /* Smooth scaling effect */
    cursor: pointer;
}
.class-card:hover{
    transform: translateY(-10px); /* Slightly enlarge on hover */
}
.course-image{
    width: 100%;
    object-fit: cover; /* Cover the entire area */
    margin-bottom: 12px; /* Space below the image */
    
}
.course-title{
    font-size: 1.2rem;
    color: #040931;
    font-weight: 600;
    margin-bottom: 5px;
}
.student-count{
    color: #555;
    font-size: 0.875rem;
    margin-bottom: 10px; /* Space below the student count */
}
.star-rating{
    color: #FDC350;
    font-size: 12px;
    margin-bottom: 8px; /* Space below the star rating */
}
/* newsletter section */
.newslatter{
    position: relative;
    height: 450px; /* Fixed height for the newsletter section */
    background-image: url(../images/news-letter.png);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
   
}
.newslatter .overlay{
    background-color: #000D83d7;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
}
.newslatter .content{
    text-align: center;
    color: #fff;
        
}
.newslatter .content h2{
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px; /* Space below the heading */
   
}
.newslatter p{
    margin-bottom: 30px; /* Space below the paragraph */
    color: #fff;
    
}
.newslatter .btn{
    background-color: var(--secondary-color);
}
/* footer section */
footer{
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 15px;
    
}
.footer{
    max-width: 1440px; /* Limit width for larger screens */
    margin: 0 auto; /* Center content */
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Four equal columns */
    justify-content: center;
    padding: 50px 20px;
    gap: 2rem; /* Space between columns */


}
.footer-section{
    display: flex;
    flex-direction: column;
    
}
.footer-section h4{
    font-size: 1.25rem;
    margin-bottom: 15px; /* Space below the heading */
}
.footer-section p{
    margin:20px ;
}
.footer .logo img{
    max-width: 150px; /* Limit logo width */;
}
.footer .social-media a{
    color: var(--primary-text-color);
    margin-left: 15px; /* Space between social media icons */
    background-color: var(--secondary-color);
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 12px;
    transition: background-color 0.3s ease;
}
.footer .social-media a:hover{
    background-color: var(--primary-color);
    transform: translateY(-10px);
   
}
.footer ul{
    padding: 0;
}
.footer ul li{
    margin-bottom: 10px;

}
.footer ul li a{
    color: var(--primary-text-color);
    
    transition: color 0.3s ease;
}
.footer ul li a:hover{
    color: var(--secondary-color);
}
