:root {
  --aps-yellow: #ffcf33;
  --aps-blue: #1a4db3;
  --aps-blue-dark: #143a86;
  --aps-light: #f5f8ff;
  --aps-dark: #0c1b33;
  --aps-muted: #6b7a90;
  --aps-white: #ffffff;
  --shadow-soft: 0 12px 35px rgba(19, 48, 117, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Nunito", "Poppins", sans-serif;
  color: var(--aps-dark);
  background-color: #ffffff;
  scroll-behavior: smooth;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid rgba(26, 77, 179, 0.45);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  max-width: 1200px;
}

.top-bar {
  background: var(--aps-yellow);
  color: var(--aps-blue);
  font-weight: 600;
}

.top-link {
  color: var(--aps-blue);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.top-divider {
  width: 1px;
  height: 16px;
  background: rgba(26, 77, 179, 0.4);
}

.social-link {
  color: var(--aps-blue);
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover,
.social-link:focus {
  color: var(--aps-blue-dark);
  transform: translateY(-2px);
}

.navbar {
  background: var(--aps-white);
  padding: 0.6rem 0;
  backdrop-filter: blur(6px);
}

.navbar-brand {
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.school-name {
  font-weight: 800;
  font-size: 2rem;
  color: var(--aps-blue);
}

.school-tagline {
  font-size: 1.1rem;
  color: var(--aps-muted);
}

.brand-strip {
  background: #fff;
  padding: 1rem 0 0.8rem;
  border-bottom: 1px solid rgba(12, 27, 51, 0.08);
}

.brand-strip .container {
  justify-content: space-between;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

 .brand-strip .brand-text {
  align-items: flex-start;
  text-align: left;
}

.admission-badge-image {
  display: block; /* Ensures margin-left: auto works */
  margin-left: 0;
  height: 100px;
  width: auto;
  object-fit: contain;
  background-color: transparent;
  /* This creates a shadow around the badge shape, not the square file */
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1)); 
}

.brand-logo {
  display: block; 
  /* Push the empty space to the right to keep logo at the start */
  margin-right: 0; 
  margin-left: 0; 
  
  height: 100px;
  width: auto;
  object-fit: contain;
  background-color: transparent;
  
  /* Fixed the double semicolon from the previous snippet */
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1)); 
}

@media (min-width: 768px) {
  .brand-strip .brand-text {
    align-items: flex-start;
    text-align: left;
  }
}

.navbar .nav-link {
  font-weight: 600;
  color: var(--aps-dark);
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.navbar .navbar-nav {
  gap: 0.55rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  background: rgba(26, 77, 179, 0.1);
  color: var(--aps-blue);
}

.navbar .dropdown-menu {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-soft);
  padding: 0.6rem;
}

.navbar .dropdown-item {
  border-radius: 12px;
  font-weight: 600;
}

.navbar .dropdown-item:hover {
  background: var(--aps-light);
  color: var(--aps-blue);
}

.btn-primary {
  background: var(--aps-blue);
  border-color: var(--aps-blue);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--aps-blue-dark);
  border-color: var(--aps-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(19, 48, 117, 0.2);
}

.btn-outline-primary {
  border-radius: 999px;
  font-weight: 700;
  border-width: 2px;
  transition: all 0.3s ease;
}

.btn-outline-light {
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, rgba(255, 207, 51, 0.35), rgba(26, 77, 179, 0.12));
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: rgba(26, 77, 179, 0.1);
  border-radius: 50%;
  top: -120px;
  right: -120px;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: rgba(255, 207, 51, 0.3);
  border-radius: 50%;
  bottom: -120px;
  left: -80px;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--aps-muted);
}

.admissions-badge {
  background: var(--aps-yellow);
  color: var(--aps-blue-dark);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--aps-blue);
}

.hero-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(19, 48, 117, 0.18);
}

.hero-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-card-info {
  padding: 1.5rem 1.6rem 2rem;
}

.link-arrow {
  font-weight: 700;
  color: var(--aps-blue);
}

.carousel-section {
  margin-top: -40px;
}

.carousel-item img {
  height: 480px;
  object-fit: cover;
  filter: saturate(1.05);
}

