/*
Theme Name: Rise Up Education Theme
Theme URI: https://riseupeducentre.com/
Author: Rise Up Education Centre Pvt. Ltd.
Description: Custom WordPress theme.
Version: 1.0.2
Text Domain: riseup-theme
*/

:root {
  /* Color tokens - Atlassian inspired */
  --ds-surface: #ffffff;
  --ds-surface-sunken: #f7f8f9;
  --ds-surface-raised: #ffffff;
  --ds-surface-overlay: #ffffff;
  --ds-text: #172b4d;
  --ds-text-subtle: #626f86;
  --ds-text-subtlest: #8993a5;
  --ds-link: #0052cc;
  --ds-link-hover: #0065ff;

  /* Brand colors */
  --ds-brand: #f78d1e;
  --ds-brand-bold: #fcb040;
  --ds-brand-subtle: rgba(247, 141, 30, 0.1);
  --ds-accent-teal: #00a9a4;

  /* Border colors */
  --ds-border: #dfe1e6;
  --ds-border-bold: #c1c7d0;

  /* Background colors */
  --bg-deep: #fafbfc;
  --bg-panel: var(--ds-surface);

  /* Legacy support */
  --accent: var(--ds-brand);
  --accent-2: var(--ds-brand-bold);
  --accent-3: var(--ds-accent-teal);
  --text-main: var(--ds-text);
  --text-sub: var(--ds-text-subtle);
  --border-soft: var(--ds-border);

  /* Elevation/Shadow */
  --ds-shadow-raised: 0 1px 1px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31);
  --ds-shadow-overlay: 0 4px 8px -2px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31);
  --ds-shadow-overflow: 0 8px 16px -4px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31);
  --shadow: var(--ds-shadow-raised);

  /* Spacing system - Atlassian scale */
  --ds-space-050: 0.25rem;  /* 4px */
  --ds-space-075: 0.375rem; /* 6px */
  --ds-space-100: 0.5rem;   /* 8px */
  --ds-space-150: 0.75rem;  /* 12px */
  --ds-space-200: 1rem;     /* 16px */
  --ds-space-250: 1.25rem;  /* 20px */
  --ds-space-300: 1.5rem;   /* 24px */
  --ds-space-400: 2rem;     /* 32px */
  --ds-space-500: 2.5rem;   /* 40px */
  --ds-space-600: 3rem;     /* 48px */
  --ds-space-800: 4rem;     /* 64px */
  --ds-space-1000: 5rem;    /* 80px */

  /* Border radius */
  --ds-radius: 3px;
  --ds-radius-100: 4px;
  --ds-radius-200: 8px;
  --ds-radius-300: 12px;
  --radius-lg: var(--ds-radius-300);
  --radius-md: var(--ds-radius-200);
  --radius-sm: var(--ds-radius-100);
}

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

body {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #fffdfa 0%, #fff7eb 18%, #fffdfa 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.1s ease-out;
}

a:focus-visible {
  outline: 2px solid var(--ds-link);
  outline-offset: 2px;
  border-radius: var(--ds-radius);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: var(--ds-space-1000) 0;
}

.section--cource {
  background: linear-gradient(180deg, var(--ds-surface-sunken) 0%, transparent 100%);
}

.section--about {
  background: var(--ds-surface-sunken);
}

.section--admission {
  background: linear-gradient(180deg, transparent 0%, var(--ds-surface-sunken) 100%);
}

.section--cta {
  position: relative;
  background-image: url('../../uploads/2025/03/IMG_0769-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section--cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(135, 132, 129, 0.92) 0%, rgba(88, 90, 90, 0.88) 100%);
  z-index: 1;
}

.section--cta .container {
  position: relative;
  z-index: 2;
}

.section--cta .section__title,
.section--cta .section__subtitle {
  color: #ffffff;
}

.section--cta .badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.section--cta .badge::before {
  background: #ffffff;
}

.section__title {
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  margin: var(--ds-space-100) 0;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: var(--ds-text);
  line-height: 1.2;
}

.section__subtitle-en {
  margin: var(--ds-space-100) 0 var(--ds-space-150);
  color: var(--ds-text-subtlest);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__subtitle {
  margin: 0 0 var(--ds-space-150);
  color: var(--ds-text-subtle);
  font-size: 1rem;
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-100);
  padding: var(--ds-space-100) var(--ds-space-150);
  border-radius: var(--ds-radius);
  background: var(--ds-brand-subtle);
  color: var(--ds-brand);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds-brand);
  flex-shrink: 0;
}

