/* =========================================
   PAGE: SCHOOL TIMINGS
   ========================================= */
.timings-page .inner-page-section .content-wrapper {
  width: var(--container);
  max-width: 1240px;
  margin-inline: auto;
}

.timings-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.timings-page .eyebrow::before {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

/* Opening section — the only content section with an image */
.timings-page .timings-intro {
  background:
    radial-gradient(circle at 92% 12%, rgba(242, 170, 43, 0.14), transparent 25%),
    var(--paper);
}

.timings-page .timings-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
}

.timings-page .timings-intro-copy h2 {
  max-width: 630px;
  margin-bottom: 24px;
}

.timings-page .timings-intro-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.9;
}

.timings-page .routine-points {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.timings-page .routine-points span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(8, 63, 73, 0.1);
  border-radius: 14px;
  color: var(--maroon);
  background: var(--white);
  box-shadow: 0 9px 22px rgba(5, 43, 52, 0.08);
  transition: transform 220ms ease, color 220ms ease, background 220ms ease;
}

.timings-page .routine-points span:nth-child(2) { color: var(--base-deep); }
.timings-page .routine-points span:nth-child(3) { color: #b8650b; }

.timings-page .routine-points span:hover {
  color: var(--white);
  background: var(--maroon);
  transform: translateY(-5px) rotate(-3deg);
}

.timings-page .timings-feature-image {
  position: relative;
  height: 430px;
  margin: 0;
  padding: 8px;
  isolation: isolate;
  border-radius: 26px 74px 26px 26px;
  background: var(--white);
  box-shadow: 0 28px 58px rgba(5, 43, 52, 0.18);
}

.timings-page .timings-feature-image::before {
  position: absolute;
  z-index: -1;
  inset: -18px 28px 30px -18px;
  border: 2px solid rgba(142, 25, 53, 0.28);
  border-radius: 30px 82px 30px 30px;
  content: "";
}

.timings-page .timings-feature-image::after {
  position: absolute;
  z-index: -2;
  right: -22px;
  bottom: -22px;
  width: 125px;
  height: 125px;
  border-radius: 24px;
  background: var(--accent);
  content: "";
}

.timings-page .timings-feature-image img {
  width: 100%;
  height: 100%;
  border-radius: 20px 68px 20px 20px;
  object-fit: cover;
  object-position: center;
  transition: filter 350ms ease, transform 500ms ease;
}

.timings-page .timings-feature-image:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.025);
}

