/* ============================================
   OXFORD INTERNATIONAL SCHOOL — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --navy: #1a2e5a;
  --navy-dark: #0f1d3a;
  --navy-light: #2a4e9a;
  --gold: #f5a623;
  --gold-light: #ffc857;
  --white: #ffffff;
  --light-bg: #f4f6fb;
  --text: #2d2d2d;
  --text-light: #666;
  --border: #e0e0e0;
  --shadow: 0 4px 24px rgba(0,0,0,0.09);
  --radius: 10px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

img { max-width:100%; display:block; }
a { text-decoration:none; }
ul { list-style:none; }

/* ===== NAVIGATION ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo,
.nav-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.nav-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.nav-name .school-title {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.nav-name .school-sub {
  display: block;
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-menu li a {
  display: block;
  padding: 8px 12px;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 5px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--gold);
  background: rgba(255,255,255,0.09);
}

.nav-login-btn {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  margin-left: 6px;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

.nav-login-btn:hover {
  background: var(--gold-light) !important;
  color: var(--navy-dark) !important;
  transform: translateY(-1px);
}

.nav-login-btn.logged-in {
  background: #198754 !important;
  color: #ffffff !important;
}

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

.hamburger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.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 SLIDER ===== */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,29,58,0.85) 0%,
    rgba(26,46,90,0.6) 60%,
    rgba(26,46,90,0.3) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero-content { max-width: 840px; color: var(--white); }

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 5px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: clamp(15px, 2.2vw, 19px);
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition);
  line-height: 1;
}

.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(245,166,35,0.4); }

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: white; color: var(--navy); border-color: white; }

.btn-navy {
  background: var(--navy);
  color: white;
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: white; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  padding: 18px 24px;
}

.stats-row {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.stat-item { text-align: center; color: var(--navy); }
.stat-num { display: block; font-size: 26px; font-weight: 900; line-height: 1; }
.stat-lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.8; }

/* ===== GENERAL LAYOUT ===== */
.section { padding: 86px 24px; }
.section-light { background: var(--light-bg); }
.container { max-width: 1240px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 54px; }
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 42px);
  color: var(--navy);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-light);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
}

.divider {
  width: 56px;
  height: 3.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ===== FEATURE CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 28px;
}

.feat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.feat-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.13);
  border-bottom-color: var(--gold);
}

.feat-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feat-card h3 { color: var(--navy); font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.feat-card p { color: var(--text-light); font-size: 14.5px; line-height: 1.75; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  padding: 68px 24px 56px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.page-header p { opacity: 0.85; font-size: 16px; position: relative; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.75;
  position: relative;
}

.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.6; }

/* ===== TWO COLUMN ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.two-col img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== VISION MISSION ===== */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.vm-card {
  padding: 38px 32px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--navy);
  transition: var(--transition);
}

.vm-card:hover { transform: translateY(-4px); }
.vm-card.gold { border-top-color: var(--gold); }

.vm-icon { font-size: 40px; display: block; margin-bottom: 16px; }
.vm-card h3 { color: var(--navy); font-size: 22px; margin-bottom: 12px; font-family: 'Playfair Display', serif; }
.vm-card p { color: var(--text-light); font-size: 15px; line-height: 1.8; }

/* ===== VALUES ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 32px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-card:hover { transform: translateY(-5px); }
.value-icon { font-size: 44px; display: block; margin-bottom: 14px; }
.value-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 8px; font-weight: 700; }
.value-card p { color: var(--text-light); font-size: 13.5px; }

/* ===== PRINCIPAL ===== */
.principal-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.principal-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--gold);
}

.principal-text blockquote {
  font-size: 15.5px;
  color: var(--text-light);
  line-height: 1.8;
  font-style: italic;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
  margin-bottom: 18px;
}

.principal-text .principal-name {
  font-weight: 800;
  color: var(--navy);
  font-size: 16px;
}

.principal-text .principal-role {
  color: var(--gold);
  font-size: 13.5px;
  font-weight: 600;
}

/* ===== ACADEMICS LEVELS ===== */
.level-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}

.level-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.level-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.13); }

.level-hd {
  background: var(--navy);
  color: white;
  padding: 18px 20px;
}

