/* ============================================
   eWaraqa Theme - Light & Dark Mode
   Color System:
   Primary: #D1246B (crimson/pink)
   Dark Navy: #1a1f3a
   Light bg: #f8f9fa
   ============================================ */

:root {
  --primary: #D1246B;
  --primary-light: #e8457e;
  --primary-dark: #a81d56;
  --primary-bg: rgba(209, 36, 107, 0.08);
  --navy: #1a1f3a;
  --navy-light: #2d3561;

  /* Light mode */
  --bg: #ffffff;
  --bg-secondary: #f8f9fc;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,0.95);
  --text: #1a1f3a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(26, 31, 58, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 31, 58, 0.12);
  --nav-link: #374151;
  --stat-bg: rgba(255,255,255,0.12);
  --icon-bg: rgba(209, 36, 107, 0.1);

  /* Publishers carousel */
  --pub-bg: #0a0a0a;
  --pub-card-bg: #161616;
  --pub-card-border: #2a2a2a;
  --pub-card-border-hover: #444444;
  --pub-text: #999999;
}

[data-theme="dark"] {
 
--bg: #0F1117;
  --bg-secondary: #151A23;
  --bg-card: #151A23;
  --bg-nav: rgba(15, 17, 23, 0.92);

  --text: #E8ECF3;
  --text-secondary: #A7B0BE;
  --text-muted: #7E8796;

  --border: #2A3242;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.50);

  /* brand behavior in dark mode */
  --primary: #C93472;
  --primary-light: #E24C87;  /* hover / links / highlights */
  --primary-dark: #A81D56;
  --primary-bg: rgba(201, 52, 114, 0.14); /* soft tinted background */

}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.section-title span { color: var(--primary); }

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}

/* ============================================
   Navbar
   ============================================ */
.ew-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.ew-nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { 
  height: 46px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* ==========================
   LOGO LIGHT / DARK SWITCH
   ========================== */

/* Default → Light mode */
.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

/* Dark mode */
[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}


@media (max-width: 768px) {
  .nav-logo img {
    height: 40px;
    max-width: 150px;
  }

}


.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--nav-link);
  padding: 8px 14px; border-radius: 8px; transition: all 0.2s ease;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-bg); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--bg-card);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; color: var(--text-secondary); font-size: 18px; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 600; border-radius: 24px;
  border: none; cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.btn-cta:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(209,36,107,0.3); color: #fff; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }

/* ============================================
   Hero Section
   ============================================ */
.ew-hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/about/welcome-banner.jpg') center/cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,31,58,0.55) 0%, rgba(15,10,20,0.45) 50%, rgba(26,31,58,0.6) 100%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  padding: 80px 24px 40px; max-width: 820px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px; color: #fff; font-size: 13px; font-weight: 500; margin-bottom: 32px;
}
.hero-badge svg { color: var(--primary); flex-shrink: 0; }
.hero-title { font-size: clamp(42px,7vw,80px); font-weight: 800; color: #ffffff; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.hero-title span { color: var(--primary); }
.hero-desc { font-size: clamp(15px,2vw,18px); color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-desc strong { color: var(--primary); font-weight: 600; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 600; border-radius: 32px;
  border: none; cursor: pointer; transition: all 0.25s ease;
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(209,36,107,0.4); color: #fff; }

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1); width: 100%; margin-top: auto;
}
.stat-item { padding: 28px 24px; text-align: center; background: rgba(255,255,255,0.06); backdrop-filter: blur(8px); transition: background 0.2s; }
.stat-item:hover { background: rgba(255,255,255,0.1); }
.stat-number { font-size: clamp(28px,4vw,40px); font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; font-weight: 400; }

.scroll-indicator {
  position: absolute; bottom: 140px; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5); font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity:0.5; transform:scaleY(1); } 50% { opacity:1; transform:scaleY(1.2); } }

/* ============================================
   About Section
   ============================================ */
