*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(1,7,30,0.7), rgba(4,9,30,0.7)),url(images/banner.png) ;

    background-position: center;
    background-size: cover;
    position: relative;
}
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px; /* space between logo and search bar */
}

nav img {
    width: 110px;
    
}
.nav-links {
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px; 
    position: relative; 
    
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    
}
.nav-links ul li::after{ 
    content: '';
    width: 0%;  
    height: 2px;
    background: #99AFD7;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    
}
.text-box h1{
    font-size: 59px;
}
.text-box p{
    margin: 10px 0 40px;
font-size: 14px;
    color: #fff;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover {
    border: 1px solid #6888BE;
    background: #99AFD7;
    transition: 1s;
}

nav .fa{
    display: none;
}


    .nav-links ul{
        padding: 30px;
    }
}
.logo {
  width: 160px;   
  height: auto;   
}

.logos {
  width: 180px;   
  height: auto;   
}

/*----- course -----*/

.course{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;

}
h1{
font-size: 36px;
font-weight: 600;
}

h10{
font-size: 36px;
font-weight: 600;
color: #00254d;
}

h2{
font-size: 36px;
font-weight: 601;
color: #233C67;
}

p{
    color: #777;
    font-size: 14px;
    font-weight: 300; 
    line-height: 22px;
    padding: 10px;
}

.row{
    margin-top: 4%;
    display: flex;
    justify-content: space-between;
 flex-wrap: wrap;
}

.course-link{
  flex-basis: 31%;
  display: block;
  text-decoration: none;
  color: inherit;
}
    
.course-col{
    flex-basis: 31%;
    background: #F5FBFF;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px; 
    box-sizing: border-box;
    transition: 0.5s;

}
    
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
color: #233C67;
}

h4{
    text-align: left;
    font-weight: 600;
    margin: 10px 0;
}
.course-col:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}

}
.navlinks {
    flex: 1;
    text-align: right;
}
.navlinks ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px; 
    position: relative; 
    
}
.navlinks ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    
}
.navlinks ul li::after{ 
    content: '';
    width: 0%;  
    height: 2px;
    background: #99AFD7;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.navlinks ul li:hover::after{
    width: 100%;
}

/*------ testimonials ------*/

    .testimonials{
        width: 80%;
        margin: auto;
        padding-top: 100px;
        text-align: center;
    }
    .testimonial-col{
        flex-basis: 44%;
        border-radius: 10px;
        margin-bottom: 5%;
        text-align: left;
        background: #F5FBFF;
        padding: 25px;
        cursor: pointer;
        display: flex;
    }
    .testimonial-col img{
        height: 30px;
        margin-left: 5px;
        margin-right: 30px;
        border-radius: 50%;
    }
.testimonial-col p{
    padding: 0;
}
.testimonial-col h3{
    margin-top: 15px;
    text-align: left;
}
.testimonial-col .fa{
    color: #4A6378;
}
@media(max-width: 700px){
    .testimonial-col img{
        margin-left: 0px;
        margin-right: 15px;
    }
}

/*------Call to Action-----*/

.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(images/banner2.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.cta h1{
    color: #fff;
    margin-bottom:40px;
    padding: 0;
}

/*--------About Us Page-------*/
.sub-header {
  background: #fff;
  padding: 10px 15px 5px 15px;  /* reduce top padding */
  text-align: center;
  border-bottom: 2px solid #eee;
}

.sub-header h1 {
  margin-top: -45px;     
  margin-bottom: 25px; /* keep space before divider */
  font-size: 28px;
  font-weight: 600;
color: #001C57;
}

.sub-header p {
  font-size: 16px;   /* clean, body-like size */
  color: #666;
  margin: 0;
}



.about-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}

