/* =============================================
   REGIUM INTERNATIONAL SCHOOL — DESIGN SYSTEM
   Brand colors: #C41E24 (red), #D4A017 (gold),
                 #1A1A2E (dark navy), #FFFFFF
   ============================================= */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2d2d3a;
  background: #fdfdfd;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ---------- UTILITY ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #C41E24;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #1A1A2E;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #5a5a72;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

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

/* ---------- HEADER / NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* background: rgba(26, 26, 46, 0.92); */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.35s, box-shadow 0.35s;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
}

.navbar-brand-text .school-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.navbar-brand-text .school-tagline {
  font-size: 0.68rem;
  color: #D4A017;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #D4A017;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

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

.nav-cta {
  background: linear-gradient(135deg, #C41E24, #a01a1f);
  color: #fff !important;
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(196, 30, 36, 0.35);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(196, 30, 36, 0.5);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    #8484e4 0%,
    #0a2b85 50%,
    #1861ba 100%
  );
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(196, 30, 36, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 160, 23, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 7rem 0 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  padding-right: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.3);
  color: #D4A017;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.6s 0.15s ease both;
}

.hero h1 span {
  background: linear-gradient(135deg, #D4A017, #f0c040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.45s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #C41E24, #a01a1f);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(196, 30, 36, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 30, 36, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-image-wrapper {
  position: relative;
  animation: fadeInRight 0.8s 0.3s ease both;
}

.hero-image-wrapper img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-image-wrapper .floating-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 1rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 3s ease-in-out infinite;
}

.floating-badge .badge-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #D4A017, #f0c040);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.floating-badge .badge-text strong {
  display: block;
  font-size: 0.92rem;
  color: #1A1A2E;
}

.floating-badge .badge-text span {
  font-size: 0.75rem;
  color: #777;
}

/* Decorative dots */
.hero-dots {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(212, 160, 23, 0.25) 2px, transparent 2px);
  background-size: 18px 18px;
  z-index: 1;
}

/* ---------- PROGRAMS / LEVELS ---------- */
.programs {
  padding: 5rem 0;
  background: #fff;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.program-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #C41E24, #D4A017);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

.program-icon.pre {
  background: linear-gradient(135deg, rgba(196, 30, 36, 0.1), rgba(196, 30, 36, 0.05));
  color: #C41E24;
}

.program-icon.basic {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.15), rgba(212, 160, 23, 0.05));
  color: #b88c10;
}

.program-icon.high {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.12), rgba(26, 26, 46, 0.05));
  color: #1A1A2E;
}

.program-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #1A1A2E;
  margin-bottom: 0.6rem;
}

.program-card p {
  font-size: 0.92rem;
  color: #6b6b80;
  line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f8f8fc 0%, #fff 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
}

.about-images img {
  border-radius: 16px;
  object-fit: cover;
  height: 220px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.about-images img:hover {
  transform: scale(1.03);
}

.about-images img:first-child {
  grid-column: span 2;
  height: 260px;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: #1A1A2E;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.about-text p {
  font-size: 0.98rem;
  color: #5a5a72;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-text .highlight {
  font-weight: 600;
  color: #C41E24;
}

/* ---------- VISION / MISSION / VALUES ---------- */
.pillars {
  padding: 5rem 0;
  background: #1A1A2E;
  position: relative;
  overflow: hidden;
}

.pillars::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(196, 30, 36, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(212, 160, 23, 0.06) 0%, transparent 50%);
}

.pillars .section-label {
  color: #D4A017;
}

.pillars .section-title {
  color: #fff;
}

.pillars .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 160, 23, 0.3);
}

.pillar-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.pillar-card:nth-child(1) .icon-wrap {
  background: rgba(196, 30, 36, 0.15);
  color: #C41E24;
}

.pillar-card:nth-child(2) .icon-wrap {
  background: rgba(212, 160, 23, 0.15);
  color: #D4A017;
}

.pillar-card:nth-child(3) .icon-wrap {
  background: rgba(100, 200, 120, 0.15);
  color: #5cb870;
}

.pillar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.pillar-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

/* ---------- FEATURES ---------- */
.features {
  padding: 5rem 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: #f9f9fd;
  border: 1px solid transparent;
  transition: border-color 0.3s, transform 0.25s;
}

.feature-item:hover {
  border-color: #eee;
  transform: translateY(-2px);
}

.feature-item .fi-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #C41E24, #a01a1f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.feature-item h4 {
  font-size: 1rem;
  color: #1A1A2E;
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.85rem;
  color: #6b6b80;
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f8f8fc 0%, #fff 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 46, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.35s;
}

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

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s, transform 0.35s;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 5rem 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: #f9f9fd;
  border: 1px solid #eee;
  transition: border-color 0.3s;
}

.contact-card:hover {
  border-color: #D4A017;
}

.contact-card .cc-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1A1A2E, #2a2a4e);
  color: #D4A017;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-card h4 {
  font-size: 0.95rem;
  color: #1A1A2E;
  margin-bottom: 0.2rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.88rem;
  color: #6b6b80;
  line-height: 1.6;
}

.contact-card a:hover {
  color: #C41E24;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1A1A2E;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e0e0ec;
  border-radius: 10px;
  background: #f9f9fd;
  color: #2d2d3a;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #D4A017;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #C41E24, #a01a1f);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(196, 30, 36, 0.3);
  width: fit-content;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 30, 36, 0.5);
}

/* ---------- FOOTER ---------- */
.footer {
  background: #1A1A2E;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  height: 60px;
  width: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1.2rem;
}

.footer ul li {
  margin-bottom: 0.6rem;
}

.footer ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s, padding-left 0.2s;
}

.footer ul li a:hover {
  color: #D4A017;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
}

.footer-contact-item .fci-icon {
  color: #D4A017;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: #D4A017;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #C41E24, #a01a1f);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 4px 18px rgba(196, 30, 36, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 8rem 0 4rem;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-wrapper {
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-dots {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 320px;
    background: #1A1A2E;
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 1.5rem;
    transition: right 0.35s ease;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .about-images {
    grid-template-columns: 1fr;
  }

  .about-images img:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .floating-badge {
    display: none !important;
  }
}
