/*
Theme Name: Peekaboo CamChat
Theme URI: https://blog.peekaboo-camchat.uk
Author: Peekaboo CamChat Team
Author URI: https://peekaboo-camchat.uk
Description: Official WordPress theme for Peekaboo CamChat Blog - Exact match to the /app page design.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: peekaboo-camchat
Tags: blog, custom-logo, custom-menu, featured-images, footer-widgets, two-columns
*/

/* ============================================
   RESET & BASE - Exact /app Style
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background: #E7EDF5;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    letter-spacing: 0.01em;
}

a {
    color: #164184;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #0e2f5a;
}

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

/* Base Responsive - Applied Always */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

input,
textarea,
select,
button {
    max-width: 100%;
}

table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

iframe,
embed,
video {
    max-width: 100%;
}

/* ============================================
   MAIN LAYOUT - Exact /app Structure
   ============================================ */
.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f5f5;
    font-family: Verdana, Tahoma, Arial, sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    padding-top: 0;
}

/* ============================================
   APP HEADER - Purple Bar (#614d8e) - Exact /app
   ============================================ */
.site-header {
    background: #164876;
    border-bottom: 1px solid #0e3050;
}

.app-header {
    background: #164876;
    padding: 0 10px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: visible;
    border-bottom: 1px solid #0e3050;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.header-left .logo {
    display: flex;
    align-items: center;
}

.header-left .logo img,
.custom-logo-link img {
    max-height: 32px;
    width: auto;
}

.header-left .logo a,
.site-title-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 20px;
    min-width: 0;
    overflow: hidden;
}

.site-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-style: italic;
}

.header-right {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
    overflow: visible;
}

/* Auth Links - Classic Text Style */
.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
}

.auth-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: normal;
}

.auth-link:hover {
    color: #ffdd99;
    text-decoration: underline;
}

.auth-sep {
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
}

.username-display .navbar-profile-placeholder {
    background: #164876;
    color: #ffffff;
    border: none;
    width: 18px;
    height: 18px;
    font-size: 10px;
    border-radius: 50%;
}

.username-display .navbar-username {
    color: #164876;
    font-size: 11px;
    font-weight: bold;
}

.navbar-profile-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6D84B4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #CCCCCC;
}

.navbar-username {
    color: #0066CC;
    font-size: 11px;
    font-weight: 600;
}

/* Video Chat Button - Orange CTA - Exact /app Style */
.go-to-app-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #ff6600;
    color: white !important;
    border: 1px outset #ff8833;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none !important;
    transition: none;
    font-family: Verdana, Arial, sans-serif;
}

.go-to-app-btn:hover {
    background: #e65c00;
    text-decoration: none !important;
    border-color: #ff7722;
}

.go-to-app-btn:active {
    border-style: inset;
    background: #cc5200;
}

.go-to-app-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.go-to-app-btn .btn-icon svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

/* ============================================
   SECONDARY NAVIGATION - Dark Blue (#164876)
   ============================================ */
.app-header-secondary {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    position: static;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.myspace-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
    background: #614d8e;
    padding: 8px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.myspace-nav-link {
    all: unset;
    box-sizing: border-box;
    position: relative;
    width: 40px;
    height: 40px;
    background: #3a3b3c;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #e4e6eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    overflow: visible;
    flex-shrink: 0;
}

.myspace-nav-link:hover {
    background: #4e4f50;
    text-decoration: none;
}

.myspace-nav-link:active {
    background: #3a3b3c;
    transform: scale(0.95);
}

.myspace-nav-link.active {
    background: #2d88ff;
}

.myspace-nav-link.active .nav-icon svg {
    stroke: #fff;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 20px;
    height: 20px;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    stroke: #e4e6eb;
    fill: none;
    transition: stroke 0.2s ease;
}

/* Text Menu Buttons */
.myspace-nav-btn {
    display: inline-block;
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    font-family: Verdana, Arial, sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 0;
}

.myspace-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
}

.myspace-nav-btn:active {
    background: rgba(255, 255, 255, 0.25);
}

.myspace-nav-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffdd99;
}

.myspace-nav-btn.videochat-btn {
    background: #ff6600;
    color: #ffffff;
    border: 1px outset #ff8833;
    margin-left: 5px;
}

.myspace-nav-btn.videochat-btn:hover {
    background: #e65c00;
}

.nav-spacer {
    flex: 1;
}

.myspace-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.myspace-nav-menu li a {
    all: unset;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    background: #3a3b3c;
    border-radius: 50%;
    cursor: pointer;
    color: #e4e6eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.myspace-nav-menu li a:hover {
    background: #4e4f50;
}

.myspace-nav-menu li.current-menu-item a {
    background: #2d88ff;
}

/* ============================================
   MAIN CONTENT AREA - Blue Background (#669ac9)
   ============================================ */
.site-content,
.main-content {
    background: #669ac9;
    min-height: calc(100vh - 200px);
    padding: 0;
    text-align: left;
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-top: 0;
}

.content-wrapper {
    display: flex;
    gap: 10px;
    max-width: 100%;
    width: 100%;
    padding: 10px;
}

/* ============================================
   LEFT SIDEBAR - Exact /app Style
   ============================================ */
.sidebar.left-sidebar,
.widget-area.left-sidebar,
#secondary.left-sidebar {
    width: 160px;
    background: #669ac9;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
    flex-shrink: 0;
}

/* ============================================
   RIGHT SIDEBAR - Exact /app Style
   ============================================ */
.sidebar.right-sidebar,
.widget-area,
#secondary {
    width: 300px;
    background: #669ac9;
    border-radius: 5px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* ============================================
   CENTER CONTENT AREA
   ============================================ */
.center-content,
.content-area,
#primary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* ============================================
   PANEL/MODULE BOXES - Transparent Style
   ============================================ */
.panel,
.myspace-module,
.widget {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 10px;
}

article,
.post,
.page {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 15px;
}

/* Panel Header - Classic Style */
.panel-header,
.module-header,
.sidebar-header {
    background: #614d8e;
    border-bottom: none !important;
    padding: 12px 15px !important;
    height: auto !important;
    min-height: 40px !important;
    max-height: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.3 !important;
    font-weight: bold;
    color: #ffffff;
    font-size: 13px;
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

/* Post/Article Header - Newspaper Style */
.entry-header {
    background: linear-gradient(135deg, #614d8e 0%, #4a3a6e 100%);
    border-bottom: none !important;
    padding: 18px 20px !important;
    box-sizing: border-box !important;
    font-weight: bold;
    color: #ffffff;
    font-size: 12px;
    font-family: Verdana, Tahoma, Arial, sans-serif;
    margin: 0;
    border-radius: 0;
    position: relative;
}

/* Decorative line under header */
.entry-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #ff6600, #ffcc00, #ff6600);
}

/* Header Icon */
.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    font-size: 14px;
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1;
}

/* Panel Body - Semi-transparent */
.panel-body,
.module-body,
.widget > ul,
.widget > div,
.widget > form {
    padding: 10px;
    background: rgba(255, 251, 240, 0.95);
    font-size: 12px;
}

.entry-content {
    padding: 15px;
    background: transparent;
    font-size: 13px;
    color: #333;
}

