@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@400;500&display=swap');

/* ── Reset ── */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: #111827;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h2 { color: #FF4527; text-align: center; }

/* ── Layout ── */
.iq-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

.iq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header ── */
.iq-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 16px 0;
}

.iq-header .iq-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.iq-logo img { height: 58px; }

.iq-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  color: #ffffff;
}

.iq-nav a {
  font-weight: 500;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.iq-nav a:hover { border-bottom-color: #FE432B; }

/* ── Buttons ── */
.iq-btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 300;
  border: none;
  border-radius: 20px 0 20px 0;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  background: #FE432B;
  color: #ffffff;
}

.iq-btn:hover { background: #e23a25; }

.iq-btn-secondary {
  background: transparent;
  color: #111827;
  border: 2px solid #111827;
}

.iq-btn-secondary:hover {
  background: #111827;
  color: #ffffff;
}

.iq-center { text-align: center; margin-top: 20px; }

/* ── Hero ── */
.iq-hero {
  position: relative;
  height: 680px;
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom-right-radius: 100px;
}

.iq-hero-video,
.iq-hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-bottom-right-radius: inherit;
}

.iq-hero-video { object-fit: cover; }

.iq-hero-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.72) 100%);
}

.iq-hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 0 16px;
}

.iq-hero-content .iq-btn {
  margin-top: 25px;
}

.iq-hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.iq-hero-content p {
  font-size: 20px;
  margin-bottom: 24px;
}

.iq-hero-content .small-hero {
font-size: 16px;
}

/* ── Sections ── */
.iq-section { padding: 80px 0; }

.iq-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.iq-lead {
  font-size: 18px;
  color: #4b5563;
  margin: 0 auto 60px;
  text-align: center;
}

/* ── Stats ── */
.iq-stats {
  background: #f4f4f4;
  text-align: left;
  padding: 220px 0;
  margin-top: -100px;
}

.iq-stats h2 { color: #fe432b; }

.iq-stats .iq-lead {
  font-size: 24px;
  font-weight: 500;
  color: #6c7a89;
  margin-bottom: 60px;
}

.iq-stats .iq-stats-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
}

.iq-stat-card {
  background: none;
  border: none;
  width: 23%;
  padding: 0;
  text-align: left;
}

.iq-stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 50px;
  font-weight: 700;
  color: #fe432b;
  margin-bottom: 8px;
  text-align: center;
}

.iq-stat-label {
  font-size: 20px;
  color: #6c7a89;
}

/* ── Services ── */
.iq-services {
  background: #ffffff;
  margin-top: -100px;
  border-radius: 100px 0 100px 0;
}

.iq-services .iq-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.iq-service-card {
  display: flex;
  flex-direction: row;
  flex: 1 1 45%;
  min-width: 280px;
  background: #ffffff;
  overflow: hidden;
}

.iq-service-content,
.iq-service-image { flex: 1; }

.iq-service-content { padding: 24px; }

.iq-service-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #FF4527;
}

.iq-service-content p { font-size: 18px; margin-bottom: 12px; }
.iq-service-content ul { padding-left: 18px; margin-bottom: 20px; }
.iq-service-content li { font-size: 18px; }

.iq-service-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.iq-service-image img { border-radius: 12px; }

