/*
Theme Name: Ekalavya Hansaj Global Network
Theme URI: https://hansajekalavya.com
Author: Global media baron Ekalavya Hansaj
Author URI: https://hansajekalavya.com
Description: Brutalist investigative news network theme for the global news network of investigative outlets owned by global media baron Ekalavya Hansaj.
Version: 3.3
Text Domain: ekalavya-global-network
*/

/* ---------- GLOBAL BASE ---------- */

html, body {
  height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #e5e5e5;
  color: #000;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Scale body text slightly on large / small */
@media (min-width: 1200px) {
  body { font-size: 18px; }
}
@media (max-width: 900px) {
  body { font-size: 15px; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
}

/* Text spacing */
p {
  margin: 0 0 1.2em;
  line-height: 1.7;
}

/* Headings */
h1 {
  font-size: 2.4rem;
  margin: 0 0 0.6em;
}
h2 {
  font-size: 2rem;
  margin: 1.2em 0 0.6em;
}
h3 {
  font-size: 1.6rem;
  margin: 1em 0 0.5em;
}
h4 {
  font-size: 1.3rem;
  margin: 0.8em 0 0.4em;
}

/* Shared font */
.display-font,
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}

/* ---------- NAV / MENUS (NO BULLETS) ---------- */

.top-bar ul,
.top-bar li,
.site-footer-main ul,
.site-footer-main li,
.primary-nav ul,
.primary-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* TOP BAR: horizontal menu */
.top-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}
.top-bar li {
  display: inline-block;
}
.top-bar a {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
}

/* ---------- ANNOUNCER BAR ---------- */

.announcer {
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.announcer-right-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Announcer right links */
.announcer-links {
  white-space: nowrap;
}
.announcer-links a {
  margin-left: 12px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
}
.announcer-links a:first-child {
  margin-left: 0;
}
.announcer-links a:hover {
  text-decoration: underline;
}

/* ---------- AUTHOR MENU (HEADER NAV) ---------- */

.ehgn-author-menu {
  position: relative;
  margin-left: 8px;
}
.ehgn-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #ffffff;
  color: #000;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.ehgn-author-dropdown {
  position: absolute;
  right: 0;
  top: 110%;
  background: #ffffff;
  color: #000;
  border: 2px solid #000;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 9999;
  display: block;
}
.ehgn-author-menu.ehgn-author-menu--open .ehgn-author-dropdown {
  opacity: 1;
  pointer-events: auto;
}
.ehgn-author-dropdown a {
  display: block;
  padding: 6px 10px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.ehgn-author-dropdown a:hover {
  background: #000;
  color: #fff;
}

/* ---------- TOP BAR & PRIMARY NAV ---------- */

.top-bar {
  border-bottom: 2px solid #000;
  padding: 10px 15px;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
}

/* Primary nav */
.primary-nav {
  border-bottom: 4px solid #000;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: stretch;
  background-color: #fff;
}

/* Logo area */
.site-logo-wrapper {
  width: 300px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 300px;
  background: #000;
  color: #fff;
}
.site-logo-wrapper img {
  max-height: 80px;
  width: auto;
  height: auto;
}

/* Menu container next to logo */
.primary-nav-menu {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
}

/* Actual menu list */
.primary-nav-menu ul {
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
}
.primary-nav-menu li {
  margin: 0;
  padding: 0;
}

/* Base style for ALL top nav links (regular + CTA) */
.primary-nav-menu a,
.nav-item-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 96px;
  text-transform: uppercase;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  text-decoration: none;
  color: #000;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  border: none;
}

/* Hover */
.primary-nav-menu a:hover {
  background: #000;
  color: #fff;
}

/* CTA button */
.nav-item-cta {
  background: #2563eb;
  color: #fff !important;
  margin-left: auto;
  flex: 0 0 auto;
}
.nav-item-cta:hover {
  background: #1d4ed8;
  color: #fff !important;
}

/* ---------- HOMEPAGE GRID ---------- */

.grid-master {
  display: grid;
  grid-template-columns: 280px 1fr 350px;
  border-bottom: 2px solid #000;
  width: 100%;
  max-width: 100%;
}

.col-left {
  border-right: 2px solid #000;
  background: #fff;
}
.col-center {
  border-right: 2px solid #000;
  background: #fff;
  padding: 0;
}
.col-right {
  background: #fff;
}

