/* =========================================================
   Beacon Education — static replica styles
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #414141;
  font-family: "Montserrat", "Libre Franklin", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

a {
  color: #414141;
  text-decoration: none;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}

/* ---------- Buttons ---------- */
.button2 {
  display: inline-block;
  border: 1px solid #fec905;
  background: transparent;
  color: #414141;
  padding: 13px 34px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  -webkit-transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease;
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease;
}

.button-2 {
  border-radius: 25px;
  min-width: 167px;
}

.button2:hover,
.button2:focus-visible {
  background: #bf1853;
  border-color: #bf1853;
  color: #ffffff;
  outline: none;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  background: #ffffff;
  padding: 18px 0;
  -webkit-transition: padding 0.4s ease, box-shadow 0.4s ease;
  transition: padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header .wrap {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
}

.logo-btn {
  border: 0;
  background: none;
  padding: 0;
}

.logo-btn img {
  width: 190px;
  height: auto;
}

.header-right {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 34px;
}

.header-images {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 26px;
}

.contact-trigger {
  border: 0;
  background: none;
  padding: 0;
  color: #414141;
  font-size: 14px;
  font-weight: 500;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.contact-trigger:hover {
  color: #bf1853;
}

.email span {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hamburger */
.button-menu {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  padding: 0;
}

.button-menu .icon-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #414141;
}

.wrap-ib {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
  gap: 6px;
  width: 40px;
}

.icon-bar {
  display: block;
  height: 3px;
  width: 40px;
  background: #fec905;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

.icon-bar:nth-child(2) {
  width: 32px;
}

.icon-bar:nth-child(3) {
  width: 24px;
}

.button-menu:hover .icon-bar {
  background: #bf1853;
}

/* =========================================================
   HERO
   ========================================================= */
.slider {
  position: relative;
  min-height: 640px;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 42%,
    rgba(255, 255, 255, 0.25) 75%,
    rgba(255, 255, 255, 0) 100%
  );
}

.caption-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.caption-header {
  max-width: 640px;
}

.caption-desc {
  font-size: 50px;
  line-height: 1.12;
  font-weight: 700;
  color: #414141;
  margin: 0 0 26px;
}

.short-desc p {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 520px;
}

/* thin banner image strip */
.hero-image {
  line-height: 0;
}

.hero-image img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

/* =========================================================
   PARENTS / TUTORS SERVICES
   ========================================================= */
.services {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  gap: 120px;
  padding: 100px 40px 80px;
}

.service {
  max-width: 420px;
  text-align: center;
}

.service .title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 22px;
}

.service .desc {
  font-size: 16px;
  line-height: 1.75;
  color: #555555;
  margin-bottom: 32px;
}

/* =========================================================
   SPLIT IMAGE / CONTENT
   ========================================================= */
.wrap-section {
  padding-bottom: 90px;
}

.content-image-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.content-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  -webkit-box-align: center;
  align-items: center;
}

.content-image .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-align-left {
  padding: 30px 0;
}

.wrap-cont-sec h2 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 26px;
}

.wrap-cont-sec p {
  font-size: 16px;
  line-height: 1.8;
  color: #555555;
}

.inline-open {
  color: #bf1853;
  border-bottom: 1px solid rgba(191, 24, 83, 0.4);
  -webkit-transition: border-color 0.3s ease, color 0.3s ease;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.inline-open:hover {
  color: #414141;
  border-color: #414141;
}

.link-wrap {
  margin-top: 12px;
}

.link {
  border: 0;
  background: none;
  padding: 0;
}

/* =========================================================
   LATEST BLOG
   ========================================================= */
.latest-blog {
  text-align: center;
  padding: 100px 40px;
  background-color: #fec905;
}

.latest-blog .title {
  font-size: 34px;
  font-weight: 600;
  text-transform: lowercase;
  margin-bottom: 60px;
}

.wrap-latestnews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.latest-post-item {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
}

.thumb-btn {
  border: 0;
  padding: 0;
  background: none;
  width: 100%;
}

.post-thumb img {
  width: 100%;
  aspect-ratio: 364 / 244;
  object-fit: cover;
  -webkit-transition: opacity 0.35s ease, -webkit-transform 0.35s ease;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.thumb-btn:hover img {
  opacity: 0.85;
  -webkit-transform: scale(1.02);
  transform: scale(1.02);
}

.postit {
  border: 0;
  background: none;
  padding: 18px 0 0;
  text-align: left;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: #414141;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.postit:hover {
  color: #bf1853;
}

.wrap-btn {
  margin-top: auto;
  padding-top: 18px;
}

.latest-post-item .button2 {
  font-size: 14px;
  padding: 11px 26px;
}

/* =========================================================
   CTA / FORM
   ========================================================= */
#ctas {
  padding: 90px 0 100px;
  text-align: center;
}

.cta-icon {
  margin-bottom: 20px;
}

.cta-icon img {
  width: 64px;
  margin: 0 auto;
}

#ctas .title {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 44px;
}

