/* Shared SearchEngineZine header and search popup styles */
.main-nav{font-size:14px}
.search-toggle{
  width:42px;height:42px;flex:0 0 42px;
  display:grid;place-items:center;
  padding:0;border:0;border-radius:50%;
  background:#fff;color:#172033;cursor:pointer;
}
.search-toggle svg{
  width:24px;height:24px;fill:none;
  stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}
@media(max-width:800px){
  .header-inner{gap:12px}
  .main-nav{display:none}
  .search-toggle{margin-left:auto}
}

.category-menu-item>a{font-size:13px}
.category-count{font-size:11px}
.label{font-size:11px}
.hero-description{font-size:16px;line-height:1.6}
.hero-date,.date{font-size:12px}
.side-story h3{font-size:17px}
.section-title h2{font-size:24px}
.section-title a,.read-more{font-size:13px}
.featured-content p,.category-feature-content p{font-size:14px;line-height:1.65}
.popular h3{font-size:18px}
.popular-item h4{font-size:14px}
.number{font-size:12px}
.category-card strong{font-size:13px}
.category-card span{font-size:11px}
.article-content h3{font-size:16px;line-height:1.4}
.article-content p{font-size:13px;line-height:1.6}
.article-content .date{font-size:11px}
.mini-title{font-size:13px}
.mini-title .date{font-size:11px}
.newsletter-box p{font-size:13px}
.newsletter-form input,.newsletter-form button{font-size:13px}
.footer p,.footer li a{font-size:12px}
.footer h4{font-size:13px}
.footer-bottom{font-size:11px}
@media(max-width:560px){
 .hero-description{font-size:14px}
 .hero-title{font-size:26px}
 .side-story h3{font-size:15px}
 .article-content h3{font-size:16px}
}


/* Homepage category dropdown: hover/focus behavior and centered arrow */
.main-nav { align-items: center; }
.home-nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.home-nav-item > a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 100%; }
.home-nav-arrow { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); flex: 0 0 7px; }
.home-nav-dropdown { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 190px; padding: 8px 0; background: #fff; border: 1px solid var(--line, #e8ebef); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.10); z-index: 1000; }
.home-nav-item:hover .home-nav-dropdown, .home-nav-item:focus-within .home-nav-dropdown { display: block; }
.home-nav-dropdown a { display: block; padding: 10px 16px; white-space: nowrap; color: var(--ink, #182230); text-decoration: none; }
.home-nav-dropdown a:hover, .home-nav-dropdown a:focus { background: var(--soft, #f5f7fa); }
@media (max-width: 850px) {
  .home-nav-dropdown { left: auto; right: 0; transform: none; }
}


/* Shared WordPress-style category navigation alignment */
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
}
.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 22px;
  margin-left: auto;
}
.site-header .home-nav-item,
.site-header .category-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.site-header .home-nav-dropdown,
.site-header .category-submenu,
.site-header .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  z-index: 1000;
}
.site-header .home-nav-item:hover .home-nav-dropdown,
.site-header .home-nav-item:focus-within .home-nav-dropdown,
.site-header .category-menu-item:hover .category-submenu,
.site-header .category-menu-item:focus-within .category-submenu,
.site-header .nav-dropdown:hover .nav-dropdown-menu,
.site-header .nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.site-header .home-nav-dropdown a,
.site-header .category-submenu a,
.site-header .nav-dropdown-menu a {
  display: block;
  padding: 9px 16px;
  white-space: nowrap;
}
@media (max-width: 1050px) {
  .site-header .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .site-header .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-left: 0;
  }
}
@media (max-width: 800px) {
  .site-header .main-nav {
    display: none;
  }
}


/* Shared header typography */
.site-header .logo {
  font-family: Inter, Arial, sans-serif !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
}
.site-header .main-nav a,
.site-header .main-nav summary {
  font-family: Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}


/* Responsive SearchEngineZine header logo */
.site-header .logo.image-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  line-height: 1;
}
.site-header .logo.image-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(240px, 100%);
  max-height: 48px;
  object-fit: contain;
}
@media (max-width: 800px) {
  .site-header .logo.image-logo img {
    max-width: min(190px, 100%);
    max-height: 42px;
  }
}
@media (max-width: 480px) {
  .site-header .logo.image-logo img {
    max-width: min(155px, 100%);
    max-height: 36px;
  }
}


