/* ====================== */
/* MAIN WRAPPER CONTAINER */
/* ====================== */
.main-wrapper {
  width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ====================== */
/* GENERAL LAYOUT STYLES  */
/* ====================== */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  min-width: 1100px;
}

/* Main container for header elements */
.header-container {
  width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* ====================== */
/* HEADER STYLES          */
/* ====================== */
header.container {
  width: 1100px;
  margin: 20px auto;
  padding: 0;
  background-color: #f5f5f5;
  border-bottom: 2px solid #82BF86;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Optional: Make header full-width to match menu, carousel, and footer */
/*
header.container {
  width: 100%;
  margin: 20px 0;
  padding: 0;
  background-color: #f5f5f5;
  border-bottom: 2px solid #82BF86;
  border-radius: 0;
  box-shadow: none;
}
*/

.logo-container {
  width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 15px;
}

.logo-container img {
  width: auto;
  height: 100px;
  max-width: 200px;
  object-fit: contain;
  margin-right: 20px;
}

.institute-name {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.logo-container .text-muted {
  font-size: 16px;
  color: #666;
  margin: 5px 0 0;
}

/* ====================== */
/* BANNER STYLES          */
/* ====================== */
#baner {
  width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  max-height: 230px;
  background-color: #f8f8f8; /* Fallback background */
}

#baner img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  max-height: 230px; /* Explicitly cap height */
  object-fit: contain; /* Ensure image fits without distortion */
  display: block;
}

/* ====================== */
/* NAVIGATION CONTAINER   */
/* ====================== */
#bgnav {
  background: #6A9F6E;
  height: auto;
  width: 100%;
  padding: 5px 0;
  box-sizing: border-box;
  margin-bottom: 10px; /* Added margin to separate from ethics section */
}

#navigate {
  background: #6A9F6E;
  height: auto;
  width: 100%;
  margin: 0;
  border-radius: 0;
}

/* Center navigation content */
.nav-container {
  display: flex;
  align-items: center;
  width: 1100px;
  margin: 0 auto;
}

/* ====================== */
/* NAVIGATION BAR         */
/* ====================== */
.nav-container nav {
  width: 100%;
}

.nav-container nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: space-evenly;
}

.search-item,
.home-item {
  margin-right: 8px;
  padding: 2px 4px;
}

.search-item h1 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
}

.search-btn,
.home-btn {
  display: block;
  transition: transform 0.2s;
}

.search-btn:hover,
.home-btn:hover {
  transform: scale(1.05);
}

.nav-container nav > ul > li {
  position: relative;
}

.nav-container nav > ul > li > a {
  display: block;
  color: #fff;
  padding: 8px 10px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: normal;
  font-size: 14px;
  text-align: center;
  line-height: 1.3;
}

.nav-container nav > ul > li > a:hover {
  background-color: #82BF86;
  color: white;
}

/* ====================== */
/* DROPDOWN MENUS         */
/* ====================== */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f8f8f8;
  min-width: 220px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 5px 0;
  border: 1px solid #ddd;
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  color: #333;
  padding: 8px 15px;
  display: block;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
  line-height: 1.4;
}

.dropdown-menu li a:hover {
  background-color: #e0e0e0;
  color: #006600;
}

.dropdown-menu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 1px;
}

/* ====================== */
/* SIDEBAR AND NOTIFICATIONS LAYOUT */
/* ====================== */
.content-wrapper {
  width: 1100px;
  margin: 10px auto;
  display: flex;
  gap: 20px;
  box-sizing: border-box;
}

.sidebar-container {
  width: 240px;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  padding: 10px;
  min-height: 600px;
  flex-shrink: 0;
}

.sidebar-container h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 15px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: center;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 5px;
}

.sidebar-menu li a {
  color: #006600;
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 8px 10px;
  transition: all 0.2s;
}

.sidebar-menu li a:hover {
  background-color: #e0e0e0;
  color: #930;
}

.notifications-container {
  width: 790px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  max-height: 600px;
  overflow-y: auto;
  flex-grow: 1;
}

.notifications-container h2 {
  font-size: 20px;
  color: #333;
  margin: 0 0 15px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: center;
}

