:root {
  --site-purple: #6f42c1;
  --site-green: #198754;
  --site-light-bg: rgba(0, 255, 55, 0.036);
}

/* Base Styles */
body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--site-light-bg);
}

/* Header & Navigation */
.top-bar {
  background: var(--site-purple);
  padding: 5px 0;
  font-size: 14px;
  color: white;
}

.top-bar a,
.top-bar i {
  color: white !important;
  transition: opacity 0.3s ease;
}

.top-bar a:hover {
  opacity: 0.8;
  text-decoration: none !important;
}

.school-header {
  background: linear-gradient(
    to right,
    rgba(100, 4, 160, 0.1),
    rgba(255, 255, 255, 0.8),
    rgba(100, 4, 160, 0.1)
  );
  padding-bottom: 0.5rem !important;
}

.school-title {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  color: var(--site-purple);
}

.school-motto {
  font-family: "Garamond", serif;
  font-style: italic;
  font-weight: 500;
}

.school-logo {
  height: 80px;
}

.announcement-bar {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

@media (min-width: 768px) {
  .announcement-bar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 70%;
  animation: scroll 15s linear infinite;
  font-size: 0.85rem;
}

.scrolling-text:hover {
  animation-play-state: paused;
}
.scrolling-text-wrapper {
  line-height: 1.2 !important;  /* Tighter line spacing */
}

.announcement-bar .badge {
  padding: 0.15em 0.4em !important;
  font-size: 0.75em !important;
}

.announcement-bar .btn {
  padding: 0.15rem 0.5rem !important;
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 575px) {
  .scrolling-text {
    animation-duration: 10s;
  }
  .btn {
    padding: 0.15rem 0.5rem;
    /* font-size: 0.75rem; */
  }
}
/* Navigation */
.navbar-wrapper {
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
}

.navbar-custom {
  padding: 0.2rem 1rem !important;
  transition: all 0.3s ease;
  background-color: white !important;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  border-radius: 0px 0px 100px 100px;
  background: linear-gradient(
    to right,
    rgba(174, 0, 255, 0.1),
    rgba(174, 0, 255, 0.1),
    rgba(174, 0, 255, 0.1)
  );
}

.nav-link {
  font-weight: 500;
  color: var(--site-green) !important;
  transition: all 0.3s ease;
  padding: 6px 8px !important;
  font-size: 1rem !important;
  position: relative;
}

.nav-link:hover {
  color: var(--site-purple) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 0.2rem !important;
  text-align: center;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
}

.dropdown-item {
  padding: 8px 16px;
  transition: all 0.2s ease;
  text-align: left !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f0f0f0;
  color: var(--site-purple) !important;
}

/* Sticky Navbar State */
.navbar-wrapper.sticky .navbar {
  background: var(--site-purple) !important;
  box-shadow: 0 5px 20px rgba(100, 4, 160, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1030;
  width: 100%;
  border-radius: 0px 0px 100px 100px;
}

.navbar-wrapper.sticky .nav-link,
.navbar-wrapper.sticky .dropdown-toggle {
  color: white !important;
}

.navbar-wrapper.sticky .dropdown-menu {
  background-color: rgba(100, 4, 160, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-wrapper.sticky .dropdown-item {
  color: white !important;
}

.navbar-wrapper.sticky .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Navbar Toggler */
.navbar-toggler {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  overflow: hidden;
  margin: 0 auto;
}

.navbar-toggler:focus {
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler-icon,
.close-icon {
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: opacity, transform;
}

.navbar-toggler-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
}

.navbar-toggler-icon.d-none,
.close-icon.d-none {
  display: none !important;
  opacity: 0;
  transform: scale(0.9);
}

.close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  color: #6f42c1;
  transition: all 0.2s ease;
}

.navbar-wrapper.sticky .close-icon {
  color: white !important;
}

.navbar-wrapper.sticky .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Carousel */
.carousel-inner img {
  max-height: 500px;
  object-fit: cover;
  width: 100%;
  border-radius: 8px;
}

.carousel-caption {
  background: rgba(39, 0, 69, 0.695);
  padding: 5px;
}

/* Card Styles */
.card-header-custom {
  background: var(--site-purple);
  color: white;
  font-size: 1.1rem;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border: none;
}

/* News & Announcements */
.news-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateY(-3px);
}

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.heading {
  color: var(--site-green);
  transition: color 0.3s ease;
  
}

.newsDetailTitle {
  font-weight: 600;
  color: var(--site-green);
  font-size: 1.25rem;
}

.heading:hover {
  color: var(--site-purple) !important;
}

.news-bulletin li {
  padding: 10px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.news-bulletin li:hover {
  background-color: #f9f9f9;
}

.news-bulletin li:last-child {
  border-bottom: none;
}

.news-content {
  line-height: 1.5;
}

.news-content ul {
  padding-left: 20px;
}

.announcement-list li {
  padding-left: 5px;
  border-left: 3px solid #e9ecef;
  transition: all 0.3s ease;
}

.announcement-list li:hover {
  border-left-color: var(--site-purple);
  background-color: #f8f9fa;
}

.featured-news {
  background-color: rgba(255, 193, 7, 0.05);
  border-left: 3px solid #ffc107;
  padding-left: 10px;
}
.badge {
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* Program List Styling */
.program-list {
  padding-left: 0.5rem;
}
@keyframes highlightBlink {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.highlight-animation {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(25, 135, 84, 0.5) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: highlightBlink 2s ease-in-out 1;
  /* border-bottom: 1px solid var(--site-purple) !important; */
  border-radius: 3px;
}

.program-list li {
  padding-left: 15px;
  border-left: 3px solid #e9ecef;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.program-list li:hover {
  border-left-color: var(--site-purple);
  background-color: #f8f9fa;
}

.program-list li:last-child {
  margin-bottom: 0;
}

/* Icon colors */
.program-list .text-info {
  color: #17a2b8;
}
.program-list .text-success {
  color: var(--site-green);
}
.program-list .text-primary {
  color: #007bff;
}
.program-list .text-purple {
  color: var(--site-purple);
}
.program-list .text-warning {
  color: #ffc107;
}
.program-list .text-secondary {
  color: #6c757d;
}

/* Staff & Profile Images */
.rounded-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
  margin-bottom: 1rem;
}

.rounded-img:hover {
  transform: scale(1.05);
}

.object-fit-cover {
  object-fit: cover;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

.team-member-item {
  transition: background-color 0.2s ease;
}

.team-member-item:hover {
  background-color: #f8f9fa;
}

.team-member-social a {
  transition: transform 0.2s ease;
}

.team-member-social a:hover {
  transform: translateY(-2px);
}
.text-email {
  color: #ea4335; /* Google-inspired red for email */
}
.text-phone {
  color: #34c759; /* Green commonly used for phone (e.g., iOS call button) */
}
.text-twitter {
  color: #000000; /* Black for X/Twitter */
}
.text-linkedin {
  color: #0a66c2; /* LinkedIn blue */
}
/* Stats Block */
.stats-block {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  border: 2px solid transparent;
}

.stats-block:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(157, 252, 192, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.counter {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--site-purple);
}

.stats-text {
  color: var(--site-purple);
}

/* Marquee */
.marquee-vertical {
  position: absolute;
  width: 100%;
  animation: marqueeVertical 30s linear infinite;
}

@keyframes marqueeVertical {
  0% {
    transform: translateY(0); /* Move upward */
  }
  100% {
    transform: translateY(calc(-100% + 200px)); /* Start below */
  }
}

.card-body:hover .marquee-vertical {
  animation-play-state: paused;
}

.gallery-marquee-container {
  padding: 0 1rem;
}

.gallery-marquee-track {
  animation: scroll 40s linear infinite;
  width: max-content;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-thumbnail {
  height: 150px;
  overflow: hidden;
  border-radius: 0.25rem;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.25rem;
}

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

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

.zoom-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 2px solid white;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.zoom-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.gallery-overlay-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gallery-overlay-modal.active {
  opacity: 1;
  visibility: visible;
}

.overlay-content {
  background: white;
  padding: 20px;
  border-radius: 0.5rem;
  max-width: 90%;
  max-height: 90vh;
  position: relative;
}

.overlay-image {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .gallery-thumbnail {
    height: 120px;
    width: 160px !important;
  }
  
  .zoom-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .gallery-marquee-track {
    animation-duration: 30s;
  }
}

/* Pause animation on hover */
.gallery-marquee-container:hover .gallery-marquee-track {
  animation-play-state: paused;
}

/* Footer */
.footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 30px 0;
  font-size: 1rem;
}

.footer h6 {
  font-size: 1.1rem;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--site-purple);
  text-decoration: underline;
}

.footer .fa {
  width: 16px;
  text-align: center;
  margin-right: 8px;
}

.footer .fa-map-marker-alt,
.footer .fa-phone,
.footer .fa-envelope {
  color: var(--site-green) !important;
}

.footer .fa-angle-right {
  color: var(--site-green) !important;
  margin-right: 8px;
}

.footer .quick-links a:hover .fa-angle-right {
  color: var(--site-purple) !important;
  transform: translateX(3px);
  transition: all 0.3s ease;
}

.designer-link {
  color: var(--site-purple) !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.designer-link:hover {
  opacity: 0.8;
}

.designer-credit-line {
  font-size: 0.8rem !important;
  line-height: 1.3;
  display: block;
  margin-top: 0.5rem;
}
.designer-credit-line a {
  color: var(--site-green);
}

/* Utility Classes */
.text-purple {
  color: var(--site-purple);
}

.star-divider {
  border: none;
  border-top: 2px solid var(--site-purple);
  margin: 10px 0;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Back to Top Button */
#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  display: none;
  z-index: 99;
  border: none;
  background-color: var(--site-purple);
  color: white;
  transition: all 0.3s ease;
}

#backToTopBtn:hover {
  background-color: var(--site-green);
  transform: translateY(-3px);
}

/* Container */
.wide-container {
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
}

/* Responsive Adjustments - Merged */
@media (max-width: 991.98px) {
  /* Navbar adjustments */
  #navbarNav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    line-height: 0.5;
    padding: 0.5rem 0;
    margin: 0.1rem 0;
  }

  .navbar-collapse {
    padding: 1rem 0;
  }

  .navbar-nav {
    width: 100%;
  }

  .dropdown-item {
    text-align: center !important;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .dropdown-menu {
    transition: none !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    margin: 0.5rem auto !important;
    width: 80%;
  }

  .navbar-wrapper.sticky .navbar-custom {
    background-color: var(--site-purple) !important;
  }

  .nav-item.dropdown.show .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  /* School header adjustments (originally in 767.98px) */
  .school-header > div {
    width: 90% !important;
  }

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

@media (max-width: 767.98px) {
  /* Keep these specific to smaller screens */
  .rounded-img {
    width: 15vw;
    height: 15vw;
    max-width: 100px;
    max-height: 100px;
  }
  .footer p,
  .footer .heading {
    margin-bottom: 0.75rem;
  }
  .footer .col-12 {
    margin-bottom: 1.5rem !important;
  }

  /* You could add any other mobile-specific styles here */
}

/* Dark footer option */
.fa-clock .fa-praying-hands {
  color: var(--site-purple);
}
.dark-footer {
  background-color: var(--site-purple);
  color: white;
}

.dark-footer a {
  color: #ddd;
}

.dark-footer a:hover {
  color: #ddd !important;
}

.dark-footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-footer .designer-link {
  color: #c792ea !important;
}

.dark-footer .designer-link:hover {
  color: #d6b1f6 !important;
}

.divider {
  height: 2px;
  background-color: var(--site-purple);
  width: 80px;
  margin: 0.05rem auto;
  opacity: 0.5;
}

/* Remove extra spacing from mobile dividers */
.col-12.d-md-none {
  margin-top: -0.5rem; /* Compensates for Bootstrap's row gap */
  margin-bottom: -0.5rem;
}

.col-12.d-md-none > .px-4 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Custom arrow styling */
.carousel-control-prev,
.carousel-control-next {
  width: auto; /* Remove default width */
  opacity: 1;
}

/* Center arrow icons in their circles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure proper spacing for content */
.prayer-slide {
  min-height: 200px;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.prayer-item:hover {
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
.prayer-list {
  padding-left: 0;
}
.fa-praying-hands {
  color: var(--site-purple) !important;
}

.video-item:hover {
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
.video-list {
  padding-left: 0;
}
.btn-outline-danger {
  border-color: #ff0000;
  color: #ff0000;
}
.btn-outline-danger:hover {
  background-color: #ff0000;
  color: white;
}

.contact-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}
.contact-item:hover {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.social-links .btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prayer-slide {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ===== Card Container Styles ===== */
.school-intro-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-intro-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* ===== Card Header Styles ===== */
.card-header-custom {
  background-color: #6f42c1;
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  border-bottom: none;
}

.card-header-custom i {
  font-size: 1.1rem;
}

/* ===== Portrait Image Styles ===== */
.school-portrait-wrapper {
  height: 100%;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  padding: 5px; /* Added padding */
}

.school-portrait {
  width: calc(100% - 30px); /* Adjust width to account for padding */
  height: calc(100% - 30px); /* Adjust height to account for padding */
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  margin: 15px; /* Added margin as alternative to padding */
  border-radius: 4px; /* Optional: slight rounding of image corners */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Optional: subtle depth */
}

/* Ensure the image container doesn't collapse */
.card-body .row {
  align-items: stretch; /* Makes columns equal height */
}
.school-portrait:hover {
  transform: scale(1.03);
}

/* ===== Content Area Styles ===== */
#newsDetailView {
  /* padding: 20px; */
}

.newsDetailTitle {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 10px;
}

.newsDetailTitle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: #6f42c1;
}

/* ===== List Item Styles ===== */
#newsDetailContent {
  line-height: 1.6;
  color: #4a5568;
}

.custom-bullet-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.custom-bullet-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid #edf2f7;
  transition: all 0.3s ease;
}

.custom-bullet-list li:last-child {
  border-bottom: none;
}

.custom-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236f42c1'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.custom-bullet-list li:hover {
  transform: translateX(5px);
  color: #2d3748;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .school-portrait-wrapper {
    padding: 10px;
    min-height: auto;
  }
  .school-portrait {
    width: calc(100% - 20px);
    height: auto;
    margin: 10px;
  }
  
  #newsDetailView {
    /* padding: 15px; */
  }
  
  .newsDetailTitle {
    font-size: 1.3rem;
  }
  
  .custom-bullet-list li {
    padding: 8px 0 8px 25px;
  }
}
