html {
  font-size: 100%;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
}

nav {
  background: #1b4b72;
}

nav .navbar {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
}

nav .navbar li {
  float: left;
  position: relative;
}

nav .navbar li a {
  display: block;
  color: #fff;
  padding: 12px 18px;
  text-decoration: none;
}

nav .navbar li:hover {
  background: #23568c;
}

nav .dropdown-content {
  display: none;
  position: absolute;
  background: #1b4b72;
  min-width: 160px;
}

nav .dropdown-content li a {
  padding: 10px;
}

nav .dropdown:hover .dropdown-content {
  display: block;
}

.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.section {
  padding: 20px;
  background: #fff;
  margin: 20px;
}

.noticeboard ul,
.quick-links .links {
  list-style: none;
  padding: 0;
}

footer {
  text-align: center;
  padding: 12px;
  background: #13518b;
  color: #ccc;
}


/* ===== HEADER ===== */
.top-header {
  background: #0a4275;
  padding: 15px 10px;
  border-bottom: 4px solid #f1c40f;
}

.header-container {
  margin: auto;
  display: flex;
  align-items: center;
}

.header-logo img {
  width: 120px;
  height: auto;
}

.header-text {
  margin-left: 20px;
  color: #ffffff;
}

.header-text h1 {
  font-size: 26px;
  margin: 0;
  font-weight: bold;
}

.header-text h2 {
  font-size: 18px;
  margin: 4px 0;
  font-weight: normal;
}

.header-text p {
  font-size: 15px;
  margin: 0;
  color: #f1f1f1;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .header-text {
    margin-left: 0;
    margin-top: 10px;
  }

  .header-logo img {
    width: 70px;
  }
}

/* ===== SLIDER PERFECT FOR 1600 x 700 ===== */

.slider-wrapper {
  background: #f4f6f8;
  padding: 30px 0;
}

