/*
Stella Maris College of Nursing - Custom Styles
*/
/*---------------------------------------
  CUSTOM PROPERTIES (VARIABLES)
-----------------------------------------*/
:root {
  --sm-primary:             #1a3a5c;
  --sm-primary-dark:        #0f2440;
  --sm-secondary:           #c8a951;
  --sm-secondary-light:     #e0c96e;
  --sm-accent:              #2980b9;
  --sm-light:               #f4f6f8;
  --sm-white:               #ffffff;
  --sm-dark:                #1a1a2e;
  --sm-text:                #333344;
  --sm-text-muted:          #6b7280;
  --sm-border:              #e2e5e9;
}

/*---------------------------------------
  HEADER & NAVBAR
-----------------------------------------*/
.site-header {
  background-color: var(--sm-primary-dark);
  border-bottom: 3px solid var(--sm-secondary);
}

.site-header p {
  color: var(--sm-light);
  font-size: 14px;
}

.site-header a {
  color: var(--sm-secondary-light);
}

.site-header a:hover {
  color: var(--sm-white);
}

.navbar {
  background-color: var(--sm-white) !important;
  border-bottom: 1px solid var(--sm-border);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0; /* keep full name visible, no overlap with menu */
}

.navbar-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-brand > span {
  font-size: 25px;
  font-weight: 700;
  color: #1565c0;
}

.navbar-brand small {
  font-size: 15px; /* sized so width matches "Stella Maris" */
  text-transform: none;
  line-height: inherit;
  text-align-last: justify; /* fine-tune: lines end flush */
  font-weight: 700;
  color: #1565c0;
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.nav-link {
  color: var(--sm-text) !important;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 10px !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sm-primary) !important;
}

/* Dropdown */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
}

.dropdown-item {
  padding: 8px 20px;
  font-size: 14px;
  color: var(--sm-text);
}

.dropdown-item:hover {
  background-color: var(--sm-light);
  color: var(--sm-primary);
}

/* Apply Now button */
.custom-btn {
  background-color: var(--sm-primary);
  color: var(--sm-white) !important;
  border: 2px solid var(--sm-primary);
  border-radius: var(--border-radius-large);
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.custom-btn:hover {
  background-color: var(--sm-secondary);
  border-color: var(--sm-secondary);
  color: var(--sm-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 169, 81, 0.4);
}

.custom-border-btn {
  background-color: transparent !important;
  color: var(--sm-primary) !important;
  border: 2px solid var(--sm-primary);
}

.custom-border-btn:hover {
  background-color: var(--sm-primary) !important;
  color: var(--sm-white) !important;
  border-color: var(--sm-primary);
}

/*---------------------------------------
  HERO SECTION
-----------------------------------------*/
.hero-section-full-height,
#hero-slide .carousel-item {
  height: auto;
  min-height: 0;
}

#hero-slide .carousel-image {
  min-height: 0; /* template forces 680px, overflows shorter mobile hero */
  object-fit: contain; /* show full photo, no crop */
  background: #fff;
  width: 100%;
  aspect-ratio: 3 / 2; /* fixed height across slides; contain letterboxes mismatched photos */
  max-height: 78vh; /* whole photo fits on screen */
  height: auto;
}

.carousel-caption {
  bottom: 25%;
  left: 10%;
  right: 10%;
  text-align: left;
}

.carousel-caption h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--sm-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}

.carousel-caption p {
  font-size: 20px;
  color: var(--sm-light);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/*---------------------------------------
  FEATURED BLOCKS
-----------------------------------------*/
.featured-block {
  background-color: var(--sm-white);
  border-radius: var(--border-radius-medium);
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}

.featured-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.featured-block-image {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  object-fit: contain;
}

.featured-block-text {
  font-size: 16px;
  color: var(--sm-text);
  margin: 0;
}

.featured-block-text strong {
  color: var(--sm-primary);
}

/*---------------------------------------
  SECTION STYLING
-----------------------------------------*/
.section-padding {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--sm-light);
}

