/* =============================================
   LAYOUT UTILITIES
   ============================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-16);
}

@media (max-width: 767px) {
  .section {
    padding-block: var(--space-10);
  }
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

@media (max-width: 767px) {
  .section-title {
    font-size: var(--text-xl);
  }
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-2);
  margin-top: var(--space-2);
}

.section-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.section-link:hover {
  color: var(--color-primary-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* =============================================
   SLEEK & SMALL IMAGE CAPTIONS (TIGHT SPACING)
   ============================================= */

/* Reduce margin between image container and next element */
figure.wp-block-image,
figure.wp-block-gallery,
.tff-brand-content-inner figure {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

/* Caption Text Styling */
figcaption,
.wp-element-caption,
.wp-block-image figcaption,
.wp-block-gallery figcaption,
.tff-brand-content-inner figcaption {
  font-size: 12px !important; /* Small Font */
  font-style: italic !important; /* Italic */
  color: var(--color-text-3, #6B7280) !important; /* Light Muted Gray Text */
  margin-top: 6px !important; /* Tight gap under image */
  margin-bottom: 16px !important;
  line-height: 1.45 !important;
  font-family: var(--font-body) !important;
  text-align: center !important; /* Centered under image */
}

/* =============================================
   PREMIUM PDF DOWNLOAD CARD (FILE BLOCK OVERRIDE)
   ============================================= */

/* 1. Hide the ugly gray inline PDF viewer */
.wp-block-file .wp-block-file__embed {
  display: none !important;
}

/* 2. Style the outer wrapper as a Premium Card */
.wp-block-file {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--color-bg-2, #F8FAFC) !important; 
  border: 1.5px solid var(--color-border, #E5E7EB) !important;
  border-left: 5px solid #E53E3E !important; /* Red PDF Accent */
  border-radius: 12px !important;
  padding: 18px 24px !important;
  margin: 32px 0 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

/* 3. Style the File Name (Left Side) */
.wp-block-file a:not(.wp-block-file__button) {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--color-text, #1F2937) !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Add a PDF Emoji/Icon via CSS */
.wp-block-file a:not(.wp-block-file__button)::before {
  content: "📕" !important;
  font-size: 24px !important;
  background: #ffffff !important;
  padding: 6px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* 4. Style the Download Button (Right Side) */
.wp-block-file .wp-block-file__button {
  background: var(--color-primary, #1A7F4B) !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.wp-block-file .wp-block-file__button::after {
  content: "↓" !important;
  font-size: 16px !important;
}

.wp-block-file .wp-block-file__button:hover {
  background: var(--color-primary-dark, #145E38) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(26, 127, 75, 0.25) !important;
}