/* Shared responsive header sizing: homepage and category pages */
.site-header {
    min-height: 76px;
    box-sizing: border-box;
}
.site-header .header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-header .logo.image-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 48px;
    object-fit: contain;
}
.site-header .main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
.site-header .main-nav a,
.site-header .main-nav summary {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
@media (max-width: 800px) {
    .site-header .header-inner {
        gap: 12px;
        flex-wrap: wrap;
    }
    .site-header .logo.image-logo img {
        max-width: 200px;
        max-height: 42px;
    }
    .site-header .main-nav {
        gap: 14px;
        font-size: 13px;
        flex-wrap: wrap;
    }
    .site-header .main-nav a,
    .site-header .main-nav summary {
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .site-header .header-inner {
        min-height: 64px;
    }
    .site-header .logo.image-logo img {
        max-width: 170px;
        max-height: 36px;
    }
    .site-header .main-nav {
        gap: 10px;
    }
}


/* Unified header sizing for homepage and category pages */
.site-header {
    min-height: 76px;
    box-sizing: border-box;
}
.site-header .header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}
.site-header .logo.image-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    line-height: 1;
}
.site-header .logo.image-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 48px;
    object-fit: contain;
}
.site-header .main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4;
}
.site-header .main-nav a,
.site-header .main-nav summary,
.site-header .home-nav-item > a,
.site-header .category-menu-item > a {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4;
}
@media (max-width: 1050px) {
    .site-header .header-inner { gap: 12px; }
    .site-header .main-nav { gap: 12px; }
    .site-header .logo.image-logo img { max-width: 200px; }
}
@media (max-width: 800px) {
    .site-header .header-inner {
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .site-header .logo.image-logo img {
        max-width: 180px;
        max-height: 42px;
    }
    .site-header .main-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
}


/* Live search popup */
.search-toggle { cursor:pointer; }
.search-popup {
  display:none; position:fixed; inset:0; z-index:9999;
  background:rgba(15,23,42,.28); padding:90px 16px 20px;
}
.search-popup.is-open { display:block; }
.search-panel {
  width:min(680px,100%); margin:0 auto; background:#fff;
  border:1px solid #e5e7eb; border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.18); overflow:hidden;
}
.search-field-wrap { display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid #e5e7eb; }
.search-field-wrap input { flex:1; min-width:0; border:0; outline:0; font:inherit; font-size:16px; background:transparent; color:#17202a; }
.search-close { border:0; background:transparent; cursor:pointer; font-size:25px; color:#667085; }
.search-results { max-height:min(70vh,620px); overflow:auto; }
.search-result { display:flex; gap:13px; padding:12px 16px; color:#17202a; text-decoration:none; border-bottom:1px solid #f0f1f3; }
.search-result:hover,.search-result:focus { background:#f7f9fb; }
.search-result img { width:68px; height:56px; object-fit:cover; border-radius:7px; flex:0 0 68px; background:#f0f2f4; }
.search-result-copy { min-width:0; }
.search-result-title { font-size:14px; line-height:1.4; font-weight:650; }
.search-result-meta { font-size:11px; color:#667085; text-transform:capitalize; margin-top:3px; }
.search-result-excerpt { font-size:12px; color:#667085; line-height:1.45; margin-top:4px; }
.search-message { padding:18px 16px; color:#667085; font-size:13px; }
@media(max-width:600px) {
  .search-popup { padding:72px 10px 12px; }