/* Hero article */
.hero-article { padding: 40px; }
.hero-title {
  font-size: 56px;
  line-height: 0.95;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Pills & badges */
.data-pill {
  display: inline-block;
  background: #eee;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid #000;
  margin-right: 5px;
}
.cat-badge {
  background: #000;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Buttons */
.btn-brutal {
  background: #000;
  color: #fff;
  border: 2px solid #000;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
}
.btn-brutal:hover {
  background: #fff;
  color: #000;
}

/* ---------- GENERIC LAYOUT / SIDEBARS ---------- */

.layout-grid {
  display: grid;
  grid-template-columns: 300px 1fr 350px;
  min-height: 100vh;
  border-bottom: 2px solid #000;
}
.sidebar-left {
  background: #f0f0f0;
  border-right: 2px solid #000;
}
.main-col {
  background: #fff;
  border-right: 2px solid #000;
}
.sidebar-right {
  background: #e0e0e0;
}

/* Sticky sidebars: default for pages WITHOUT roadblock */
.sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 96px;
  align-self: flex-start;
}

/* On pages WITH roadblock, turn OFF sticky to avoid grey boxes */
.has-roadblock .sticky-sidebar {
  position: static;
  top: auto;
}

/* Author performance panel: stick to bottom for no-roadblock pages */
.author-performance-sticky {
  position: -webkit-sticky;
  position: sticky;
  bottom: 16px;
  align-self: flex-end;
}
.has-roadblock .author-performance-sticky {
  position: static;
  bottom: auto;
}

/* Boxes & section headings */
.brutal-border { border: 2px solid #000; }
.dense-box {
  background: #fff;
  border: 2px solid #000;
  padding: 15px;
  position: relative;
}
.dense-box:hover { background: #ffffea; }

.sect-head {
  background: #000;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  padding: 10px 15px;
  margin-bottom: 15px;
  text-transform: uppercase;
  border: 2px solid #000;
}

/* Pills */
.pill {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* ---------- ADS ---------- */

.ad-block {
  background: repeating-linear-gradient(45deg, #ccc, #ccc 10px, #dbdbdb 10px, #dbdbdb 20px);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #555;
  overflow: hidden;
}

/* General ad slot container */
.ehgn-slot {
  background: repeating-linear-gradient(45deg, #ccc, #ccc 10px, #dbdbdb 10px, #dbdbdb 20px);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #555;
  overflow: hidden;
}

.ad-block img,
.ehgn-slot img,
.ehgn-ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Make the clickable link fill the whole slot */
.ehgn-slot a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Roadblock banner: fixed height 150px */
.ehgn-slot--roadblock {
  height: 150px;
}
.ehgn-slot--roadblock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
}

/* ---------- FOOTER ---------- */

.site-footer-main {
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 4px solid #000;
  background: #000;
  color: #fff;
}
.footer-col { padding: 30px; }

.site-footer-main .site-logo-wrapper {
  height: auto;
  width: auto;
  flex: 0 0 auto;
  background: transparent;
  margin: 0 auto;
}
.site-footer-main .site-logo-wrapper img {
  max-height: 48px;
}

/* Color variables from Customizer */
:root {
  --announcer-bg: #000000;
  --announcer-color: #ffffff;
  --topbar-bg: #dddddd;
  --primary-bg: #ffffff;
  --footer-bg: #000000;
  --footerticker-bg: #000000;
  --footerticker-color: #ffffff;
}

.announcer,
.announcer-bar {
  background-color: var(--announcer-bg);
  color: var(--announcer-color);
}
.top-bar,
.top-menu {
  background-color: var(--topbar-bg);
}
.primary-nav,
.primary-menu {
  background-color: var(--primary-bg);
}
.site-footer-main {
  background-color: var(--footer-bg);
}
.site-footer-ticker {
  background-color: var(--footerticker-bg);
  color: var(--footerticker-color);
  padding: 2px 0;
  font-size: 10px;
}
.site-footer-ticker marquee {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.0;
}

/* ---------- ARTICLE TYPOGRAPHY ---------- */

.prose {
  font-size: 1rem;
  line-height: 1.8;
}

.prose p {
  margin: 0 0 1.2em;
}

.prose h2 {
  font-size: 1.9rem;
  margin: 1.8em 0 0.8em;
  font-weight: 700;
}

.prose h3 {
  font-size: 1.5rem;
  margin: 1.6em 0 0.6em;
  font-weight: 700;
}

.prose h4 {
  font-size: 1.2rem;
  margin: 1.4em 0 0.4em;
  font-weight: 700;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em 1.5em;
  padding: 0;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose blockquote {
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 4px solid #000;
  font-style: italic;
}

/* ---------- LOGIN / REGISTER / FORGOT PAGE STYLES ---------- */

.author-login-form .input {
  border: 2px solid #000 !important;
  padding: 8px 10px !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}
.author-login-form label {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

/* Style login submit button like CTA */
.author-login-form input.button-primary,
.author-login-form input#wp-submit {
  background: #000;
  color: #fff;
  border: 2px solid #000;
  text-transform: uppercase;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
}
.author-login-form input.button-primary:hover,
.author-login-form input#wp-submit:hover {
  background: #fff;
  color: #000;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */

@media (max-width: 1200px) {
  .grid-master {
    grid-template-columns: 230px 1fr;
  }
  .col-right {
    display: none;
  }

  .layout-grid {
    grid-template-columns: 260px 1fr;
  }

  .primary-nav-menu ul {
    flex-wrap: wrap;
  }

  .primary-nav-menu a,
  .nav-item-cta {
    padding: 0 16px;
    font-size: 16px;
  }

  .hero-title {
    font-size: 44px;
  }

  .sect-head {
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  .grid-master,
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .col-left,
  .col-center,
  .col-right,
  .sidebar-left,
  .sidebar-right {
    border-right: none;
  }

  .sticky-sidebar,
  .author-performance-sticky {
    position: static;
    top: auto;
    bottom: auto;
  }

  .primary-nav {
    position: static;
    top: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav-menu {
    width: 100%;
  }

  .primary-nav-menu ul {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .primary-nav-menu a,
  .nav-item-cta {
    width: 100%;
    height: auto;
    padding: 12px 16px;
    justify-content: flex-start;
    font-size: 15px;
    border-top: 1px solid #ccc;
  }

  .announcer {
    flex-direction: column;
    align-items: flex-start;
  }

  .announcer-links {
    white-space: normal;
  }

  .announcer-links a {
    margin-left: 0;
    margin-right: 12px;
  }

  .hero-title {
    font-size: 32px;
  }

  .sect-head {
    font-size: 18px;
    padding: 8px 12px;
  }

  .site-logo-wrapper {
    width: 100%;
    justify-content: flex-start;
    padding-left: 15px;
  }
}

@media (max-width: 600px) {
  .hero-article {
    padding: 20px;
  }

  .top-bar {
    font-size: 13px;
    text-align: left;
  }

  .hero-title {
    font-size: 28px;
  }

  .sect-head {
    font-size: 16px;
  }
}