/* 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;
    -webkit-font-feature-settings: 'liga' 1;
    -moz-font-feature-settings: 'liga' 1;
    -ms-font-feature-settings: 'liga' 1;
    -o-font-feature-settings: 'liga' 1;
    font-feature-settings: 'liga' 1;
    font-variant-ligatures: common-ligatures;
    word-break: break-word;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    word-wrap: break-word;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;  
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-appearance: none;
    -moz-appearance: 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;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Top Header Section */
.top-header {
  background-color: #2196f3; /* blue background */
  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: 4rem 2rem;
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-section h1 {
    font-size: 3rem;
    color: #1a237e;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
}

.contact-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1a237e, #3949ab);
    border-radius: 2px;
}

.contact-section p {
    font-size: 1.1rem;
    color: #424242;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.placement-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    list-style: none;
}

.placement-links li {
    perspective: 1000px;
}

.placement-links a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 2.5rem 2rem;
    background: white;
    color: #1a237e;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    min-height: 180px;
}

.placement-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 15px;
}

.placement-links a::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: relative;
    font-size: 2.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 2;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    order: -1; /* Move icon before text */
}

.placement-links a span {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    margin-top: 1rem;
}

.placement-links a:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.placement-links a:hover::before {
    opacity: 1;
}

.placement-links a:hover::after {
    opacity: 1;
    color: white;
    transform: scale(1.1);
}

.placement-links a:hover span {
    color: white;
    transform: translateY(2px);
}

/* Add icons to links */
.placement-links a::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.placement-links li:nth-child(1) a::after { content: "\f0f6"; } /* Bulletin */
.placement-links li:nth-child(2) a::after { content: "\f073"; } /* Schedule */
.placement-links li:nth-child(3) a::after { content: "\f091"; } /* Results */
.placement-links li:nth-child(4) a::after { content: "\f2b9"; } /* Contacts */

.placement-links a:hover::after {
    opacity: 1;
    color: white;
}

/* Animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-section h1 {
        font-size: 2.5rem;
    }

    .contact-section p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .placement-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 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;
  }
}       
/* Additional Styles for Contact Section */
.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"] {
  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 {
  background-color: #1976d2;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Make sure links have proper positioning for ripple */
.placement-links a {
    position: relative;
    overflow: hidden;
}

.ripple {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
}
  /* Responsive Design */
  /* 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;
     }
   }