/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Source Sans 3", "Source Sans Pro", "Segoe UI", Tahoma, Geneva, Verdana,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Content Section */
.content-section {
  padding: 80px 0;
  background: #f8f9fa;
}

/* Video Background Section */
.video-section {
  margin-top: 0;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.video-background video,
.video-background img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.video-content {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.video-content h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
  animation: fadeInUp 1s;
}

.video-content p {
  font-size: 20px;
  margin-bottom: 30px;
  animation: fadeInUp 1.2s;
}

.video-content .btn {
  padding: 12px 35px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInUp 1.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles for Video Content */
@media (max-width: 991px) {
  .video-content h1 {
    font-size: 36px;
  }

  .video-content p {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .video-content h1 {
    font-size: 28px;
  }

  .video-content p {
    font-size: 14px;
  }
}

/* =============================================
   Footer Menu Section
   ============================================= */
.footer-menu-section {
  background-color: #f0f2f5;
  padding: 50px 40px 40px;
  border-top: 1px solid #dde1e7;
}

.footer-menu-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  color: #1a3a6b;
  margin-bottom: 40px;
}

.footer-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px 20px;
}

.footer-menu-col {
  display: flex;
  flex-direction: column;
}

.footer-menu-heading {
  font-size: 14px;
  font-weight: 700;
  color: #1a3a6b;
  margin-top: 18px;
  margin-bottom: 6px;
}

.footer-menu-col .footer-menu-heading:first-child {
  margin-top: 0;
}

.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px 0;
}

.footer-menu-list li {
  margin-bottom: 4px;
}