.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top, rgba(247, 141, 30, 0.08), transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(0, 169, 164, 0.06), transparent 50%);
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero__headline {
  font-size: clamp(40px, 7vw, 64px);
  margin: 20px 0 20px;
  line-height: 1.2;
  font-weight: 900;
  background: var(--text-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__copy {
  color: var(--text-sub);
  margin: 0 auto 32px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-100);
  padding: var(--ds-space-100) var(--ds-space-300);
  border-radius: var(--ds-radius);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.5;
  border: none;
  transition: background 0.1s ease-out, box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: 2px solid var(--ds-link);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--ds-brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--ds-brand-bold);
}

.btn--primary:active {
  background: #e67d0f;
}

.btn--outline {
  border: 1px solid var(--ds-border-bold);
  color: var(--ds-text);
  background: var(--ds-surface);
}

.btn--outline:hover {
  background: var(--ds-surface-sunken);
}

.btn--outline:active {
  background: var(--ds-border);
  color: var(--ds-link);
}

.hero__panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(247, 141, 30, 0.12), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0, 169, 164, 0.12), transparent 35%);
  pointer-events: none;
}

.grid {
  display: grid;
  gap: var(--ds-space-300);
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--ds-surface-raised);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-200);
  padding: var(--ds-space-300);
  box-shadow: var(--ds-shadow-raised);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.card:hover {
  box-shadow: var(--ds-shadow-overlay);
  border-color: var(--ds-border-bold);
}

.card:focus-within {
  box-shadow: var(--ds-shadow-overlay);
  border-color: var(--ds-link);
}

.card__title {
  margin: 0 0 var(--ds-space-150);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ds-text);
}

.card__title a {
  color: var(--ds-text);
  transition: color 0.1s ease-out;
  text-decoration: none;
}

.card__title a:hover {
  color: var(--ds-link);
  text-decoration: underline;
}

.card__title a:focus-visible {
  outline: 2px solid var(--ds-link);
  outline-offset: 2px;
  border-radius: var(--ds-radius);
}

.card__thubnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 * 100) */
  margin-bottom: 20px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.card__thubnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__meta {
  display: flex;
  gap: var(--ds-space-150);
  align-items: center;
  color: var(--ds-text-subtle);
  font-size: 0.75rem;
  margin-bottom: var(--ds-space-150);
}

.card__tag {
  padding: var(--ds-space-100) var(--ds-space-100);
  border-radius: var(--ds-radius);
  background: var(--ds-brand-subtle);
  color: var(--ds-brand);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}

.card__excerpt {
  margin: var(--ds-space-150) 0 0;
  color: var(--ds-text-subtle);
  font-size: 0.875rem;
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--ds-space-500);
  align-items: center;
}

.about-images {
  position: relative;
  width: 100%;
  border-radius: var(--ds-radius-200);
  overflow: hidden;
  box-shadow: var(--ds-shadow-overlay);
}

.about-images__photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease-out;
}

.about-images:hover .about-images__photo {
  transform: scale(1.02);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-150);
  margin-top: var(--ds-space-300);
}

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(247, 141, 30, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 700;
  font-size: 13px;
}

/* Cource */
.grid-cource {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* About Cards */
.card-about {
  display: flex;
  flex-direction: column;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}

.card-about:hover {
  border-color: var(--ds-border-bold);
}

.card-about__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ds-brand);
  line-height: 1;
  margin-bottom: var(--ds-space-200);
  letter-spacing: -0.02em;
  opacity: 0.3;
}

.card-about .card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--ds-space-150);
  color: var(--ds-text);
  line-height: 1.3;
}

.card-about .card__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ds-text-subtle);
  margin: 0;
}

/* Feature Cards */
.card-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}

.card-feature:hover {
  border-color: var(--ds-link);
  transform: translateY(-2px);
  transition: all 0.2s ease-out;
}

.card-feature__icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: var(--ds-space-250);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--ds-brand-subtle);
  border-radius: 50%;
}

.card-feature .card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--ds-space-150);
  color: var(--ds-text);
  line-height: 1.3;
}

.card-feature .card__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ds-text-subtle);
  margin: 0;
}

.feature-image {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--ds-radius-300);
  overflow: hidden;
  box-shadow: var(--ds-shadow-overflow);
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 * 100) */
}

.feature-image__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-cource {
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-cource:hover {
  box-shadow: var(--ds-shadow-overflow);
  border-color: var(--ds-link);
}

.card-cource__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--ds-text-subtlest);
  line-height: 1;
  margin-bottom: var(--ds-space-200);
  letter-spacing: -0.02em;
}

.card-cource .card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--ds-space-150);
  color: var(--ds-text);
  line-height: 1.3;
}

.card-cource .card__excerpt {
  flex-grow: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--ds-space-250);
  color: var(--ds-text-subtle);
}

.card-cource__link {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-100);
  color: var(--ds-link);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0;
  transition: color 0.1s ease-out;
  margin-top: auto;
  text-decoration: none;
}

.card-cource__link:hover {
  color: var(--ds-link-hover);
  text-decoration: underline;
}

