/* ====== Base / Typography ====== */
:root{
  --blue:#2563eb; --blue-600:#2563eb; --blue-700:#1d4ed8;
  --ink:#0f172a; --text:#334155; --muted:#64748b;
  --soft-bg:#f8fafc; --panel:#ffffff; --border:#e5e7eb;

  --cat-general:#facc15; --cat-air:#3b82f6; --cat-water:#14b8a6;
  --cat-comfort:#22c55e; --cat-emf:#a78bfa; --cat-mold:#f43f5e;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--soft-bg); color:var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; line-height:1.5;
}

/* ====== Layout ====== */
.container{ max-width:1060px; margin:0 auto; padding:0 10px; }

/* Full-bleed sections (edge-to-edge) */
.bleed{
  width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
}

/* ====== Header Styling ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82); /* Background color */
  backdrop-filter: saturate(1.3) blur(6px);
  border-top: .25px solid var(--border); /* Lighter top border */
  border-left: .25px solid var(--border); /* Lighter left border */
  border-right: .25px solid var(--border); /* Lighter right border */
  border-bottom: 1px solid var(--border); /* Thicker bottom border */
  padding: 24px 26px; /* Add extra space around content for buffer */
  margin: 20px; /* Add margin around the header container */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 60px; /* Ensure header height */
  border-radius: 0; /* Keep sharp rectangle corners */
}

/* Category Navigation (Cat Nav) inside Header */

/* Category Navigation (Cat Nav) inside Header */
.catnav {
  display: flex;
  gap: 3px;  /* Reduced gap even further for closer links */
  flex-wrap: wrap;
  margin-top: 20px;  /* Added a little more margin to move the nav further down */
  margin-bottom: 5px;  /* Keep bottom margin for spacing */
  width: 100%;
  justify-content: flex-start; /* Align to the left */
}

/* Category Links Styling */
.catnav a {
  text-decoration: none;
  color: #333; /* Darker font color for links */
  font-weight: 500; /* Bolder text */
  font-family: 'Arial', sans-serif; /* Sharper font */
  font-size: 14px; /* Adjust to desired size */
  letter-spacing: 0.5px; /* Slight spacing for clarity */
  padding: 8px 16px;
  border-radius: 10px;
  transition: none; /* No transition for hover effects */
  margin-top: 6px; /* Slight margin-top to move the links lower */
}

.catnav a:hover {
  background-color: transparent; /* Remove hover background */
  color: #2563eb; /* Blue color on hover */
  font-weight: 800; /* Heavier font weight on hover */
}

/* Active Category Styling */
.catnav a.active {
  background-color: var(--blue-100); /* Active tab background color */
  color: white; /* Active tab text color */
  border-color: var(--blue); /* Blue border for active state */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Slight shadow for active state */
}


/* Brand section: 'Encore' and 'Building Health Blog' */
.brand {
  display: flex;
  align-items: center;
}


/* Utility section (Search Box, Buttons) Styling */
.util {
  display: flex;
  gap: none;
  justify-content: flex-end; /* Align to the right */
  align-items: center;
  width: 100%; /* Full width */
}

/* Search Box Styling */
.search {
  display: flex;
  align-items: center;
  gap: 1px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 16px;
  height: 36px;
}

/* Button for Search Magnifying Glass Icon */
.search-btn {
  background-color: transparent;
  border: none;
  padding: 6px;
  font-size: 18px; /* Adjusted size */
  cursor: pointer;
  margin-left: 6px; /* Moves it outside the text box */
}

/* Search input field */
.search-input {
  border: 1px solid var(--border); /* Set the border color */
  outline: none; /* Remove default outline */
  outline-offset: 2px; /* Adjust offset if needed */
  padding: 6px 12px; /* Ensure padding is consistent */
  font-size: 16px;
  width: 180px;
  box-sizing: border-box; /* Ensure padding is included in the total width */
}

/* Optional: Add focus outline to the search input */
.search-input:focus {
  border-color: var(--blue); /* Change border color when focused */
  outline: none; /* Optional: Add custom outline when focused */
  outline-offset: 4px; /* Adjust the outline offset if needed */
}



