/* ===== NGONG TOWNSHIP SCHOOL - MAROON & CREAM THEME ===== */

/* Bootstrap CSS variable overrides */
:root {
  --primary: #550000;
  --secondary: #2d0000;
}

/* Text colors */
.text-primary { color: #550000 !important; }
.text-secondary { color: #2d0000 !important; }

/* Background colors */
.bg-primary { background-color: #550000 !important; }
.bg-secondary { background-color: #2d0000 !important; }

/* Button primary */
.btn-primary {
  color: #f5f0e8 !important;
  background-color: #550000 !important;
  border-color: #550000 !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #3d0000 !important;
  border-color: #3d0000 !important;
}

/* Button secondary */
.btn-secondary {
  color: #f5f0e8 !important;
  background-color: #2d0000 !important;
  border-color: #2d0000 !important;
}
.btn-secondary:hover {
  background-color: #1a0000 !important;
  border-color: #1a0000 !important;
}

/* Button outline primary */
.btn-outline-primary {
  color: #550000 !important;
  border-color: #550000 !important;
}
.btn-outline-primary:hover {
  background-color: #550000 !important;
  color: #f5f0e8 !important;
}

/* Border */
.border-primary { border-color: #550000 !important; }

/* Facility cards - override border-top */
.d-flex.bg-light.shadow-sm.border-top { border-top-color: #550000 !important; }
.border-top { border-top-color: #550000 !important; }

/* Links */
a { color: #550000; }
a:hover { color: #3d0000; }

/* Section title */
.section-title { color: #550000; }
.section-title::before { background: #550000; }

/* Navbar active/hover */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active { color: #550000; }

/* Navbar nav-link default color */
.navbar-light .navbar-nav .nav-link { color: #2d0000; }

/* Team social overlay */
.team .team-social { background: rgba(85, 0, 0, 0.85); }

/* Portfolio overlay */
.portfolio-btn { background-color: #550000 !important; }

/* Testimonial carousel dot active */
.testimonial-carousel .owl-dot.active { background: #550000 !important; }
.testimonial-carousel .owl-dot span { background: #550000; }

/* Post carousel nav arrows */
.post-carousel .owl-nav .owl-prev,
.post-carousel .owl-nav .owl-next {
  color: #f5f0e8 !important;
  background: #550000 !important;
}

/* Contact page icons */
.bg-primary.text-secondary {
  background-color: #550000 !important;
  color: #f5f0e8 !important;
}

/* Navbar brand */
.navbar-brand.text-secondary { color: #2d0000 !important; }

/* Card header bg-secondary */
.card-header.bg-secondary { background-color: #2d0000 !important; }

/* Footer border override */
.container-fluid[style*="border-top"] {
  border-top-color: rgba(85, 0, 0, 0.3) !important;
}

/* Pagination active */
.page-item.active .page-link {
  background-color: #550000 !important;
  border-color: #550000 !important;
  color: #f5f0e8 !important;
}
.page-link {
  color: #550000 !important;
}
.page-link:hover {
  color: #3d0000 !important;
}

/* Badge primary */
.badge-primary {
  background-color: #550000 !important;
}

/* Cream background for light sections */
.bg-cream { background-color: #f5f0e8 !important; }

/* Input group search icon */
.input-group-text.text-primary { color: #550000 !important; }

/* Alert success override */
.alert-success {
  border-color: #550000;
}

/* Navbar brand school name styling */
.school-name-short {
  font-size: 28px;
  line-height: 1.1;
  color: #550000;
  font-family: 'Handlee', cursive;
}
.school-name-full {
  display: block;
  font-size: 13px;
  color: #2d0000;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-family: 'Nunito', sans-serif;
}

/* ===== AVATAR PLACEHOLDERS (for staff/parents without photos) ===== */
.team-avatar-placeholder {
  width: 100%;
  padding-top: 100%; /* square */
  background-color: #f5f0e8;
  border: 3px solid #550000;
  border-radius: 50%;
  position: relative;
}
.team-avatar-placeholder i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: #550000;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  min-width: 70px;
  background-color: #550000;
  font-size: 2rem;
  color: #f5f0e8;
}
.testimonial-avatar i {
  font-size: 2rem;
}

/* ===== CLASS CARD IMAGES ===== */
.card-img-top {
  height: 220px;
  object-fit: cover;
}

/* Hero image on home page */
.container-fluid.bg-primary img.rounded {
  border: 4px solid rgba(245, 240, 232, 0.3);
}

/* Back to top button */
.back-to-top {
  background-color: #550000 !important;
  border-color: #550000 !important;
  color: #f5f0e8 !important;
}
.back-to-top:hover {
  background-color: #3d0000 !important;
}

/* List group items */
.list-group-item a { color: #550000; }
.list-group-item a:hover { color: #3d0000; }

/* ===== GALLERY — fixed height so Isotope layout is stable ===== */
.portfolio-container .portfolio-item img {
  height: 230px;
  object-fit: cover;
  width: 100%;
  display: block;
}

/* Hero carousel indicators */
#heroCarousel .carousel-indicators li {
  background-color: rgba(245, 240, 232, 0.6);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
#heroCarousel .carousel-indicators li.active {
  background-color: #f5f0e8;
}
