/**
 * ==========================================================================
 * ACCR Modern Broadsheet Design System - Master Editorial Footer
 * Prestigious Deep Slate Navy Footer with Clean Multi-Column Directory
 * Inspired by Asharq Al-Awsat (aawsat.com) & International Think Tanks
 * ==========================================================================
 */

.footer_master_section,
.footer {
  width: 100%;
  background: var(--bg-surface-dark); /* Deep Slate Navy: #07182C */
  color: #ffffff;
  border-top: 3px solid var(--primary);
  padding: var(--space-4xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer_top_grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

/* 1. Multi-Column Category Links */
.footer_sitemap_cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer_col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer_col_title {
  font-family: var(--font-editorial);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: #ffffff;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: var(--space-xs);
  position: relative;
}

.footer_col_title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--accent-gold);
}

.footer_col_title a {
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer_col_title a:hover {
  color: #93c5fd;
}

.footer_links_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer_links_list li a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #cbd5e1;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer_links_list li a:hover {
  color: #ffffff;
  padding-right: 4px;
}

/* 2. Newsletter Subscription Box */
.footer_newsletter_wrap {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  height: fit-content;
}

.newsletter_title {
  font-family: var(--font-editorial);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: #ffffff;
  margin-bottom: 6px;
}

.newsletter_desc {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: #94a3b8;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}

.news_letter {
  display: flex;
  gap: 8px;
}

.news_letter_input_wrap {
  flex: 1;
}

.loginbox {
  width: 100%;
  height: 42px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #ffffff;
  outline: none;
  transition: all var(--transition-fast);
}

.loginbox::placeholder {
  color: #94a3b8;
}

.loginbox:focus {
  background: #ffffff;
  color: var(--text-ink);
  border-color: #ffffff;
}

.loginbox:focus::placeholder {
  color: var(--text-muted);
}

.btn_newsletter {
  height: 42px;
  padding: 0 20px;
  background: #ffffff;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: var(--fw-bold);
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn_newsletter:hover {
  background: var(--accent-gold);
  color: #ffffff;
}

/* 3. Bottom Real Footer & Legal */
.real_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-ui);
  font-size: 12px;
  color: #94a3b8;
}

.real_footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.real_footer a:hover {
  color: #ffffff;
}

.real_footer_right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.real_footer_left {
  text-align: left;
}

/* ==========================================================================
 * Responsive Breakpoints
 * ========================================================================== */
@media (max-width: 991px) {
  .footer_top_grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer_sitemap_cols {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .real_footer {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .real_footer_right {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .footer_sitemap_cols {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .news_letter {
    flex-direction: column;
  }

  .btn_newsletter {
    width: 100%;
  }
}
