:root {
  --primary: #6758a2;
  --text: #2b2b2b;
  --muted: #6f6f6f;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --inverse: #222;
  --border: #e5e5e5;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: #54488a;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.section-padding {
  padding: 84px 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.custom-logo {
  width: auto;
  height: 53px;
}

.header-right-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-left: 8px;
  background: var(--text);
  vertical-align: middle;
}

.onepress-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 24px;
}

.onepress-menu a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  padding: 6px 0;
}

.onepress-menu a.active,
.onepress-menu a:hover {
  color: var(--primary);
}

/* Hero */
.hero-slideshow-wrapper {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-image 0.7s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-content-style1 {
  text-align: center;
  color: #fff;
}

.hero-large-text {
  margin: 0 0 16px;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
}

.hero-content-style1 .js-rotating {
  color: var(--primary);
  background: #fff;
  padding: 0 20px;
  border-radius: 3px;
  text-shadow: none;
}

.hero-small-text {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: clamp(16px, 2vw, 22px);
}

.btn {
  display: inline-block;
  border-radius: 3px;
  padding: 12px 26px;
  border: 1px solid transparent;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn + .btn {
  margin-left: 10px;
}

.btn-theme-primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-theme-primary:hover {
  color: #fff;
  background: #56478f;
  border-color: #56478f;
}

.btn-secondary-outline {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.btn-secondary-outline:hover {
  color: #333;
  background: #fff;
}

.btn-theme-primary-outline {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.btn-theme-primary-outline:hover {
  color: var(--primary);
  background: #fff;
}

/* Section titles */
.section-title-area {
  text-align: center;
  margin: 0 auto 44px;
  max-width: 860px;
}

.section-subtitle {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
}

.section-title {
  margin: 8px 0 0;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.section-desc {
  margin-top: 12px;
}

/* Accreditations */
.section-clients {
  background-color: rgba(103, 88, 162, 1);
  padding: 30px 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.client-item img {
  max-height: 62px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Generic rows */
.row {
  display: grid;
  gap: 24px;
}

.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Schools */
.section-features {
  background: #fff;
}

.feature-item {
  text-align: center;
  background: #faf9fc;
  border: 1px solid #ece9f3;
  border-radius: 12px;
  padding: 32px 26px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-item:hover {
  box-shadow: 0 14px 32px rgba(103, 88, 162, 0.12);
  transform: translateY(-4px);
}

.icon-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}

.icon-image img {
  max-height: 84px;
  width: auto;
}

.feature-item h4 {
  margin: 18px 0 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 21px;
  line-height: 1.3;
}

.feature-item-content p {
  margin: 0;
  color: #555;
}

/* Programmes */
.section-services {
  background: #f6f6f6;
}

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 26px 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-item:hover {
  box-shadow: 0 14px 30px rgba(103, 88, 162, 0.1);
  transform: translateY(-3px);
}

.service-title {
  margin: 0 0 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 23px;
}

.service-content p {
  margin: 0 0 10px;
  color: #555;
}

/* Counter */
.section-counter {
  background: #fff;
}

.counter-row {
  margin-top: 20px;
}

.counter_item {
  text-align: center;
}

.counter__number {
  font-family: 'Raleway', sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.counter_title {
  margin-top: 8px;
  font-size: 15px;
  color: #666;
}

.n-a {
  color: var(--primary);
  font-size: 30px;
  margin-left: 2px;
}

/* Testimonials */
.section-testimonials {
  background: #f6f6f6;
}

.card-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  color: #fff;
  border-radius: 10px;
  border: none;
  overflow: hidden;
}

.card-warning {
  background-color: #003d66;
}

.card-theme-primary {
  background-color: var(--primary);
}

.card-success {
  background-color: #945fa4;
}

.card-block {
  padding: 26px;
}

.tes_author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tes_author img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.tes__name {
  display: block;
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
}

.tes__name span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.9;
}

.card-title {
  margin: 0 0 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
}

.card-text {
  margin: 0;
  font-size: 14px;
}

/* CTA */
.section-cta {
  background: var(--primary);
  color: #fff;
  padding-top: 38px;
  padding-bottom: 38px;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.cta-heading h2 {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
}

/* Contact */
.section-contact {
  background: #efefef url('https://www.devinci.asia/wp-content/uploads/2021/02/Fichier-1756@4x.png') bottom left no-repeat;
  background-size: 100%;
  padding-bottom: 350px;
}

.contact-grid {
  align-items: start;
}

.wpforms-form {
  background: transparent;
}

.wpforms-field {
  margin-bottom: 16px;
}

.wpforms-field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.wpforms-required-label {
  color: #d93b3b;
}

.wpforms-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wpforms-field-row-block input,
.wpforms-field-email input,
.wpforms-field-textarea textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  background: #fff;
  padding: 12px;
  font-size: 15px;
}

.wpforms-field-sublabel {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #777;
}

.wpforms-field-textarea textarea {
  min-height: 140px;
  resize: vertical;
}

.wpforms-submit {
  border: none;
  background: var(--primary);
  color: #fff;
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 12px 20px;
  cursor: pointer;
}

.wpforms-submit:hover {
  background: #574892;
}

#form-feedback {
  min-height: 24px;
  margin-top: 10px;
  font-size: 14px;
}

#form-feedback.success {
  color: #2a7e39;
}

#form-feedback.error {
  color: #b61d1d;
}

.contact-info p {
  margin: 0 0 18px;
}

.address-box h3 {
  margin: 0 0 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 24px;
}

.address-contact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.icon-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
}

.address-content {
  font-size: 15px;
}

/* Footer */
.site-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.78);
}

.site-info {
  padding: 18px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sep {
  opacity: 0.6;
}

.back-to-top {
  color: #fff;
  font-size: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
  .four-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-deck {
    grid-template-columns: 1fr;
  }

  .section-contact {
    background-size: cover;
    padding-bottom: 120px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .main-navigation {
    position: absolute;
    top: 80px;
    right: 4%;
    left: 4%;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-navigation.open {
    max-height: 340px;
  }

  .onepress-menu {
    display: block;
    padding: 8px 0;
  }

  .onepress-menu li a {
    padding: 10px 16px;
  }

  .two-cols,
  .cta-row,
  .wpforms-field-row {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 64px 0;
  }
}

@media (max-width: 540px) {
  .four-cols,
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .hero-container {
    padding-top: 26%;
    padding-bottom: 20%;
  }

  .btn {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
  }

  .btn + .btn {
    margin-left: 0;
  }
}

/* Dot navigation (onepage) */
.dot-nav {
  position: fixed;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dot-nav a {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(120, 120, 120, 0.55);
  background: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.dot-nav a:hover {
  border-color: var(--primary);
  transform: scale(1.15);
}

.dot-nav a.active {
  background: #3a3a3a;
  border-color: #3a3a3a;
}

.dot-nav a::after {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #3a3a3a;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dot-nav a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 820px) {
  .dot-nav {
    display: none;
  }
}
