/*
Theme Name: ElevateWithB
Theme URI: https://elevatewithb.in
Author: Bhanu Prakash
Author URI: https://elevatewithb.in
Description: Cloud & Cybersecurity Blog theme by Bhanu Prakash. Dark navy navbar, green accents, magazine-style layout with sidebar widgets and category badges.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elevatewithb
Tags: blog, education, two-columns, right-sidebar, custom-menu, featured-images, post-formats
*/

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

:root {
    --navy: #1a1a2e;
    --navy-light: #16213e;
    --body-bg: #f8f9fa;
    --green: #16a34a;
    --green-dark: #15803d;
    --green-light: #22c55e;
    --white: #ffffff;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 4px 16px rgba(0,0,0,0.14);
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --red: #dc2626;
    --orange: #ea580c;
    --blue: #2563eb;
    --purple: #7c3aed;
    --teal: #0d9488;
    --pink: #db2777;
    --yellow: #ca8a04;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--body-bg);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

a {
    color: var(--green);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--green-dark);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--navy);
    color: #cbd5e1;
    font-size: 0.8125rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left a {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
}

.top-bar-left a:hover {
    color: var(--green-light);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-bar-links a {
    color: #cbd5e1;
    font-size: 0.8125rem;
    transition: color var(--transition);
}

.top-bar-links a:hover {
    color: var(--green-light);
}

.top-bar-social a {
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
    font-size: 0.875rem;
}

.top-bar-social a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* ============================================
   YOUTUBE BANNER
   ============================================ */
.yt-banner {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: var(--white);
    text-align: center;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.yt-banner a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.yt-banner a:hover {
    opacity: 0.9;
}

/* ============================================
   SITE HEADER / LOGO
   ============================================ */
.site-header-main {
    background: var(--white);
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.site-header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
}

.site-branding-text .site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.site-branding-text .site-title a {
    color: var(--navy);
}

.site-branding-text .site-tagline {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.header-search {
    position: relative;
}

.header-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.125rem;
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition);
}

.header-search-toggle:hover {
    background: var(--body-bg);
    color: var(--green);
}

.header-search-form {
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow-hover);
    padding: 12px;
    display: none;
    z-index: 100;
    width: 300px;
}

.header-search-form.active {
    display: block;
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
.main-navigation {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.main-navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu li a {
    display: block;
    padding: 14px 18px;
    color: #e2e8f0;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
    font-family: 'Poppins', sans-serif;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item > a,
.primary-menu li.current_page_item > a {
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border-bottom-color: var(--green);
}

/* Dropdown arrow */
.primary-menu li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
}

/* Dropdown */
.primary-menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy-light);
    min-width: 220px;
    list-style: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 1000;
}

.primary-menu li:hover > ul.sub-menu {
    display: block;
}

.primary-menu li ul.sub-menu li a {
    padding: 10px 18px;
    font-size: 0.875rem;
    border-bottom: none;
    border-left: 3px solid transparent;
}

.primary-menu li ul.sub-menu li a:hover {
    border-left-color: var(--green);
    background: rgba(255,255,255,0.04);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px;
}

.menu-toggle .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================
   NEWS TICKER
   ============================================ */
.news-ticker {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    overflow: hidden;
}

