/* ──────────────────────────────────────────────────────────────
   GLOBAL PAGE CONTAINER
────────────────────────────────────────────────────────────── */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ──────────────────────────────────────────────────────────────
   HEADER
────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

/* Logo */
.logo img {
  height: 40px;
  display: block;
}

/* Main Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-search-toggle .fa-search {
  vertical-align: middle;
}

.main-nav li + li {
  margin-left: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #4CAF50;
}

/* Search Icon Button in Header */
.header-search-toggle {
  border: none;
  font-size: 1.25rem;
  color: #4CAF50;
  cursor: pointer;
}
.header-search-toggle:hover {
  color: #388E3C;
}

/* Notification Icon (for seekers) */
.notify-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #4CAF50;
  cursor: pointer;
  position: relative;
}
.notify-btn:hover {
  color: #388E3C;
}
.notify-btn .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #e53935;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 50%;
}

/* Optional Search Bar */

.form-search {
  display: flex;
  gap: 0.5rem;
}

.form-search input,
.form-search select {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

.form-search button {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.form-search button:hover {
  background-color: #005bb5;
}


.job-page__footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
}

/* ──────────────────────────────────────────────────────────────
   HEADER ACTIONS BUTTONS & DROPDOWNS
────────────────────────────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-outline {
  border: 1px solid #4CAF50;
  color: #4CAF50;
  background: transparent;
}

.btn-outline:hover {
  background: #4CAF50;
  color: #fff;
}

.btn-primary {
  background: #4CAF50;
  color: #fff;
  border: 1px solid #4CAF50;
}

.btn-primary:hover {
  background: #489e4c;
}

.dropdown {
  position: relative;
  display: inline-block;
  margin-right: 1rem;
}
.dropdown-menu {
  position: absolute;
  top: calc(100%);
  left: 0;
  min-width: 10rem;
  padding: 0.25rem 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 100;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}
.dropdown-menu li a:hover {
  background: #f5f5f5;
}

/* Avatar */
.avatar-xs {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

/* Dropdown wrapper */
.account-menu {
  position: relative;
}
.drop-toggle {
  background: none;
  border: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.drop-toggle .avatar-xs {
  margin-right: 0.5rem;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  object-fit: cover;
}
.drop-list {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  pointer-events: none;
  transform-origin: top center;
  transition: 
    opacity 0.3s ease-out, 
    transform 0.3s ease-out;
  z-index: 1000;
  min-width: 200px;
}
.drop-list li {
  list-style: none;
  margin: 0;
}
.drop-list li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
}
.drop-list li a:hover,
.drop-list li a:focus {
  background: rgba(76,175,80,0.1); /* light green */
}
.drop-list.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
/* Divider */
.drop-list li.divider {
  height: 1px;
  background: #e0e0e0;
  margin: 0.5rem 0;
}

/*───────────────────────────────────────────────────────────────
  SEARCH OVERLAY (triggered by header icon)
───────────────────────────────────────────────────────────────*/

/* Container around icon + input */
.search-container {
  display: flex;
  align-items: center;
  position: relative;
}

/* Hide the form by default */
.search-form {
  overflow: hidden;
  width: 0;
  transition: width 0.4s ease;
}

/* The text input itself */
.search-input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  width: 100%;
  font-size: 0.9rem;
  outline: none;
  opacity: 0;
  transition: opacity 0.2s ease 0.1s; /* fade in slightly after width */
}

/* The icon button */
.search-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #333;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
}

/* Active state: expand form */
.search-container.active .search-form {
  width: 180px; /* adjust as desired */
}

.search-container.active .search-input {
  opacity: 1;
}

/* Optional: smooth collapse when ESC pressed or blur */
.search-form.collapsing {
  transition: width 0.2s ease, opacity 0.1s ease;
}

.nav-search-item {
  position: relative;
}