.ew-about { padding: 100px 0; background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image-wrap { position: relative; }
.about-img { width: 100%; height: 500px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-badge-card {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 28px; box-shadow: var(--shadow-lg);
  text-align: center; min-width: 160px;
}
.about-badge-num { font-size: 32px; font-weight: 800; color: var(--primary); }
.about-badge-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); margin-top: 4px; }
.about-text .section-title { margin-bottom: 20px; line-height: 1.25; }
.about-text .section-desc { margin-bottom: 40px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: all 0.2s ease; }
.about-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(209,36,107,0.1); transform: translateY(-2px); }
.about-card-icon { width: 44px; height: 44px; background: var(--icon-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 14px; font-size: 20px; }
.about-card h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.about-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   Services Section
   ============================================ */
.ew-services { padding: 100px 0; background: var(--bg-secondary); }
.services-header { text-align: center; margin-bottom: 60px; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(209,36,107,0.2); }
.service-img { width: 100%; height: 200px; object-fit: cover; }
.service-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-icon { width: 52px; height: 52px; background: var(--primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; margin-bottom: 20px; flex-shrink: 0; }
.service-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.service-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.service-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; flex: 1; margin-bottom: 20px; }

/* ============================================
   Publishers — Infinite Scroll Carousel
   ============================================ */
.ew-publishers {
  padding: 80px 0;
  background: var(--pub-bg);
  overflow: hidden;
}

.publishers-header {
  text-align: center;
  margin-bottom: 52px;
  padding: 0 24px;
}

/* Override section-label and section-title colors for dark bg */
.ew-publishers .section-label { color: var(--primary); }
.ew-publishers .section-title { color: #f1f5f9; }
.ew-publishers .section-title span { color: var(--primary); }

.pub-carousel-wrap {
  position: relative;
  overflow: hidden;
}

/* Edge fade masks */
.pub-fade-left,
.pub-fade-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.pub-fade-left  { left:  0; background: linear-gradient(to right, var(--pub-bg), transparent); }
.pub-fade-right { right: 0; background: linear-gradient(to left,  var(--pub-bg), transparent); }

.pub-track-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

/* Scrolling rows */
.pub-row {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: pub-scroll-left 30s linear infinite;
}
.pub-row-reverse {
  animation: pub-scroll-right 36s linear infinite;
}
.pub-row:hover,
.pub-row-reverse:hover {
  animation-play-state: paused;
}

@keyframes pub-scroll-left  { from { transform: translateX(0);    } to { transform: translateX(-50%); } }
@keyframes pub-scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0);    } }

/* Base card */
.pub-card {
  flex-shrink: 0;
  width: 180px;
  height: 110px;
  background: white;
  border: 0.5px solid var(--pub-card-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: border-color 0.25s ease;
  cursor: default;
  overflow: hidden;
}
.pub-card:hover { border-color: var(--pub-card-border-hover); }

.pub-card img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.pub-card:hover img { opacity: 0.9; filter: grayscale(40%); }

/* Featured card (wider, logo + caption) */
.pub-card-featured {
  width: 280px;
  gap: 14px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
.pub-card-featured img {
  width: 56px;
  height: 56px;
  max-height: 56px;
  flex-shrink: 0;
  object-fit: contain;
}
.pub-card-featured p {
  font-size: 12px;
  color: var(--pub-text);
  line-height: 1.45;
}

/* ============================================
   Clients Section
   ============================================ */
.ew-clients { padding: 100px 0; background: var(--bg-secondary); }
.clients-header { text-align: center; margin-bottom: 60px; }
.clients-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.client-cell { display: flex; align-items: center; justify-content: center; padding: 40px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-card); transition: all 0.3s ease; position: relative; overflow: hidden; }
.client-cell:nth-child(4n) { border-right: none; }
.client-cell:nth-last-child(-n+4) { border-bottom: none; }
.client-cell:hover { background: var(--primary-bg); }
.client-cell:hover .client-logo { filter: grayscale(0%); opacity: 1; }
.client-logo { max-width: 130px; max-height: 60px; object-fit: contain; filter: grayscale(80%); opacity: 0.65; transition: all 0.3s ease; }
.clients-cta { text-align: center; margin-top: 40px; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border: 1.5px solid var(--primary); color: var(--primary); font-size: 14px; font-weight: 600; border-radius: 24px; transition: all 0.2s ease; }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(209,36,107,0.25); }

/* ============================================
   Events Section
   ============================================ */
