/* ==================== ROOT & VARIABLES ==================== */
:root {
    --primary-dark: #1a1a2e;
    --primary-light: #0f3460;
    --accent-color: #e94560;
    --accent-light: #ff6b9d;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #ecf0f1;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-family-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    
    --transition: all 0.3s ease;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==================== GENERAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-image {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: var(--transition);
}

.logo-image:hover {
    filter: brightness(1.1);
}

/* ==================== HAMBURGER MENU ==================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .logo-text {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-light);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    overflow: hidden;
    transition: background 0.2s, border-color 0.2s;
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-form input {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: #fff;
    width: 160px;
    font-size: 14px;
    outline: none;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.search-form button {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.search-form button:hover {
    color: #fff;
    background: transparent;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ==================== FEATURED SECTION ==================== */
.featured-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.featured-card > a {
    display: block;
    overflow: hidden;
}

.featured-image,
.featured-image-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
}

.featured-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-content h3 {
    font-size: 1.25rem;
    margin: 1rem 0;
    line-height: 1.4;
}

.featured-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.featured-content h3 a:hover {
    color: var(--accent-color);
}

.excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.category-badge:hover {
    opacity: 0.8;
}

.post-footer {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.post-footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-footer a:hover {
    color: var(--accent-light);
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    color: var(--accent-light);
    margin-right: -5px;
}

/* ==================== CATEGORY FILTER ==================== */
.category-filter {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.cat-icon {
    margin-right: 0.5rem;
}

/* ==================== BLOG SECTION ==================== */
.blog-section {
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
}

.blog-card > a {
    display: block;
    overflow: hidden;
}

.post-image,
.post-image-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.sponsored-badge {
    display: inline-block;
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-card h2 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.blog-card h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card h2 a:hover {
    color: var(--accent-color);
}

.post-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.author-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.separator {
    opacity: 0.5;
}

.publish-date {
    color: var(--text-light);
}

.post-stats {
    display: flex;
    gap: 1rem;
}

.read-time,
.views {
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.pagination-btn:hover {
    background: var(--accent-light);
}

.page-info {
    color: var(--text-light);
    font-weight: 500;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    grid-column: span 1;
}

.ad-block {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

/* ==================== POST DETAIL PAGE ==================== */
.post-detail {
    background: white;
    margin-top: 2rem;
}

.post-header {
    margin-bottom: 2rem;
}

/* Make featured image anchor block-level so width:100% resolves correctly */
.post-header > a {
    display: block;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 2rem;
}

.post-title-section {
    padding: 2rem 0;
}

.post-sponsored-badge {
    display: inline-block;
    background: var(--warning-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
    color: var(--primary-dark);
}

.post-meta-details {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 1.5rem 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-details {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-details .author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-details .author-name a {
    color: var(--accent-color);
    text-decoration: none;
}

.post-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cat-link {
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-link:hover {
    text-decoration: underline;
}

/* ==================== POST CONTENT ==================== */
.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 2rem 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.post-content {
    grid-column: 1;
    /* Grid items default to min-width:auto which lets content blow out the column */
    min-width: 0;
    overflow: visible;
}

.post-sidebar {
    grid-column: 2;
}

.post-body {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.05rem;
    text-align: justify;
    /* hyphens:auto handles justified text properly without breaking words */
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    min-width: 0;
    padding-left: 5%;
    padding-right: 15%;
}

/* Override CKEditor inline style="width:Xpx" attributes — must use !important */
.post-body * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.post-body table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.post-body iframe,
.post-body embed,
.post-body video,
.post-body object {
    max-width: 100% !important;
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: var(--primary-dark);
}

.post-body h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--primary-dark);
}

.post-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
    text-align: justify;
}

.post-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.post-body ul,
.post-body ol {
    margin: 1rem 0 1rem 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body code {
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-family-mono);
    color: var(--accent-color);
}

.post-body pre {
    background: var(--primary-dark);
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

.post-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 1rem 0;
    color: var(--text-light);
    font-style: italic;
}

/* ==================== AFFILIATE SECTION ==================== */
.affiliate-section {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--success-color);
}

.affiliate-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.affiliate-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.affiliate-link {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    text-decoration: none;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.affiliate-link:hover {
    background: var(--accent-color);
    color: white;
}

.affiliate-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.affiliate-network {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ==================== SHARE SECTION ==================== */
.share-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.share-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.share-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.share-btn .share-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.share-btn .share-text {
    display: none;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.instagram {
    background: #E4405F;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

@media (min-width: 768px) {
    .share-btn .share-text {
        display: inline;
    }
    
    .share-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ==================== SIDEBAR COMPONENTS ==================== */
.author-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.author-card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-color);
}

.author-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.author-link:hover {
    color: var(--accent-light);
}

/* ==================== RELATED POSTS ==================== */
.related-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.related-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.related-item:last-child {
    border-bottom: none;
}

.related-item h4 {
    margin-bottom: 0.5rem;
}

.related-item h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.related-item h4 a:hover {
    color: var(--accent-color);
}

.related-item small {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==================== CATEGORY PAGE ==================== */
.category-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.header-content {
    text-align: center;
}

.category-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.category-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.post-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* ==================== SEARCH PAGE ==================== */
.search-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.search-header h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.search-form-large {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-form-large input,
.search-form-large button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.search-form-large input {
    flex: 1;
    background: white;
    color: var(--text-dark);
}

.search-form-large button {
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-form-large button:hover {
    background: var(--accent-light);
}

.search-info {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
}

.no-results-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results-suggestion {
    color: var(--text-light);
}

/* ==================== AUTHOR PAGE ==================== */
.author-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.author-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.author-header-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
}

.author-header-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.author-header-info p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.author-social-link {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.author-social-link:hover {
    background: var(--accent-light);
}

.author-post-count {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar .container {
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
    }
    
    .navbar-brand {
        flex: 1;
    }
    
    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        max-height: 700px;
    }
    
    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
        padding-bottom: 1rem;
        padding-top: 0.5rem;
    }
    
    .search-form {
        flex-direction: row;
        width: calc(100% - 2rem);
        margin: 0 1rem;
        box-sizing: border-box;
    }
    
    .search-form input {
        width: 100%;
        flex: 1;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        justify-content: start;
    }
    
    .post-content-wrapper {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }
    
    .post-sidebar {
        grid-column: 1;
    }
    
    .post-detail {
        padding: 0;
    }
    
    .post-title-section {
        padding: 1rem 0;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-meta-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .author-header-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .navbar .container {
        padding: 0 10px;
    }
    
    .search-form input {
        min-width: 0;
        width: 100%;
    }
    
    .search-form input::placeholder {
        font-size: 0.8rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu li {
        font-size: 0.9rem;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .featured-card,
    .blog-card {
        margin-bottom: 1rem;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.content-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}