.carousel-caption {
  background: rgba(12, 27, 51, 0.6);
  border-radius: 18px;
  padding: 1rem 1.5rem;
}

.stats-section {
  padding: 3rem 0;
  background: var(--aps-white);
}

.stat-card {
  background: var(--aps-light);
  border-radius: 20px;
  text-align: center;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-number {
  font-size: 2.2rem;
  color: var(--aps-blue);
  font-weight: 800;
}

.section-padding {
  padding: 4.5rem 0;
}

.bg-soft {
  background: var(--aps-light);
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-weight: 800;
  margin-top: 0.6rem;
}

.section-heading p {
  color: var(--aps-muted);
}

.section-badge {
  display: inline-block;
  background: rgba(26, 77, 179, 0.1);
  color: var(--aps-blue);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.info-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(19, 48, 117, 0.18);
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 207, 51, 0.3);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--aps-blue);
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.feature-list i {
  color: var(--aps-blue);
}

.image-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(19, 48, 117, 0.18);
}

.image-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.image-card-body {
  padding: 1.4rem;
}

.video-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.video-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 27, 51, 0.5);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1.5rem;
}

.pill {
  background: #fff;
  color: var(--aps-blue);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.team-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(19, 48, 117, 0.18);
}

.team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  background: #fff;
  padding: 1.2rem;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.timeline-date {
  font-weight: 700;
  color: var(--aps-blue);
  min-width: 90px;
}

.event-card {
  background: #fff;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
}

.career-card {
  background: var(--aps-blue);
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.career-card ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
}

.career-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-weight: 600;
}

.contact-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.contact-card a {
  font-weight: 700;
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.form-control,
.form-select {
  border-radius: 16px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(12, 27, 51, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(26, 77, 179, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(26, 77, 179, 0.15);
}

.footer-section {
  background: var(--aps-dark);
  color: #fff;
  padding: 3rem 0 1.5rem;
}

.footer-logo {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #fff;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--aps-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991px) {
  .navbar .nav-link {
    margin-bottom: 0.4rem;
  }

  .navbar-brand {
    gap: 1rem;
  }

  .brand-logo {
    width: 110px;
    height: 95px;
  }

  .admission-badge-image {
    height: 60px;
    margin-left: 0;
  }

  .hero-card img {
    height: 260px;
  }

  .carousel-item img {
    height: 360px;
  }
}

@media (max-width: 767px) {
  .top-bar {
    text-align: center;
  }

  .brand-logo {
    width: 90px;
    height: 78px;
  }

  .admission-badge-image {
    height: 54px;
  }

  .carousel-section {
    margin-top: 0;
  }

  .carousel-item img {
    height: 280px;
  }

  .timeline-item {
    flex-direction: column;
  }
}

/* ============================================
   Admission Pages Styles
   ============================================ */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, rgba(255, 207, 51, 0.15), rgba(26, 77, 179, 0.08));
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(12, 27, 51, 0.08);
}

.breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: var(--aps-blue);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-item.active {
  color: var(--aps-muted);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--aps-blue);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--aps-muted);
}

/* Content Cards */
.content-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(19, 48, 117, 0.16);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aps-yellow), rgba(255, 207, 51, 0.6));
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: var(--aps-blue);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(255, 207, 51, 0.3);
}

.content-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--aps-blue);
  margin-bottom: 1.2rem;
}

.content-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--aps-dark);
}

.content-body p {
  margin-bottom: 1rem;
}

/* Rules List */
.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(26, 77, 179, 0.04);
  border-radius: 12px;
  transition: background 0.3s ease;
}

.rules-list li:hover {
  background: rgba(26, 77, 179, 0.08);
}

.rules-list li i {
  color: var(--aps-blue);
  font-size: 1.3rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.rules-list li span {
  font-weight: 600;
  color: var(--aps-dark);
}

/* Call to Action Card */
.cta-card {
  background: linear-gradient(135deg, var(--aps-blue), var(--aps-blue-dark));
  color: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-soft);
}

.cta-content h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-content p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-buttons .btn {
  white-space: nowrap;
}

.cta-buttons .btn-outline-primary {
  border-color: #fff;
  color: #fff;
}

