/*
 * Laravel site branding overrides (uploaded logos / same asset header + footer).
 * Fixes: tiny header clamp (theme max-height 50px), footer .vertical-center + huge intrinsic size overlap,
 * mobile rule `img { width: 100%; }` stretching logos.
 *
 * Public theme colors (Universo): --site-nav-bg, --site-hero-bg, --site-accent set in Blade (partials/theme/styles).
 */

:root {
  --site-icons: var(--site-accent, #ea6645);
}

/* Readable body copy (Universo theme default is 12px) */
body {
  font-size: 14px;
}

p {
  line-height: 1.65;
}

#page-content {
  font-size: 14px;
  line-height: 1.65;
}

#page-content p,
#page-content .description,
#page-content .blog-detail-body,
#page-content .paragraph-wrapper,
#page-content blockquote article {
  font-size: inherit;
  line-height: inherit;
}

/* Theme pins some content blocks to 12px */
#page-content .course-detail .author-block .paragraph-wrapper p,
#page-content .event-detail .author-block .paragraph-wrapper p,
#page-content .events .event aside .description p,
#page-content .latest-course p,
#page-content .learning-material .learning-material-description p {
  font-size: inherit;
  line-height: inherit;
}

#page-footer #footer-content p {
  font-size: 14px;
  line-height: 1.65;
}

/* Rich text from admin (about page, homepage about, footer) */
.rich-text-content {
  color: inherit;
}

.rich-text-content p:last-child {
  margin-bottom: 0;
}

.rich-text-content ul,
.rich-text-content ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.rich-text-content li + li {
  margin-top: 0.35em;
}

.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
  margin-top: 1.25em;
  margin-bottom: 0.65em;
}

.rich-text-content h2:first-child,
.rich-text-content h3:first-child,
.rich-text-content h4:first-child {
  margin-top: 0;
}

.rich-text-content a {
  text-decoration: underline;
}

#page-main .rich-text-content,
#about .rich-text-content {
  color: #767676;
}

/* About page: even left/right edges — space between words, no hyphenation */
.page-about-us #about .rich-text-content {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.page-about-us #about .rich-text-content li {
  text-align: left;
}

.element-framed .rich-text-content {
  margin: 0;
}

