/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================ 
   ✅ Readability Enhancements
   ============================ */

/* Paragraph and body refinement */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-spacing: 0.05em;
  letter-spacing: 0.02em;
}

/* Refined spacing for paragraphs */
p:not(.author-box p) {
  margin-bottom: 1.25em;
}

/* Global Link Style */
a:link {
  color: #0F766E;
  font-weight: 600;             /* Stronger appearance than body text */
  text-decoration: none;
}

/* Visited link color (you might want this slightly different or the same) */
a:visited {
  color: #0c5e58; /* A slightly darker shade for visited, or keep it the same */
  text-decoration: none;
}

/* Link hover effect */
a:hover,
a:focus {
  color: #0c5d58;
  background-color: #f0fdfc;    /* Light hover background */
}

/* Link active (when clicked) */
a:active {
  color: #0a4d46; /* Even darker for active state */
}

/* Underline links only within the content of single blog posts */
body.single-post .post-content a {
  text-decoration: underline;
}

/* Optional: Underline on hover for other link states */
body.single-post .post-content a:hover {
  text-decoration: underline; /* Keep it underlined on hover */
}

/* Optional: Ensure visited and active links are also underlined within content */
body.single-post .post-content a:visited {
  text-decoration: underline;
}

body.single-post .post-content a:active {
  text-decoration: underline;
}

h1 {
  font-size: 1.5rem; /* ~24px */
  font-weight: bold;
  color: #111;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.375rem; /* ~22px */
  font-weight: bold;
  color: #222;
  line-height: 1.35;
  margin-top: 1.4rem;
  margin-bottom: 0.7rem;
}

h3 {
  font-size: 1.25rem; /* ~20px */
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  margin-top: 1.3rem;
  margin-bottom: 0.65rem;
}

h4 {
  font-size: 1.125rem; /* ~18px */
  font-weight: 600;
  color: #444;
  line-height: 1.45;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

h5 {
  font-size: 1rem; /* ~16px */
  font-weight: 600;
  color: #555;
  line-height: 1.5;
  margin-top: 1.1rem;
  margin-bottom: 0.55rem;
}

h6 {
  font-size: 0.9375rem; /* ~15px */
  font-weight: 600;
  color: #666;
  line-height: 1.55;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}


/* HR for section breaks */
hr {
  border: none;
  border-top: 2px solid #eee;
  margin: 2rem 0;
}

blockquote {
  font-style: italic;
  border-left: 4px solid #ccc;
  margin: 1.5em 0;
  padding: 0.5em 1em;
  background: #f9f9f9;
  color: #555;
  quotes: "“" "”" "‘" "’";
  position: relative;
}

blockquote::before {
  content: open-quote;
  font-size: 2em;
  line-height: 0;
  margin-right: 0.25em;
  vertical-align: -0.4em;
  color: #aaa;
}

/* Link hover softness */
a {
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* Removed max-width limiting layout */
article, section, .main-content {
  /* Removed max-width */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Responsive typography tweak */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.7;
  }

  p {
    margin-bottom: 1em;
  }

  h1, h2, h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
}

.content-area {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.main-content {
  flex: 3;
  padding: 20px;
}

/* === Modern and Professional Sidebar Redesign (Pure CSS) === */
.sidebar {
  flex: 1 0 100px;           
  min-width: 100px;          
  padding: 30px 25px;        
  background-color: #ffffff; 
  border-radius: 12px;       
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); 
  border: 1px solid #e0e7ff; 
  font-family: 'Inter', sans-serif; 
  color: #475569; 
}

/* === Sticky "Bottom" Behavior (CSS-only) === */
@media (min-width: 769px) {
  .sidebar {
    position: relative;
    width: 100px;
    min-width: 100px;
    margin-right: 20px;
  }

  /* Wrapper controls sticky boundary */
  .sidebar-outer {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Aligns sticky element to bottom */
  }

  /* Actual sticky element */
  .sidebar-inner {
    position: sticky;
    bottom: 20px; /* Sticks when bottom reaches viewport bottom */
    transition: box-shadow 0.3s ease;
  }
}

/* Subtle hover effect for sidebar */
.sidebar:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1); 
}