.about-col{
  flex-basis: 40%;
padding: 30px;
text-align: center;
}
.about-col img{
    width: 100%
}
.about-col h1{
    padding-top: 0;
}
.about-col p{
    padding: 15px 0 25px;
    
}
.blue-btn{
    border: 1px solid #9ECAE1;
    background: transparent;
    color: #9ECAE1;
}
.blue-btn:hover{
    color: #fff
}

}
.navlinks {
    flex: 1;
    text-align: right;
}
.navlinks ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px; 
    position: relative; 
    
}
.navlinks ul li a{
    color: #001540;
    text-decoration: none;
    font-size: 13px;
    
}
.navlinks ul li::after{ 
    content: '';
    width: 0%;  
    height: 2px;
    background: #99AFD7;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.navlinks ul li:hover::after{
    width: 100%;
}

/*---------Contact Page---------*/

.contact-us{
    width: 80%;
    margin: auto;
}
.contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
    margin-top: 20px;
}
.contact-col div{
    display: flex;
align-items: center;
    margin-bottom: 40px;
}
.contact-col div .fa{
    font-size: 28px;
    color: #2C497F;
    margin: 10px;
    margin-right: 30px;
}
.contact-col div p{
    padding: 0;
}
.contact-col div h5{
    font-size: 20px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
}
.contact-col input, .contact-col textarea{
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.fa-instagram {

font-size: 40px;
color: #001f3d;
}

.fa-envelope {
font-size: 32px;
color: #001f3d;
}

.fa-tiktok {
font-size: 30px;
color: #001f3d;
}

.icon {
  display: flex;
text-align: left;
  gap: 15px;             /* space between icon and text */
  margin-bottom: 20px;   
}

}
.navlinks {
    flex: 1;
    text-align: right;
}
.navlinks ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px; 
    position: relative; 
    
}
.navlinks ul li a{
    color: #001540;
    text-decoration: none;
    font-size: 13px;
    
}
.navlinks ul li::after{ 
    content: '';
    width: 0%;  
    height: 2px;
    background: #99AFD7;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.navlinks ul li:hover::after{
    width: 100%;
}

/*------------subject courses--------------*/

.subject-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.subject-card {
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  text-align: center;
}

.subject-card:hover {
  transform: translateY(-5px);
}

.subject-card a {
padding-top: 5px;
  text-decoration: none;
  color: #0c5d7d;
  font-weight: bold;
  font-size: 1.2rem;
  display: block;
}

@media (max-width: 600px) {
  .subjects-title {
    font-size: 1.5rem;
  }
  .subject-card a {
    font-size: 1rem;
  }
 
/*------------- Separate ----------*/
    
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px;
}

.course-card {
  display: block;             /* makes the <a> act like a card */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 25px;
  text-align: left;
  text-decoration: none;      /* remove link underline */
  color: inherit;             /* text uses normal color */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card img {
  width: 40px;
  margin-bottom: 15px;
}

.course-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.course-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}


/*-------- Search Bar -------------*/

.search-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
}

.search-btn {
  padding: 6px 14px;
  border: none;
  background: #02198B;
  color: white;
  border-radius: 20px;
  cursor: pointer;
}

.nav-right ul {
  display: flex;
  list-style: none;
  gap: 25px; /* spacing between links */
  margin: 0;
  padding: 0;
}


/*------- Sub header 2-------*/
.sub-header.small {
  background: #fff;       /* pure white background */
  text-align: center;
  padding: 10px 0;           /* very thin height */
  border-bottom: 1px solid #e0e0e0;
}

/*-------- About us ----------*/
.team-container {
  display: flex;
  flex-direction: column;  /* stack vertically */
  gap: 20px;               /* space between cards */
  max-width: 800px;        /* keep it centered and not too wide */
  margin: 0 auto;          /* center horizontally */
}

.team-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/*-----size------*/

@media (max-width: 1024px) {
  .text-box h1 { 
    font-size: 40px; 
  }
  nav img {
    width: 90px; 
  }
  .row { 
    flex-direction: row; 
    gap: 20px; 
  }
  .course-col { 
    flex-basis: 45%; 
  }
}

nav .fa {
  display: none;
}

