/* ===== CSS VARIABLES & SPACING SYSTEM ===== */
:root {
  /* Base spacing system */
  --space-unit: 8px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
}

/* ===== TYPOGRAPHY & GLOBAL STYLES ===== */
body {
  line-height: 1.5;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===== HEADING SPACING ===== */
h1 {
  margin-top: clamp(2rem, 5vw, 3rem) !important;
  margin-bottom: clamp(1.5rem, 3vw, 2rem) !important;
  line-height: 1.2 !important;
}

h2 {
  margin-top: clamp(1.5rem, 4vw, 2.5rem) !important;
  margin-bottom: clamp(1rem, 2vw, 1.5rem) !important;
  line-height: 1.3 !important;
}

h3 {
  margin-top: clamp(2rem, 5vw, 3rem) !important;
  margin-bottom: clamp(1rem, 2vw, 1.5rem) !important;
  line-height: 1.4 !important;
}

/* Keep timeline and form headings as they are */
.timeline-section h1,
.entry-content .form-heading h2,
.wp-block-heading.form-heading,
.mc4wp-form-heading {
  margin-top: revert !important;
  margin-bottom: revert !important;
  line-height: revert !important;
}

/* ===== BUTTON STYLES ===== */
.mc4wp-form input[type="submit"],
.form-submit input[type="submit"],
.wp-block-button__link,
.join-button {
  background-color: #b99a10 !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  min-height: 44px !important;
  border-radius: 50px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  cursor: pointer;
  font-size: 16px !important;
  letter-spacing: 0.03em !important;
  min-width: 140px !important;
  display: inline-block !important;
  text-align: center !important;
  line-height: normal !important;
  font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* Form button specific margins */
.mc4wp-form input[type="submit"],
.form-submit input[type="submit"] {
  margin: 8px 0 16px 0 !important;
}

/* ===== FORM STYLES ===== */
/* Form container alignment */
.mc4wp-form {
  text-align: left;
  padding-left: 0;
  max-width: 800px;
}

/* Form fields spacing and alignment */
.mc4wp-form-fields {
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 25px;
}

/* Form input fields */
.mc4wp-form input[type="text"],
.mc4wp-form input[type="email"],
.mc4wp-form select {
  width: 100%;
  padding: 16px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  margin-bottom: 24px !important;
  font-size: 16px;
  height: auto !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
}

/* Form heading styles */
.entry-content .form-heading h2,
.wp-block-heading.form-heading,
.mc4wp-form-heading {
  text-align: left;
  color: #031993;
  margin-bottom: 24px;
  padding-left: 0;
}

/* Regular content headings */
.entry-content h2:not(.form-heading),
.wp-block-heading:not(.form-heading) {
  color: #031993;
  margin-bottom: 24px;
}

/* Thank you message spacing */
.mc4wp-form p:last-child {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  padding-left: 0;
  line-height: 1.5;
}

/* Form wrapper spacing */
.mc4wp-form-wrapper {
  padding: 10px 0 20px 0;
}

/* ===== HERO SECTION STYLES ===== */
.wp-block-cover .wp-block-cover__inner-container {
  text-align: center !important;
}

.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover .wp-block-heading,
.hero-section h1,
.hero-section h2 {
  text-align: center !important;
}

.wp-block-cover .wp-block-button,
.hero-section .wp-block-button {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  width: fit-content !important;
}

.wp-block-cover .wp-block-button .wp-block-button__link {
  display: inline-block !important;
}

/* ===== SERVICE SECTION STYLES ===== */
.service-card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-image-container {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-content {
  padding: 20px;
  flex-grow: 1;
  background-color: white;
}

.service-title {
  color: #031993;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: bold;
}

.service-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
  background-color: #f8f9fa;
  padding: clamp(3rem, 8vw, 5rem) 20px;
  text-align: center;
}

.timeline-section h1 {
  color: #031993;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: bold;
}

.timeline-section .subtitle {
  color: #666;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 60px;
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}

.timeline-line {
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #b99a10, #031993);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.timeline-badge {
  background: linear-gradient(135deg, #b99a10, #d4b142);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(185, 154, 16, 0.3);
  border: 3px solid white;
  min-width: 80px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.timeline-badge.today {
  background: linear-gradient(135deg, #031993, #1a4db8);
  box-shadow: 0 4px 15px rgba(3, 25, 147, 0.3);
}

.timeline-content {
  margin-left: 40px;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* ===== COLUMN & LAYOUT FIXES ===== */
.wp-block-column {
  min-width: 0 !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

.wp-block-column p,
.wp-block-column h1,
.wp-block-column h2,
.wp-block-column h3,
.wp-block-column h4,
.wp-block-column h5,
.wp-block-column h6 {
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.wp-block-paragraph.no-wrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== SECTION BALANCE ===== */
.wp-block-group,
.wp-block-cover,
main section {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

/* ===== ABOUT PAGE SPECIFIC FIXES ===== */
.page-id-158 .wp-block-group h3[style*="padding-top"] {
  padding-top: 1rem !important;
  padding-right: 1rem !important;
  padding-bottom: 1rem !important;
  padding-left: 1rem !important;
  margin-bottom: 1rem !important;
}

.page-id-158 .wp-block-group p.has-ast-global-color-8-color {
  padding: 1rem !important;
  margin-bottom: 1.5rem !important;
}

.page-id-158 .wp-block-group.has-ast-global-color-5-background-color {
  margin-bottom: 2rem !important;
  padding: 1.5rem !important;
}
