/*
Theme Name: Next Generation Education Co. Child
Theme URI: https://nextgenerationedu.com
Description: Child theme for Next Generation Education Co. corporate website. All custom CSS for the NGE site lives here.
Author: Next Generation Education Co.
Template: Divi
Version: 1.1.0
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nge-divi-child
*/

/* ==========================================================================
   1. BRAND DESIGN TOKENS
   Derived from the official logo: orange, navy, gold, green.
   ========================================================================== */
:root {
  --nge-primary: #F26522;      /* logo orange */
  --nge-primary-dark: #D95313;
  --nge-primary-soft: rgba(242, 101, 34, 0.10);
  --nge-navy: #1B2A4A;         /* logo navy */
  --nge-navy-2: #24355C;
  --nge-navy-dark: #101A30;
  --nge-gold: #F5A800;         /* logo gold */
  --nge-gold-soft: rgba(245, 168, 0, 0.12);
  --nge-green: #27AE60;        /* logo green */
  --nge-green-soft: rgba(39, 174, 96, 0.12);
  --nge-dark: #141B2D;         /* footer / dark bands */
  --nge-light: #F6F8FB;        /* alternating section bg */
  --nge-light-2: #EEF2F8;
  --nge-text: #3C4A5C;         /* body text */
  --nge-muted: #6B7A90;
  --nge-white: #FFFFFF;
  --nge-border: #E6EBF2;
  --nge-radius: 18px;
  --nge-radius-lg: 28px;
  --nge-shadow-sm: 0 2px 12px rgba(20, 27, 45, 0.06);
  --nge-shadow: 0 8px 30px rgba(20, 27, 45, 0.09);
  --nge-shadow-lg: 0 20px 50px rgba(20, 27, 45, 0.14);
  --nge-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. BASE TYPOGRAPHY & RESET
   ========================================================================== */
body {
  color: var(--nge-text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  color: var(--nge-navy);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

/* Arabic: Tajawal + taller line-height. */
html[lang="ar"] body, body.rtl,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] p, html[lang="ar"] li, html[lang="ar"] a, html[lang="ar"] span {
  font-family: 'Tajawal', 'Inter', sans-serif;
}
html[lang="ar"] body, body.rtl { line-height: 1.8; }

/* Divi auto-applies its Arabic fallback font (Lateef) to header/nav/buttons
   when the locale is Arabic. Override with the brand fonts. */
#main-header, #et-top-navigation, #top-header .container,
.et_slide_in_menu_container, .et_pb_button, .nge-btn {
  font-family: 'Inter', 'Tajawal', sans-serif !important;
}
html[lang="ar"] #main-header, html[lang="ar"] #et-top-navigation,
html[lang="ar"] #top-header .container, html[lang="ar"] .et_slide_in_menu_container,
html[lang="ar"] .et_pb_button, html[lang="ar"] .nge-btn {
  font-family: 'Tajawal', 'Inter', sans-serif !important;
}

/* ==========================================================================
   3. ACCESSIBILITY
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--nge-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Prevent any horizontal overflow on mobile (decorative hero blobs, floats). */
html, body { overflow-x: hidden; }
body { position: relative; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
#main-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nge-border);
  transition: box-shadow var(--nge-transition);
}
#main-header.et-fixed-header {
  box-shadow: 0 4px 24px rgba(20, 27, 45, 0.08);
}

/* Widen the header container and keep nav on one line. */
#main-header .container { width: 1280px; max-width: 94%; }
#top-menu-nav { white-space: nowrap; }

/* Compact nav items. */
#top-menu li { padding-left: 0; padding-right: 18px; }
#top-menu li > a {
  position: relative;
  font-weight: 500;
  font-size: 15px;
  padding-bottom: 6px;
  color: var(--nge-navy) !important;
  transition: color var(--nge-transition);
}
#top-menu li > a:hover { color: var(--nge-primary) !important; }
#top-menu li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--nge-primary);
  border-radius: 2px;
  transition: width var(--nge-transition);
}
#top-menu li > a:hover::after,
#top-menu li.current-menu-item > a::after { width: 100%; }
#top-menu li.current-menu-item > a { color: var(--nge-primary) !important; }