.cta-buttons .btn-outline-primary:hover {
  background: #fff;
  color: var(--aps-blue);
}

/* Form Styles */
.form-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--aps-blue);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(26, 77, 179, 0.15);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-label {
  font-weight: 600;
  color: var(--aps-dark);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(12, 27, 51, 0.12);
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--aps-blue);
  box-shadow: 0 0 0 0.25rem rgba(26, 77, 179, 0.15);
}

.form-check-input {
  border-radius: 6px;
  border: 2px solid rgba(12, 27, 51, 0.2);
  width: 1.2em;
  height: 1.2em;
}

.form-check-input:checked {
  background-color: var(--aps-blue);
  border-color: var(--aps-blue);
}

.form-check-label {
  font-weight: 600;
  color: var(--aps-dark);
}

.invalid-feedback {
  font-weight: 600;
}

.form-text {
  color: var(--aps-muted);
  font-size: 0.9rem;
}

/* Alert Styles */
.alert {
  border-radius: 16px;
  border: none;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
}

.alert-success {
  background: rgba(25, 135, 84, 0.12);
  color: #146c43;
}

.alert-success i {
  font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .page-title {
    font-size: 2rem;
  }

  .content-card {
    padding: 1.8rem;
  }

  .card-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .content-title {
    font-size: 1.5rem;
  }

  .cta-card {
    padding: 2rem;
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* ============================================
   Facilities Page Styles
   ============================================ */

/* Facility Sections */
.facility-section {
  position: relative;
}

.facility-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.facility-image-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(19, 48, 117, 0.2);
}

.facility-image {
  border-radius: 24px;
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.facility-image-wrapper:hover .facility-image {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.facility-content {
  padding: 1rem;
}

.facility-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aps-yellow), rgba(255, 207, 51, 0.7));
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--aps-blue);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(255, 207, 51, 0.35);
  transition: transform 0.3s ease;
}

.facility-icon:hover {
  transform: rotate(360deg);
}

.facility-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--aps-blue);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.facility-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--aps-dark);
  margin-bottom: 1rem;
  text-align: justify;
}

/* Clubs List Badges */
.clubs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.club-badge {
  background: linear-gradient(135deg, var(--aps-blue), var(--aps-blue-dark));
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 15px rgba(26, 77, 179, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(26, 77, 179, 0.35);
}

.club-badge i {
  font-size: 1.1rem;
}

/* Responsive Adjustments for Facilities */
@media (max-width: 991px) {
  .facility-title {
    font-size: 1.7rem;
  }

  .facility-content {
    padding: 0.5rem;
  }

  .facility-icon {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
  }
}

@media (max-width: 767px) {
  .facility-title {
    font-size: 1.5rem;
  }

  .facility-description {
    font-size: 1rem;
    text-align: left;
  }

  .facility-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .clubs-list {
    gap: 0.6rem;
  }

  .club-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Reset order on mobile for better stacking */
  .facility-section .order-md-2,
  .facility-section .order-md-1 {
    order: 0 !important;
  }
}

/* ============================================
   School Safety Page Styles
   ============================================ */

/* Safety Card */
.safety-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.safety-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(19, 48, 117, 0.18);
}

.safety-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aps-yellow), rgba(255, 207, 51, 0.7));
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--aps-blue);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(255, 207, 51, 0.35);
  transition: transform 0.4s ease;
}

.safety-card:hover .safety-icon {
  transform: scale(1.1) rotate(5deg);
}

.safety-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--aps-blue);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.safety-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--aps-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.safety-subtitle i {
  font-size: 1.3rem;
}

/* Safety List */
.safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.safety-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(26, 77, 179, 0.04);
  border-radius: 12px;
  border-left: 4px solid var(--aps-blue);
  transition: all 0.3s ease;
}

.safety-list li:hover {
  background: rgba(26, 77, 179, 0.08);
  border-left-color: var(--aps-yellow);
  transform: translateX(5px);
}

