/* =============================================
   THE UPDATER - FRONTEND STYLES (COMPLETE)
   Colors: Crimson Red (#C8102E), Dark Charcoal (#333333)
   ============================================= */

/* =============================================
   RESET & BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #C8102E;
    --primary-dark: #A00D24;
    --primary-light: #E8A0B0;
    --primary-bg: #FDF2F4;
    --dark: #333333;
    --dark-light: #555555;
    --gray: #888888;
    --gray-light: #DDDDDD;
    --gray-bg: #F5F5F5;
    --white: #FFFFFF;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #3498DB;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 5px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-bg);
    color: var(--dark);
    line-height: 1.7;
    padding-top: var(--header-height);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   HEADER - FIXED
   ============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Georgia', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.site-logo img {
    height: 35px;
}

.site-logo span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav ul li a {
    display: block;
    padding: 8px 16px;
    color: var(--dark-light);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.main-nav ul li a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions .search-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--dark-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.header-actions .search-toggle:hover {
    background: var(--gray-bg);
    color: var(--primary);
}

.header-actions .btn {
    padding: 8px 20px;
    font-size: 13px;
}

.header-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.header-actions .btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.header-actions .btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.header-actions .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
}

/* =============================================
   USER DROPDOWN (Header)
   ============================================= */
.user-dropdown {
    position: relative;
}

.user-dropdown .user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--dark);
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-dropdown .user-btn:hover {
    background: var(--gray-bg);
}

.user-dropdown .user-btn i {
    font-size: 18px;
    color: var(--gray);
}

.user-dropdown .user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--gray-light);
    padding: 8px 0;
    z-index: 100;
}

.user-dropdown.open .user-dropdown-menu {
    display: block;
    animation: dropdownFade 0.2s ease;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--dark);
    font-size: 14px;
    transition: var(--transition);
}

.user-dropdown-menu a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.user-dropdown-menu a i {
    width: 18px;
    color: var(--gray);
}

.user-dropdown-menu a.text-danger {
    color: var(--danger);
}

.user-dropdown-menu a.text-danger:hover {
    background: #F8D7DA;
    color: var(--danger);
}

.user-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 6px 15px;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   MOBILE NAV
   ============================================= */
.mobile-nav {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    padding: 10px 0;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    font-size: 15px;
    border-bottom: 1px solid var(--gray-bg);
    transition: var(--transition);
}

.mobile-nav ul li a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* =============================================
   SEARCH OVERLAY
   ============================================= */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.search-overlay.open {
    display: flex;
}