/* === Widget Styling === */
.widget {
  padding-bottom: 25px; 
  margin-bottom: 25px;
  border-bottom: 1px solid #e2e8f0; 
}

.widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Widget Title */
.widget-title {
  font-size: 1.35rem; 
  font-weight: 700; 
  color: #1e293b; 
  margin-bottom: 15px;
  letter-spacing: -0.01em; 
}

/* List and Link Styling */
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li {
  padding: 6px 0;
}

.widget a {
  display: block;
  text-decoration: none;
  color: #64748b; 
  font-weight: 500; 
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.widget a:hover,
.widget a:focus {
  color: #4f46e5; 
  padding-left: 5px; 
}

/* Search Input */
.widget input[type="search"],
.widget input[type="text"] {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  color: #334155;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.widget input[type="search"]:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 2px #c7d2fe; 
}

/* === Mobile/Tablet Reset === */
@media (max-width: 768px) {
  .sidebar {
    flex: 1 1 auto;
    min-width: initial;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .sidebar-outer,
  .sidebar-inner {
    position: static;
  }
}



/* Post Styles */
.post {
  margin-bottom: 40px;
}
.post-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.post-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}
.post-thumbnail img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* Author Box Styling */
.author-box {
    display: flex; /* Enables a flexible box layout */
    align-items: center; /* Vertically aligns items in the center */
    gap: 20px; /* Adds space between the avatar and author info */
    background-color: #f9f9f9; /* Light background for the box */
    border: 1px solid #eee; /* Subtle border */
    border-radius: 8px; /* Slightly rounded corners */
    padding: 20px; /* Internal spacing */
    margin: 30px 0; /* Vertical margin for separation from other content */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Modern, readable font stack */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Soft shadow for depth */
}

/* Author Avatar */
.author-avatar {
    flex-shrink: 0; /* Prevents the avatar from shrinking */
}

.author-avatar img {
    border-radius: 50%; /* Makes the avatar perfectly round */
    display: block; /* Removes extra space below the image */
    width: 90px; /* Sets a fixed width for the avatar */
    height: 90px; /* Sets a fixed height for the avatar */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border: 3px solid #0F766E; /* Accent color border around the avatar */
}

/* Author Information */
.author-info {
    flex-grow: 1; /* Allows the info section to take up available space */
}

.author-info h4 {
    font-size: 1.1em; /* Slightly larger heading */
    color: #555; /* Softer color for the heading */
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 5px; /* Space below the heading */
    text-transform: uppercase; /* Uppercase for a modern touch */
    letter-spacing: 0.5px; /* Slight letter spacing */
}

.author-info p {
    font-size: 1em; /* Standard paragraph font size */
    line-height: 1.6; /* Comfortable line spacing */
    color: #333; /* Darker color for readability */
    margin-bottom: 10px; /* Space between paragraphs */
}

.author-info p:last-of-type {
    margin-bottom: 0; /* No bottom margin for the last paragraph */
}

.author-info strong {
    color: #0F766E; /* Emphasize author name with accent color */
    font-weight: 600; /* Slightly bolder than default bold */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .author-box {
        flex-direction: column; /* Stacks items vertically on smaller screens */
        text-align: center; /* Centers text */
        padding: 15px; /* Slightly less padding */
    }

    .author-avatar img {
        width: 70px; /* Smaller avatar on mobile */
        height: 70px;
        margin-bottom: 15px; /* Space between avatar and info */
    }

    .author-info h4 {
        margin-top: 10px; /* Add some top margin when stacked */
    }

    .author-info p {
        font-size: 0.95em; /* Slightly smaller text on mobile */
    }
}

@media (max-width: 480px) {
    .author-box {
        padding: 10px; /* Even less padding on very small screens */
    }

    .author-avatar img {
        width: 60px; /* Even smaller avatar */
        height: 60px;
    }
}

/* Buttons */
.btn {
  background-color: #0F766E;
  color: #fff;
  padding: 10px 20px;
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.btn:hover {
  background-color: #0C615B;
}

/* Social share */
.social-share {
  margin-top: 2rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.share-buttons li {
  margin: 0;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background-color: #eee;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  transition: background-color 0.3s ease;
  white-space: nowrap; /* Keeps icon+text together */
}

.share-buttons a:hover {
  background-color: #ddd;
}

.share-buttons i {
  font-size: 1rem;
}

/* Optional: Better spacing on small screens */
@media (max-width: 480px) {
  .share-buttons {
    justify-content: flex-start;
  }
}


/* Search Box */
.search-form input[type="search"] {
  padding: 8px;
  width: 70%;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.search-form input[type="submit"] {
  padding: 8px 12px;
  border: none;
  background: #0F766E;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 30px
}
.search-form input[type="submit"]:hover {
  background: #0C615B;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}
.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #0F766E;
}
.pagination .current {
  background: #0F766E;
  color: #fff;
  font-weight: bold;
}

/* Widget Titles */
.widget-title {
  font-size: 1.2rem;
  border-bottom: 2px solid #0F766E;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 50px;
}
.error-404 h1 {
  font-size: 4rem;
  color: #0F766E;
}
.error-404 p {
  font-size: 1.2rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .content-area {
    flex-direction: column;
  }
  .main-content, .sidebar {
    flex: 1 1 100%;
  }
  .related-post {
    flex: 1 1 100%;
  }
  .main-navigation ul {
    flex-direction: column;
    align-items: center;
  }
}

.related-posts {
  margin: 40px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
}

.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
  border-left: 4px solid #0F766E;
  padding-left: 10px;
}

.related-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.related-item {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 10px;
}

.related-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 10px;
}

.related-item p {
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  line-height: 1.4;
}

.related-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
}

/* General Comment Section Container */
#comments {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Comment Title */
#comments .comments-title {
    font-size: 1.75rem;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

/* Each Comment */
.comment-list li {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    padding-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.comment-list li:last-child {
    border-bottom: none;
}

/* Avatar Styling */
.comment-list .avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* Comment Content */
.comment-list .comment-content {
    flex: 1;
}

.comment-list .comment-author {
    font-weight: 600;
    color: #1f2937;
}

.comment-list .comment-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

/* Reply Link */
.comment-list .reply a {
    font-size: 0.875rem;
    color: #0F766E;
    transition: color 0.2s ease;
}

.comment-list .reply a:hover {
    color: #0C615B;
    text-decoration: underline;
}

/* Closed Comments Notice */
.no-comments {
    font-style: italic;
    color: #9ca3af;
}

/* Comment Form Styling */
.comment-form-container {
    margin-top: 3rem;
}

.comment-form-container h3 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 1rem;
}

/* Form Fields */
.comment-form-container input[type="text"],
.comment-form-container input[type="email"],
.comment-form-container input[type="url"],
.comment-form-container textarea {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form-container input:focus,
.comment-form-container textarea:focus {
    outline: none;
    border-color: #0F766E;
    box-shadow: 0 0 0 1px #0F766E;
}

/* Submit Button */
.comment-form-container .form-submit input[type="submit"],
.comment-form-container .submit {
    background-color: #0F766E;
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form-container .form-submit input[type="submit"]:hover,
.comment-form-container .submit:hover {
    background-color: #0C615B;
}

/* Responsive Design */
@media (max-width: 640px) {
    .comment-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-list .avatar {
        margin-bottom: 0.5rem;
    }
}

/* ========================
   General Reset & Layout
======================== */
.main-content {
  padding: 20px; /* Default for mobile */
  max-width: 1200px;
  margin: auto;
}

@media (min-width: 768px) {
  .main-content {
    padding: 50px;
  }
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* ========================
   Post Card Styling
======================== */
.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out;
  padding: 15px;
}

.post-card:hover {
  transform: translateY(-3px);
}

/* ---------- Shared thumbnail basics ---------- */
.post-thumb {
  display: block;              /* anchor behaves like a box */
}

.post-thumb img {
  width: 100%;
  height: 100%;
  display: block;              /* removes inline‑image gap */
  object-fit: cover;           /* zoom + crop */
  object-position: center;
}

/* ---------- Desktop & large tablets ---------- */
@media (min-width: 768px) {

  .post-thumb {
    width: 100%;               /* full card width */
    aspect-ratio: 16 / 9;      /* same 16 : 9 crop */
    overflow: hidden;
  }
}

/* ========================
   Post Content
======================== */
.post-info {
  padding: 15px;
}

.post-titlle {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-family: 'Segoe UI', sans-serif;
}

.post-titlle a {
  text-decoration: none;
  color: #333;
}

.post-titlle a:hover {
  color: #0F766E;
}

.post-meta {
  font-size: 0.9rem;
  color: #333;
  background: #e6f5f4;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.post-meta span {
  margin-right: 10px;
}

/* ========================
   Excerpt + Button
======================== */
.post-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 15px;
}

.read-more-btn {
  display: inline-block;
  background-color: #0F766E;
  color: #fff;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background-color: #005177;
}

/* ========================
   Mobile View
======================== */
@media (max-width: 767px) {
  .post-grid {
    display: block;
  }

  .post-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
  }

/* ---------- Mobile & small tablets ---------- */
@media (max-width: 767px) {

  .post-grid {
    display: block;            /* one card per row */
  }

  .post-card {
    display: flex;
    flex-direction: row;       /* thumb left, text right */
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
  }

  .post-thumb {
    flex-shrink: 0;
    width: 120px;              /* pick any fixed width you like */
    aspect-ratio: 16 / 9;      /* 16 : 9 crop */
    overflow: hidden;
    border-radius: 6px;
    margin-right: 10px;
  }
}

  .post-info {
    padding: 0;
    flex: 1;
  }

.post-titlle {
  font-size: 1rem;
  color: black; /* Sets the default link color to black */
}

/* To ensure it stays black on hover, visited, and active states: */
.post-titlle a:link,
.post-titlle a:visited,
.post-titlle a:hover,
.post-titlle a:active {
  color: black;
}

/* On home, archive, and search pages - hide author/comments but keep date */
body:is(.home, .archive, .search) .post-meta .post-author,
body:is(.home, .archive, .search) .post-meta .post-comments {
  display: none;
}

body:is(.home, .archive, .search) .post-meta {
  display: block;
}

/* Hide the excerpt */
body:is(.home, .archive, .search) .post-excerpt,
body:is(.home, .archive, .search) .read-more {
  display: none;
}
}

/* ==================================== */
/* 0. GLOBAL RESET & TYPOGRAPHY */
/* ==================================== */
.custom-header {
  font-family: 'system-ui', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Slightly deeper shadow for modern feel */
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white; /* Ensure header has a background */
}

/* New Class to prevent body scrolling when sidebar is open */
html.no-scroll, body.no-scroll {
    overflow: hidden;
}

.site-title-link {
  text-decoration: none;
}

/* ==================================== */
/* 1. TOP BAR (Mobile/Tablet/Desktop) */
/* ==================================== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px; /* Slightly more vertical padding */
  background: #0F766E; /* Deep Teal */
  color: white;
}

