/* General Reset and Base Styles */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f0f0f0;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga' 1;
  font-variant-ligatures: common-ligatures;
  word-break: break-word;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  appearance: none;
  border: none;
  outline: none;
  text-decoration: none;
  box-shadow: none;
  font-weight: normal;
  font-style: normal;
  text-transform: none;
  cursor: pointer;
  transition: all 0.3s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Top Header Section */
.top-header {
  background-color: #2196f3;
  color: white;
  padding: 20px 0;
}

.top-header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.logo-left img {
  height: 100px;
}

.college-info {
  text-align: center;
}

.college-info h1 {
  margin: 0;
  font-size: 36px;
  font-weight: bold;
}

.college-info p {
  margin: 5px 0;
  font-size: 20px;
  color: #000;
}

/* Main Navigation Menu */
.main-menu {
  background-color: yellow;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  font-weight: bold;
}

.main-menu li {
  position: relative;
  margin: 0 15px;
}

.main-menu a {
  color: black;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
}

.main-menu a:hover {
  background-color: #f1f1f1;
  border-radius: 5px;
}

/* Dropdown Menu Styles */
.dropdown-menu,
.dropdown-submenu {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%;
  left: 0;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 200px;
}

.dropdown-submenu {
  left: 100%;
  top: 0;
}

.dropdown-menu li:hover .dropdown-submenu {
  display: block;
}

/* Contact Section */
.contact-section {
  padding: 60px 20px;
  background-color: #f8f9fc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.contact-section .container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-section h1 {
  font-size: 2.5rem;
  color: #002244;
  text-align: center;
  margin-bottom: 20px;
}

.contact-section p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px;
}

.contact-section h2 {
  font-size: 1.5rem;
  color: #003366;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #007bff;
  display: inline-block;
  padding-bottom: 5px;
}

.contact-section a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.contact-section a:hover {
  text-decoration: underline;
}

.contact-section form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-section form input,
.contact-section form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.contact-section form input[type="submit"],
.submit-btn {
  background-color: #2196f3;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.contact-section form input[type="submit"]:hover,
.submit-btn:hover {
  background-color: #1976d2;
}

/* Footer Section */
.footer {
  background-color: #000;
  color: white;
  padding: 40px 20px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-around;
}

.footer-column h2 {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid white;
  padding-bottom: 5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin: 8px 0;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.social-media {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
  margin-top: 15px;
}

.social-media li a {
  color: white;
  font-size: 18px;
  text-decoration: none;
}

.footer2-bachor {
  background-color: #111;
  padding: 10px;
  text-align: center;
}

.footer2-content {
  color: white;
  margin: 0;
  font-size: 14px;
}
.footer2-content a {
  color: #2196f3;
  text-decoration: none;
}   
.footer2-content a:hover {
  text-decoration: underline;
}   
.footer2-content p {
  margin: 0;
}   


/* Responsive Styles */
@media only screen and (max-width: 768px) {
  .top-header-flex {
    flex-direction: column;
    align-items: center;
  }

  .logo-left img {
    height: 80px;
  }

  .main-menu {
    flex-direction: column;
    padding: 10px;
  }

  .main-menu li {
    margin: 5px 0;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    text-align: center;
  }

  .contact-section form {
    padding: 20px;
  }

  .contact-section form input,
  .contact-section form textarea {
    font-size: 14px;
  }

  .submit-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Container Widths */
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* Image Responsiveness */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Table Responsiveness */
.table-responsive {
  overflow-x: auto;
  overscroll-behavior: auto;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
  }

  .main-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 20px;
  }

  .main-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Lazy Loading */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Accessibility */
:focus {
  outline: 3px solid #2196f3;
  outline-offset: 2px;
}

@media (hover: none) {
  .clickable {
    min-height: 44px;
    min-width: 44px;
  }
}