.section-padding h2 {
  color: var(--sm-primary);
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 20px;
}

.section-padding h3 {
  color: var(--sm-primary-dark);
  font-weight: 600;
}

.section-padding h5 {
  color: var(--sm-primary);
  font-weight: 600;
}

/*---------------------------------------
  ABOUT / PHILOSOPHY SECTION
-----------------------------------------*/
.about-section {
  padding: 80px 0;
}

.about-image {
  border-radius: var(--border-radius-medium);
  width: 100%;
  max-width: 450px;
  height: auto;
  aspect-ratio: 1 / 1;
}

.custom-text-block h2 {
  color: var(--sm-primary);
  font-weight: 700;
}

.custom-text-block h5 {
  color: var(--sm-primary);
  font-weight: 600;
}

#welcome .custom-text-block {
  padding-left: 0; /* align text edges with the "Welcome" heading */
  padding-right: 0;
}

.custom-text-block p {
  color: var(--sm-text);
  line-height: 1.7;
}

/*---------------------------------------
  CTA SECTION
-----------------------------------------*/
.cta-section {
  padding: 60px 0;
}

.cta-section h2 {
  color: var(--sm-primary);
  font-weight: 700;
}

.cta-section a {
  color: var(--sm-accent);
  font-weight: 500;
  text-decoration: underline;
}

.cta-section a:hover {
  color: var(--sm-primary);
}

/*---------------------------------------
  CUSTOM BLOCK (CARDS)
-----------------------------------------*/
.custom-block-wrap {
  background-color: var(--sm-white);
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}

.custom-block-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.custom-block-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top; /* keep faces in portrait crops */
}

#section_4 .custom-block-image,
#councillors .custom-block-image,
#principal .custom-block-image {
  display: block; /* keeps size even when src is empty (no photo yet) */
  background: var(--section-bg-color);
  height: auto;
  aspect-ratio: 1 / 1; /* team photos are cropped square */
}

@media (min-width: 992px) {
  #section_4 .custom-block-wrap,
  #principal .custom-block-wrap {
    max-width: 420px; /* smaller card on desktop, photo stays uncropped square */
    margin: 0 auto;
  }
}

.campus-photo {
  height: auto; /* show full photo, no crop */
}

#academic-events-carousel .custom-block-image,
#sports-events-carousel .custom-block-image,
#cultural-events-carousel .custom-block-image {
  object-fit: contain; /* mixed portrait/landscape photos, no cropping */
  height: 450px;
  background: var(--section-bg-color);
}

.custom-block {
  padding: 24px;
}

.custom-block-body h5 {
  color: var(--sm-primary);
  font-weight: 700;
}

.custom-block-body p {
  color: var(--sm-text-muted);
  font-size: 14px;
}

/*---------------------------------------
  VOLUNTEER / DARK SECTION (FACULTY)
-----------------------------------------*/
.volunteer-section {
  background-color: var(--sm-primary);
  padding: 80px 0;
}

.volunteer-section h2 {
  color: var(--sm-white);
}

.volunteer-section .custom-btn {
  background-color: var(--sm-secondary);
  border-color: var(--sm-secondary);
}

.volunteer-section .custom-btn:hover {
  background-color: var(--sm-white);
  border-color: var(--sm-white);
  color: var(--sm-primary) !important;
}

.volunteer-form .form-control {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-small);
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--sm-white);
}

.volunteer-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.volunteer-form .form-control:focus {
  border-color: var(--sm-secondary);
  box-shadow: 0 0 0 0.2rem rgba(200, 169, 81, 0.25);
  background-color: rgba(255, 255, 255, 0.15);
}