.ew-events { padding: 100px 0; background: var(--bg); }
.events-header { text-align: center; margin-bottom: 60px; }
.events-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.event-item { display: grid; grid-template-columns: 100px 1fr; gap: 24px; align-items: center; padding: 24px 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; transition: all 0.2s ease; }
.event-item:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: var(--shadow); }
.event-date { text-align: center; }
.event-date .day { font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1; }
.event-date .month-year { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.event-info h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.event-info p { font-size: 13px; color: var(--text-secondary); }

/* ============================================
   Contact Section
   ============================================ */
.ew-contact { padding: 100px 0; background: var(--bg-secondary); }
.contact-header { text-align: center; margin-bottom: 60px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-form-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.form-control { width: 100%; padding: 12px 16px; background: var(--bg-secondary); border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--text); font-family: 'Poppins', sans-serif; transition: border-color 0.2s ease; outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(209,36,107,0.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
.contact-info-wrap { padding-top: 8px; }
.contact-info-wrap .section-title { margin-bottom: 12px; }
.contact-info-wrap .section-desc { margin-bottom: 32px; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-icon { width: 44px; height: 44px; background: var(--icon-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; flex-shrink: 0; }
.contact-info-text h5 { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.contact-info-text p { font-size: 14px; color: var(--text); line-height: 1.5; }
.social-links { display: flex; gap: 12px; margin-top: 32px; }
.social-link { width: 44px; height: 44px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 18px; transition: all 0.2s ease; }
.social-link:hover { border-color: var(--primary); color: var(--primary); background: var(--icon-bg); }
#form-status { margin-top: 12px; font-size: 14px; color: var(--primary); text-align: center; }

/* ============================================
   Footer
   ============================================ */
.ew-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 24px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.5); }
.scroll-top-btn { width: 40px; height: 40px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; cursor: pointer; transition: all 0.2s ease; border: none; }
.scroll-top-btn:hover { background: var(--primary-light); transform: translateY(-2px); }
.footer-sitemap { margin-top: 24px; text-align: center; }
.footer-sitemap h4 { font-size: 16px; margin-bottom: 12px; font-weight: 600; color: rgba(255,255,255,0.7); }
.footer-sitemap ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
.footer-sitemap a { color: rgba(255,255,255,0.45); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.footer-sitemap a:hover { color: var(--primary); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .about-grid { gap: 48px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .clients-grid { grid-template-columns: repeat(3,1fr); }
  .clients-grid .client-cell:nth-child(3n) { border-right: none; }
  .clients-grid .client-cell:nth-child(4n) { border-right: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-nav); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px; backdrop-filter: blur(12px); z-index: 999; }
  .btn-cta { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge-card { right: 0; bottom: -16px; }
  .services-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2,1fr); }
  .clients-grid .client-cell:nth-child(2n) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .about-cards { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 80px 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }

  /* Publishers on mobile: single row, smaller cards */
  .pub-fade-left,
  .pub-fade-right { width: 48px; }
  .pub-card { width: 140px; height: 90px; }
  .pub-card-featured { width: 220px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .clients-grid { grid-template-columns: repeat(2,1fr); }
}
/* ============================================
   PUBLISHER GRID - Equal size logos
   ============================================ */
.profiles-content {
  max-width: 1200px;
  margin: 0 auto;
}

.profiles-content .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.profiles-content .col-sm-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 15px;
  box-sizing: border-box;
}

.single-profile {
  background: #fff;
  border-radius: 12px;
  padding: 35px 30px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.single-profile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.profile-txt {
  display: flex;
  align-items: center;
  justify-content: center;
}

.publisher-logo {
  max-width: 280px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.single-profile-overlay {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #C93572, #8B1A4A);
  color: #fff;
  padding: 12px;
  border-radius: 0 0 12px 12px;
}

.single-profile:hover .single-profile-overlay {
  display: block;
}

.profile-no-border {
  border: none;
}

.profile-border {
  width: 100%;
  height: 1px;
  background: #eee;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .profiles-content .col-sm-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .single-profile {
    min-height: 160px;
    padding: 20px 15px;
  }
  .publisher-logo {
    max-width: 200px;
    max-height: 100px;
  }
}

@media (max-width: 480px) {
  .profiles-content .col-sm-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ============================================
   VIEW ALL PUBLISHERS BUTTON
   ============================================ */
.btn-view-all {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #C93572, #8B1A4A);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 53, 114, 0.3);
}

.btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 53, 114, 0.4);
  color: #fff;
}

.publishers-header {
  text-align: center;
  margin-bottom: 40px;
}

/* ============================================================
   eWaraqa Journals Mobile/iPad Filter HOTFIX v3
   Purpose:
   - make the filter sheet scroll reliably on mobile and iPad
   - keep Clear All / close / Show Results clickable
   Load AFTER assets/css/theme.css
============================================================ */
@media (max-width: 1024px) {
  html.mobile-filter-lock,
  body.mobile-filter-open {
    overflow: hidden !important;
  }

  body.mobile-filter-open {
    position: static !important;
    height: auto !important;
    width: auto !important;
  }

  .mobile-filter-overlay {
    z-index: 9998 !important;
  }

  .mobile-filter-overlay.open {
    pointer-events: auto !important;
  }

  aside.sidebar.mobile-open {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: 88vh !important;
    height: 88dvh !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto !important;
    touch-action: auto !important;
  }

  aside.sidebar.mobile-open .sidebar-header {
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 3 !important;
    pointer-events: auto !important;
  }

  aside.sidebar.mobile-open .sidebar-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    pointer-events: auto !important;
    padding-bottom: 24px !important;
  }

  aside.sidebar.mobile-open .filter-options {
    max-height: none !important;
    overflow: visible !important;
  }

  aside.sidebar.mobile-open .filter-clear,
  aside.sidebar.mobile-open .mobile-filter-close,
  aside.sidebar.mobile-open .mobile-filter-footer,
  aside.sidebar.mobile-open .mobile-filter-footer button,
  aside.sidebar.mobile-open label.filter-option,
  aside.sidebar.mobile-open .filter-option,
  aside.sidebar.mobile-open .filter-option span {
    position: relative !important;
    z-index: 4 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  aside.sidebar.mobile-open .filter-clear,
  aside.sidebar.mobile-open .mobile-filter-close {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  aside.sidebar.mobile-open .mobile-filter-footer {
    flex: 0 0 auto !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-left: -18px !important;
    margin-right: -18px !important;
    background: var(--bg-dark) !important;
  }
}


/* ============================================================
   iPad / Tablet Hamburger Menu Enhancement
   Applies the mobile hamburger navigation up to 1024px.
============================================================ */
@media (max-width: 1024px) {
  .ew-nav .nav-links {
    display: none;
  }

  .ew-nav .nav-hamburger {
    display: flex;
  }

  .ew-nav .btn-cta {
    display: none;
  }

  .ew-nav .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    box-shadow: var(--shadow);
  }

  .ew-nav .nav-links.open li,
  .ew-nav .nav-links.open a {
    width: 100%;
  }

  .ew-nav .nav-links.open a {
    display: block;
    padding: 12px 14px;
  }
}

/* ============================================================
   NAV LOGO LIGHT/DARK FIX — prevents double-logo + menu overlap
   Reason: two stacked logo images need reserved navbar width.
============================================================ */
.nav-logo {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 220px !important;
  width: 220px !important;
  max-width: 220px !important;
  height: 46px !important;
  gap: 0 !important;
  overflow: visible !important;
}

.nav-logo img {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 46px !important;
  width: auto !important;
  max-width: 210px !important;
  object-fit: contain !important;
  display: block !important;
  transition: opacity 0.2s ease !important;
}

/* Light mode: show light logo only */
.nav-logo .logo-light {
  opacity: 1 !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.nav-logo .logo-dark {
  opacity: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Dark mode: show dark logo only */
[data-theme="dark"] .nav-logo .logo-light {
  opacity: 0 !important;
}

[data-theme="dark"] .nav-logo .logo-dark {
  opacity: 1 !important;
}

@media (max-width: 1024px) {
  .nav-logo {
    flex: 0 0 180px !important;
    width: 180px !important;
    max-width: 180px !important;
  }

  .nav-logo img {
    max-width: 170px !important;
  }
}

@media (max-width: 768px) {
  .nav-logo {
    flex: 0 0 155px !important;
    width: 155px !important;
    max-width: 155px !important;
    height: 40px !important;
  }

  .nav-logo img {
    height: 40px !important;
    max-width: 150px !important;
  }
}


/* ============================================================
   Audit fixes: accessibility, footer consistency, modal focus
============================================================ */
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}.skip-link:focus{left:16px;top:16px;width:auto;height:auto;z-index:9999;padding:10px 14px;border-radius:8px;background:var(--primary,#d1246b);color:#fff;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--primary,#d1246b);outline-offset:3px}
.single-profile:focus-within{transform:translateY(-4px);box-shadow:0 8px 25px rgba(0,0,0,0.12)}
.single-profile:focus-within .single-profile-overlay{display:block}
.single-profile a{outline-offset:6px}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
  .pub-row,.pub-row-reverse{animation:none!important;transform:none!important}
}
.zoho-form-modal.is-open .zoho-form-modal-dialog{outline:none}
.footer-sitemap nav,.footer-sitemap ul{list-style:none}
