/* Reset some default styles */
body, h1, h2, h3, p, ul, li, a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  color: #333;
}

a {
  color: #0056b3;
  text-decoration: none;
  /* text-align: start; */
}

/*Navigation Bar */
 .navbar1{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #0f9cdd;
  color: white;
  
}


.navbar1 nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
}
.fa-phone{
  color: rgb(95, 17, 17);
}
.navbar1 .logo a {
  font-size: 15px;
  font-weight: bold;
  color: white;
}
.navbar1 nav ul {
  list-style: none;
  display: flex;
  
}
.navbar1 nav ul li {
  margin-left: 20px;
}

.navbar1 nav ul li a {
  color: white;
  font-size: 12px;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px;
  color: black;
  border-bottom: 1px solid black;
  font-size: 24px;
  
}


.navbar .logo a {
  font-size: 24px;
  font-weight: bold;
  color: black;
}

.navbar nav ul {
  list-style: none;
  display: flex;

}

.navbar nav ul li {
  padding: 5px;
  /* position: fixed; */
}

.navbar nav ul li a {
  color: black;
  font-size: 16px;
}


/* Dropdown Links */
.dropdown-content li {
padding: 5px;
border-bottom: 1px solid #ddd;

} 
.dropdown-content li a {
color: #f1f1f1;
text-decoration: none;
display: block;
font-size: 14px;

}

/* css on second */




/* Dropdown Content Visible on Click */

.dropdown .dropdown-content {
display: none;
}
.dropdown:hover .dropdown-content{
display: block;
position: absolute;
}
.dropdown .dropdown-content .second-dropdown-content,.second-dropdown-content2{
display: none;
/* position: absolute; */
}


.second-dropdown-content-list .second-dropdown-content2{
display: none;

}
.second-dropdown-content-list:hover .second-dropdown-content2{
display: block;
flex-direction: column;
background-color: rgb(119, 190, 192,2);
border:1px solid rgb(250, 248, 248)  ;
border-radius: 5px;
/* z-index: 100000; */
text-align: center;
position: sticky;
width: 20vw;
align-items: center;
transition: all 0.5s ease-in;
}
.dropdown .dropdown-content .second-dropdown-content-list1:hover .second-dropdown-content{
display: block;
flex-direction: column;
background-color: rgb(119, 190, 192,2);
border:1px solid white  ;
border-radius: 5px;
/* z-index: 100000; */
text-align: center;
position: relative;
width: 20vw;
align-items: center;
transition: all 1s ease-in;

}
.dropdown .dropdown-content .second-dropdown-content,.second-dropdown-content2 li a{
text-align: center;
color: #f1f1f1;
width:100%;
font-size: 14px;
}

.dropdown:hover .dropdown-content {
/* display: ; */
position: absolute;
background-color:rgb(102, 166, 238);
border:1px solid white  ;
border-radius: 5px;
z-index: 100000;

}
.menu-btn {
display: none;
}


/* Alert Text */

.alert-text {
position: relative;
white-space: nowrap;
animation: slideFromRight 30s linear infinite;
}

/* Keyframes for sliding animation */
@keyframes slideFromRight {
0% {
  transform: translateX(100%);
}
100% {
  transform: translateX(-100%);
}
}


/* Carousel Container */
.carousel-container {
position: relative;
width: 100%;
height: 500px;
margin: 20px 10px;
overflow: hidden;
border-radius: 10px;
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Background Image */
/* .carousel-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('https://necu.ac.in/assets/images/slider-1.jpg') no-repeat center center;
background-size: cover;
filter: blur(8px); 
z-index: -1;
} */

/* Carousel Slides */
.carousel-slide {
display: none; /* Hidden by default */
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

.carousel-slide img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px;
}

/* Active slide */
.carousel-slide.active {
display: block;
}

/* Navigation Buttons */
.carousel-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 50%;
user-select: none;
font-size: 18px;
}

.carousel-button:hover {
background-color: rgba(0, 0, 0, 0.7);
}

.carousel-button.prev {
left: 20px;
}

.carousel-button.next {
right: 20px;
}


/* 6 card css */
/* Card Grid Container */
.card-grid {
display: grid;
grid-template-columns: repeat(3, auto);
gap: 20px;
padding: 20px;
max-width: 1200px;
margin: 50px auto;
}