.safety-list li i {
  color: var(--aps-blue);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.safety-list li span {
  font-weight: 600;
  color: var(--aps-dark);
  line-height: 1.6;
}

/* Alert Info Box */
.alert-info {
  background: rgba(13, 202, 240, 0.1);
  border: 2px solid rgba(13, 202, 240, 0.3);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.alert-info i {
  font-size: 1.4rem;
  color: #0dcaf0;
}

/* Safety Table Styles */
.table-responsive {
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(19, 48, 117, 0.08);
  overflow: hidden;
}

.table {
  margin-bottom: 0;
}

.table thead.table-primary {
  background: linear-gradient(135deg, var(--aps-blue), var(--aps-blue-dark));
  color: #fff;
}

.table thead th {
  font-weight: 700;
  padding: 1.2rem 1rem;
  border: none;
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(26, 77, 179, 0.08);
  transform: scale(1.01);
}

.table tbody td {
  padding: 1rem;
  font-weight: 600;
  color: var(--aps-dark);
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 207, 51, 0.05);
}

/* Responsive Adjustments for Safety Page */
@media (max-width: 991px) {
  .safety-title {
    font-size: 1.7rem;
  }

  .safety-subtitle {
    font-size: 1.1rem;
  }

  .safety-icon {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
  }
}

@media (max-width: 767px) {
  .safety-card {
    padding: 1.8rem;
  }

  .safety-title {
    font-size: 1.5rem;
  }

  .safety-subtitle {
    font-size: 1rem;
  }

  .safety-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .safety-list li {
    padding: 0.6rem 0.8rem;
  }

  .table thead th,
  .table tbody td {
    padding: 0.8rem 0.6rem;
    font-size: 0.9rem;
  }
}

/* ==========================================
   GALLERY PAGE STYLES
   ========================================== */

/* Gallery Hero Section */
.gallery-hero {
  background: linear-gradient(135deg, rgba(255, 207, 51, 0.15), rgba(26, 77, 179, 0.08));
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(12, 27, 51, 0.08);
}

.gallery-hero::before {
  display: none;
}

.gallery-hero .breadcrumb {
  background: transparent;
  margin-bottom: 1rem;
}

.gallery-hero .breadcrumb-item a {
  color: var(--aps-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.gallery-hero .breadcrumb-item a:hover {
  color: var(--aps-blue-dark);
}

.gallery-hero .breadcrumb-item.active {
  color: var(--aps-muted);
}

.gallery-hero .breadcrumb-item + .breadcrumb-item::before {
  color: var(--aps-muted);
}

.gallery-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--aps-blue);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.gallery-hero-subtitle {
  font-size: 1.1rem;
  color: var(--aps-muted);
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* Gallery Section */
.gallery-section {
  position: relative;
}

.gallery-section .section-header {
  position: relative;
}

.gallery-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.gallery-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.gallery-section .section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-top: 20px;
}

/* Gallery Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 77, 179, 0.9) 0%, rgba(20, 58, 134, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 3rem;
  color: var(--primary-color);
  animation: zoomPulse 1.5s ease-in-out infinite;
}

@keyframes zoomPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Styling */
#imageModal .modal-content {
  background: rgba(0, 0, 0, 0.95);
  border: none;
  border-radius: 0;
}

#imageModal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.8);
}

#imageModal .modal-title {
  color: white;
  font-weight: 600;
}

#imageModal .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

#imageModal .btn-close:hover {
  opacity: 1;
}

#imageModal .modal-body {
  padding: 0;
  background: #000;
}

#imageModal img {
  max-height: 80vh;
  width: auto;
  margin: 0 auto;
}

/* Responsive Design for Gallery */
@media (max-width: 768px) {
  .gallery-hero-title {
    font-size: 2rem;
  }

  .gallery-hero-subtitle {
    font-size: 1rem;
  }

  .gallery-section .section-title {
    font-size: 1.8rem;
  }

  .gallery-section .section-subtitle {
    font-size: 0.95rem;
  }

  .gallery-img {
    height: 220px;
  }

  .gallery-overlay i {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .gallery-hero {
    padding: 50px 0 40px;
  }

  .gallery-hero-title {
    font-size: 1.6rem;
  }

  .gallery-hero-subtitle {
    font-size: 0.9rem;
  }

  .gallery-img {
    height: 180px;
  }

  .gallery-item {
    border-radius: 8px;
  }
}