.search-overlay-inner {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.search-overlay-inner .search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

.search-overlay-inner form {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.search-overlay-inner form input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 18px;
    outline: none;
}

.search-overlay-inner form button {
    padding: 18px 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.search-overlay-inner form button:hover {
    background: var(--primary-dark);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #1E8449;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #C0392B;
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-warning:hover {
    background: #D68910;
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #CCCCCC;
}

.btn-sm {
    padding: 5px 14px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =============================================
   ALERTS
   ============================================= */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border-color: #C3E6CB;
}

.alert-danger {
    background: #F8D7DA;
    color: #721C24;
    border-color: #F5C6CB;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border-color: #FFEEBA;
}

.alert-info {
    background: #D1ECF1;
    color: #0C5460;
    border-color: #BEE5EB;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    padding: 30px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.hero-main .post-card-hero {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-main .post-card-hero .post-image {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.hero-main .post-card-hero .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-main .post-card-hero .post-content {
    padding: 25px;
}

.hero-main .post-card-hero .post-content h2 {
    font-size: 28px;
    font-family: 'Georgia', serif;
    margin: 10px 0;
}

.hero-main .post-card-hero .post-content h2 a {
    color: var(--dark);
}

.hero-main .post-card-hero .post-content h2 a:hover {
    color: var(--primary);
}

.hero-main .post-card-hero .post-content p {
    color: var(--dark-light);
    font-size: 16px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card-side {
    display: flex;
    gap: 15px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card-side:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.post-card-side .post-image {
    width: 120px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.post-card-side .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-side .post-content {
    flex: 1;
}

.post-card-side .post-content h3 {
    font-size: 15px;
    font-family: 'Georgia', serif;
    margin: 5px 0;
}

.post-card-side .post-content h3 a {
    color: var(--dark);
}

.post-card-side .post-content h3 a:hover {
    color: var(--primary);
}

/* =============================================
   POST CARD
   ============================================= */
.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.post-card .post-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.03);
}

.post-card .post-content {
    padding: 20px;
}

.post-card .post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.post-card .post-category {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card .post-date {
    font-size: 13px;
    color: var(--gray);
}

.post-card .post-views {
    font-size: 13px;
    color: var(--gray);
}

.post-card h3 {
    font-family: 'Georgia', serif;
    font-size: 18px;
    line-height: 1.4;
    margin: 8px 0 10px;
}

.post-card h3 a {
    color: var(--dark);
}

.post-card h3 a:hover {
    color: var(--primary);
}

.post-card p {
    color: var(--dark-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.post-card .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray);
}

.post-card .post-author a {
    color: var(--dark);
    font-weight: 500;
}

.post-card .post-author a:hover {
    color: var(--primary);
}

/* =============================================
   POSTS GRID
   ============================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* =============================================
   POST CARD LIST
   ============================================= */
.post-card-list {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}

.post-card-list:hover {
    box-shadow: var(--shadow-hover);
}

.post-card-list .post-image {
    width: 280px;
    min-height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.post-card-list .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-list .post-content {
    padding: 25px;
    flex: 1;
}

.post-card-list .post-content h2 {
    font-family: 'Georgia', serif;
    font-size: 22px;
    margin: 8px 0 10px;
}

.post-card-list .post-content h2 a {
    color: var(--dark);
}

.post-card-list .post-content h2 a:hover {
    color: var(--primary);
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-family: 'Georgia', serif;
    font-size: 24px;
    color: var(--dark);
}

.section-header h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.section-header .view-all {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.section-header .view-all:hover {
    color: var(--primary);
}

/* =============================================
   CATEGORIES SECTION
   ============================================= */
.categories-section {
    padding: 40px 0 20px;
    overflow: hidden;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
}

.category-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.category-card .category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.category-card .category-info {
    flex: 1;
    min-width: 0;
}

.category-card .category-info h4 {
    font-size: 14px;
    color: var(--dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card .category-info span {
    font-size: 12px;
    color: var(--gray);
}

.category-card .category-label {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 6px;
}

.category-card .category-label.news-label {
    background: #C8102E;
    color: white;
}

.category-card .category-label.blog-label {
    background: #3498DB;
    color: white;
}

.category-card .fa-arrow-right {
    margin-left: auto;
    color: var(--gray);
    transition: var(--transition);
    flex-shrink: 0;
}

.category-card:hover .fa-arrow-right {
    color: var(--primary);
    transform: translateX(3px);
}

/* =============================================
   TRENDING SECTION
   ============================================= */
.trending-section {
    padding: 30px 0 40px;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.trending-item {
    display: flex;
    gap: 15px;
    background: var(--white);
    padding: 18px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.trending-item:hover {
    box-shadow: var(--shadow-hover);
}

.trending-item .trending-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Georgia', serif;
    line-height: 1;
    min-width: 35px;
}

.trending-item .trending-content {
    flex: 1;
}

.trending-item .trending-content h4 {
    font-size: 15px;
    font-family: 'Georgia', serif;
    margin: 0 0 5px;
}

.trending-item .trending-content h4 a {
    color: var(--dark);
}

.trending-item .trending-content h4 a:hover {
    color: var(--primary);
}

.trending-item .trending-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--gray);
}

.trending-item .trending-meta .post-category {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-wrapper {
    min-width: 300px;
    max-width: 320px;
}

.sidebar {
    position: relative;
    top: 0;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.sidebar-widget .widget-title {
    font-family: 'Georgia', serif;
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-bg);
}

.sidebar-widget .widget-title i {
    color: var(--primary);
    margin-right: 8px;
}

.search-form {
    display: flex;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-form button {
    padding: 10px 18px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);
}

.trending-list {
    list-style: none;
    padding: 0;
}

.trending-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-bg);
}

.trending-list li:last-child {
    border-bottom: none;
}

.trending-list li a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--dark);
    font-size: 14px;
    line-height: 1.4;
}

.trending-list li a:hover {
    color: var(--primary);
}

.trending-list .trending-number {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
    min-width: 25px;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-bg);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 14px;
    transition: var(--transition);
}

.category-list li a:hover {
    color: var(--primary);
}

.category-list .category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-list .category-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray);
}

.newsletter-widget {
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
}

.newsletter-widget p {
    font-size: 14px;
    color: var(--dark-light);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* =============================================
   SIDEBAR BANNER
   ============================================= */
.sidebar-banner {
    padding: 0 !important;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sidebar-banner:hover {
    box-shadow: var(--shadow-hover);
}

.sidebar-banner a {
    display: block;
    position: relative;
    text-decoration: none;
}

.sidebar-banner .banner-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.sidebar-banner:hover .banner-image {
    transform: scale(1.02);
}

.sidebar-banner .banner-cta {
    display: block;
    padding: 12px 20px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-banner a:hover .banner-cta {
    background: var(--primary-dark);
}

.sidebar-banner .banner-placeholder {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* =============================================
   CONTENT WRAPPER
   ============================================= */
.content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.content-wrapper .main-content {
    flex: 1;
    min-width: 0;
}

/* =============================================
   SINGLE POST PAGE
   ============================================= */
.single-post {
    padding: 30px 0 50px;
}

.post-article .post-header {
    margin-bottom: 25px;
}

.post-article .post-header .post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.post-article .post-header h1 {
    font-family: 'Georgia', serif;
    font-size: 34px;
    line-height: 1.3;
    color: var(--dark);
    margin: 10px 0 15px;
}

.post-article .post-header .post-author-bio {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-article .post-header .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
}

.post-article .post-header .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-article .post-header .author-info .author-name {
    font-weight: 600;
    font-size: 15px;
}

.post-article .post-header .author-info .author-name a {
    color: var(--dark);
}

.post-article .post-header .author-info .author-username {
    font-size: 13px;
    color: var(--gray);
}

.post-featured-image {
    margin: 20px 0 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-article .post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--dark);
}

.post-article .post-content p {
    margin-bottom: 20px;
}

.post-article .post-content h2,
.post-article .post-content h3 {
    font-family: 'Georgia', serif;
    margin: 30px 0 15px;
}

.post-article .post-content ul,
.post-article .post-content ol {
    margin: 15px 0 20px;
    padding-left: 25px;
}

.post-article .post-content li {
    margin-bottom: 8px;
}

.post-article .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.post-article .post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--primary-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.post-article .post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-article .post-content table th,
.post-article .post-content table td {
    padding: 10px 15px;
    border: 1px solid var(--gray-light);
}

.post-article .post-content table th {
    background: var(--gray-bg);
    font-weight: 600;
}

.post-article .post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.post-article .post-footer .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-article .post-footer .tag {
    background: var(--gray-bg);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--dark-light);
}

.post-article .post-footer .post-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-article .post-footer .post-share span {
    font-size: 14px;
    color: var(--gray);
}

.post-article .post-footer .post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-bg);
    color: var(--dark);
    transition: var(--transition);
}

.post-article .post-footer .post-share a:hover {
    background: var(--primary);
    color: var(--white);
}

.breaking-badge {
    display: inline-block;
    background: var(--danger);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.featured-badge {
    display: inline-block;
    background: var(--warning);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.author-box {
    display: flex;
    gap: 20px;
    background: var(--gray-bg);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

.author-box .author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 28px;
    flex-shrink: 0;
}

.author-box .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box .author-info h4 {
    font-size: 18px;
    font-family: 'Georgia', serif;
    margin: 0 0 3px;
}

.author-box .author-info h4 a {
    color: var(--dark);
}

.author-box .author-info p {
    color: var(--gray);
    font-size: 14px;
    margin: 0 0 10px;
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
}

.comments-section h3 {
    font-family: 'Georgia', serif;
    font-size: 22px;
    margin-bottom: 20px;
}

.comment-form {
    background: var(--gray-bg);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
}

.comment-form h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.comment-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
}

.comment-form .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.comment-login-prompt {
    background: var(--gray-bg);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 20px;
}

.comment-login-prompt a {
    font-weight: 600;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-bg);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item .comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.comment-item .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-item .comment-body {
    flex: 1;
}

.comment-item .comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-item .comment-author {
    font-weight: 600;
    font-size: 15px;
}

.comment-item .comment-date {
    font-size: 12px;
    color: var(--gray);
}

.comment-item .comment-body p {
    font-size: 14px;
    color: var(--dark-light);
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    font-family: 'Georgia', serif;
    font-size: 22px;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.post-card-small {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card-small:hover {
    box-shadow: var(--shadow-hover);
}

.post-card-small .post-image {
    height: 140px;
    overflow: hidden;
}

.post-card-small .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-small .post-content {
    padding: 15px;
}

.post-card-small .post-content .post-meta {
    margin-bottom: 5px;
}

.post-card-small .post-content h4 {
    font-family: 'Georgia', serif;
    font-size: 15px;
    line-height: 1.4;
}

.post-card-small .post-content h4 a {
    color: var(--dark);
}

/* =============================================
   AUTHOR PAGE
   ============================================= */
.author-header {
    background: var(--white);
    padding: 40px 0;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 30px;
}

.author-profile .author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 40px;
    flex-shrink: 0;
}

.author-profile .author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-profile .author-details h1 {
    font-family: 'Georgia', serif;
    font-size: 28px;
    margin: 0;
}

.author-profile .author-details .author-username {
    color: var(--gray);
    font-size: 16px;
}

.author-profile .author-details .author-bio {
    color: var(--dark-light);
    margin: 8px 0;
}

.author-profile .author-details .author-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--gray);
}

.author-profile .author-details .author-stats i {
    margin-right: 5px;
}

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-page {
    padding: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - 100px);
}

.auth-box {
    background: var(--white);
    padding: 45px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    max-width: 420px;
    width: 100%;
    border-top: 5px solid var(--primary);
}

.auth-box .auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-box .auth-header h1 {
    font-family: 'Georgia', serif;
    font-size: 26px;
    color: var(--dark);
}

.auth-box .auth-header p {
    color: var(--gray);
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.auth-form .form-group .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.auth-form .form-group .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-group .form-control {
    padding-right: 45px;
}

.auth-form .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 16px;
}

.auth-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-form .form-options a {
    color: var(--primary);
}

.auth-form .form-options a:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    font-size: 14px;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-page {
    padding: 30px 0 50px;
}

.profile-page .page-header {
    margin-bottom: 30px;
}

.profile-page .page-header h1 {
    font-family: 'Georgia', serif;
    font-size: 28px;
    color: var(--dark);
}

.profile-page .page-header p {
    color: var(--gray);
    font-size: 15px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

.profile-card-left {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    position: sticky;
    top: 90px;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 42px;
    margin: 0 auto 15px;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.avatar-upload-btn label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: var(--gray-bg);
    border: 1px dashed var(--gray-light);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--dark-light);
    cursor: pointer;
    transition: var(--transition);
}

.avatar-upload-btn label:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.avatar-remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.avatar-remove-btn:hover {
    background: #F8D7DA;
}

.profile-user-info {
    margin-top: 10px;
}

.profile-user-info h2 {
    font-family: 'Georgia', serif;
    font-size: 20px;
    margin: 0;
}

.profile-user-info .profile-username {
    color: var(--gray);
    font-size: 14px;
    margin: 2px 0 8px;
}

.profile-user-info .profile-role {
    display: inline-block;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-role.admin {
    background: #C8102E;
    color: white;
}

.profile-role.editor {
    background: #F39C12;
    color: white;
}

.profile-role.author {
    background: #3498DB;
    color: white;
}

.profile-role.subscriber {
    background: #95A5A6;
    color: white;
}

.profile-bio {
    margin-top: 12px;
    padding: 12px;
    background: var(--gray-bg);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--dark-light);
    text-align: left;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.profile-stats .stat-item {
    text-align: center;
}

.profile-stats .stat-number {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.profile-stats .stat-label {
    font-size: 12px;
    color: var(--gray);
}

.profile-quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--gray-bg);
    border-radius: var(--radius);
    color: var(--dark);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.profile-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.profile-link i {
    width: 20px;
    text-align: center;
}

.profile-link.logout {
    color: var(--danger);
}

.profile-link.logout:hover {
    background: #F8D7DA;
    color: var(--danger);
}

.profile-card-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-form-card {
    background: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.profile-form-card h3 {
    font-family: 'Georgia', serif;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-bg);
}

.profile-form-card h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.profile-form-card .form-group {
    margin-bottom: 18px;
}

.profile-form-card .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.profile-form-card .form-group .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.profile-form-card .form-group .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.profile-form-card .form-group .input-group {
    position: relative;
}

.profile-form-card .form-group .input-group .form-control {
    padding-right: 45px;
}

.profile-form-card .form-group .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.profile-form-card .form-group .toggle-password:hover {
    color: var(--dark);
}

.profile-form-card .btn {
    margin-top: 5px;
}

/* =============================================
   ADD POST / EDIT POST PAGE
   ============================================= */
.add-post-page {
    padding: 30px 0;
}

.post-form-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.post-form-card .form-group {
    margin-bottom: 20px;
}

.post-form-card .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.post-form-card .form-group .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.post-form-card .form-group .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.post-form-card .form-group textarea.form-control {
    resize: vertical;
    min-height: 200px;
}

.post-form-card .text-danger {
    color: var(--danger);
}

.image-preview-wrapper {
    margin-top: 10px;
}

.image-preview-wrapper .image-preview {
    max-height: 200px;
    border-radius: var(--radius);
    border: 2px dashed var(--gray-light);
    padding: 5px;
    background: var(--gray-bg);
}

/* =============================================
   MY POSTS PAGE
   ============================================= */
.my-posts {
    padding: 30px 0;
}

.posts-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.posts-table {
    width: 100%;
    border-collapse: collapse;
}

.posts-table thead {
    background: var(--gray-bg);
}

.posts-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--dark-light);
    border-bottom: 2px solid var(--gray-light);
}