.homepage-form {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

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

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.homepage-form input,
.homepage-form select,
.homepage-form textarea,
.modal-form input {
  width: 100%;
  border: 1px solid #ddd;
  background: #fff;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  color: #414141;
  border-radius: 0;
  -webkit-transition: border-color 0.3s ease;
  transition: border-color 0.3s ease;
}

.homepage-form input:focus,
.homepage-form select:focus,
.homepage-form textarea:focus,
.modal-form input:focus {
  outline: none;
  border-color: #fec905;
}

.homepage-form textarea {
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 26px;
}

.submit-btn {
  background: transparent;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 18px;
}

.form-success {
  max-width: 560px;
  margin: 0 auto;
  padding: 30px;
}

.form-success p {
  font-size: 18px;
}

.form-success p:first-child {
  font-weight: 600;
  font-size: 22px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #3a3a3a;
  background: #2f2f2f;
  padding: 70px 0 50px;
}

.site-footer .wrap {
  text-align: center;
}

.social {
  list-style: none;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  gap: 18px;
  padding: 0;
  margin: 0 0 40px;
}

.social-btn {
  border: 0;
  background: none;
  padding: 0;
}

.image-box img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}

.social-btn:hover img {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
}

.footer-cont {
  color: #ffffff;
}

.footer-link {
  border: 0;
  background: none;
  padding: 0;
  color: #fec905;
  font-size: 20px;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-link.small {
  font-size: 14px;
}

.contact-line {
  margin-bottom: 12px;
}

.address-line {
  color: #fec905;
  font-size: 16px;
  margin-bottom: 22px;
}

.dot {
  color: #ffffff;
  margin: 0 8px;
}

.legal-line {
  font-size: 14px;
  color: #ffffff;
}

/* =========================================================
   FULLSCREEN OVERLAY MENU
   ========================================================= */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fec905;
  z-index: 9500;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-transition: opacity 0.45s ease, visibility 0s 0.45s;
  transition: opacity 0.45s ease, visibility 0s 0.45s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.45s ease, visibility 0s 0s;
  transition: opacity 0.45s ease, visibility 0s 0s;
}

.overlay .wrap {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.overlay .header-right {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 30px;
}

.overlay .contact-trigger {
  color: #414141;
}

.overlay-close {
  border: 0;
  background: none;
  padding: 6px;
  line-height: 0;
}

.overlay-close svg line {
  stroke: #414141;
  -webkit-transition: stroke 0.3s ease;
  transition: stroke 0.3s ease;
}

.overlay-close:hover svg line {
  stroke: #bf1853;
}

/* Menu nav */
.overlay nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.overlay-menu {
  opacity: 0;
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  -webkit-transition: opacity 0.45s ease 0.12s, -webkit-transform 0.45s ease 0.12s;
  transition: opacity 0.45s ease 0.12s, transform 0.45s ease 0.12s;
}

.overlay.open .overlay-menu {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

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

.menu > li {
  border-bottom: 1px solid rgba(65, 65, 65, 0.18);
}

.menu > li > button {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 16px 0;
  font-size: 30px;
  font-weight: 600;
  color: #414141;
  -webkit-transition: color 0.3s ease, padding-left 0.3s ease;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.menu > li > button:hover {
  color: #bf1853;
  padding-left: 12px;
}

.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 14px 28px;
}

.sub-menu button {
  border: 0;
  background: none;
  padding: 7px 0;
  font-size: 16px;
  font-weight: 500;
  color: #5a5a5a;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.sub-menu button:hover {
  color: #bf1853;
}

/* =========================================================
   MODAL
   ========================================================= */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 9700;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.35s ease, visibility 0s 0.35s;
  transition: opacity 0.35s ease, visibility 0s 0.35s;
}

.modal-root.open {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.35s ease, visibility 0s 0s;
  transition: opacity 0.35s ease, visibility 0s 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.62);
}

