.page-content {
  padding: 0 16px;
}

.page-content p {
  margin-bottom: .75em !important;
  margin-top: .75em !important;
  font-size: 18.5px !important;
  font-weight: normal;
  line-height: 2.0625rem;
  text-align: left;
  padding-right: 30px;
}

.page-content, .page_content2, .page_content3 {
  max-width: 960px;
  margin: 40px auto;
  text-align: left;
  height: auto;
}

.page_content_h1, .page_content2_h1, .page_content3_h1 {
  font-size: 26px; /* Match other headers or make smaller */
  font-weight: 500;
  margin-bottom: 0.75em;
  text-align: left;
}

.page-content h3 + * {
  margin-top: 1em !important;
  margin-bottom: 1em !important;
  display: block;
  text-align: left;
}

.page_content_h3, .page_content2_h3, .page_content3_h3 {
  font-size: 22px;
  font-weight: 500;
  text-align: left;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/* Main page <h2> title *************************************************/
.page_page_title {
  font-size: 40px;
  font-weight: 200;
  margin-bottom: 1em;
}

/* sub-title *************************************************/
.page-content .page_content_h1 + .page_content_h1 {
    font-size: 25px;       /* smaller subtitle */
    font-weight: normal;   /* optional */
    margin-top: 0.5em;     /* optional spacing */
}

/* In-content title *************************************************/
.page_content_title {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 0.75em;
}

/* Subtitle inside the page content *************************************************/
.page_content_subtitle {
  font-size: 20px;
  font-weight: 400;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Paragraph/body text */
.page_content_description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 1em;
}

.page_content2 .middle-school-courses-section p.ms_curriculum {
    width: 888px;   /* same as page-content */
    height: 27px;   /* same as page-content */
}

.page-content, .page_content2, .page_content3  {
  max-width: 960px;
  margin: 40px auto;
  /*padding: 0 18px;*/
  text-align: left;
  /*min-height: 600px; /* or any desired base height */
  height: auto;
}

.page_content_h1, .page_content2_h1, .page_content3_h1 {
  font-size: 26px; /* Match other headers or make smaller */
  font-weight: 500;
  margin-bottom: 0.75em;
  text-align: left;
 
}

.page-content h3 + * {
  margin-top: 1em !important;
  margin-bottom: 1em !important;
  display: block;
  text-align: left;
}


.page_content_title,
.page_content_subtitle,
.page_content_description {
  max-width: 960px;
  margin: 0 auto;
}

.page_content_list {
  list-style-type: disc !important;
    padding-left: 20px;
    margin-bottom: 1em;
}


.core-values {
  font-size: 18px;        /* Adjust text size */
  color: #333;            /* Text color */
  line-height: 1.6;       /* Spacing between lines */
  list-style-type: disc;  /* Bullet style */
  padding-left: 20px;     /* Indentation for bullets */
  margin: 20px 0;         /* Spacing around list */
}

.core-values li {
  margin-bottom: 10px;    /* Space between bullet items */
}

/*breadcrumb*/
.breadcrumb-sep {
  color: #ccc; /* or any color you want */
  margin: 0 5px;
  user-select: none; /* prevent user from accidentally selecting arrows */
}

/******************************************************************************/
/* ACADEMIC PROGRAMS */
/******************************************************************************/
/* Wrapper that adds padding around the gallery */
.program-gallery-wrapper {
  padding: 1rem;
}

/* Grid layout: 4 columns per row by default */
.program-gallery-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem; /* vertical gap between rows & horizontal gap between columns */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .program-gallery-images {
    grid-template-columns: repeat(3, 1fr); /* 3 per row on medium screens */
  }
}

@media (max-width: 768px) {
  .program-gallery-images {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

@media (max-width: 480px) {
  .program-gallery-images {
    grid-template-columns: 1fr; /* 1 per row on small screens */
  }
}

/* Each image thumbnail box */
.program-image-thumb {
  width: 100%;
  height: 180px;
  position: relative;
}

/* Image container (for overlay control) */
.program-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

/* Image styling */
.program-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

/* Overlay appears on hover */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); /* dark overlay */
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center;     /* horizontal centering */
  text-align: center;
  padding: 1rem;
  transition: opacity 0.3s ease-in-out;
}


/* Force white text on overlay */
.image-overlay,
.image-overlay * {
  color: #fff !important;
}

/* On hover: show overlay and dim image */
.program-image-container:hover .image-overlay {
  opacity: 1;
  pointer-events: auto;
}

.program-image-container:hover .program-gallery-img {
  opacity: 0.2;
}

/* Read More button inside overlay */
.read-more {
  margin-top: 0.1rem;
  padding: 0.2rem 0.5rem;
  background-color: #007BFF;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease-in-out;
}