/* New Table Styles for Notifications */
.notifications-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.notifications-table th {
  padding: 10px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  color: #333;
  text-align: center;
}

.notifications-table td {
  padding: 10px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  color: #333;
  text-align: left;
}

.notifications-table th:first-child {
  text-align: center;
}

.notifications-table th {
  background-color: #f8f8f8;
  font-weight: bold;
  color: #006600;
}

.notifications-table td a {
  color: #006600;
  text-decoration: none;
  transition: all 0.2s;
}

.notifications-table td a:hover {
  color: #930;
  text-decoration: underline;
}

.notifications-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.notifications-table tr:hover {
  background-color: #e0e0e0;
}

/* ====================== */
/* CAROUSEL STYLES        */
/* ====================== */
.carousel-container {
  width: 100%;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background-color: #f8f8f8;
}

.carousel-wrapper {
  width: 1100px;
  margin: 0 auto;
  max-height: 200px;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-item {
  flex: 0 0 25%;
  width: 275px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-family: Arial, sans-serif;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 5px;
  transition: background-color 0.2s;
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* ====================== */
/* MAIN CONTENT AREA      */
/* ====================== */
#content {
  background-color: #FFF;
  height: auto;
  width: 900px;
  margin: 10px auto;
  padding: 0px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

#main {
  margin: auto;
  height: auto;
  width: 100%;
}

#message {
  margin: auto;
  height: 300px;
  width: 900px;
  background-repeat: no-repeat;
  background-position: center center;
}

/* ====================== */
/* MESSAGE CARD STYLES    */
/* ====================== */
.message-card {
  display: flex;
  width: 900px;
  height: 350px;
  margin: auto;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 15px;
  position: relative;
}

.message-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.1;
  z-index: 0;
}

.message-card > * {
  position: relative;
  z-index: 1;
}

.director-profile {
  flex: 0 0 165px;
  text-align: center;
  padding: 5px;
  border-right: 1px solid #eee;
}