.card-cource__link:focus-visible {
  outline: 2px solid var(--ds-link);
  outline-offset: 2px;
  border-radius: var(--ds-radius);
}

/* News */
.news-compact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}

.news-item__date {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-item__title {
  margin: 0;
}

.cta-banner {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-300);
  align-items: center;
  text-align: center;
}

/* Vision & Mission Cards */
.vision-mission-section {
  padding: var(--ds-space-100) 0;
}

.vision-mission-section .wp-block-columns {
  gap: var(--ds-space-500);
}

.vision-mission-card {
  display: flex;
  flex-direction: column;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-200);
  padding: var(--ds-space-500);
  height: 100%;
  transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.vision-mission-card:hover {
  box-shadow: var(--ds-shadow-overlay);
  border-color: var(--ds-border-bold);
}

.vision-mission-card h3 {
  color: var(--ds-brand);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--ds-space-300);
  line-height: 1.3;
}

.vision-mission-card p {
  color: var(--ds-text);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 768px) {
  .vision-mission-section .wp-block-columns {
    flex-direction: column;
  }

  .vision-mission-card {
    padding: var(--ds-space-400);
  }
}

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 0 24px;
  margin-top: 40px;
  color: var(--text-sub);
  font-size: 14px;
  background: #fff3e3;
}

.site-logo {
  font-weight: 900;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 50;
}

.site-logo__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-soft);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

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

.nav__list {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--ds-text);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0;
  padding: var(--ds-space-100) var(--ds-space-150);
  border-radius: var(--ds-radius);
  transition: background 0.1s ease-out, color 0.1s ease-out;
}

.nav a:hover,
.nav .current-menu-item a {
  color: var(--ds-link);
  background: var(--ds-surface-sunken);
}

.nav a:focus-visible {
  outline: 2px solid var(--ds-link);
  outline-offset: 2px;
}

.nav a:active {
  background: var(--ds-border);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 0;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  z-index: 50;
  align-items: center;
  justify-content: center;
}

.hamburger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ds-text);
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--ds-text);
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.menu-toggle.is-active .hamburger {
  background: transparent;
}

.menu-toggle.is-active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-border);
  box-shadow: var(--ds-shadow-overlay);
  padding: 80px var(--ds-space-300) var(--ds-space-300);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  z-index: 40;
}

.mobile-nav.is-active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav .nav__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-actions {
  position: fixed;
  right: 18px;
  top: 45%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 60;
}

.floating-actions__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-actions__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.floating-actions__item--facebook {
  background: #1877f2;
}

.floating-actions__item--contact {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.floating-actions__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}

.floating-actions__icon i {
  line-height: 1;
}

.floating-actions__item--contact .floating-actions__icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.floating-actions__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.floating-actions__mobile {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: var(--ds-link);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 60;
}

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

.back-to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.back-to-top i {
  line-height: 1;
}

.wpcf7-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-200);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow);
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  color: var(--ds-text);
  margin-bottom: 6px;
}

.wpcf7-form .wpcf7-form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--ds-radius);
  border: 1px solid var(--ds-border);
  background: var(--ds-surface-sunken);
  color: var(--ds-text);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.wpcf7-form .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--ds-link);
  box-shadow: 0 0 0 3px rgba(17, 93, 193, 0.15);
}

.wpcf7-form .wpcf7-submit {
  width: auto;
  cursor: pointer;
  background: var(--ds-brand);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: var(--ds-radius);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wpcf7-form .wpcf7-submit:hover {
  background: var(--ds-brand-bold);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.wpcf7-form .wpcf7-not-valid {
  border-color: #d22;
  box-shadow: 0 0 0 3px rgba(210, 34, 34, 0.15);
}

.wpcf7-form .wpcf7-not-valid-tip {
  color: #d22;
  font-size: 0.85rem;
  margin-top: 6px;
}

.wpcf7-response-output {
  margin: 12px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: var(--ds-radius);
  border: 1px solid var(--ds-border-bold) !important;
  background: var(--ds-surface-sunken);
  color: var(--ds-text);
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
  border-color: #2b8a3e !important;
  background: #edf8ef;
  color: #1c5428;
}

.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-spam-blocked {
  border-color: #d22 !important;
  background: #fcecec;
  color: #8a1414;
}

.section__header {
  margin-bottom: var(--ds-space-600);
}

.section__header--center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--ds-space-800);
}

/* Page Content */
.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: var(--ds-space-600);
  padding-bottom: var(--ds-space-400);
  border-bottom: 1px solid var(--ds-border);
}

.page-header .section__title {
  margin: 0;
}

.page-body {
  color: var(--ds-text);
  font-size: 1rem;
  line-height: 1.8;
}

.page-body h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: var(--ds-space-600) 0 var(--ds-space-300);
  color: var(--ds-text);
  line-height: 1.3;
}