.footer-menu-list li a {
  font-size: 13.5px;
  color: #1565c0;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-menu-list li a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

/* Responsive: 3 columns on tablets */
@media (max-width: 1024px) {
  .footer-menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive: 2 columns on small tablets */
@media (max-width: 768px) {
  .footer-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-menu-title {
    font-size: 20px;
  }
}

/* Responsive: 1 column on mobile */
@media (max-width: 480px) {
  .footer-menu-grid {
    grid-template-columns: 1fr;
  }

  .footer-menu-section {
    padding: 30px 20px;
  }
}

/* =============================================
   Footer Contact Strip
   ============================================= */
.footer-contact-strip {
  background-color: #eef0f4;
  border-top: 1px solid #d0d5de;
  padding: 28px 40px;
}

.footer-contact-inner {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-logo-wrap {
  flex-shrink: 0;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-icon {
  color: #1a3a6b;
  font-size: 15px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #1565c0;
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

.footer-quick-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  flex-wrap: wrap;
}

.footer-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #1a3a6b;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-quick-link:hover {
  color: #1565c0;
}

.footer-quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   Footer Bottom Bar
   ============================================= */
.footer-bottom-bar {
  background-color: #1a3a6b;
  padding: 12px 40px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom-left span,
.footer-bottom-center span {
  color: #c8d6f0;
  font-size: 13px;
}

.footer-bottom-left a {
  color: #c8d6f0;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-left a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom-center {
  text-align: center;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom-right a {
  color: #c8d6f0;
  font-size: 18px;
  text-decoration: none;
  transition:
    color 0.2s,
    transform 0.2s;
  display: inline-flex;
}

.footer-bottom-right a:hover {
  color: #ffffff;
  transform: scale(1.15);
}

/* Responsive footer contact */
@media (max-width: 768px) {
  .footer-contact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-quick-links {
    margin-left: 0;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact-strip {
    padding: 24px 20px;
  }

  .footer-bottom-bar {
    padding: 14px 20px;
  }
}

/* =============================================
   News Ticker Section
   ============================================= */
.news-ticker-container {
  background-color: #0c4da2;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: stretch;
  height: 50px;
  padding: 0;
}

.news-title {
  background-color: #ffd207;
  color: #000;
  font-weight: 700;
  font-size: 18px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.news-ticker-mask {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.news-ticker-wrapper {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  /* Ensure styles from before are compatible */
}

.news-ticker-wrapper:hover {
  animation-play-state: paused;
}

.news-item {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  margin: 0 15px;
}

.news-separator {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  margin: 0 5px;
  vertical-align: middle;
}

.btn-apply {
  display: inline-block;
  background-color: #ffc107;
  color: #000;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  margin-left: 10px;
  transition:
    background-color 0.2s,
    transform 0.2s;
  vertical-align: middle;
}

.btn-apply:hover {
  background-color: #ffca2c;
  color: #000;
  transform: scale(1.05);
  text-decoration: none;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
    /* Scroll only half way (the length of one set) */
  }
}

/* =============================================
   Why Choose Us Section
   ============================================= */
.why-choose-us-section {
  padding: 30px 0;
  background-color: #fff;
  margin-top: 0px;
}

.why-choose-card {
  border: none;
  border-radius: 15px;
  background-color: #fff;
  /* Box shadow is minimal/none in the reference image, mainly a border */
}

.stat-item {
  text-align: left;
}

.stat-number-wrapper {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1;
  color: #000;
  margin-bottom: 5px;
}

.stat-number {
  display: inline-block;
}

.stat-symbol {
  display: inline-block;
  margin-left: 2px;
}

.stat-label {
  font-size: 1.3rem;
  color: #333;
  font-weight: 500;
}

/* =============================================
   Accreditation Logos Section
   ============================================= */
.accreditation-section {
  padding: 40px 0;
  background-color: #f8f9fa;
  /* Light gray background to separate from white sections */
}

.accreditation-logo {
  max-height: 100px;
  /* Increased from 80px by 25% */
}

/* =============================================
   Most Recent News Section
   ============================================= */
.recent-news-section {
  padding: 60px 0;
  background-color: #fff;
}

.news-scroll-container {
  overflow: hidden;
  padding: 10px 0 30px;
  position: relative;
  width: 100%;
}

.news-scroll-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-news 40s linear infinite;
}

.news-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-news {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Card shell ── */
.news-card {
  width: 280px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #eaeef4;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(12, 77, 162, 0.14);
  color: inherit;
  text-decoration: none;
}

/* ── Image ── */
.news-img-wrapper {
  width: 100%;
  height: 195px;
  overflow: hidden;
  background: #e9eef5;
  flex-shrink: 0;
  display: block;
  position: relative;
}

.news-img-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-img-wrapper img {
  transform: scale(1.05);
}

/* ── Body ── */
.news-content {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Meta row: badge + date ── */
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* ── Pill badges ── */
.news-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 4px;
  color: #000;
  background: #ffc107;
  white-space: nowrap;
}

/* Category colour overrides */
.cat-events,
.cat-event       { background: #ffc107; color: #000; }
.cat-sports      { background: #28a745; color: #fff; }
.cat-conference  { background: #6f42c1; color: #fff; }
.cat-achievement { background: #fd7e14; color: #fff; }
.cat-club        { background: #20c997; color: #fff; }
.cat-news        { background: #0d6efd; color: #fff; }

.news-date {
  font-size: 0.78rem;
  color: #8a9ab5;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Title ── */
.recent-news-title {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1a2a4a;
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Read more link ── */
.news-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0C4DA2;
  text-decoration: none;
  margin-top: auto;
}

.news-read-more:hover {
  text-decoration: underline;
  color: #0a3d83;
}




/* =============================================
   Home Page Specific Styles
   ============================================= */
.home-video-section {
  height: 125vh !important;
  /* Increased by 25% from 100vh */
}

.home-video-section .video-content {
  height: 125vh !important;
  /* Ensure content container matches section height */
}

/* =============================================
   Rounded Table Styles
   ============================================= */
.table-rounded {
  border-radius: 10px;
  overflow: hidden;
}

.table-rounded table {
  margin-bottom: 0;
}

/* Center-aligned table cells */
.table-center td,
.table-center th {
  text-align: center;
  vertical-align: middle;
}

/* PDF Link Styles */
.pdf-link {
  text-decoration: none;
  color: #0c4da2;
  font-weight: bold;
  transition: color 0.2s ease;
}

.pdf-link:hover {
  color: #083a7a;
}

.pdf-link .bi-file-earmark-pdf {
  color: red;
}

/* =============================================
   Profile & Feature Box Styles
   ============================================= */
.profile-section {
  padding: 60px 0;
}

.profile-img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 100%;
}

.profile-img:hover {
  transform: translateY(-5px);
}

.profile-content h3 {
  color: #003366;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.profile-content h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #ff9900;
}

.feature-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  height: 100%;
  transition: all 0.3s ease;
  border-bottom: 4px solid transparent;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-bottom-color: #003366;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: #ff9900;
  margin-bottom: 15px;
}

.feature-title {
  color: #003366;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.feature-text {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.list-icon {
  color: #003366;
  margin-right: 10px;
}

/* Professional Code Page Styles */
.code-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  margin-bottom: 2rem;
  overflow: hidden;
}

.code-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.code-header {
  padding: 1.5rem 2rem;
  color: #fff;
  display: flex;
  align-items: center;
}

.code-header i {
  font-size: 1.8rem;
  margin-right: 15px;
  background: rgba(255, 255, 255, 0.2);
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.code-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.4rem;
}

.code-list {
  padding: 2rem;
}

.code-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 35px;
  line-height: 1.6;
  color: #4a5568;
  font-size: 1.05rem;
  list-style: none;
}

.code-list li::before {
  content: "\F28A"; /* Bootstrap Icon Check Circle Fill */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.2rem;
}

/* Specific Header Colors based on your theme */
.header-students {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.header-students + .code-list li::before {
  color: #4facfe;
}

.header-teachers {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.header-teachers + .code-list li::before {
  color: #43e97b;
}

.header-governing {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}
.header-governing + .code-list li::before {
  color: #fa709a;
}

.header-principal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.header-principal + .code-list li::before {
  color: #667eea;
}

.header-staff {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}
.header-staff + .code-list li::before {
  color: #fda085;
}

.intro-text {
  font-size: 1.15rem;
  color: #2d3748;
  line-height: 1.8;
  border-left: 5px solid #0c4da2;
  padding-left: 20px;
  border-radius: 4px;
  background-color: #f8f9fa;
}

/* Rules and Regulations Page Styles */
.rules-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

.rules-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header-custom {
  padding: 1.25rem 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
}

.card-header-working {
  background: linear-gradient(135deg, #0c4da2 0%, #1a73e8 100%);
}
.card-header-rules {
  background: linear-gradient(135deg, #e53935 0%, #ff5252 100%);
}
.card-header-attendance {
  background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
}
.card-header-leave {
  background: linear-gradient(135deg, #fb8c00 0%, #ffa726 100%);
}
.card-header-holidays {
  background: linear-gradient(135deg, #8e24aa 0%, #ab47bc 100%);
}

.card-header-custom i {
  font-size: 1.5rem;
  margin-right: 12px;
  background: rgba(255, 255, 255, 0.2);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-title-custom {
  margin: 0;
  font-weight: 700;
  font-size: 1.25rem;
}

.working-hours-table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.working-hours-table th {
  width: 40%;
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
}

.working-hours-table td {
  color: #0c4da2;
  font-weight: 700;
}

.rules-list {
  padding-left: 0;
  list-style: none;
}

.rules-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #4a5568;
}

.list-icon-rules::before {
  content: "\F28A"; /* check-circle-fill */
  color: #e53935;
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.1rem;
}

.list-icon-attendance::before {
  content: "\F28A"; /* check-circle-fill */
  color: #43a047;
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.1rem;
}

.list-icon-leave::before {
  content: "\F28A"; /* check-circle-fill */
  color: #fb8c00;
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.1rem;
}

/* Stakeholder Feedback Page Styles */
.feedback-table th {
  background-color: #0c4da2;
  color: white;
  padding: 15px;
  font-weight: 600;
}

.feedback-table td {
  vertical-align: middle;
  padding: 12px 15px;
}

.btn-view-download {
  background-color: #ff9800;
  color: white;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-view-download:hover {
  background-color: #e68900;
  color: white;
}

.btn-view-download i {
  font-size: 1.1rem;
}