.posts-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-bg);
    font-size: 14px;
    vertical-align: middle;
}

.posts-table tbody tr:hover {
    background: var(--primary-bg);
}

.posts-table .actions {
    display: flex;
    gap: 8px;
}

.posts-table .badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    background: #D4EDDA;
    color: #155724;
}

.badge-warning {
    background: #FFF3CD;
    color: #856404;
}

.badge-danger {
    background: #F8D7DA;
    color: #721C24;
}

.badge-secondary {
    background: #E9ECEF;
    color: #6C757D;
}

/* =============================================
   MY COMMENTS PAGE
   ============================================= */
.my-comments {
    padding: 30px 0;
}

.comment-item-user {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    transition: var(--transition);
}

.comment-item-user:hover {
    box-shadow: var(--shadow-hover);
}

.comment-item-user .comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.comment-item-user .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-item-user .comment-body {
    flex: 1;
}

.comment-item-user .comment-body .comment-post-link {
    font-size: 13px;
    color: var(--gray);
}

.comment-item-user .comment-body .comment-post-link a {
    color: var(--primary);
}

.comment-item-user .comment-body .comment-post-link a:hover {
    text-decoration: underline;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    color: var(--dark);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =============================================
   PAGE CONTENT
   ============================================= */
.page-content {
    padding: 40px 0;
}

.page-content .page-header {
    margin-bottom: 30px;
}

.page-content .page-header h1 {
    font-family: 'Georgia', serif;
    font-size: 32px;
    color: var(--dark);
}

.page-content .page-header p {
    color: var(--gray);
    font-size: 16px;
}

.about-content h2,
.legal-content h2 {
    font-family: 'Georgia', serif;
    font-size: 22px;
    margin: 25px 0 12px;
    color: var(--dark);
}

.about-content p,
.legal-content p {
    color: var(--dark-light);
    font-size: 16px;
    margin-bottom: 15px;
}

.about-content ul,
.legal-content ul {
    margin: 15px 0 20px;
    padding-left: 25px;
}

.about-content ul li,
.legal-content ul li {
    color: var(--dark-light);
    font-size: 16px;
    margin-bottom: 8px;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page {
    padding: 40px 0 60px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-family: 'Georgia', serif;
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 10px;
}

.contact-header h1 i {
    color: var(--primary);
    margin-right: 12px;
}

.contact-header p {
    color: var(--gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.contact-info-card h3 {
    font-family: 'Georgia', serif;
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-info-card>p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 25px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 18px;
    background: var(--gray-bg);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-info-item:hover {
    background: var(--primary-bg);
}

.contact-info-item .contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info-item .contact-detail h4 {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
    font-weight: 500;
}

.contact-info-item .contact-detail a,
.contact-info-item .contact-detail p {
    font-size: 15px;
    color: var(--dark);
    margin: 0;
    font-weight: 500;
}

.contact-info-item .contact-detail a:hover {
    color: var(--primary);
}

.contact-social h4 {
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 12px;
}

.contact-social-links {
    display: flex;
    gap: 12px;
}

.contact-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gray-bg);
    color: var(--dark);
    transition: var(--transition);
    font-size: 16px;
}

.contact-social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.contact-form-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form-card h3 {
    font-family: 'Georgia', serif;
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-form-card h3 i {
    color: var(--primary);
    margin-right: 10px;
}

.contact-form-card>p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.contact-form .form-group .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.contact-form .form-group .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.contact-form .form-group textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .text-danger {
    color: var(--danger);
}

.contact-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* =============================================
   BREAKING NEWS - SQUARE IMAGES
   ============================================= */
.post-card-breaking .post-image-square {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.post-card-breaking .post-image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-breaking {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.post-card-breaking .post-content {
    flex: 1;
    padding: 0;
}

.post-card-breaking .post-content h3 {
    font-size: 15px;
    font-family: 'Georgia', serif;
    margin: 5px 0 8px;
    line-height: 1.4;
}

.post-card-breaking .post-content h3 a {
    color: var(--dark);
}

.post-card-breaking .post-content h3 a:hover {
    color: var(--primary);
}

.post-card-breaking .post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.post-card-breaking .post-meta .post-category {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-breaking .post-author {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--gray);
}

/* =============================================
   TOP BANNER SLIDER - FULL WIDTH, AUTO HEIGHT
   ============================================= */
.banner-slider {
    position: relative;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    background: #1A1A1A;
    width: 100%;
}

.banner-slider-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.banner-slide {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
    display: none;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    display: block;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.banner-slide .banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide overlay text on top banner */
.banner-slide .banner-overlay {
    display: none;
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-prev {
    left: 15px;
}

.banner-next {
    right: 15px;
}

.banner-prev:hover,
.banner-next:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.banner-dot:hover {
    background: var(--white);
}

/* =============================================
   SIDEBAR BANNER SLIDER - AUTO HEIGHT
   ============================================= */
.sidebar-banner-slider {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    width: 100%;
}

.sidebar-banner-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.sidebar-banner-slide {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 1;
    display: none;
}

.sidebar-banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    display: block;
}

.sidebar-banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.sidebar-banner-slide .banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-banner-slide .banner-placeholder {
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    box-sizing: border-box;
}

.sidebar-banner-slide .banner-cta {
    display: block;
    padding: 10px 15px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.sidebar-banner-slide a:hover .banner-cta {
    background: var(--primary-dark);
}

.sidebar-banner-prev,
.sidebar-banner-next {
    position: absolute;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-banner-prev {
    top: 10px;
}

.sidebar-banner-next {
    bottom: 50px;
}

.sidebar-banner-prev:hover,
.sidebar-banner-next:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.sidebar-banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 6px;
}

.sidebar-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-banner-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.sidebar-banner-dot:hover {
    background: var(--white);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: #1A1A1A;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
    margin-top: 40px;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-col h4 {
    color: var(--white);
    font-family: 'Georgia', serif;
    font-size: 18px;
    margin-bottom: 15px;
}

.site-footer .footer-col ul {
    list-style: none;
    padding: 0;
}

.site-footer .footer-col ul li {
    margin-bottom: 8px;
}

.site-footer .footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: var(--transition);
}

.site-footer .footer-col ul li a:hover {
    color: var(--white);
}

.site-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.site-footer .footer-logo img {
    height: 35px;
}

.site-footer .footer-logo span {
    font-family: 'Georgia', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.site-footer .footer-logo span span {
    color: var(--primary);
}

.site-footer .footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.site-footer .footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.site-footer .footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.site-footer .footer-bottom strong {
    color: var(--white);
}

/* =============================================
   TOP BANNER RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .banner-prev,
    .banner-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .banner-prev,
    .banner-next {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .banner-prev {
        left: 8px;
    }
    .banner-next {
        right: 8px;
    }
    .banner-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 576px) {
    .banner-prev,
    .banner-next {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .banner-dot {
        width: 6px;
        height: 6px;
    }
}

/* =============================================
   SIDEBAR BANNER RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .sidebar-banner-slide .banner-cta {
        font-size: 11px;
        padding: 8px 12px;
    }
    .sidebar-banner-slide .banner-placeholder {
        padding: 20px 15px;
    }
    .sidebar-banner-prev,
    .sidebar-banner-next {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .sidebar-banner-slide .banner-cta {
        font-size: 10px;
        padding: 6px 10px;
    }
    .sidebar-banner-slide .banner-placeholder {
        padding: 15px 12px;
    }
    .sidebar-banner-prev,
    .sidebar-banner-next {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    .sidebar-banner-dot {
        width: 6px;
        height: 6px;
    }
}

/* =============================================
   CATEGORIES RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    .category-card {
        padding: 14px 15px;
        gap: 10px;
    }
    .category-card .category-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .category-card .category-info h4 {
        font-size: 13px;
    }
    .category-card .category-info span {
        font-size: 11px;
    }
    .category-card .category-label {
        font-size: 8px;
        padding: 1px 6px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    .category-card {
        padding: 12px 12px;
        gap: 8px;
    }
    .category-card .category-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .category-card .category-info h4 {
        font-size: 12px;
    }
    .category-card .category-info span {
        font-size: 10px;
    }
    .category-card .category-label {
        display: none;
    }
}

@media (max-width: 400px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 6px;
    }
    .category-card {
        padding: 10px 10px;
        gap: 6px;
    }
    .category-card .category-icon {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
    .category-card .category-info h4 {
        font-size: 11px;
    }
    .category-card .category-info span {
        font-size: 9px;
    }
    .category-card .fa-arrow-right {
        display: none;
    }
}

/* =============================================
   PROFILE RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-card-left {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .profile-card-left {
        padding: 20px;
    }
    .profile-card-right {
        padding: 0;
    }
    .profile-form-card {
        padding: 20px;
    }
    .profile-stats {
        gap: 15px;
    }
    .profile-stats .stat-number {
        font-size: 18px;
    }
}

/* =============================================
   CONTACT RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-info-card {
        order: 2;
    }
    .contact-form-card {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 26px;
    }
    .contact-header p {
        font-size: 14px;
    }
    .contact-info-card,
    .contact-form-card {
        padding: 25px 20px;
    }
    .contact-info-item {
        padding: 12px 15px;
    }
    .contact-info-item .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .contact-page {
        padding: 25px 0 40px;
    }
    .contact-header h1 {
        font-size: 22px;
    }
    .contact-social-links {
        flex-wrap: wrap;
    }
    .contact-social-links a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .contact-form .btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* =============================================
   OVERALL RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar-wrapper {
        min-width: unset;
        max-width: unset;
    }
    .sidebar {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
     :root {
        --header-height: 60px;
    }
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-actions .btn {
        display: none;
    }
    .hero-main .post-card-hero .post-image {
        height: 250px;
    }
    .hero-main .post-card-hero .post-content h2 {
        font-size: 22px;
    }
    .hero-side {
        grid-template-columns: 1fr;
    }
    .post-card-list {
        flex-direction: column;
    }
    .post-card-list .post-image {
        width: 100%;
        min-height: 200px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .post-article .post-header h1 {
        font-size: 26px;
    }
    .post-article .post-content {
        font-size: 16px;
    }
    .author-profile {
        flex-direction: column;
        text-align: center;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .posts-table {
        font-size: 13px;
    }
    .posts-table th,
    .posts-table td {
        padding: 10px 12px;
    }
    .posts-table .actions {
        flex-direction: column;
        gap: 4px;
    }
    .auth-box {
        padding: 30px 20px;
    }
    .search-overlay-inner form input {
        font-size: 14px;
        padding: 14px 18px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    .site-logo span {
        display: none;
    }
    .hero-main .post-card-hero .post-image {
        height: 200px;
    }
    .post-card-side .post-image {
        width: 80px;
        height: 70px;
    }
    .post-card .post-image {
        height: 180px;
    }
    .trending-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .post-article .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .author-box .author-avatar {
        margin: 0 auto;
    }
    .comment-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-card-breaking .post-image-square {
        height: 60px;
        width: 60px;
        min-width: 60px;
    }
    .post-card-breaking .post-content h3 {
        font-size: 12px;
    }
}