.director-image {
  width: 143px;
  height: 163px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.director-info {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

.director-message {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.message-section {
  margin-bottom: 0px;
}

.message-section h2 {
  font-size: 22px;
  color: #333;
  margin: 0 0 5px;
  text-align: center;
}

.message-section h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 10px;
  text-align: center;
}

.message-section p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
}

.read-more {
  color: #006600;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.2s;
}

.read-more:hover {
  color: #930;
  text-decoration: underline;
}

.important-links {
  text-align: left;
  margin-top: 10px;
}

.phone-link {
  color: #333;
  font-size: 16px;
  font-style: italic;
  text-decoration: none;
  transition: color 0.2s;
}

.phone-link:hover {
  color: #006600;
  text-decoration: underline;
}

/* ====================== */
/* CONTACT CARD STYLES    */
/* ====================== */
.contact-card {
  width: 900px;
  margin: 20px auto;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-links-container {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.contact-info {
  flex: 1;
  order: 2;
}

.contact-details {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 72px;
  height: 60px;
  object-fit: contain;
}

.address {
  flex: 1;
}

.hindi-address,
.english-address,
.email {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 10px;
}

.hindi-address strong,
.english-address strong,
.email strong {
  color: #930;
}

.email a {
  color: #006600;
  text-decoration: none;
  font-size: 16px;
}

.email a:hover {
  color: #930;
  text-decoration: underline;
}

.map-link {
  display: inline-flex;
  align-items: center;
  color: #006600;
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
  font-size: 16px;
}

.map-icon {
  width: 25px;
  height: 25px;
  margin-right: 5px;
}

.map-link:hover {
  color: #930;
  text-decoration: underline;
}

.more-contacts {
  display: block;
  margin-top: 10px;
  color: #006600;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.more-contacts:hover {
  color: #930;
  text-decoration: underline;
}

.ministry-profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  margin-bottom: 0px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image-wrapper {
  width: 188px;
  height: 203px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.profile .profile-image {
  width: 157px;
  height: 169px;
  object-fit: cover;
  border-radius: 5px;
}

.profile .nadda-image {
  width: 188px;
  height: 203px;
}

.profile p {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  width: 100%;
}

.profile a {
  color: #006600;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.profile a:hover {
  color: #930;
  text-decoration: underline;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  text-align: center;
}

.link-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 5px;
}

.link-item .new-icon {
  width: 19px;
  height: 18px;
  vertical-align: middle;
}

.link-item p {
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  margin: 0;
}

.link-item a {
  text-decoration: none;
}

.link-item a:hover img {
  transform: scale(1.05);
  transition: transform 0.2s;
}

.additional-links {
  flex: 1;
  order: 1;
}

.additional-links p {
  font-size: 16px;
  margin: 5px 0;
  color: #333;
}

.additional-links a {
  color: #006600;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.additional-links a:hover {
  color: #930;
  text-decoration: underline;
}

.additional-links .new-icon {
  width: 19px;
  height: 18px;
  vertical-align: middle;
}

/* ====================== */
/* FOOTER STYLES          */
/* ====================== */
#foot {
  background: linear-gradient(to right, #6A9F6E, #82BF86);
  width: 100%;
  padding: 15px 0;
  color: white;
  text-align: center;
}

#footer {
  width: 1100px;
  margin: 0 auto;
  position: relative;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 10px;
  padding: 0 10px;
}

.footer-column {
  flex: 1;
  text-align: left;
}

.footer-column h5 {
  font-size: 16px;
  margin: 0 0 10px;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
}

.footer-column .contact-details {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-column .contact-icon {
  width: 50px;
  height: 40px;
  object-fit: contain;
}

.footer-column .address {
  flex: 1;
}

.footer-column .hindi-address,
.footer-column .english-address,
.footer-column .email {
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 5px;
}

.footer-column .hindi-address strong,
.footer-column .english-address strong,
.footer-column .email strong {
  color: #e0e0e0;
}

.footer-column .email a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-column .email a:hover {
  color: #e0e0e0;
  text-decoration: underline;
}

.footer-column .map-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  margin-top: 5px;
  font-size: 14px;
}

.footer-column .map-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.footer-column .map-link:hover {
  color: #e0e0e0;
  text-decoration: underline;
}

.footer-column .more-contacts {
  display: block;
  margin-top: 5px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.footer-column .more-contacts:hover {
  color: #e0e0e0;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 5px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #e0e0e0;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #6A9F6E;
  padding-top: 10px;
  padding: 0 10px;
}

.footer-bottom-left,
.footer-bottom-center,
.footer-bottom-right {
  flex: 1;
}

.footer-bottom-left p,
.footer-bottom-center p {
  font-size: 12px;
  margin: 0;
  color: #fff;
}

.footer-bottom-center {
  text-align: center;
}

.footer-bottom-right {
  text-align: right;
}

.footer-bottom-right a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  margin-left: 10px;
  transition: color 0.2s;
}

.footer-bottom-right a:hover {
  color: #e0e0e0;
  text-decoration: underline;
}

/* ====================== */
/* NEWS SECTION STYLES    */
/* ====================== */
.news-section {
  width: 900px;
  margin: 20px auto;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  padding: 20px;
}

.news-section h2 {
  font-size: 24px;
  color: #333;
  margin: 0 0 15px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.news-section details {
  margin-bottom: 10px;
}

.news-section summary {
  font-size: 18px;
  font-weight: bold;
  color: #006600;
  padding: 10px;
  cursor: pointer;
  background-color: #f8f8f8;
  border-radius: 5px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
}

.news-section summary:hover {
  background-color: #e0e0e0;
}

.news-section details[open] summary {
  background-color: #82BF86;
  color: #fff;
}

.news-section summary .new-icon {
  width: 35px;
  height: 35px;
  margin-right: 5px;
  vertical-align: middle;
  object-fit: contain;
}

.news-list {
  list-style-type: disc;   /* standard bullet */
  padding-left: 25px;
  margin: 0;
}

.news-list li {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
}


.news-list li a {
  color: #006600;
  text-decoration: none;
  font-weight: bold;
}

.news-list li a:hover {
  color: #930;
  text-decoration: underline;
}

.news-list li a.highlight {
  color: #FF0000;
}

.news-list li a.highlight:hover {
  color: #930;
}

.news-list .new-icon {
  width: 19px;
  height: 18px;
  vertical-align: middle;
  margin-right: 5px;
}

/* ====================== */
/* QUICK LINKS SECTION    */
/* ====================== */
.quick-links-section {
  width: 1100px;
  margin: 20px auto;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.quick-links-section h2 {
  font-size: 24px;
  color: #333;
  margin: 0 0 15px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  text-align: center;
}

.link-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.link-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.link-item a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.link-item img.link-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 8px;
  transition: transform 0.2s;
}

.link-item img.new-icon {
  width: 19px;
  height: 18px;
  vertical-align: middle;
  margin-left: 5px;
}

.link-item p {
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  margin: 0;
  font-family: Arial, sans-serif;
}

.link-item p span {
  font-size: 14px;
  color: #006600;
  font-weight: normal;
}

.link-item:hover img.link-icon {
  transform: scale(1.05);
}

/* ====================== */
/* TYPOGRAPHY STYLES      */
/* ====================== */
.alu {
  font-weight: bold;
}

/* ====================== */
/* LAYOUT FIXES FOR ALIGNMENT */
/* ====================== */
header.container,
.nav-container,
.carousel-wrapper,
#content,
#message,
.message-card,
.contact-card,
.news-section,
.quick-links-section,
.carousel-container,
#baner,
#footer {
  width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Ensure gallery section aligns too if using div instead of table */
.gallery-wrapper {
  width: 1100px;
  margin: 10px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.gallery-wrapper img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ====================== */
/* GALLERY STYLING        */
/* ====================== */
.gallery-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 1100px;
  margin: 10px auto;
  gap: 10px;
}

.gallery-wrapper img {
  object-fit: cover;
  border: none;
  max-width: 100%;
  height: auto;
}

/* ====================== */
/* SLIDESHOW STYLES       */
/* ====================== */
.slideshow-container {
  width: 1100px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  height: 300px; /* Fixed height for consistency */
  z-index: 5; /* Ensure slideshow is above other content */
}

.slideshow {
  display: flex;
  flex-wrap: nowrap;
  width: calc(100% * 15); /* 14 slides + 1 duplicate */
  height: 100%;
  animation: slide 56.3s infinite; /* 4s * 14 slides + 0.3s reset = 56.3s */
  will-change: transform; /* Optimize animation performance */
  transform: translateZ(0); /* Force hardware acceleration */
}

.slide {
  flex: 0 0 calc(100% / 15); /* Each slide takes 1/15 of the total width */
  height: 300px;
  position: relative;
}

.slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Ensures images fill the slide without distortion */
  display: block;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Keyframes for sliding animation (configured for 14 slides + 1 duplicate) */
/* Step size: 100% / 15 ≈ 6.67% */
/* Each slide: ~3s pause (5.33%), ~1s transition (1.78%), final reset: 0.3s (0.53%) */
@keyframes slide {
  0.00% { transform: translateX(0); } /* Slide 1 */
  5.33% { transform: translateX(0); animation-timing-function: ease-in-out; }
  7.11% { transform: translateX(-6.67%); } /* Slide 2 */
  12.44% { transform: translateX(-6.67%); animation-timing-function: ease-in-out; }
  14.22% { transform: translateX(-13.33%); } /* Slide 3 */
  19.55% { transform: translateX(-13.33%); animation-timing-function: ease-in-out; }
  21.33% { transform: translateX(-20.00%); } /* Slide 4 */
  26.66% { transform: translateX(-20.00%); animation-timing-function: ease-in-out; }
  28.44% { transform: translateX(-26.67%); } /* Slide 5 */
  33.77% { transform: translateX(-26.67%); animation-timing-function: ease-in-out; }
  35.55% { transform: translateX(-33.33%); } /* Slide 6 */
  40.88% { transform: translateX(-33.33%); animation-timing-function: ease-in-out; }
  42.66% { transform: translateX(-40.00%); } /* Slide 7 */
  47.99% { transform: translateX(-40.00%); animation-timing-function: ease-in-out; }
  49.77% { transform: translateX(-46.67%); } /* Slide 8 */
  55.10% { transform: translateX(-46.67%); animation-timing-function: ease-in-out; }
  56.88% { transform: translateX(-53.33%); } /* Slide 9 */
  62.21% { transform: translateX(-53.33%); animation-timing-function: ease-in-out; }
  64.00% { transform: translateX(-60.00%); } /* Slide 10 */
  69.33% { transform: translateX(-60.00%); animation-timing-function: ease-in-out; }
  71.11% { transform: translateX(-66.67%); } /* Slide 11 */
  76.44% { transform: translateX(-66.67%); animation-timing-function: ease-in-out; }
  78.22% { transform: translateX(-73.33%); } /* Slide 12 */
  83.55% { transform: translateX(-73.33%); animation-timing-function: ease-in-out; }
  85.33% { transform: translateX(-80.00%); } /* Slide 13 */
  90.66% { transform: translateX(-80.00%); animation-timing-function: ease-in-out; }
  92.44% { transform: translateX(-86.67%); } /* Slide 14 */
  97.77% { transform: translateX(-86.67%); animation-timing-function: ease-in-out; }
  99.47% { transform: translateX(-93.33%); } /* Slide 1 Duplicate */
  99.47% { transform: translateX(-93.33%); animation-timing-function: linear; }
  100.00% { transform: translateX(0); } /* Reset to Slide 1 */
}

/* Navigation dots */
.slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10; /* Ensure dots are above slides */
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #006600;
}

/* Animate dots to reflect slide changes (14 dots, ignoring duplicate slide) */
.dot:nth-child(1) { animation: dot1 56.3s infinite; }
.dot:nth-child(2) { animation: dot2 56.3s infinite; }
.dot:nth-child(3) { animation: dot3 56.3s infinite; }
.dot:nth-child(4) { animation: dot4 56.3s infinite; }
.dot:nth-child(5) { animation: dot5 56.3s infinite; }
.dot:nth-child(6) { animation: dot6 56.3s infinite; }
.dot:nth-child(7) { animation: dot7 56.3s infinite; }
.dot:nth-child(8) { animation: dot8 56.3s infinite; }
.dot:nth-child(9) { animation: dot9 56.3s infinite; }
.dot:nth-child(10) { animation: dot10 56.3s infinite; }
.dot:nth-child(11) { animation: dot11 56.3s infinite; }
.dot:nth-child(12) { animation: dot12 56.3s infinite; }
.dot:nth-child(13) { animation: dot13 56.3s infinite; }
.dot:nth-child(14) { animation: dot14 56.3s infinite; }

/* Keyframes for each dot's active state (matches slide timing) */
@keyframes dot1 {
  0.00% { background-color: #006600; }
  7.11% { background-color: #bbb; }
  99.47% { background-color: #bbb; }
  100.00% { background-color: #006600; }
}
@keyframes dot2 {
  0.00% { background-color: #bbb; }
  7.11% { background-color: #006600; }
  14.22% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot3 {
  0.00% { background-color: #bbb; }
  14.22% { background-color: #006600; }
  21.33% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot4 {
  0.00% { background-color: #bbb; }
  21.33% { background-color: #006600; }
  28.44% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot5 {
  0.00% { background-color: #bbb; }
  28.44% { background-color: #006600; }
  35.55% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot6 {
  0.00% { background-color: #bbb; }
  35.55% { background-color: #006600; }
  42.66% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot7 {
  0.00% { background-color: #bbb; }
  42.66% { background-color: #006600; }
  49.77% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot8 {
  0.00% { background-color: #bbb; }
  49.77% { background-color: #006600; }
  56.88% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot9 {
  0.00% { background-color: #bbb; }
  56.88% { background-color: #006600; }
  64.00% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot10 {
  0.00% { background-color: #bbb; }
  64.00% { background-color: #006600; }
  71.11% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot11 {
  0.00% { background-color: #bbb; }
  71.11% { background-color: #006600; }
  78.22% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot12 {
  0.00% { background-color: #bbb; }
  78.22% { background-color: #006600; }
  85.33% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot13 {
  0.00% { background-color: #bbb; }
  85.33% { background-color: #006600; }
  92.44% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}
@keyframes dot14 {
  0.00% { background-color: #bbb; }
  92.44% { background-color: #006600; }
  99.47% { background-color: #bbb; }
  100.00% { background-color: #bbb; }
}

/* Ensure slideshow is above sidebar and main content */
.content-wrapper {
  margin-top: 10px; /* Adjusted to ensure no overlap with slideshow */
}

/* ====================== */
/* ETHICS COMMITTEE SECTION */
/* ====================== */
.ethics-section {
  width: 100%;
  background-color: transparent; /* Removed background color */
  text-align: center;
  padding: 15px 0; /* Maintains space before and after text */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Keep shadow for subtle separation */
  box-sizing: border-box;
}

.ethics-section h2 {
  margin: 0;
  font-size: 18px; /* Increased font size for better visibility */
  font-weight: normal; /* Bolded the text */
  line-height: 1.3; /* Matches menu link line height */
  padding: 0 10px; /* Ensure text fits with space */
  color: #006600; /* Green font color matching active dots */
}

/* ====================== */
/* CONTENT AREA LAYOUT */
/* ====================== */
.content-area {
  width: 790px; /* Matches notifications-container width */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  flex-grow: 1;
  overflow-y: auto;
  max-height: 800px; /* Adjustable for long content */
}

.content-text {
  line-height: 1.6;
  font-family: Arial, sans-serif;
  color: #333;
}

.content-text h2 {
  font-size: 18px; /* Reduced from 20px */
  color: #006600; /* Green accent matching site theme */
  margin: 0 0 15px;
  font-weight: bold;
  text-align: left;
  border-bottom: 2px solid #82BF86; /* Subtle underline matching header */
  padding-bottom: 5px;
}

.content-text p {
  font-size: 15px; /* Reduced from 16px */
  text-align: justify;
  margin: 0 0 15px;
  line-height: 1.6;
}

.content-text ul {
  list-style-type: decimal;
  padding-left: 20px;
  margin: 0 0 15px;
}

.content-text li {
  margin-bottom: 10px;
  font-size: 15px; /* Reduced from 16px */
  line-height: 1.6;
}

.content-text li strong {
  color: #006600; /* Green for names */
  font-weight: bold;
}

.content-text em {
  color: #666;
  font-style: italic;
  font-size: 13px; /* Reduced from 14px */
}

.content-text strong {
  color: #006600;
  font-weight: bold;
}
.news-section details summary + .news-list {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ====================== */
/* RESPONSIVE ADJUSTMENTS */
/* ====================== */
@media (max-width: 1140px) {
  body {
    min-width: 100%;
  }

  .main-wrapper,
  .header-container,
  header.container,
  .nav-container,
  .carousel-wrapper,
  #content,
  #footer,
  .news-section,
  .message-card,
  .contact-card,
  .quick-links-section,
  .carousel-container,
  #baner,
  .content-wrapper,
  .slideshow-container,
  .content-area {
    width: 100%;
    max-width: 100%;
  }

  #baner img {
    max-width: 100%;
    max-height: 230px;
    object-fit: contain;
  }

  #message {
    width: 100%;
  }

  .logo-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-container img {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .institute-name {
    font-size: 20px;
  }

  .logo-container .text-muted {
    font-size: 14px;
  }

  .nav-container nav > ul {
    flex-wrap: wrap;
  }

  .message-card {
    height: auto;
    padding: 10px;
  }

  .contact-card {
    padding: 15px;
  }

  .quick-links {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }

  .carousel-item {
    width: 25%;
    height: 100px;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .sidebar-container {
    width: 100%;
    margin: 10px 0;
  }

  .notifications-container {
    width: 100%;
    max-height: 400px;
  }

  .notifications-table th,
  .notifications-table td {
    font-size: 13px;
    padding: 8px;
  }

  .slideshow-container {
    width: 100%;
    max-width: 100%;
    height: 250px; /* Slightly smaller height for smaller screens */
  }

  .slide {
    height: 250px;
  }

  .slide img {
    height: 250px !important;
  }

  .slideshow-dots {
    bottom: 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .content-area {
    width: 100%;
    padding: 15px;
    max-height: none; /* Allow full height on smaller screens */
  }

  .content-text h2 {
    font-size: 17px; /* Reduced from 18px */
  }

  .content-text p,
  .content-text li {
    font-size: 14px; /* Reduced from 15px */
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
  }

  .search-item,
  .home-item {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }

  .search-item h1 {
    font-size: 14px;
  }

  .nav-container nav > ul > li > a {
    font-size: 14px;
  }

  .dropdown-menu li a {
    font-size: 14px;
  }

  .message-card {
    flex-direction: column;
    height: auto;
  }

  .director-profile {
    flex: none;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .director-message {
    padding: 10px;
  }

  .message-section h2 {
    font-size: 20px;
  }

  .message-section h3 {
    font-size: 18px;
  }

  .message-section p {
    font-size: 14px;
  }

  .director-info,
  .read-more,
  .phone-link,
  .hindi-address,
  .english-address,
  .email,
  .email a,
  .map-link,
  .more-contacts,
  .profile p,
  .profile a,
  .link-item p,
  .additional-links p,
  .additional-links a {
    font-size: 14px;
  }

  .quick-links-section {
    padding: 15px;
  }

  .quick-links-section h2 {
    font-size: 20px;
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .link-item p {
    font-size: 14px;
  }

  .link-item p span {
    font-size: 12px;
  }

  .link-item img.link-icon {
    width: 80px;
    height: 80px;
  }

  .news-section {
    padding: 15px;
  }

  .news-section h2 {
    font-size: 20px;
  }

  .news-section summary {
    font-size: 16px;
    padding: 8px;
  }

  .news-list li {
    font-size: 14px;
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-links-container {
    flex-direction: column;
  }

  .contact-info,
  .additional-links {
    order: initial;
  }

  .footer-columns {
    flex-direction: column;
    gap: 15px;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column h5 {
    font-size: 16px;
  }

  .footer-column .contact-details {
    align-items: center;
  }

  .footer-column .contact-icon {
    margin-bottom: 10px;
  }

  .footer-column .hindi-address,
  .footer-column .english-address,
  .footer-column .email,
  .footer-column .email a,
  .footer-column .map-link,
  .footer-column .more-contacts {
    font-size: 14px;
  }

  .footer-links a,
  .footer-bottom-left p,
  .footer-bottom-center p,
  .footer-bottom-right a {
    font-size: 13px;
  }

  .carousel-item {
    width: 100%;
    height: 150px;
  }

  .carousel-caption {
    font-size: 14px;
    padding: 8px 15px;
  }

  .carousel-prev,
  .carousel-next {
    font-size: 16px;
    padding: 8px;
  }

  .notifications-container h2 {
    font-size: 18px;
  }

  .notifications-table th,
  .notifications-table td {
    font-size: 12px;
    padding: 6px;
  }

  header.container {
    padding: 10px;
  }

  .logo-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-container img {
    height: 80px;
    max-width: 150px;
    margin-bottom: 10px;
  }

  .institute-name {
    font-size: 18px;
  }

  .logo-container .text-muted {
    font-size: 12px;
  }

  .slideshow-container {
    height: 200px; /* Further reduced height for mobile */
  }

  .slide {
    height: 200px;
  }

  .slide img {
    height: 200px !important;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  .content-area {
    padding: 10px;
  }

  .content-text h2 {
    font-size: 15px; /* Reduced from 16px */
  }

  .content-text p,
  .content-text li {
    font-size: 13px; /* Reduced from 14px */
    line-height: 1.5;
  }

  .content-text ul {
    padding-left: 15px;
  }
}
/* ==========================================
   AUTHORITY PAGE STYLES
   ========================================== */

.authority-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.authority-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
}

.authority-card h2 {
    text-align: center;
    color: #006600;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* ==========================================
   DIRECTOR SECTION
   ========================================== */

.director-section {
    text-align: center;
    margin-bottom: 35px;
}

.director-member {
    display: inline-block;
    max-width: 320px;
}

.director-member h3 {
    margin: 8px 0 2px 0;
    color: #006600;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.director-member p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
}

/* ==========================================
   OTHER AUTHORITIES
   ========================================== */

.authority-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.authority-grid .authority-member {
    width: 220px;
    text-align: center;
}

.authority-grid .authority-member h4 {
    color: #006600;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 8px 0 2px 0;
}

.authority-grid .authority-member p {
    margin: 0;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media screen and (max-width: 768px) {

    .authority-grid {
        flex-direction: column;
        align-items: center;
    }

    .authority-grid .authority-member {
        width: 100%;
        max-width: 280px;
    }
}