/* ============================================
   Hugh Templar - Main Stylesheet
   Red, White & Black Theme
   ============================================ */

:root {
    --red: #dc2626;
    --dark-red: #991b1b;
    --white: #ffffff;
    --black: #000000;
    --dark-gray: #1f2937;
    --light-gray: #f3f4f6;
    --border-gray: #e5e7eb;
    --text-dark: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================
   HEADER & BANNER
   ============================================ */

.site-header {
    background: var(--black);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-banner {
    width: 100%;
    background: var(--black);
    border-bottom: 4px solid var(--red);
}

.banner-link {
    display: block;
    max-width: 1980px;
    margin: 0 auto;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
    background: var(--black);
    border-bottom: 2px solid var(--red);
}

.main-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
    background: var(--red);
    border-bottom-color: var(--white);
}

.nav-menu .admin-link {
    background: var(--red) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    border-radius: 4px;
    margin: 0 0.25rem;
}

.nav-menu .admin-link:hover {
    background: var(--dark-red) !important;
    transform: translateY(-2px);
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

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

.site-content {
    padding: 2rem 0;
    min-height: calc(100vh - 400px);
}

/* ============================================
   STATIC PAGE LAYOUT
   ============================================ */

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--red);
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--black);
    border-bottom: 3px solid var(--red);
    padding-bottom: 0.5rem;
}

.page-content h2 {
    color: var(--black);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--red);
    padding-left: 1rem;
}

.page-content h3 {
    color: var(--red);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-content a {
    color: var(--red);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: var(--dark-red);
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    line-height: 1.8;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.about-content p {
    text-align: justify;
}

/* ============================================
   BLOG POSTS
   ============================================ */

.posts-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-left-color: var(--black);
}

.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.post-title a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--red);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-excerpt {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--black);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-tag:hover {
    background: var(--red);
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: var(--dark-red);
}

/* ============================================
   SINGLE POST VIEW
   ============================================ */

.post-single {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--red);
    max-width: 900px;
    margin: 0 auto;
}

.post-single .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--black);
    border-bottom: 3px solid var(--red);
    padding-bottom: 0.5rem;
}

.post-single .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 2rem;
}

.post-single .post-content p {
    margin-bottom: 1.5rem;
}

.post-single .post-content h2 {
    color: var(--black);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--red);
    padding-left: 1rem;
}

.post-single .post-content h3 {
    color: var(--red);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Images within post content */
.post-single .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
    display: block;
}

/* Center aligned images */
.post-single .post-content img[style*="display: block"] {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   POST IMAGES GALLERY
   ============================================ */

.post-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--red);
}

.post-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.post-image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.post-image-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* Single image - full width */
.post-images-grid:has(.post-image-item:only-child) {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-images-grid:has(.post-image-item:only-child) .post-image-item img {
    aspect-ratio: auto;
    max-height: 600px;
    object-fit: contain;
}

/* ============================================
   FEATURED IMAGE PREVIEW
   ============================================ */

.post-card-image {
    width: 250px;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

.post-card:has(.post-card-image) .post-card-content {
    padding: 1.5rem;
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */

.social-share-container {
    background: var(--light-gray);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--red);
}

.share-title {
    color: var(--black);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.share-icon {
    width: 20px;
    height: 20px;
}

.facebook-btn {
    background: #1877f2;
}

.facebook-btn:hover {
    background: #0d65d9;
}

.twitter-btn {
    background: #000000;
}

.twitter-btn:hover {
    background: #333333;
}

.linkedin-btn {
    background: #0a66c2;
}

.linkedin-btn:hover {
    background: #004182;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-btn:hover {
    background: linear-gradient(45deg, #d87e2d 0%, #c95a32 25%, #b81f39 50%, #a81e59 75%, #981479 100%);
}

/* ============================================
   FORMS
   ============================================ */

.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--red);
}

.form-container h1 {
    color: var(--black);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--red);
    padding-bottom: 0.5rem;
}

.form-intro {
    background: var(--light-gray);
    padding: 1rem;
    border-left: 4px solid var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--black);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: var(--dark-red);
}

.btn-primary {
    background: var(--black);
}

.btn-primary:hover {
    background: var(--dark-gray);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-error {
    background: #fee;
    color: var(--dark-red);
    border-left-color: var(--red);
}

.alert-success {
    background: #efe;
    color: #166534;
    border-left-color: #22c55e;
}

.alert-info {
    background: var(--light-gray);
    color: var(--black);
    border-left-color: var(--black);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    border: 2px solid var(--black);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--black);
    color: var(--white);
}

.pagination .current {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--red);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-motto {
    font-style: italic;
    color: var(--red);
    font-weight: 600;
    margin-top: 1rem;
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--red);
}