/* ── Stories ── */
.iq-stories .iq-slider {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.iq-slide {
  display: none;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.iq-slide.active { display: block; }

.iq-slide h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.iq-slide p { font-size: 16px; color: #4b5563; margin-bottom: 24px; }

/* ── Schools ── */
.iq-schools { background: #f4f4f4; }

.iq-schools .iq-schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.iq-school-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iq-school-card img { width: 100%; height: 180px; object-fit: cover; }
.iq-experts .iq-school-card img { width: 100%; height: auto; object-fit: cover; }
.iq-school-card h3 { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; margin: 16px; }
.iq-school-card p { font-size: 14px; color: #4b5563; margin: 0 16px 16px; flex-grow: 1; }
.iq-school-card .iq-btn { margin: 16px; margin-top: auto; align-self: flex-start; }

/* ── CTA ── */
.iq-cta { background: #f3f4f6; }

.iq-cta .iq-cta-box { text-align: center; }

.iq-cta .iq-cta-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.iq-cta .iq-cta-box p { font-size: 16px; color: #4b5563; margin-bottom: 24px; }

/* ── Footer ── */
.iq-footer { background: #111827; color: #f3f4f6; padding: 40px 0; }
.iq-footer a { color: #a5b4fc; }
.iq-footer a:hover { color: #c7d2fe; }

.iq-footer-top { display: flex; flex-direction: column; gap: 40px; }
.iq-footer-brand { text-align: center; }

.iq-social-icons { display: flex; justify-content: center; gap: 16px; margin: 16px 0; }

.iq-footer-links { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }

.iq-footer-column { min-width: 220px; }

.iq-footer-column h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f3f4f6;
}

.iq-footer-column ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.4; }
.iq-footer-column li { margin-bottom: 8px; }
.iq-footer-column a { color: #a5b4fc; }
.iq-footer-column a:hover { color: #c7d2fe; }

/* ── Gallery / Lightbox ── */
.gallery { display: flex; justify-content: center; gap: 16px; padding: 40px; flex-wrap: wrap; }

.frame {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid #2a2a2a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.frame:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.7); }
.frame img { display: block; width: 280px; height: 380px; object-fit: cover; transition: transform 0.5s ease; }
.frame:hover img { transform: scale(1.04); }
.frame .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #e8dcc8; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.frame:hover .caption { opacity: 1; transform: translateY(0); }
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; pointer-events: none; transition: background 0.4s ease;
}
.overlay.active { background: rgba(0,0,0,0.88); pointer-events: all; cursor: zoom-out; }
.overlay img {
  max-width: 90vw; max-height: 90vh; object-fit: contain;
  opacity: 0; transform: scale(0.85); cursor: default;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 40px 120px rgba(0,0,0,0.9); border: 1px solid #333;
}
.overlay.active img { opacity: 1; transform: scale(1); }
.close-hint {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.35); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0; transition: opacity 0.4s ease 0.3s; pointer-events: none;
}

.field_group_vo { display: none; }


/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */

/* ── Tablet landscape / small desktop (≤1024px) ── */
@media (max-width: 1024px) {
  .iq-hero-content h1 { font-size: 40px; }

  .iq-stat-card { width: 48%; margin-bottom: 32px; text-align: center; }
  .iq-stat-label { font-size: 17px; }

  .iq-stats { padding: 160px 0 80px; }

  .iq-service-card { flex: 1 1 100%; }
}

/* ── Tablet portrait (≤992px) ── */
@media (max-width: 992px) {
  .iq-header .iq-container { flex-wrap: wrap; gap: 12px; }
  .iq-nav ul { flex-wrap: wrap; gap: 12px; }

  .iq-service-card { flex-direction: column; }
  .iq-service-image { order: -1; }

  .iq-stat-card { width: 48%; margin-bottom: 24px; text-align: center; }
  .iq-stat-label { max-width: 80%; margin: 0 auto; }

  .iq-section h2 { font-size: 30px; }
  .iq-lead { font-size: 16px; margin-bottom: 40px; }
  .iq-stats .iq-lead { font-size: 20px; }
}

/* ── Mobile landscape / large phones (≤768px) ── */
@media (max-width: 768px) {
  /* Header */
  .iq-header { position: relative; background: #111827; padding: 12px 0; }
  .iq-header .iq-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .iq-nav ul {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .iq-nav a { color: #ffffff; display: block; padding: 6px 0; }
  .iq-header .iq-btn { width: 100%; font-size: 16px; text-align: center; }

  /* Hero */
  .iq-hero {
    height: auto;
    min-height: 500px;
    border-bottom-right-radius: 40px;
    padding: 100px 0 60px;
    align-items: flex-start;
  }
  .iq-hero-content h1 { font-size: 28px; line-height: 1.3; }
  .iq-hero-content p { font-size: 16px; }
  .iq-hero-content .iq-btn { font-size: 16px; width: 100%; }

  /* Stats */
  .iq-stats {
    padding: 60px 0;
    margin-top: 0;
  }
  .iq-stats-grid { flex-direction: column; gap: 32px; }
  .iq-stat-card { width: 100%; text-align: center; }
  .iq-stat-number { font-size: 42px; }
  .iq-stat-label { font-size: 16px; max-width: 90%; margin: 0 auto; }

  /* Services */
  .iq-services {
    margin-top: 0;
    border-radius: 40px 0 40px 0;
  }
  .iq-service-content h3 { font-size: 20px; }
  .iq-service-content p,
  .iq-service-content li { font-size: 15px; }
  .iq-service-image img { width: 100%; height: auto; }

  /* Schools / Experts grid */
  .iq-schools .iq-schools-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .iq-cta .iq-cta-box h2 { font-size: 22px; }
  .iq-cta .iq-btn { width: 100%; font-size: 16px; }

  /* Gallery */
  .gallery { padding: 20px; gap: 12px; flex-direction: column; align-items: center; }
  .frame img { width: 100%; max-width: 320px; height: 240px; }

  /* Footer */
  .iq-footer-links { flex-direction: column; gap: 24px; align-items: center; }
  .iq-footer-column { min-width: unset; width: 100%; max-width: 320px; }

  /* Section spacing */
  .iq-section { padding: 50px 0; }
  .iq-section h2 { font-size: 26px; }
  .iq-btn { font-size: 16px; padding: 10px 20px; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .iq-hero-content h1 { font-size: 22px; }
  .iq-hero-content p { font-size: 14px; }

  .iq-stat-number { font-size: 36px; }
  .iq-stat-label { font-size: 14px; }

  .iq-section h2 { font-size: 22px; }
  .iq-lead { font-size: 14px; }
  .iq-stats .iq-lead { font-size: 16px; }

  .iq-service-content h3 { font-size: 18px; }
  .iq-service-content p,
  .iq-service-content li { font-size: 14px; }

  .iq-cta .iq-cta-box h2 { font-size: 18px; }

  .iq-slide { padding: 24px 16px; }
  .iq-slide h3 { font-size: 18px; }

  .iq-school-card h3 { font-size: 17px; }

  .frame img { height: 200px; }

  .iq-footer-column { max-width: 100%; }
  .iq-footer-column ul { font-size: 13px; }
}