/* ==========================================================================
   S. J. Education Centre — Modern UI theme
   Design tokens + base styles + reusable components (layered on Bootstrap 5)
   ========================================================================== */

:root {
  /* Brand palette */
  --brand-ink: #101828;
  --brand-primary: #4338CA;      /* deep indigo */
  --brand-primary-dark: #312A8E;
  --brand-primary-light: #EEF0FD;
  --brand-accent: #F59E0B;       /* warm amber */
  --brand-accent-dark: #D97E06;

  /* Neutrals */
  --ink: #101828;
  --ink-muted: #475467;
  --ink-soft: #667085;
  --surface: #FFFFFF;
  --surface-alt: #F7F8FB;
  --surface-dark: #0D1326;
  --border: #E4E7EC;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.16);

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Type */
  --font-sans: 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif;

  /* Layout */
  --header-h: 84px;
  --container-max: 1240px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

p {
  text-align: left;
  color: var(--ink-muted);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--brand-primary);
}

a:hover {
  color: var(--brand-primary-dark);
}

img {
  max-width: 100%;
}

::selection {
  background: var(--brand-accent);
  color: #1a1200;
}

/* ---------- Layout helpers ---------- */
.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-dark {
  background: var(--surface-dark);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 14px;
}

.section-subtext {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-brand:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-brand-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 999px;
  background: transparent;
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  transition: all 0.2s ease;
}

.btn-brand-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #1a1200 !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-accent:hover {
  background: var(--brand-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Legacy .cta buttons used across inner pages: map to brand style without touching markup */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px !important;
  border-radius: 999px;
  background: var(--brand-primary) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-sm) !important;
  transform: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  background: var(--brand-primary-dark) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px) !important;
}

.cta svg path {
  fill: #fff !important;
}

/* ---------- Cards ---------- */
.card-modern {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.top-bar {
  background: var(--brand-primary);
  color: #e9e8ff;
  font-size: 13px;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--brand-accent);
}

.navbar.site-navbar {
  background: transparent;
  padding: 14px 0;
}

.site-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink) !important;
  padding-left: 0;
}

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

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

.site-navbar .brand-text .brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.site-navbar .brand-text .brand-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-navbar .nav-item {
  padding: 4px 4px;
}

.site-navbar .nav-link {
  font-weight: 600 !important;
  font-size: 14.5px;
  color: var(--ink) !important;
  padding: 10px 16px !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--brand-primary) !important;
  background: var(--brand-primary-light);
}

.site-navbar .dropdown-menu {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-lg);
  padding: 8px !important;
  margin-top: 8px !important;
}

.site-navbar .dropdown-menu li a {
  border-radius: 10px;
  padding: 9px 14px !important;
  color: var(--ink) !important;
  font-weight: 500;
  font-size: 14.5px;
  border-bottom: none !important;
}

.site-navbar .dropdown-menu li a:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary) !important;
}

.site-navbar .navbar-toggler {
  border: none !important;
  box-shadow: none !important;
}

.site-navbar .navbar-toggler-icon {
  background-color: transparent !important;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px !important;
  border-radius: 999px;
  background: var(--brand-accent) !important;
  color: #1a1200 !important;
  font-weight: 700 !important;
  font-size: 14px;
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--brand-accent-dark) !important;
}

@media only screen and (max-width: 991px) {
  .site-navbar .navbar-collapse {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 14px;
    margin-top: 14px;
    border: 1px solid var(--border);
  }

  .nav-cta {
    margin-top: 10px;
    justify-content: center;
  }
}

/* ---------- Hero / slider ---------- */
.hero-slider {
  position: relative;
  background: var(--surface-dark);
}

.hero-slider .carousel-item {
  position: relative;
}

.hero-slider .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
}

.hero-slider .carousel-item img {
  width: 100%;
  height: clamp(320px, 56vw, 620px);
  object-fit: cover;
  object-position: center;
}

.hero-slider .carousel-caption {
  left: 6%;
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 620px;
}

.hero-slider .carousel-caption .hero-eyebrow {
  display: inline-block;
  background: rgba(245, 158, 11, 0.95);
  color: #1a1200;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-slider .carousel-caption h5 {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  color: #fff !important;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: none;
}

.hero-slider .carousel-caption p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #e6e8f0 !important;
  text-align: left;
  margin-bottom: 0;
}

.hero-slider .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  opacity: 1;
}

.hero-slider .carousel-indicators .active {
  background-color: var(--brand-accent);
  width: 26px;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  opacity: 1;
}

