/* FHC DNN Theme - Bootstrap Compatible Styles */
/* All selectors are scoped to prevent Bootstrap conflicts */

.fhc-home-root {
  --fhc-primary: #1e40af;
  --fhc-primary-dark: #1e3a8a;
  --fhc-success: #059669;
  --fhc-success-hover: #047857;
  --fhc-accent: #10b981;
  --fhc-text-dark: #1e293b;
  --fhc-text-light: #475569;
  --fhc-border-light: #e2e8f0;
  --fhc-bg-light: #f8fafc;
  --fhc-bg-lighter: #f1f5f9;
}

.fhc-home-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--fhc-text-dark);
  background-color: #ffffff;
}

/* Scoped reset to prevent Bootstrap conflicts */
.fhc-home-root,
.fhc-home-root * {
  box-sizing: border-box;
}

/* Top Bar Styling */
.fhc-home-root .top-bar {
  background: linear-gradient(135deg, var(--fhc-primary-dark) 0%, var(--fhc-primary) 100%);
  color: #fff;
  padding: 8px 24px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

.fhc-home-root .top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.fhc-home-root .top-bar-left,
.fhc-home-root .top-bar-right {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.fhc-home-root .top-bar-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}

.fhc-home-root .top-bar-link:hover {
  color: var(--fhc-accent);
}

/* Header Styling */
.fhc-home-root .header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
  margin: 0;
}

.fhc-home-root .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 60px;
  max-width: 100%;
  margin: 0 auto;
}

.fhc-home-root .logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  transition: background-color 0.2s;
  border: none;
  font-size: inherit;
  color: inherit;
  margin: 0;
}

.fhc-home-root .logo-block:hover {
  background-color: var(--fhc-bg-light);
}

.fhc-home-root .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: none;
}

.fhc-home-root .logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--fhc-primary);
  letter-spacing: -0.5px;
  margin: 0;
}

.fhc-home-root .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--fhc-text-dark);
  padding: 8px;
  margin: 0;
}

/* Navigation Styling - Scoped to prevent Bootstrap conflicts */
.fhc-home-root #mainNav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.fhc-home-root .main-nav {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.fhc-home-root .main-nav > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.fhc-home-root .main-nav > li > a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--fhc-text-dark);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
  background: none;
  border: none;
  margin: 0;
}

.fhc-home-root .main-nav > li > a:hover {
  color: var(--fhc-success);
  background-color: #f0fdf4;
}

.fhc-home-root .main-nav > li > a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--fhc-success);
}

/* Dropdown menu - heavily scoped to override Bootstrap */
.fhc-home-root .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff !important;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  border-radius: 8px;
  padding: 8px;
  margin-top: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 1000;
  border: 1px solid var(--fhc-border-light) !important;
  display: block !important;
}

.fhc-home-root .main-nav > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fhc-home-root .dropdown-menu > li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.fhc-home-root .dropdown-menu > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--fhc-text-light);
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s;
  background: none;
  border: none;
  margin: 0;
}

.fhc-home-root .dropdown-menu > li > a:hover {
  background-color: #f0fdf4;
  color: var(--fhc-success);
  padding-left: 18px;
}

/* Header Actions */
.fhc-home-root .header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.fhc-home-root .btn-secondary,
.fhc-home-root .btn-primary {
  padding: 8px 18px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  margin: 0;
}

.fhc-home-root .btn-secondary {
  background-color: var(--fhc-bg-lighter);
  color: var(--fhc-primary);
  border: 1px solid var(--fhc-border-light);
}

.fhc-home-root .btn-secondary:hover {
  background-color: var(--fhc-border-light);
  border-color: #cbd5e1;
}

.fhc-home-root .btn-primary {
  background-color: var(--fhc-success);
  color: #ffffff;
  border: 1px solid var(--fhc-success);
}

.fhc-home-root .btn-primary:hover {
  background-color: var(--fhc-success-hover);
  border-color: var(--fhc-success-hover);
}

/* Hero Slider */
.fhc-home-root .hero-slider {
  position: relative;
  overflow: hidden;
  height: 350px;
  margin: 0;
  padding: 0;
}

.fhc-home-root .slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s;
  margin: 0;
  padding: 0;
}