.page-body h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: var(--ds-space-500) 0 var(--ds-space-250);
  color: var(--ds-text);
  line-height: 1.4;
}

.page-body h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: var(--ds-space-400) 0 var(--ds-space-200);
  color: var(--ds-text);
  line-height: 1.4;
}

.page-body p {
  margin: 0 0 var(--ds-space-300);
}

.page-body ul,
.page-body ol {
  margin: 0 0 var(--ds-space-300);
  padding-left: var(--ds-space-400);
}

.page-body li {
  margin-bottom: var(--ds-space-150);
}

.page-body a {
  color: var(--ds-link);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.1s ease-out;
}

.page-body a:hover {
  text-decoration-color: var(--ds-link);
}

.page-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ds-radius-200);
  margin: var(--ds-space-400) 0;
}

.page-body blockquote {
  margin: var(--ds-space-400) 0;
  padding: var(--ds-space-300) var(--ds-space-400);
  border-left: 4px solid var(--ds-brand);
  background: var(--ds-surface-sunken);
  border-radius: 0 var(--ds-radius-200) var(--ds-radius-200) 0;
  color: var(--ds-text-subtle);
  font-style: italic;
}

.page-body table {
  width: 100%;
  margin: var(--ds-space-400) 0;
  border-collapse: collapse;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-200);
  overflow: hidden;
}

.page-body th,
.page-body td {
  padding: var(--ds-space-200) var(--ds-space-300);
  text-align: left;
  border-bottom: 1px solid var(--ds-border);
}

.page-body th {
  background: var(--ds-surface-sunken);
  font-weight: 600;
  color: var(--ds-text);
}

.page-body tr:last-child td {
  border-bottom: none;
}

/* Gutenberg Block Styles */
.wp-block-group.two-column-section {
  padding: var(--ds-space-100) 0;
}

.wp-block-columns {
  margin-bottom: 0;
}

.wp-block-column {
  margin-bottom: 0;
}

.two-column-section .wp-block-columns {
  align-items: center !important;
  gap: var(--ds-space-600);
}

.two-column-section .number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--ds-text-subtlest);
  line-height: 1;
  margin-bottom: var(--ds-space-200);
  letter-spacing: -0.02em;
}

.two-column-section .wp-block-heading {
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  font-weight: 600;
  color: var(--ds-text);
  line-height: 1.2;
  margin-top: var(--ds-space-150);
  margin-bottom: var(--ds-space-300);
}

.two-column-section p {
  color: var(--ds-text-subtle);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--ds-space-300);
}

.two-column-section img {
  border-radius: var(--ds-radius-200);
  box-shadow: var(--ds-shadow-overlay);
  width: 100%;
  height: auto;
}

/* Section with ID style */
.wp-block-group.is-style-section-with-id {
  scroll-margin-top: 80px; /* Account for sticky header */
}

/* Feature Cards Pattern */
.feature-cards-section {
  padding: var(--ds-space-100) 0;
}

.feature-cards-section .wp-block-columns {
  gap: var(--ds-space-300);
}

.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-200);
  padding: var(--ds-space-300);
  height: 100%;
  transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.feature-card:hover {
  box-shadow: var(--ds-shadow-overlay);
  border-color: var(--ds-border-bold);
}

.feature-card__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ds-brand);
  line-height: 1;
  margin-bottom: var(--ds-space-200);
  letter-spacing: -0.02em;
  opacity: 0.3;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--ds-space-150);
  color: var(--ds-text);
  line-height: 1.3;
  margin-top: 0;
}

.feature-card p:not(.feature-card__number) {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ds-text-subtle);
  margin: 0;
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .section__header--center {
    margin-bottom: 40px;
  }

  .hero__headline {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero__copy {
    font-size: 16px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 14px;
  }

  .card {
    padding: 20px;
  }

  .card-cource__number {
    font-size: 40px;
  }

  .header__inner {
    flex-wrap: wrap;

    & small {
      display: none;
    }
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .floating-actions {
    display: none;
  }

  .floating-actions__mobile {
    position: fixed;
    left: 12px;
    right: 12px;
    top: unset;
    bottom: 16px;
    display: grid;
    grid-template-columns: repeat(2, 0.1fr);
    gap: 12px;
    z-index: 60;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .floating-actions__mobile .floating-actions__item {
    justify-content: center;
    border-radius: 14px;
  }

  .floating-actions__mobile.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .cta-banner {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .two-column-section .wp-block-columns {
    flex-direction: column;
    gap: var(--ds-space-100);
  }

  .two-column-section .wp-block-column {
    flex-basis: 100% !important;
  }

  .feature-cards-section .wp-block-columns {
    flex-direction: column;
  }

  .feature-card__number {
    font-size: 2rem;
  }

  .back-to-top {
    bottom: 74px; /* stay above mobile floating bar */
  }
}