/* Hamburger & Search Icons (Containers) */
.menu-toggle, .search-toggle {
  cursor: pointer;
  padding: 8px; /* Increased padding around the icon for easy tapping */
  line-height: 1;
  transition: background-color 0.2s;
  border-radius: 6px;
}
.menu-toggle:hover, .search-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
}
/* Font Awesome Icons inside the containers */
.menu-toggle i, .search-toggle i {
  font-size: 24px; /* Standard icon size */
  color: white;
}

/* Site Logo/Title */
.site-logo { 
  flex-grow: 1; 
  text-align: center; 
}

.site-title {
  font-size: 1.5rem; /* More dominant title */
  font-weight: 800;
  letter-spacing: 0.5px;
  color: white; 
  margin: 0;
}

.site-tagline {
  font-size: 0.75rem; 
  font-weight: 300;
  color: #E6FFFA; 
  margin: 0;
}

/* ==================================== */
/* 2. SEARCH BOX */
/* ==================================== */
.search-box {
  display: none;
  padding: 15px;
  background: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
}

.search-box form {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.search-box input {
  flex-grow: 1;
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px; 
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  border-color: #0F766E;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.search-box button {
  background-color: #0F766E; 
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s;
}

.search-box button:hover {
  background-color: #0c5c56; 
}

.search-box button:active {
  background-color: #083c38;
  transform: translateY(1px);
}

/* ==================================== */
/* 3. BOTTOM NAV (Mobile Only) */
/* This is a secondary, scrollable navigation bar */
/* ==================================== */
.bottom-nav {
  overflow-x: auto;
  white-space: nowrap;
  background: #ffffff; 
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 
  border-top: none;
  padding: 0 10px;
}

.bottom-nav .menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between; 
}

