/* ===================================================================
   custom.css — Custom Page Stylesheet (White + Green + Blue Theme)
   =================================================================== */

/* Page Hero */
.custom-hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 83vh;
}

.custom-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.02em;
  max-width: 820px;
  margin: 0 auto;
}

.custom-hero-sub {
  margin: 1.4rem auto 0;
  max-width: 580px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.custom-hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Accordion */
.custom-accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.custom-accordion-item:hover {
  border-color: var(--blue-accent);
}

.custom-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
}

.custom-accordion-summary:hover {
  color: var(--blue-accent);
}

.custom-accordion-summary .acc-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 4px !important;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  color: var(--green-primary);
}

/* Tabs */
.custom-tab-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 6px !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.custom-tab-btn:hover {
  background: var(--blue-light);
  color: var(--blue-accent);
  border-color: var(--blue-accent);
}

.custom-tab-btn.active {
  background: var(--green-primary);
  color: #FFFFFF;
  border-color: var(--green-primary);
  box-shadow: var(--shadow-sm);
}

.custom-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.custom-tab-panel {
  display: none;
}

.custom-tab-panel.active {
  display: block;
  animation: custom-fade-in 0.3s ease;
}

@keyframes custom-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-tab-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px !important;
  padding: 2rem 2.25rem;
}

.custom-tab-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.custom-tab-content p {
  color: var(--muted);
  line-height: 1.7;
}

.custom-tab-content p + p { margin-top: 0.85rem; }

/* Section Header */
.custom-section-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.custom-section-header h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.custom-section-header p {
  margin-top: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Text + Image Content Block */
.custom-content-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.custom-content-block.reverse .custom-cb-text { order: 2; }
.custom-content-block.reverse .custom-cb-media { order: 1; }

.custom-cb-text h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.custom-cb-text p {
  color: var(--muted);
  line-height: 1.7;
}

.custom-cb-text code {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
  color: var(--fg);
}

.custom-cb-media {
  border-radius: 6px !important;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.custom-cb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 800px) {
  .custom-content-block,
  .custom-content-block.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .custom-content-block.reverse .custom-cb-text,
  .custom-content-block.reverse .custom-cb-media {
    order: initial;
  }
}

/* Multi-Column Grid System */
.custom-cols {
  display: grid;
  gap: 1.75rem;
}

.custom-cols.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.custom-cols.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.custom-cols.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.custom-cols.cols-1 { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 900px) {
  .custom-cols.cols-3,
  .custom-cols.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .custom-cols.cols-2,
  .custom-cols.cols-3,
  .custom-cols.cols-4 { grid-template-columns: minmax(0, 1fr); }
}

.custom-col-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px !important;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.custom-col-card:hover {
  border-color: var(--tan);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.custom-col-card h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.05rem;
}

.custom-col-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Feature Highlight Block */
.custom-feature-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.cfh-media {
  border-radius: 6px !important;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cfh-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cfh-content h2 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

@media (max-width: 800px) {
  .custom-feature-highlight { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* Notification / Alert Blocks */
.custom-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 6px !important;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  margin-bottom: 1rem;
}

.custom-alert-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 6px !important;
  flex-shrink: 0;
}

.custom-alert-icon i, .custom-alert-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.custom-alert-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.custom-alert-content p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.custom-alert.alert-info {
  border-color: var(--blue-border);
  background: var(--blue-light);
}
.custom-alert.alert-info .custom-alert-icon {
  background: #FFFFFF;
  color: var(--blue-accent);
}

.custom-alert.alert-success {
  border-color: var(--green-border);
  background: var(--green-soft);
}
.custom-alert.alert-success .custom-alert-icon {
  background: #FFFFFF;
  color: var(--green-accent);
}

.custom-alert.alert-warning {
  border-color: #FDE9C8;
  background: #FFF8EC;
}
.custom-alert.alert-warning .custom-alert-icon {
  background: #FFFFFF;
  color: #B8860B;
}

.custom-alert.alert-error {
  border-color: #F6CFCB;
  background: #FDF1F0;
}
.custom-alert.alert-error .custom-alert-icon {
  background: #FFFFFF;
  color: #C0392B;
}

.custom-alert.alert-update {
  border-color: var(--border-2);
  background: var(--tan-light);
}
.custom-alert.alert-update .custom-alert-icon {
  background: #FFFFFF;
  color: var(--tan);
}

/* Timeline / Steps */
.custom-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.custom-timeline::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border);
}

.custom-timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}

.custom-timeline-item:last-child { padding-bottom: 0; }

.custom-tl-dot {
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-primary);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.custom-tl-body h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.custom-tl-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Icon List */
.custom-icon-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.custom-icon-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.custom-icon-item h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.custom-icon-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Quote / Highlight Callout */
.custom-quote {
  padding: 2.25rem;
  border-radius: 6px !important;
  background: var(--bg-2);
  border-left: 3px solid var(--blue-accent);
}

.custom-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--fg);
  margin: 0 0 1.25rem;
}

.custom-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* Stats Strip */
.custom-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: 6px !important;
  background: var(--green-primary);
  text-align: center;
}

.custom-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #FFFFFF;
  font-weight: 400;
}

.custom-stat-label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 700px) {
  .custom-stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Media Embed Block */
.custom-media-block {
  border-radius: 6px !important;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.custom-media-block img {
  width: 100%;
  display: block;
}

.custom-media-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.custom-media-caption i {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

/* Downloadable Resources */
.custom-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .custom-resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .custom-resources-grid { grid-template-columns: minmax(0, 1fr); }
}

.custom-resource-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 6px !important;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.custom-resource-card:hover {
  border-color: var(--tan);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.custom-resource-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 6px !important;
  background: var(--tan-light);
  color: var(--bg-dark);
  flex-shrink: 0;
}

.custom-resource-icon i, .custom-resource-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.custom-resource-meta {
  flex-grow: 1;
  min-width: 0;
}

.custom-resource-meta h4 {
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
  overflow-wrap: break-word;
}

.custom-resource-meta span {
  font-size: 0.78rem;
  color: var(--muted);
}

.custom-resource-dl {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--muted);
  flex-shrink: 0;
}

.custom-resource-dl i, .custom-resource-dl svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* Related Links */
.custom-related-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .custom-related-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .custom-related-links { grid-template-columns: minmax(0, 1fr); }
}

.custom-related-link-card {
  display: block;
  padding: 1.5rem;
  border-radius: 6px !important;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.custom-related-link-card:hover {
  border-color: var(--tan);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.rl-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-accent);
  margin-bottom: 0.6rem;
}

.custom-related-link-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.custom-related-link-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.rl-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}

.rl-arrow i {
  width: 0.9rem;
  height: 0.9rem;
}

/* Banner / Promo Strip */
.custom-banner-strip {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 6px !important;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
}

.custom-banner-strip h2 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.custom-banner-strip p {
  color: var(--muted);
  line-height: 1.65;
}

.custom-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (max-width: 480px) {
  .custom-banner-strip { padding: 2rem 1.5rem; }
}