/* Card */
.card {
position: relative;
overflow: hidden;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Card Content - Image */
.card-content {
position: relative;
}

.card-content img {
width: 100%;
height: auto;
display: block;
}

/* Overlay (Icon, Text, and Hover Gradient) */
.overlay {
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #fff;
font-size: 1.5rem;
background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
transition: left 0.5s ease;
}

/* Icon */
.icon {
font-size: 2rem;
margin-bottom: 10px;
width: 50px;
height: 50px;
}

/* Text */
.text {
font-size: 1rem;
font-weight: bold;
text-transform: uppercase;
}

/* Hover Effect */
.card:hover .overlay {
left: 0;
}

/* Hover Out Effect - Animate Back to Left */
.card-content {
position: relative;
overflow: hidden;
cursor: pointer;
}

.card-content:hover .overlay {
left: 0;
}

.card-content:hover .overlay {
left: 0;
}

.card:hover .overlay {
left: 0;
}
/* Hero Section */
.hero {
  background: url('https://example.com/hero-image.jpg') no-repeat center center/cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  background-color: #0056b3;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}

/* About, Courses, and Admission Sections */
/* About section  */
.about-container h1{
  font-size: 56px;
  color: #0f9cdd;
}
.about-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.about-container .about-image{
  width: 40vw;
  height:100%;
}
.about-container  .about-image img{
 width: 100%;
 height: 300px;
 border-radius:20px ;

}
.about-container .container {
  max-width: 50vw;
  /* margin: 0 auto; */
  padding: 40px 20px;
}
.checkmark-list{
list-style-type: none; /* Remove default bullets */
padding: 0;
margin: 20px;
}
.checkmark-list li {
  padding: 10px 0 10px 30px; /* Add padding to the left for checkmark */
  position: relative; /* Position relative for the pseudo-element */
  font-size: 18px;
  color: #333;
}
/* Checkmark Styling using ::before pseudo-element */
.checkmark-list li::before {
content: "\2713"; /* Unicode for the checkmark symbol (✓) */
color: rgb(40, 105, 185); /* Checkmark color */
font-size: 20px;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%); /* Center vertically */
}


h2 {
  margin-bottom: 20px;
  color: #1f3d7a;
}
 .container {
  max-width: 50vw;
  margin: 0 auto;
  padding: 40px 20px;
}

/* General Form Styling */
/* Form of admission */
/* Form Container */
.form-container {
  position: absolute;
  top: 11%;
  left: 35%;
  width: 20vw;
  background-color: #ffffff;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  z-index: 10000;
}

/* Responsive Styles */
@media (max-width: 760px) {
  .form-container {
    width: 60vw; /* Adjust width for tablets and smaller screens */
    left: 10%;  /* Center on screen */
    top: 5%; /* Adjust top margin */
  }
}

@media (max-width: 480px) {
  .form-container {
    width: 70vw; /* Adjust width for mobile phones */
    left: 5%;   /* Center on screen */
    top: 15%;    /* Adjust top margin */
  }
}

/* Close Button (Cross Icon) */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ff0000;
}

/* Form Styling */
.admission-form h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.form-group label {
  display: block;
  margin-bottom: 2px;
  margin-right: 5px;
  font-weight: bold;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #66afe9;
  box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
}

.send-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  background-color: #30a2ea;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.send-btn:hover {
  background-color: #1068ec;
}



/* Courses Grid */
.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.course-item {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.course-item h3 {
  margin-bottom: 10px;
  color: #333;
}



/* our Services */
.faculties {
  padding: 50px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.faculties h2 {
  font-size: 40px;
  margin-bottom: 40px;
  color: #42a8d4;
}

.faculty-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.faculty-card {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.faculty-card:hover {
  transform: translateY(-5px);
}

.faculty-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.faculty-info {
  position: relative;
  padding: 20px;
  background: linear-gradient(to right, transparent 50%, rgba(67, 180, 236, 0.8) 50%);
  color: #0a0a09;
  font-size: 18px;
  text-align: center;
  transition: background-position 0.5s ease;
  background-size: 200% 100%;
  background-position: left;
}

.faculty-card:hover .faculty-info {
  background-position: right;
}

/* Responsive Design for smaller screens */
@media (max-width: 1024px) {
  .faculty-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablets */
  }
}

@media (max-width: 768px) {
  .faculty-cards {
    grid-template-columns: 1fr; /* 1 card per row on smaller screens */
  }
  
  .faculties h2 {
    font-size: 30px; /* Adjust title font size for smaller screens */
  }
  
  .faculty-info {
    font-size: 16px; /* Adjust font size inside cards */
  }

  .faculty-image {
    height: 180px; /* Adjust image height for smaller screens */
  }
}

/* Ensuring all images are the same size */
.faculty-image {
  height: 200px; /* Fixed height for uniform images */
  object-fit: cover; /* Ensure images are cropped uniformly */
}



/* Footer */
/* Footer Styling */
.footer {
background: linear-gradient(0deg, hsl(204, 95%, 68%) 0%, rgb(21, 118, 230)100%) ;
color: white;
padding: 40px 20px;
}

.footer-content {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
max-width: 1200px;
margin: 0 auto;
}

.footer-column {
margin-bottom: 20px;
}

.footer-column h3 {
margin-bottom: 15px;
font-size: 18px;
font-weight: bold;
color: #f1f1f1;
border-bottom: 2px solid #ddd;
padding-bottom: 5px;
}

.footer-column p {
line-height: 1.6;
font-size: 14px;
}

.footer-column ul {
list-style: none;
padding: 0;
}

.footer-column li {
margin-bottom: 10px;
font-size: 14px;
cursor: pointer;
transition: color 0.3s ease;
}

.footer-column li:hover {
color: #ddd;
}


/* Testimonials Section */
.testimonials {
background-color: #f9f9f9;
padding: 60px 20px;
display: flex;
justify-content: center;
gap: 30px;
}

.testimonial {
background-color: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 30px 20px;
text-align: center;
width: 30%;
border-radius: 8px;
}

.user-icon {
font-size: 40px;
color: #555;
margin-bottom: 15px;
}

.testimonial-text {
font-size: 16px;
color: #333;
margin-bottom: 20px;
line-height: 1.6;
}

.user-name {
font-size: 14px;
color: #333;
font-weight: bold;
margin-top: 10px;
}



/* Gallery Title */

/* Gallery Title */
.gallery h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #0f9cdd;
}

/* Gallery Grid */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 images per row */
  gap: 25px;
  margin: 10px;
}

