/* Base */
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Noto Sans', sans-serif;
      background-color: #f0f8ff;
      color: #333;
      line-height: 1.6;
      padding-bottom: 70px;
    }

    /* Headings */
    h1, h2, h3, h4, h5, h6 {
      font-family: 'Montserrat', sans-serif;
      color: #696969;
      font-weight: 600;
    }

    /* Header & Footer Colors */
    header, footer, form button, #backToTop {
      background-color: #696969 !important;
      color: white;
    }

    header { padding: 20px 0; }
    footer { padding: 15px 0; position: relative; }

    /* Layout & Responsiveness */
    .header-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    header img { height: 70px; }
    header .header-text { text-align: right; font-size: 0.9rem; }

    /* Navbar links */
nav a.nav-link {
  color: crimson; /* default text color */
  transition: background-color 0.3s, color 0.3s;
}

/* Navbar link hover */
nav a.nav-link:hover {
  background-color: rgba(220, 20, 60, 0.1); /* light crimson background */
  color: crimson;
  border-radius: 4px;
}

/* Active / Focus / Selected links */
.nav-link.active,
.nav-link:focus,
.nav-link:active {
  color: crimson !important;
  font-weight: bold;
}

/* Dropdown items */
.navbar-nav .dropdown-item {
  color: crimson; /* default text color */
  transition: background-color 0.3s, color 0.3s;
}

/* Dropdown hover effect */
.navbar-nav .dropdown-item:hover {
  background-color: rgba(220, 20, 60, 0.1); /* light crimson background */
  color: crimson;
  border-radius: 4px;
}

/* Active / Focus / Selected dropdown items */
.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:focus,
.navbar-nav .dropdown-item:active {
  color: crimson !important;
  font-weight: bold;
}

/* Navbar toggler */
.navbar-toggler {
  border-color: #696969;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28105,105,105,0.7%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


    /* Banner */
    #banner img {
      width: 100%;
      max-height: 800px;
      object-fit: cover;
    }

    /* Sections */
    section { padding: 60px 0; }
    .gallery-images img {
      width: 100%;
      border-radius: 8px;
      margin-bottom: 15px;
    }

    /* Forms */
    form input, form textarea {
      border-radius: 5px;
    }
    form button:hover {
      background-color: #4f4f4f;
    }

    /* Back to top */
    #backToTop {
      display: none;
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 50px;
      height: 50px;
      border: none;
      border-radius: 50%;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      background-color: rgba(0,0,0,0.5);
      color: white;
      z-index: 9999;
    }
    #backToTop:hover {
      background-color: crimson;
    }

    /* Utility */
    .social-icons a {
      color: white;
      margin: 0 8px;
      font-size: 1.2rem;
      opacity: 0.8;
      transition: opacity 0.2s;
    }
    .social-icons a:hover {
      opacity: 1;
    }
    .text-crimson {
      color: #696969;
    }

    /* Dark link color in news section */
  #news-events .list-group-item a {
    color: #000000;
    text-decoration: none;
  }
  #news-events .list-group-item a:hover,
  #news-events .list-group-item a:focus {
    color: #000000;
    text-decoration: underline;
  }

  @media (max-width: 768px) {
  .header-text {
    text-align: center;
    margin-top: 15px;
    width: 100%;
  }
  header img {
    margin: 0 auto;
  }
}

#welcome p.lead {
  font-size: 1.1rem;
}
@media (max-width: 576px) {
  #welcome h2 {
    font-size: 1.4rem;
  }
  #welcome p.lead {
    font-size: 1rem;
    padding: 0 10px;
  }
}

.list-center {
  max-width: 800px;
  margin: 0 auto;
}
.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.justify-text {
  text-align: justify;
}
/* Justify all paragraph content */
p, li, .justify-text {
  text-align: justify;
}
footer .social-icons {
  text-align: center; 
}
.footer-center {
  text-align: center;
}

/* Faculty Style */
#faculty {
  margin: 20px auto;
  max-width: 1000px;
  font-family: Arial, sans-serif;
}

#faculty h3 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
}

.myTbl {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.myTbl thead {
  background-color: #34495e;
  color: #fff;
}

.myTbl th,
.myTbl td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: middle;
}

.myTbl tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.myTbl tbody tr:hover {
  background-color: #f1f1f1;
}

.myTbl img {
  border-radius: 4px;
  width: 80px;
  height: auto;
  object-fit: cover;
  border: 1px solid #ccc;
}

@media (max-width: 768px) {
  .myTbl th, .myTbl td {
    font-size: 14px;
    padding: 8px;
  }

  .myTbl img {
    width: 60px;
  }
}

/* Mandatory */
.text-crimson {
    color: crimson;
  }
  .doc-list li {
    margin-bottom: 5px;
    list-style: none;
  }
  .doc-list li a {
    color: #222;
    text-decoration: none;
  }
  .doc-list li a:hover {
    text-decoration: underline;
    color: crimson;
  }

  /* Placement Cell Page Styling */

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fdfdfd;
  border-radius: 8px;
  overflow: hidden;
}

table th, table td {
  border: 1px solid #ddd; 
  padding: 10px 12px;
  text-align: left;
  font-size: 0.95rem;
}

table th {
  background: #004080;
  color: #fff;
  font-weight: 600;
}

table tr:nth-child(even) {
  background: #f4f9ff;
}

/* Placement Coordinator Section */
table img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  margin-right: 1rem;
}

a {
  color: #004080;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Images Section */
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Footer Link */
.hover-crimson {
  color: white;            
  text-decoration: none;   
  transition: color 0.3s;   
}

.hover-crimson:hover {
  color: crimson;          
}

/* Social Icons */

  .social-icon {
    color: white;             
    font-size: 24px;          
    margin: 0 10px;           
    transition: color 0.3s;   
    text-decoration: none;    
  }

  .social-icon:hover {
    color: crimson;           
  }