/*───────────────────────────────────────────────────────────────
  FILTER BAR
───────────────────────────────────────────────────────────────*/
.filter-bar {
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}
.filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-group select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}
.filter-group button {
  background: #4CAF50;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
.filter-group button:hover {
  background: #388E3C;
}

/* ──────────────────────────────────────────────────────────────
   MAIN CONTENT & FOOTER
────────────────────────────────────────────────────────────── */
.site-content {
  padding: 2rem 0;
  background: #f9f9f9;
}

/* Utility text alignment */
.text-center {
  text-align: center;
}

/* Footer placeholder */
.site-footer {
  border-top: 1px solid #e0e0e0;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* Job Page Footer */
.job-page__footer {
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem 0;
  color: #555;
  font-size: 0.9rem;
}

.job-page__footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.job-page__footer .footer-links a {
  color: #4CAF50;
  text-decoration: none;
  transition: color 0.2s;
}

.job-page__footer .footer-links a:hover {
  color: #388E3C;
}

.job-page__footer .footer-copy {
  text-align: center;
  color: #777;
}


/*────────────────────────────────────────────────────────────────────
   RESPONSIVE: tablets (<992px) and small desktops
────────────────────────────────────────────────────────────────────*/
@media (max-width: 992px) {
  /* NAVIGATION: wrap onto multiple lines */
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .main-nav li {
    flex: 1 1 auto;
    text-align: center;
  }
  .main-nav a,
  .main-nav .search-btn {
    font-size: 0.95rem;
  }
}

/*────────────────────────────────────────────────────────────────────
   RESPONSIVE: phones (<768px)
────────────────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .header-inner {
    padding: 0.5rem 1rem;
  }
  .logo img { height: 32px; }

  /* Nav items: center and wrap */
  .main-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .main-nav li {
    width: auto;
  }

  /* Search morph: full-width on open */
  .search-container {
    justify-content: center;
  }
  .search-container .search-form {
    width: 0;
  }
  .search-container.active .search-form {
    width: calc(100% - 2.5rem); /* icon width + padding */
  }

  /* Header‐actions (login/profile/etc) center & wrap */
  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* FILTER BAR: stack filters & button */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.75rem;
  }
  .filter-group {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .filter-group select,
  .filter-group button {
    width: 100%;
  }

  /* FOOTER LINKS: vertical list */
  .job-page__footer .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* 2) Hide desktop nav + actions on mobile */
@media (max-width: 768px) {
  .main-nav,
  .header-actions {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    margin-left: 0.5rem;
    color: #333;
    cursor: pointer;
  }
  .search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .search-form {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90vw;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    transform: scaleY(0);
    transform-origin: top center;
    z-index: 1200;
  }
  .search-container.active .search-form {
    transform: scaleY(1);
  }
  .search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
  }
  .search-form button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #4CAF50;
    cursor: pointer;
  }
  .search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
  }
  .account-menu {
    width: 100%; /* make the trigger area full width if desired */
  }
  .drop-list {
    position: static;
    transform: none;
    opacity: 1;
    box-shadow: none;
    border-radius: 0;
    background: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    min-width: auto;
  }
  .drop-list.show {
    max-height: 500px;
  }
  .drop-list li a {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
  }
  .drop-list li.divider {
    display: none;
  }
}

/* 3) Mobile menu panel */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1100;
}
.mobile-nav.show {
  display: block;
}

/* 4) Style the lists inside */
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
}
.mobile-nav ul + ul {
  border-top: 1px solid #e0e0e0;
  margin-top: 0.5rem;
}
.mobile-nav li {
  margin-bottom: 0.5rem;
}
.mobile-nav li:last-child {
  margin-bottom: 0;
}
.mobile-nav a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.mobile-nav a:hover {
  color: #4CAF50;
}

/* 5) Ensure search + hamburger stay inline */
.nav-actions {
  display: flex;
  align-items: center;
}

.mobile-nav-toggle {
  display: none;
}
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
}

/* hide both panels by default */
.mobile-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1100;
  overflow: auto;
  max-height: 70vh;
}