.bottom-nav .menu-items li {
  display: inline-block;
  flex-shrink: 0; 
}

.bottom-nav .menu-items li a {
  display: flex; /* Use flex for icon alignment */
  align-items: center;
  gap: 6px; /* Space between icon and text */
  padding: 12px 12px; 
  color: #333; 
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s, background-color 0.2s;
  border-bottom: 3px solid transparent; 
}
.bottom-nav .menu-items li a i {
    font-size: 1rem;
    color: #0F766E; /* Icon color */
}

.bottom-nav .menu-items li a:hover {
  color: #0F766E; 
  border-bottom-color: #0F766E;
}

/* Hide on desktop */
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

/* ==================================== */
/* 4. SIDEBAR MENU (Mobile Only) */
/* ==================================== */
.sidebarr {
  position: fixed;
  top: 0;
  left: -280px; 
  width: 280px;
  height: 100%;
  background: #0F766E;
  color: white;
  padding: 15px 0; 
  transition: left 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); 
  z-index: 9999;
  overflow-y: auto;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
}

.sidebarr.active {
  left: 0;
}

.close-sidebarr {
  font-size: 36px; 
  text-align: right;
  cursor: pointer;
  margin-bottom: 20px; 
  padding: 0 20px;
  color: #E6FFFA;
  transition: color 0.2s;
}
.close-sidebarr i { /* Targeting the Font Awesome icon */
    font-size: 30px;
}