/* Button Styling for Login/Register */
.btn {
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
  padding: 6px 12px; /* Reduced padding for smaller buttons */
  font-weight: 500; /* Thinner font */
  font-size: 12px;  /* Smaller font */
  border: 1px solid var(--blue-700);
  margin-left: 12px;
  height: 30px;  /* Reduced height for smaller buttons */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  filter: brightness(.96);
}

/* Admin Button Styling */
.admin-btn {
  background-color: white;
  border: 1px solid #d1d5db; /* Thin grey border */
  color: black; /* Black font */
  padding: 6px 12px; /* Reduced padding for smaller button */
  border-radius: 5px;
  font-weight: 500; /* Thinner font */
  font-size: 12px;  /* Smaller font */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Register Button with Torso and Plus Icon */
.register-btn i {
  margin-right: 6px; /* Space between icons */
}

.register-btn {
  background-color: var(--blue);
  color: white;
  padding: 6px 12px; /* Reduced padding for smaller button */
  font-weight: 500; /* Thinner font */
  font-size: 12px; /* Smaller font */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* Adjusted Utility Section */
.util {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

/* ====== Hero Section ====== */

/* HERO SECTION */
.bleed.hero {
  position: relative;
  overflow: hidden;
  height: 420px; /* Height of Hero section */
  margin-bottom: 18px; /* Space below Hero */
  display: flex;
  justify-content: flex-start; /* Align content to the left */
  align-items: center;
  padding-left: 5%; /* Small margin on the left */
}

/* Hero Image */
.bleed.hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  z-index: 0;
}

/* Hero Overlay */
.bleed.hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(37, 99, 235, 0.4), rgba(37, 99, 235, 0.2) 42%, rgba(37, 99, 235, 0) 82%);
}

/* Text Block in Hero Section */
.bleed.hero .text {
  position: absolute;
  z-index: 2;
  top: 35%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px; /* Space between elements */
  left: 5%; /* Align text to the left */
}

/* Brandrow Section */
.bleed.hero .brandrow {
  display: flex;
  align-items: center; /* Vertically center EC sphere and text */
  gap: 15px; /* Space between EC sphere and Encore text */
}

/* EC Orb Styling */
.bleed.hero .logo-background {
  background-color: var(--blue);  /* Blue color for the EC orb */
  width: 60px;  /* Fixed size for the circle */
  height: 60px; /* Ensure it's circular */
  border-radius: 50%;  /* Perfect circle */
  display: flex;
  justify-content: center; /* Center the EC text inside the sphere */
  align-items: center; /* Center the EC text vertically */
  z-index: 3; /* Ensure the orb is on top */
}

/* EC Text Styling */
.bleed.hero .logo-text {
  color: white;
  font-size: 1.6rem;  /* Adjust EC text size */
  font-weight: bold;
}



/* "Building Health Services" Text */
.bleed.hero .bigline {
  font-size: 1.5rem; /* Smaller font size for Building Health Services */
  font-weight: 700;
  color: white; /* Set to white color */
  margin-top: 5px;
  line-height: 1.3;
}

/* Emojis Section */
.bleed.hero .emojis {
  font-size: 1.2rem;
  margin-top: 10px;
  display: flex;
  gap: 10px; /* Space between emojis */
  justify-content: flex-start; /* Align emojis to the left */
}

/* Additional styling for the Emojis section */
.bleed.hero .emojis span {
  font-size: 1.8rem;
}


/* "Encore" Title Styling */
.bleed.hero .title-encore {
  font-size: 2.75rem; /* Smaller font size for Encore */
  font-weight: 800;
  color: #fff;
  margin-left: 15px;
}


/* Tagline Styling */
.bleed.hero .tagline {
  font-size: 1.2rem;
  color: #fff;
  margin-top: 15px;
}

/* ====== Posts ====== */
.posts-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap:16px; }
.card{
  background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:16px;
  transition:box-shadow .18s, transform .18s; box-shadow:0 2px 14px rgba(0,0,0,.04);
}
.card:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.10); }
.card .meta-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.card .title{ font-weight:800; color:var(--ink); margin:4px 0 8px; font-size:18px }
.card .excerpt{ color:var(--muted); margin:0 0 10px; }
.card .meta-bottom{ display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px }

