/*
Theme Name: Enresult Blog
Theme URI: https://blog.enresult.com
Author: Enresult
Author URI: https://www.enresult.com
Description: Custom lightweight WordPress theme for blog.enresult.com. Matches the header, footer, color palette, typography, and spacing of the main enresult.com site — no page builder, no bundled sliders.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enresult-blog
*/

/* ==========================================================================
   Base — matched 1:1 from enresult.com's style.css (colors, type, resets)
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 14px;
  color: #333;
}

p {
  margin-top: 16px;
  margin-bottom: 0.25rem;
  font-size: 16px;
  color: #333;
}

img {
  max-width: 100%;
}

img[width][height] {
  height: auto;
}

a {
  text-decoration: none;
}

/* Brand palette */
.text--red,
.text--red:hover {
  color: #d52134 !important;
}

.text--blue {
  color: #2b3467;
}

.text--black {
  color: #000;
}

.text--dark-black {
  color: #333 !important;
  text-decoration: none !important;
}

.bg--white {
  background: #fff;
}

.bg--lightgray {
  background: #f9f9ff;
}

.bg--primary {
  /* !important: Bootstrap's .btn rule sets background-color: transparent and
     wins the cascade on specificity ties — matches the fix already shipped
     on the main site for the same invisible-button bug. */
  background: #2b3467 !important;
}

.bg--red {
  background-color: #d52134;
}

.btn {
  font-size: 0.8rem !important;
  font-weight: 500;
  min-width: 100px;
  border-radius: 5px !important;
}

.gutter--sm { gap: 0.5rem; }
.gutter--md { gap: 1rem; }
.gutter--lg { gap: 3rem; }

.heading--lg { font-size: 1.8rem; font-weight: 700; }
.heading--md { font-size: 1.7rem; font-weight: 600; }
.heading--sm { font-size: 1rem; font-weight: 600; }

.font--md  { font-size: 1.2rem; font-weight: 600; }
.font--xxs { font-size: 13px !important; }
.font--xs  { font-size: 15px !important; }
.font--sm  { font-size: 16px; }

.radius--10 { border-radius: 10px; }
.radius--30 { border-radius: 30px !important; }

/* ==========================================================================
   Header / nav — matched from enresult.com header.php + style.css
   ========================================================================== */

.header {
  width: 100%;
  position: relative;
}

.top-head {
  height: 68px;
  position: fixed;
  left: 5px;
  right: 5px;
  top: 0;
  z-index: 2;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 1px -1px;
}

.navbar ul li .nav-link {
  font-size: 14px;
  padding-left: 15px !important;
  padding-right: 15px !important;
  color: #2b3467;
  font-weight: 600;
}

.navbar ul li .nav-link:hover {
  color: #d52134;
}

.navbar ul li .nav-link.is-active {
  color: #d52134;
}

.dropdown-menu {
  border: none !important;
  border-radius: 0 0 6px 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  padding: 0 !important;
  margin-top: 15px !important;
  display: none;
}

.dropdown.show .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  font-weight: 400;
  font-size: 13px;
  transition: all 0.3s;
  padding: 12px 15px;
}

.dropdown-menu a:hover {
  color: #d52134 !important;
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #fff !important;
}

.navbar-toggler {
  width: 45px;
  height: 38px;
  border-radius: 5px;
  background: white;
  box-shadow: rgb(136 165 191 / 48%) 6px 2px 16px 0px, rgb(255 255 255 / 80%) -6px -2px 16px 0px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  transition: all 0.5s ease;
}

/* Space for the fixed 68px header so page content isn't hidden under it */
.site-content {
  padding-top: 108px;
}

/* ==========================================================================
   Footer — matched from enresult.com footer.php + style.css
   ========================================================================== */

.footer {
  background-color: #2b3467;
  min-height: 345px;
}

.footer_box:nth-child(1) { padding-right: 6em; }
.footer_box:nth-child(2) { max-width: 17rem; }
.footer_box:nth-child(3) { max-width: 19rem; }
.footer_box:nth-child(4) { max-width: 11rem; }

.footer_box ul li a {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 2rem;
  color: #fff;
  text-decoration: none;
}

.social a {
  width: 40px;
  height: 40px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  color: #2b3467;
}

.social a:hover {
  background-color: #d52134;
  text-decoration: none !important;
  color: #fff !important;
  transition: all 0.4s;
  transform: translateY(-5px);
}

