/*
 Theme Name:   African Traditional & Natural Medicine Theme
 Theme URI:    https://africantraditionalmedicine.org
 Description:  Official WordPress child theme for African Traditional and Natural Medicine (School) & African Traditional Medicine Formulators and Producers Multipurpose LTD (Association).
 Author:       African Traditional and Natural Medicine
 Author URI:   https://africantraditionalmedicine.org
 Template:     hello-elementor
 Version:      2.0.0
 Text Domain:  africanmed
*/

/* ============================================================
   African Traditional & Natural Medicine — Design Tokens
   Authoritative, Institutional, Human-Crafted Design System.
   Clean Leaf Green (Primary) & Radiant Warm Yellow (Secondary Accent).
   No unnecessary gradients, no floating pills, no multi-colour cards.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* ============================================================
     Brand Color Tokens
     Primary: #2E7D32 (Leaf Green - Authoritative & Botanical)
     Secondary / Accent: #F59E0B (Radiant Herbal Gold / Warm Yellow)
     ============================================================ */
  --atm-primary:          #2E7D32; /* Primary Brand: Leaf Green */
  --atm-primary-hover:    #1B5E20; /* Deep forest green */
  --atm-primary-soft:     #DCF2E1; /* Soft botanical leaf tint */
  --atm-primary-subtle:   #F3FAF4; /* Subtle light green background wash */

  --atm-secondary-accent: #F59E0B; /* Radiant Warm Yellow / Herbal Gold */
  --atm-accent:           #F59E0B; /* Accent CTA buttons, highlight banners */
  --atm-accent-hover:     #D97706; /* Deep honey amber on hover */
  --atm-accent-contrast:  #142610; /* High-contrast deep dark botanical text for 100% WCAG AAA readability */
  --atm-accent-subtle:    #FEF9E7; /* Warm golden cream background tint */

  /* Deep Botanical Midnight Foundations & Footers */
  --atm-navy-deep:        #0D2013; /* Primary Site Footer: Botanical Midnight Deep */
  --atm-navy-dark:        #142E1D; /* Deep Evergreen Container */
  --atm-navy-midnight:    #08140B; /* Deepest Botanical Midnight */

  --atm-orange-accent:    #E05D26; /* Terracotta Alert & Regulatory Stamp */
  --atm-orange-hover:     #C84915;

  --atm-surface-light:    #F6FAF6; /* Clean light botanical section background */
  --atm-surface-white:    #FFFFFF; /* Pure crisp white surface */
  --atm-border-input:     #BDDDBD; /* Muted herbal input borders */
  --atm-border-light:     #D8EAD9; /* Subtle divider lines and card borders */

  --atm-text-dark:        #162818; /* Headings, Titles, High-impact labels */
  --atm-text-body:        #2D3F30; /* Body paragraph copy, descriptions */
  --atm-text-muted:       #5F7563; /* Subheadings, meta details, dates, placeholders */
  --atm-text-footer:      #B7D9BD; /* Footer copyright & secondary links */
  --atm-white:            #FFFFFF;

  /* Typography */
  --font-display:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Restrained, Dignified Institutional Corner Radii (No Pills!) */
  --radius-xs:           4px;
  --radius-sm:           6px;
  --radius-md:           8px;  /* Standard crisp cards & containers */
  --radius-btn:          6px;  /* Clean, structured institutional buttons */
}

/* ============================================================
   Global Reset & Base Typography
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  color: var(--atm-text-body);
  background-color: var(--atm-surface-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  color: var(--atm-text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  color: var(--atm-text-body);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

a {
  color: var(--atm-primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--atm-primary-hover);
}

/* ============================================================
   Top Announcement Bar (Institutional Trust & Credentials)
   ============================================================ */
.top-announcement-bar {
  background-color: var(--atm-navy-deep);
  color: #FFFFFF;
  font-size: 0.8rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-announcement-bar a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.15s ease;
}

.top-announcement-bar a:hover {
  color: var(--atm-secondary-accent);
}