.navigation-wrapper .background {
  background-color: var(--site-nav-bg, #012951);
}

.navigation-wrapper .secondary-navigation-wrapper {
  background-color: var(--site-secondary-bar-bg, #01152d);
}

/* Header: “Suivez-nous” social row (search removed) */
.navigation-wrapper .secondary-navigation-wrapper .header-follow {
  float: left;
  display: inline-block;
  margin-left: 20px;
  white-space: nowrap;
  vertical-align: middle;
}
.navigation-wrapper .secondary-navigation-wrapper .header-follow-label {
  margin-right: 8px;
  opacity: 0.85;
}
.navigation-wrapper .secondary-navigation-wrapper .header-follow-icons {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  vertical-align: middle;
}
.navigation-wrapper .secondary-navigation-wrapper .header-follow-icons li {
  display: inline-block;
  margin-left: 10px;
  margin-bottom: 0;
  padding: inherit;
}
.navigation-wrapper .secondary-navigation-wrapper .header-follow-icons a {
  color: var(--site-icons, var(--site-accent, #ea6645));
}
.navigation-wrapper .secondary-navigation-wrapper .header-follow-icons a:hover {
  opacity: 0.88;
}

/* Header top bar: dynamic links (right side, admin-managed) */
.navigation-wrapper .secondary-navigation-wrapper .header-top-links {
  min-height: 40px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}
.navigation-wrapper .secondary-navigation-wrapper .header-top-links li {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0;
}
.navigation-wrapper .secondary-navigation-wrapper .header-top-links li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 12px;
  background: currentColor;
  opacity: 0.35;
}
.navigation-wrapper .secondary-navigation-wrapper .header-top-links a {
  align-items: center;
  color: var(--site-header-text, #ffffff);
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  min-height: 40px;
  letter-spacing: 0.01em;
  line-height: 40px;
  opacity: 0.92;
  text-decoration: none;
  white-space: nowrap;
}
.navigation-wrapper .secondary-navigation-wrapper .header-top-links a:hover,
.navigation-wrapper .secondary-navigation-wrapper .header-top-links a:focus {
  color: var(--site-icons, var(--site-accent, #ea6645));
  opacity: 1;
  text-decoration: none;
}

@media (max-width: 991px) {
  .navigation-wrapper .secondary-navigation-wrapper .header-top-links {
    float: none !important;
    display: flex;
    margin-top: 6px;
  }
}
@media (max-width: 991px) {
  .navigation-wrapper .secondary-navigation-wrapper {
    height: auto;
    min-height: 40px;
    line-height: 1.35;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .navigation-wrapper .secondary-navigation-wrapper .header-follow {
    float: none;
    display: block;
    margin-left: 0;
    margin-top: 6px;
    white-space: normal;
  }
}

.navigation-wrapper .secondary-navigation-wrapper,
.navigation-wrapper .secondary-navigation-wrapper a {
  color: var(--site-header-text, #ffffff);
}

.navigation-wrapper .secondary-navigation-wrapper .navigation-contact {
  color: var(--site-header-text, #ffffff);
}

.navigation-wrapper .secondary-navigation-wrapper .search .input-group input.form-control {
  color: var(--site-header-text, #ffffff);
}

.navigation-wrapper .secondary-navigation-wrapper .search .input-group input.form-control::placeholder {
  color: var(--site-header-text, #ffffff);
  opacity: 0.5;
}

.navigation-wrapper .primary-navigation-wrapper header nav .navbar-nav > li:not(.active) > a {
  color: var(--site-header-text, #ffffff);
}

.navigation-wrapper .primary-navigation-wrapper header nav .navbar-nav li a.has-child:after {
  color: var(--site-header-text, #ffffff);
}

.navigation-wrapper .primary-navigation-wrapper header nav .navbar-nav li .child-navigation li a {
  color: var(--site-header-text, #ffffff);
}

#homepage-carousel .homepage-carousel-wrapper {
  color: var(--site-header-text, #ffffff);
}

#homepage-carousel .homepage-carousel-wrapper:after {
  background-color: var(--site-hero-bg, #011c38);
}

.navigation-wrapper .primary-navigation-wrapper header .navbar-brand:after {
  background-color: var(--site-accent, #ea6645);
}

.navigation-wrapper .secondary-navigation-wrapper ul li i {
  color: var(--site-accent, #ea6645);
}

.navigation-wrapper .secondary-navigation-wrapper .search .input-group .btn {
  background-color: var(--site-accent, #ea6645);
  border-color: var(--site-accent, #ea6645);
  color: #fff;
}

.navigation-wrapper .primary-navigation-wrapper header nav .navbar-nav li.active a {
  color: var(--site-accent, #ea6645);
}

.navigation-wrapper .primary-navigation-wrapper header nav .navbar-nav li .child-navigation li a:hover {
  background-color: var(--site-accent, #ea6645);
}

.navigation-wrapper .primary-navigation-wrapper header nav .navbar-nav li .child-navigation li:first-child a:hover:after {
  border-color: transparent transparent var(--site-accent, #ea6645) transparent;
}

.btn.btn-framed {
  border-color: var(--site-accent, #ea6645);
  color: var(--site-accent, #ea6645);
}

.btn.btn-framed:hover {
  background-color: var(--site-accent, #ea6645);
  border-color: var(--site-accent, #ea6645);
  color: #fff;
}

/* Homepage blue backgrounds (admin-managed) */
.block-dark-background {
  background-color: var(--site-home-dark-block-bg, #012951) !important;
}

.universal-button {
  background-color: var(--site-home-donation-bg, #012951) !important;
}

/* Universo “orange” icons/buttons (admin: Icon color) */
.image-carousel .owl-buttons .owl-prev,
.image-carousel .owl-buttons .owl-next,
.universal-button figure,
.events.small .event.nearest-second .date {
  background-color: var(--site-icons, var(--site-accent, #ea6645)) !important;
}

.image-carousel .owl-buttons .owl-prev:hover,
.image-carousel .owl-buttons .owl-next:hover {
  filter: brightness(0.93);
}

/* Homepage about: “En savoir plus” — stay in flow; extra space above (stick-to-bottom is absolute) */
#about .home-about-read-more {
  position: static;
  margin-top: 1.35rem;
}

/* Homepage hero CTA: heading + button shown next to the slider images.
   Vertically centered to align with the middle of the slider image on desktop. */
#homepage-carousel .home-slider-cta {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

#homepage-carousel .home-slider-cta-heading {
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 28px;
}

#homepage-carousel .home-slider-cta-heading:after {
  display: none;
}

#homepage-carousel .home-slider-cta-button.btn-framed {
  border-color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  color: #fff;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

#homepage-carousel .home-slider-cta-button.btn-framed:hover,
#homepage-carousel .home-slider-cta-button.btn-framed:focus {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
  color: #012951;
}

/* Desktop: stretch the right column to the slider height and center the CTA vertically */
@media (min-width: 992px) {
  #homepage-carousel .slider-content {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    min-height: 400px;
    padding: 16px 8px 16px 0;
  }

  #homepage-carousel .slider-content .home-slider-cta {
    margin: 0;
  }
}

@media (max-width: 991px) {
  #homepage-carousel .home-slider-cta {
    align-items: stretch;
    padding: 16px 0 28px;
    text-align: left;
  }

  #homepage-carousel .home-slider-cta-heading {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 18px;
  }

  #homepage-carousel .home-slider-cta-button.btn-framed {
    align-self: flex-start;
    display: inline-block;
  }
}

@media (max-width: 600px) {
  #homepage-carousel .home-slider-cta-button.btn-framed {
    align-self: stretch;
    text-align: center;
    width: 100%;
  }
}

/* Anti-bot honeypot — must stay invisible (no Tailwind on public site) */
.form-bot-guard {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Standalone Apply / Inscription page: hero card hosting the lead form */
.page-apply #apply-hero {
  padding: 30px 0 60px;
}

.page-apply .apply-form-card {
  background-color: var(--site-home-dark-block-bg, #012951);
  border-radius: 10px;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.35);
  color: #fff;
  margin: 10px auto 0;
  max-width: 880px;
  padding: 48px 56px 60px;
  position: relative;
}

.page-apply .apply-form-card h1 {
  color: #fff;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 32px;
}

.page-apply .apply-form-card h1:after {
  display: none;
}

.page-apply .apply-form-card .row {
  margin-left: -8px;
  margin-right: -8px;
}

.page-apply .apply-form-card .row > [class*="col-"] {
  margin-bottom: 16px;
  padding-left: 8px;
  padding-right: 8px;
}

.page-apply .apply-form-card .input-group {
  display: block;
  width: 100%;
}

.page-apply .apply-form-card input[type="text"],
.page-apply .apply-form-card input[type="email"],
.page-apply .apply-form-card select {
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.page-apply .apply-form-card select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 10px 7px;
  padding-right: 38px;
}

.page-apply .apply-form-card select option {
  background-color: #fff;
  color: #252525;
}

.page-apply .apply-form-card input::placeholder {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  opacity: 1;
}

.page-apply .apply-form-card input:focus,
.page-apply .apply-form-card select:focus {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.9);
  color: #1c1c1c;
  outline: none;
}

.page-apply .apply-form-card input:focus::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.page-apply .apply-form-card .btn.btn-framed {
  border-color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 26px;
  margin-bottom: 6px;
  min-width: 180px;
  padding: 12px 28px;
}

.page-apply .apply-form-card .btn.btn-framed:hover,
.page-apply .apply-form-card .btn.btn-framed:focus {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
  color: #012951;
}

.page-apply .apply-form-card form { overflow: hidden; }

/* Inscription guest gate — equal-size CTAs on dark card */
.page-apply .apply-guest-gate {
  text-align: center;
}

.page-apply .apply-guest-gate .apply-guest-message {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.55;
  margin: -18px 0 28px;
}

.page-apply .apply-guest-gate .apply-guest-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.page-apply .apply-guest-gate .apply-guest-actions .btn {
  align-items: center;
  border-radius: 6px;
  border-style: solid;
  border-width: 2px;
  box-sizing: border-box;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0 !important;
  min-height: 48px;
  min-width: 200px;
  padding: 12px 28px;
  text-decoration: none;
}

.page-apply .apply-guest-gate .apply-guest-actions .btn.btn-framed {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.page-apply .apply-guest-gate .apply-guest-actions .btn.btn-framed:hover,
.page-apply .apply-guest-gate .apply-guest-actions .btn.btn-framed:focus {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
  color: #012951;
}

.page-apply .apply-guest-gate .apply-guest-actions .btn.btn-default {
  background-color: #ea6645;
  border-color: #ea6645;
  box-shadow: none;
  color: #fff;
  text-shadow: none;
}

.page-apply .apply-guest-gate .apply-guest-actions .btn.btn-default:hover,
.page-apply .apply-guest-gate .apply-guest-actions .btn.btn-default:focus {
  background-color: #d85a3b;
  border-color: #d85a3b;
  color: #fff;
}

.page-apply .apply-form-error {
  background-color: rgba(255, 99, 99, 0.18);
  border: 1px solid rgba(255, 138, 138, 0.55);
  border-radius: 6px;
  color: #ffd6d6;
  margin-bottom: 18px;
  padding: 12px 16px;
}

.page-apply .apply-form-success {
  background-color: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 6px;
  color: #d1fae5;
  margin-bottom: 18px;
  padding: 12px 16px;
}

.page-student-auth .student-auth-footer-note {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 13px;
}

@media (max-width: 767px) {
  .page-apply .apply-form-card {
    padding: 28px 20px 32px;
  }

  .page-apply .apply-form-card h1 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 22px;
  }

  .page-apply .apply-form-card .btn.btn-framed {
    display: block;
    float: none !important;
    width: 100%;
  }

  .page-apply .apply-guest-gate .apply-guest-actions {
    flex-direction: column;
  }

  .page-apply .apply-guest-gate .apply-guest-actions .btn {
    min-width: 0;
    width: 100%;
  }
}

/* Student register / login — same card as Inscription page */
.page-student-auth #student-auth-hero {
  padding: 30px 0 60px;
}

.page-student-auth .student-auth-intro {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.55;
  margin: -18px 0 28px;
}

.page-student-auth .apply-form-card input[type="password"] {
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.page-student-auth .apply-form-card input[type="password"]::placeholder {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  opacity: 1;
}

.page-student-auth .apply-form-card input[type="password"]:focus {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.9);
  color: #1c1c1c;
  outline: none;
}

.page-student-auth .apply-form-card input[type="password"]:focus::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.page-student-auth .student-auth-remember {
  clear: both;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 8px 0 0;
  padding-top: 4px;
}

.page-student-auth .student-auth-remember label {
  cursor: pointer;
  font-weight: 400;
  margin: 0;
}

.page-student-auth .student-auth-remember input {
  margin-right: 8px;
  vertical-align: middle;
}

.page-student-auth .student-auth-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-top: 28px;
  padding-top: 20px;
  text-align: center;
}

.page-student-auth .student-auth-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.page-student-auth .student-auth-footer a:hover,
.page-student-auth .student-auth-footer a:focus {
  color: rgba(255, 255, 255, 0.9);
}

.page-student-auth .student-auth-submit {
  margin-top: 20px;
}

@media (max-width: 767px) {
  .page-student-auth .student-auth-intro {
    margin-top: -8px;
  }
}

/* Apply: success modal styling */
.site-apply-modal .modal-content {
  border-radius: 12px;
  overflow: hidden;
}

.site-apply-modal .modal-header {
  border-bottom: 1px solid #eef1f5;
  padding: 20px 26px;
}

.site-apply-modal .modal-header .modal-title {
  color: var(--site-home-dark-block-bg, #012951);
  font-weight: 700;
}

.site-apply-modal .modal-body {
  padding: 28px 26px 22px;
  text-align: center;
}

.site-apply-modal .site-apply-modal-icon {
  align-items: center;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 50%;
  color: #047857;
  display: inline-flex;
  font-size: 28px;
  height: 64px;
  justify-content: center;
  margin-bottom: 16px;
  width: 64px;
}

.site-apply-modal .site-apply-modal-text {
  color: #4a5663;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.site-apply-modal .modal-footer {
  border-top: 1px solid #eef1f5;
  padding: 18px 26px;
  text-align: center;
}

.site-apply-modal .modal-footer .btn.btn-framed {
  border-radius: 6px;
  min-width: 140px;
  padding: 10px 20px;
}

/* Homepage message/testimonial: simple text layout with a larger portrait, inside the rotating carousel */
#testimonials .home-testimonial-carousel {
  background: none;
}

#testimonials .home-testimonial-carousel .author {
  background: transparent;
}

#testimonials .home-testimonial-carousel .owl-pagination {
  margin-top: 14px;
}

#testimonials .home-testimonial-carousel .owl-page span {
  background: #cdd3dc;
}

#testimonials .home-testimonial-carousel .owl-page.active span,
#testimonials .home-testimonial-carousel .owl-page:hover span {
  background: var(--site-accent, #ea6645);
}

#testimonials .home-testimonial-carousel .owl-buttons div {
  background-color: var(--site-icons, var(--site-accent, #ea6645));
  border-radius: 50%;
  color: #fff;
  height: 36px;
  line-height: 36px;
  margin: 0;
  opacity: 1;
  padding: 0;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
}

#testimonials .home-testimonial-carousel .owl-buttons .owl-prev { left: -8px; }
#testimonials .home-testimonial-carousel .owl-buttons .owl-next { right: -8px; }

#testimonials .home-testimonial-card {
  align-items: flex-start;
  background: #f4f4f4;
  display: flex;
  gap: 34px;
  padding: 28px 40px;
}

#testimonials .home-testimonial-image {
  flex: 0 0 260px;
  margin: 0;
}

#testimonials .home-testimonial-image img {
  border: 0;
  border-radius: 8px;
  display: block;
  height: auto;
  max-width: 100%;
  width: 260px;
}

#testimonials .home-testimonial-content {
  flex: 1 1 auto;
  min-width: 0;
}

#testimonials .home-testimonial-title {
  color: #012951;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
}

#testimonials .home-testimonial-text {
  color: #3f4a56;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 767px) {
  #testimonials .home-testimonial-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 26px 22px;
  }

  #testimonials .home-testimonial-image {
    flex-basis: auto;
  }

  #testimonials .home-testimonial-image img {
    height: auto;
    width: 100%;
    max-width: 220px;
  }

  #testimonials .home-testimonial-title {
    font-size: 21px;
  }
}

/* Homepage / listing: professor thumbnails — show full photo (no crop); letterbox inside fixed tile */
.professor-thumbnail .professor-image {
  width: 80px;
  height: 80px;
  overflow: hidden;
  text-align: center;
  background-color: whitesmoke;
}
.professor-thumbnail .professor-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.professor-thumbnail .professor-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.professor-thumbnail aside {
  margin-left: 95px;
}

/* Gallery grid cells: keep huge thumbs inside 100×100 tiles */
.gallery-list li {
  overflow: hidden;
}
/* Theme uses left:100% / margin-left:-200% centering; breaks when images fail to load */
.gallery-list li a {
  left: auto;
  margin-left: 0;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.gallery-list li a img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Partner logo row */
.logos .logo {
  vertical-align: middle;
}
.logos .logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 180px;
  min-height: 56px;
  line-height: normal;
}
.logos .logo a img {
  display: block;
  max-height: 56px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* Professor detail bio page */
.professor-detail .professor-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Homepage newsletter feedback (theme has no Bootstrap alerts) */
.home-newsletter-flash {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}
.home-newsletter-flash--success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}
.home-newsletter-flash--error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}

.link-calendar:after,
.read-more:after,
.calendar .fc-button:hover,
.calendar .fc-content .fc-view .fc-event-container .fc-event:hover,
.calendar .fc-content .fc-state-highlight .fc-day-number {
  color: var(--site-icons, var(--site-accent, #ea6645)) !important;
}

.calendar .fc-content .fc-state-highlight {
  border-color: var(--site-icons, var(--site-accent, #ea6645)) !important;
}

.connect-block .nav-pills li.active a,
.connect-block .nav-pills li.active a:hover {
  background-color: var(--site-icons, var(--site-accent, #ea6645)) !important;
}

.connect-block .nav-pills li a:after {
  border-left-color: var(--site-icons, var(--site-accent, #ea6645)) !important;
}

/* Footer top social icons and search button */
#page-footer #footer-top .footer-inner .footer-social .icons i {
  color: var(--site-icons, var(--site-accent, #ea6645)) !important;
}

#page-footer #footer-top .footer-inner .search .input-group .btn {
  background-color: var(--site-icons, var(--site-accent, #ea6645)) !important;
  border-color: var(--site-icons, var(--site-accent, #ea6645)) !important;
  color: #fff !important;
}

/* Homepage lead form success/error (pretty message) */
#homepage-lead-form #form-status {
  clear: both;
  width: 100%;
}

#homepage-lead-form #form-status .lead-flash {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.35;
  display: block;
  width: 100%;
  max-width: 100%;
}

#homepage-lead-form #form-status .lead-flash.success {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.32);
  color: rgba(255, 255, 255, 0.95);
}

#homepage-lead-form #form-status .lead-flash.error {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.35);
  color: rgba(255, 255, 255, 0.95);
}

#homepage-lead-form #form-status .lead-flash .title {
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

#homepage-lead-form input.has-dark-background,
#homepage-lead-form textarea.has-dark-background,
#homepage-lead-form select.has-dark-background {
  color: var(--site-header-text, #ffffff) !important;
  opacity: 1 !important;
}

#homepage-lead-form input.has-dark-background::placeholder,
#homepage-lead-form textarea.has-dark-background::placeholder {
  color: rgba(255, 255, 255, 0.72) !important;
  opacity: 1 !important;
}

/* Keep slider inputs readable on focus (theme flips to white + dark text) */
#homepage-lead-form input.has-dark-background:focus,
#homepage-lead-form input.has-dark-background:active,
#homepage-lead-form textarea.has-dark-background:focus,
#homepage-lead-form textarea.has-dark-background:active,
#homepage-lead-form select.has-dark-background:focus,
#homepage-lead-form select.has-dark-background:active {
  background-color: rgba(255, 255, 255, 0.16) !important;
  color: var(--site-header-text, #ffffff) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

/* Selectize (theme-enhanced selects) inside the homepage slider form */
#homepage-lead-form .selectize-control.has-dark-background .selectize-input,
#homepage-lead-form .selectize-control.has-dark-background .selectize-input.full,
#homepage-lead-form .selectize-control.has-dark-background .selectize-input.focus,
#homepage-lead-form .selectize-control.has-dark-background .selectize-input.full.focus {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--site-header-text, #ffffff) !important;
  box-shadow: none !important;
}

#homepage-lead-form .selectize-control.has-dark-background .selectize-input input {
  color: var(--site-header-text, #ffffff) !important;
  opacity: 1 !important;
}

#homepage-lead-form .selectize-control.has-dark-background .selectize-input input::placeholder {
  color: rgba(255, 255, 255, 0.72) !important;
  opacity: 1 !important;
}

#homepage-lead-form .selectize-control.has-dark-background .selectize-input:after {
  border-top-color: rgba(255, 255, 255, 0.6) !important;
}

/* Site identity: footer (Universo #footer-content / #footer-bottom) */
#page-footer #footer-content .background {
  background-color: var(--site-footer-main-bg, #012951);
}

#page-footer #footer-bottom {
  background-color: var(--site-footer-bottom-bg, #012447);
  color: var(--site-footer-text, #fff);
}

#page-footer #footer-bottom .footer-inner .copyright {
  color: var(--site-footer-text, #fff);
}

#page-footer #footer-content {
  color: var(--site-footer-text, #fff) !important;
}

#page-footer h4,
#page-footer p,
#page-footer ul,
#page-footer abbr,
#page-footer address,
#page-footer address strong {
  color: var(--site-footer-text, #fff);
}

#page-footer h4:after {
  background-color: var(--site-footer-text, #fff);
  opacity: 0.25;
}

#page-footer a {
  color: var(--site-footer-text, #fff) !important;
}

#page-footer a:hover {
  color: var(--site-accent, #ea6645) !important;
}

.navigation-wrapper .primary-navigation-wrapper header .navbar-brand img.site-header-logo {
  width: auto !important;
  max-width: min(260px, 42vw);
  height: auto !important;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

#page-footer #footer-content aside.logo {
  position: relative;
  overflow: visible;
}

#page-footer #footer-content aside.logo img.site-footer-logo {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 auto 0 0 !important;
  width: auto !important;
  max-width: min(320px, 90%);
  height: auto !important;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

@media (max-width: 991px) {
  .navigation-wrapper .primary-navigation-wrapper header .navbar-brand img.site-header-logo {
    max-height: 62px;
    max-width: min(220px, 55vw);
  }

  #page-footer #footer-content aside.logo img.site-footer-logo {
    max-height: 110px;
    max-width: min(280px, 80vw);
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #page-footer #footer-content aside.logo {
    text-align: center;
    margin-bottom: 24px !important;
  }
}

@media (max-width: 767px) {
  .navigation-wrapper .primary-navigation-wrapper header .navbar-brand img.site-header-logo {
    max-height: 52px;
    max-width: min(190px, 65vw);
  }

  /* Theme sets all images to width:100%; keep logos sane */
  footer #footer-content aside.logo img.site-footer-logo,
  .navigation-wrapper .primary-navigation-wrapper header .navbar-brand img.site-header-logo {
    width: auto !important;
  }
}

/* ==========================================================================
   Admission platform (/admission, /instructions) — UEH-inspired layout
   Uses site CSS vars: --site-nav-bg, --site-accent, --site-hero-bg
   ========================================================================== */

.page-admission-platform #page-content,
.page-instructions #page-content {
  padding-bottom: 0;
  /* Inherit site defaults: body / #page-content 14px (see top of this file) */
}

.admission-page {
  --adm-band: var(--site-nav-bg, #012951);
  --adm-accent: var(--site-accent, #ea6645);
  --adm-accent-soft: color-mix(in srgb, var(--adm-accent) 18%, white);
  padding-bottom: 0;
}

/* Same scale as homepage: 14px body, h1 36px, h2 24px, h3 18px (style.css) */
.admission-page,
.admission-page p,
.admission-page li,
.admission-page td {
  font-size: inherit;
  line-height: inherit;
}

.admission-hero-full__title:after,
.admission-instructions-hero h1:after,
.admission-section-head__title:after,
.admission-cta-band__inner h2:after,
.admission-feature-card h3:after,
.admission-step-card__body h3:after,
.admission-tip-row h3:after {
  display: none;
}

.admission-breadcrumb {
  margin-bottom: 0;
  padding-top: 8px;
}

/* Hero: full-width band (no photo banner) */
.admission-hero-full {
  width: 100%;
  background: var(--adm-band);
  color: #fff;
  padding: clamp(2rem, 5vw, 3rem) 0;
  margin-bottom: 0;
}

.admission-hero-full__title {
  display: block;
  margin: 0 0 1rem;
  font-size: 32px;
  line-height: 1.22;
  font-weight: 600;
  color: #fff;
  max-width: none;
}

.admission-hero-full__lead {
  margin: 0 0 1.5rem;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52rem;
}

.admission-hero-full__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admission-hero-full__actions .btn {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
}

.admission-btn-primary {
  background: var(--adm-accent) !important;
  border-color: var(--adm-accent) !important;
  color: #fff !important;
}

.admission-btn-primary:hover,
.admission-btn-primary:focus {
  filter: brightness(1.06);
  color: #fff !important;
}

.admission-btn-secondary {
  border-width: 2px !important;
  border-color: var(--adm-band) !important;
  color: var(--adm-band) !important;
  background: #fff !important;
}

.admission-btn-secondary--on-dark {
  border-color: #fff !important;
  color: #fff !important;
  background: transparent !important;
}

.admission-btn-secondary--on-dark:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

/* Full-width section bands */
.admission-band {
  padding: 2.75rem 0;
}

.admission-band--light {
  background: #f4f7fb;
  border-top: 1px solid #e8edf3;
  border-bottom: 1px solid #e8edf3;
}

.admission-band--steps,
.admission-band--tips {
  background: #fff;
  padding-top: 0;
  padding-bottom: 2.75rem;
}

.admission-band--steps > .container,
.admission-band--tips > .container {
  padding-top: 2rem;
}

/* Section header bar (dark band + icon) */
.admission-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--adm-band);
  color: #fff;
  padding: 16px 0;
  margin-bottom: 0;
}

.admission-section-head .container,
.admission-band > .admission-section-head {
  width: 100%;
}

.admission-band > .admission-section-head {
  padding-left: max(15px, calc((100% - 1170px) / 2 + 15px));
  padding-right: 15px;
}

.admission-section-head__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 22px;
  flex-shrink: 0;
}

.admission-section-head__title {
  display: block;
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  line-height: 1.3;
}

/* Feature cards (3 columns) */
.admission-features {
  margin: 0;
}

.admission-feature-card {
  background: #fff;
  border: 2px solid #dce8f5;
  border-radius: 10px;
  padding: 1.75rem 1.5rem 1.5rem;
  height: 100%;
  margin-bottom: 20px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admission-feature-card:hover {
  border-color: var(--adm-accent);
  box-shadow: 0 12px 28px -16px rgba(1, 41, 81, 0.2);
}

.admission-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--adm-accent-soft);
  color: var(--adm-band);
  font-size: 28px;
}

.admission-feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 18px;
  font-weight: bold;
  color: var(--adm-band);
}

.admission-feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #767676;
}

/* Step cards — 2-column grid */
.admission-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .admission-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admission-step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.15rem;
  transition: box-shadow 0.2s ease;
}

.admission-step-card:hover {
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.15);
}

.admission-step-card__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--adm-accent);
  border-radius: 50%;
}

.admission-step-card__body h3 {
  margin: 0 0 0.5rem;
  font-size: 18px;
  font-weight: bold;
  color: var(--adm-band);
}

.admission-step-card__body p {
  margin: 0 0 0.5rem;
  font-size: 14px;
  line-height: 1.65;
  color: #767676;
}

.admission-step-card__links {
  margin-top: 0.5rem !important;
}

.admission-step-card__sep {
  margin: 0 6px;
  color: #767676;
}

.admission-inline-link {
  font-weight: 600;
  color: var(--adm-accent);
}

.admission-inline-link:hover {
  color: var(--adm-band);
  text-decoration: underline;
}

/* Tips — stacked rows */
.admission-tips-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admission-tip-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e8edf3;
}

.admission-tip-row:last-child {
  border-bottom: 0;
}

.admission-tip-row__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--adm-band);
  border-radius: 50%;
}

.admission-tip-row h3 {
  margin: 0 0 0.35rem;
  font-size: 18px;
  font-weight: bold;
  color: #252525;
}

.admission-tip-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #767676;
}

/* Bottom CTA band */
.admission-cta-band {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--adm-band) 92%, var(--adm-accent)) 0%,
    var(--adm-band) 100%
  );
  padding: 3.5rem 0;
  text-align: center;
  color: #fff !important;
}

.admission-cta-band h2,
.admission-cta-band p {
  color: #fff !important;
}

.admission-cta-band__inner h2 {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 24px;
  font-weight: bold;
  color: #fff !important;
}

.admission-cta-band__inner p {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  font-size: 14px;
  line-height: 1.65;
  color: #fff !important;
  opacity: 1;
}

.admission-cta-band__btn {
  background: #fff !important;
  color: var(--adm-band) !important;
  border-color: #fff !important;
  font-weight: 600;
  font-size: 14px !important;
  padding: 12px 28px !important;
}

.admission-cta-band__btn:hover {
  background: var(--adm-accent-soft) !important;
  color: var(--adm-band) !important;
}

/* ========== Instructions page ========== */
.admission-instructions-hero {
  background: var(--adm-band);
  color: #fff;
  padding: 2.5rem 0 2.75rem;
  margin-bottom: 0;
}

.admission-instructions-hero h1 {
  display: block;
  margin: 0 0 1.25rem;
  font-size: 36px;
  line-height: 1.2;
  font-weight: bold;
  color: #fff;
  max-width: none;
}

.admission-instructions-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admission-instructions-body {
  padding: 2rem 15px 3.5rem;
}

.admission-instructions-body--wide {
  max-width: none;
}

.admission-intro-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-left: 4px solid var(--adm-accent);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 8px 30px -18px rgba(15, 23, 42, 0.2);
  padding: 1.35rem 1.5rem;
  margin-bottom: 2rem;
}

