/*
Theme Name: ASEA Theme V2
Theme URI: https://african-exchanges.org
Author: Custom
Description: Rebuilt custom theme for African Securities Exchanges Association (12 Pages, Editable Meta Boxes)
Version: 2.0
Text Domain: asea
*/

/* --- Tokens & Resets --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Oswald:wght@200..700&display=swap');

:root {
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Lato', sans-serif;
  --color-primary: #e2544c;
  --color-primary-hover: #ef6f68;
  --color-dark: #1c1e22;
  --color-darker: #101113;
  --color-text-main: #1c2733;
  --color-text-body: #3a3f47;
  --color-text-muted: #8a8f96;
  --color-text-light: #d9dadc;
  --color-border: #e6e9ee;
  --color-border-dark: #35373b;
  --color-bg-light: #f4f6f9;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text-main); background: #fff; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin: 0; }
p { line-height: 1.7; margin: 0 0 16px; }

/* --- Global Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.text-center { text-align: center; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

.section-title { font-size: 28px; font-weight: 700; color: var(--color-dark); margin: 0 0 8px; }
.section-divider { width: 44px; height: 3px; background: var(--color-primary); margin-bottom: 28px; }
.section-title.text-center + .section-divider { margin: 0 auto 40px; }

.section-kicker { color: var(--color-primary); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }

/* --- Topbar & Header --- */
.topbar { background: var(--color-darker); color: var(--color-text-light); font-size: 13px; padding: 8px 48px; display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap; }
.site-header { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); max-width: 1200px; z-index: 50; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.4); padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: none; transition: all 0.3s ease; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 45px; width: auto; transition: height 0.3s ease; }
.brand-text { color: #a9adb2; font-size: 11px; letter-spacing: 0.5px; line-height: 1.1; }

.main-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.main-nav a { color: #fff; font-family: var(--font-heading); font-size: 14px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--color-primary); text-decoration: none; }

.nav-dropdown-toggle { position: relative; cursor: pointer; }
.nav-dropdown-toggle > a, .nav-dropdown-toggle > span { color: #fff; font-family: var(--font-heading); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 5px; }
.nav-dropdown-toggle.active > a, .nav-dropdown-toggle.active > span { color: var(--color-primary); }
.nav-dropdown-menu { display: none; position: absolute; top: 26px; left: 0; background: rgba(0, 0, 0, 0.8); border: none; border-radius: 0; padding: 12px 0; min-width: 180px; z-index: 60; list-style: none; margin: 0; }
.nav-dropdown-toggle:hover .nav-dropdown-menu, .nav-dropdown-toggle.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: flex; align-items: center; padding: 10px 20px; font-size: 13px; color: #fff; text-transform: capitalize; font-weight: 500; }
.nav-dropdown-menu a::before { content: "•"; color: #fff; margin-right: 8px; font-size: 16px; line-height: 1; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; }

/* --- Footer --- */
.site-footer { width: 100%; background: #333539; padding: 64px 48px 24px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--color-border-dark); }
.footer-brand { margin-bottom: 16px; }
.footer-brand img { height: 130px; width: auto; }
.footer-blurb { color: #a9adb2; font-size: 14px; line-height: 1.7; max-width: 380px; margin: 0; }
.footer-heading { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #a9adb2; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact-info { display: flex; flex-direction: column; gap: 10px; color: #a9adb2; font-size: 14px; }
.footer-subscribe { display: flex; flex-direction: column; gap: 10px; }
.footer-subscribe input { padding: 12px 14px; border-radius: 4px; border: none; font-size: 14px; width: 100%; max-width: 250px; }
.footer-subscribe button { margin-top: 6px; background: var(--color-primary); color: #fff; border: none; border-radius: 24px; padding: 12px 0; font-size: 14px; font-weight: 700; cursor: pointer; width: 140px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--color-text-muted); font-size: 13px; }

/* Pagination */
.pagination { display:flex; justify-content:center; gap:10px; padding:0 48px 88px; max-width:1200px; margin:0 auto; }
.pagination .page-numbers { width:40px; height:40px; display:flex; align-items:center; justify-content:center; border:1px solid #e6e9ee; border-radius:4px; font-size:14px; font-weight:600; cursor:pointer; background:#fff; color:#1c2733; text-decoration:none; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background:#e2544c; color:#fff; }
.pagination .next, .pagination .prev { width:auto; padding:0 16px; }

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}
