
/* Pagination buttons */
/* .pagination {
  width: 100%;
  max-width: 1200px;   /* same as gallery width 
  margin-top: 25px;
  display: flex;
  justify-content: center;  /* center the buttons as a group 
  gap: 15px;                /* space between Prev and Next 
  align-items: center;
} */

.pagination button {
  width: auto;       /* prevents full-width buttons */
  display: inline-flex; 
  white-space: nowrap;
}

button:focus {
  background-color: #9E8017 !important;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
  background-color: #F1B30C;  /* hover color */
  color: #fff;             /* optional, keeps text white */
}

/******************************************************************************/
/* ADMISSION and CURRICULUM BUTTON */
/******************************************************************************/
.cta-actions {
  margin: 20px 0;
  text-align: center;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cta-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  color: #fff;
  min-width: 200px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  background-color: #9E8017;
}

/* Individual Button Colors */
.cta-btn { 
background-color: #132153;  }

/* 📱 Mobile: stacked, full width */
@media (max-width: 576px) {
  .admissions-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btn {
    width: 50%;
  }
}

/******************************************************************************/
/* MEDIA GALLERY */
/******************************************************************************/
.media-gallery-images {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.media-gallery-images:not(.hidden) {
    display: flex;
}
.media-image-thumb {
    flex: 0 1 200px;
    position: relative;  /* create stacking context */
/* overflow: visible;   allow image to overflow */
}

.media-gallery-img {
width: 100%;
height: auto;
border-radius: 4px;
transition: transform 0.3s ease;
will-change: transform;
display: block;
position: relative; /* for z-index to work */
z-index: 1;         /* base z-index */
}

.media-gallery-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.media-toggle-btn,
.media-toggle-btn.active,
.media-toggle-btn:focus,
.media-toggle-btn:active {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 1.1rem;
  line-height: 1.4;
  color: white;
  background-color: #b8b7b7;
  border: 2px solid transparent;
  margin: 10px 0 5px 0;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 42px;
  border-radius: 4px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.media-gallery-images {
    display: none;
    flex-wrap: wrap;
    justify-content: center; /* 👈 centers the thumbnails */
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px; /* add bottom space */
}

.media-toggle-btn:hover {
  background-color:#9E8017;
}

.media-toggle-btn.active {
  background-color: #9E8017;
  border-color:none;
}

.media-toggle-btn:focus,
.media-toggle-btn:active {
    outline: none;
    box-shadow: none;
    background-color: #9E8017;
}

.media-gallery-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;  /* smooth transition */
    will-change: transform;           /* performance hint */
}

.media-gallery-img:hover {
    transform: scale(2.0);            /* zoom in to 110% */
    cursor: pointer;                  /* optional: cursor change */
     z-index: 10;        /* bring on top */
    box-shadow: 0 8px 16px rgba(0,0,0,0.3); /* optional shadow for pop */
}


/******************************************************************************/
/* GENERAL BUTTONS */
/******************************************************************************/
button {
  margin-top: 60px;
  padding: 10px 20px;
  background-color: #04003B;
  color: white;
  border: none;
  cursor: pointer;
  width: 100%;  /* Make it responsive */
  max-width: 200px;  /* Set a max width */
  box-sizing: border-box;
}

button:hover {
  background-color: #9E8017;
  color: #fff;
}

/* Flexbox container for the button */
.button-container {
  display: flex;
  justify-content: center;  /* Center button */
  margin-top: 60px;  /* Ensure space between button and other elements */
  margin-bottom: 20px;  /* Ensure space below the button */
}

/* Flex container for consent checkbox */
.consent-container {
  display: flex;
  justify-content: center;  /* Center consent text */
  margin-bottom: 40px;  /* Ensure space below consent text */
}

/* Further adjustments for extremely small screens */
@media (max-width: 320px) {
  button {
    width: 90%;  /* Button takes 90% width on mobile */
    margin-top: 30px;  /* Ensure enough space for button */
  }

  .consent-container {
    font-size: 12px;
    margin-bottom: 30px;  /* Add bottom margin to avoid overlap with button */
  }

  .g-recaptcha {
    margin-top: 10px;  /* Further reduce top margin on small screens */
  }
}

.contact-method-options {
    display: flex;
    gap: 20px;
    margin: 10px 0;
  }

 .contact-method-options label {
  display: inline-flex !important;
  align-items: center;
  margin-right: 20px;
  font-size: 16px;
}

.contact-method-options input[type="radio"] {
  margin-right: 6px;
}

  .contact-method-options input[type="radio"] {
    margin-right: 6px;
  }


  /* Ensure mobile portrait layout stacks properly */
@media (max-width: 480px) {
  .consent-container {
    flex-direction: column; /* Stack content vertically */
    align-items: center;
    margin-bottom: 20px; /* Space below consent text */
  }

  .button-container {
    margin-top: -30px; /* Reduce extra top margin for mobile */
    margin-bottom: 40px; /* Ensure spacing below */
    width: 100%; /* Full width on small screens */
  }

  button {
    width: 90%; /* Make button slightly smaller than screen width */
    max-width: none; /* Remove desktop max-width */
  }
}

/******************************************************************************/
/* FAQS */
/******************************************************************************/
/* ===== CHROME MOBILE HORIZONTAL SCROLL FIX ===== */
.faq-title,
.rule-title {
    min-width: 0;      /* allows flex items to shrink properly in Chrome */
    flex-shrink: 1;    /* prevents text + arrow from overflowing */
    white-space: normal;
    word-break: break-word;
}

.faq-section,
.faq-container {
    min-width: 0;      /* prevents container overflow in Chrome */
}

.faq-section {
    width: 100%;
    margin: 0;
    padding: 0 16px; /* 👈 adds the missing side spacing */
    box-sizing: border-box;
}

.faq-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px; /* 👈 ensure consistent spacing */
}


/* ===== ITEM ===== */
.rule-item, .faq-item {
    width: 100% ;
    margin-bottom: 1rem;
    border-bottom: 1.2px solid #132153;
    box-sizing: border-box;
}

/******************************************************************************/
/* FAQs RULE TITLE, BUTTON */
/******************************************************************************/
.faq-title,
.rule-title {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: left;
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    color: #132153;
    outline: none;
    margin-top: 15px;
    white-space: normal;        /* ✅ FIX */
    word-break: break-word;     /* ✅ FIX */
    max-width: 100%;
}

  a:hover {
    color: #04003B;               /* Color when hovered */
    text-decoration: none; /* Optional underline on hover */
  }

/* Toggle icon */
.faq-toggle-icon,
.rule-toggle-icon {
    flex-shrink: 0;             /* arrow never shrinks */
    margin-left: 1rem;          /* spacing from text */
    font-size: 0.9rem;
    color: #132153;
    transition: transform 0.3s ease;
    user-select: none;
}

/* Rotate arrow when open */
.faq-item.open .faq-toggle-icon,
.rule-item.open .rule-toggle-icon {
    transform: rotate(90deg);
}

/* Hover text color only */
.faq-title:hover,
.rule-title:hover {
    color: #9E8017;
    background: none; /* ensure background stays transparent */
}

.rule-item.open .rule-toggle-icon,
.faq-item.open .faq-toggle-icon {
    transform: rotate(90deg);
}

/* ===== DESCRIPTION ===== */
.rule-desc, .faq-desc {
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    display: none;   /* hidden by default */
    padding: 0.5rem 0;
    color: #414960;
    font-size: 1.125rem;
}


.rule-title:focus,
.faq-title:focus,
.rule-title:active,
.faq-title:active {
    background-color: transparent !important; /* Remove green */
    box-shadow: none;
    outline: none;
}

.rule-desc ul,
.faq-desc ul {
    padding-left: 1.5rem;  /* Indent bullets */
    margin: 0.5rem 0;
    list-style-type: disc;   /* Show bullets */
}

.rule-desc ul li,
.faq-desc ul li {
    margin-bottom: 0.3rem;
}

/* ===== BULLETS ===== */
.rule-desc ul, .faq-desc ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}
.rule-desc ul li, .faq-desc ul li {
    list-style-type: disc;
    margin-bottom: 0.3rem;
}

/* ===== PAGINATION ===== */
.custom-pagination {
    margin-top: 1rem;
    text-align: center;
}
.custom-pagination .page-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #132153;
    color: #fff;
    text-decoration: none;
}
.custom-pagination .page-number {
    margin: 0 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .rule-title, .faq-title { font-size: 1rem; }
    .rule-desc, .faq-desc { font-size: 0.9rem; }
}

/*Rules and Policies Pagination*/
.pagination {
  text-align: center;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-btn {
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.pagination-btn:hover {
  background-color: #0056b3;
}

.page-number {
  font-weight: bold;
  margin: 0 10px;
}

.custom-pagination {
  max-width: 800px;
  width: 100%;
  margin: 2rem auto 1rem;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-btn {
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: #132153;
}

.page-btn:hover {
  color: #132153;
  border-color:none;
  background: #9E8017;
}

.page-number {
  font-weight: bold;
  color: #444;
  font-size: 1rem;
}

/*Giving*/
.donate-button-wrapper {
  text-align: center;
  margin: 20px 0;
}

.donate-button {
  background-color: #007BFF;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  display: inline-block;
}

.donate-button:hover {
  background-color: #0056b3;
}