.fhc-home-root .slide.active {
  opacity: 1;
}

.fhc-home-root .slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
}

.fhc-home-root .slide-inner {
  max-width: 800px;
  padding: 0 24px;
  margin: 0;
}

.fhc-home-root .slide-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
  line-height: 1.2;
}

.fhc-home-root .slide-desc {
  font-size: 18px;
  margin-bottom: 24px;
  margin-top: 0;
  line-height: 1.6;
  opacity: 0.95;
}

.fhc-home-root .slide-cta {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--fhc-success);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  margin: 0;
}

.fhc-home-root .slide-cta:hover {
  background-color: var(--fhc-success-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.fhc-home-root .slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  margin: 0;
  padding: 0;
}

.fhc-home-root .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  margin: 0;
  padding: 0;
  display: block;
}

.fhc-home-root .dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.fhc-home-root .dot.active {
  background-color: var(--fhc-success);
  border-color: #ffffff;
}

/* Sections */
.fhc-home-root .section-block {
  padding: 80px 24px;
  width: 100%;
  margin: 0;
}

.fhc-home-root .features-section {
  padding-top: 0;
  padding-bottom: 40px;
}

.fhc-home-root .pane-block {
  margin: 0;
  padding: 0;
}

/* Footer Styling */
.fhc-home-root .footer {
  background: linear-gradient(135deg, var(--fhc-primary-dark) 0%, var(--fhc-primary) 100%);
  color: #ffffff;
  padding: 60px 24px 24px;
  margin: 0;
}

.fhc-home-root .footer-wrap {
  max-width: 100%;
  margin: 0 auto;
}

.fhc-home-root .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.fhc-home-root .footer-brand-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
  color: #ffffff;
}

.fhc-home-root .footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 400px;
  margin: 0;
}

.fhc-home-root .footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  margin-top: 0;
  color: #ffffff;
}

.fhc-home-root .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fhc-home-root .footer-links li {
  margin-bottom: 10px;
  margin-top: 0;
  list-style: none;
  padding: 0;
}

.fhc-home-root .footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-block;
  border: none;
  background: none;
  margin: 0;
  padding: 0;
}

.fhc-home-root .footer-link:hover {
  color: var(--fhc-accent);
  padding-left: 4px;
}

.fhc-home-root .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.fhc-home-root .footer-social {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.fhc-home-root .social-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.fhc-home-root .social-chip:hover {
  background-color: var(--fhc-accent);
  transform: translateY(-2px);
}

/* Added payment partners section styling */
.fhc-home-root .payment-partners-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fhc-home-root .payment-partners-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 24px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fhc-home-root .payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.fhc-home-root .payment-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.fhc-home-root .payment-logo-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.fhc-home-root .payment-logo-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
  max-width: 120px;
}

/* Mobile Overlay */
.fhc-home-root .mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  margin: 0;
  padding: 0;
}

.fhc-home-root .mobile-overlay.active {
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .fhc-home-root .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Payment logos responsive for tablets */
  .fhc-home-root .payment-logos {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .fhc-home-root .mobile-menu-toggle {
    display: block;
  }

  .fhc-home-root #mainNav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: calc(100vh - 60px);
    background-color: #ffffff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
    padding: 16px;
    border: none;
  }

  .fhc-home-root #mainNav.mobile-open {
    display: block;
  }

  .fhc-home-root .main-nav {
    flex-direction: column;
    gap: 8px;
  }

  .fhc-home-root .main-nav > li {
    width: 100%;
  }

  .fhc-home-root .main-nav > li > a {
    padding: 12px 16px;
    font-size: 15px;
  }

  .fhc-home-root .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    margin-top: 8px;
    padding-left: 16px;
    display: none;
  }

  .fhc-home-root .mobile-submenu-open .dropdown-menu {
    display: block;
  }

  .fhc-home-root .header-actions {
    display: none;
  }

  .fhc-home-root .slide-title {
    font-size: 28px;
  }

  .fhc-home-root .slide-desc {
    font-size: 16px;
  }

  .fhc-home-root .section-block {
    padding: 40px 16px;
  }

  .fhc-home-root .footer {
    padding: 40px 16px 16px;
  }

  .fhc-home-root .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fhc-home-root .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Payment logos stack on mobile */
  .fhc-home-root .payment-logos {
    gap: 12px;
  }

  .fhc-home-root .payment-logo-item {
    flex: 1;
    min-width: 80px;
  }
}

