* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", serif;
}

/* THE FIRST SECTION */

.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(30, 4, 16, 0.7)), url(background.png);
    background-position: center;
    background-size: cover;
    position: relative;
}

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

.img {
    width: 200px;
}


/* this is for right part of navbar */
.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 {
    text-decoration: none;
    font-size: 25px;
    color: rgb(213, 129, 135);
}

/* ...........transition for left part.......... */
.nav-links ul li::after {
    content: '';
    width: 0;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}


/* this is for center content */

.text-box {
    width: 90%;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
}

.text-box h1 {
    font-size: 62px;
}

.text-box h3 {
    margin: 2px 0px 30px;
    font-size: 20px;
    color: white;
}

.hero-btn {
    display: inline-block;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 12px 34px;
    font-size: 14px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.hero-btn:hover {
    border: 1px solid #ee7971;
    background: #ee7971;
    transition: 2s;
}

nav .imgg {
    width: 30px;
    display: none;
}


@media(max-width:700px) {
    .text-box h1 {
        font-size: 28px;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: fixed;
        background: #c23d349b;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    nav .imgg {
        display: block;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
        color: rgb(149, 54, 54);
    }

    .nav-links ul {
        padding: 20px;
    }
}

/* ABOUT SECTION */
.about {
    background-color: white;
    /* Dark background */
    padding: 50px 20px;
}

.about-container {
    display: flex;
    /* Horizontal alignment */
    justify-content: space-between;
    /* Creates space between image and text */
    align-items: center;
    /* Centers both vertically */
    gap: 10px;
    /* Space between the image and text */
    max-width: 1200px;
    /* Constrains the layout width */
    margin: 0 auto;
    /* Centers the content */
}

/* IMAGE STYLING */
.about-image {
    flex: 1.5;
    /* Image takes equal space */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    /* Rounded corners */
    overflow: hidden;
    /* Ensures rounded corners take effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Adds shadow */
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Ensures the image fills the container properly */
    border-radius: 15px;
    /* Applies rounded corners to the image */
}

/* TEXT STYLING */
.about-text {
    flex: 1;
    /* Text takes equal space */
    color: rgb(160, 53, 53);
    /* White text for contrast */
    text-align: left;
    /* Aligns text to the left */
}

.about-text h1 {
    font-size: 36px;
    margin-bottom: 10px;
    transition: color 0.5s ease, transform 0.5s ease-out;
}

.about-text .divider {
    width: 50px;
    height: 3px;
    background-color: #f0ad4e;
    /* Accent color */
    margin: 10px 0;
    border: none;
}

.about-text p {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.6;
    color: #e88686;
}

.about-text h1:hover {
    color: #b2cfcb;
    /* Change to desired color on hover */
    transform: scaleY(1.2);
    /* Slight zoom effect */
}

/* RESPONSIVENESS */
@media (max-width: 700px) {
    .about-container {
        flex-direction: column;
        /* Stacks the image and text vertically */
        text-align: center;
        /* Centers the text */
    }

    .about-text {
        margin-top: 20px;
        
    }
    .about-text p{
        font-size: 20px;
    }
}

.course {
    /* text ko center me laane ke liyee */
    width: 80%;
    background-size: cover;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

h1 {
    font-size: 36px;
    font-weight: 600;
}

p {
    color: black;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.small {
    max-width: 250px;
    margin: auto;
    text-align: center;
    border-width: px;
    border-color: #744643;
}

.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}

.pic {
    height: 200px;
}

.course-col {
    flex-basis: 31%;
    background: #eeacac;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
}

h2 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

.course-col:hover {
    box-shadow: 0 0 20px 10px rgba(117, 60, 60, 0.914);
    transition: 0.6s ease-out;
}

@media(max-width:700px) {
    .row {
        flex-direction: column;
    }
}

/*----- TESTIMONIALS -----*/
.testimonials {
    width: 80%;
    margin: auto;
    padding: 50px 0;
    text-align: center;
    border-radius: 10px;

}

.testimonials h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

.row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.testimonials-col {
    flex-basis: 44%;
    border-radius: 10px;
    background: #fff3f3;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 3px solid rgb(255, 213, 213);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonials-col:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-test {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffcccc;
}

.testimonial-content {
    text-align: left;
}

.testimonial-content p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.testimonial-content h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 5px;
}

.stars {
    display: flex;
    gap: 5px;
}

.star {
    width: 20px;
    height: 20px;
}
@media(max-width:700px){

    .image-test {
        margin-left: 0px;
        margin-right: 15px;
    }
}

/*  */
.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(banner2.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}
.cta h1{
    color: white;
    margin-bottom: 40px;
    padding: 0;
}
@media(max-width:700px){
    .cta h1{
        font-size: 24px;
    }
}

/* Contact Section */
.contact {
        padding: 50px 20px;
        background-color: #fffefe61; /* Light gray background */
        border-radius: 20px;
        width: 70%; /* Limit width to 90% of the viewport */
        margin: 0 auto; /* Center horizontally */
}
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    /* Centers content */
}

.map {
    flex: 1;
    /* Map takes half the space */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form {
    flex: 1;
    /* Form takes half the space */
    background-color: rgb(247, 185, 185);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    padding: 10px;
    background-color: #d46056;
    color: rgb(20, 14, 14);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #ff3c2f;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .map, .contact-form {
        flex: 1;
        margin-bottom: 20px;
    }
}


/* FOOTER SECTION */
.footer{
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #f1b8b8;
}
.footer h4{
    margin-bottom: 8px;
    margin-top: 8px;
    font-weight: 600;
}
.footer-img{
    width: 30px;
    cursor: pointer;
    margin: 0 13px;
    padding: 10px 0;
}

/* ABOUT US PAGE FOR about.html */
.sub-header{
    height: 40vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(tech.jpg);
    background-position: cener;
    background-size: cover;
    text-align: center;
    color: white;
}
.sub-header h1{
    margin-top: 100px;
}
.red-btn{
    border: 1px solid #f44336;
    background: transparent;
    color: #f44336;
}
.red-btn:hover{
    color: white;
}

/* COURSES SECTION FOR course.html */
.sub-header2{
    height: 40vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(course.avif);
    background-size:cover;
    text-align: center;
    color: white;
}
.sub-header2 h1{
    margin-top: 100px;
}

/* TESTIMONIAL SECTION FOR testimonial.html */
.sub-header3{
    height: 40vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(test.jpg);
    background-size:cover;
    text-align: center;
    color: white;
}
.sub-header3 h1{
    margin-top: 100px;
}

/* CONTACT SECTION FOR contact.html----FEW changes */
.sub-header4{
    height: 40vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(contact.jpg);
    background-size:cover;
    text-align: center;
    color: white;
}
.sub-header4 h1{
    margin-top: 100px;
}
.location{
    width: 100%;
    margin: auto;
    padding: 20px 0;
}
.location iframe{
    width: 100%;
}
.contact-image{
    width: 25px;
    margin: 10px;
    margin-right: 30px;
}
.contact-us{
    width: 80%;
    margin: auto;
}
.contact-col{
    flex-basis: 48%;
    margin-bottom: 40px;
}
.contact-col div{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.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;
}