.volunteer-form button {
  background-color: var(--sm-secondary);
  color: var(--sm-white);
  border: none;
  border-radius: var(--border-radius-large);
  padding: 12px 28px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.volunteer-form button:hover {
  background-color: var(--sm-secondary-light);
  transform: translateY(-2px);
}

/*---------------------------------------
  CUSTOM LIST
-----------------------------------------*/
.custom-list-item {
  padding: 6px 0;
  color: var(--sm-text);
}

.custom-text-box-icon {
  color: var(--sm-primary);
}

/*---------------------------------------
  NEWS / CAMPUS HIGHLIGHTS
-----------------------------------------*/
.news-block {
  background-color: var(--sm-white);
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}

.news-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-block-info {
  padding: 20px;
}

.news-block-title h4 a {
  color: var(--sm-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-block-title h4 a:hover {
  color: var(--sm-accent);
}

.news-block-body {
  color: var(--sm-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.news-category-block a {
  color: var(--sm-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-right: 10px;
}

/*---------------------------------------
  TESTIMONIALS / CAROUSEL
-----------------------------------------*/
.testimonial-section {
  padding: 80px 0;
}

.carousel-caption {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: var(--border-radius-medium);
  padding: 30px 40px;
  text-align: left;
  color: var(--sm-text);
}

.carousel-caption h4 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--sm-text);
}

.carousel-name {
  margin-top: 12px;
  font-size: 14px;
  color: var(--sm-text-muted);
}

.carousel-name-title {
  font-weight: 600;
  color: var(--sm-primary);
}

.carousel-indicators {
  bottom: -50px;
}

.carousel-indicators [data-bs-target] {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--sm-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin: 0 6px;
}

/*---------------------------------------
  CONTACT / ADMISSIONS FORM
-----------------------------------------*/
.contact-section {
  padding: 80px 0;
}

.contact-form .form-control {
  border: 2px solid var(--sm-border);
  border-radius: var(--border-radius-small);
  padding: 12px 16px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--sm-primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 58, 92, 0.15);
}

.contact-form button {
  background-color: var(--sm-primary);
  color: var(--sm-white);
  border: 2px solid var(--sm-primary);
  border-radius: var(--border-radius-large);
  padding: 12px 28px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--sm-primary-dark);
  border-color: var(--sm-primary-dark);
}

/*---------------------------------------
  FOOTER
-----------------------------------------*/
.site-footer {
  background-color: var(--sm-primary-dark);
  padding: 60px 0 30px;
}

.site-footer h5 {
  color: var(--sm-secondary);
  font-weight: 600;
  margin-bottom: 16px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--sm-secondary-light);
}

.site-footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer-link:hover {
  color: var(--sm-secondary-light);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu-item {
  margin-bottom: 8px;
}

.footer-menu-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu-link:hover {
  color: var(--sm-secondary-light);
  padding-left: 4px;
}

.site-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text a {
  color: var(--sm-secondary-light);
  text-decoration: none;
}

/* Social Icons */
.social-icon {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--sm-white) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  background-color: var(--sm-secondary);
  color: var(--sm-white) !important;
  transform: translateY(-3px);
}

/*---------------------------------------
  PROGRAMS SECTION
-----------------------------------------*/
#section_8 .custom-block-body .d-flex.gap-2 {
  display: flex;
  gap: 12px;
}

/*---------------------------------------
  STUDENT LIFE - OPPORTUNITIES BOX
-----------------------------------------*/
#section_7 .custom-text-box {
  border-left: 4px solid var(--sm-secondary);
}

#section_7 .custom-text-box .custom-list-item {
  padding: 8px 0;
  font-size: 15px;
}

/*---------------------------------------
  UTILITY CLASSES
-----------------------------------------*/
.text-white-50 {
  color: rgba(255, 255, 255, 0.65) !important;
}

/*---------------------------------------
  RESPONSIVE
-----------------------------------------*/
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 32px;
  }

  .carousel-caption p {
    font-size: 16px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-padding h2 {
    font-size: 28px;
  }

  .navbar-brand > span {
    font-size: 20px;
  }

  .navbar-brand small {
    font-size: 12.2px;
  }

  .carousel-caption {
    left: 5%;
    right: 5%;
    bottom: 15%;
  }

  .carousel-caption h1 {
    font-size: 26px;
  }

  .carousel-caption p {
    font-size: 14px;
  }

  .custom-block-body .d-flex.gap-2 {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-section-full-height,
  #hero-slide .carousel-item {
    height: auto;
    min-height: 0;
  }

  #hero-slide .carousel-image {
    height: auto;
  }

  .carousel-caption h1 {
    font-size: 22px;
  }

  .featured-block {
    padding: 20px 16px;
  }
}