/* ==========================================================================
   Accessibility — matched from enresult.com's 2026-09 a11y pass
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: #2b3467;
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 5px 0;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d52134;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive — matched breakpoints from enresult.com
   ========================================================================== */

@media (max-width: 767px) {
  .flex-column-xs {
    flex-direction: column;
  }

  .top-head {
    width: 95% !important;
  }

  .navbar-collapse.show {
    background-color: #fff !important;
    padding: 10px;
  }

  .site-content {
    padding-top: 90px;
  }
}

/* ==========================================================================
   Blog templates — editorial feed, not a card grid: the newest post reads
   as the lead story, the rest as a plain divided list. One accent color
   (red) is spent on the category kicker and links; everything else stays
   navy/ink/muted so that one choice actually reads as deliberate.
   ========================================================================== */

.archive-title,
.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2b3467;
  margin-bottom: 2.5rem;
}

.post-kicker {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #d52134;
  margin-bottom: 8px;
}

.post-kicker a {
  color: #d52134;
}

/* Lead story — the latest post on the blog's own home, sized up through a
   modifier class rather than an <h1>, so page heading hierarchy stays
   correct (one <h1> per page) while it still reads as the entry point. */
.post-featured {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e8e8ec;
}

.post-featured-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 24px;
  display: block;
}

.post-featured-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.post-featured-title a {
  color: #2b3467;
}

.post-featured-title a:hover {
  color: #d52134;
}

.post-featured-excerpt {
  font-size: 17px;
  color: #555;
  max-width: 640px;
  margin-bottom: 14px;
}

/* The feed — a plain divided list, deliberately not a shadowed card grid. */
.post-feed-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #e8e8ec;
}

.post-feed-item:first-child {
  padding-top: 0;
}

.post-feed-thumb {
  flex: 0 0 160px;
}

.post-feed-thumb img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.post-feed-body {
  flex: 1;
  min-width: 0;
}

.post-feed-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}

.post-feed-title a {
  color: #2b3467;
}

.post-feed-title a:hover {
  color: #d52134;
}

.post-feed-excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.post-meta {
  font-size: 13px;
  color: #767676;
}

@media (max-width: 600px) {
  .post-feed-item {
    flex-direction: column;
    gap: 14px;
  }

  .post-feed-thumb,
  .post-feed-thumb img {
    width: 100%;
    flex-basis: auto;
    height: 180px;
  }
}

.pagination-nav {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-nav .page-numbers {
  padding: 8px 14px;
  border-radius: 5px;
  background: #f4f4f4;
  color: #2b3467;
  font-weight: 600;
}

.pagination-nav .page-numbers.current {
  background: #2b3467;
  color: #fff;
}

.pagination-nav .page-numbers:hover {
  background: #d52134;
  color: #fff;
}

/* Single post */

.single-post-header h1 {
  color: #2b3467;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.single-post-meta {
  color: #767676;
  font-size: 14px;
  margin-bottom: 28px;
}

.single-post-meta a {
  color: #2b3467;
  font-weight: 600;
}

.single-post-featured-img {
  border-radius: 6px;
  margin-bottom: 36px;
  width: 100%;
  height: auto;
}

.single-post-content {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 17px;
}

/* Drop cap on the opening paragraph only — an editorial touch that costs
   nothing in markup since it targets the first child paragraph directly. */
.single-post-content > p:first-of-type::first-letter {
  float: left;
  font-size: 3.4em;
  font-weight: 700;
  line-height: 0.8;
  color: #2b3467;
  padding-right: 10px;
  padding-top: 4px;
}

.single-post-content h2,
.single-post-content h3 {
  color: #2b3467;
  margin-top: 40px;
  margin-bottom: 16px;
}

.single-post-content img {
  border-radius: 6px;
  margin: 24px 0;
}

.single-post-content a {
  color: #d52134;
  text-decoration: underline;
}

.single-post-content blockquote {
  border-left: 3px solid #d52134;
  padding-left: 20px;
  margin: 28px 0;
  font-size: 1.1em;
  color: #2b3467;
}

.single-post-tags {
  max-width: 700px;
  margin: 40px auto 0;
}

.single-post-tags a {
  display: inline-block;
  font-size: 13px;
  color: #2b3467;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 5px 14px;
  margin: 0 8px 8px 0;
}

.single-post-tags a:hover {
  background: #2b3467;
  border-color: #2b3467;
  color: #fff;
}

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.no-results {
  color: #555;
  font-size: 16px;
  max-width: 500px;
}