/* show on .show */
.mobile-panel.show {
  display: block;
}

/* ==========================================================================
   Improved Single Post Layout & Content Styling
   ========================================================================== */

:root {
  --primary-color:      #28a745;
  --primary-dark:       #1e7e34;
  --content-bg:         #fff;
  --content-max-width:  1000px;
  --content-padding:    2.5rem;
  --content-radius:     10px;
  --content-shadow:     0 4px 28px 0 rgba(0, 0, 0, 0.09);
  --border-color:       #e5e5e5;
  --text-color:         #262626;
  --meta-color:         #8e9aac;
  --heading-color:      #1a1a1a;
  --blockquote-bg:      #f6faf7;
  --blockquote-bar:     #28a745;
}

/* Layout container */
.site-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem 1rem 4rem;
  background: #f3f4f8;
  min-height: 100vh;
}

.single-post article {
  max-width: var(--content-max-width);
  width: 100%;
  box-shadow: var(--content-shadow);
  padding: var(--content-padding);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Title & meta */
.single-post .entry-title {
  color: var(--heading-color);
  letter-spacing: -0.01em;
  margin-bottom: 0.6em;
}

.single-post .entry-meta {
  color: var(--meta-color);
  font-size: 1rem;
  margin-bottom: 2.2em;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 1em;
}

.single-post .entry-meta time {
  color: inherit;
}

/* Content typography */
.entry-content {
  color: var(--text-color);
  word-break: break-word;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--heading-color);
  font-weight: 700;
  margin: 2.2em 0 1.1em;
  line-height: 1.22;
}

.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.07rem; }
.entry-content h5 { font-size: 1.05rem; }
.entry-content h6 { font-size: 1rem; }

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content pre,
.entry-content table,
.entry-content blockquote {
  margin-bottom: 1.6em;
}

.entry-content ul,
.entry-content ol {
  list-style-position: outside;
  padding-left: 1.8em;
  margin: 0 0 1.6em;
}

/* Lists */
.entry-content ul {
  list-style-type: disc;
}
.entry-content ol {
  list-style-type: decimal;
}
.entry-content li {
  display: list-item;
  margin-bottom: 0.8em;
}

/* Links */
.entry-content a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color .2s;
}
.entry-content a:hover,
.entry-content a:focus {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Images & figures */
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.7em auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px 0 rgba(40,167,69,0.05);
}
.entry-content figure {
  margin: 2.3em 0 2em;
  text-align: center;
}
.entry-content figcaption {
  color: var(--meta-color);
  font-size: .98rem;
  margin-top: .6em;
}

/* Blockquotes */
.entry-content blockquote {
  border-left: 5px solid var(--blockquote-bar);
  background: var(--blockquote-bg);
  padding: 1.1em 1.3em;
  margin: 2em 0;
  font-style: italic;
  color: #216235;
  border-radius: 6px;
}
.entry-content blockquote p {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.6;
}

/* Code */
.entry-content pre,
.entry-content code {
  font-family: 'Fira Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 1em;
}
.entry-content pre {
  background: #212529;
  color: #d4eece;
  border-radius: 6px;
  padding: 1.2em;
  overflow-x: auto;
}
.entry-content code {
  background: #f1f3f4;
  color: #19723d;
  border-radius: 3px;
  padding: .14em .33em;
}

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fafbfc;
  margin: 1.6em 0;
  border-radius: 5px;
  overflow: hidden;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--border-color);
  padding: .8em 1em;
  text-align: left;
}
.entry-content th {
  background: #f2f4f2;
  font-weight: 600;
}

/* Horizontal rule */
.entry-content hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 2.5em 0;
}

/* Featured Image at Top of Single Post */
.single-post-featured-image {
  margin: 0 0 2rem;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.responsive-featured-image {
  width: 100%;
  max-width: 800px;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .responsive-featured-image {
    max-height: 250px;
  }
}

.single-post-featured-image img.responsive-featured-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Social Share Buttons
   ========================================================================== */

.social-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 2.5em 0;
  font-size: 0.95rem;
}