.profile-header {
    border-bottom: 2px solid var(--black);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.profile-header h1 {
    color: var(--black);
}

.profile-info {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 4px;
}

.info-label {
    font-weight: 600;
    color: var(--black);
    min-width: 120px;
}

.info-value {
    color: var(--text-dark);
}

/* ============================================
   MISSION STATEMENT
   ============================================ */

.mission-statement {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    border-left: 6px solid var(--red);
    border-right: 6px solid var(--red);
    margin: 2rem 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mission-content {
    padding: 2rem;
    text-align: center;
}

.mission-content h2 {
    color: var(--red);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--white);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.mission-content p {
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

/* ============================================
   POSTS SECTION
   ============================================ */

.posts-section {
    margin-top: 2rem;
}

.posts-section h1 {
    color: var(--black);
    border-bottom: 3px solid var(--red);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.no-posts {
    background: var(--white);
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-posts p {
    font-size: 1.2rem;
    color: #6b7280;
}

/* ============================================
   SIDEBAR LAYOUT
   ============================================ */

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    min-width: 0;
}

.main-content h1 {
    color: var(--black);
    border-bottom: 3px solid var(--red);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.widget {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--red);
}

.widget-title {
    color: var(--black);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-gray);
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
}

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

.widget-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.widget-list a:hover {
    color: var(--red);
}

.widget-date {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
}

.widget-list .count {
    font-size: 0.85rem;
    color: #6b7280;
    background: var(--light-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--light-gray);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
}

.tag-cloud-item:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* ============================================
   COMMENTS SYSTEM
   ============================================ */

.comments-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--red);
}

.comments-title {
    color: var(--black);
    border-bottom: 3px solid var(--red);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.comment-form-container {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--black);
}

.comment-form-container h3 {
    color: var(--black);
    margin-bottom: 0.5rem;
}

.comment-note {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.no-comments {
    text-align: center;
    padding: 3rem;
    background: var(--light-gray);
    border-radius: 8px;
    color: #6b7280;
}

.comments-list {
    margin-top: 2rem;
}

.comment-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--black);
    transition: transform 0.2s, box-shadow 0.2s;
}

.comment-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--red);
}

.comment-author {
    color: var(--black);
    font-size: 1.1rem;
}

.comment-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.comment-body {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

.reply-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.reply-btn:hover {
    background: var(--dark-red);
}

.comment-replies {
    margin-top: 1.5rem;
}

.comment-item .comment-item {
    background: var(--white);
    border-left-color: var(--red);
}

/* ============================================
   CATEGORY PAGE
   ============================================ */

.category-page {
    padding: 2rem 0;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--red);
}

.category-header h1 {
    color: var(--black);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    border-bottom: 3px solid var(--red);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.category-count {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.category-tag {
    cursor: pointer;
    position: relative;
}

.category-tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.category-tag:hover::after {
    width: 80%;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.category-card-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.category-card-title a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card-title a:hover {
    color: var(--red);
}

.category-card-count {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-gray);
}

.category-card-preview h3 {
    color: var(--red);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-card-preview ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.category-card-preview li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.category-card-preview li:last-child {
    border-bottom: none;
}

.category-card-preview a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card-preview a:hover {
    color: var(--red);
}

/* ============================================
   HONEYPOT (Anti-Bot)
   ============================================ */

.honeypot {
    display: none !important;
    visibility: hidden !important;
    position: absolute;
    left: -9999px;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE MENU FROM LEFT
   ============================================ */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .banner-image {
        max-height: 200px;
    }
    
    /* Show hamburger on mobile */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile menu slides from LEFT */
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        padding: 80px 0 2rem;
        box-shadow: 4px 0 10px rgba(0,0,0,0.5);
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    /* Show menu when active - slide from left */
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--white);
        text-align: left;
        border-bottom: none;
        width: 100%;
    }
    
    .nav-menu a:hover {
        background: var(--red);
        border-bottom: none;
        padding-left: 2rem;
    }
    
    /* Admin link in mobile menu */
    .nav-menu .admin-link {
        background: var(--red) !important;
        margin: 0.5rem 1rem !important;
        text-align: center !important;
        border-radius: 4px !important;
    }
    
    .nav-menu .admin-link:hover {
        padding-left: 1.5rem !important;
    }
    
    /* Backdrop overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .post-single .post-title {
        font-size: 1.75rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mission-content {
        padding: 1.5rem;
    }
    
    .mission-content h2 {
        font-size: 1.5rem;
    }
    
    .mission-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .comments-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .comment-form-container {
        padding: 1.5rem;
    }
    
    .comment-item {
        padding: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-header h1 {
        font-size: 1.75rem;
    }
    
    .category-header {
        padding: 1.5rem;
    }
    
    /* Image gallery responsive */
    .post-images-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    /* Sidebar goes below content on mobile */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
        max-height: none;
    }
    
    .widget {
        margin-bottom: 1.5rem;
    }
    
    /* Page content responsive */
    .page-content {
        padding: 2rem 1.5rem;
    }
    
    .page-content h1 {
        font-size: 2rem;
    }
}

/* ============================================
   SHORTCODE INSERTED IMAGES (Full-Width)
   ============================================ */

.post-content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--border-gray);
}

@media (max-width: 480px) {
    .site-content {
        padding: 1rem 0;
    }
    
    /* Post card mobile - floating thumbnail with text wrap */
    .post-card {
        display: block;
        position: relative;
    }
    
    .post-card-image {
        float: left;
        width: 100px;
        height: 100px;
        min-height: 100px;
        margin: 0 1rem 0.5rem 0;
        border-radius: 4px;
        object-fit: cover;
    }
    
    .post-card-content {
        padding: 1rem;
        overflow: auto;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        width: 260px;
    }
    
    /* Backdrop adjusts for narrower menu */
    body.menu-open::before {
        left: 260px;
    }
    
    /* Page content mobile */
    .page-content {
        padding: 1.5rem 1rem;
    }
    
    .page-content h1 {
        font-size: 1.5rem;
    }
    
    .page-content p {
        font-size: 1rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }