/* PECCI Hall - bright, easy-to-read theme (loads after templatemo-style.css) */

:root {
  --blue: #1d5aa6;
  --blue-dark: #123e75;
  --blue-soft: #eef5fc;
  --line: #d3e1f1;
  --text: #1f2933;
  --muted: #3f4a56;
  --white: #ffffff;
  --sun: #f6b93b;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

a { color: var(--blue); }
a:hover, a:focus { color: var(--blue-dark); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

/* ---------- Desktop sidebar ---------- */

.sidebar-navigation {
  background-color: var(--white);
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 18px rgba(18, 62, 117, 0.08);
}

.sidebar-navigation .logo {
  background-color: var(--blue);
  height: 140px;
  line-height: 1.25;
  padding: 20px;
}

.sidebar-navigation .logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  line-height: 1.25;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
}

.sidebar-navigation nav a {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.sidebar-navigation nav a:hover,
.sidebar-navigation nav a:focus,
nav .active-section {
  color: var(--blue);
}

.sidebar-navigation nav .active-section { color: var(--blue); }

.circle { border: 2px solid var(--blue); }
.rect { background-color: var(--blue); height: 2px; }

.sidebar-navigation nav a:hover span,
nav .active-section span { background-color: var(--blue); }

.sidebar-navigation nav .active-section .circle { background-color: var(--blue); }
.sidebar-navigation nav .active-section .rect { width: 30px; }

/* ---------- Mobile header ---------- */

.responsive-nav {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(18, 62, 117, 0.18);
  height: 64px;
}

.mobile-brand {
  position: absolute;
  left: 16px;
  top: 0;
  line-height: 64px;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
}

.navbar-toggle {
  top: 50%;
  left: auto;
  right: 12px;
  margin: 0;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  border: 2px solid var(--blue);
  border-radius: 6px;
  background: var(--white);
}

.navbar-toggle .icon-bar,
.navbar-toggle span { background-color: var(--blue); }

#main-nav {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 8px 14px rgba(18, 62, 117, 0.15);
  padding: 0;
  border: 0;
}

#main-nav ul {
  background-color: var(--white);
  margin: 0;
  padding: 6px 0;
}

#main-nav ul li { margin: 0; border-bottom: 1px solid var(--line); }
#main-nav ul li:last-child { border-bottom: 0; }

#main-nav ul li a {
  font-size: 18px;
  font-weight: 600;
  padding: 14px 20px;
  color: var(--text);
}

#main-nav ul li a:hover,
#main-nav ul li a:focus {
  opacity: 1;
  background-color: var(--blue-soft);
  color: var(--blue);
}

/* ---------- Hero slider ---------- */

.Modern-Slider .info {
  right: 60px;
  max-width: 560px;
  text-align: left;
  background: rgba(255, 255, 255, 0.95);
  padding: 34px 38px;
  border-radius: 14px;
  border-top: 6px solid var(--blue);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.Modern-Slider .info h1 {
  font-size: 38px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 18px;
}

.Modern-Slider .info .hero-button { margin-top: 24px; }

.hero-button a {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  background-color: var(--blue);
  padding: 0 30px;
  height: 52px;
  line-height: 52px;
  border-radius: 8px;
  text-decoration: none;
  text-transform: none;
  transition: background-color 0.2s;
}

.hero-button a:hover,
.hero-button a:focus {
  background-color: var(--blue-dark);
  color: var(--white);
}

.Modern-Slider .slick-dots { opacity: 0; }

/* ---------- Page sections ---------- */

.page-content .content-section {
  position: static;
  left: auto;
  transform: none;
  -webkit-transform: none;
  display: block;
  text-align: left;
  padding: 80px 60px;
  width: 100%;
}

.section-about { background: var(--white); }
.section-users { background: var(--blue-soft); }
.section-contact { background: var(--white); padding: 0 !important; }

.section-heading {
  text-align: left;
  margin-bottom: 36px;
}

.section-heading h1 {
  display: block;
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
}

.section-heading em {
  font-style: normal;
  font-weight: 800;
  color: var(--blue);
}

.section-heading p,
.section-heading p.lead {
  position: static;
  display: block;
  width: 100%;
  max-width: none;
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* About */

#featured {
  padding-left: 60px;
  padding-right: 60px;
  border-bottom: 0;
}

.about-text { max-width: 760px; }

.about-text p { font-size: 20px; color: var(--text); }

.about-text .callout {
  display: inline-block;
  margin-top: 12px;
  padding: 16px 24px;
  background: #fff8e6;
  border-left: 6px solid var(--sun);
  border-radius: 8px;
  font-size: 21px;
  font-weight: 700;
  color: var(--blue-dark);
}

/* In-text links */

.inline-link,
.inline-link:visited {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover,
.inline-link:focus { color: var(--blue-dark); }

/* Hall users */

.user-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 28px;
}

.user-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(18, 62, 117, 0.08);
}

.user-card img {
  width: 140px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

.user-card .text-content h4 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue-dark);
}

.user-card .text-content p { margin: 0 0 6px; font-size: 18px; }

.user-card .text-content a {
  font-weight: 600;
  font-size: 16px;
  overflow-wrap: break-word;
  text-decoration: underline;
}

/* Contact */

#contact { padding-top: 0; }

#contact-content { padding: 80px 60px; }

#contact-form input,
#contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  font-size: 18px;
  color: var(--text);
  background-color: var(--white);
  border: 2px solid #aac3e0;
  border-radius: 8px;
  padding: 0 16px;
  height: 54px;
  line-height: 54px;
  box-shadow: none;
  margin-bottom: 22px;
}