.close-sidebarr:hover {
  color: white;
}

.sidebarr-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebarr-menu li {
  margin-bottom: 0; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

/* Sidebar Menu Link Styles (Updated for icons) */
.sidebarr-menu li a {
  color: white;
  text-decoration: none;
  display: flex; /* IMPORTANT: Use flex to align icon and text */
  align-items: center; /* Center vertically */
  gap: 12px; /* Space between icon and text */
  padding: 10px 20px; 
  border-radius: 0; 
  font-size: 1rem; 
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  position: relative; 
}
.sidebarr-menu li a i {
    font-size: 1.1rem; /* Slightly larger icon in sidebar */
    color: #E6FFFA; /* Light color for contrast */
}


.sidebarr-menu li a:hover,
.sidebarr-menu li a:focus,
.sidebarr-menu li a:active {
  color: white !important;
  background: #0c5c56 !important; 
  text-decoration: none !important;
}

/* New: Dropdown indicator for menu items that have children */
.sidebarr-menu .menu-item-has-children > a {
  cursor: pointer;
}

.sidebarr-menu .menu-item-has-children > a::after {
  content: "›"; 
  font-size: 1.5rem;
  line-height: 1;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
}

.sidebarr-menu .menu-item-has-children.open > a::after {
  transform: translateY(-50%) rotate(90deg); 
}

/* New: Submenu styling (initially hidden, compact) */
.sidebarr-menu .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0; 
  overflow: hidden;
  transition: max-height 0.4s ease-out; 
  background: rgba(0, 0, 0, 0.1); 
}

/* Submenu link styles */
.sidebarr-menu .sub-menu li a {
  padding: 8px 35px; 
  font-size: 0.9rem;
  font-weight: 400;
  color: #E6FFFA; 
}

.sidebarr-menu .sub-menu li a:hover {
  background: #083c38 !important; 
}

/* Hide sidebar and hamburger on desktop */
@media (min-width: 768px) {
  .sidebarr,
  .menu-toggle {
    display: none;
  }
}

/* ==================================== */
/* 5. DESKTOP NAVIGATION (768px+) */
/* ==================================== */
.desktop-menu {
  display: none;
  background: white;
  border-top: 1px solid #f0f0f0;
}

