* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;  /*Prevent both horizontal and vertical scrolling */
    font-family: Arial, sans-serif;
}

.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("Screenshot (30).png");
    background-position: center;
    background-size: cover;
    position: relative;
}

/* Applying the swing animation to the header text */
.swing {
    display: inline-block;
    animation: swing-animation 2s ease-in-out infinite;
    font-size: 24px; /* Adjust the font size */
    font-weight: bold; /* Make the text bold */
    color: #ffcc00; /* Change the text color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a shadow effect */
    margin-left: 10px; /* Add some space between the image and the text */
    text-transform: uppercase; /* Make the text uppercase */
}

@keyframes swing-animation {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

nav a img {
    height: 50px;
    width: 50px;
}

.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: #f44336;
    display: block;
    margin: auto;
    transition: 1s;
}

.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: 42px;
}

.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 #f44336;
    background: #f44336;
    transition: 1s;
}

nav img {
    height: 16px;
    display: none;
}

/* Mobile responsive styling */
@media(max-width: 700px) {
    .text-box h1 {
        font-size: 20px;
        color: aqua;
    }

    .nav-links ul li {
        display: block;
    }

    /* Mobile menu (hidden initially) */
    .nav-links {
        position: absolute;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px; /* Hidden off-screen initially */
        text-align: left;
        z-index: 2;
        transition: right 0.3s ease;
    }

    /* Show the menu when toggled */
    .nav-links.active {
        right: 0; /* Slide-in effect */
    }

    /* Show the hamburger menu icon on small screens */
    nav img {
        display: block;
        color: #fff;
        margin: 10px;
        cursor: pointer;
    }

    /* Style for the navigation list when mobile menu is open */
    .nav-links ul {
        padding: 30px;
    }
}

/*Styling of Course*/
.course{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h1{
    font-size: 36px;
    font-weight: 600;
}

p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.course-col{
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.course-col:hover{
    box-shadow: 0 0 20px 0px black;
}
@media(max-width: 700px){
    .row{
        flex-direction: column;
    }
}

/*campus*/
.campus{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
.campus-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.campus-col img{
    height: 300px;
    width: 100%;
    display: block;
}
.layer{
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer:hover{
    background: rgba(226,0,0,0.7);
}
.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}
.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}
/*facilities*/
.facilities{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
    background-color: #fff;
}
.facilities-col{
    flex-basis: 22%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.facilities-col img{
    height: 200%;
    width: 100%;
    display: block;
    border-radius: 20px;
    padding: 30px;
}
.facilities-col p{
    padding: 0;
}
.facilities-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: center;
}
    /*background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
 } */

.facilities-col img {
    width: 100%;
    border-radius: 8px;
    height: auto;
}

.facilities-col h3 {
    color: #2c3e50;
    margin: 15px 0 10px;
}

.facilities-col p {
    color: #555;
}

.facilities-col:hover {
    transform: scale(1.05);
}*/


/*testimonials*/
.testimonials{
    width: 80%;
    margin: auto;
    padding-top: 100px;
    text-align: center;
}
.testimonials-col{
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
}
.testimonials-col img{
    height: 100px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}
.testimonials-col p{
    padding: 0;
}
.testimonials-col h3{
    margin-top: 15px;
    text-align: left;
}
@media(max-width: 700px){
    .testimonial-col img{
        margin-left: 0px;
        margin-right: 15px;
    }
}
/*footer*/
.footer{
    width: 100%;
    text-align: center;
    padding: 30px 0;
    color: #0056b3;
}
.footer h4{
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}
.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Adjust the gap between icons if necessary */
}
.icon {
    width: 24px; /* Adjust the size of the icons */
    height: auto;
}
/*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(download.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    padding: 100px 0;
}
.cta h1{
    color: #fff;
    margin-bottom: 30px;
    padding: 30px;
}
@media(max-width: 700px){
    .cta h1{
        font-size: 24px;
    }
}
/*---------About us page-----*/
.sub-header{
    height: 60vh;
    width: 100%;
    /* background-image: url("Maai-Mahiu boys students.png"); */
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url("Screenshot (30).png");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    padding: 20px;
    text-align: center;
}
.row{
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    display: flex;
    margin: 20px;
}
.col-md-9{
    flex: 0 0 65%; /* 75% width for the main content */
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.col-md-3{
    flex: 0 0 35%; /* 25% width for the side content */
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: lefts;
}
.course-col{
margin-bottom: 20px;
padding: 10px;
background: #e8e8e8;
border-radius: 5px;
}
@media (max-width: 768px) {
.row {
    flex-direction: column;
}
.school-about-col-md-9, .school-about-col-md-3 {
    flex: 0 0 100%;
}

/* contact us page */
}
.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-bottom: 40px; 
}
.contact-col div .fa img{
    font-size: 28px;
    color: #f44336;
    margin: 10px;
    margin-right: 30px;

}
.red-btn{
    color: red;
    border-color: red;
}
.contact-col input, .contact-col textarea{
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.advertising{
color: red;
text-align: center;
}
.advertising-col{
    flex: 50%;
}
.header-header{
    min-height: 60vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url("Screenshot (30).png");
    background-position: center;
    background-size: cover;
    position: relative;
}
/* Styling of watsap icon */
.whatsapp-container {
    position: fixed;
    bottom: 40px;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    animation: bounce 2s infinite;
}

.whatsapp-float img {
    width: 100%;
    border-radius: 50%;
}

.whatsapp-text {
    margin-left: 10px;
    font-size: 16px;
    color: #25d366;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}
/* Chaplainancy */
.chapel,h1{
    text-align: center;
    color: aqua;
}
.chapel,p{
    text-align: center;
}
/* Styling of FAQ */

.containerfaq {
    width: 80%;
    margin: auto;
    padding: 20px;
    max-width: 800px;
  }
  .faq-title {
    text-align: center;
    margin-bottom: 20px;
    color: #0056b3;
  }
  .faq-item {
    background-color: #fff;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .faq-item:hover {
    background-color: #e8f4fd;
  }
  .faq-question {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
  }
  .faq-answer {
    display: none;
    margin-top: 10px;
    font-size: 16px;
  }
  @media (max-width: 768px) {
    .container {
      width: 100%;
      padding: 10px;
    }
  }
  