.level-hd h3 { font-size: 15.5px; font-weight: 700; }
.level-range { font-size: 12px; color: var(--gold); margin-top: 4px; font-weight: 500; }

.level-bd {
  background: white;
  padding: 18px 20px;
}

.level-bd ul li {
  padding: 5px 0 5px 16px;
  position: relative;
  color: var(--text-light);
  font-size: 13.5px;
}

.level-bd ul li::before { content: '•'; position: absolute; left: 0; color: var(--gold); }

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
}

.step {
  text-align: center;
  padding: 32px 20px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}

.step:hover { transform: translateY(-5px); }

.step-num {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(26,46,90,0.35);
}

.step h3 { color: var(--navy); font-size: 16px; margin-bottom: 8px; font-weight: 700; }
.step p { color: var(--text-light); font-size: 13.5px; line-height: 1.6; }

/* ===== FORMS ===== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-card h3 {
  color: var(--navy);
  font-size: 22px;
  margin-bottom: 26px;
  font-family: 'Playfair Display', serif;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--light-bg);
}

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

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3.5px rgba(26,46,90,0.1);
}

.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ===== CHECK LIST ===== */
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-light);
  font-size: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
}

/* ===== INFO BOX ===== */
.info-box {
  background: var(--light-bg);
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin-bottom: 28px;
}

.info-box h4 { color: var(--navy); font-size: 16px; margin-bottom: 9px; font-weight: 700; }
.info-box p, .info-box ul li { color: var(--text-light); font-size: 14.5px; line-height: 1.7; }
.info-box ul { padding-left: 18px; }
.info-box ul li { list-style: disc; margin: 6px 0; }

/* ===== DISCLOSURE TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

.disclosure-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

.disclosure-table th {
  background: var(--navy);
  color: white;
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 13.5px;
}

.disclosure-table th:first-child { width: 50px; }

.disclosure-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.disclosure-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  background: rgba(26,46,90,0.04);
  white-space: nowrap;
}

.disclosure-table tr:hover td { background: #eef1f8; }
.disclosure-table tr:hover td:first-child { background: rgba(26,46,90,0.08); }

.table-section-head th {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ===== INFRA CARDS ===== */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.infra-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.infra-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }

.infra-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.infra-card-body { padding: 24px; }
.infra-card-body h3 { color: var(--navy); font-size: 17px; margin-bottom: 9px; font-weight: 700; }
.infra-card-body p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  padding: 80px 24px;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 42px);
  margin-bottom: 14px;
}

.cta-section p {
  opacity: 0.88;
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.72);
  padding: 64px 24px 0;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 44px;
  padding-bottom: 44px;
}

.footer h4 {
  color: white;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2.5px solid var(--gold);
  display: inline-block;
}

.footer p { font-size: 14px; line-height: 1.85; }
.footer-about { max-width: 280px; }

.footer-links li {
  padding: 5px 0;
}

.footer-links li a {
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a::before { content: '›'; color: var(--gold); font-size: 17px; }
.footer-links li a:hover { color: var(--gold); padding-left: 4px; }

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 13px;
  font-size: 14px;
  align-items: flex-start;
}

.contact-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  transition: var(--transition);
  text-decoration: none;
}

.social-btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.65;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== FLOATING BUTTONS ===== */
.fab-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  z-index: 997;
  text-decoration: none;
  transition: var(--transition);
}

.fab-wa:hover { transform: scale(1.12); box-shadow: 0 8px 28px rgba(37,211,102,0.55); }

/* ===== INLINE EDIT CMS ===== */
.edit-toggle {
  display: none !important;
}

.edit-bar {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #198754;
  color: white;
  padding: 11px 22px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 999;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.edit-bar.show { display: flex; }

.edit-bar span { display: flex; align-items: center; gap: 7px; }

.edit-bar button {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.45);
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  transition: var(--transition);
}

.edit-bar button:hover { background: rgba(255,255,255,0.38); }
.edit-bar button.danger { background: rgba(220,53,69,0.3); border-color: rgba(220,53,69,0.5); }
.edit-bar button.danger:hover { background: rgba(220,53,69,0.55); }