.share-label {
  font-weight: 600;
  color: var(--meta-color);
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--content-bg);
  transition: background var(--transition-speed), border-color var(--transition-speed);
  color: var(--text-color);
}

.share-button svg {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
}

.share-button.twitter {
  border-color: #1DA1F2;
  color: #1DA1F2;
}
.share-button.twitter:hover {
  background: #1DA1F2;
  color: #ffffff;
}

.share-button.facebook {
  border-color: #1877F2;
  color: #1877F2;
}
.share-button.facebook:hover {
  background: #1877F2;
  color: #ffffff;
}

.share-button.linkedin {
  border-color: #0077B5;
  color: #0077B5;
}
.share-button.linkedin:hover {
  background: #0077B5;
  color: #ffffff;
}

/* Visually hidden text for screen readers */
.social-share .share-button[aria-label]::after {
  content: attr(aria-label);
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Additional Social Share Buttons (X, WhatsApp, Copy Link)
   ========================================================================== */

.share-button.x {
  border-color: #222;
  color: #222;
}
.share-button.x:hover {
  background: #222;
  color: #fff;
}

.share-button.whatsapp {
  border-color: #25D366;
  color: #25D366;
}
.share-button.whatsapp:hover {
  background: #25D366;
  color: #fff;
}

/* Copy Link button */
.share-button.copy-link {
  width: 3.5rem;
  height: 3.5rem;
  border-color: var(--border-color);
  color: var(--text-color);
  position: relative;
}
.share-button.copy-link svg {
  width: 1.8em;
  height: 1.8em;
}
.share-button.copy-link:hover {
  background: var(--border-color);
}
.share-button.copy-link.copied {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.share-button.copy-link.copied::after {
  content: 'Copied!';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.4rem;
  font-size: 0.85rem;
  padding: 0.25rem 0.4rem;
  color: var(--primary-dark);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumb-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  position: relative;
  padding: 0 1rem;
  font-weight: bold;
}

/* Triangular arrow separator */
.breadcrumb-item + .breadcrumb-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--primary-color);
  clip-path: polygon(100% 50%, 0 0, 0 100%);
}

/* Home icon */
.breadcrumb-item.home a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb-home-icon {
  width: 1.25em;
  height: 1.25em;
  fill: var(--text-color);
}

.breadcrumb-item.home .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Links */
.breadcrumb-item a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--transition-speed);
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
  opacity: 1;
  color: var(--primary-color);
}

/* Current item */
.breadcrumb-item.current {
  color: var(--heading-color);
  opacity: 1;
  pointer-events: none;
  font-weight: normal;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .breadcrumb {
    font-size: 0.85rem;
    justify-content: space-between;
  }
  .breadcrumb-nav {
    justify-content: space-between;
    margin: 0 20px;
  }
  .breadcrumb-item {
    padding: 0 0.75rem;
  }
  .breadcrumb-item + .breadcrumb-item::before {
    width: 0.5rem;
    height: 0.5rem;
  }
}

/* ==========================================================================
   Author Bio Styles
   ========================================================================== */

.author-bio {
  margin: 3em 0;
  padding: 2em;
  background: #e3f1c3;
  border-radius: var(--content-radius);
  box-shadow: var(--content-shadow);
}

.author-bio-inner {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.author-bio-avatar-wrapper {
  flex-shrink: 0;
}

.author-bio-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.author-bio-text {
  flex: 1;
}

.author-bio-name {
  margin: 0;
  font-size: 1.25rem;
  color: var(--heading-color);
}

.author-bio-name a {
  color: inherit;
  text-decoration: none;
}

.author-bio-position {
  margin: 0.2em 0 0.6em;
  color: var(--meta-color);
  font-size: 1rem;
  font-weight: 500;
}

.author-bio-description {
  margin: 0;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   Minimal/Modern Related Posts Grid
   ========================================================================== */

.related-posts-minimal {
  margin: 4em 0 2em;
}

.related-posts-minimal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 2em;
  text-align: center;
  letter-spacing: -.01em;
}

.related-posts-minimal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.7em;
}