/* Language switcher: compact segmented pill. */
#top-menu li a[href="#pll_switcher"],
#top-menu li.pll-parent-menu-item > a {
  border: 1px solid var(--nge-border);
  border-radius: 50px;
  padding: 5px 12px !important;
  font-weight: 600;
  font-size: 13px;
  background: var(--nge-light);
}
#top-menu li a[href="#pll_switcher"]::after { display: none; }

/* NextGen Connect menu item: pill button. */
#top-menu li a[href*="connect.nextgenerationedu.com"] {
  background: var(--nge-primary);
  color: #fff !important;
  border-radius: 50px;
  padding: 9px 16px !important;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(242, 101, 34, 0.28);
  transition: background-color var(--nge-transition), transform var(--nge-transition);
}
#top-menu li a[href*="connect.nextgenerationedu.com"]:hover {
  background: var(--nge-primary-dark);
  transform: translateY(-1px);
}
#top-menu li a[href*="connect.nextgenerationedu.com"]::after { display: none; }

/* On narrower desktops, allow the header to be a bit tighter. */
@media (max-width: 1200px) {
  #top-menu li { padding-right: 12px; }
  #top-menu li > a { font-size: 14px; }
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.nge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--nge-transition), transform var(--nge-transition), box-shadow var(--nge-transition);
  cursor: pointer;
}
.nge-btn:hover { transform: translateY(-2px); }

.nge-btn-primary {
  background: var(--nge-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(242, 101, 34, 0.30);
}
.nge-btn-primary:hover { background: var(--nge-primary-dark); color: #fff; }

.nge-btn-navy {
  background: var(--nge-navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 42, 74, 0.25);
}
.nge-btn-navy:hover { background: var(--nge-navy-dark); color: #fff; }

.nge-btn-outline {
  background: transparent;
  color: var(--nge-navy);
  border: 2px solid var(--nge-navy);
}
.nge-btn-outline:hover { background: var(--nge-navy); color: #fff; }

.nge-btn-white {
  background: #fff;
  color: var(--nge-navy);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.nge-btn-white:hover { background: var(--nge-light); color: var(--nge-navy); }

/* In RTL, flip the button arrow so it points in the reading direction. */
[dir="rtl"] .nge-btn svg { transform: scaleX(-1); }

/* ==========================================================================
   6. HERO
   ========================================================================== */
.nge-hero {
  position: relative;
  padding: 72px 0 64px;
}

.nge-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.nge-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nge-primary-soft);
  color: var(--nge-primary);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.nge-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nge-primary);
}

.nge-hero h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--nge-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nge-hero .nge-accent {
  background: linear-gradient(120deg, var(--nge-primary) 0%, var(--nge-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nge-hero-support {
  font-size: 18px;
  line-height: 1.75;
  color: var(--nge-text);
  margin: 0 0 28px;
  max-width: 560px;
}

.nge-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.nge-value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nge-value-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--nge-border);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nge-navy);
  box-shadow: var(--nge-shadow-sm);
}
.nge-value-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
}

/* Hero visual: framed image with floating accent card. */
.nge-hero-visual {
  position: relative;
}
.nge-hero-visual .nge-hero-img {
  border-radius: var(--nge-radius-lg);
  overflow: hidden;
  box-shadow: var(--nge-shadow-lg);
  border: 6px solid #fff;
}
.nge-hero-visual .nge-hero-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* Floating accent card on the hero image. */
.nge-hero-float {
  position: absolute;
  inset-inline-end: 24px;
  bottom: -28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--nge-shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
}
.nge-hero-float .nge-icon {
  margin: 0;
  flex: 0 0 auto;
}
.nge-hero-float .nge-float-title {
  font-weight: 700;
  color: var(--nge-navy);
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}
.nge-hero-float .nge-float-sub {
  font-size: 12px;
  color: var(--nge-muted);
  margin: 2px 0 0;
}

/* Compact hero for inner (non-home) pages — badge + title + lede, no image. */
.nge-page-hero { padding: 0; position: relative; }
.nge-page-hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--nge-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 720px;
}
.nge-page-hero .nge-hero-support { margin-bottom: 0; }
@media (max-width: 600px) { .nge-page-hero h1 { font-size: 30px; } }