.hero-slider .carousel-control-prev { left: 18px; }
.hero-slider .carousel-control-next { right: 18px; }

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
  background: var(--brand-accent);
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  width: 18px;
  height: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: #c4c8db;
  padding: 64px 0 0;
}

.site-footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  border-bottom: none;
  padding: 0 0 18px 0;
  letter-spacing: -0.01em;
}

.site-footer .footer-item-list {
  padding-left: 0;
  list-style: none;
}

.site-footer .footer-item-list li {
  color: #9aa0bd;
  line-height: 1.9;
  font-size: 14.5px;
}

.site-footer .footer-item-list li a {
  color: #9aa0bd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-item-list li a:hover {
  color: var(--brand-accent);
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.site-footer .footer-brand img {
  height: 46px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}

.site-footer .footer-brand .fb-name {
  font-weight: 700;
  color: #fff;
  font-size: 17px;
}

.site-footer .social-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.site-footer .social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-footer .social-row a:hover {
  background: var(--brand-accent);
  color: #1a1200;
  transform: translateY(-2px);
}

.site-footer .location-sec {
  width: 100%;
  height: 190px;
  border: 0;
  border-radius: var(--radius-sm);
  filter: grayscale(0.2);
}

.site-footer .footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
}

.site-footer .copyright {
  background: transparent;
  text-align: center;
  color: #80869e;
  padding: 18px 0;
  font-size: 13.5px;
}

.site-footer .copyright a {
  color: #c4c8db;
  text-decoration: none;
}

.site-footer .copyright a:hover {
  color: var(--brand-accent);
}

.site-footer .copyright .developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: middle;
}

.site-footer .copyright .developer-credit-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.site-footer .copyright .developer-credit-name {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.site-footer .copyright .developer-credit:hover .developer-credit-name {
  color: var(--brand-accent);
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}

.read-more-btn:hover {
  color: var(--brand-primary-dark);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  padding: 56px 0 64px;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 85% 0%, rgba(245, 158, 11, 0.28), transparent 60%);
  pointer-events: none;
}

.page-hero .breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb-row a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.page-hero .breadcrumb-row a:hover {
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin: 14px 0 0;
  position: relative;
  z-index: 1;
}

/* ---------- Feature rows (alternating image/content) ---------- */
.feature-row {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-of-type {
  border-bottom: none;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-row .feature-media {
  flex: 0 0 44%;
  max-width: 44%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-row .feature-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.feature-row:hover .feature-media img {
  transform: scale(1.04);
}

.feature-row .feature-body {
  flex: 1;
}

.feature-row .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-row h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

@media screen and (max-width: 860px) {
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 20px;
    padding: 28px 0;
  }

  .feature-row .feature-media {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .feature-row .feature-media img {
    height: 220px;
  }
}

/* ---------- Gallery / album grid cards ---------- */
.gallery-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
}

.gallery-card .gallery-card-img {
  width: 100%;
  height: 210px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.gallery-card .gallery-card-date {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 24, 40, 0.65);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.gallery-card .gallery-card-body {
  padding: 16px 18px 18px;
}

.gallery-card .gallery-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card .gallery-card-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-primary);
}

.gallery-card:hover .gallery-card-img {
  filter: brightness(1.04);
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--ink-soft);
}

.empty-state i {
  font-size: 40px;
  color: var(--brand-primary-light);
  display: block;
  margin-bottom: 14px;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination li a:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-color: var(--brand-primary-light);
}

.pagination li.active a,
.pagination li.active span {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* ---------- Misc shared ---------- */
.page-top-banner-img {
  width: 100%;
  height: auto;
}

.alt-bg {
  background-color: var(--surface-alt);
}

@media screen and (max-width: 767px) {
  .about-us-content-50 {
    width: 100%;
    padding-right: unset;
  }

  .about-us-content-100 p {
    text-align: justify;
  }

  .section {
    padding: 48px 0;
  }
}

/* ---------- Floating contact widget ---------- */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.floating-contact-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  font-size: 22px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-contact-btn:hover {
  color: #fff;
  transform: scale(1.08);
}

.floating-contact-btn.fc-whatsapp { background: #25D366; }
.floating-contact-btn.fc-call { background: var(--brand-primary); }
.floating-contact-btn.fc-facebook { background: #1877F2; }

.fc-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.floating-contact-btn:hover .fc-tooltip {
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .floating-contact {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }

  .floating-contact-btn {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }

  .fc-tooltip {
    display: none;
  }
}