/* ✅ Visible on Desktop Only */
@media (min-width: 768px) {
  .desktop-menu {
    display: block;
    box-shadow: inset 0 -1px 0 #e0e0e0;
  }

  /* Hide the top bar elements that are mobile-specific */
  .top-bar .menu-toggle,
  .top-bar .search-toggle {
    display: none;
  }

  /* Center the logo in the top bar on desktop */
  .top-bar {
    justify-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .site-logo {
    flex-grow: 0;
  }

  /* ✅ Responsive, single-line container */
  .desktop-menu-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: visible;
  }

  /* ✅ Desktop Navigation Menu */
  .desktop-nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 5px 0;
    width: 100%;
    flex-wrap: nowrap; /* single line always */
    white-space: nowrap;
    overflow-x: auto; /* allows gentle horizontal scroll if really needed */
    overflow-y: visible;
    scrollbar-width: none; /* hide scrollbar (Firefox) */
  }

  .desktop-nav-menu::-webkit-scrollbar {
    display: none; /* hide scrollbar (Chrome, Safari, Edge) */
  }

  /* Top-level parent links */
  .desktop-nav-menu > li {
    position: relative;
    flex-shrink: 0; /* prevent shrinking text */
  }

  .desktop-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
  }

  .desktop-nav-menu > li > a i {
    color: #0F766E;
    font-size: 0.95rem;
  }

  .desktop-nav-menu > li > a:hover {
    background-color: #f0fdf4;
    color: #0F766E;
    border-color: #a7f3d0;
  }

  /* Dropdown container */
  .desktop-nav-menu li {
    position: relative;
  }

  /* ✅ Show dropdown submenu on hover */
  .desktop-nav-menu li:hover > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Dropdown styles */
  .desktop-nav-menu .sub-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    z-index: 9999;
    pointer-events: none;
  }

  /* Submenu list items */
  .desktop-nav-menu .sub-menu li {
    width: 100%;
  }

  /* Submenu link styles */
  .desktop-nav-menu .sub-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
  }

  .desktop-nav-menu .sub-menu li a:hover {
    background: #f3f4f6;
    color: #0F766E;
  }

  .desktop-nav-menu .sub-menu li a i {
    color: #999;
    font-size: 0.9rem;
  }

  /* Optional dropdown caret */
  .desktop-nav-menu .menu-item-has-children > a::after {
    content: " ⌄";
    font-size: 12px;
    margin-left: 4px;
    color: #999;
  }
}


  figure {
  margin: 1.5em 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

figcaption {
  font-size: 0.95em;
  color: #555;
  margin-top: 0.5em;
  font-style: italic;
}

.breadcrumb {
  font-size: 0.9em;
  margin-bottom: 1.5em;
  color: #666;
}

/* Breadcrumb Links */
.breadcrumb a {
  color: #0F766E;
  font-weight: 600;             /* Makes it visually distinct */
  letter-spacing: 0.3px;        /* Subtle difference from regular text */
  transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: #0c5d58;               /* Darker shade on hover */
  background-color: #e6f7f5;    /* Soft highlight on hover */
}

.post-tags {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.post-tags a {
  display: inline-block;
  margin: 0 .25rem .4rem 0;
  padding: .25rem .5rem; /* Reduced padding */
  background: #f1f1f1;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background .2s ease;
  font-size: 0.85rem; /* Added or adjusted font size */
}

.post-tags a:hover {
  background: #e0e0e0;
}

.post-tags strong:first-child {
  display: inline-block;
  margin: 0 .25rem .4rem 0;
  padding: .25rem .5rem; /* Reduced padding */
  background: #0F766E;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: background .2s ease;
  font-size: 0.85rem; /* Added or adjusted font size */
}
.post-category {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  /* Removed color: white !important; from here as it's not needed for the container */
}

.post-category a {
  display: inline-block;
  margin: 0 0.5rem 0.2rem 0;
  padding: 0.15rem 0.5rem;
  background: #0F766E;
  border-radius: 6px;
  text-decoration: none;
  color: white; /* Changed this from #0F766E to white */
  transition: background 0.2s ease;
}

.inline-related-post-box{
  background:#e6f5f4;
  padding:10px;
  font-size:18px;
  font-weight:600;
  border-left:5px solid #2c3e50;
  line-height:1.6;
}
.inline-related-post-box a{
  color:#000;
  text-decoration:underline;
  font-weight:700;
}
.inline-related-post-box strong{margin-right:8px;
}

.inline-related-post-box strong:first-child {
  color: #0F766E; /* 🔴 Change this color code to any you want */
}

.footer-navigation {
  text-align: center;
  margin-top: 20px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  display: inline-block;
  margin: 0 10px;
}

.footer-menu a {
  text-decoration: none;
  color: #666;
}

.footer-menu a:hover {
  color: #000;
}

/* ================================
   ✅ Footer Widget Layout
================================ */

.site-footer {
  background-color: #e6f5f4;
  color: #444;
  font-size: 14px;
  padding: 40px 0 20px;
  border-top: 1px solid #eaeaea;
}

.footer-widgets.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget {
  margin-bottom: 20px;
}

.footer-widget h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  margin-bottom: 8px;
}

.footer-widget ul li a {
  text-decoration: none;
  color: #555;
  transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
  color: #000;
}

/* ================================
   ✅ Footer Section Styling
================================ */

/* Footer Widget Columns */
.footer-widgets.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.footer-widget {
  margin-bottom: 20px;
}

.footer-widget h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  margin-bottom: 8px;
}