.timings-page .image-badge {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 3px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: var(--maroon);
  box-shadow: 0 13px 28px rgba(5, 43, 52, 0.25);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.timings-page .image-badge i { color: var(--accent-bright); }

/* Daily schedule */
body.timings-page .timings-schedule.inner-page-section {
  background:
    radial-gradient(circle at 7% 12%, rgba(142, 25, 53, 0.07), transparent 22%),
    var(--cream);
}

.timings-page .schedule-container {
  position: relative;
  padding: clamp(26px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(8, 63, 73, 0.09);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 22px 50px rgba(5, 43, 52, 0.1);
}

.timings-page .schedule-container::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 7px;
  border-radius: 0 28px 0 999px;
  background: linear-gradient(90deg, var(--accent), var(--maroon));
  content: "";
}

.timings-page :is(.schedule-heading, .hours-heading) {
  display: flex;
  align-items: center;
  gap: 18px;
}

.timings-page :is(.schedule-heading-icon, .hours-heading-icon) {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 17px;
  color: var(--white);
  background: var(--maroon);
  box-shadow: 7px 7px 0 rgba(242, 170, 43, 0.2);
  font-size: 1.25rem;
}

.timings-page :is(.schedule-heading, .hours-heading) .eyebrow { margin-bottom: 4px; }

.timings-page :is(.schedule-heading, .hours-heading) h2 {
  display: block;
  margin: 0;
}

.timings-page :is(.schedule-heading, .hours-heading) h2::after { display: none; }

.timings-page .table-responsive {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(8, 63, 73, 0.09);
  border-radius: 18px;
}

.timings-page .schedule-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.timings-page .schedule-table th,
.timings-page .schedule-table td {
  padding: 15px 22px;
  text-align: left;
}

.timings-page .schedule-table th {
  color: var(--white);
  background: var(--base-deep);
  font-family: "Archivo Black", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timings-page .schedule-table th:last-child,
.timings-page .schedule-table td:last-child { width: 42%; }

.timings-page .schedule-table td {
  border-bottom: 1px solid rgba(8, 63, 73, 0.08);
  color: var(--base-deep);
  background: var(--white);
  font-size: 0.98rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.timings-page .schedule-table tbody tr:last-child td { border-bottom: 0; }

.timings-page .schedule-table td:first-child {
  display: flex;
  align-items: center;
  gap: 13px;
}

.timings-page .schedule-table td:first-child::before {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: var(--maroon);
  background: rgba(142, 25, 53, 0.08);
  content: "\f017";
  font-family: "Font Awesome 6 Free";
  font-size: 0.78rem;
  font-weight: 900;
}

.timings-page .schedule-table tbody tr:hover td {
  color: var(--maroon);
  background: rgba(242, 170, 43, 0.075);
}

.timings-page .schedule-table .break-row td {
  color: var(--maroon);
  background: rgba(242, 170, 43, 0.12);
  font-weight: 800;
}

.timings-page .schedule-table .break-row td:first-child::before {
  color: #9b5a0b;
  background: rgba(242, 170, 43, 0.24);
  content: "\f0f4";
}

.timings-page .schedule-note {
  display: flex;
  gap: 10px;
  margin: 22px 0 0;
  padding: 15px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 4px 12px 12px 4px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.9rem;
}

.timings-page .schedule-note::before {
  color: var(--maroon);
  content: "\f05a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Working hours — layout only, no additional imagery */
body.timings-page .timings-hours.inner-page-section {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 12%, rgba(242, 170, 43, 0.12), transparent 24%),
    linear-gradient(125deg, var(--base-deep), #075864);
}

body.timings-page .timings-hours.inner-page-section::before {
  background: linear-gradient(90deg, transparent, rgba(242, 170, 43, 0.45), transparent);
}

.timings-page .hours-heading { margin-bottom: 30px; }

.timings-page .hours-heading-icon {
  color: var(--base-deep);
  background: var(--accent-bright);
  box-shadow: 7px 7px 0 rgba(142, 25, 53, 0.45);
}

.timings-page .hours-heading .eyebrow { color: var(--accent-bright); }
body.timings-page .timings-hours .hours-heading h2 { color: var(--white) !important; }

.timings-page .hours-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.timings-page .hours-highlight {
  position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(145deg, var(--maroon), #ac2347);
  box-shadow: 0 22px 44px rgba(1, 25, 30, 0.25);
  text-align: center;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.timings-page .hours-highlight::after {
  position: absolute;
  right: -28px;
  bottom: -52px;
  color: rgba(255, 255, 255, 0.08);
  content: "24";
  font-family: "Archivo Black", sans-serif;
  font-size: 9rem;
  line-height: 1;
}

.timings-page .hours-highlight:hover {
  box-shadow: 0 28px 52px rgba(1, 25, 30, 0.32);
  transform: translateY(-6px);
}

.timings-page .hours-highlight i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--maroon);
  background: var(--accent-bright);
  font-size: 1.65rem;
}

.timings-page .hours-highlight span {
  position: relative;
  z-index: 1;
  max-width: 230px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.timings-page .hours-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.timings-page .hours-content p {
  position: relative;
  margin: 0;
  padding: 30px 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  color: #dbe7e9;
  background: rgba(3, 43, 51, 0.62);
  line-height: 1.8;
  backdrop-filter: blur(5px);
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease;
}

.timings-page .hours-content p::before {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  color: var(--maroon);
  background: var(--accent-bright);
  content: "\f017";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.timings-page .hours-content p:nth-child(2)::before { content: "\f2f6"; }

.timings-page .hours-content p:hover {
  border-color: rgba(242, 170, 43, 0.42);
  background: rgba(3, 43, 51, 0.86);
  transform: translateY(-5px);
}

.timings-page .hours-content strong { color: var(--accent-bright); }

@media (max-width: 980px) {
  .timings-page .timings-intro-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
    gap: 42px;
  }

  .timings-page .timings-feature-image { height: 390px; }
  .timings-page .hours-block { grid-template-columns: 1fr; }
  .timings-page .hours-highlight { min-height: 210px; }
}

@media (max-width: 760px) {
  .timings-page .timings-intro-layout { grid-template-columns: 1fr; }
  .timings-page .timings-intro-copy p { text-align: left; }

  .timings-page .timings-feature-image {
    width: calc(100% - 12px);
    height: 360px;
    margin-top: 4px;
  }

  .timings-page .hours-content { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .timings-page .timings-feature-image {
    height: 300px;
    border-radius: 20px 48px 20px 20px;
  }

  .timings-page .timings-feature-image img { border-radius: 15px 43px 15px 15px; }

  .timings-page .image-badge {
    right: 18px;
    bottom: 18px;
    padding: 11px 14px;
    font-size: 0.75rem;
  }

  .timings-page .schedule-container {
    padding: 22px 14px;
    border-radius: 20px;
  }

  .timings-page :is(.schedule-heading, .hours-heading) {
    align-items: flex-start;
    gap: 13px;
  }

  .timings-page :is(.schedule-heading-icon, .hours-heading-icon) {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .timings-page .table-responsive {
    border: 0;
    border-radius: 0;
  }

  .timings-page .schedule-table,
  .timings-page .schedule-table tbody,
  .timings-page .schedule-table tr,
  .timings-page .schedule-table td {
    display: block;
    width: 100%;
  }

  .timings-page .schedule-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .timings-page .schedule-table tbody {
    display: grid;
    gap: 10px;
  }

  .timings-page .schedule-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(8, 63, 73, 0.09);
    border-radius: 14px;
    background: var(--white);
  }

  .timings-page .schedule-table td,
  .timings-page .schedule-table th:last-child,
  .timings-page .schedule-table td:last-child { width: auto; }

  .timings-page .schedule-table td {
    min-height: 58px;
    padding: 12px;
    border: 0;
  }

  .timings-page .schedule-table td:last-child {
    display: flex;
    align-items: center;
    align-self: stretch;
    color: var(--maroon);
    background: var(--paper);
    font-size: 0.78rem;
  }

  .timings-page .schedule-table .break-row td:last-child { background: rgba(242, 170, 43, 0.2); }
  .timings-page .schedule-note { text-align: left; }

  .timings-page .hours-content p {
    padding: 24px 20px;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .timings-page .timings-feature-image { height: 260px; }
  .timings-page .image-badge { letter-spacing: 0; }
  .timings-page .schedule-table tr { grid-template-columns: minmax(0, 1fr); }

  .timings-page .schedule-table td:last-child {
    min-height: auto;
    padding: 9px 12px 12px 57px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timings-page .timings-feature-image img,
  .timings-page .routine-points span,
  .timings-page .hours-highlight,
  .timings-page .hours-content p {
    transition: none;
  }
}
