/* Misc. page — school timings and the gazetted holiday list. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  font-family: "Lato", "Rubik", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #3a2a1a;
  background-color: #fffdf9;
}

.misc-hero {
  padding: 4.8rem 2.4rem 3.2rem;
  text-align: center;
  background: linear-gradient(135deg, #f1a868 0%, #f8c99f 100%);
  color: #2b1c0c;
}

.misc-hero h1 {
  margin: 0 0 0.8rem;
  font-size: 4.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #2c4ea8;
}

.misc-hero p {
  margin: 0;
  font-size: 1.8rem;
}

.misc-container {
  max-width: 110rem;
  margin: 0 auto;
  padding: 4rem 2.4rem 6rem;
}

.misc-section {
  margin-bottom: 5.6rem;
}

.misc-section h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #2c4ea8;
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.misc-section h2 ion-icon {
  font-size: 3rem;
  color: #d97a2c;
}

.misc-note {
  margin: 0 0 2.4rem;
  font-size: 1.5rem;
  color: #6b5a48;
}

/* Timings */

.timings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2.4rem;
}

.timing-card {
  background-color: #fff;
  border: 1px solid #f3e5d0;
  border-top: 5px solid #f1a868;
  border-radius: 12px;
  padding: 2.8rem 2.4rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.timing-card--winter {
  border-top-color: #2c4ea8;
}

.timing-card h3 {
  margin: 0 0 1.2rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c4ea8;
}

.timing-card .timing-hours {
  margin: 0;
  font-size: 3.2rem;
  font-weight: 700;
  color: #d97a2c;
  letter-spacing: 0.5px;
}

.timing-card--winter .timing-hours {
  color: #2c4ea8;
}

.timing-card .timing-months {
  margin: 0.8rem 0 0;
  font-size: 1.5rem;
  color: #6b5a48;
}

/* Holiday tables */

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  background-color: #fff;
}

.holiday-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.5rem;
  min-width: 60rem;
}

.holiday-table caption {
  caption-side: top;
  text-align: left;
  padding: 1.6rem 1.6rem 1.2rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c4ea8;
}

.holiday-table th,
.holiday-table td {
  padding: 1.2rem 1.6rem;
  text-align: left;
  border-bottom: 1px solid #f3e5d0;
}

.holiday-table thead th {
  background: linear-gradient(180deg, #f8c99f 0%, #f1a868 100%);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.holiday-table tbody tr:nth-child(even) {
  background-color: #fffaf2;
}

.holiday-table tbody tr:hover {
  background-color: #fdf1e2;
}

.holiday-table td:first-child,
.holiday-table th:first-child {
  width: 6rem;
  text-align: center;
}

.holiday-table .col-count {
  text-align: center;
  white-space: nowrap;
}

.holiday-name {
  font-weight: 600;
}

.misc-source {
  margin-top: 1.6rem;
  font-size: 1.4rem;
  color: #6b5a48;
  font-style: italic;
}

/* Footer (kept consistent with the rest of the site) */

.footer {
  background-color: #fffaf2;
  border-top: 1px solid #f3e5d0;
  padding: 4rem 2.4rem;
  font-size: 1.5rem;
}

.footer .footer-inner {
  max-width: 110rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 3.2rem;
}

.footer .footer-heading {
  font-size: 1.7rem;
  font-weight: 700;
  color: #2c4ea8;
  margin: 0 0 1.2rem;
}

.footer a {
  color: #6b5a48;
  text-decoration: none;
}

.footer a:hover {
  color: #d97a2c;
}

.footer .copyright {
  color: #6b5a48;
  margin-top: 1.6rem;
}

.footer .footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

@media (max-width: 600px) {
  .misc-hero h1 {
    font-size: 3.2rem;
  }

  .misc-section h2 {
    font-size: 2.4rem;
  }

  .timing-card .timing-hours {
    font-size: 2.6rem;
  }
}