.related-post-minimal-item {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px 0 rgba(40,167,69,0.06);
  transition: transform .22s, box-shadow .22s;
}

.related-post-minimal-item:hover {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 8px 32px rgba(40,167,69,0.10);
  z-index: 1;
}

.related-post-minimal-thumb {
  aspect-ratio: 4/3;
  width: 100%;
  background: #f5f5f5;
  position: relative;
}

.related-post-minimal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .18s;
}

.related-post-minimal-item:hover img {
  filter: brightness(0.7) blur(1px);
}

.related-post-minimal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background: linear-gradient(to top,rgba(20,20,20,0.60) 60%,rgba(20,20,20,0.10) 95%);
  padding: 1.1em 1.1em 1.05em;
  opacity: 1;
  transition: background .18s;
}

.related-post-minimal-title-text {
  color: #fff;
  font-size: 1.07rem;
  font-weight: 700;
  margin-bottom: 0.25em;
  text-shadow: 0 2px 12px rgba(20,20,20,0.23);
  letter-spacing: 0.01em;
  line-height: 1.18;
}

.related-post-minimal-date {
  color: #e3f6e8;
  font-size: .98rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-shadow: 0 2px 8px rgba(20,20,20,0.19);
}

/* If no thumbnail, show a gray placeholder */
.related-post-minimal-thumb .no-thumb {
  display: block;
  width: 100%;
  height: 100%;
  background: #d2e5d2;
}

/* ==========================================================================
   Post Views Count Styling
   ========================================================================== */

.entry-meta.entry-views {
  font-size: 0.95rem;
  color: var(--meta-color);
  margin-top: 0.4em;
}

.entry-meta.entry-views .view-count {
  font-weight: 600;
  color: var(--primary-color);
}

/* ==========================================================================
   Category Archive - Professional Container & Grid
   ========================================================================== */

.category-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Archive Header */
.archive-header {
  text-align: left;
  margin: 2.5em 0 2em;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 1.2em;
}
.archive-title {
  font-size: 2.15rem;
  color: var(--heading-color);
  margin-bottom: .3em;
  font-weight: 700;
  letter-spacing: -.01em;
}
.archive-description {
  color: var(--meta-color);
  font-size: 1.07rem;
  line-height: 1.6;
  max-width: 600px;
}

/* Archive Grid */
.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* Archive Card */
.archive-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(40,167,69,0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .17s, transform .16s;
  border: 1px solid #f4f4f4;
}
.archive-item:hover {
  box-shadow: 0 6px 32px rgba(40,167,69,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* Thumbnail */
.archive-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #f0f0f0;
}

/* Card Content */
.archive-item-content {
  padding: 1.1rem 1.2rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.archive-item-title {
  margin: 0 0 0.65em;
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.3;
}
.archive-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color .18s;
}
.archive-item-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.archive-item-date {
  font-size: 0.97rem;
  color: var(--meta-color);
  margin-top: auto;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 0;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 0.48em 0.8em;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  text-decoration: none;
  transition: background .18s, color .18s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* No Posts */
.no-posts {
  text-align: center;
  color: var(--meta-color);
  font-size: 1.04rem;
  margin: 4em 0;
}

/* ==========================================================================
   Homepage Layout Styles
   ========================================================================== */

/* Container constraint */
.index-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section titles */
.section-title {
  font-size: 2.15rem;
  color: var(--heading-color);
  margin: 2em 0 1em;
  text-align: left;
  font-weight: 700;
}

/* ==========================================================================
   Featured Articles (Homepage Hero + Carousel)
   ========================================================================== */

.featured-articles {
  margin-bottom: 3.5rem;
}

/* Hero Featured */
.featured-hero {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 36px rgba(40,167,69,0.11);
}
.featured-hero-thumb {
  display: block;
  position: relative;
}
.featured-hero-thumb img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: filter .35s cubic-bezier(.4,2,.3,1);
  display: block;
}
.featured-hero-thumb:hover img {
  filter: brightness(0.78) blur(2px);
}
.featured-hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2em 1.5em 1.6em 2em;
  background: linear-gradient(to top,rgba(15,45,30,0.81) 75%,rgba(15,45,30,0.02));
  color: #fff;
  pointer-events: none;
}
.featured-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.18);
  pointer-events: auto;
}

