/* ==========================================================================
   St Joseph The Artisan Academy - Theme Stylesheet
   Matches The7 / stjoseph-theartisan.sc.ke visual theme & structure
   ========================================================================== */

:root {
  --primary: #911d3c;
  --accent: #fca800;
  --brand-orange: #f58220;
  --body-bg: #ffffff;
  --body-text: #000000;
  --heading-text: #000000;
  --menu-text: #000000;
  --border-light: #eeeeee;
  --footer-bg: #252525;
  --footer-bottom-bg: #1f1f1f;
  --footer-text: #aaaaaa;
  --hero-height: 600px;
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
  font-size: 14px;
  line-height: 26px;
  color: var(--body-text);
  background-color: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Helvetica, Arial, Verdana, sans-serif;
  color: var(--heading-text);
  margin-top: 0;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top Utility Bar ---------- */
.top-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 7px 0;
  font-size: 13px;
  color: #000000;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f4f4;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.25s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: #ffffff;
}

.top-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #000000;
  font-size: 13px;
}

.top-phone:hover {
  color: var(--primary);
}

/* ---------- Main Header & Navigation ---------- */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-family: "Montserrat", Helvetica, Arial, Verdana, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--menu-text);
  padding: 8px 0;
  position: relative;
  display: inline-block;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav li {
  position: relative;
}

.nav-caret {
  font-size: 10px;
  margin-left: 5px;
  vertical-align: middle;
}

.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 950;
}

.main-nav li.has-dropdown:hover > .sub-menu,
.main-nav li.has-dropdown:focus-within > .sub-menu {
  display: flex;
}

.main-nav .sub-menu li {
  width: 100%;
  border-bottom: 1px solid #f2f2f2;
}

.main-nav .sub-menu li:last-child {
  border-bottom: none;
}

.main-nav .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav .sub-menu a::after {
  display: none;
}

.main-nav .sub-menu a:hover,
.main-nav .sub-menu a.active {
  background: #f9f6f7;
  color: var(--primary);
}

.mobile-sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 6px 16px;
}

.mobile-sub-menu li {
  border-bottom: none;
}

.mobile-sub-menu a {
  padding: 7px 4px;
  font-size: 13px;
  font-weight: 500;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--menu-text);
  font-size: 22px;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1190;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  height: 100vh;
  background: #ffffff;
  z-index: 1200;
  padding: 20px 24px 28px;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--heading-text);
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--menu-text);
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-drawer-close:hover {
  color: var(--primary);
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer li {
  border-bottom: 1px solid #f3f3f3;
}

.mobile-drawer a {
  display: block;
  padding: 9px 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 13.5px;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--menu-text);
}

.mobile-drawer a.active {
  color: var(--primary);
}

.mobile-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.mobile-drawer a.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mobile-drawer a.mobile-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.mobile-drawer a.mobile-cta-apply {
  background: linear-gradient(135deg, var(--primary) 0%, #b5244b 100%);
}

.mobile-drawer a.mobile-cta-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

/* ---------- Hero Slider (Slider Revolution Style) ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  overflow: hidden;
  background: #1a1a1a;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease-in-out, visibility 0.85s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slider.transition-slide .hero-slide {
  transform: translateX(40px);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.hero-slider.transition-slide .hero-slide.active {
  transform: translateX(0);
}

.hero-slide.align-left {
  justify-content: flex-start;
  padding-left: 7%;
}

.hero-slide.align-left .hero-content {
  text-align: left;
}

.hero-slide.align-right {
  justify-content: flex-end;
  padding-right: 7%;
}

.hero-slide.align-right .hero-content {
  text-align: right;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, var(--slide-overlay-top, 0.5)) 0%,
    rgba(0, 0, 0, var(--slide-overlay-bottom, 0.3)) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 960px;
}

.hero-title {
  font-family: "Montserrat", Helvetica, Arial, Verdana, sans-serif;
  font-size: 36px;
  line-height: 45px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-subtitle-line {
  display: block;
}

.hero-btn {
  display: inline-block;
  font-family: "Montserrat", Helvetica, Arial, Verdana, sans-serif;
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
  color: #303030;
  padding: 14px 26px;
  border-radius: 0;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.hero-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.75;
}

.hero-arrow:hover {
  background: var(--primary);
  opacity: 1;
}

.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.hero-dot.active {
  background: #ffffff;
  transform: scale(1.15);
}

/* ---------- Welcome & 3-Column Feature Grid ---------- */
.section {
  padding: 64px 0;
}

.section-compact-top {
  padding-top: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
  color: var(--heading-text);
  margin: 0 0 14px;
}

.section-underline {
  width: 50px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto;
}

.section-intro {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--body-text);
  font-size: 15px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.welcome-card {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  display: block;
}

.welcome-card-img-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.welcome-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.welcome-card:hover .welcome-card-img-wrap img {
  transform: scale(1.07);
}

.welcome-card-body {
  padding: 16px 18px;
  background: #fafafa;
  border-top: 2px solid var(--primary);
}

.welcome-card-body h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.welcome-card-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 22px;
}