.footer-widget ul li a {
  text-decoration: none;
  color: #555;
  transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
  color: #000;
}

/* ================================
   ✅ Footer Bottom: Menu + Copy
================================ */

.footer-bottom.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ddd;
  padding-top: 20px;
  padding-left: 1rem;
  padding-right: 1rem;
  gap: 1rem;
}

.footer-copy {
  flex: 1 1 auto;
  color: #333;
}

/* Footer Navigation Menu */
.footer-navigation {
  flex: 1 1 auto;
  text-align: center;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  display: inline-block;
  margin: 0 10px;
}

.footer-menu a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #000;
}

/* Footer Social Links */
.footer-social {
  flex: 1 1 auto;
  text-align: right;
}

.footer-social a {
  margin-left: 10px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #000;
}

/* ================================
   ✅ Responsive Adjustments
================================ */

@media (max-width: 768px) {
  .footer-bottom.container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social {
    text-align: center;
    margin-top: 10px;
  }

  .footer-navigation {
    margin: 10px 0;
  }
}

/* ============================
   ✅ Pagination Button Styling
=============================== */
.btn-load-more {
  display: inline-block;
  background-color: #0F766E;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-load-more:hover {
  background-color: #0d5f59;
}

.btn-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 👇 Centered bordered box for the buttons */
.ajax-pagination {
  text-align: center;
  padding: 1rem 1.5rem;      /* space between buttons and border */
  margin: 1.5rem auto 0;     /* center the whole box horizontally */
  border: 2px solid #0F766E;
  border-radius: 0px;        /* optional: rounded corners */
}

/* Hide previous button on first load */
.btn-prev {
  display: none;
}

/* Layout spacing for both buttons */
.btn-prev,
.btn-next {
  margin: 0 0.5rem;          /* horizontal spacing only; vertical handled by padding */
}

.post-count {
  text-align: center;
  font-size: 14px;
  margin-bottom: 1rem;
  color: #0F766E;
  font-weight: 500;
}

.image-wrapper {
  display: block;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.section-title {
  background-color: #e6f5f4; /* Your specified light teal background */
  color: #0F766E;             /* Your specified dark teal text color */
  padding: 15px;             /* Adds spacing around the text. Adjust as needed. */
}
/* =========================================================
   16:9 Thumbnail & Post‑Card Layout — Added by ChatGPT 2025‑07‑08
   ========================================================= */

/* ---------- Shared thumbnail basics ---------- */
.post-thumb {
  display: block;              /* make anchor a block box */
}

.post-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease; /* for hover zoom */
}

