/**
 * Legacy Drupal-era page styles — linked per-page via $extraHead (not global).
 * Restores tabs, tables, galleries, and layout from original HTML conversions.
 */

/* ── Drupal #main wrapper ── */
#main.clearfix,
#container-fluid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ── Vertical tabs (committees / admissions archive pattern) ── */
.tab {
  float: left;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  width: 21%;
}

.tab button,
.tab button.tablinks {
  display: block;
  background-color: inherit;
  color: #000;
  padding: 10px 6px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
  font-size: 13px;
}

.tab button:hover,
.tab button.tablinks:hover {
  background-color: #ddd;
}

.tab button.active,
.tab button.tablinks.act {
  background-color: #4caf50;
  color: #fff;
}

.tabcontent {
  float: left;
  padding: 0 12px;
  border: 1px solid #ccc;
  width: 79%;
  border-left: none;
  min-height: 200px;
  background: #fff;
}

/* ── Horizontal tabs (library-old pattern) ── */
.tab.horiz {
  float: none;
  width: 100%;
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #0093d9;
  color: #fff;
  font-weight: bold;
}

.tab.horiz button {
  float: left;
  background-color: inherit;
  border: none;
  padding: 12px 14px;
  font-size: 14px;
}

.tab.horiz button.active {
  background-color: #ccc;
  color: #000;
}

/* ── Gallery columns ── */
.glry-two,
.glry-right {
  display: block;
  width: 100%;
}

.glry-two .img-responsive,
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

.zoom-img {
  transition: transform 0.3s ease;
}

.zoom-img:hover {
  transform: scale(1.03);
}

.fourcolumn {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.section-1 {
  background: #fafaf7;
  padding: 1.5rem 0;
  margin-top: 2rem;
  clear: both;
}

.sub-mainbottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sub-mainbottom ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.sub-mainbottom ul.menu a {
  color: #1a2744;
  text-decoration: none;
  font-size: 0.9rem;
}

.sub-mainbottom ul.menu a:hover {
  text-decoration: underline;
}

/* ── Legacy tables ── */
.table-container1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

#main.clearfix table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

#main.clearfix th,
#main.clearfix td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

#main.clearfix th {
  background-color: #f2f2f2;
  font-weight: bold;
}

#main.clearfix tr:nth-child(even) td {
  background-color: #f9f9f9;
}

/* ── Drupal gray page content contrast ── */
body:has(#main-content #main.clearfix) #main-content {
  color: #eee;
}

body:has(#main-content #main.clearfix) #main-content a {
  color: #fff;
}

body:has(#main-content #main.clearfix) #main-content .tabcontent,
body:has(#main-content #main.clearfix) #main-content .tabcontent td,
body:has(#main-content #main.clearfix) #main-content .tabcontent th {
  color: #333;
}

body:has(#main-content #main.clearfix) #main-content .tabcontent a {
  color: #0066cc;
}

@media (max-width: 768px) {
  .tab,
  .tabcontent {
    float: none;
    width: 100%;
  }
}