.news-ticker .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ticker-label {
    background: var(--red);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-content a {
    color: var(--text-dark);
    font-size: 0.875rem;
    padding-right: 40px;
    font-weight: 500;
}

.ticker-content a:hover {
    color: var(--green);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   CATEGORY BADGES
   ============================================ */
.cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    line-height: 1.4;
}

.cat-cybersecurity, .cat-ethical-hacking, .cat-ceh { background: var(--red); }
.cat-aws, .cat-cloud, .cat-cloud-computing { background: var(--orange); }
.cat-networking, .cat-network { background: var(--blue); }
.cat-devops, .cat-docker, .cat-kubernetes { background: var(--purple); }
.cat-linux, .cat-ubuntu { background: var(--teal); }
.cat-python, .cat-programming { background: var(--pink); }
.cat-azure, .cat-microsoft { background: #0078d4; }
.cat-tools, .cat-tutorials { background: var(--yellow); }
.cat-default { background: var(--green); }

/* ============================================
   HERO SECTION (FRONT PAGE)
   ============================================ */
.hero-section {
    padding: 40px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hero-main .hero-overlay {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.hero-main .hero-overlay .cat-badge {
    align-self: flex-start;
    margin-bottom: 12px;
}

.hero-main .hero-overlay h2 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-main .hero-overlay h2 a {
    color: #ffffff;
}

.hero-main .hero-overlay .hero-meta {
    color: #ffffff;
    font-size: 0.8125rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-side-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex: 1;
    min-height: 185px;
    background-size: cover;
    background-position: center;
}

.hero-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hero-side-card .hero-overlay {
    position: relative;
    min-height: 185px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.hero-side-card .hero-overlay .cat-badge {
    align-self: flex-start;
    margin-bottom: 8px;
}

.hero-side-card .hero-overlay h3 {
    color: #ffffff;
    font-size: 1.0625rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-side-card .hero-overlay h3 a {
    color: #ffffff;
}

.hero-side-card .hero-overlay .hero-meta {
    color: #ffffff;
    font-size: 0.8125rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.content-area {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--green);
    display: inline-block;
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   POST CARDS (GRID)
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
}

.post-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.post-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}

.post-card-thumb .cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.post-card-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
}

.post-card-body {
    padding: 20px;
}

.post-card-body h3 {
    font-size: 1.0625rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-card-body h3 a {
    color: var(--text-dark);
}

.post-card-body h3 a:hover {
    color: var(--green);
}

.post-card-excerpt {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more-link {
    color: var(--green);
    font-weight: 600;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.read-more-link:hover {
    gap: 8px;
    color: var(--green-dark);
}

.post-card-readmore {
    padding: 0 20px 16px;
}

.post-card-readmore a {
    color: var(--green);
    font-weight: 600;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.post-card-readmore a:hover {
    gap: 8px;
    color: var(--green-dark);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--green);
    font-family: 'Poppins', sans-serif;
}

/* Popular posts widget */
.popular-post-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.popular-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.popular-post-info h4 a {
    color: var(--text-dark);
}

.popular-post-info h4 a:hover {
    color: var(--green);
}

.popular-post-info .post-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* About widget */
.widget-about-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 14px;
    font-family: 'Poppins', sans-serif;
}

.widget-about-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.widget-about-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 6px;
}

/* Categories widget */
.cat-list {
    list-style: none;
}

.cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

.cat-list li:last-child {
    border-bottom: none;
}

.cat-list li a {
    color: var(--text-dark);
    font-weight: 500;
}

.cat-list li a:hover {
    color: var(--green);
}

.cat-list li .count {
    background: var(--body-bg);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* YouTube widget */
.widget-yt {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: var(--white);
    text-align: center;
}

.widget-yt .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.3);
}

.widget-yt-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.widget-yt p {
    font-size: 0.875rem;
    margin-bottom: 14px;
    opacity: 0.9;
}

.widget-yt .btn-subscribe {
    display: inline-block;
    background: var(--white);
    color: #dc2626;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.widget-yt .btn-subscribe:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* WhatsApp widget */
.widget-wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
    text-align: center;
}

.widget-wa .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.3);
}

.widget-wa-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.widget-wa p {
    font-size: 0.875rem;
    margin-bottom: 14px;
    opacity: 0.9;
}

.widget-wa .btn-whatsapp {
    display: inline-block;
    background: var(--white);
    color: #128c7e;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.widget-wa .btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ============================================
   CATEGORIES GRID (FRONT PAGE)
   ============================================ */
.categories-section {
    padding: 50px 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--body-bg);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.category-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.5rem;
    color: var(--white);
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.category-card h3 a {
    color: var(--text-dark);
}

.category-card .cat-count {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   YOUTUBE SECTION (FRONT PAGE)
   ============================================ */
.youtube-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
}

.youtube-section .section-title {
    color: var(--white);
}

.yt-cta-box {
    text-align: center;
    padding: 40px;
}

.yt-cta-box h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.yt-cta-box p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 24px;
    font-size: 1.0625rem;
}

.btn-yt-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dc2626;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition);
}

.btn-yt-subscribe:hover {
    background: #b91c1c;
    color: var(--white);
    transform: scale(1.05);
}

/* ============================================
   WHATSAPP CTA (FRONT PAGE)
   ============================================ */
.whatsapp-cta {
    padding: 50px 0;
    background: var(--white);
}

.whatsapp-cta-box {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    color: var(--white);
}

.whatsapp-cta-box h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.whatsapp-cta-box p {
    opacity: 0.9;
    margin-bottom: 24px;
    font-size: 1.0625rem;
}

.btn-wa-join {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: #128c7e;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition);
}

.btn-wa-join:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-hero {
    background: var(--navy);
    padding: 50px 0 40px;
    color: var(--white);
}

.single-hero .breadcrumbs {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

.single-hero .breadcrumbs a {
    color: rgba(255,255,255,0.7);
}

.single-hero .breadcrumbs a:hover {
    color: var(--green-light);
}

.single-hero .cat-badge {
    margin-bottom: 14px;
}

.single-hero h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 16px;
    max-width: 800px;
}

