/*
Theme Name: MEDBUS Blog Theme
Theme URI: https://medbus.com
Author: Medbus / Techbus
Author URI: https://techbus.org
Description: MEDBUS Clinic Management Software - Blog Theme with matching header and footer
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medbus
Tags: blog, custom-header, custom-footer, responsive-layout
*/

/* =========================================
   ROOT VARIABLES
   ========================================= */
:root {
    --primary-color: #096AC9;
    --primary-dark: #0B2238;
    --accent-color: #04498E;
    --primary-background: #E7F1FA;
    --rubik-font: "Rubik", sans-serif;
    --raleway-font: "Raleway", sans-serif;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: var(--raleway-font);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

/* =========================================
   TYPOGRAPHY HELPERS
   ========================================= */
.rubik { font-family: var(--rubik-font); letter-spacing: 0.6px; }
.raleway { font-family: var(--raleway-font); letter-spacing: 0.8px; }

/* =========================================
   LAYOUT
   ========================================= */
.padding-x {
    padding-left: 5rem;
    padding-right: 5rem;
}

/* =========================================
   HEADER
   ========================================= */
header {
    position: fixed;
    width: 100%;
    z-index: 200;
    top: 0;
    transition: 0.5s ease;
    background-color: white;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.625rem 5rem;
    border: 1px solid rgba(9, 106, 201, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    background-color: white;
}

.header-logo {
    width: 80px;
    display: block;
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
}

/* ---- Nav ---- */
nav.header-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

nav.header-navigation > .nav-links-group {
    width: 100%;
}

.nav-links-group > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--raleway-font);
    font-size: 15px;
    color: #585C7B;
    transition: 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.current-page { color: var(--primary-dark); }

/* Dropdown */
.drop-down { position: relative; }

.drop-button {
    font-family: var(--raleway-font);
    font-size: 15px;
    color: #585C7B;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.3s ease;
    padding: 0;
}

.drop-button svg { transition: 0.3s ease; }
.icon-rotate { transform: rotate(180deg); }

.drop-down-list {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    padding: 1.5rem 5rem;
    display: none;
    z-index: 300;
}

.drop-down-list.open { display: block; }

.drop-down-box {
    background-color: white;
    box-shadow: 0 0 4px #bbb;
    border-radius: 20px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
}

.drop-down-box::-webkit-scrollbar { width: 8px; }
.drop-down-box::-webkit-scrollbar-track { border-radius: 6px; background-color: #bbb; }
.drop-down-box::-webkit-scrollbar-thumb { width: 6px; background-color: #096AC9; border-radius: 6px; border: 0.8px solid #fff; }

.drop-down-box > img { width: 20%; object-fit: contain; position: sticky; top: 5px; }

.drop-down-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 80%;
    list-style: none;
    padding: 0.75rem;
    margin: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: 0.3s ease;
    color: var(--primary-dark);
}

.menu-link:hover { background-color: rgba(9, 105, 201, 0.216); }

.menu-link img { width: 2rem; flex-shrink: 0; }

.menu-link h6 {
    font-family: var(--rubik-font);
    font-size: 14px;
    margin: 0 0 2px;
    font-weight: 500;
}

.menu-link p {
    font-family: var(--raleway-font);
    font-size: 12px;
    margin: 0;
    color: #585C7B;
}

/* CTA Button */
.cta-button {
    background-color: #096AC9;
    color: white;
    border-radius: 12px;
    transition: 0.3s ease;
    font-family: var(--raleway-font);
    font-size: 15px;
    padding: 0.625rem 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-button:hover { background-color: #04498E; }

/* Hamburger */
.hamburger { display: none; }

.hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: #04498E;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom { stroke-dasharray: 12 63; }
#menu-bar:checked + label svg { transform: rotate(-45deg); }
#menu-bar:checked + label .line-top-bottom { stroke-dasharray: 20 300; stroke-dashoffset: -32.42; }
#menu-bar { display: none; }

/* =========================================
   BUTTONS
   ========================================= */
.fill-button {
    font-family: var(--raleway-font);
    font-weight: 500;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.fill-button:hover { background-color: var(--accent-color); }

.outline-button {
    font-family: var(--raleway-font);
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-align: center;
    transition: 0.3s ease;
}

.outline-button:hover { background-color: var(--accent-color); color: white; }

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 5rem;
    overflow: hidden;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.footer-newsletter-heading { flex: 0 0 47.5%; }

.footer-newsletter-heading h2 {
    font-family: var(--rubik-font);
    font-size: 46px;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.footer-newsletter-heading p {
    font-family: var(--raleway-font);
    font-size: 16px;
    font-weight: 300;
    color: #585C7B;
    line-height: 1.6;
    margin: 0;
}

.newsletter-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(9, 106, 201, 0.3);
    border-radius: 44px;
    padding: 0.75rem 1.25rem;
}

.newsletter-box input {
    outline: none;
    border: none;
    width: 100%;
    font-family: var(--raleway-font);
    font-size: 14px;
    color: #585C7B;
    background: transparent;
}

.newsletter-box button {
    white-space: nowrap;
    background-color: var(--primary-color);
    color: white;
    border-radius: 44px;
    padding: 8px 20px;
    font-family: var(--raleway-font);
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s ease;
}

.newsletter-box button:hover { background-color: var(--accent-color); }

.footer-divider { border: none; border-top: 1px solid rgba(9, 106, 201, 0.1); margin: 0; }

.footer-links-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.25rem;
}

.footer-links-columns {
    display: flex;
    flex-direction: row;
    gap: 10rem;
    flex: 0 0 66.66%;
}

.footer-link-col { display: flex; flex-direction: column; gap: 1.25rem; }

.footer-link-col h5 {
    color: var(--primary-color);
    font-family: var(--rubik-font);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
}

.footer-link-col-links { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-link {
    font-family: var(--raleway-font);
    color: #585C7B;
    font-size: 14px;
    transition: 0.3s ease;
}

.footer-link:hover { color: var(--primary-color); }

.footer-link.has-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-connect { flex: 0 0 33.33%; }

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-logo { width: 40px; display: block; }
.footer-bottom-logo img { width: 100%; }

.footer-copyright {
    font-family: var(--rubik-font);
    font-size: 14px;
    color: #585C7B;
}

/* =========================================
   SOCIAL ICONS
   ========================================= */
.social-icon {
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: 0.5s ease;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 15px rgba(255,255,255,0.28);
    background-color: #0B2238;
}

.social-icon .color-icon { position: absolute; transform: translateY(40px); transition: 0.5s ease; }
.social-icon:hover .color-icon { transform: translateY(0); }
.social-icon .dark-icon { transition: 0.5s ease; }
.social-icon:hover .dark-icon { transform: translateY(-40px); }

/* =========================================
   BLOG LISTING PAGE (/blogs)
   ========================================= */
.blog-page-wrapper {
    padding-top: 100px; /* offset fixed header */
    min-height: 100vh;
}

.blog-hero {
    background: linear-gradient(135deg, #E7F1FA 0%, #ffffff 100%);
    padding: 4rem 5rem;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(9, 106, 201, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(9, 106, 201, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero-content { position: relative; z-index: 1; text-align: center; }

.blog-hero-eyebrow {
    font-family: var(--rubik-font);
    font-size: 18px;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 0.6px;
    margin-bottom: 1rem;
    display: block;
}

.blog-hero h1 {
    font-family: var(--rubik-font);
    font-size: 50px;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.blog-hero p {
    font-family: var(--raleway-font);
    font-size: 16px;
    font-weight: 300;
    color: #585C7B;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}

/* Filter / Category Bar */
.blog-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 2rem 5rem 0;
}

.filter-btn {
    font-family: var(--raleway-font);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 44px;
    border: 1px solid #D9D9D9;
    color: #585C7B;
    cursor: pointer;
    transition: 0.3s ease;
    background: white;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Featured Post */
.blog-featured-section {
    padding: 2.5rem 5rem;
}

.featured-post-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: white;
    border: 1px solid #D9D9D9;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.4s ease;
}

.featured-post-card:hover {
    box-shadow: 0 10px 40px rgba(9, 106, 201, 0.15);
    transform: translateY(-4px);
}

.featured-post-image {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background: var(--primary-background);
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.featured-post-card:hover .featured-post-image img { transform: scale(1.04); }

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    font-family: var(--raleway-font);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 44px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured-post-body {
    padding: 2.5rem 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.post-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--raleway-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--primary-background);
    padding: 4px 14px;
    border-radius: 44px;
    width: fit-content;
}

.featured-post-body h2 {
    font-family: var(--rubik-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
    margin: 0;
}

.featured-post-body p {
    font-family: var(--raleway-font);
    font-size: 15px;
    font-weight: 300;
    color: #585C7B;
    line-height: 1.7;
    margin: 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-family: var(--raleway-font);
    font-size: 13px;
    color: #585C7B;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-item svg { flex-shrink: 0; }

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--raleway-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    transition: 0.3s ease;
    padding: 10px 22px;
    background-color: var(--primary-background);
    border-radius: 12px;
    width: fit-content;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.read-more-btn svg { transition: 0.3s ease; }
.read-more-btn:hover svg { transform: translateX(4px); }

/* Blog Grid */
.blog-grid-section {
    padding: 0 5rem 5rem;
}

.blog-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.blog-grid-header h3 {
    font-family: var(--rubik-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.post-card {
    background: white;
    border: 1px solid #D9D9D9;
    border-radius: 18px;
    overflow: hidden;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 0 8px 30px rgba(9, 106, 201, 0.15);
    transform: translateY(-6px);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--primary-background);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.06); }

.post-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.post-card-body h3 {
    font-family: var(--rubik-font);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
    margin: 0;
}

.post-card-body p {
    font-family: var(--raleway-font);
    font-size: 14px;
    font-weight: 300;
    color: #585C7B;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid #F0F0F0;
}

.post-card-footer .post-date {
    font-family: var(--raleway-font);
    font-size: 12px;
    color: #9B9B9B;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card-read-more {
    font-family: var(--raleway-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s ease;
}

.post-card-read-more:hover { gap: 10px; }

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 5rem 5rem;
}

.page-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-family: var(--raleway-font);
    font-size: 14px;
    font-weight: 500;
    color: #585C7B;
    border: 1px solid #D9D9D9;
    background: white;
    transition: 0.3s ease;
    cursor: pointer;
}

.page-btn:hover,
.page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.prev-next {
    width: auto;
    padding: 0 16px;
    gap: 6px;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 5rem 5rem;
}

.no-posts h3 {
    font-family: var(--rubik-font);
    font-size: 24px;
    color: var(--primary-dark);
}

.no-posts p {
    font-family: var(--raleway-font);
    font-size: 15px;
    color: #585C7B;
}

/* =========================================
   SINGLE POST PAGE
   ========================================= */
.single-post-wrapper {
    padding-top: 100px;
    min-height: 100vh;
}

.single-post-hero {
    background: var(--primary-background);
    padding: 3.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--raleway-font);
    font-size: 13px;
    color: #585C7B;
    margin-bottom: 1.5rem;
}

.post-breadcrumb a { color: var(--primary-color); transition: 0.3s ease; }
.post-breadcrumb a:hover { color: var(--accent-color); }
.post-breadcrumb span { color: #9B9B9B; }

.single-post-hero h1 {
    font-family: var(--rubik-font);
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.2;
    max-width: 800px;
    margin-bottom: 1.25rem;
}

.single-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.single-post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    padding: 3.5rem 5rem;
    align-items: start;
}

/* Post Content */
.single-post-content { max-width: none; }

.post-featured-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    max-height: 460px;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    font-family: var(--raleway-font);
    font-size: 15px;
    font-weight: 300;
    color: #3d3d3d;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.post-body h2 {
    font-family: var(--rubik-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-body h3 {
    font-family: var(--rubik-font);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-body p { margin-bottom: 1.25rem; }

.post-body ul, .post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.post-body li { margin-bottom: 0.5rem; }

.post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--primary-background);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #585C7B;
}

.post-body img {
    width: 100%;
    border-radius: 14px;
    margin: 1.5rem 0;
}

.post-body a { color: var(--primary-color); }
.post-body a:hover { color: var(--accent-color); text-decoration: underline; }

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #F0F0F0;
}

.post-tags .tag-label {
    font-family: var(--rubik-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
    margin-right: 0.25rem;
}

.post-tag {
    font-family: var(--raleway-font);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 14px;
    background: var(--primary-background);
    color: var(--primary-color);
    border-radius: 44px;
    transition: 0.3s ease;
}

.post-tag:hover { background: var(--primary-color); color: white; }

/* Share */
.post-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.post-share .share-label {
    font-family: var(--rubik-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--primary-background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: 0.3s ease;
}

.share-btn:hover { background: var(--primary-color); color: white; }

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--primary-background);
    border-radius: 18px;
    padding: 1.5rem;
    margin-top: 2.5rem;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    font-family: var(--rubik-font);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 4px;
}

.author-info p {
    font-family: var(--raleway-font);
    font-size: 13px;
    color: #585C7B;
    margin: 0;
    line-height: 1.5;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }

.sidebar-widget {
    background: white;
    border: 1px solid #E9E9E9;
    border-radius: 18px;
    padding: 1.5rem;
}

.sidebar-widget h4 {
    font-family: var(--rubik-font);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-background);
}

/* Search Widget */
.sidebar-search {
    display: flex;
    align-items: center;
    border: 1px solid #D9D9D9;
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-search input {
    border: none;
    outline: none;
    width: 100%;
    padding: 10px 14px;
    font-family: var(--raleway-font);
    font-size: 14px;
    color: #585C7B;
}

.sidebar-search button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar-search button:hover { background: var(--accent-color); }

/* Categories Widget */
.sidebar-categories { display: flex; flex-direction: column; gap: 0.5rem; }

.sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--raleway-font);
    font-size: 14px;
    color: #585C7B;
    transition: 0.3s ease;
}

.sidebar-cat-link:hover {
    background: var(--primary-background);
    color: var(--primary-color);
}

.sidebar-cat-count {
    background: var(--primary-background);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 44px;
}

/* Recent Posts Widget */
.sidebar-recent-posts { display: flex; flex-direction: column; gap: 1rem; }

.sidebar-recent-post {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.sidebar-recent-post img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-recent-post-info h5 {
    font-family: var(--rubik-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-dark);
    margin: 0 0 4px;
    line-height: 1.4;
    transition: 0.3s ease;
}

.sidebar-recent-post:hover h5 { color: var(--primary-color); }

.sidebar-recent-post-info span {
    font-family: var(--raleway-font);
    font-size: 12px;
    color: #9B9B9B;
}

/* CTA Widget */
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    text-align: center;
    color: white;
}

.sidebar-cta h4 {
    color: white;
    border-color: rgba(255,255,255,0.2);
}

.sidebar-cta p {
    font-family: var(--raleway-font);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.sidebar-cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    font-family: var(--raleway-font);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.sidebar-cta-btn:hover { background: var(--primary-background); }

/* Related Posts */
.related-posts-section {
    padding: 0 5rem 5rem;
}

.related-posts-section h3 {
    font-family: var(--rubik-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

/* =========================================
   POPUP FORM (reused from original)
   ========================================= */
.pop-form, .otp-form {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 106, 201, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.pop-form.open, .otp-form.open {
    display: flex;
}

.form-container {
    position: relative;
}

.form-container input, .form-container textarea {
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    padding: 16px;
    font-family: var(--raleway-font);
    font-size: 15px;
    color: white;
    outline: none;
    background: rgba(255,255,255,0.1);
    width: 100%;
}

.form-container input:focus, .form-container textarea:focus {
    border: 2px solid var(--accent-color);
}

.form-container textarea { height: 110px; resize: none; }

.close-form {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: 0.3s ease;
}

.close-form:hover { opacity: 1; }

.submit-button {
    background-color: white;
    color: var(--primary-color);
    border-radius: 12px;
    padding: 16px 12px;
    transition: 0.3s ease;
    cursor: pointer;
    font-family: var(--raleway-font);
    font-weight: 500;
    width: 100%;
}

.submit-button:hover { background-color: var(--accent-color); color: white; }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease forwards; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 80em) {
    .padding-x,
    .blog-hero,
    .blog-filter-bar,
    .blog-featured-section,
    .blog-grid-section,
    .blog-pagination,
    .single-post-hero,
    .single-post-content-wrapper,
    .related-posts-section,
    footer { padding-left: 3rem; padding-right: 3rem; }

    .header-inner { padding-left: 3rem; padding-right: 3rem; }
}

@media (max-width: 64em) {
    .blog-hero h1 { font-size: 38px; }
    .single-post-hero h1 { font-size: 32px; }
    .featured-post-card { grid-template-columns: 1fr; }
    .featured-post-body { padding: 2rem; }
    .featured-post-image { min-height: 260px; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .single-post-content-wrapper { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
    .footer-top { flex-direction: column; }
    .footer-links-columns { gap: 3rem; }
    .header-inner { padding-left: 1.5rem; padding-right: 1.5rem; }

    .hamburger { display: block; cursor: pointer; }

    nav.header-navigation {
        position: absolute;
        width: 100%;
        background-color: white;
        padding: 22px 20px;
        right: -150%;
        top: 70px;
        box-shadow: 0px 4px 4px #bbb;
        transition: 0.5s ease-in-out;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    nav.header-navigation.navbar-in-view { right: 0; }

    .nav-links-group > ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .drop-down-list {
        position: static;
        transform: none;
        left: 0;
        padding: 0;
    }

    .drop-down-menu-grid { grid-template-columns: 1fr; }
    .drop-down-box > img { display: none; }
    .drop-down-box { flex-direction: column; }
    .drop-down-menu-grid { width: 100%; }
}

@media (max-width: 48em) {
    .blog-hero { padding: 2.5rem 1.5rem; }
    .blog-hero h1 { font-size: 30px; }
    .blog-filter-bar,
    .blog-featured-section,
    .blog-grid-section,
    .blog-pagination,
    .single-post-hero,
    .single-post-content-wrapper,
    .related-posts-section,
    footer { padding-left: 1.5rem; padding-right: 1.5rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-newsletter-heading h2 { font-size: 30px; }
    .footer-links-columns { flex-direction: column; gap: 2rem; }
    .footer-links-row { flex-direction: column; }
}

@media (max-width: 40em) {
    .blog-hero h1 { font-size: 26px; }
    .single-post-hero h1 { font-size: 24px; }
    footer { padding-left: 0.75rem; padding-right: 0.75rem; }
}