.admission-intro-box__icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--adm-accent);
  margin-top: 2px;
}

.admission-intro-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #767676;
}

.admission-panel {
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 36px -20px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
}

.admission-panel .admission-section-head {
  border-radius: 0;
}

.admission-panel__body {
  background: #fff;
  padding: 1.5rem 1.5rem 1.35rem;
}

.admission-panel__intro {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.65;
  color: #767676;
}

.admission-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admission-doc-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  line-height: 1.65;
  color: #767676;
}

.admission-doc-list li:last-child {
  border-bottom: 0;
}

.admission-doc-list li .fa {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--adm-accent);
  font-size: 1rem;
}

.admission-callout {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  background: #fff8ed;
  border: 1px solid #fde6c4;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: #7c4a03;
}

.admission-callout .fa {
  margin-right: 6px;
  color: #d97706;
}

.admission-steps-grid--compact {
  padding-top: 0;
}

.admission-table-wrap {
  margin: 0;
}

.admission-schedule-table {
  margin: 0;
  background: #fff;
  border-collapse: collapse;
  width: 100%;
}

.admission-schedule-table thead th {
  background: var(--adm-band);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border: 0 !important;
}

.admission-schedule-table tbody td {
  padding: 12px 16px;
  font-size: 14px;
  border-color: #e8edf3 !important;
  vertical-align: middle;
}

.admission-schedule-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.admission-note {
  margin: 1rem 0 0;
  font-size: 14px;
  color: #767676;
  font-style: italic;
}

.admission-instructions-footer-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.admission-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-band, #012951);
  text-decoration: none;
}

.admission-back-link:hover {
  color: var(--adm-accent, #ea6645);
  text-decoration: underline;
}

.admission-back-link:after {
  display: none !important;
  content: none !important;
}

.admission-inline-link {
  font-size: 14px;
}

@media (max-width: 991px) {
  .admission-hero-full__title {
    font-size: 22px;
    line-height: 1.3;
  }

  .admission-instructions-hero h1 {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .admission-hero-full__actions {
    flex-direction: column;
  }

  .admission-hero-full__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .admission-band > .admission-section-head {
    padding-left: 15px;
    flex-wrap: wrap;
  }

  .admission-instructions-hero__actions {
    flex-direction: column;
  }

  .admission-instructions-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .admission-intro-box {
    flex-direction: column;
  }
}