.top-badge-verified {
  background-color: rgba(245, 158, 11, 0.2);
  color: var(--atm-secondary-accent);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ============================================================
   Navbar & Sticky Header (Solid White, Clean Branding)
   ============================================================ */
.navbar {
  background-color: #FFFFFF !important;
  border-bottom: 1px solid var(--atm-border-light);
  padding-block: 0.85rem;
  z-index: 1030;
}

.navbar.sticky-top,
nav.sticky-top,
header.sticky-top {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  background-color: #FFFFFF !important;
  border-bottom: 1px solid var(--atm-border-light);
  box-shadow: 0 2px 8px rgba(13, 32, 19, 0.04) !important;
}

body.admin-bar .navbar.sticky-top,
body.admin-bar nav.sticky-top,
body.admin-bar header.sticky-top,
body.admin-bar .sticky-top {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .navbar.sticky-top,
  body.admin-bar nav.sticky-top,
  body.admin-bar header.sticky-top,
  body.admin-bar .sticky-top {
    top: 46px !important;
  }
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.site-brand-icon {
  width: 40px;
  height: 40px;
  background-color: var(--atm-primary-soft);
  color: var(--atm-primary);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--atm-text-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-main-subtitle {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--atm-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--atm-text-dark) !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease-in-out;
}

.nav-link:hover, .nav-link.active {
  color: var(--atm-primary) !important;
  background-color: var(--atm-primary-subtle);
}

.dropdown-menu {
  border: 1px solid var(--atm-border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(13, 32, 19, 0.08);
  padding: 0.5rem;
}

.dropdown-item {
  font-size: 0.9rem;
  color: var(--atm-text-dark);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-xs);
}

.dropdown-item:hover {
  background-color: var(--atm-surface-light);
  color: var(--atm-primary);
}

/* ============================================================
   Buttons (Refined Institutional Geometry, 6px Radius, No Pills)
   ============================================================ */
.btn {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-btn) !important;
  padding: 0.65rem 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
  box-shadow: none !important;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
}

/* Accent Yellow Button (Primary CTA: High contrast, authoritative) */
.btn-atm-lime,
.btn-atm-accent,
.btn-atm-yellow {
  background-color: var(--atm-secondary-accent);
  color: var(--atm-accent-contrast) !important;
  border: 1px solid #D97706 !important;
  font-weight: 700;
}

.btn-atm-lime:hover,
.btn-atm-accent:hover,
.btn-atm-yellow:hover {
  background-color: var(--atm-accent-hover);
  color: var(--atm-accent-contrast) !important;
  border-color: #B45309 !important;
  transform: translateY(-1px);
}

/* Primary Leaf Green Button */
.btn-atm-primary {
  background-color: var(--atm-primary);
  color: #FFFFFF !important;
  border: 1px solid var(--atm-primary-hover) !important;
}

.btn-atm-primary:hover {
  background-color: var(--atm-primary-hover);
  color: #FFFFFF !important;
  border-color: #0E331B !important;
  transform: translateY(-1px);
}

/* White Outline Button on Green Hero */
.btn-atm-outline-white {
  background-color: transparent;
  color: #FFFFFF !important;
  border: 1.5px solid #FFFFFF !important;
}

.btn-atm-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Primary Green Outline Button */
.btn-atm-outline {
  background-color: transparent;
  color: var(--atm-primary) !important;
  border: 1.5px solid var(--atm-primary) !important;
}

.btn-atm-outline:hover {
  background-color: var(--atm-primary-soft);
  color: var(--atm-primary-hover) !important;
  border-color: var(--atm-primary-hover) !important;
}

/* ============================================================
   Eyebrow / Section Tags (Discreet Typography, No Neon Pills)
   ============================================================ */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--atm-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-eyebrow-accent {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--atm-secondary-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.hero-tag-lime,
.hero-tag-accent {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--atm-secondary-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}

/* Clean Category Badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--atm-primary);
  background-color: var(--atm-primary-soft);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(46, 125, 50, 0.15);
}

/* ============================================================
   Hero Sections (Solid Institutional Leaf Green & Forest Midnight)
   ============================================================ */
.hero-atm-blue,
.hero-atm-green {
  background-color: var(--atm-primary);
  color: #FFFFFF;
  padding-block: clamp(3.5rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-atm-midnight {
  background-color: var(--atm-navy-deep);
  color: #FFFFFF;
  padding-block: clamp(3.5rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-lead-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 2rem;
}

/* Authentic Hero Image Presentation (Replaces AI widget boxes) */
.hero-image-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.1);
}

.hero-image-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

@media (max-width: 991px) {
  .hero-image-frame img {
    height: 260px;
  }
}

.hero-trust-box {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(2px);
}

.hero-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.hero-trust-item:last-child {
  margin-bottom: 0;
}

.hero-trust-icon {
  width: 32px;
  height: 32px;
  background-color: rgba(245, 158, 11, 0.2);
  color: var(--atm-secondary-accent);
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============================================================
   Sections & Alternating Backgrounds
   ============================================================ */
.section-white {
  background-color: var(--atm-surface-white);
  padding-block: clamp(3.5rem, 5.5vw, 5rem);
}

.section-light,
.section-light-blue,
.section-surface {
  background-color: var(--atm-surface-light);
  padding-block: clamp(3.5rem, 5.5vw, 5rem);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 700;
  color: var(--atm-text-dark);
  margin-bottom: 0.5rem;
}

.section-subheading {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--atm-text-muted);
  margin-bottom: 2.25rem;
  max-width: 720px;
}

/* ============================================================
   Card Elements (Crisp 1px Borders, Solid Surfaces, No Rainbows)
   ============================================================ */
.card-flat-white,
.card-flat-blue,
.card-flat-green,
.card-clean {
  background-color: #FFFFFF;
  border: 1px solid var(--atm-border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card-clean:hover,
.card-flat-green:hover,
.card-flat-blue:hover {
  border-color: var(--atm-primary);
  box-shadow: 0 4px 14px rgba(13, 32, 19, 0.06);
  transform: translateY(-2px);
}

.card-title-dark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--atm-text-dark);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.card-desc-muted {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--atm-text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-link-arrow {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--atm-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.card-link-arrow:hover {
  color: var(--atm-primary-hover);
  text-decoration: underline;
}

/* Solid Number Badge (Consistent Leaf Green) */
.atm-circle-badge {
  width: 34px;
  height: 34px;
  background-color: var(--atm-primary);
  color: #FFFFFF;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}

.atm-circle-badge-orange {
  width: 34px;
  height: 34px;
  background-color: var(--atm-secondary-accent);
  color: var(--atm-accent-contrast);
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}

/* Dual Gateway Cards on Home Page */
.gateway-card {
  background-color: #FFFFFF;
  border: 2px solid var(--atm-border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease-in-out;
}

.gateway-card:hover {
  border-color: var(--atm-primary);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.08);
}

.gateway-card.featured-association {
  border-color: #F59E0B;
  background-color: #FFFEFA;
}

.gateway-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--atm-primary);
  margin-bottom: 0.65rem;
}

/* ============================================================
   Data Tables (Fee Schedule, Curriculums, Compliance)
   ============================================================ */
.table-institutional {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--atm-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.table-institutional th {
  background-color: var(--atm-primary-soft);
  color: var(--atm-text-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--atm-border-light);
  text-align: left;
}

.table-institutional td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--atm-border-light);
  font-size: 0.92rem;
  color: var(--atm-text-body);
  background-color: #FFFFFF;
}

.table-institutional tr:last-child td {
  border-bottom: none;
}

.table-institutional tr:nth-child(even) td {
  background-color: #FBFDFB;
}

/* ============================================================
   Forms & Application Inputs
   ============================================================ */
.contact-form-card {
  background-color: #FFFFFF;
  border: 1px solid var(--atm-border-light);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: 0 4px 16px rgba(13, 32, 19, 0.04);
}

.form-label-custom {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--atm-text-dark);
  margin-bottom: 0.45rem;
  display: block;
}

.form-input-box {
  background-color: #FFFFFF;
  border: 1px solid var(--atm-border-input);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--atm-text-dark);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input-box:focus {
  outline: none;
  border-color: var(--atm-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15) !important;
}

select.form-input-box {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232E7D32' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 14px;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ============================================================
   Verification & Directory Components
   ============================================================ */
.directory-card {
  background-color: #FFFFFF;
  border: 1px solid var(--atm-border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  transition: all 0.2s ease;
}

.directory-card:hover {
  border-color: var(--atm-primary);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.08);
}

.directory-badge-active {
  background-color: var(--atm-primary-soft);
  color: var(--atm-primary-hover);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.directory-badge-pending {
  background-color: #FEF3C7;
  color: #92400E;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ============================================================
   Bottom Call-to-Action Strip (Solid Deep Midnight Forest)
   ============================================================ */
.cta-strip-atm,
.cta-strip-green {
  background-color: var(--atm-navy-deep);
  color: #FFFFFF;
  padding-block: clamp(3rem, 4.5vw, 4.25rem);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-strip-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.cta-strip-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
  max-width: 680px;
  margin-inline: auto;
}

/* ============================================================
   Site Footer (Solid Botanical Midnight, Warm Yellow Headers)
   ============================================================ */
.site-footer-africanmed {
  background-color: var(--atm-navy-deep);
  color: #FFFFFF;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-header {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--atm-secondary-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-col-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-col-links li {
  margin-bottom: 0.55rem;
}

.footer-col-links a, .footer-col-links span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  line-height: 1.55;
  transition: color 0.15s ease;
}

.footer-col-links a:hover {
  color: var(--atm-secondary-accent);
}

.footer-social-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-social-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-social-item i {
  color: var(--atm-secondary-accent);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

.footer-social-item:hover {
  color: var(--atm-secondary-accent);
  transform: translateX(2px);
}

.footer-copyright-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--atm-text-footer);
}

.footer-copyright-strip a {
  color: var(--atm-text-footer);
  margin-right: 1.25rem;
  text-decoration: none;
}

.footer-copyright-strip a:hover {
  color: #FFFFFF;
}

/* ============================================================
   Back to top floating button
   ============================================================ */
.btn-back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background-color: var(--atm-primary);
  color: #FFFFFF;
  border: 1px solid var(--atm-primary-hover);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 1000;
}

.btn-back-to-top:hover {
  background-color: var(--atm-primary-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Mobile Navbar Toggler
   ========================================================================== */
.africanmed-nav-toggler,
.navbar-toggler.africanmed-nav-toggler {
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: var(--radius-xs) !important;
  background-color: var(--atm-primary) !important;
  border: 1px solid var(--atm-primary-hover) !important;
  color: #FFFFFF !important;
  font-size: 1.45rem !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background-color 0.15s ease !important;
}

@media (min-width: 992px) {
  .africanmed-nav-toggler,
  .navbar-toggler.africanmed-nav-toggler {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .africanmed-nav-toggler,
  .navbar-toggler.africanmed-nav-toggler {
    display: inline-flex !important;
  }
}

.africanmed-nav-toggler:hover,
.africanmed-nav-toggler:focus {
  background-color: var(--atm-primary-hover) !important;
}

/* ==========================================================================
   Social Media Buttons (Top Bar, Footer, and Contact Page)
   ========================================================================== */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: var(--atm-secondary-accent);
  color: var(--atm-accent-contrast) !important;
  transform: translateY(-2px);
}

.social-icon-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--atm-primary-subtle);
  color: var(--atm-primary) !important;
  text-decoration: none;
  font-size: 1.25rem;
  border: 1px solid var(--atm-border-light);
  transition: all 0.2s ease;
}

.social-icon-btn-contact:hover {
  background: var(--atm-primary);
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(46, 125, 50, 0.25);
}

/* ==========================================================================
   Admin Managed Custom Brand Logos
   ========================================================================== */
.brand-logo-img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}