/* Mobile Menu (≤700px) */
@media (max-width: 700px) {
  .text-box h1 {
    font-size: 20px;
  }

  .nav-links ul li {
    display: block;
    margin: 20px 0;
  }

  .nav-links {
    position: fixed;              /* keep fixed so it slides in */
    background: #f44336;
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;                /* hidden off screen */
    text-align: left;
    z-index: 2;
    transition: 0.5s;             /* smooth slide */
    padding-top: 60px;            /* space below close button */
  }

  nav .fa {
    display: block;
    color: #fff;
    margin: 10px;
    font-size: 22px;
    cursor: pointer;
  }

  .row {
    flex-direction: column;       
    align-items: center;          
  }

  .course-col {
    flex-basis: 90%;              
    max-width: 400px;             
    margin-bottom: 20px;
    text-align: center;           
  }

  .testimonials {
    width: 90%;
    padding-top: 50px;
  }

  .testimonial-col {
    flex-basis: 100%;   
    max-width: 500px;   
    margin: 0 auto 20px auto; 
    display: block;     
    text-align: center; 
  }

  .testimonial-col img {
    margin: 0 auto 15px auto;
    display: block;
  }

  .testimonial-col h3 {
    text-align: center;
  }
}

/* Desktop: show nav normally, hide hamburger */
@media (min-width: 769px) {
  .nav-links {
    display: block !important;
    position: static;
    background: none;
    height: auto;
    width: auto;
    text-align: right;
    padding-top: 0;
  }

  nav .fa {
    display: none;
  }
}

/* Phones (≤480px) */
@media (max-width: 480px) {
  .text-box h1 { font-size: 26px; }
  .text-box p { font-size: 12px; }
  .hero-btn { padding: 10px 20px; font-size: 12px; }
  .subject-card a { font-size: 0.9rem; }
  nav img { width: 70px; }
}


/*----- more ------*/
/* Mobile nav */
.navlinks {
  position: fixed;
  background: #f44336;
  height: 100vh;
  width: 200px;
  top: 0;
  right: -200px;
  text-align: left;
  z-index: 999;
  transition: 0.5s;
  padding-top: 60px;
}

.navlinks ul {
  list-style: none;
}

.navlinks ul li {
  margin: 20px 0;
display: block;
}

.navlinks ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.about-page nav .fa.fa-bars {
  color: #001C57;  /* dark blue instead of white */
}

.courses-page nav .fa.fa-bars {
  color: #001C57;  /* dark blue instead of white */
}

.contact-page nav .fa.fa-bars {
  color: #001C57;  /* dark blue instead of white */
}

    .math-course nav .fa.fa-bars {
 color: #001C57;  /* dark blue instead of white */
}

 .science-course nav .fa.fa-bars {
 color: #001C57;  /* dark blue instead of white */
}

 .history-course nav .fa.fa-bars {
 color: #001C57;  /* dark blue instead of white */
}

@media (max-width: 700px) {
  /* Center header elements */
  .sub-header {
    padding: 20px 10px;
    text-align: center;
  }

  .sub-header .logo {
    width: 140px;          /* bigger logo */
    display: block;
    margin: 0 auto 10px;   /* center horizontally with space */
  }

  .sub-header h1 {
    font-size: 28px;       /* slightly larger */
    margin: 10px 0 25px;   /* balanced spacing */
    color: #001C57;
  }

  /* Stack course cards vertically */
  .course-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .course-card {
    height: auto;
    padding: 25px;
    text-align: center;     /* center text for mobile */
  }

  .course-card h3 {
    font-size: 18px;
  }

  .course-card p {
    font-size: 14px;
  }
    }

.pull-tab {
  position: fixed;
  top: 50%;                     /* vertically centered */
  left: 0;                      /* stick to left edge */
  transform: translateY(-50%);
  width: 24px;                  /* slim rectangle */
  height: 60px;                 /* taller shape */
  background: #02198B;          /* dark blue color */
  border-radius: 0 10px 10px 0; /* rounded right edge only */
  cursor: pointer;
  z-index: 2500;
  display: none;  
  font-size: 14px;      /* size of text */
  font-weight: bold;
  display: flex;        /* center text */
  align-items: center; 

}

/* Show only on mobile */
@media (max-width: 700px) {
  .pull-tab {
    display: block;
  }
}


