/*
Theme Name: Big Education
Theme URI: https://bigeducation.com.np/
Author: Big Education Consultancy
Author URI: https://bigeducation.com.np/
Description: A custom WordPress theme for Big Education Consultancy, built for study abroad guidance, test preparation, services, branches, and student consultation inquiries.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: big-education
*/

:root {
  --be-red: #d71920;
  --be-red-dark: #a90f17;
  --be-ink: #151a44;
  --be-blue: #4e57a3;
  --be-muted: #657084;
  --be-line: #dfe5ee;
  --be-paper: #ffffff;
  --be-soft: #f6f7ff;
  --be-gold: #f2b705;
  --be-green: #0f9f6e;
  --be-shadow: 0 18px 55px rgba(23, 35, 60, 0.12);
  --be-radius: 8px;
  --be-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--be-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--be-paper);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--be-red);
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.be-container {
  width: min(var(--be-max), calc(100% - 32px));
  margin-inline: auto;
}

.be-topbar {
  background: var(--be-ink);
  color: #fff;
  font-size: 0.92rem;
}

.be-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}

.be-topbar__links,
.be-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.be-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--be-line);
  backdrop-filter: saturate(160%) blur(12px);
}

.be-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 28px;
}

.be-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.be-brand img {
  width: 72px;
  min-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.be-brand__text {
  display: grid;
  line-height: 1.15;
}

.be-brand__name {
  color: var(--be-red);
  font-weight: 800;
  font-size: 1.12rem;
}

.be-brand__tagline {
  color: var(--be-muted);
  font-size: 0.82rem;
}

.be-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.be-menu,
.be-menu ul {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.be-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--be-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.be-menu .sub-menu {
  position: absolute;
  display: grid;
  min-width: 230px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--be-line);
  border-radius: var(--be-radius);
  box-shadow: var(--be-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 160ms ease;
}

.be-menu li {
  position: relative;
}

.be-menu li:hover > .sub-menu,
.be-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.be-menu .sub-menu a {
  min-height: 38px;
  padding: 4px 8px;
  font-weight: 600;
}

.be-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--be-line);
  border-radius: var(--be-radius);
  background: #fff;
  color: var(--be-ink);
  cursor: pointer;
}

.be-menu-toggle span,
.be-menu-toggle::before,
.be-menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
}

.be-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: var(--be-radius);
  background: linear-gradient(135deg, var(--be-red), var(--be-blue));
  cursor: pointer;
}

.be-button:hover,
.be-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  color: #fff;
  background: var(--be-red-dark);
}

.be-button--ghost {
  color: var(--be-ink);
  background: #fff;
  border: 1px solid var(--be-line);
}

.be-button--ghost:hover,
.be-button--ghost:focus-visible {
  color: var(--be-red);
  background: #fff;
}

.be-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(23, 35, 60, 0.96) 0%, rgba(23, 35, 60, 0.78) 48%, rgba(215, 25, 32, 0.82) 100%),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.be-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 44px;
  align-items: center;
  min-height: 680px;
  padding: 70px 0 88px;
}

.be-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 0 0 16px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.be-hero h1,
.be-page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.5rem);
  line-height: 0.98;
}

.be-hero p {
  max-width: 670px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

.be-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.be-hero__actions .be-button--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.be-hero__panel {
  padding: 26px;
  color: var(--be-ink);
  border-radius: var(--be-radius);
  background: #fff;
  box-shadow: var(--be-shadow);
}

.be-hero__panel img {
  display: block;
  width: 120px;
  margin-bottom: 18px;
}

.be-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.be-stat {
  padding: 16px;
  border: 1px solid var(--be-line);
  border-radius: var(--be-radius);
  background: var(--be-soft);
}

.be-stat strong {
  display: block;
  color: var(--be-red);
  font-size: 1.8rem;
  line-height: 1;
}

.be-stat span {
  color: var(--be-muted);
  font-size: 0.86rem;
}

.be-section {
  padding: 76px 0;
}

.be-section--soft {
  background: var(--be-soft);
}

.be-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.be-section__head h2,
.be-content h1,
.be-content h2,
.be-content h3 {
  margin: 0;
  color: var(--be-ink);
  line-height: 1.12;
}

.be-section__head h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.be-section__head p {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--be-muted);
}

.be-grid {
  display: grid;
  gap: 20px;
}

.be-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.be-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.be-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--be-line);
  border-radius: var(--be-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 35, 60, 0.06);
}

.be-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.be-card p {
  margin: 0;
  color: var(--be-muted);
}

.be-story-card {
  overflow: hidden;
}

.be-story-card__image {
  display: block;
  margin: -24px -24px 18px;
}

.be-story-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.be-story-card h3 a {
  color: var(--be-ink);
}

.be-story-card h3 a:hover,
.be-story-card h3 a:focus-visible {
  color: var(--be-red);
}

.be-destination {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: end;
  padding: 24px;
  color: #fff;
  border-radius: var(--be-radius);
  background: linear-gradient(140deg, #17233c, #d71920);
  background-position: center;
  background-size: cover;
}

.be-destination:nth-child(2n) {
  background-position: center;
  background-size: cover;
}

.be-destination:nth-child(3n) {
  background-position: center;
  background-size: cover;
}

.be-destination::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(23, 35, 60, 0.25) 66%, rgba(215, 25, 32, 0.12));
}

.be-destination > * {
  position: relative;
}

.be-destination h3 {
  margin: 0;
  font-size: 1.65rem;
}

.be-destination p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.be-icon-card {
  display: grid;
  gap: 12px;
}

.be-icon-card__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: var(--be-radius);
  background: var(--be-red);
}

.be-photo-split {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 42px;
}

.be-photo-split figure {
  overflow: hidden;
  margin: 0;
  border-radius: var(--be-radius);
  box-shadow: var(--be-shadow);
}

.be-photo-split img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.be-photo-split h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.12;
}

.be-photo-split p:not(.be-eyebrow) {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--be-muted);
}

.be-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: 36px;
  align-items: start;
}

.be-consultation {
  padding: 28px;
  border: 1px solid var(--be-line);
  border-radius: var(--be-radius);
  background: #fff;
  box-shadow: var(--be-shadow);
}

.be-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.be-field {
  display: grid;
  gap: 7px;
}

.be-field--full {
  grid-column: 1 / -1;
}

.be-field label {
  font-size: 0.9rem;
  font-weight: 800;
}

.be-field input,
.be-field select,
.be-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--be-ink);
  border: 1px solid var(--be-line);
  border-radius: var(--be-radius);
  background: #fff;
}

.be-field textarea {
  min-height: 124px;
  resize: vertical;
}

.be-alert {
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: var(--be-radius);
  background: #eaf8f2;
  color: #0d6b4d;
  font-weight: 700;
}

.be-alert--error {
  background: #fff1f1;
  color: var(--be-red-dark);
}

.be-branch-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.be-branch-list li {
  padding: 14px 16px;
  border: 1px solid var(--be-line);
  border-radius: var(--be-radius);
  background: #fff;
}

.be-page-hero {
  padding: 66px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--be-ink), var(--be-red));
}

.be-page-hero--image {
  min-height: 440px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
}

.be-page-hero__inner {
  padding: 46px 0;
}

.be-page-hero__inner p:not(.be-eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.be-page-intro {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--be-line);
}

.be-page-intro span {
  color: var(--be-red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.be-page-intro p {
  margin: 0;
  color: var(--be-ink);
  font-size: 1.25rem;
  line-height: 1.55;
}

.be-designed-card h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.be-page-cta {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  padding: 36px;
  border-radius: var(--be-radius);
  color: #fff;
  background: linear-gradient(135deg, var(--be-ink), #4e57a3 56%, var(--be-red));
}

.be-page-cta .be-eyebrow {
  border-color: rgba(255, 255, 255, 0.32);
}

.be-page-cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.be-page-cta p:not(.be-eyebrow) {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.be-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.be-related-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--be-line);
  border-radius: var(--be-radius);
  background: #fff;
  color: var(--be-ink);
  font-weight: 800;
}

.be-related-links a:hover,
.be-related-links a:focus-visible {
  border-color: var(--be-red);
  color: var(--be-red);
}

.be-editor-section {
  padding-top: 0;
}

.be-content {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

.be-content > *:first-child {
  margin-top: 0;
}

.be-post-list {
  display: grid;
  gap: 22px;
  padding: 62px 0;
}

.be-post-card {
  padding: 24px;
  border: 1px solid var(--be-line);
  border-radius: var(--be-radius);
  background: #fff;
}

.be-post-card h2 {
  margin: 0 0 8px;
}

.be-meta {
  color: var(--be-muted);
  font-size: 0.9rem;
}

.be-site-footer {
  color: #fff;
  background: var(--be-ink);
}

.be-footer__main {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding: 58px 0;
}

.be-footer__main h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.be-footer__main ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.be-footer__main p,
.be-footer__main a {
  color: rgba(255, 255, 255, 0.78);
}

.be-footer-brand img {
  width: 92px;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: var(--be-radius);
  background: #fff;
}

.be-footer__bottom {
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.be-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.be-footer__bottom a {
  color: #fff;
  font-weight: 800;
}

.alignwide {
  width: min(var(--be-max), calc(100% - 32px));
  margin-inline: auto;
}

@media (max-width: 980px) {
  .be-menu-toggle {
    display: block;
  }

  .be-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    padding: 18px 16px 24px;
    background: #fff;
    border-bottom: 1px solid var(--be-line);
    box-shadow: var(--be-shadow);
  }

  .be-nav.is-open {
    display: block;
  }

  .be-menu,
  .be-menu ul {
    display: grid;
    gap: 4px;
  }

  .be-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 14px;
  }

  .be-hero__inner,
  .be-photo-split,
  .be-page-intro,
  .be-form-wrap,
  .be-footer__main {
    grid-template-columns: 1fr;
  }

  .be-grid--3,
  .be-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .be-topbar__inner,
  .be-footer__bottom-inner,
  .be-page-cta,
  .be-section__head,
  .be-stats,
  .be-form-grid,
  .be-grid--3,
  .be-grid--4 {
    grid-template-columns: 1fr;
    display: grid;
  }

  .be-topbar__links,
  .be-contact-list {
    gap: 8px;
  }

  .be-header__inner {
    min-height: 72px;
  }

  .be-brand img {
    width: 56px;
  }

  .be-brand__tagline {
    display: none;
  }

  .be-hero__inner {
    min-height: auto;
    padding: 54px 0 66px;
  }

  .be-hero h1,
  .be-page-hero h1 {
    font-size: 2.55rem;
  }

  .be-section {
    padding: 54px 0;
  }
}