/* Academic events card carousel */
#academic-events-carousel .carousel-control-prev-icon,
#academic-events-carousel .carousel-control-next-icon,
#sports-events-carousel .carousel-control-prev-icon,
#sports-events-carousel .carousel-control-next-icon,
#cultural-events-carousel .carousel-control-prev-icon,
#cultural-events-carousel .carousel-control-next-icon {
  width: 36px;
  height: 36px;
}

/* Infrastructure photo: matches text column height on desktop */
#section_2 .custom-text-box-image {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}
@media (min-width: 992px) {
  #section_2 .row > .col-lg-6:first-child {
    position: relative;
  }
  #section_2 .row > .col-lg-6:first-child .custom-text-box-image {
    position: absolute;
    top: 0;
    left: 12px;
    width: calc(100% - 24px);
    height: 100%;
    max-height: none;
  }
}

/* Philosophy logo: square, fits text column height on desktop, never cropped */
@media (min-width: 992px) {
  #section_3 .row > .col-lg-6:first-child {
    position: relative;
  }
  #section_3 .about-image {
    position: absolute;
    top: 5%;
    right: 12px;
    width: calc(100% - 24px);
    max-width: none;
    height: 90%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: right center;
  }
}

/* Admission process text on dark bg */
#section_10 .custom-block-body p {
  color: var(--sm-white);
  font-size: 16px;
}

#section_10 .custom-list-item {
  color: var(--sm-white);
}

/* Testimonial indicators: initials avatars */
#testimonial-carousel .carousel-indicators {
  position: relative;
  top: auto;
  bottom: auto;
  margin: 24px 0 0;
  padding: 0;
  justify-content: center;
}
#testimonial-carousel .carousel-indicators li {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  margin: 0 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sm-border);
  color: var(--sm-primary);
  font-weight: 700;
  line-height: 1;
  text-indent: 0;
  cursor: pointer;
  opacity: 0.7;
}
#testimonial-carousel .carousel-indicators li::before,
#testimonial-carousel .carousel-indicators li::after {
  display: none;
}
#testimonial-carousel .carousel-indicators li.active {
  width: 45px;
  height: 45px;
  background: var(--sm-primary);
  color: var(--sm-white);
  opacity: 1;
}

/* Keep 9 nav items on one row; collapse below 1400px (navbar-expand-xxl) */
@media (min-width: 1400px) {
  .navbar-nav .nav-link { white-space: nowrap; }
}

#section_8 .custom-block-image {
  height: auto;
  aspect-ratio: 2 / 1;
  object-position: right center; /* nurse stands at right of photo */
}

#section_8 .custom-block {
  padding: 40px;
}

@media (min-width: 768px) {
  #section_8 .custom-block-wrap {
    display: flex;
    align-items: stretch;
  }

  #section_8 .custom-block-image {
    width: 50%;
    height: auto;
    aspect-ratio: 1958 / 1708; /* native ratio of bsc-nursing-web.png: no crop */
    flex-shrink: 0;
  }

  #section_8 .custom-block {
    width: 50%;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 576px) {
  #section_8 .custom-block-image {
    aspect-ratio: 1 / 1;
  }
}

.admission-poster {
  max-height: 560px;
  width: auto;
  border-radius: var(--border-radius-medium);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* justify paragraphs only; names/headings and bullet items stay left-aligned */
p {
  text-align: justify !important;
}

/* Excellent Opportunities sits in a centered section: keep list text left-aligned */
.custom-text-box .custom-list-item {
  text-align: left;
}