/* ---------- Photo Carousel / Gallery Section ---------- */
.gallery-section {
  padding: 10px 0 70px;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.carousel-item {
  flex: 0 0 calc((100% - 50px) / 6);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #eaeaea;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-item:hover img {
  transform: scale(1.08);
}

.carousel-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(145, 29, 60, 0.35);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  transition: opacity 0.25s ease;
}

.carousel-item:hover .carousel-item-overlay {
  opacity: 1;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(34, 34, 34, 0.72);
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease;
}

.carousel-nav:hover {
  background: var(--primary);
}

.carousel-nav.prev { left: 8px; }
.carousel-nav.next { right: 8px; }

/* ---------- Lightbox Modal ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  text-align: center;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-caption {
  color: #e0e0e0;
  margin-top: 10px;
  font-size: 14px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Academic Programmes, Why Choose Us, Vision/Mission & Admissions CTA ---------- */
.section-alt {
  background: #f8f8f8;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.programmes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.programme-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--primary);
  padding: 26px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.programme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.programme-badge {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  margin-bottom: 8px;
}

.programme-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.programme-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 23px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: #fafafa;
  border: 1px solid var(--border-light);
  padding: 24px 22px;
}

.why-card-icon {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 10px;
}

.why-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.why-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 23px;
}

.vmm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.vmm-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  padding: 26px 24px;
}

.vmm-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
}

.values-wrap {
  text-align: center;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.value-pill {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 9px 18px;
  background: #ffffff;
  color: var(--heading-text);
  border: 1px solid var(--border-light);
  border-bottom: 3px solid var(--primary);
}

.admissions-cta {
  background: var(--primary);
  color: #ffffff;
  padding: 52px 0;
  text-align: center;
}

.admissions-cta h2 {
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 12px;
}

.admissions-cta p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

.admissions-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-outline-white {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border: 2px solid #ffffff;
  color: #ffffff;
  transition: all 0.25s ease;
}

.btn-outline-white:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

@media (max-width: 1099px) {
  .programmes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .why-grid,
  .vmm-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .programmes-grid,
  .why-grid,
  .vmm-grid { grid-template-columns: 1fr; }
}

/* ---------- Page Title Banner & Contact Page ---------- */
.page-banner {
  background: #f7f7f7;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0;
}

.page-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.page-banner h1 {
  font-size: 24px;
  margin: 0;
  color: var(--heading-text);
}

.breadcrumbs {
  font-size: 13px;
  color: #000000;
}

.breadcrumbs a {
  color: #000000;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid var(--primary);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.contact-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.contact-card p {
  margin: 0;
  font-size: 14px;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-split h2 {
  font-size: 20px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  position: relative;
}

.contact-split h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--primary);
}

.map-frame {
  width: 100%;
  height: 430px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.form-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--primary);
  border-radius: 10px;
  padding: 28px 26px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.form-card-subtitle {
  margin: -10px 0 20px;
  font-size: 13.5px;
  color: #444444;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: #000000;
}

.req-star {
  color: #c62828;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cfd4dc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #000000;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: #8a929e;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(145, 29, 60, 0.14);
}

.captcha-box {
  background: #f9f6f7;
  border: 1.5px solid #e5d4d9;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.captcha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.captcha-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  color: #000000;
  margin: 0;
}

.captcha-label i {
  color: var(--primary);
}

.captcha-pill {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.btn-primary {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(145, 29, 60, 0.22);
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(252, 168, 0, 0.3);
}

.btn-block {
  width: 100%;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  border-left: 4px solid;
}

.alert-success {
  background: #eefaf0;
  border-color: #2e7d32;
  color: #1b5e20;
}

.alert-error {
  background: #fdecea;
  border-color: #c62828;
  color: #b71c1c;
}

/* ---------- News Cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  border: 1px solid var(--border-light);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card-body {
  padding: 20px;
  flex: 1;
}

.news-date {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 44px;
  font-size: 13.5px;
  line-height: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 18px;
}

.footer-contact-list,
.footer-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact-list li,
.footer-news-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-list i {
  color: var(--primary);
  margin-top: 5px;
  width: 16px;
}

.footer-news-list a {
  color: #cccccc;
}

.footer-news-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  background: var(--footer-bottom-bg);
  color: #888888;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 40px;
  height: 40px;
  background: rgba(34, 34, 34, 0.8);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 800;
  transition: background-color 0.25s ease;
}

.back-to-top.visible {
  display: inline-flex;
}

.back-to-top:hover {
  background: var(--primary);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1199px) {
  .carousel-item { flex: 0 0 calc((100% - 40px) / 5); }
}

@media (max-width: 991px) {
  .main-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero-slider { height: 480px; }
  .hero-title { font-size: 30px; line-height: 38px; }
  .welcome-grid,
  .contact-cards,
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-split { grid-template-columns: 1fr; }
  .carousel-item { flex: 0 0 calc((100% - 30px) / 4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .top-bar-inner { justify-content: center; flex-wrap: wrap; }
  .header-inner { min-height: 78px; }
  .site-logo img { max-height: 62px; }
  .hero-slider { height: 400px; }
  .hero-title { font-size: 24px; line-height: 32px; }
  .welcome-grid,
  .contact-cards,
  .news-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .carousel-item { flex: 0 0 calc((100% - 20px) / 3); }
}

@media (max-width: 519px) {
  .carousel-item { flex: 0 0 100%; }
}