.read-more:hover {
  background-color: #9E8017;
}

.program-title {
  margin-top: 0.5rem;
  margin-bottom: 1rem; /* This is the key part */
  font-weight: 500 !important;
  text-align: center;
  color: #132153;
  font-size: 1.2rem;
}

.programs {
  text-align: center !important;
  color: #fff;
  font-size: 1rem !important;
  margin: 0 0 0.5rem 0.5rem;
  width: 100%;        /* ensures full width inside overlay */
}

/******************************************************************************/
/* ACADEMIC PROGRAMS-MIDDLE SCHOOL*/
/******************************************************************************/
.subjects-columns {
  padding-left: 20px;
}

/* Reset common ul/ol styles inside subjects-columns to avoid conflicts */
.subjects-columns ul,
.subjects-columns ol {
  list-style: disc !important;
  margin: 0;
  padding-left: 2em !important; /* space for bullets */
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
}

/* Force list items to show bullets */
.subjects-columns ul li,
.subjects-columns ol li {
  display: list-item !important;
  break-inside: avoid;
  margin-bottom: 6px;
}

.course-card p.ms_curriculum {
  font-size: 20px !important;
  color: #004080 !important;
  font-weight: 500;
}

/*video*/
.video-wrapper iframe {
    display: block;
}

p.sub-content1 h3{
   background-color:#fff;
    font-size: 28px; /* or whatever size you want */
    font-weight: normal; /* optional */
    color: #414960; /* optional */
}

.sub-content1 p {
  margin-bottom: 2em !important;
  font-size: 1.125rem;
  font-weight: 300;
  color: #414960;
  font-family: 'Roboto','Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
}

p.sub-content2 h3 {
    font-size: 28px; /* or whatever size you want */
    font-weight: normal; /* optional */
    color: #414960; /* optional */
}

.sub-content2 p {
  margin-bottom: 2em !important;
  font-size: 18px;
  font-weight: 300;
  color: #414960;
  font-family: 'Roboto','Open Sans','Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* UNIVERSAL STYLE - ALL CONTENT BLOCKS*************************************************/
.page_content_title,
.page_content_subtitle,
.page_content_description,
.page_content2_title,
.page_content2_subtitle,
.page_content2_description,
.page_content3_title,
.page_content3_subtitle,
.page_content3_description,
.page_page_title {
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: left;
}


/*PAGE-CONTENT *************************/


/* Main page <h2> title *************************************************/
.page_page_title {
  font-size: 40px;
  font-weight: 200;
  margin-bottom: 1em;
}

/* sub-title *************************************************/
.page-content .page_content_h1 + .page_content_h1 {
    font-size: 25px;       /* smaller subtitle */
    font-weight: normal;   /* optional */
    margin-top: 0.5em;     /* optional spacing */
}
/* In-content title *************************************************/
.page_content_title {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 0.75em;
}

/* Subtitle inside the page content *************************************************/
.page_content_subtitle {
  font-size: 20px;
  font-weight: 400;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #333;
}

/* Paragraph/body text */
.page_content_description {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1em;
}

.page_content_h3, .page_content2_h3, .page_content3_h3 {
  font-size: 22px;
  font-weight: 400;
  text-align: left;
  margin-top: 1em;
  margin-bottom: 0.5em;
  line-height: normal;
}

/******************************************************************************/
/* CERTIFICATION & REQUIREMENTS */
/******************************************************************************/
.ap-courses-table {
  border: 1px solid #ccc;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
}

.ap-courses-table caption {
  font-size: 1.5em;
  margin: .5em 0 .75em;
}

.ap-courses-table tr {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  padding: .35em;
}

.ap-courses-table th,
.ap-courses-table td {
  padding: .625em;
  text-align: center;
}

.ap-courses-table th {
  font-size: .85em;
  letter-spacing: .1em;
  text-transform: uppercase;
  background-color: #132153;
  color: #9E8017;
}

@media screen and (max-width: 600px) {
  .ap-courses-table {
    border: 0;
  }

  .ap-courses-table caption {
    font-size: 1.3em;
  }
  
  .ap-courses-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
     background-color: #132153;
  color: #9E8017;
  }
  
  .ap-courses-table tr {
    border-bottom: 3px solid #132153;
    display: block;
    margin-bottom: .625em;
  }
  
  .ap-courses-table td {
    border-bottom: 1px solid #132153;
    display: block;
    font-size: 1.2em;
    text-align: right;
    font-weight: 300;
  }
  
  .ap-courses-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  .ap-courses-table td:last-child {
    border-bottom: 0;
  }
}