/* Carousel */
.featured-carousel {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
}
.carousel-item {
  min-width: 260px;
  max-width: 300px;
  flex: 0 0 85%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(40,167,69,0.08);
  background: #fff;
  transition: box-shadow .17s, transform .13s;
}
.carousel-item:hover {
  box-shadow: 0 8px 28px rgba(40,167,69,0.17);
  transform: translateY(-4px) scale(1.018);
}
.carousel-thumb {
  position: relative;
  display: block;
}
.carousel-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: filter .22s cubic-bezier(.4,2,.3,1);
}
.carousel-thumb:hover img {
  filter: brightness(0.80);
}
.carousel-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top,rgba(30,50,20,0.68) 77%,rgba(20,30,10,0.03));
  padding: 1em 1em 0.8em 1.1em;
  color: #fff;
}
.carousel-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0,0,0,0.19);
  pointer-events: auto;
}

/* Hide scrollbar for carousel (webkit browsers) */
.featured-carousel::-webkit-scrollbar {
  display: none;
}
.featured-carousel {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

.carousel-btn {
  background: var(--content-bg, #fff);
  border: 1.5px solid var(--primary-color, #28a745);
  color: var(--primary-color, #28a745);
  border-radius: 100px;
  width: 2.3em;
  height: 2.3em;
  font-size: 1.2em;
  cursor: pointer;
  position: relative;
  top: 34%;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(40,167,69,0.11);
  margin: 0 0.5em;
  transition: background .18s;
}
.carousel-btn:hover {
  background: var(--primary-color, #28a745);
  color: #fff;
}
.carousel-mobile-hint {
  display: none;
  text-align: center;
  color: var(--meta-color);
  font-size: 1rem;
  opacity: 0.8;
  margin-top: -0.8rem;
  margin-bottom: 2rem;
}
.featured-carousel-wrapper {
  position: relative;
}
/* Arrow button (desktop hidden) */
.carousel-scroll-btn {
  display: none;
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 10;
  transition: background .2s, transform .2s;
}
.carousel-scroll-btn svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: var(--primary-color);
}
.carousel-scroll-btn:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-50%) scale(1.05);
}


/* Responsive */
@media (max-width: 700px) {
  .featured-carousel {
    gap: 0.8rem;
    padding-bottom: 0 1.5rem;
  }
  .carousel-item {
    min-width: 85vw;
    max-width: 92vw;
  }
  .featured-hero {
    margin-top: 1.5rem;
  }
  .carousel-mobile-hint { display: block; }
  .carousel-scroll-btn {
    display: flex;
  }
}

/* ==========================================================================
   Premium Explore Topics Cards
   ========================================================================== */

.explore-topics {
  margin-bottom: 4rem;
}

.topics-cards-wrapper {
  overflow-x: auto;
  padding-bottom: 0.6em;
}

.topics-cards {
  display: flex;
  gap: 1.3rem;
  margin: 0 -0.5rem;
  padding: 0.2rem 0.5rem;
}

.topic-card {
  min-width: 210px;
  max-width: 280px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg,#e6f5e7,#e3e9f8);
  border-radius: 15px;
  box-shadow: 0 2px 18px rgba(40,167,69,0.07), 0 1.5px 0.5px #e3e3e3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: box-shadow .22s, transform .22s, background .19s;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.topic-card:hover,
.topic-card:focus {
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 8px 38px rgba(40,167,69,0.17), 0 2px 1px #e1e1e1;
  background-blend-mode: multiply;
  filter: brightness(0.92);
}

.topic-card-overlay {
  width: 100%;
  padding: 1.1em 1em 1.4em 1em;
  background: linear-gradient(to top,rgba(20,34,10,0.78) 75%,rgba(20,34,10,0.10));
  color: #fff;
  border-radius: 0 0 15px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.38em;
}

.topic-card-title {
  font-size: 1.09rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-shadow: 0 3px 12px rgba(20,20,20,0.22);
  margin-bottom: 0.2em;
  line-height: 1.2;
}

.topic-card-count {
  font-size: .97rem;
  font-weight: 500;
  color: #b2ebc5;
  text-shadow: 0 2px 9px rgba(40,167,69,0.21);
}

@media (max-width: 700px) {
  .topics-cards {
    gap: 0.85rem;
    padding: 0.1rem 0.3rem;
  }
  .topic-card {
    min-width: 65vw;
    max-width: 85vw;
  }
}
.topics-cards-wrapper::-webkit-scrollbar { display: none; }
.topics-cards-wrapper { -ms-overflow-style: none; scrollbar-width: none; }

/* ==========================================================================
   Premium Popular Articles (Ranked List)
   ========================================================================== */

.popular-grid {
  display: flex;
  flex-direction: column;
  margin-bottom: 3em;
  padding: 0;
}

.popular-item {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.82);
  border-radius: 15px;
  box-shadow: 0 2px 18px rgba(40,167,69,0.09), 0 1.5px 0.5px #e3e3e3;
  transition: box-shadow .17s, transform .14s;
  position: relative;
  padding: 0.8em 1.2em 0.8em 0.8em;
  min-height: 80px;
}
.popular-item:hover {
  box-shadow: 0 8px 32px rgba(40,167,69,0.15);
  transform: translateY(-2px) scale(1.012);
  background: rgba(243,255,243,0.99);
}

/* Rank number or trophy */
.popular-rank {
  min-width: 2.5em;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-right: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popular-rank .popular-trophy {
  width: 1.6em;
  height: 1.6em;
  fill: gold;
  filter: drop-shadow(0 0 8px #ffeb3b99);
}

/* Thumbnail */
.popular-thumb {
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 1.1em;
  box-shadow: 0 2px 10px rgba(40,167,69,0.10);
  display: block;
  width: 62px;
  height: 62px;
}
.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Meta/text */
.popular-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.popular-title {
  margin: 0 0 0.2em;
  font-size: 1.09rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
}
.popular-title a {
  color: inherit;
  text-decoration: none;
  transition: color .16s;
}
.popular-title a:hover {
  color: var(--primary-color);
}

.popular-meta-details {
  display: flex;
  gap: 1.3em;
  font-size: .98rem;
  color: var(--meta-color);
  align-items: center;
}
.popular-views {
  background: #f3fff4;
  color: var(--primary-color);
  padding: 0.16em 0.66em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.97rem;
  margin-left: 0.6em;
  box-shadow: 0 1px 6px rgba(40,167,69,0.08);
}

/* ==========================================================================
   Latest Articles (Premium Grid Cards)
   ========================================================================== */

.latest-articles {
  margin-bottom: 4em;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 700px) {
  .latest-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

.latest-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(20,60,40,0.10);
  background: #f9faf9;
  position: relative;
  transition: box-shadow .18s, transform .16s;
}

.latest-thumb {
  display: block;
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .26s cubic-bezier(.4,1.8,.4,1), filter .19s;
  display: block;
}

.latest-item:hover img {
  transform: scale(1.045);
  filter: brightness(0.88);
}

.latest-title-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top,rgba(10,30,10,0.79) 75%,rgba(10,20,10,0.08));
  color: #fff;
  padding: 1.2em 1.1em 1.4em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.18);
}

.latest-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -.01em;
}