/* Gallery Images */
.gallery img {
  width: 100%; /* Full width of grid item */
  height: 250px; /* Fixed height */
  object-fit: cover; /* Maintain aspect ratio while filling */
  background-color: #f0f0f0; /* Placeholder for empty spaces */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */
}

/* Hover Effect */
.gallery img:hover {
  transform: scale(1.05); /* Zoom effect */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Responsive Design for smaller screens */
@media (max-width: 1024px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr); /* 2 images per row */
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr; /* 1 image per row */
  }
  
  .gallery h2 {
    font-size: 30px; /* Adjust title font size for smaller screens */
  }
}

/* Responsive for smaller screens */
@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr; /* 1 image per row */
  }
  
  .gallery h2 {
    font-size: 24px; /* Adjust title font size for mobile */
  }
  
  /* Adjust the size of the images */
  .gallery img {
    height: 200px; /* Reduced height for smaller screens */
  }
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  background-color: #f9f9f9;
}

.testimonial {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s;
}

.testimonial:hover {
  transform: scale(1.05);
}

.user-icon {
  font-size: 50px;
  color: #555;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 16px;
  color: #333;
  margin: 10px 0;
  line-height: 1.5;
}

.user-name {
  font-size: 14px;
  font-weight: bold;
  color: #777;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .testimonials {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  .testimonial {
    width: 90%;
  }
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
  .testimonial {
    width: 100%; /* Full width for smaller screens */
    margin-bottom: 15px; /* Reduce bottom margin */
  }
}





/* media query  */
@media screen and (max-width: 850px) {
#secondNavbar {
  display: none;
  flex-direction: column;
  position:fixed;
  top:20%;
  left:0%;
  width:100vw;
  height: 100vh;
  text-align:center;
 background-color:rgb(78, 142, 182);
 z-index: 1000;
}

.menu-btn {
  display: block;
  /* position: absolute;
  right: 20px;
  top: 20px; */
  /* background: none; */
  border: none;
  color:#c41829;
  font-size: 1.5rem;
  cursor: pointer;
}

.dropdown .dropdown-content.active {
  display: block;
  position: relative;
  background-color:cadetblue; 
}
.dropdown:hover .dropdown-content {
  /* display: ; */
  position: relative;
  background-color:rgb(59, 133, 212);
  border:1px solid white  ;
  border-radius: 5px;
  z-index: 100000;
  
}
.dropdown .dropdown-content .second-dropdown-content-list1:hover  .second-dropdown-content{
  width: 40vw;
  position:relative;
  left: 50%;
  top: 10%;
}
.second-dropdown-content-list:hover .second-dropdown-content2{
  width: 40vw;
  position:relative;
  left: 50%;
  top: 10%;
}
.about-container{
  flex-direction:column ;
}
.about-container .about-image{
  align-self: center;
}
.about-container .about-image img{
  width: 100%;
  height: auto;
 object-fit: cover;
}
.card-grid{
  grid-template-columns: repeat(2,auto);
}
.footer-content {
  grid-template-columns: repeat(1, 1fr);
  text-align: center;
}
}