/* Sidebar List - White Background */
.sidebar-list {
    padding: 2px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    background: #FFFFFF;
}

/* Compact Left Sidebar */
.sidebar.left-sidebar .sidebar-header h3 {
    font-size: 10px !important;
}

.sidebar.left-sidebar .sidebar-header h3 .header-icon {
    font-size: 11px !important;
    margin-right: 4px !important;
}

.empty-state {
    text-align: center;
    padding: 12px 8px;
    color: #666666;
    font-size: 11px;
    background: #F5F5F5;
    margin: 4px;
    font-family: Verdana, Tahoma, Arial, sans-serif;
}

.sidebar.left-sidebar .empty-state {
    padding: 8px 4px;
    font-size: 9px;
    margin: 2px;
}

/* ============================================
   POST/ARTICLE STYLING - Improved
   ============================================ */

/* Featured/Sticky Badge */
.sticky-badge,
.featured-label {
    display: inline-block;
    background: #ff6600;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    text-transform: none;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: -0.01em;
}

.entry-title a {
    color: #fff;
    text-decoration: none;
}

.entry-title a:hover {
    color: #ffcc99;
    text-decoration: none;
}

.single .entry-title,
.page .entry-title {
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.entry-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    font-family: Georgia, serif;
    font-style: italic;
}

.entry-meta a {
    color: #ffdd99;
    font-weight: 600;
    font-style: normal;
}

.entry-meta a:hover {
    color: #fff;
    text-decoration: underline;
}

.entry-meta .sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
    font-style: normal;
}

.entry-meta .posted-on::before,
.entry-meta .byline::before,
.entry-meta .cat-links::before {
    content: none;
}