.modal-dialog {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 780px;
  max-height: 86vh;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  opacity: 0;
  -webkit-transform: translateY(18px) scale(0.985);
  transform: translateY(18px) scale(0.985);
  -webkit-transition: opacity 0.35s ease, -webkit-transform 0.35s ease;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.modal-root.open .modal-dialog {
  opacity: 1;
  -webkit-transform: translateY(0) scale(1);
  transform: translateY(0) scale(1);
}

.modal-dialog:focus {
  outline: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  border: 0;
  background: #ffffff;
  width: 38px;
  height: 38px;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  border-radius: 50%;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background: #f4f4f4;
}

.modal-header {
  padding: 36px 44px 0;
}

.modal-title {
  font-size: 28px;
  margin-bottom: 0;
  padding-right: 40px;
}

.modal-body {
  padding: 22px 44px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-body p,
.modal-body li {
  font-size: 15.5px;
  line-height: 1.78;
  color: #555555;
}

.modal-body h3 {
  font-size: 20px;
  margin-top: 28px;
  color: #414141;
}

.modal-body h4 {
  font-size: 17px;
  margin-top: 22px;
  color: #414141;
}

.modal-footer {
  padding: 8px 44px 32px;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.modal-primary {
  font-size: 14px;
  padding: 12px 30px;
}

.modal-text-btn {
  border: 0;
  background: none;
  font-size: 14px;
  color: #888;
  padding: 10px 6px;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.modal-text-btn:hover {
  color: #bf1853;
}

/* ---------- Modal content specifics ---------- */
.modal-list {
  padding-left: 20px;
}

.modal-list li {
  margin-bottom: 8px;
}

.modal-steps {
  padding-left: 22px;
  counter-reset: step;
}

.modal-steps li {
  margin-bottom: 14px;
}

.modal-steps li strong {
  color: #414141;
}

.modal-kicker {
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bf1853 !important;
  font-weight: 600;
  margin-bottom: 18px !important;
}

.modal-hero-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 6px 0 24px;
}

/* contact blocks */
.modal-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 10px;
}

.modal-contact-block h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bf1853;
  margin-bottom: 8px;
}

.modal-contact-block p {
  font-size: 15px !important;
}

.modal-form-note {
  font-size: 13px !important;
  color: #999 !important;
  margin-top: 16px;
}

/* FAQ */
.modal-faq h4 {
  margin-bottom: 6px;
}

.modal-faq p {
  margin-bottom: 20px;
}

/* gallery */
.modal-gallery {
  margin: 20px 0;
}

.modal-gallery figure {
  margin: 0 0 18px;
}

.modal-gallery img {
  width: 100%;
}

/* people */
.modal-person-name {
  font-weight: 600;
  color: #414141 !important;
  margin-bottom: 4px !important;
}

.modal-person-name span {
  font-weight: 400;
  color: #888;
}

/* case studies */
.modal-case h3 {
  margin-top: 32px;
}

.modal-case img {
  width: 100%;
  margin-bottom: 18px;
}

.modal-fee {
  font-weight: 600;
  color: #bf1853 !important;
}

/* inline links in modal */
.modal-body a,
.modal-inline-note a {
  color: #bf1853;
  border-bottom: 1px solid rgba(191, 24, 83, 0.4);
}

.modal-body a:hover {
  color: #414141;
}

.modal-inline-note {
  background: #fafafa;
  border-left: 3px solid #fec905;
  padding: 14px 18px;
}

/* latest list items */
.latest-list {
  list-style: none;
  padding: 0;
}

.modal-link-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #414141;
  border-bottom: 1px solid #eee;
  -webkit-transition: color 0.3s ease, padding-left 0.3s ease;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.modal-link-item:hover {
  color: #bf1853;
  padding-left: 10px;
}

/* modal mini form */
.modal-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 6px;
}

.modal-form-msg {
  margin-top: 18px !important;
  color: #bf1853 !important;
  font-size: 14px !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .caption-desc {
    font-size: 40px;
  }
  .services {
    gap: 60px;
  }
}

@media (max-width: 900px) {
  .wrap {
    padding: 0 24px;
  }

  .header-images {
    display: none;
  }

  .hero-bg::after {
    background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.75) 55%,
      rgba(255, 255, 255, 0.3) 100%
    );
  }

  .slider {
    min-height: 560px;
  }

  .caption-header {
    max-width: 100%;
  }

  .services {
    -webkit-box-orient: vertical;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    gap: 60px;
    padding: 80px 24px;
  }

  .content-image {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content-image-wrap {
    padding: 0 24px;
  }

  .wrap-latestnews {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-contact {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .menu > li > button {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .logo-btn img {
    width: 150px;
  }

  .caption-desc {
    font-size: 31px;
  }

  .short-desc p {
    font-size: 16px;
  }

  .slider {
    min-height: 500px;
    padding-top: 110px;
  }

  .service .title,
  .wrap-cont-sec h2 {
    font-size: 24px;
  }

  .latest-blog {
    padding: 70px 24px;
  }

  .latest-blog .title {
    font-size: 27px;
    margin-bottom: 40px;
  }

  .wrap-latestnews {
    grid-template-columns: 1fr;
  }

  #ctas .title {
    font-size: 27px;
  }

  .form-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-header {
    padding: 30px 24px 0;
  }

  .modal-body {
    padding: 18px 24px;
  }

  .modal-footer {
    padding: 8px 24px 26px;
  }

  .modal-title {
    font-size: 22px;
  }

  .footer-link {
    font-size: 16px;
  }

  .legal-line .footer-link.small {
    display: inline-block;
  }
}