@media (max-width: 640px) {
  .fhc-home-root .top-bar-left,
  .fhc-home-root .top-bar-right {
    gap: 12px;
    font-size: 12px;
  }

  .fhc-home-root .slide-title {
    font-size: 24px;
  }

  .fhc-home-root .slide-desc {
    font-size: 14px;
  }

  /* Payment logos even smaller on small phones */
  .fhc-home-root .payment-logo-item {
    padding: 8px;
    min-width: 70px;
  }

  .fhc-home-root .payment-logo-item img {
    height: 32px;
  }

  .fhc-home-root .payment-partners-title {
    font-size: 14px;
  }
}

/* About Page Specific Styles */
.fhc-home-root .about-hero {
  background: linear-gradient(135deg, var(--fhc-primary-dark) 0%, var(--fhc-primary) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%231e40af" width="1200" height="400"/><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="1200" height="400" fill="url(%23grid)"/></svg>');
  background-size: cover;
  background-position: center;
  padding: 100px 24px;
  text-align: center;
  position: relative;
  margin: 0;
}

.fhc-home-root .about-hero-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.fhc-home-root .about-hero-content {
  max-width: 800px;
  color: #ffffff;
  margin: 0;
}

.fhc-home-root .about-hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
  line-height: 1.2;
}

.fhc-home-root .about-hero-desc {
  font-size: 20px;
  opacity: 0.95;
  margin: 0;
}

.fhc-home-root .about-section {
  background-color: var(--fhc-bg-lighter);
}

.fhc-home-root .about-container {
  max-width: 900px;
  margin: 0 auto;
}

.fhc-home-root .about-intro h2 {
  font-size: 36px;
  color: var(--fhc-primary);
  margin-bottom: 24px;
  margin-top: 0;
  font-weight: 700;
}

.fhc-home-root .about-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fhc-text-light);
  margin: 0;
}

.fhc-home-root .values-section {
  background-color: #ffffff;
}

.fhc-home-root .values-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.fhc-home-root .value-card {
  background-color: var(--fhc-bg-lighter);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--fhc-border-light);
  transition: all 0.3s ease;
  text-align: center;
  margin: 0;
}

.fhc-home-root .value-card:hover {
  border-color: var(--fhc-success);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.1);
  transform: translateY(-4px);
}

.fhc-home-root .value-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  margin-top: 0;
}

.fhc-home-root .value-card h3 {
  font-size: 24px;
  color: var(--fhc-primary);
  margin-bottom: 16px;
  margin-top: 0;
  font-weight: 700;
}

.fhc-home-root .value-amharic {
  font-size: 14px;
  color: var(--fhc-primary);
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 0;
  font-style: italic;
}

.fhc-home-root .value-card p {
  font-size: 15px;
  color: var(--fhc-text-light);
  line-height: 1.6;
  margin: 0;
}

.fhc-home-root .values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.fhc-home-root .values-list li {
  font-size: 14px;
  color: var(--fhc-text-light);
  margin-bottom: 12px;
  margin-top: 0;
  padding-left: 24px;
  position: relative;
  list-style: none;
}

.fhc-home-root .values-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--fhc-success);
  font-weight: bold;
}

.fhc-home-root .content-area {
  background-color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive About Page Styles */
@media (max-width: 768px) {
  .fhc-home-root .about-hero {
    padding: 60px 16px;
  }

  .fhc-home-root .about-hero-title {
    font-size: 32px;
  }

  .fhc-home-root .about-hero-desc {
    font-size: 16px;
  }

  .fhc-home-root .about-intro h2 {
    font-size: 28px;
  }

  .fhc-home-root .values-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fhc-home-root .value-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .fhc-home-root .about-hero-title {
    font-size: 24px;
  }

  .fhc-home-root .about-hero-desc {
    font-size: 14px;
  }

  .fhc-home-root .about-intro h2 {
    font-size: 24px;
  }

  .fhc-home-root .value-icon {
    font-size: 36px;
  }

  .fhc-home-root .value-card h3 {
    font-size: 20px;
  }
}