#contact-form textarea {
  height: 200px;
  max-height: 300px;
  line-height: 1.6;
  padding-top: 12px;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder { color: #566472; opacity: 1; }

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 90, 166, 0.2);
}

#contact-form button {
  width: 100%;
  height: 56px;
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
  color: var(--white);
  background-color: var(--blue);
  background-image: none;
  border: 0;
  border-radius: 8px;
  text-transform: none;
  text-shadow: none;
  transition: background-color 0.2s;
}

#contact-form button:hover,
#contact-form button:focus {
  color: var(--white);
  background-color: var(--blue-dark);
}

/* Form status message */

.form-status { margin-top: 18px; font-size: 18px; font-weight: 600; border-radius: 8px; }
.form-status.success,
.form-status.error { padding: 14px 18px; }
.form-status.success { background: #e6f6ea; color: #14532d; border-left: 6px solid #2e9e5b; }
.form-status.error { background: #fdecec; color: #7f1d1d; border-left: 6px solid #d64545; }

#contact-form button:disabled { opacity: 0.7; cursor: wait; }

/* Map */

.section-map {
  padding: 80px 60px;
  background: var(--blue-soft);
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(18, 62, 117, 0.08);
  background: var(--white);
}

.map-frame iframe { display: block; width: 100%; }

.map-link { margin: 16px 0 0; }
.map-link a { font-weight: 700; text-decoration: underline; }

/* Footer */

.footer {
  background-color: var(--blue-soft);
  border-top: 1px solid var(--line);
  height: auto;
  padding: 26px 20px;
}

.footer p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
  .sidebar-navigation .logo a { font-size: 16px; }
  .sidebar-navigation nav a { font-size: 16px; }
  .Modern-Slider .info { right: 30px; max-width: 480px; }
  .Modern-Slider .info h1 { font-size: 32px; }
}

@media (max-width: 767px) {
  body, p { font-size: 17px; }

  /* Home / hero on phones: photo on top, text card underneath (desktop unchanged) */
  .Modern-Slider,
  .slider .Modern-Slider.content-section {
    --hero-img: clamp(230px, 68vw, 420px);
    padding-top: 64px;
    min-height: 0;
    height: auto;
    background: var(--white);
  }

  .Modern-Slider .item .image {
    height: var(--hero-img);
    animation: none;
    -webkit-animation: none;
  }

  .Modern-Slider .info {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: block;
    width: 100%;
    max-width: none;
    margin: -24px 0 0;
    padding: 28px 22px 34px;
    transform: none;
    -webkit-transform: none;
    text-align: left;
    background: var(--blue-soft);
    border-top: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -6px 18px rgba(18, 62, 117, 0.18);
  }

  .Modern-Slider .info h1 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 0;
  }

  .Modern-Slider .info h1 br { display: none; }
  .Modern-Slider .slick-dots { display: none !important; }

  .Modern-Slider .info .hero-button { margin-top: 22px; }

  .hero-button a {
    display: block;
    text-align: center;
    width: 100%;
  }

  .Modern-Slider .PrevArrow,
  .Modern-Slider .NextArrow {
    top: calc(64px + var(--hero-img) - 82px);
    left: auto;
    width: 46px;
    height: 46px;
    margin: 0;
    transform: none;
    -webkit-transform: none;
    font: 30px/46px FontAwesome;
    background: rgba(18, 62, 117, 0.85);
    border-radius: 8px;
  }

  .Modern-Slider .NextArrow { right: 16px; }
  .Modern-Slider .PrevArrow { right: 70px; }

  .page-content .content-section,
  #featured { padding: 56px 20px; }

  .section-map { padding: 56px 20px; }
  .map-frame iframe { height: 320px; }

  .section-contact { padding: 0 !important; }
  #contact-content { padding: 56px 20px; }

  .section-heading h1 { font-size: 32px; }
  .section-heading p.lead { font-size: 19px; }
  .about-text p { font-size: 18px; }

  .user-cards { grid-template-columns: 1fr; }
  .user-card .text-content a { font-size: 17px; }
  .user-card { flex-direction: column; }
  .user-card img { width: 100%; max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .Modern-Slider .item .image { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Gallery page ---------- */

.section-gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.gallery-item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(18, 62, 117, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(18, 62, 117, 0.16); }

.gallery-item a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.gallery-item a:hover img,
.gallery-item a:focus img { transform: scale(1.05); }

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  background: rgba(18, 62, 117, 0.85);
  border-radius: 50%;
}

.gallery-item figcaption {
  padding: 14px 18px 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-dark);
}

/* Lightbox */

body.lb-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 12px;
  background: rgba(10, 25, 47, 0.93);
}

.lightbox[hidden] { display: none; }

.lb-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  text-align: center;
}

.lb-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
}

.lb-caption { margin-top: 14px; font-size: 18px; color: #fff; }

.lb-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lb-btn:hover, .lb-btn:focus { background: var(--blue); }

.lb-close { position: absolute; top: 16px; right: 16px; font-size: 34px; }

@media (max-width: 767px) {
  .gallery-page { padding-top: 64px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 22px; }

  .lightbox { flex-direction: column; justify-content: center; padding: 70px 10px 20px; }
  .lb-figure { order: 1; }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; width: 56px; height: 56px; }
  .lb-prev { left: calc(50% - 70px); }
  .lb-next { right: calc(50% - 70px); }
  .lb-img { max-height: 62vh; }
}