.single-hero .post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

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

.single-content {
    padding: 40px 0;
}

.single-content .content-grid {
    align-items: start;
}

.post-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--card-shadow);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.post-content h2 {
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.post-content h3 {
    margin: 24px 0 12px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.post-content ul, .post-content ol {
    margin: 0 0 16px 24px;
}

.post-content li {
    margin-bottom: 6px;
}

.post-content blockquote {
    border-left: 4px solid var(--green);
    background: var(--body-bg);
    padding: 20px 24px;
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-muted);
}

.post-content pre {
    background: var(--navy);
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 20px 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.post-content code {
    background: var(--body-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Share buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

.share-buttons span {
    font-weight: 700;
    font-size: 0.875rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all var(--transition);
}

.share-btn:hover {
    color: var(--white);
    opacity: 0.85;
    transform: translateY(-1px);
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.twitter { background: #1da1f2; }

/* Author bio */
.author-bio {
    background: var(--body-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.author-bio-info h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.author-bio-info .author-role {
    color: var(--green);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.author-bio-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Related posts */
.related-posts {
    padding: 40px 0;
}

.related-posts .posts-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-hero {
    background: var(--navy);
    padding: 40px 0;
    color: var(--white);
}

.page-hero h1 {
    color: var(--white);
    font-size: 2rem;
}

.page-hero .breadcrumbs {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.page-hero .breadcrumbs a {
    color: rgba(255,255,255,0.7);
}

.page-content {
    padding: 40px 0;
}

.page-content .post-content {
    padding: 36px;
}

/* About page */
.about-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
}

.about-info h2 {
    margin-bottom: 6px;
}

.about-info .about-role {
    color: var(--green);
    font-weight: 600;
    margin-bottom: 12px;
}

.about-info p {
    color: var(--text-muted);
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    font-family: 'Poppins', sans-serif;
}

.stat-card .stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.topic-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.topic-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
}

.topic-card h4 {
    margin-bottom: 8px;
}

.topic-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--card-shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--body-bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn-submit {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.contact-form .btn-submit:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-info-text a {
    color: var(--green);
    font-weight: 500;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--green);
    color: var(--white);
}

.pagination .page-numbers.dots {
    background: none;
    box-shadow: none;
    cursor: default;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
    display: flex;
    gap: 0;
}

.search-form .search-field {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--body-bg);
    transition: border-color var(--transition);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--green);
}

.search-form .search-submit {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: background var(--transition);
}

.search-form .search-submit:hover {
    background: var(--green-dark);
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: 30px;
}

.comments-area .comments-title {
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
}

.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-list .comment-body {
    display: flex;
    gap: 16px;
}

.comment-list .comment-author img {
    border-radius: 50%;
}

.comment-list .comment-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--navy);
    color: #cbd5e1;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.0625rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green);
    display: inline-block;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-brand .footer-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-brand .footer-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--green);
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #cbd5e1;
    font-size: 0.9375rem;
    transition: all var(--transition);
}

.footer-links li a:hover {
    color: var(--green-light);
    padding-left: 6px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.footer-contact-item .icon {
    color: var(--green);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: #cbd5e1;
}

.footer-contact-item a:hover {
    color: var(--green-light);
}

/* Footer bottom */
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8125rem;
    color: #64748b;
}

.footer-bottom a {
    color: var(--green-light);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(22,163,74,0.4);
    transition: all var(--transition);
    z-index: 990;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22,163,74,0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 300px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-side {
        flex-direction: row;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid,
    .posts-grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-side {
        flex-direction: column;
    }

    .hero-main {
        min-height: 280px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    .primary-menu.active {
        display: flex;
    }

    .primary-menu li a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-left: 3px solid transparent;
    }

    .primary-menu li a:hover {
        border-left-color: var(--green);
    }

    .primary-menu li ul.sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0,0,0,0.1);
    }

    .top-bar-left {
        display: none;
    }

    .top-bar-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .single-hero h1 {
        font-size: 1.5rem;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        min-height: 220px;
    }

    .hero-side-card {
        min-height: 160px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* WordPress alignment */
.alignleft {
    float: left;
    margin: 0 20px 16px 0;
}

.alignright {
    float: right;
    margin: 0 0 16px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 16px;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 16px;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    padding: 8px 0;
}

/* Screen reader text (WP accessibility) */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    word-wrap: normal;
}

.screen-reader-text:focus {
    background: var(--white);
    clip: auto;
    display: block;
    font-size: 0.875rem;
    padding: 15px 23px;
    position: fixed;
    top: 5px;
    left: 5px;
    z-index: 100000;
    width: auto;
    height: auto;
}