/* Category badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0b1220;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2e8f0;
}

.badge[data-cat="general"] { 
  background: var(--cat-general);
}

.badge[data-cat="air-quality"] { 
  background: var(--cat-air);
  color: #fff;
}

.badge[data-cat="water-quality"] { 
  background: var(--cat-water);
  color: #052e2b;
}

.badge[data-cat="comfort"] { 
  background: var(--cat-comfort);
  color: #05220e;
}

.badge[data-cat="emf"] { 
  background: var(--cat-emf);
  color: #1e0b3a;
}

.badge[data-cat="mold"] { 
  background: var(--cat-mold);
  color: #fff;
}


/* Footer */
.site-footer{ margin-top:38px; border-top:1px solid var(--border); color:var(--muted); padding:20px 0; }

/* Category Navigation (catnav) */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/* ====== Tabs Container (50/50 Split) ====== */
.wide-tabs .inner {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Split space 50/50 */
  gap: 10px; /* Small gap between the two tabs */
  padding: 0 6px; /* Small outer margins */
}

/* ====== Tab Button Styling ====== */
/* ====== Tab Button Styling ====== */
.wide-tabs a {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 400; /* Lighter font weight */
  font-size: 0.75rem; /* Reduced font size (12px) */
  padding: 8px 0; /* Reduced vertical padding for thinner tabs */
  border-radius: 12px; /* Rounded corners */
  transition: background .2s, color .2s; /* Smooth transition for background and text color */
}


/* ====== Latest Posts Styling ====== */
.wide-tabs .inner a:first-child { /* "Latest Posts" link */
  background-color: white; /* White background */
  color: var(--blue); /* Blue text */
  border: 1px solid var(--border); /* Light border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
}

/* ====== Feedback Styling (Inactive) ====== */
.wide-tabs .inner a:last-child { /* "Feedback" link */
  background-color: #f1f5f9; /* Light grey background */
  color: var(--muted); /* Dark grey text */
  border: 1px solid var(--border); /* Same border color */
}

/* ====== Hover Effects (Feedback) ====== */
.wide-tabs .inner a:last-child:hover {
  background-color: #2563eb; /* Light blue background on hover */
  color: white; /* White text on hover */
}

/* ====== Hover Effects for Latest Posts ====== */
.wide-tabs .inner a:first-child:hover {
  background-color: #f0f4ff; /* Light blue background on hover for Latest Posts */
  color: var(--blue); /* Keep blue text color on hover */
}

/* ====== Active Tab Styling ====== */
.wide-tabs a.active {
  background: var(--blue-100); /* Light blue background */
  color: white; /* White text */
  border-color: var(--blue); /* Blue border for active tab */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Slight shadow for active state */
}
/* Remove underline from all links inside the card */
.card-link {
  text-decoration: none; /* Remove underline */
}

/* Optional: If you want to style the hovered link differently (e.g., change color on hover) */
.card-link:hover {
  text-decoration: none; /* Ensure no underline when hovering */
  color: inherit; /* Retain original color */
}
/* ====== Comment Section ====== */
.comments-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
}

/* Comments title */
.comments-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

/* Comment list styling */
.comment-list {
  list-style-type: none;
  padding-left: 0;
}

/* Individual comment container */
.comment {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

/* Comment box styling */
.comment-box {
  background: #f9fafb;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.comment-meta .author {
  font-weight: 600;
}

.comment-body {
  font-size: 16px;
  color: #333;
}

/* Comment form styling */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-form label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.comment-form textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  resize: vertical; /* Allow vertical resizing */
  width: 100%;
  box-sizing: border-box;
  background-color: #fafafa;
  min-height: 120px; /* Larger height */
  transition: border-color 0.3s;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #2563eb; /* Highlight the textarea border on focus */
}

