/* General Styles */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

/* Navigation Bar */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  padding: 20px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 65px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 30px;
  height: 4px;
  background-color: white;
  margin: 5px 0;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: lime;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: lime;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links li a:hover::after {
  width: 100%;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1e40af;
  list-style: none;
  padding: 15px 0;
  margin: 10px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.dropdown li a {
  color: white;
  padding: 10px 20px;
  display: block;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.dropdown li a:hover {
  color: lime;
}

.nav-links li:hover .dropdown {
  display: block;
}

.admission-btn {
  background-color: limegreen;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admission-btn:hover {
  background-color: black;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
  nav {
    justify-content: space-around;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 100;
    padding-bottom: 10px;
    margin-top: 20px;
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
  }

  .dropdown {
    position: static;
    width: 100%;
    transform: none;
  }

  .dropdown li {
    text-align: center;
  }

  .admission-btn {
    margin: 10px auto;
    width: 50%;
    font-size: 12px;
    margin-right: 42px;
  }
}

/* Navbar Ends Here */

/* Hero Section Styles */
.hero-section {
  position: relative;
  height: 300px; /* Adjust height as needed */
  background: url("/Course Box/image/college\ head.png") no-repeat center center;
  background-size: cover;
  background-position: 0 20%;
  /* background-position: center px; */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 50, 0.6)
  ); /* Gradient overlay for a professional look */
  z-index: -1;
}

.hero-section h1 {
  position: relative;
  z-index: 2;
  font-size: 36px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  background-color: blue;
  margin-top: 190px;
}

.hero-section p {
  position: relative;
  z-index: 2;
  font-size: 18px;
  margin-top: 10px;
}

.content {
  padding: 40px 10%;
  text-align: left;
}

.content h2 {
  font-size: 28px;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 20px;
}

.content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Course Cards Grid */
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Course Card Styles */
.course-card {
  position: relative;
  border-radius: 10px;
  border: 2px solid #ddd;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.course-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
  transition: filter 0.3s ease-in-out;
}

.course-card:hover img {
  filter: brightness(1);
}

/* Overlay Styling */
.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Darker overlay for better text contrast */
  color: white;
  width: 100%;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures content and button are spaced */
  align-items: center;
  box-sizing: border-box; /* Include padding in width/height calculations */
  height: auto; /* Let the height adjust dynamically */
  min-height: 150px; /* Consistent height across cards */
}

.overlay strong {
  font-size: 18px;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Read More Button */
.read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease-in-out;
  margin-top: auto; /* Push the button to the bottom */
}

.read-more:hover {
  background-color: #0056b3;
}

.content p{
  text-align: justify;
}
/* Responsive Design */
@media (max-width: 768px) {
  .hero-section div{
    padding-bottom: 30px;
  }
  .content {
    padding: 20px 5%;
  }
  .courses {
    grid-template-columns: 1fr; /* Single column layout for smaller screens */
  }

  .course-card {
    width: 100%; /* Full width on small screens */
  }

  .overlay strong {
    font-size: 16px;
  }

  .overlay p {
    font-size: 12px;
  }
}

.contact-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.contact-header {
  font-size: 2.5em;
  font-weight: bold;
  color: #004d40;
  margin-bottom: 40px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.touch-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  justify-items: center;
  align-items: center;
}

.touch {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  padding: 25px 20px;
  text-align: center;
  width: 100%;
  max-width: 450px;
  height: 230px; /* Reduced height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.touch:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.touch-icon img {
  width: 60px; /* Adjusted size for icons */
  height: 60px;
  margin-bottom: 15px;
}
#call-icon {
  height: 80px;
  width: 80px;
}
#working-hour {
  height: 80px;
  width: 80px;
  margin: 0;
}

#contact-number {
  display: flex;
}

#contact-number i {
  font-size: 2rem;
  margin-right: 10px;
  color: #1e40af;
}

#contact-number p {
  font-weight: 550;
}

.touch-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #00796b;
  margin-bottom: 10px;
}

.touch-content {
  font-size: 1em;
  color: #333;
  line-height: 1.6;
}

.contact-section h2 {
  margin-left: 120px;
}

@media screen and (max-width: 768px) {
  .touch-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 2vh;
  }

  .touch {
    height: 270px;
  }
  .contact-section h2 {
    margin-left: 10px;
    padding-top: 10px;
  }
  .contact-section p {
    text-align: justify;
  }
}

.cta-section {
  background: linear-gradient(
    135deg,
    #ff6f61,
    #ffcc80
  ); /* Gradient background */
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  margin: 30px 20px;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  background-color: #ffffff;
  color: #ff6f61;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  background-color: #ff7043;
  color: #ffffff;
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 2rem;
  }
  .cta-subtitle {
    font-size: 1rem;
  }
  .cta-button {
    font-size: 1rem;
    padding: 12px 20px;
  }
}



 /* Chat Button */
 .chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
}

.chat-button:hover {
  background-color: #0056b3;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  height: 450px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.chat-header {
  background-color: #007bff;
  color: #fff;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 16px;
}

.chat-close {
  cursor: pointer;
  font-size: 18px;
}

.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-family: Arial, sans-serif;
}

.chat-body p {
  margin: 5px 0;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.chat-input button {
  margin-left: 10px;
  padding: 8px 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #0056b3;
}

/* FAQ Suggestions */
.faq-suggestions {
  margin: 10px 0;
}

.faq-suggestions button {
  background-color: #e9ecef;
  color: #333;
  border: none;
  border-radius: 5px;
  padding: 8px 10px;
  margin: 5px 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
}

.faq-suggestions button:hover {
  background-color: #d6d8db;
}

/* footer */

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin: 10px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #00ccff;
}

.footer-column p,
.footer-column a {
  font-size: 14px;
  color: #aaa;
  line-height: 1.8;
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
}

.footer-column .contact-details {
  margin-bottom: 20px;
}

.footer-column .contact-details p {
  margin: 5px 0;
}

.footer-column .social-icons {
  display: flex;
  gap: 10px;
}

.footer-column .social-icons a {
  color: #fff;
  font-size: 16px;
  display: inline-block;
  text-decoration: none;
}
.footer-column .social-icons a i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-column .social-icons a:hover i {
  transform: scale(1.2); /* Zoom effect on hover */
  color: #0056b3; /* Darker hover color */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.contact-form input[type="submit"] {
  background-color: #00ccff;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.contact-form input[type="submit"]:hover {
  background-color: #008fbf;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    margin: 20px 0;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 12px;
  }

  .contact-form input[type="submit"] {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .footer {
    padding: 20px;
  }

  .footer-column h3 {
    font-size: 16px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 12px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 8px;
    font-size: 12px;
  }

  .contact-form input[type="submit"] {
    font-size: 14px;
  }
}
