* {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    
}
/*
/* Header Section */
.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(217, 216, 216, 0.8), rgba(217, 216, 216, 0.8)), url(images/tcampus.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}

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

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    background: transparent; /* Semi-transparent background */
   
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

nav img {
    width: 60px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 16px;
    position: relative;
    margin: 0 2px;
}

.nav-links ul li a {
    color: rgb(72, 71, 71);
    text-decoration: none;
    font-size: 18px;
}

.nav-links ul li::after {
    content: "";
    width: 0%;
    height: 2px;
    background: rgb(243, 179, 3);
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.text-box {
    width: 90%;
    color: #666;
    /*color: rgb(79, 77, 77);*/
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-size: 35px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 15px;
    color: #666;
   /*color: rgb(79, 77, 77);*/
    
   /* color:#fabc37;*/
    
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    /*color: rgb(79, 77, 77);*/
    color: #c0392b;/*font color*/
    border: 1px solid #ffc700;
    padding: 12px 34px;
    font-size: 16px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.hero-btn:hover {
    text-decoration: none;
    color: #3c3d37;
    border: 1px solid rgb(243, 179, 3);
    background: rgb(243, 179, 3);
    transition: 1s;
}


/* Dropdown Menu Styles for Navigation Bar */
.nav-links ul li.dropdown {
    position: relative;
}

.nav-links ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff; /* White background */
    min-width: 200px; /* Wider dropdown for better readability */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); /* Soft shadow */
    z-index: 1000; /* Ensure it appears above other elements */
    border-radius: 8px; /* Rounded corners */
    top: 100%; /* Position below the parent link */
    left: 0;
    padding: 10px 0; /* Add padding for spacing */
    border: 1px solid #e0e0e0; /* Light border */
}

.nav-links ul li.dropdown .dropdown-content a {
    color: #333333; /* Dark text color */
    padding: 12px 20px; /* Increased padding for better spacing */
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 14px; /* Slightly smaller font size */
    transition: all 0.3s ease; /* Smooth hover effect */
}

.nav-links ul li.dropdown .dropdown-content a:hover {
    background-color: #eeeeee; /* Light gray background on hover */
   /* background-color: #fde49c;*/
    color: #333333; /* Change text color on hover */
    padding-left: 25px; /* Slight indent on hover */
}

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


/* Hover effect for the parent link */
.nav-links ul li.dropdown > a:hover {
   background-color: #c0c0c0;/* Light gray background */
 
    border-radius: 4px; /* Rounded corners */
}

/* Slider Section */
.slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: 300px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Course Section */
.courses {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

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

p {
    color: #3C3D37;
    font-size: 15px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

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

.course-col {
    flex-basis: 31%;
    background: #FFB22C;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
}

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

.course-col:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
    .row {
        flex-direction: column;
    }
}

.faculty-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    margin: 20px 0;
    padding-top: 50px;
}

.faculty-card {
    width: 250px; /* Reduced width */
    height: 280px;
    perspective: 1000px; /* Adds 3D perspective */
    cursor: pointer;
    margin: 20px; /* Increased space around each card */
}

.faculty-card .front,
.faculty-card .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden; /* Hides the back side when rotated */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    align-items: center;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease;
    padding: 20px;
}

.faculty-card .front {
    background-color: #FFB22C;
    color: white;
    transform: rotateY(0deg);
}

.faculty-card .back {
    background-color: #ffffff;
    color: #333;
    transform: rotateY(180deg);
}

.faculty-card:hover .front {
    transform: rotateY(180deg);
}

.faculty-card:hover .back {
    transform: rotateY(360deg);
}
/* Heading */
.back .heading {
    background-color: #FFB22C; /* Mustard color */
    color: #333;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 15px; /* Space below the heading */
    text-align: center;
}

/* Course List */
.back .course-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.back .course-list li {
    background-color: white;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0; /* Light dividing line */
    text-align: left;
    text-decoration: none;
}

.back .course-list li:last-child {
    border-bottom: none; /* Remove divider for the last item */
}

/* Remove underline from links */
.back .course-list li a {
    text-decoration: none;
    color: inherit; /* Optional: ensures the link color matches the text */
}

/* Optional: Add hover effect for links */
.back .course-list li a:hover {
    color: #FFB22C; /* Change color on hover */
}


/* Campus Section */
.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 {
    width: 100%;
    display: block;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.layer:hover {
    background: rgba(245, 181, 39, 0.8);
}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/* Facilities Section */
.facilities {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.facilities-col {
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
}

.facilities-col img {
    width: 100%;
    border-radius: 10px;
}

.facilities-col p {
    padding: 0;
}

.facilities-col h3 {
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}

/* Testimonials Section */
.testimonials {
    width: 80%;
    margin: auto;
    padding-top: 50px;
    text-align: center;
    
}

.testimonial-col {
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    padding: 5px;
    background: #FFB22C;
    cursor: pointer;
    display: flex;
}

.testimonial-col img {
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}

.testimonial-col p {
    padding: 0;
}

.testimonial-col h3 {
    margin-top: 15px;
    text-align: left;
}

@media (max-width: 700px) {
    .testimonial-col img {
        margin-left: 0px;
        margin-right: 15px;
    }
}

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

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

@media (max-width: 700px) {
    .register h1 {
        font-size: 24px;
    }
}

/* Footer Section */
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background: #777;
}

.footer h4 {
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}

.footer .icons svg {
    margin: 0 10px;
    cursor: pointer;
    color: #ffb22c;
}

.footer p {
    margin-top: 20px;
    font-size: 14px;
    color: #f4f4f4;
}

/* Add this to your CSS file */
nav .bi-list {
    display: none;
}

.nav-links {
    transition: 0.5s;
}

@media(max-width: 700px) {
    .nav-links ul li {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        background: #f8f8f8;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 0.5s;
        padding-top: 30px;
    }
    
    nav .bi-list {
        display: block;
        color: #3C3D37;
        margin: 10px 15px;
        font-size: 22px;
        cursor: pointer;
    }
    
    .nav-links .bi-list {
        position: absolute;
        top: 20px;
        left: 20px;
        padding: 5px;
        margin-bottom: 30px;

    }
    
.nav-links ul {
    margin-top: 60px; /* Increase this value to add more space below the close icon */
}
    
    /* Adjust dropdown behavior for mobile */
    .nav-links ul li.dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        min-width: 100%;
        background-color: #eeeeee;
        display: none;
    }
    
    .nav-links ul li.dropdown:hover .dropdown-content {
        display: block;
    }
}