:root {
  --maroon-dark: #5d0d1d;
  --brown-nav: #6b3d2b;
  --gold: #d4af37;
  --white: #ffffff;
  --black: #000000;
  --gold-mustard: #b8860b;
  --teal-gradient-1: #4cc3d1;
  --teal-gradient-2: #41a1c1;
  --teal-gradient-3: #7fdae5a8;
  --box-bg: #f7d460d9;
  --box-border: #cccccc;
  --notice-bg: #4ab2c1;
  --border-brown: #4a3427;
  --notice-header-bg: #212529;
  --about-bg: #fffade;
  --dark-gray: #333333;
  --footer-title: #f7d460;
}

body {
  font-family: "Rubik", sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0;
}

/* Prevent accidental horizontal scroll on smaller devices */
html,
body {
  overflow-x: hidden;
}

/* Top Bar */
.top-bar {
  background-color: var(--maroon-dark);
  font-size: 15px;
}

.top-bar i {
  color: var(--white);
}

.social-icons a i {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.social-icons a:hover i {
  transform: scale(1.1);
}

/* Middle Section */
.middle-section {
  position: relative;
  padding-top: 50px; /* Space to accommodate the overflowing logo */
}

.school-logo {
  max-height: 120px;
  position: relative;
  bottom: 30px;
  left: 4%;
  transform: translateX(-50%);
  z-index: 1050;
  /* border: 4px solid var(--white); */
  border-radius: 50%;
  background-color: var(--white);
}

.school-name {
  color: var(--maroon-dark);
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.gold-line {
  border-top: 2px solid var(--gold);
  width: 60%;
  opacity: 1;
}

.affiliation-text {
  color: var(--maroon-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Navbar */
.main-nav {
  background-color: var(--brown-nav) !important;
  padding: 8px 0 !important;
}

.navbar-toggler {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 10px 15px !important;
}

.navbar-toggler .toggle-icon {
  font-size: 1.5rem;
  color: var(--white);
}

.navbar-toggler:not(.collapsed) .toggle-icon::before {
  content: "\f00d" !important; /* FontAwesome 'X' icon code */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

@media (max-width: 991px) {
  .main-nav .container {
    justify-content: flex-start !important;
  }
}

.main-nav .nav-link {
  color: var(--white) !important;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 8px 11px !important;
  text-transform: uppercase;
  transition:
    opacity 0.3s,
    color 0.2s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  opacity: 0.85;
  color: var(--gold) !important;
  background-color: transparent;
}

.dropdown-toggle::after {
  vertical-align: middle;
}

.dropdown-menu {
  --bs-dropdown-bg: var(--gold-mustard);
  --bs-dropdown-border-color: transparent;
  --bs-dropdown-border-radius: 0;
  --bs-dropdown-link-color: var(--white);
  --bs-dropdown-link-hover-color: var(--white);
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.1);
  background-color: var(--gold-mustard) !important;
  border-radius: 0;
  margin-top: 0 !important;
  border: none;
  padding: 0;
  min-width: 220px;
}

.dropdown-item {
  color: var(--white) !important;
  font-size: 0.85rem;
  font-weight: 700 !important;
  /* font-weight: 500; */
  padding: 12px 15px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
  text-transform: uppercase;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--white) !important;
}

/* Sticky Navbar Option */
.main-nav.sticky-top {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-img {
  height: 500px; /* Standardize height for all carousel images */
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 75%; /* Center the overlay text */
  right: -380px;
  width: 150%;
  transform: translateY(-50%);
  pointer-events: none; /* Let clicks pass through to carousel buttons if needed */
  z-index: 15;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 20; /* Keep controls above the overlay if necessary, or same level */
  width: 5%;
}

.teal-box {
  background: linear-gradient(
    to right,
    var(--teal-gradient-1) 0%,
    var(--teal-gradient-2) 50%,
    var(--teal-gradient-3) 100%
  );
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
  min-width: 35%;
  border-radius: 3px 35px;
  pointer-events: auto; /* Enable hover/interaction if needed */
  border: 1px solid var(--white);
}

.teal-box h2 {
  font-size: 1.8rem;
  letter-spacing: 1px;
  font-weight: 500;
}

.quick-links {
  margin-top: -40px; /* Position boxes over the image */
  position: relative;
  z-index: 20;
}

.quick-links .quick-box a {
  text-decoration: none;
}

/* Use Bootstrap gutter vars so spacing works reliably with .row/.col */
.quick-links .row {
  --bs-gutter-x: 14px;
  --bs-gutter-y: 14px;
}

@media (min-width: 768px) {
  .quick-links .row {
    justify-content: center;
  }
  .quick-links .quick-box {
    flex: 0 0 14%;
    max-width: 14%;
  }
}

.box-content {
  background-color: var(--box-bg) !important;
  height: 100%;
  transition:
    transform 0.3s,
    background-color 0.3s;
  cursor: pointer;
  border: 1px solid var(--box-border) !important; /* Small gray border */
  border-radius: 8px; /* Small border radius */
  padding: 2rem 0.65rem !important; /* More compact box height */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.box-content:hover {
  background-color: var(--box-bg) !important;
  transform: translateY(-5px);
}

.box-content img {
  height: 34px; /* More compact icon size */
  width: auto;
}

.box-content h6 {
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 600 !important;
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .hero-overlay {
    right: -260px;
    width: 140%;
  }
}

@media (max-width: 991.98px) {
  .top-bar {
    font-size: 1rem;
  }

  .top-bar .container {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 8px;
  }

  .contact-info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px !important;
  }

  .social-icons {
    justify-content: center;
  }

  .middle-section {
    padding-top: 18px;
  }

  .school-logo {
    max-height: 95px;
    left: 50%;
    bottom: 0;
  }

  .school-name {
    font-size: 1.45rem;
  }

  .affiliation-text {
    font-size: 0.82rem;
    padding: 0 8px;
  }

  .main-nav .navbar-nav {
    gap: 0 !important;
    width: 100%;
  }

  .main-nav .nav-link {
    padding: 11px 12px !important;
  }

  .hero-img {
    height: 420px;
  }

  .hero-overlay {
    right: -160px;
    width: 130%;
  }

  .quick-links {
    margin-top: -24px;
  }
}

@media (max-width: 767.98px) {
  .top-bar {
    font-size: 0.88rem;
  }

  .school-logo {
    max-height: 84px;
    position: relative;
    bottom: 22px;
    left: 45px;
  }

  .school-name {
    font-size: 1.2rem;
    letter-spacing: 0.4px;
    line-height: 1.2;
  }

  .gold-line {
    width: 78%;
  }

  .affiliation-text {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .hero-img {
    height: 200px;
    object-fit: cover;
    object-position: center;
  }

  .hero-overlay {
    top: 73%;
    right: 0;
    width: 100%;
    padding: 0 10px;
  }

  .teal-box {
    min-width: auto;
    max-width: 100%;
    border-radius: 4px 22px;
  }

  .teal-box h2 {
    font-size: 1rem;
    letter-spacing: 0.4px;
  }

  .hero-overlay .teal-box {
    padding: 0.75rem 0.9rem !important;
  }

  .quick-links {
    margin-top: -16px;
  }
  .quick-links .row {
    gap: 0px !important;
  }

  .quick-links .quick-box {
    flex: 0 0 auto;
    max-width: none;
  }

  .quick-links .row {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
  }

  .box-content {
    padding: 1rem 0.5rem !important;
  }

  .box-content img {
    height: 28px;
  }

  .box-content h6 {
    font-size: 0.74rem;
  }
}

/* Notice & About Section */
.notice-about-section {
  padding-top: 25px !important;
  background-color: var(--white);
}

.notice-card {
  background-color: var(--notice-bg);
  border: 1.5px solid var(--border-brown);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px !important;
}

.notice-header {
  background-color: var(--notice-header-bg);
  padding: 6px 25px;
  border-radius: 4px;
  width: fit-content;
  margin-top: -5px;
}

.notice-header h4 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
}

.notice-body {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-top: 15px;
}

.notice-scroll-container {
  height: 300px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.notice-scroll-content {
  position: absolute;
  width: 100%;
  animation: scroll-up 12s linear infinite;
}

.notice-scroll-container:hover .notice-scroll-content {
  animation-play-state: paused;
}

@keyframes scroll-up {
  0% {
    top: 100%;
  }
  100% {
    top: -100%;
  }
}

.notice-body .date {
  font-size: 1rem;
  font-weight: 500;
}

.notice-body h5 {
  font-size: 1.05rem;
}

.about-card {
  background-color: var(--about-bg);
  border: 1.5px solid var(--border-brown);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px !important;
}

.about-img {
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--dark-gray);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h3 {
  color: var(--border-brown);
  font-size: 1.4rem;
  font-weight: 600;
}

.about-content p {
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.read-more {
  color: var(--brown-nav);
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.read-more:hover {
  color: var(--dark-gray);
}

.btn-action {
  --bs-btn-bg: var(--maroon-dark);
  --bs-btn-color: var(--white);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: #ffdf70;
  --bs-btn-hover-color: #4a0a18;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: #c49a20;
  --bs-btn-active-color: var(--white);
  --bs-btn-focus-shadow-rgb: 93, 13, 29;
  background-color: var(--maroon-dark) !important;
  color: var(--white) !important;
  padding: 8px 6px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1.05rem;
  border: none !important;
  transition:
    background-color 0.3s,
    color 0.3s;
  box-shadow: none;
}

.btn-action:hover {
  background-color: #ffdf70 !important;
  color: #4a0a18 !important;
}

.btn-action:focus,
.btn-action:focus-visible {
  background-color: var(--maroon-dark) !important;
  color: var(--white) !important;
  box-shadow: 0 0 0 3px rgba(93, 13, 29, 0.35) !important;
  outline: none;
}

/* Facilities Section */
.facilities-section {
  /* background-image: url("../images/paramout_img/facilites.jpg"); */
  background-image: url("../images/facilities-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 35px 0;
}

.facilities-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.z-1 {
  z-index: 1;
}

.facility-box {
  border: 1.5px dashed var(--white);
  border-radius: 20px;
  background-color: transparent;
  transition:
    transform 0.3s,
    background-color 0.3s;
  cursor: pointer;
  padding: 15px !important;
}

.facility-box:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.05);
}

.facility-img {
  height: 45px;
  width: auto;
  filter: brightness(1.2);
}

.facility-box h5 {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* Co-curricular Section */
.co-curricular-section {
  padding: 35px 0;
}

.co-curricular-item {
  position: relative;
  width: 70%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.co-curricular-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.co-curricular-item:hover img {
  transform: scale(1.15);
  filter: blur(2px);
}

.co-curricular-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.5s ease;
  z-index: 2;
}

.co-curricular-item:hover .co-curricular-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

.object-fit-cover {
  object-fit: cover;
}

/* Footer Section */
.main-footer {
  background-color: var(--dark-gray);
  color: var(--white);
}

.footer-title {
  color: var(--footer-title);
  font-size: 1.15rem;
  font-weight: 500;
}

.contact-list li,
.main-footer span {
  font-size: 1rem;
  line-height: 1.3;
}

.links-list li {
  margin-bottom: 6px;
}

.links-list a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.links-list a:hover {
  color: var(--footer-title);
}

.footer-hr {
  border-top: 1.5px solid var(--white);
  opacity: 1;
  margin: 20px 0 10px 0;
}

.copyright p {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* .copyright .mb-0 {
  text-align: right;
} */

.footer-label {
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  display: inline;
  line-height: 1.8;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.footer-label:hover {
  color: var(--footer-title);
}

.footer-label a {
  color: inherit;
  text-decoration: none;
}

.footer-label-2 {
  margin-left: auto;
  text-align: right;
}
.footer-label-2 a {
  text-decoration: none;
}
.footer-label-2 a {
  color: var(--footer-title);
}
.footer-label-2 a:hover {
  color: var(--teal-gradient-1);
}

/* Final responsive overrides (kept at file end for cascade priority) */
@media (max-width: 991.98px) {
  .notice-scroll-container {
    height: 260px;
  }

  .facilities-section {
    background-attachment: scroll;
  }
}

@media (max-width: 767.98px) {
  .notice-card,
  .about-card {
    padding: 12px !important;
  }

  .notice-header h4 {
    font-size: 1rem;
  }

  .notice-scroll-container {
    height: 220px;
  }

  .about-img {
    height: 170px;
  }

  .about-content h3 {
    font-size: 1.2rem;
  }

  .about-content p,
  .read-more {
    font-size: 0.86rem;
  }

  .btn-action {
    font-size: 0.9rem;
  }

  .facilities-section {
    padding: 26px 0;
  }

  .facility-box {
    border-radius: 14px;
    padding: 12px !important;
  }

  .facility-img {
    height: 34px;
  }

  .facility-box h5 {
    font-size: 0.92rem;
  }

  .co-curricular-section h2 {
    font-size: 1.7rem !important;
  }

  .co-curricular-item {
    width: 88%;
  }

  .co-curricular-overlay h4 {
    font-size: 1rem;
  }

  .main-footer {
    text-align: left;
  }

  .contact-list li,
  .main-footer span,
  .links-list a {
    font-size: 0.9rem;
  }

  .contact-list li {
    justify-content: flex-start;
    text-align: left;
  }

  .copyright {
    text-align: left !important;
  }

  .copyright p {
    font-size: 0.9rem;
  }

  .copyright .footer-label-2 {
    flex: 0 0 100%;
    margin-left: 0;
    text-align: center;
  }

  .mobile-equal-sections > .row {
    justify-content: center;
    row-gap: 1.5rem;
  }

  .mobile-equal-sections > .row > [class*="col-"] {
    width: 100%;
    max-width: 560px;
    flex: 0 0 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .mobile-equal-sections .notice-box,
  .mobile-equal-sections .about-box,
  .mobile-equal-sections .main-box,
  .mobile-equal-sections .events-container {
    width: 100% !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .mobile-equal-sections .about-header,
  .mobile-equal-sections .about-content,
  .mobile-equal-sections .management-header {
    margin-left: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .mobile-equal-sections .notice-title,
  .mobile-equal-sections .about-header h4,
  .mobile-equal-sections .about-content h3,
  .mobile-equal-sections .management-header h3 {
    text-align: center;
  }

  .about-school-content .about-school-notice-col,
  .about-school-content .about-school-about-col {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .about-school-content .notice-box,
  .about-school-content .about-box {
    width: 100% !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .about-school-content .about-header {
    padding-left: 16px !important;
    padding-right: 16px !important;
    text-align: center;
  }

  .about-school-content .about-school-heading {
    display: block;
    width: 100%;
    margin-left: 0 !important;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }
}

/*==============================body_code==========================================*/
/*------------about_page_code_style--------*/
/* Notice Card */
.notice-card {
  background-color: #3fa0b7;
  border-radius: 25px;
  padding: 25px;
  color: white;
  border: 2px solid #2c2c2c;
  margin-right: 0;
}

.notice-header {
  background-color: #1e2a32;
  padding: 10px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 20px;
}

.notice-body p {
  font-size: 15px;
  line-height: 1.6;
}

/* History Card */
.history-card {
  background-color: #ded7b8;
  border-radius: 25px;
  padding: 30px;
  border: 2px solid #4b4b4b;
}

.history-card h3 {
  font-weight: 600;
}

.history-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

/* footer */
.main {
  background-color: #2c2c2c;
  padding: 50px;
}

.link a {
  text-decoration: none;
  color: #fff;
}
.link a:hover {
  color: #e9ec0c;
}

/* LEFT NOTICE BOARD */
.notice-box {
  background: #36b0cd;
  border-radius: 25px;
  height: 420px;
  border: 2px solid #555;
  padding-top: 20px;
  margin-right: 0;
}

.notice-title {
  background: #1f2a33;
  color: white;
  display: inline-block;
  padding: 8px 40px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
}

.notice-content {
  height: 200px;
  overflow: hidden;
  position: relative;
}

/* RIGHT ABOUT BOX */
.about-box {
  background: #fffade;
  border-radius: 25px;
  border: 2px solid #555;
  padding: 0;
  height: 100%;
  width: 92%;
}

.hd-1 h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgb(29 28 28);
}

.notice-content {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.scroll-text {
  position: absolute;
  width: 100%;
  animation: scrollUp 10s linear infinite;
}

@keyframes scrollUp {
  0% {
    top: 100%;
  }
  100% {
    top: -100%;
  }
}
.dark {
  color: #1e2a32;
}
.scroll-text:hover {
  animation-play-state: paused;
}

/*---------------------------- nest--------------------------------------- */

/* table code */

.dataTables_wrapper {
  background-color: #fff8dc;
  padding: 15px;
  border-radius: 10px;
}
table.dataTable thead {
  background-color: #66b2ff;
  color: #000;
}
.border {
  border: 2px solid #000;
}

.dataTables_filter {
  padding-bottom: 15px !important;
}

.dataTables_filter input {
  background-color: #ffffff !important;
  outline: none;
  border: none;
  text-align: center;
}

.dataTables_length select {
  background-color: #ffffff !important;
  padding: 6px !important;
}
/* ACADEMICS */
.main-box {
  background: #fffade;
  border: 2px solid #5a5a5a;
  border-radius: 25px;
  padding: 30px;
  max-width: 900px;
  margin: 40px auto;
  margin-top: 0;
  width: 85%;
  margin-left: 0;
  height: 100%;
}

.table thead {
  background: #b8cbd6;
  font-weight: 700;
}

.table td {
  background: #e9e9e9;
}

.dt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dt-search input {
  width: 200px;
  padding: 5px;
  border: 1px solid #777;
}

.bottom-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.page-box {
  /* border: 1px solid #333; */
  padding: 5px 10px;
  background: #e5dec3;
}

.section-line {
  border-top: 1px solid #b7b7b7;
  margin: 25px 0;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.btn-maroon {
  background: #6a001a;
  color: white;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
}

.btn-maroon:hover {
  background: #ffdf70;
  color: #4a0a18;
}

.academics-content .notice-box {
  max-width: 360px;
  width: 100%;
  height: 100%;
  min-height: 420px;
  margin: 0 auto;
}

.academics-content .main-box {
  width: 85%;
  max-width: 900px;
  height: 100%;
  margin: 0 auto;
  text-align: center;
}

.academics-content .class-hours-title {
  color: #4a3427;
  font-weight: 700;
}

.academics-content .dt-top,
.academics-content .bottom-info {
  gap: 14px;
}

.academics-content .dt-length,
.academics-content .dt-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.academics-content .dt-length select,
.academics-content .dt-search input {
  min-height: 38px;
  border: 1px solid #777;
  border-radius: 4px;
  background: #fff;
}

.academics-content .dt-length select {
  padding: 5px 8px;
}

.academics-content .dt-search input {
  padding: 5px 10px;
  max-width: 100%;
}

.academics-content .class-hours-table {
  min-width: 420px;
  margin-bottom: 0;
}

.academics-content .class-hours-table th,
.academics-content .class-hours-table td {
  text-align: center;
  vertical-align: middle;
}

.academics-content .btn-grid {
  max-width: 620px;
  margin: 0 auto;
}

.academics-content .btn-maroon {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .academics-content .notice-box,
  .academics-content .main-box {
    max-width: 720px;
  }
}

@media (max-width: 767.98px) {
  .academics-content {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  .academics-content .notice-box {
    min-height: 340px;
    border-radius: 18px;
  }

  .academics-content .notice-content {
    height: 220px;
  }

  .academics-content .notice-title {
    padding: 8px 24px;
    font-size: 16px;
  }

  .academics-content .main-box {
    padding: 20px;
    border-radius: 18px;
  }

  .academics-content .class-hours-col {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .academics-content .class-hours-col .main-box {
    width: 93%;
    max-width: none;
  }

  .academics-content .dt-top,
  .academics-content .bottom-info {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .academics-content .dt-search {
    width: 100%;
  }

  .academics-content .dt-length {
    flex-wrap: wrap;
    justify-content: center;
  }

  .academics-content .dt-search input {
    width: 100%;
    margin-top: 6px;
  }

  .academics-content .bottom-info {
    font-size: 0.95rem;
  }

  .academics-content .class-hours-pagination {
    justify-content: center;
  }

  .academics-content .btn-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 575.98px) {
  .academics-content .main-box {
    padding: 16px;
  }

  .academics-content .class-hours-table {
    min-width: 0;
  }

  .academics-content .class-hours-table thead {
    display: none;
  }

  .academics-content .class-hours-table,
  .academics-content .class-hours-table tbody,
  .academics-content .class-hours-table tr,
  .academics-content .class-hours-table td {
    display: block;
    width: 100%;
  }

  .academics-content .class-hours-table tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #e9e9e9;
  }

  .academics-content .class-hours-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #d8d8d8;
    text-align: left;
  }

  .academics-content .class-hours-table td::before {
    content: attr(data-label);
    display: block;
    color: #4a3427;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
  }

  .academics-content .class-hours-table td:last-child {
    border-bottom: 0;
  }

  .academics-content .btn-maroon {
    width: 100%;
  }
}
/* ------------- */
.btn {
  display: flex;
  justify-content: space-around;
}
.btn-purple {
  max-width: 200px;
  min-width: 140px;
  color: #fff;
  background: var(--bg-purple);
}
.mt-3 {
  margin-top: 1rem !important;
}
.w-75 {
  width: 75% !important;
}
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.gallery-feature-card {
  background: rgba(255, 215, 76, 0.8);
  border: 1px solid #bababa;
  border-radius: 18px;
  padding: 1rem 0.75rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.gallery-feature-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.feature-icon {
  max-width: 72px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.feature-text {
  color: #1e2a32;
  margin: 0;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 0.75rem;
}

.gallery-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #2c2c2c;
}

.gallery-intro {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #f9f7ef;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.14);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  min-height: 180px;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 767px) {
  .gallery-header h2 {
    font-size: 1.75rem;
  }
  .gallery-grid {
    gap: 0.75rem;
  }
  .gallery-feature-card {
    min-height: 140px;
  }
}

.event-image-wrapper {
  position: relative;
  text-align: center;
  padding-bottom: 20px;
}

.event-title-above-image {
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-align: center;
}

.event-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-bottom: 15px;
}

.dot-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #999;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #6b0d1f;
}

.dot:hover {
  background-color: #6b0d1f;
}

.event-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-date {
  font-size: 1rem;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.event-description {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.btn-view-images {
  background-color: #8b5a3c;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  align-self: flex-start;
  box-shadow: 0 4px 8px rgba(139, 90, 60, 0.3);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-view-images:hover {
  background-color: #a0683d;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(139, 90, 60, 0.4);
}

.btn-view-images:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(139, 90, 60, 0.3);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet & iPad (768px to 991px) */
@media (max-width: 991px) {
  .event-cards-section {
    margin-top: -20px;
    margin-bottom: 30px;
  }

  .event-card {
    padding: 15px;
  }

  .event-image-wrapper {
    margin-bottom: 20px;
  }

  .event-content {
    padding: 10px;
  }
}

/* Mobile Devices (less than 768px) */
@media (max-width: 767px) {
  .event-cards-section {
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .event-card {
    padding: 12px;
    margin-bottom: 25px !important;
    border-radius: 16px;
  }

  .event-image-wrapper {
    margin-bottom: 15px;
  }

  .event-title-above-image {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .event-image {
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .event-content {
    padding: 8px;
  }

  .event-date {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .event-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: left;
  }

  .btn-view-images {
    padding: 8px 20px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
}

/* Extra Small Devices (less than 480px) */
@media (max-width: 479px) {
  .event-card {
    padding: 10px;
    border-radius: 14px;
    margin-bottom: 20px !important;
  }

  .event-title-above-image {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .event-date {
    font-size: 0.9rem;
  }

  .event-description {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .btn-view-images {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
}

/* ===== SCHOOL CALENDAR ===== */
.school-calendar {
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

/* Two binding clips sit above the card */
.cal-clips-row {
  display: flex;
  justify-content: space-around;
  padding: 0 80px;
  position: relative;
  z-index: 3;
}

.cal-clip {
  width: 20px;
  height: 50px;
  /* Dark navy with inset shading to look cylindrical */
  background: linear-gradient(to right, #2a3c8a 10%, #1a2668 55%, #131d52 100%);
  border-radius: 10px;
  box-shadow:
    inset -3px 0 7px rgba(0, 0, 0, 0.4),
    inset 2px 0 4px rgba(255, 255, 255, 0.08),
    2px 3px 6px rgba(0, 0, 0, 0.35);
  position: relative;
  top: 12px; /* overlap the top edge of the card */
}

/* The card itself — red header + white body, big rounded corners */
.cal-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  /* Stepped diagonal hard shadow matching the image */
  box-shadow:
    7px 7px 0 rgba(145, 145, 158, 0.95),
    14px 14px 0 rgba(165, 165, 178, 0.55),
    20px 20px 35px rgba(0, 0, 0, 0.16);
}

/* Red header */
.cal-header {
  background: #cc1f1f;
  padding: 30px 28px 26px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cal-month-name {
  color: #ffffff;
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}

.cal-year-name {
  color: #ffffff;
  font-size: 3.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

/* White calendar body */
.cal-body {
  background: #ffffff;
  padding: 18px 20px 28px;
}

.cal-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}

.cal-day-headers span {
  text-align: center;
  font-weight: 700;
  color: #1b2b62;
  font-size: 0.82rem;
  padding: 5px 0 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cal-day-headers span.sun {
  color: #cc1f1f;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
}

.cal-cell {
  text-align: center;
  padding: 10px 0;
  font-size: 1.2rem;
  color: #1b2b62;
  font-weight: 500;
  cursor: default;
  transition: background 0.15s;
}

.cal-cell:not(.empty):hover {
  background: #707bff;
  border-radius: 4px;
  color: #ffffff;
}

.cal-cell.sun {
  color: #cc1f1f;
  font-weight: 600;
}

.cal-cell.empty {
  pointer-events: none;
}

.cal-cell.today {
  background: #1b2b62;
  color: #ffffff !important;
  border-radius: 50%;
  font-weight: 700;
}

.cal-cell.today.sun {
  background: #cc1f1f;
}

/* Navigation arrows below the card */
.cal-nav-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.cal-nav-controls button {
  background: #cc1f1f;
  color: #ffffff;
  border: none;
  padding: 9px 22px;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
  transition: background 0.2s;
}

.cal-nav-controls button:hover {
  background: #a81818;
}