/* ===== OWNER LOGIN MODAL ===== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(2px);
}
.auth-overlay.show { display: flex; }
.auth-modal {
  position: relative;
  background: #fff;
  width: 92%;
  max-width: 360px;
  border-radius: 14px;
  padding: 34px 28px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  font-family: inherit;
}
.auth-icon { font-size: 34px; margin-bottom: 6px; }
.auth-modal h3 { margin: 0 0 6px; color: var(--navy); font-size: 20px; }
.auth-modal p { margin: 0 0 18px; color: var(--text-light); font-size: 13.5px; }
.auth-modal input {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.auth-modal input:focus { outline: none; border-color: var(--navy); }
.auth-btn {
  width: 100%;
  padding: 12px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.auth-btn:hover { background: var(--navy-light); }
.auth-link { display: inline-block; margin-top: 14px; color: var(--navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-error { color: #dc3545; font-size: 12.5px; min-height: 16px; margin-bottom: 6px; }
.auth-success { color: #198754; font-size: 12.5px; min-height: 16px; margin-bottom: 6px; font-weight: 700; }
.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
}
.auth-close:hover { color: var(--navy); }

/* Edit mode visual cues */
body.editing .editable {
  outline: 2px dashed rgba(25,135,84,0.6) !important;
  outline-offset: 3px;
  border-radius: 4px;
  cursor: text;
}

body.editing .editable:hover { outline-color: #198754; outline-style: solid; }
body.editing .editable:focus { outline: 2.5px solid #198754; background: rgba(25,135,84,0.03); }

/* Edit mode visual cues for images */
body.editing img.editable-img,
body.editing .editable-img,
body.editing .hero-slide img,
body.editing .infra-card img,
body.editing .two-col img,
body.editing .principal-img {
  cursor: pointer !important;
  outline: 2.5px dashed #f59e0b !important;
  outline-offset: 3px !important;
  transition: transform 0.2s ease, outline-color 0.2s ease, filter 0.2s ease;
}

body.editing img.editable-img:hover,
body.editing .editable-img:hover,
body.editing .hero-slide img:hover,
body.editing .infra-card img:hover,
body.editing .two-col img:hover,
body.editing .principal-img:hover {
  outline: 3px solid #d97706 !important;
  filter: brightness(1.06) contrast(1.02);
  transform: scale(1.01);
}

/* ===== IMAGE EDITOR MODAL ===== */
.img-edit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(3px);
  padding: 16px;
  overflow-y: auto;
}

.img-edit-overlay.show { display: flex; }

.img-edit-modal {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  font-family: inherit;
  color: var(--text);
}

.img-edit-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}
.img-edit-close:hover { color: var(--navy); }

.img-edit-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.img-edit-icon { font-size: 28px; line-height: 1; }
.img-edit-header h3 { margin: 0 0 3px; color: var(--navy); font-size: 19px; font-weight: 800; }
.img-edit-header p { margin: 0; color: var(--text-light); font-size: 12.5px; line-height: 1.4; }

.img-edit-preview-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}
.img-edit-preview-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.img-edit-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.img-edit-section {
  margin-bottom: 14px;
}
.img-edit-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.img-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.img-upload-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.img-upload-btn:hover { background: var(--navy-light); }
.img-file-name {
  font-size: 12px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.img-edit-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
}
.img-edit-input:focus { outline: none; border-color: var(--navy); }

.img-presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 110px;
  overflow-y: auto;
  padding: 4px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.img-preset-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.img-preset-btn:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.img-edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.btn-img-apply {
  flex: 1;
  background: #198754;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.btn-img-apply:hover { background: #157347; }
.btn-img-cancel {
  background: #e2e8f0;
  color: #334155;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-img-cancel:hover { background: #cbd5e1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .two-col, .vm-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .principal-card { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 8px 0 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a { padding: 13px 28px; border-radius: 0; font-size: 15px; }
  .hero-slider { height: 420px; }
  .slider-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 18px; }
  .form-card { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 26px; }
  .stats-row { flex-direction: column; gap: 10px; }
  .level-cards { grid-template-columns: 1fr; }
  .footer-bottom { text-align: center; justify-content: center; }
}