/* ---------- Mobile & small tablets ---------- */
@media (max-width: 767px) {

  .post-grid {
    display: block;            /* one card per row */
  }

  .post-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
  }

  .post-thumb {
    flex-shrink: 0;
    width: 100px;              /* fixed width */
    aspect-ratio: 16 / 9;      /* 16:9 crop */
    overflow: hidden;
    border-radius: 6px;
    margin-right: 10px;
  }
}

/* ---------- Desktop & large tablets ---------- */
@media (min-width: 768px) {

  /* 16:9 thumbnail spanning full card width */
  .post-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  /* Tighter vertical spacing on desktop */
  .post-card {
    padding-block: 12px;       /* top and bottom only */
  }
}

/* ---------- Hover effect on all devices that support hover ---------- */
@media (hover: hover) {
  .post-thumb:hover img {
    transform: scale(1.05);
  }
}


/* === ChatGPT 2025‑07‑08: Tightened vertical spacing === */

/* 1. Global – reduce inside padding */
.post-card {
  padding-block: 10px; /* top + bottom */
}

/* 2. Desktop (≥768px) – adjust grid gap and padding */
@media (min-width: 768px) {
  .post-grid {
    gap: 16px;
  }
  .post-card {
    padding-block: 12px;
  }
}

/* 3. Mobile (≤767px) – slimmer cards */
@media (max-width: 767px) {
  .post-card {
    padding-block: 6px;
    margin-block: 4px;
  }
}

/* List layout */
.widget .sc-post-item {
	display: flex;
	align-items: center;
	margin: 0 0 10px;
}
.widget .sc-thumb {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	overflow: hidden;
	border-radius: 6px;
	margin-right: 10px;
}
.widget .sc-list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.widget .sc-title {
	font-size: 0.95rem;
	line-height: 1.4;
	color: #333;
	text-decoration: none;
}
.widget .sc-title:hover { color: #0F766E; }

/* Footer widgets: thumbnail fix */
.footer-widgets .sc-post-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-widgets .sc-thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  margin-right: 10px;
}

.footer-widgets .sc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-widgets .sc-title {
  font-size: 0.9rem;
  color: #222;
  text-decoration: none;
  line-height: 1.4;
}

.footer-widgets .sc-title:hover {
  color: #0F766E;
}

.site-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 1.1;
}

.site-title-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  padding: 0;
  margin: 0;
  text-align: center;
}

.site-title {
  font-size: 1.3rem;       /* Base size */
  font-weight: 900;        /* Extra bold */
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0;
}

.site-tagline {
  font-size: 0.85rem;
  font-weight: 400;
  color: #d1d5db;
  margin-top: 0.1rem;
  margin-bottom: 0;
}

/* Medium screen (tablets and small laptops) */
@media (max-width: 768px) {
  .site-title {
    font-size: 1.1rem;
  }

  .site-tagline {
    font-size: 0.75rem;
  }
}

/* Small screen (phones) */
@media (max-width: 480px) {
  .site-title {
    font-size: 1rem;
  }

  .site-tagline {
    font-size: 0.68rem;
  }
}

/* ─── kill ALL hover effects on the header logo area ─── */
.site-logo,
.site-logo * {
  transition: none !important;          /* cancel fade / scale animations   */
}

.site-logo:hover,
.site-logo:focus,
.site-logo:active,
.site-logo a:hover,
.site-logo a:focus,
.site-logo a:active {
  color: inherit !important;            /* keep the current text colour     */
  text-decoration: none !important;     /* no underline                     */
  background: transparent !important;   /* no bg‑colour highlight           */
  box-shadow: none !important;          /* remove glow / shadow             */
  filter: none !important;              /* cancel brightness / blur effects */
  transform: none !important;           /* cancel any scale / translate     */
}

/* Reduce font size and padding of post-meta only on homepage */
body:is(.home, .archive, .search) .post-meta {
  font-size: 0.75rem;       /* smaller text */
  padding: 4px 8px;         /* less padding */
  margin-bottom: 8px;       /* slightly reduced margin */
}

body:is(.home, .archive, .search) .post-meta span {
  margin-right: 6px;        /* tighter spacing between spans */
}

@media (max-width: 600px) {
  body:is(.home, .archive, .search) .post-meta {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}