.latest-date-badge {
  position: absolute;
  top: 0.85em;
  left: 0.85em;
  background: rgba(40,167,69,0.90);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.38em 0.85em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20,60,40,0.08);
  z-index: 2;
  pointer-events: none;
}

.latest-articles .latest-title,
.latest-articles .latest-title a {
  color: #ffffff !important;
}

@media (max-width: 700px) {
  .latest-thumb { height: 170px; }
  .latest-title { font-size: 1rem; }
  .latest-date-badge { font-size: .91rem; padding: 0.28em 0.7em; }
}

/* Responsive */
@media (max-width: 600px) {
  .popular-item {
    flex-direction: row;
    padding: 0.7em 0.6em 0.7em 0.6em;
    min-height: 68px;
  }
  .popular-rank { font-size: 1.18rem; }
  .popular-thumb { width: 44px; height: 44px; margin-right: 0.7em; }
  .popular-meta-details { gap: 0.8em; font-size: 0.95rem; }
}

/* Shared item styles */
.popular-item,
.latest-item {
  background: var(--content-bg);
  border-radius: var(--content-radius);
  box-shadow: var(--content-shadow);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.popular-item:hover,
.latest-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 32px rgba(40,167,69,0.10);
}
.popular-thumb img,
.latest-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.popular-title,
.latest-title {
  margin: 0.8em 1em 0.4em;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
}
.popular-title a,
.latest-title a {
  color: inherit;
  text-decoration: none;
}
.popular-title a:hover,
.latest-title a:hover {
  color: var(--primary-color);
}
.popular-date,
.latest-date {
  display: block;
  margin: 0.3em 1em 1em;
  font-size: 0.95rem;
  color: var(--meta-color);
}