/* Author prefix */
.entry-meta .byline::before {
    content: 'By ';
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* Category prefix */
.entry-meta .cat-links::before {
    content: 'in ';
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* Entry Header for posts */
article .entry-header,
.post .entry-header {
    height: auto !important;
    min-height: 40px !important;
    max-height: none !important;
    padding: 12px 15px !important;
    text-align: left;
}

/* Featured Image - Archive/Home Page (Smaller Thumbnail) */
.post-thumbnail {
    overflow: hidden;
    float: left;
    margin: 0 15px 10px 0;
    max-width: 200px;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-thumbnail img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    display: block;
}

.post-thumbnail a {
    display: block;
}

/* Clear float after entry-content */
.entry-content::after,
.entry-summary::after {
    content: "";
    display: table;
    clear: both;
}

/* Entry Content - Classic Typography */
.entry-content,
.entry-summary {
    padding: 25px 30px;
    font-size: 16px;
    line-height: 1.85;
    text-align: left;
    color: #222;
    font-family: Georgia, 'Times New Roman', Times, serif;
    background: #fffef9;
}

.entry-content p,
.entry-summary p {
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 1.8em;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.entry-content p:first-of-type {
    text-indent: 0;
    font-size: 18px;
    line-height: 1.75;
    color: #111;
}

.entry-content p:first-of-type::first-letter {
    font-size: 4em;
    float: left;
    line-height: 0.75;
    padding-right: 12px;
    padding-top: 8px;
    font-weight: bold;
    color: #614d8e;
    font-family: 'Times New Roman', Times, serif;
    text-shadow: 2px 2px 0 rgba(97, 77, 142, 0.1);
}

/* Subheading after first paragraph */
.entry-content > p:first-of-type + p {
    text-indent: 0;
    margin-top: -5px;
}

/* Excerpt on archive pages */
.entry-summary {
    padding: 15px;
    text-align: left;
}

.entry-content h2 {
    font-size: 22px;
    color: #1a1a1a;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #614d8e;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    letter-spacing: -0.02em;
}

.entry-content h3 {
    font-size: 18px;
    color: #333;
    margin: 25px 0 12px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-style: italic;
}

.entry-content h4 {
    font-size: 16px;
    color: #444;
    margin: 20px 0 10px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
}

.entry-content h5 {
    font-size: 14px;
    color: #555;
    margin: 18px 0 8px;
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: normal;
}

.entry-content h6 {
    font-size: 12px;
    color: #666;
    margin: 15px 0 6px;
    font-family: Verdana, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
    font-size: 14px;
}

.entry-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.entry-content ul li {
    list-style-type: square;
}

.entry-content ol li {
    list-style-type: decimal;
}

.entry-content blockquote {
    background: linear-gradient(135deg, #f9f7fc 0%, #f5f3f8 100%);
    border-left: 4px solid #614d8e;
    margin: 25px 0;
    padding: 20px 25px;
    font-style: italic;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
    font-family: Georgia, 'Times New Roman', Times, serif;
    position: relative;
}

.entry-content blockquote::before {
    content: '"';
    font-size: 60px;
    color: #614d8e;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

.entry-content blockquote p {
    margin-bottom: 0;
    text-indent: 0;
}

.entry-content blockquote cite,
.entry-content blockquote footer {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-style: normal;
    color: #666;
    font-weight: bold;
}

.entry-content blockquote cite::before,
.entry-content blockquote footer::before {
    content: '— ';
}

.entry-content code {
    background: #f4f4f4;
    padding: 3px 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    border: 1px solid #ddd;
}

.entry-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    overflow-x: auto;
    margin: 25px 0;
    font-size: 13px;
    line-height: 1.5;
    border-left: 4px solid #614d8e;
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    border: none;
}

/* Strong/Bold - Classic emphasis */
.entry-content strong,
.entry-content b {
    font-weight: bold;
    color: #1a1a1a;
}

/* Italic/Emphasis - Classic style */
.entry-content em,
.entry-content i {
    font-style: italic;
    color: #333;
}

/* Links - Classic underline style */
.entry-content a {
    color: #614d8e;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: #4a3a6e;
    text-decoration-style: solid;
}

/* Horizontal Rule - Classic ornamental divider */
.entry-content hr {
    border: none;
    height: auto;
    background: transparent;
    margin: 40px auto;
    text-align: center;
    overflow: visible;
}

.entry-content hr::before {
    content: '❧ ❧ ❧';
    display: block;
    font-size: 18px;
    color: #614d8e;
    letter-spacing: 15px;
    opacity: 0.6;
}

/* Small text / Fine print */
.entry-content small {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Mark / Highlight */
.entry-content mark {
    background: #fff3cd;
    padding: 2px 4px;
}

/* Abbreviations */
.entry-content abbr {
    border-bottom: 1px dotted #666;
    cursor: help;
}

/* Entry Footer - Classic Newspaper Style */
.entry-footer {
    background: #f8f7f4;
    padding: 20px 25px;
    font-size: 13px;
    color: #444;
    border-top: 3px double #614d8e;
    font-family: Verdana, Arial, sans-serif;
}

.entry-footer a {
    color: #614d8e;
    font-weight: 600;
}

.entry-footer a:hover {
    text-decoration: underline;
}

.cat-links,
.tags-links {
    display: block;
    margin-bottom: 10px;
    line-height: 1.8;
}

.cat-links::before {
    content: 'Filed Under: ';
    font-style: italic;
    color: #666;
    font-weight: normal;
}

.tags-links::before {
    content: 'Tagged: ';
    font-style: italic;
    color: #666;
    font-weight: normal;
}

/* Read More Button Wrapper - Centered */
.read-more-wrapper {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

/* Center the more-link in entry-summary */
.entry-summary {
    text-align: left;
}

.entry-summary .more-link {
    display: block;
    text-align: center;
    margin-top: 15px;
}

/* ============================================
   WIDGET STYLING - Improved
   ============================================ */
.widget {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.widget-title,
.widget h2,
.widget h3 {
    background: #614d8e !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: bold !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    text-align: center;
    font-family: 'Times New Roman', Times, serif !important;
    border-radius: 0;
    position: relative;
}

.widget-title::after,
.widget h2::after,
.widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.widget > ul,
.widget > div:not(.widget-title),
.widget > form,
.widget > ol {
    padding: 12px;
    background: #FFFBF0;
}

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

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 13px;
    text-align: left;
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.5;
}

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

.widget li:first-child {
    padding-top: 0;
}

.widget li a {
    color: #1a1a1a;
    text-decoration: none;
}

.widget li a:hover {
    color: #614d8e;
    text-decoration: underline;
}

/* Search Widget - Compact */
.search-form {
    display: flex;
    padding: 10px;
    background: #FFFBF0;
}

.search-field {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #bdc7d8;
    font-size: 11px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background: #D4EDDA;
    border-radius: 2px;
}

.search-field:focus {
    outline: none;
    border-color: #614d8e;
    background: #FFFEF8;
}

/* Search submit styles moved to BUTTONS section */

/* Tag Cloud */
.tagcloud {
    padding: 10px !important;
}

/* Tag cloud button styles moved to BUTTONS section */

/* ============================================
   COMMENTS - Exact /app Style - Compact
   ============================================ */
.comments-area {
    background: #fff;
    margin-top: 10px;
}

.comments-title {
    background: #614d8e;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 15px 20px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Times New Roman', Times, serif;
    position: relative;
}

.comments-title::before {
    content: '💬 ';
    font-size: 16px;
}

.comment-list {
    list-style: none;
    padding: 12px;
    margin: 0;
    background: #FFFBF0;
}

.comment {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-author img {
    border-radius: 50%;
    border: 2px solid #6d84b4;
}

.comment-author .fn {
    font-weight: bold;
    color: #1a1a1a;
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
}

.comment-author .fn a {
    color: #1a1a1a;
    text-decoration: none;
}

.comment-author .fn a:hover {
    color: #614d8e;
}

.comment-metadata {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
    font-style: italic;
    font-family: Georgia, serif;
}

.comment-metadata a {
    color: #888;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #614d8e;
}

.comment-content {
    font-size: 14px;
    line-height: 1.7;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #333;
}

.comment-content p {
    margin-bottom: 12px;
}

/* Comment reply link styles moved to BUTTONS section */

/* Comment Form - Compact */
.comment-respond {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fff;
}

.comment-reply-title {
    font-size: 13px;
    color: #614d8e;
    margin-bottom: 12px;
}

.comment-form label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #bdc7d8;
    font-size: 11px;
    margin-bottom: 12px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background: #D4EDDA;
    border-radius: 2px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #614d8e;
    outline: none;
    background: #FFFEF8;
}

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

/* Form submit button styles moved to BUTTONS section */

/* ============================================
   PAGINATION - Compact
   ============================================ */
.pagination,
.post-navigation {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    margin: 10px 0;
    text-align: center;
    border-radius: 5px;
}

/* Pagination button styles moved to BUTTONS section */

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Post navigation button styles moved to BUTTONS section */

/* ============================================
   FOOTER - Semi-transparent
   ============================================ */
.site-footer {
    background: rgba(70, 120, 170, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
    backdrop-filter: blur(5px);
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 15px 10px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-widget-area {
    flex: 1;
    min-width: 200px;
}

.footer-widget-area .widget {
    background: transparent;
    border: none;
}

.footer-widget-area .widget-title {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0 0 6px !important;
    margin-bottom: 10px;
    height: auto !important;
}

.footer-widget-area .widget ul {
    padding: 0 !important;
    background: transparent;
}

.footer-widget-area .widget li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-area .widget li a {
    color: #fff;
}

.footer-widget-area .widget li a:hover {
    color: #ffcc99;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    margin: 0;
}

/* ============================================
   ARCHIVE & SEARCH PAGES
   ============================================ */
.page-header {
    background: #fff;
    margin-bottom: 10px;
}

.page-title {
    background: #614d8e;
    color: #fff;
    font-size: 14px;
    padding: 10px 12px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-description,
.search-description {
    padding: 10px 12px;
    font-size: 11px;
    color: #666;
    background: #FFFBF0;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
}

.error-404 .page-title {
    background: none;
    color: #614d8e;
    font-size: 60px;
    border: none;
    padding: 0;
    margin-bottom: 15px;
}

.error-404 .page-content p {
    font-size: 13px;
    margin-bottom: 20px;
    color: #666;
}

/* ============================================
   BUTTONS - Exact /app Header Style
   ============================================ */
.button,
button:not(.no-style),
.myspace-btn,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.btn {
    background: #614d8e;
    border: 1px outset #7759a1;
    box-shadow: none;
    color: white !important;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: none;
    text-transform: none;
    letter-spacing: 0;
    font-family: Verdana, Arial, sans-serif;
    text-shadow: none;
    text-decoration: none !important;
    display: inline-block;
    line-height: 1.4;
    border-radius: 0;
}

.button:hover,
button:not(.no-style):hover,
.myspace-btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.btn:hover {
    background: #4a3a6e;
    border-color: #5c4580;
    color: white !important;
    text-decoration: none !important;
}

.button:active,
button:not(.no-style):active,
input[type="submit"]:active,
input[type="button"]:active {
    border-style: inset;
    background: #3d3060;
}

/* Button Secondary - Light */
.button-secondary,
.btn-secondary {
    background: #FFFBF0;
    border: 1px outset #CCCCCC;
    color: #333 !important;
}

.button-secondary:hover,
.btn-secondary:hover {
    background: #f0eadd;
    border-color: #BBBBBB;
    color: #333 !important;
}

/* Button Orange/CTA */
.button-cta,
.btn-cta,
.myspace-btn-signup,
.button-orange {
    padding: 6px 12px;
    background: #ff6600;
    color: white !important;
    border: 1px outset #ff8833;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    font-family: Verdana, Arial, sans-serif;
}

.button-cta:hover,
.btn-cta:hover,
.myspace-btn-signup:hover,
.button-orange:hover {
    background: #e65c00;
    border-color: #ff7722;
}

.button-cta:active,
.myspace-btn-signup:active,
.button-orange:active {
    border-style: inset;
    background: #cc5200;
}

/* Button Success - Green */
.button-success,
.btn-success {
    background: #4CAF50;
    border: 1px outset #5cb85c;
    color: white !important;
}

.button-success:hover,
.btn-success:hover {
    background: #449d48;
    border-color: #4cae4c;
}

/* Button Danger - Red */
.button-danger,
.btn-danger {
    background: #d9534f;
    border: 1px outset #e06560;
    color: white !important;
}

.button-danger:hover,
.btn-danger:hover {
    background: #c9302c;
    border-color: #d43f3a;
}

/* Button Warning - Yellow */
.button-warning,
.btn-warning {
    background: #f0ad4e;
    border: 1px outset #f5be70;
    color: #333 !important;
}

.button-warning:hover,
.btn-warning:hover {
    background: #ec971f;
    border-color: #eea236;
}

/* Button Info - Blue */
.button-info,
.btn-info {
    background: #5bc0de;
    border: 1px outset #6ccae8;
    color: white !important;
}

.button-info:hover,
.btn-info:hover {
    background: #31b0d5;
    border-color: #46b8da;
}

/* Button Small */
.button-small,
.btn-sm {
    padding: 2px 4px;
    font-size: 10px;
}

/* Button Large */
.button-large,
.btn-lg {
    padding: 8px 16px;
    font-size: 13px;
}

/* Read More Button - Orange CTA Style */
.read-more-link,
a.more-link {
    background: #ff6600 !important;
    border: 1px outset #ff8833 !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 14px;
    text-decoration: none !important;
    display: inline-block;
    font-family: Verdana, Arial, sans-serif;
}

.read-more-link:hover,
a.more-link:hover {
    background: #e65c00 !important;
    text-decoration: none !important;
    color: #fff !important;
}

.read-more-link:active,
a.more-link:active {
    border-style: inset !important;
}

/* Comment Reply Link */
.comment-reply-link {
    background: #614d8e;
    border: 1px outset #7759a1;
    color: #fff !important;
    font-size: 10px;
    padding: 3px 8px;
    margin-top: 8px;
    display: inline-block;
    text-decoration: none !important;
}

.comment-reply-link:hover {
    background: #4a3a6e;
    color: #fff !important;
    text-decoration: none !important;
}

/* Form Submit Buttons */
.form-submit .submit,
.comment-form .submit,
.wpcf7-submit {
    background: #ff6600 !important;
    border: 1px outset #ff8833 !important;
    color: white !important;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    font-family: Verdana, Arial, sans-serif;
}

.form-submit .submit:hover,
.comment-form .submit:hover,
.wpcf7-submit:hover {
    background: #e65c00 !important;
}

.form-submit .submit:active,
.comment-form .submit:active,
.wpcf7-submit:active {
    border-style: inset !important;
}

/* Search Submit */
.search-submit {
    background: #614d8e !important;
    border: 1px outset #7759a1 !important;
    color: white !important;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    font-family: Verdana, Arial, sans-serif;
}

.search-submit:hover {
    background: #4a3a6e !important;
}

.search-submit:active {
    border-style: inset !important;
}

/* Pagination Buttons */
.pagination .page-numbers {
    background: #614d8e;
    border: 1px outset #7759a1;
    color: #fff !important;
    padding: 5px 10px;
    margin: 0 2px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-block;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #4a3a6e;
    border-color: #5c4580;
    color: #fff !important;
    text-decoration: none !important;
}

.pagination .page-numbers:active {
    border-style: inset;
}

/* Post Navigation - Classic Newspaper Style */
.post-navigation {
    background: #f8f7f4;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    background: transparent;
    border: none;
    color: #333 !important;
    padding: 20px;
    font-size: 13px;
    text-decoration: none !important;
    display: block;
    flex: 1;
    transition: background 0.2s;
}

.post-navigation a:hover {
    background: #f0efe9;
    color: #614d8e !important;
}

.post-navigation .nav-previous {
    border-right: 1px solid #e0e0e0;
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 10px;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: Verdana, Arial, sans-serif;
}

.post-navigation .nav-title {
    color: #1a1a1a;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.4;
}

/* Newsletter Submit */
.newsletter-submit {
    background: #ff6600 !important;
    border: 1px outset #ff8833 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    cursor: pointer;
}

.newsletter-submit:hover {
    background: #e65c00 !important;
}

.newsletter-submit:active {
    border-style: inset !important;
}

/* Tag Cloud Links as Buttons */
.tagcloud a {
    background: #614d8e;
    border: 1px outset #7759a1;
    color: #fff !important;
    font-size: 10px !important;
    padding: 3px 8px;
    margin: 2px;
    display: inline-block;
    text-decoration: none !important;
}

.tagcloud a:hover {
    background: #4a3a6e;
    color: #fff !important;
    text-decoration: none !important;
}

/* Widget Navigation Links */
.widget_nav_menu a,
.widget_pages a,
.widget_meta a {
    color: #164184;
}

.widget_nav_menu a:hover,
.widget_pages a:hover,
.widget_meta a:hover {
    color: #614d8e;
}

/* ============================================
   FORMS - Exact /app Style
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    border-radius: 2px;
    background: #D4EDDA;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.08);
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    color: #000000;
    transition: border 0.15s ease;
    padding: 6px 8px;
    border: 1px solid #bdc7d8;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border: 1px inset #614d8e;
    background: #FFFEF8;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.08), 0 0 3px rgba(97, 77, 142, 0.3);
}

label {
    display: block;
    margin-bottom: 2px;
    font-weight: bold;
    color: #000000;
    font-size: 11px;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.primary {
    background: #FF9933;
    color: white;
}

.badge.success {
    background: #7ED321;
    color: white;
}

.badge.danger {
    background: #D0021B;
    color: white;
}

/* ============================================
   MESSAGES
   ============================================ */
.error-message,
.myspace-error {
    background: #ffe5e5;
    border: 1px solid #ffcccc;
    color: #cc0000;
    padding: 8px;
    font-size: 11px;
    margin-bottom: 10px;
}

.success-message {
    background: #e5f5e5;
    border: 1px solid #38ef7d;
    color: #2b8a3e;
    padding: 8px;
    font-size: 11px;
    margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE DESIGN - 100% Responsive
   ============================================ */

/* Large Tablets & Small Desktops */
@media (max-width: 1024px) {
    .content-wrapper {
        padding: 10px;
    }

    .sidebar.right-sidebar,
    .widget-area,
    #secondary {
        width: 250px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        padding: 8px;
    }

    .sidebar.left-sidebar,
    .sidebar.right-sidebar,
    .widget-area,
    #secondary {
        width: 100%;
        order: 2;
    }

    .content-area,
    #primary {
        order: 1;
        width: 100%;
    }

    .app-header {
        height: 50px;
        padding: 0 10px;
    }

    .header-center {
        display: none !important;
    }

    .header-right {
        gap: 6px;
    }

    .myspace-nav {
        flex-wrap: wrap;
        padding: 8px 10px;
        justify-content: center;
    }

    .myspace-nav-link {
        width: 38px;
        height: 38px;
    }

    .nav-icon {
        width: 18px;
        height: 18px;
    }

    .nav-icon svg {
        width: 18px;
        height: 18px;
    }

    .myspace-nav-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .nav-spacer {
        display: none;
    }

    .entry-title {
        font-size: 15px;
    }

    .entry-header {
        padding: 10px 12px !important;
    }

    .entry-content,
    .entry-summary {
        padding: 12px;
        font-size: 13px;
    }

    .post-thumbnail {
        float: none;
        max-width: 100%;
        margin: 0 0 12px 0;
    }

    .post-thumbnail img {
        width: 100%;
        height: 180px;
    }

    .footer-widgets {
        flex-direction: column;
    }

    .footer-inner {
        padding: 15px;
    }

    /* Social Share */
    .social-share-buttons {
        flex-wrap: wrap;
        padding: 10px;
    }

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

    /* Related Posts */
    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    /* Author Bio */
    .author-bio-content {
        flex-direction: column;
        text-align: center;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 10px;
        padding: 8px 10px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 5px;
        gap: 8px;
    }

    article,
    .post,
    .page {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .entry-header {
        padding: 10px !important;
        border-radius: 4px 4px 0 0;
    }

    .entry-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .entry-meta {
        font-size: 9px;
        margin-top: 5px;
    }

    .entry-meta .sep {
        margin: 0 4px;
    }

    .entry-content,
    .entry-summary {
        padding: 10px;
        font-size: 12px;
        line-height: 1.6;
    }

    .app-header {
        height: 44px;
        padding: 0 6px;
    }

    .header-left .logo img,
    .custom-logo-link img {
        max-height: 26px;
    }

    .site-title-text {
        font-size: 14px;
    }

    .username-display {
        padding: 6px 12px;
        font-size: 11px;
        gap: 4px;
    }

    .navbar-profile-placeholder {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .navbar-username {
        display: none;
    }

    .auth-links {
        font-size: 11px;
        gap: 6px;
    }

    .go-to-app-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .go-to-app-btn .btn-text {
        display: none;
    }

    .myspace-nav {
        padding: 4px 6px;
        gap: 4px;
    }

    .myspace-nav-link {
        width: 32px;
        height: 32px;
    }

    .myspace-nav-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    /* Widgets Mobile */
    .widget {
        margin-bottom: 8px;
    }

    .widget-title,
    .widget h2,
    .widget h3 {
        font-size: 11px !important;
        padding: 8px 10px !important;
    }

    .widget li {
        padding: 6px 0;
        font-size: 11px;
    }

    /* Search Form Mobile */
    .search-form {
        flex-direction: column;
        gap: 6px;
    }

    .search-field {
        width: 100%;
    }

    .search-submit {
        width: 100%;
    }

    /* Comments Mobile */
    .comments-area {
        margin-top: 8px;
    }

    .comments-title {
        font-size: 11px;
        padding: 8px 10px;
    }

    .comment-list {
        padding: 10px;
    }

    .comment {
        padding: 10px;
    }

    .comment-author img {
        width: 40px;
        height: 40px;
    }

    .comment-author .fn {
        font-size: 10px;
    }

    .comment-content {
        font-size: 11px;
    }

    .comment-form input,
    .comment-form textarea {
        padding: 8px;
        font-size: 12px;
    }

    .comment-form textarea {
        min-height: 80px;
    }

    /* Pagination Mobile */
    .pagination,
    .post-navigation {
        padding: 10px;
    }

    .pagination .page-numbers {
        padding: 4px 8px;
        font-size: 10px;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation a {
        font-size: 10px;
        padding: 8px;
    }

    /* Table of Contents Mobile */
    .table-of-contents {
        max-width: 100% !important;
        float: none !important;
        margin: 0 0 12px 0 !important;
        width: 100%;
    }

    .table-of-contents .module-header {
        padding: 10px 12px;
        font-size: 11px;
    }

    .toc-body {
        padding: 10px !important;
    }

    .toc-list li {
        font-size: 10px;
        padding: 5px 0 5px 18px !important;
    }

    /* Drop cap completely disabled on phones */
    .entry-content > p:first-of-type::first-letter,
    .single .entry-content > p:first-of-type::first-letter {
        font-size: inherit !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: inherit !important;
        color: inherit !important;
    }

    /* Featured Image Mobile */
    .single .featured-image img,
    .page .featured-image img {
        max-height: 200px;
    }

    /* Newsletter Widget Mobile */
    .newsletter-widget-content {
        padding: 12px;
    }

    .newsletter-description {
        font-size: 11px;
    }

    .newsletter-form input[type="email"] {
        padding: 8px;
        font-size: 11px;
    }

    .newsletter-submit {
        padding: 8px 15px !important;
        font-size: 11px !important;
    }

    /* Recent Posts Widget Mobile */
    .recent-post-thumb img {
        width: 50px;
        height: 50px;
    }

    .recent-post-title {
        font-size: 10px;
    }

    .recent-post-date {
        font-size: 9px;
    }

    /* Author Bio Mobile */
    .author-bio-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .author-avatar img {
        width: 60px;
        height: 60px;
    }

    .author-name {
        font-size: 13px;
    }

    .author-description {
        font-size: 11px;
    }

    /* Related Posts Mobile */
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .related-post-thumb img {
        height: 150px;
    }

    .related-post-title {
        font-size: 11px;
    }

    /* Featured Image Mobile */
    .featured-image {
        max-width: 100%;
    }

    .featured-image img {
        max-height: 200px;
    }

    /* Social Share Mobile */
    .social-share-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }

    .share-btn {
        width: 28px;
        height: 28px;
    }

    .share-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Read More Button Mobile */
    .read-more-link,
    a.more-link {
        padding: 6px 15px;
        font-size: 10px;
        display: block;
        text-align: center;
    }

    /* Footer Mobile */
    .footer-inner {
        padding: 12px 10px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-links a {
        font-size: 9px;
        padding: 3px 5px;
    }

    .footer-copyright {
        font-size: 9px;
    }

    /* Breadcrumbs Mobile */
    .breadcrumbs {
        padding: 6px 10px;
        font-size: 9px;
        word-break: break-word;
    }

    .breadcrumb-sep {
        margin: 0 4px;
    }

    /* 404 Page Mobile */
    .error-404 {
        padding: 20px 15px;
    }

    .error-404 .page-title {
        font-size: 40px;
    }

    .error-404 .page-content p {
        font-size: 12px;
    }

    /* Archive/Search Header Mobile */
    .page-header {
        margin-bottom: 8px;
    }

    .page-title {
        font-size: 12px;
        padding: 8px 10px;
    }

    .archive-description,
    .search-description {
        padding: 8px 10px;
        font-size: 10px;
    }

    /* Images Mobile */
    img {
        max-width: 100%;
        height: auto;
    }

    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 10px auto;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .app-header {
        height: 40px;
        padding: 0 4px;
    }

    .header-left .logo img,
    .custom-logo-link img {
        max-height: 22px;
    }

    .site-title-text {
        font-size: 12px;
    }

    .username-display {
        padding: 4px 8px;
        font-size: 10px;
    }

    .username-display .navbar-username {
        display: none;
    }

    .go-to-app-btn {
        padding: 3px 6px;
        font-size: 9px;
    }

    .auth-links {
        font-size: 10px;
        gap: 4px;
    }

    .myspace-nav-link {
        width: 28px;
        height: 28px;
    }

    .nav-icon,
    .nav-icon svg {
        width: 14px;
        height: 14px;
    }

    .myspace-nav-btn {
        padding: 3px 6px;
        font-size: 9px;
        letter-spacing: 0;
    }

    .myspace-nav-btn.videochat-btn {
        padding: 3px 5px;
        font-size: 8px;
    }

    .entry-title {
        font-size: 12px;
    }

    .entry-meta {
        font-size: 8px;
    }

    .entry-content,
    .entry-summary {
        padding: 8px;
        font-size: 11px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.screen-reader-text,
.skip-link {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 10px 20px;
    background: #614d8e;
    color: #fff;
    z-index: 9999;
    text-decoration: none;
    clip: auto;
}

.alignleft {
    float: left;
    margin: 0 15px 10px 0;
}

.alignright {
    float: right;
    margin: 0 0 10px 15px;
}

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

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

.wp-caption-text {
    font-size: 10px;
    color: #666;
    text-align: center;
    padding: 6px;
    background: #f7f7f7;
}

/* Sticky Post */
.sticky .entry-header {
    background: #ff6600;
}

.sticky .entry-title::before {
    content: "Featured: ";
    font-size: 10px;
    font-weight: normal;
    opacity: 0.8;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: #614d8e;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 10px;
    border: 2px solid #f8f9fa;
}

::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #f8f9fa;
}

/* ============================================
   BREADCRUMBS - Classic Navigation Trail
   ============================================ */
.breadcrumbs {
    background: #f8f7f4;
    padding: 12px 20px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
    font-family: Verdana, Arial, sans-serif;
    border-bottom: 1px solid #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.breadcrumbs a {
    color: #614d8e;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: #4a3a6e;
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 10px;
    color: #bbb;
    font-weight: normal;
}

.breadcrumbs .current {
    color: #333;
    font-weight: bold;
    font-style: italic;
}

/* ============================================
   READING TIME
   ============================================ */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.reading-time svg {
    vertical-align: middle;
    flex-shrink: 0;
}

.post-views-count {
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .reading-time svg {
        width: 12px;
        height: 12px;
    }
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */
.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0;
    border-radius: 0 0 5px 5px;
}

.share-label {
    font-size: 11px;
    font-weight: bold;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 6px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff !important;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none !important;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
    text-decoration: none !important;
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-copy {
    background-color: #666 !important;
}

/* ============================================
   TABLE OF CONTENTS - Classic Index Style
   ============================================ */
.table-of-contents {
    margin: 0 0 25px 0;
    background: #faf9f6;
    border: 2px solid #614d8e;
    border-radius: 0;
    display: block;
    max-width: 300px;
    float: right;
    margin-left: 25px;
}

.table-of-contents .module-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #614d8e;
    color: #fff;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 0;
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.toc-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
}

.toc-body {
    padding: 15px !important;
    background: #faf9f6 !important;
}

.toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    counter-reset: toc-counter;
}

.toc-list li {
    padding: 8px 0 8px 25px !important;
    border-bottom: 1px dotted #d0d0d0;
    font-size: 13px;
    line-height: 1.5;
    font-family: Georgia, serif;
    position: relative;
    counter-increment: toc-counter;
}

.toc-list li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    color: #614d8e;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
}

.toc-list li:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
}

.toc-list li:first-child {
    padding-top: 0 !important;
}

.toc-list li a {
    color: #333;
    text-decoration: none;
    display: block;
}

.toc-list li a:hover {
    color: #614d8e;
    text-decoration: underline;
}

/* ============================================
   AUTHOR BIO BOX
   ============================================ */
.author-bio {
    margin-top: 15px;
}

.author-bio-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid #614d8e;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 10px;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    letter-spacing: -0.01em;
}

.author-name a {
    color: #1a1a1a;
    text-decoration: none;
}

.author-name a:hover {
    color: #614d8e;
}

.author-name::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #614d8e;
    margin-top: 8px;
}

.author-description {
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.75;
    color: #444;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    border-left: 3px solid #e0e0e0;
    padding-left: 15px;
}

.author-posts-link {
    display: inline-block;
    font-size: 11px;
    color: #164184;
    font-weight: 600;
}

.author-posts-link:hover {
    color: #614d8e;
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
    margin-top: 15px;
}

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

.related-post-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.related-post-thumb {
    display: block;
    overflow: hidden;
}

.related-post-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.related-post-info {
    padding: 10px;
}

.related-post-title {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 6px;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
}

.related-post-title:hover {
    color: #614d8e;
    text-decoration: underline;
}

.related-post-date {
    font-size: 11px;
    color: #888;
    font-style: italic;
    font-family: Georgia, serif;
}

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

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

/* ============================================
   NEWSLETTER WIDGET
   ============================================ */
.newsletter-widget-content {
    padding: 15px;
    text-align: center;
}

.newsletter-description {
    font-size: 12px;
    color: #555;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-form input[type="email"] {
    padding: 10px;
    border: 1px solid #bdc7d8;
    font-size: 12px;
    text-align: center;
}

/* Newsletter submit button styles moved to BUTTONS section */

.newsletter-privacy {
    font-size: 9px;
    color: #999;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ============================================
   RECENT POSTS WITH THUMBNAILS WIDGET
   ============================================ */
.recent-posts-thumb {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.recent-post-item {
    display: flex;
    gap: 10px;
    padding: 10px 0 !important;
    border-bottom: 1px solid #e8e8e8;
}

.recent-post-item:first-child {
    padding-top: 0 !important;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
}

.recent-post-thumb {
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.recent-post-info {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #164184;
    line-height: 1.4;
    margin-bottom: 4px;
    text-decoration: none;
}

.recent-post-title:hover {
    color: #614d8e;
    text-decoration: underline;
}

.recent-post-date {
    font-size: 10px;
    color: #999;
}

/* ============================================
   FEATURED IMAGE STYLING - Single Post (Centered Above Content)
   ============================================ */
.single .featured-image,
.page .featured-image {
    position: relative;
    float: none;
    margin: 0 auto 20px;
    max-width: 100%;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    text-align: center;
}

.single .featured-image img,
.page .featured-image img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.featured-image-caption {
    background: #f8f7f4;
    color: #555;
    font-size: 12px;
    padding: 12px 15px;
    margin: 0;
    text-align: center;
    font-family: Georgia, serif;
    font-style: italic;
    border-bottom: 2px solid #614d8e;
    line-height: 1.5;
}

/* Clear float after content */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* End of Article marker - Classic magazine style */
.single .entry-content > p:last-of-type::after,
.page .entry-content > p:last-of-type::after {
    content: ' ■';
    color: #614d8e;
    font-size: 12px;
    margin-left: 5px;
}

/* ============================================
   POPULAR POSTS WIDGET
   ============================================ */
.widget .post-views {
    display: block;
    font-size: 9px;
    color: #999;
    margin-top: 2px;
}

/* ============================================
   LAZY LOADING - Native Support
   ============================================ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* ============================================
   PRINT STYLES - Professional Newspaper Print
   ============================================ */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        font-family: 'Times New Roman', Times, serif;
    }

    .site-header,
    .site-footer,
    .sidebar,
    .widget-area,
    .social-share-buttons,
    .post-navigation,
    .related-posts,
    .comments-area,
    .breadcrumbs,
    .table-of-contents,
    .read-more-link,
    .author-bio {
        display: none !important;
    }

    .content-wrapper {
        display: block;
        max-width: 100%;
    }

    .content-area {
        width: 100%;
    }

    article {
        box-shadow: none;
        border: none;
        page-break-inside: avoid;
    }

    .entry-header {
        background: none !important;
        color: #000 !important;
        padding: 0 !important;
        border-bottom: 2px solid #000;
        margin-bottom: 20pt;
    }

    .entry-header::after {
        display: none;
    }

    .entry-title,
    .entry-title a {
        color: #000 !important;
        font-size: 24pt;
        font-weight: bold;
    }

    .entry-meta {
        color: #333 !important;
        font-size: 10pt;
        font-style: italic;
    }

    .entry-content {
        padding: 0 !important;
        font-size: 11pt;
        text-align: justify;
        column-count: 2;
        column-gap: 30pt;
    }

    .entry-content p {
        text-indent: 1.5em;
        margin-bottom: 10pt;
        orphans: 3;
        widows: 3;
    }

    .entry-content p:first-of-type {
        text-indent: 0;
    }

    .entry-content p:first-of-type::first-letter {
        font-size: 4em;
        float: left;
        line-height: 0.8;
        padding-right: 8pt;
        font-weight: bold;
    }

    .entry-content h2,
    .entry-content h3 {
        column-span: all;
        page-break-after: avoid;
    }

    .entry-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    .entry-content blockquote {
        border-left: 2pt solid #000;
        padding-left: 15pt;
        margin: 15pt 0;
        font-style: italic;
    }

    a {
        color: #000 !important;
        text-decoration: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }

    .featured-image {
        max-width: 60%;
        margin: 0 auto 20pt;
    }

    /* Add publication info */
    @page {
        margin: 2cm;
    }

    /* End of article marker in print */
    .single .entry-content > p:last-of-type::after {
        content: ' ■';
        font-size: 10pt;
    }
}

/* ============================================
   HOMEPAGE FEATURED POST - Hero Style
   ============================================ */
.featured-post {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ccc;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    min-height: 220px;
}

.featured-post-image {
    position: relative;
    flex: 0 0 40%;
    max-width: 40%;
    overflow: hidden;
}

.featured-post-image a {
    display: block;
    height: 100%;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: none;
}

.featured-post-image:hover img {
    opacity: 0.9;
}

/* Featured post placeholder when no thumbnail */
.featured-post-image.no-thumbnail {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e5dc 100%);
    min-height: 220px;
}

.featured-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-placeholder-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.featured-placeholder-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #614d8e;
}

.featured-placeholder-icon {
    font-size: 48px;
    opacity: 0.6;
    line-height: 1;
}

.featured-placeholder-text {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 14px;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.6;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff6600;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px outset #ff8833;
    pointer-events: auto;
}

.featured-post-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #669AC9;
}

.featured-post .entry-header {
    background: none !important;
    padding: 0 !important;
    border-radius: 0;
}

.featured-post .entry-header::after {
    display: none;
}

.featured-post .entry-title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 10px;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: -0.02em;
}

.featured-post .entry-title a {
    color: #ffffff;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.featured-post .entry-title a:hover {
    color: #ffdd99;
    text-decoration: underline;
}

.featured-post .entry-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: Verdana, Arial, sans-serif;
    font-style: italic;
}

.featured-post .entry-meta a {
    color: #ffdd99;
    font-style: normal;
    font-weight: 600;
}

.featured-post .entry-meta .sep {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

.featured-post .entry-summary {
    padding: 0 !important;
    font-size: 15px;
    line-height: 1.75;
    color: #ffffff !important;
    margin-bottom: 20px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    background: transparent !important;
    text-align: left !important;
}

.featured-post .entry-summary p {
    margin: 0;
    text-indent: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    text-align: left !important;
}

.featured-post-footer {
    margin-top: auto;
}

.featured-post .read-more-link {
    padding: 8px 20px;
    font-size: 11px;
}

/* ============================================
   HOMEPAGE POSTS GRID - Card Layout
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.post-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
}

.post-card:hover {
    border-color: #614d8e;
}

.card-thumbnail {
    position: relative;
    overflow: hidden;
    height: 140px;
}

.card-thumbnail a {
    display: block;
    height: 100%;
    position: relative;
}

/* Premium Overlay Effect - Visible by default, clear on hover */
.card-thumbnail a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(97, 77, 142, 0.4) 0%,
        rgba(22, 72, 118, 0.35) 50%,
        rgba(97, 77, 142, 0.45) 100%
    );
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.post-card:hover .card-thumbnail a::before {
    opacity: 0;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .card-thumbnail img {
    transform: scale(1.02);
}

.card-thumbnail.no-image {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e5dc 100%);
}

.card-thumbnail.no-image a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.placeholder-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #614d8e;
}

.placeholder-icon {
    font-size: 32px;
    opacity: 0.7;
    line-height: 1;
}

.placeholder-text {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 12px;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* Category badge on thumbnail */
.card-category-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.card-category-badge a {
    display: inline-block;
    background: #614d8e;
    color: #fff !important;
    font-size: 9px;
    font-weight: bold;
    padding: 4px 10px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 1px outset #7759a1;
}

.card-category-badge a:hover {
    background: #4a3a6e;
}

.sticky-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6600;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 3px 8px;
    text-transform: uppercase;
    border: 1px outset #ff8833;
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #FFFBF0;
}

.card-header {
    margin-bottom: 12px;
}

.card-category {
    margin-bottom: 8px;
}

.card-category a {
    display: inline-block;
    background: #614d8e;
    color: #fff !important;
    font-size: 9px;
    font-weight: bold;
    padding: 3px 8px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 1px outset #7759a1;
}

.card-category a:hover {
    background: #4a3a6e;
}

.card-title {
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: -0.01em;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.card-title a:hover {
    color: #614d8e;
}

.card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
    flex: 1;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.card-meta {
    font-size: 10px;
    color: #888;
}

.card-date {
    display: block;
}

.card-reading-time {
    display: block;
    margin-top: 2px;
}

.card-reading-time svg {
    width: 10px;
    height: 10px;
    vertical-align: middle;
}

.card-read-more {
    background: #614d8e;
    color: #fff !important;
    font-size: 10px;
    font-weight: bold;
    padding: 5px 12px;
    text-decoration: none !important;
    border: 1px outset #7759a1;
}

.card-read-more:hover {
    background: #4a3a6e;
}

/* ============================================
   SINGLE POST FEATURED IMAGE - Improved
   ============================================ */
.single .featured-image,
.page .featured-image {
    position: relative;
    float: none;
    margin: 0 auto 20px;
    max-width: 100%;
    border: 1px solid #ccc;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    text-align: center;
}

.single .featured-image img,
.page .featured-image img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    display: block;
    border-radius: 0;
    box-shadow: none;
    background: #f5f5f5;
}

/* ============================================
   RESPONSIVE - Featured Post & Cards
   ============================================ */
@media (max-width: 1100px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .featured-post {
        flex-direction: column;
        max-height: none;
    }

    .featured-post-image {
        flex: none;
        max-width: 100%;
    }

    .featured-post-image img {
        min-height: 180px;
        max-height: 220px;
    }

    .featured-post-content {
        padding: 15px;
    }

    .featured-post .entry-title {
        font-size: 16px;
    }
}

@media (max-width: 700px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    /* Table of Contents - Full width on tablet/mobile */
    .table-of-contents {
        max-width: 100% !important;
        float: none !important;
        margin: 0 0 20px 0 !important;
        width: 100%;
    }

    /* Drop cap - smaller on tablet */
    .entry-content > p:first-of-type::first-letter,
    .single .entry-content > p:first-of-type::first-letter {
        font-size: 3em;
        margin-right: 8px;
    }

    /* Content text - left align, no justify on mobile */
    .entry-content p,
    .entry-summary p {
        text-align: left !important;
        text-indent: 0 !important;
        hyphens: none !important;
    }
}

@media (max-width: 600px) {
    .featured-post-image img {
        min-height: 150px;
        max-height: 180px;
    }

    .featured-post-content {
        padding: 10px;
    }

    .featured-post .entry-title {
        font-size: 14px;
    }

    .featured-post .entry-summary {
        font-size: 11px;
    }

    .featured-badge {
        font-size: 8px;
        padding: 3px 6px;
    }

    .card-thumbnail {
        height: 120px;
    }

    .card-content {
        padding: 10px;
    }

    .card-title {
        font-size: 12px;
    }

    .card-excerpt {
        font-size: 10px;
    }

    .single .featured-image {
        max-width: 100%;
    }

    .single .featured-image img {
        max-height: 250px;
        border-radius: 0;
    }

    /* Table of Contents - even more compact */
    .table-of-contents {
        margin: 0 0 15px 0 !important;
    }

    .toc-list li {
        font-size: 11px;
        padding: 6px 0 6px 20px !important;
    }

    /* Drop cap - disable on small mobile */
    .entry-content > p:first-of-type::first-letter,
    .single .entry-content > p:first-of-type::first-letter {
        font-size: 1em;
        float: none;
        margin: 0;
        padding: 0;
        line-height: inherit;
    }

    /* Entry content mobile */
    .entry-content,
    .entry-summary {
        padding: 15px !important;
        font-size: 14px;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 11px;
        padding: 10px;
    }

    /* Entry header */
    .single .entry-header,
    .page .entry-header {
        padding: 15px !important;
    }

    .single .entry-title,
    .page .entry-title {
        font-size: 18px;
    }

    .entry-meta {
        font-size: 11px;
        flex-wrap: wrap;
    }
}

@media (max-width: 400px) {
    .featured-post .entry-title {
        font-size: 13px;
    }

    .featured-post-content {
        padding: 8px;
    }

    .card-thumbnail {
        height: 100px;
    }

    .card-content {
        padding: 8px;
    }

    .card-title {
        font-size: 11px;
    }

    .card-footer {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}

/* ============================================
   ARCHIVE & SEARCH HEADERS - Enhanced
   ============================================ */
.archive-header,
.search-header {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    overflow: hidden;
}

.archive-header .page-title,
.search-header .page-title {
    background: #614d8e;
    color: #fff;
    font-size: 12px;
    padding: 8px 10px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.archive-header .page-title span,
.search-header .page-title span {
    color: #ffcc99;
}

.archive-description,
.search-description {
    padding: 10px;
    font-size: 11px;
    color: #555;
    background: #FFFBF0;
}

/* Archive Grid - 3 columns on larger screens */
.archive-grid,
.search-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 1100px) {
    .archive-grid,
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .archive-grid,
    .search-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CLASSIC TYPOGRAPHY SYSTEM
   For older generation / professional look
   ============================================ */

/* Drop Cap - First letter of articles */
.single .entry-content > p:first-of-type::first-letter,
.page .entry-content > p:first-of-type::first-letter {
    font-size: 3.5em;
    float: left;
    line-height: 0.75;
    padding-right: 10px;
    padding-top: 6px;
    font-weight: bold;
    color: #614d8e;
    font-family: 'Times New Roman', Times, serif;
}

/* Lead Paragraph - First paragraph emphasis */
.entry-content > p:first-of-type {
    font-size: 17px;
    line-height: 1.7;
    color: #1a1a1a;
}

/* Pull Quote - Magazine style */
.wp-block-pullquote,
.pullquote {
    border: none;
    border-top: 3px solid #614d8e;
    border-bottom: 3px solid #614d8e;
    padding: 25px 0;
    margin: 30px 40px;
    text-align: center;
}

.wp-block-pullquote p,
.pullquote p {
    font-size: 22px;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #333;
    line-height: 1.5;
    margin: 0;
    text-indent: 0;
}

.wp-block-pullquote cite,
.pullquote cite {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    font-style: normal;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Byline / Author credit */
.byline {
    font-style: italic;
    color: #666;
}

.byline .author {
    font-style: normal;
    font-weight: 600;
    color: #614d8e;
}

/* Date styling - Newspaper style */
.posted-on time,
.entry-date {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Category links - Tag style */
.cat-links a,
.entry-categories a {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #614d8e;
    font-weight: 600;
}

/* Tags - Classic label style */
.tags-links a,
.entry-tags a {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    background: #f5f5f5;
    padding: 3px 8px;
    margin: 2px;
    display: inline-block;
    color: #555;
    text-decoration: none;
}

.tags-links a:hover,
.entry-tags a:hover {
    background: #614d8e;
    color: #fff;
}

/* Figure captions - Classic style */
.wp-caption-text,
figcaption,
.entry-content figcaption {
    font-size: 12px;
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 10px;
    background: #f9f9f9;
    border-bottom: 2px solid #614d8e;
    font-family: Georgia, serif;
}

/* Table styling - Classic */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
}

.entry-content table th {
    background: #614d8e;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.entry-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-family: Georgia, serif;
}

.entry-content table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Definition lists - Classic */
.entry-content dl {
    margin: 25px 0;
}

.entry-content dt {
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.entry-content dd {
    margin-left: 25px;
    margin-bottom: 15px;
    font-style: italic;
    color: #444;
    line-height: 1.6;
}

/* Reading time - Subtle style */
.reading-time {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Meta separator style */
.entry-meta .sep {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 10px;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .entry-content,
    .entry-summary {
        font-size: 15px;
        padding: 15px;
    }

    .entry-content p {
        text-indent: 0;
        text-align: left;
    }

    .entry-content > p:first-of-type::first-letter,
    .single .entry-content > p:first-of-type::first-letter {
        font-size: 2.5em;
        padding-right: 6px;
    }

    .entry-content h2 {
        font-size: 20px;
    }

    .entry-content h3 {
        font-size: 17px;
    }

    .entry-content blockquote {
        margin: 20px 0;
        padding: 15px 20px;
        font-size: 15px;
    }

    .wp-block-pullquote p,
    .pullquote p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .entry-content,
    .entry-summary {
        font-size: 14px;
    }

    .single .entry-title,
    .page .entry-title {
        font-size: 20px;
    }

    .entry-content > p:first-of-type::first-letter,
    .single .entry-content > p:first-of-type::first-letter {
        font-size: 2em;
    }

    .entry-content h2 {
        font-size: 18px;
    }

    .entry-content h3 {
        font-size: 16px;
    }
}