/* Decorative blurred brand blobs behind hero. */
.nge-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.nge-hero > * { position: relative; z-index: 1; }
.nge-hero-bg::before,
.nge-hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.16;
}
.nge-hero-bg::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--nge-gold) 0%, transparent 60%);
  top: -160px; inset-inline-end: -40px;
}
.nge-hero-bg::after {
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--nge-primary) 0%, transparent 60%);
  bottom: -160px; inset-inline-start: -40px;
}

@media (max-width: 980px) {
  .nge-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .nge-hero h1 { font-size: 36px; }
  .nge-hero-float { bottom: -20px; }
  .nge-hero-bg::before { width: 220px; height: 220px; }
  .nge-hero-bg::after { width: 200px; height: 200px; }
}
@media (max-width: 600px) {
  .nge-hero { padding: 48px 0 44px; }
  .nge-hero h1 { font-size: 30px; }
  .nge-hero-actions .nge-btn { width: 100%; justify-content: center; }
  .nge-hero-float { position: static; margin-top: 16px; max-width: 100%; }
}

/* ==========================================================================
   7. SECTIONS & HEADS
   ========================================================================== */
.nge-section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}
.nge-kicker {
  display: inline-block;
  color: var(--nge-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}
.nge-section-head h2 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--nge-navy);
  letter-spacing: -0.01em;
}
.nge-lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--nge-muted);
  margin: 0;
}

/* ==========================================================================
   8. GRIDS
   ========================================================================== */
.nge-grid-2, .nge-grid-3, .nge-grid-4 { display: grid; gap: 24px; }
.nge-grid-2 { grid-template-columns: repeat(2, 1fr); }
.nge-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nge-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .nge-grid-3, .nge-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nge-grid-2, .nge-grid-3, .nge-grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. CARDS
   ========================================================================== */
.nge-card {
  position: relative;
  background: var(--nge-white);
  border: 1px solid var(--nge-border);
  border-radius: var(--nge-radius);
  box-shadow: var(--nge-shadow-sm);
  padding: 30px 26px;
  transition: transform var(--nge-transition), box-shadow var(--nge-transition), border-color var(--nge-transition);
  height: 100%;
  overflow: hidden;
}
.nge-card::before {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--nge-primary), var(--nge-gold));
  opacity: 0;
  transition: opacity var(--nge-transition);
}
.nge-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--nge-shadow-lg);
  border-color: rgba(242, 101, 34, 0.25);
}
.nge-card:hover::before { opacity: 1; }

.nge-card h3, .nge-card .nge-card-title {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--nge-navy);
}
.nge-card p { margin: 0; color: var(--nge-text); font-size: 15px; line-height: 1.7; }