.comment-form button {
  background-color: #2563eb;
  color: white;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.comment-form button:hover {
  background-color: #1d4ed8; /* Darker blue on hover */
}

/* Styling for the comment text when no comments exist */
.muted {
  color: #64748b;
  font-style: italic;
}
/* Styling for the greeting */
.greeting {
  color: #64748b;         /* Light grey color */
  font-weight: 600;       /* Semi-bold text */
  font-size: 16px;        /* Set font size */
  margin-left: 20px;      /* Space between greeting and other elements */
  align-self: center;     /* Aligns the greeting vertically in the header */
  display: inline-block;  /* Makes sure the greeting stays inline with the header */
}


/* ====== Header Styling ====== */


/* Header Top Section: Includes Brand and Utility Buttons */
.header-top {
  display: flex;
  justify-content: space-between; /* Align brand and utility elements to opposite sides */
  width: 100%;
  align-items: center;
}

/* Brand section: 'Encore' and 'Building Health Blog' */
.brand {
  display: flex;
  align-items: center;
}

.encore {
  font-size: 1.8rem;  /* Blue 'Encore' */
  font-weight: 800;
  color: var(--blue);
  margin-right: 12px; /* Space between Encore and Building Health Blog */
}

.building-health {
  font-size: 1.2rem;  /* Smaller font size for 'Building Health Blog' */
  font-weight: 400;
  color: black;
  white-space: nowrap;
}

/* Utility section (Search Box, Buttons) Styling */
.util {
  display: flex;
  gap: 12px;
  justify-content: flex-end; /* Align to the right */
  align-items: center;
  width: 100%; /* Full width */
}

/* Search Box Styling */
/* Search Box Container */
.search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border); /* Make sure there's a border for consistency */
  border-radius: 12px; /* Rounded corners for both input and icon */
  padding: 6px 12px;
  font-size: 16px;
  height: 36px;
  width: auto;
}

/* Search Input Field */
.search-input {
  border: 1px; /* Remove internal border */
  outline: none; /* Remove focus outline */
  padding: 6px 12px;
  font-size: 16px;
  width: 180px; /* Fixed width to keep it consistent */
  box-sizing: border-box; /* Make sure padding is included */
  border-radius: 12px; /* Consistent rounded corners */
}

/* Search Icon (Magnifying Glass) */
.search-btn {
  background-color: transparent;
  border: none;
  font-size: 18px; /* Adjust size for better alignment */
  cursor: pointer;
  margin-left: 6px; /* Moves icon outside the input field */
  border-radius: 12px; /* Consistent rounding of the icon */
}

/* Optional: Focus styling for search input */
.search-input:focus {
  border-color: var(--blue); /* Border color on focus */
  outline: none; /* Remove focus outline */
}


/* Button Styling for Login/Register */
.btn {
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 500; /* Thinner font */
  font-size: 14px;  /* Smaller font */
  border: 1px solid var(--blue-700);
  margin-left: 12px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  filter: brightness(.96);
}

/* Admin Button Styling */
.admin-btn {
  background-color: white;
  border: 1px solid #d1d5db; /* Thin grey border */
  color: black; /* Black font */
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 500; /* Thinner font */
  font-size: 14px;  /* Smaller font */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Register Button with Torso and Plus Icon */
.register-btn i {
  margin-right: 6px; /* Space between icons */
}

.register-btn {
  background-color: var(--blue);
  color: white;
  padding: 8px 16px;
  font-weight: 500; /* Thinner font */
  font-size: 14px; /* Smaller font */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* Utility section (Search Box, Buttons) Styling */
.util {
  display: flex;
  gap: 12px;
  justify-content: flex-end; /* Align to the right */
  align-items: center;
  width: 100%; /* Full width */
}

/* Search Box Styling */
/* Search Box Styling */

/* Search Box Styling */
.search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 16px;
  height: 36px;
}

/* Button for Search Magnifying Glass Icon */
.search-btn {
  background-color: transparent;
  border: none;
  padding: 6px;
  font-size: 18px;
  cursor: pointer;
  margin-left: 12px; /* Adds space between the search box and the button */
}

/* Search input field */
.search-input {
  border: none; /* Remove border to avoid double borders */
  outline: none;
  padding: 6px 12px;
  font-size: 16px;
  width: 180px; /* Fixed width */
  box-sizing: border-box;
  border-radius: 12px; /* Consistent rounding with the button */
}


/* Button Styling for Login/Register */
.btn 
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 500; /* Thinner font */
  font-size: 14px;  /* Smaller font */
  border: 1px solid var(--blue-700);
  margin-left: 12px;
  height:



/* Modify the greeting container */
.util {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end; /* Aligns content to the right side */
}

/* Optional: Modify the spacing and appearance of the greeting when logged out */
.greeting {
  display: none; /* Hide when user is not logged in */
}