.slider-box {
  max-width: 1000px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Exact frame ratio for 1600x700 */
.slider {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 1600 / 700;   /* KEY LINE */
  background: #ffffff;
  border: 2px solid #dcdcdc;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image fit */
.slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* No crop */
  display: none;
}

.slider img.active {
  display: block;
}

/* Buttons */
.nav-btn {
  background: #0a4275;
  color: #ffffff;
  border: none;
  font-size: 22px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 4px;
}

.nav-btn:hover {
  background: #06315a;
}

/* Mobile */
@media (max-width: 768px) {
  .slider-box {
    max-width: 95%;
  }
}


/* ===== PRINCIPAL SECTION ===== */

.principal-section {
  background: #ffffff;
  padding: 40px 20px;
}

.section-title {
  text-align: center;
  color: #0a4275;
  font-size: 26px;
  margin-bottom: 30px;
  border-bottom: 2px solid #f1c40f;
  display: inline-block;
  padding-bottom: 6px;
}

.principal-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Image box */
.principal-image {
  flex: 1;
  text-align: center;
}

.principal-image img {
  width: 100%;
  max-width: 260px;
  border: 2px solid #dcdcdc;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Info box */
.principal-info {
  flex: 2;
}

.principal-info h3 {
  margin: 0;
  font-size: 22px;
  color: #222;
}

.principal-info h4 {
  margin: 5px 0 15px;
  font-size: 16px;
  color: #555;
  font-weight: normal;
}

.principal-info p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
}

/* Mobile */
@media (max-width: 768px) {
  .principal-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .principal-info p {
    text-align: left;
  }
}

/* ===== NOTICE BOARD ===== */

.notice-section {
  background: #ffffff;
  padding: 40px 20px;
}

.notice-container {
  max-width: 900px;
  margin: auto;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #f9fbfc;
  padding: 20px;
}

/* Notice list */
.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Empty state */
.notice-empty {
  text-align: center;
  font-size: 15px;
  color: #777;
  padding: 30px 0;
  font-style: italic;
}

/* ===== STAFF CARD UI ===== */

.staff-section {
  background: #f4f6f8;
  padding: 40px 20px;
}

.staff-card-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Individual card */
.staff-card {
  background: #ffffff;
  border-left: 5px solid #0a4275;
  padding: 18px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Name */
.staff-card h3 {
  margin: 0;
  font-size: 17px;
  color: #0a4275;
}

/* Post */
.staff-card p {
  margin-top: 6px;
  font-size: 14px;
  color: #444;
}

/* ===== ACCESSIBILITY BAR ===== */

.accessibility-bar {
  background: #08345f;
  color: #ffffff;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.accessibility-bar button {
  background: #ffffff;
  color: #08345f;
  border: none;
  padding: 4px 8px;
  margin-right: 6px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
}

.accessibility-bar button:hover {
  background: #f1f1f1;
}

.accessibility-right button {
  margin-left: 6px;
}

/* ===== DARK THEME ===== */
body.dark-theme {
  background: #121212;
  color: #e0e0e0;
}

body.dark-theme header,
body.dark-theme nav,
body.dark-theme footer {
  background: #1e1e1e;
}

body.dark-theme .notice-container,
body.dark-theme .principal-section,
body.dark-theme .staff-card,
body.dark-theme .contact-info,
body.dark-theme .contact-form {
  background: #1c1c1c;
  color: #e0e0e0;
}

body.dark-theme a {
  color: #90caf9;
}

body.dark-theme .full-box,
body.dark-theme .committee-box,
body.dark-theme .notice-container,
body.dark-theme .gallery-item {
  background: #1e1e1e;
  border-color: #444;
  color: #e0e0e0;
}


/* ===== CONTACT PAGE ===== */

.contact-section {
  background: #f4f6f8;
  padding: 40px 20px;
}

.contact-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 30px;
}

.contact-info,
.contact-form {
  background: #ffffff;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 6px;
  flex: 1;
}

.contact-info h3,
.contact-form h3 {
  color: #0a4275;
  margin-top: 0;
}

.contact-info p {
  font-size: 15px;
  line-height: 1.7;
}

.contact-form label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  margin-top: 15px;
  padding: 10px 18px;
  background: #0a4275;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #06315a;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}

/* ===== MAP SECTION ===== */

.map-section {
  background: #ffffff;
  padding: 40px 20px;
}

.map-container {
  max-width: 1100px;
  margin: auto;
  border: 2px solid #dcdcdc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Mobile */
@media (max-width: 768px) {
  .map-container iframe {
    height: 280px;
  }
}


/* ===== WRAPPER ===== */
.committee-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* FULL WIDTH BOX */
.full-box {
  border: 2px solid #0a4275;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 40px;
  background: #fff;
  text-align: center;
}

/* TWO COLUMN ROW */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* COMMON BOX */
.committee-box {
  border: 2px solid #0a4275;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
}

/* TITLES */
.committee-title {
  font-size: 1.4rem;
  color: #0a4275;
  margin-bottom: 20px;
  border-bottom: 3px solid #f1c40f;
  display: inline-block;
  padding-bottom: 5px;
}

/* FACILITIES */
.facility-list {
  list-style: disc;
  text-align: left;
  max-width: 500px;
  margin: auto;
  line-height: 2;
}

/* TABLE */
.committee-table {
  border: 2px solid #0a4275;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.95rem;
}

.row {
  display: grid;
  grid-template-columns: 0.7fr 2.5fr 1.2fr 1.6fr;
}

.row div {
  padding: 10px;
  border-right: 1px solid #0a4275;
  border-bottom: 1px solid #0a4275;
  text-align: center;
}

.row div:nth-child(2) {
  text-align: left;
}

.row.head {
  background: #0a4275;
  color: #fff;
  font-weight: bold;
}

.row div:last-child {
  border-right: none;
}

.committee-table .row:last-child div {
  border-bottom: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ===== GALLERY ===== */

.gallery-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== LIGHTBOX ===== */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

