*{
    margin: 0;
    padding: 0;
}

img{
    max-width: 100%;
    height: auto;
}

/* Responsive navigation */
.nav-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links ul li a {
  padding: 0.5em 1em;
  display: block;
}

/* Responsive rows */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.course-col, .campus-col, .testimonials-col {
  flex: 1 1 300px;
  min-width: 250px;
  margin-bottom: 1.5rem;
}
/* Media queries for smaller screens */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .text-box h1 {
    font-size: 2rem;
  }
}
.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7))
    ,url(images/cover3.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}

nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 120px;
    align-items: flex-end;
}

.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::after{
    content: "";
    width: 0%;
    height: 2px;
    background-color: royalblue;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
 width: 100%

}

.nav-links ul li a{
    text-decoration: none;
    color: white;
    font-size: 13px;
    font-family: sans-serif;
}
.text-box{
    width: 90%;
    color: whitesmoke;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}
.text-box h1{
    font-size: 55px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 20px;
    color: white;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: beige;
    border: 1px solid white;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;   
}
.hero-btn:hover{
    border: 1px solid rgb(0, 153, 255);
    background: royalblue;
    transition: 1s;

}

/* .........course....... */

.course{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

h1{
    font-size: 36px;
    font-weight: 600;
}

p{
    color: #0b0a0a;
    font-size: 20px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;

}
p1{
   color: #ffff;
   font-size: 15px; 
   font-family: Arial, Helvetica, sans-serif;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
    padding: 5px;
}
.course-col{
    flex-basis: 30%;
    background: rgb(131, 134, 145);
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
    cursor: pointer;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

.course-col:hover{
    box-shadow: 0 0 20px 0px rgb(76, 0, 255);
}

/* ....................campus................. */

.campus{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 10px;
}
.campus-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;

}
.campus-col img{
    width: 100%;
    display: block;
}
.layer{
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    transition: 2.5s;
}

.layer:hover{
    background: rgb(159, 178, 238);

}
.layer h3{
    width: 100%;
    font-weight: 500;
    color: white;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
    font-family: Arial, Helvetica, sans-serif;
}

.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}

/* .............testimonials......... */

.testimonials{
    width: 80%;
    margin: auto;
    padding-top: 50px;
    text-align: center;
}

.testimonials-col{
    flex-basis: 46%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #6d1919;
    padding: 15px;
    cursor: pointer;
    display: flex;
}
.testimonials-col img{
    height: 100px;
    width: 100px;
    margin-left: 5px;
    margin-right: 10px;
    border-radius: 50%;
}
.testimonials-col p1{
    padding: 0;
    text-align: justify;
}
.testimonials-col h3{
    margin-top: 15px;
    text-align: left;
}

/* ................footer............... */

.footer{
    width: 100%;
    text-align: center;
    padding: 30px;

}
.footer h4{
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}

.icons .fa{
    color: red;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;

}

/* ..................... 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/cover.jpg);
    background-position: center;
    background-color: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}
.cta h1{
    color: white;
    margin-bottom: 40px;
    padding: 0;
}

/* .......................about us...................... */

.sub-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(images/banner.png);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}

.sub-header h1{
    margin-top: 100px;
}

.about-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;

}
.about-col{
    flex-basis: 48%;
    padding: 30px 2px;
}
.about-col img{
    width: 100%;
}
.about-col h1{
    padding: 0;
}
.about-col p{
    padding: 15px 0 25px;
}
.red-btn{
    border: 1px solid rgb(1, 7, 24);
    background: transparent;
    color: rgb(0, 0, 0);
    font-size: 17px;
}

/* ................... contact us................. */

.sub-header-z{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(images/IMG-20250524-WA0025.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}

.location{
    width: 80%;
    margin: auto;
    padding: 80px 0;
}

.location iframe{
    width: 100%;

}

.contact-us{
    width: 80%;
    margin: auto;
}

.contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
}

.contact-col div{
    display: flex;
    align-items: center;
    margin-top: 40px;
}

.contact-col div .fa{
    font-size: 28px;
    color: #f44366;
    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;
    outline: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Hamburger menu style */
.nav-links {
    position: fixed;
    right: -200px;
    top: 0;
    background: #fff;
    width: 200px;
    height: 100vh;
    box-shadow: 0 0 10px #ccc;
    transition: right 0.3s;
    z-index: 100;
}
.nav-links ul {
    flex-direction: column;
    padding: 2rem 1rem;
}

.fa-bars {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}
.fa-times {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    margin: 1rem 0 1rem 1rem;
}
@media (max-width: 768px) {
    .fa-bars {
        display: block;
    }
    .nav-links {
        display: block;
    }
}