/* Icon chip */
.nge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--nge-primary-soft);
  color: var(--nge-primary);
  margin-bottom: 18px;
}
.nge-icon svg { width: 26px; height: 26px; }
.nge-icon.nge-icon-navy  { background: rgba(27, 42, 74, 0.10); color: var(--nge-navy); }
.nge-icon.nge-icon-green { background: var(--nge-green-soft); color: var(--nge-green); }
.nge-icon.nge-icon-gold  { background: var(--nge-gold-soft); color: #C28600; }

/* ==========================================================================
   10. CTA BANDS
   ========================================================================== */
.nge-cta {
  border-radius: var(--nge-radius-lg);
  padding: 60px 48px;
  text-align: center;
  background: var(--nge-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.nge-cta::before, .nge-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}
.nge-cta::before { width: 220px; height: 220px; top: -90px; inset-inline-end: -70px; }
.nge-cta::after { width: 160px; height: 160px; bottom: -80px; inset-inline-start: -50px; }

.nge-cta h2 { color: #fff; margin: 0 0 12px; font-size: 32px; letter-spacing: -0.01em; }
.nge-cta p { color: rgba(255, 255, 255, 0.92); max-width: 600px; margin: 0 auto 28px; font-size: 16px; }
.nge-cta .nge-btn { background: #fff; color: var(--nge-navy); box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
.nge-cta .nge-btn:hover { background: var(--nge-light); }

.nge-cta-dark { background: linear-gradient(135deg, var(--nge-navy) 0%, var(--nge-navy-2) 100%); }
.nge-cta-dark::before { background: rgba(245, 168, 0, 0.15); }
.nge-cta-dark::after { background: rgba(242, 101, 34, 0.15); }
.nge-cta-dark .nge-btn { background: var(--nge-primary); color: #fff; }
.nge-cta-dark .nge-btn:hover { background: var(--nge-primary-dark); }

@media (max-width: 600px) {
  .nge-cta { padding: 44px 24px; }
  .nge-cta h2 { font-size: 26px; }
}

/* ==========================================================================
   11. STATS / FIGURES ROW (structure ready, populated when client supplies data)
   ========================================================================== */
.nge-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.nge-stat { text-align: center; padding: 28px 16px; }
.nge-stat .num {
  font-size: 40px;
  font-weight: 800;
  color: var(--nge-navy);
  line-height: 1;
  display: block;
}
.nge-stat .num .accent { color: var(--nge-primary); }
.nge-stat .lbl { display: block; margin-top: 8px; font-size: 14px; color: var(--nge-muted); font-weight: 600; }
@media (max-width: 600px) { .nge-stats { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   12. TAGS / PILLS / LEVELS
   ========================================================================== */
.nge-pill {
  display: inline-block;
  background: var(--nge-light);
  border: 1px solid var(--nge-border);
  color: var(--nge-navy);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 6px 6px 0;
}
.nge-level {
  display: inline-block;
  background: var(--nge-green-soft);
  color: var(--nge-green);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.nge-publisher {
  font-weight: 700;
  color: var(--nge-navy);
  font-size: 12px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nge-publisher::before { content: ""; width: 14px; height: 2px; background: var(--nge-primary); border-radius: 2px; }

/* ==========================================================================
   13. VISION / MISSION CARDS
   ========================================================================== */
.nge-vm-card {
  border-radius: var(--nge-radius-lg);
  padding: 42px 36px;
  height: 100%;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.nge-vm-card::after {
  content: "";
  position: absolute;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
  bottom: -70px; inset-inline-end: -50px;
}
.nge-vm-card h3 { color: #fff; margin: 0 0 14px; font-size: 24px; }
.nge-vm-card p { color: rgba(255, 255, 255, 0.92); margin: 0; font-size: 16px; line-height: 1.75; }
.nge-vm-card .nge-vm-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.nge-vm-card .nge-vm-icon svg { width: 26px; height: 26px; }
.nge-vm-vision { background: linear-gradient(135deg, var(--nge-navy) 0%, var(--nge-navy-2) 100%); }
.nge-vm-mission { background: linear-gradient(135deg, var(--nge-primary) 0%, var(--nge-primary-dark) 100%); }

/* ==========================================================================
   14. STEPS (approach)
   ========================================================================== */
.nge-step {
  background: #fff;
  border: 1px solid var(--nge-border);
  border-radius: var(--nge-radius);
  box-shadow: var(--nge-shadow-sm);
  padding: 28px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform var(--nge-transition), box-shadow var(--nge-transition);
  height: 100%;
}
.nge-step:hover { transform: translateY(-4px); box-shadow: var(--nge-shadow); }
.nge-step-num {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nge-primary), var(--nge-gold));
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.nge-step h3 { margin: 2px 0 8px; font-size: 18px; }
.nge-step p { margin: 0; font-size: 14px; }

/* ==========================================================================
   15. PARTNERS
   ========================================================================== */
.nge-partner-logo { filter: grayscale(1); opacity: 0.85; transition: filter var(--nge-transition), opacity var(--nge-transition); }
.nge-partner-logo:hover { filter: grayscale(0); opacity: 1; }
.nge-partner-card { display: flex; gap: 28px; align-items: center; }
.nge-partner-card .nge-partner-logo { flex: 0 0 auto; width: 150px; }
.nge-partner-card img { max-width: 100%; height: auto; }
@media (max-width: 600px) { .nge-partner-card { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
#main-footer {
  background: var(--nge-navy-dark);
  color: rgba(255, 255, 255, 0.80);
}
#footer-widgets { padding: 60px 0 40px; }
#main-footer .fwidget h4.title {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 18px;
  padding-bottom: 0;
  border: none;
}
#main-footer .fwidget p { color: rgba(255, 255, 255, 0.72); font-size: 14px; line-height: 1.8; }
#main-footer .fwidget a { color: rgba(255, 255, 255, 0.80); text-decoration: none; transition: color var(--nge-transition); }
#main-footer .fwidget a:hover { color: var(--nge-gold); }
#footer-bottom {
  background: rgba(0, 0, 0, 0.22);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#footer-info { color: rgba(255, 255, 255, 0.60); font-size: 13px; }

/* Social icons in footer */
.et-social-icon a.icon { color: rgba(255,255,255,0.75) !important; }
.et-social-icon a.icon:hover { color: var(--nge-gold) !important; }

/* ==========================================================================
   17. ANIMATIONS (subtle, load-in)
   ========================================================================== */
@keyframes nge-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nge-hero .nge-badge,
.nge-hero h1,
.nge-hero-support,
.nge-hero-actions,
.nge-value-chips,
.nge-hero-visual {
  animation: nge-fade-up 0.7s ease both;
}
.nge-hero h1 { animation-delay: 0.08s; }
.nge-hero-support { animation-delay: 0.16s; }
.nge-hero-actions { animation-delay: 0.24s; }
.nge-value-chips { animation-delay: 0.32s; }
.nge-hero-visual { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .nge-hero * { animation: none !important; }
}

/* ==========================================================================
   19. CONTACT FORM 7 STYLING
   ========================================================================== */
.wpcf7-form { margin-top: 8px; }

.wpcf7-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--nge-navy);
  margin-bottom: 14px;
  line-height: 1.4;
}

.wpcf7-form label .wpcf7-form-control-wrap { display: block; margin-top: 6px; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--nge-border);
  border-radius: 12px;
  background: var(--nge-white);
  font-family: inherit;
  font-size: 15px;
  color: var(--nge-text);
  line-height: 1.5;
  transition: border-color var(--nge-transition), box-shadow var(--nge-transition);
  box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--nge-primary);
  box-shadow: 0 0 0 3px var(--nge-primary-soft);
}

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

.wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nge-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 34px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(242, 101, 34, 0.30);
  transition: background-color var(--nge-transition), transform var(--nge-transition);
  width: auto;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--nge-primary-dark); transform: translateY(-2px); }

/* Validation messages */
.wpcf7-form .wpcf7-not-valid-tip {
  color: #D95313;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid { border-color: #D95313; }
.wpcf7-form .wpcf7-response-output {
  border: 1.5px solid var(--nge-border) !important;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 18px 0 0;
  font-size: 14px;
}

/* RTL: keep form labels and inputs aligned correctly. */
[dir="rtl"] .wpcf7-form label { text-align: right; }
[dir="rtl"] .wpcf7-form .wpcf7-submit { float: inline-start; }

/* ==========================================================================
   20. MISC
   ========================================================================== */

/* Footer social icons (from [nge_footer_col] shortcode). */
.nge-footer-social { display: flex; gap: 10px; margin-top: 16px; }
.nge-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transition: background-color var(--nge-transition), color var(--nge-transition), transform var(--nge-transition);
}
.nge-social:hover { background: var(--nge-primary); color: #fff; transform: translateY(-2px); }
.nge-social svg { width: 18px; height: 18px; }
.et_pb_text .nge-card:last-child,
.et_pb_text > :last-child { margin-bottom: 0; }

/* Make sure images in text modules don't overflow on mobile. */
.et_pb_text img { max-width: 100%; height: auto; }

/* Divi default page content max-width for our sections. */
.et_pb_row { max-width: 1140px; }