/* Responsive */
@media (max-width: 700px) {
  .related-posts-minimal-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .related-posts-minimal-title {
    font-size: 1.1rem;
    margin-bottom: 1em;
  }
  .related-posts-minimal-grid {
    grid-template-columns: 1fr;
    gap: 1.1em;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .author-bio-inner {
    flex-direction: column;
    text-align: center;
  }
  .author-bio-avatar {
    width: 80px;
    height: 80px;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .site-main {
    padding: 2rem 0.5rem 3rem;
  }
  .single-post article {
    padding: 1.4rem 1rem;
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  .single-post article {
    padding: 1.1rem 0.2rem;
    border-radius: 0;
    box-shadow: none;
  }
  .entry-content h1 { font-size: 1.3rem; }
  .entry-content h2 { font-size: 1.13rem; }
}

/* Optional: style nav links below content */
.post-navigation {
  margin: 2.5em 0 1.5em;
  display: flex;
  justify-content: space-between;
  gap: 2em;
}
.post-navigation .nav-subtitle {
  color: var(--meta-color);
  font-size: 0.96rem;
}
.post-navigation .nav-title {
  font-size: 1.08rem;
  color: var(--primary-color);
}


/* account panel slides in from right */
@media (max-width: 768px) {
  .mobile-account-panel {
    position: absolute;
    top: 100%;
    bottom: auto;
    width: 80%;
    max-width: 300px;
    right: -100%;
    left: auto;
    max-height: calc(100vh - 3.5rem);
    overflow-y: auto;
    transition: right 0.3s ease;
  }
  .mobile-account-panel.show {
    right: 0;
  }
}

/* style both lists */
.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
}
.mobile-panel li + li {
  margin-top: 0.5rem;
}
.mobile-panel a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.mobile-panel a:hover {
  color: #4CAF50;
}

.mobile-account-nav .mobile-nav-section {
  margin-top: 1rem;
  padding: 0.5rem 0;
  font-weight: bold;
  color: #4CAF50;
  border-top: 1px solid #eee;
}

/* profile toggle hidden on desktop, visible on phone */
.mobile-account-toggle {
  display: none;
}
@media (max-width: 768px) {
  .mobile-nav-toggle,
  .mobile-account-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    margin-left: 0.5rem;
    color: #333;
    cursor: pointer;
  }
}
