/* ============================================
   Social Trending - Professional Blue Theme
   Inspired by socialtrendingve.wordpress.com
   ============================================ */

:root {
    --blue-600: #3566B0;
    --blue-500: #4173C4;
    --blue-400: #5A8AD4;
    --blue-300: #8AB4F8;
    --blue-100: #E8F0FE;
    --dark-900: #1a1a2e;
    --dark-700: #2d2d44;
    --text: #2c3e50;
    --text-light: #6c7a89;
    --text-muted: #95a5a6;
    --bg: #f4f6f9;
    --white: #ffffff;
    --border: #e1e8ed;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-lg: 16px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--blue-600);
}

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

ul, ol {
    padding-left: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.25;
    color: var(--dark-900);
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

/* ---------- Header ---------- */
.site-header {
    background: #0072BC;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    height: 44px;
    width: auto;
    transition: opacity 0.2s;
}

.site-logo:hover img {
    opacity: 0.85;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.2px;
}

.site-nav a i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.site-nav .nav-login {
    background: var(--blue-500);
    color: #fff;
    border-radius: 20px;
    padding: 8px 18px;
}

.site-nav .nav-login:hover {
    background: var(--blue-400);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 4px auto;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---------- Top Banner (background) ---------- */
.topbanner-wrapper {
    width: 100%;
    line-height: 0;
    margin-bottom: -30%;
    pointer-events: none;
}

.topbanner-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Hero Tagline ---------- */
.hero-tagline {
    background: #0072BC;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    margin-bottom: 24px;
    border-radius: var(--radius);
}

.hero-tagline p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 300;
    opacity: 0.95;
}

.hero-tagline strong {
    font-weight: 600;
    color: #FFD700;
}

/* ---------- Site Container ---------- */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* ---------- Blog Layout (main + sidebar) ---------- */
.blog-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.blog-main {
    flex: 2;
    min-width: 0;
}

.blog-sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
}

/* ---------- Post Cards ---------- */
.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.post-card:hover {
    box-shadow: 0 4px 16px rgba(65, 115, 196, 0.15);
    transform: translateY(-2px);
}

.post-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

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

.post-card-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.post-card-title a {
    color: #222;
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--blue-500);
}

.post-card-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.post-card-meta i {
    margin-right: 4px;
    color: var(--blue-500);
}

.post-card-excerpt {
    color: #555;
    margin-bottom: 16px;
    line-height: 1.6;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.post-card-share {
    display: flex;
    gap: 8px;
}

.post-card-share a {
    color: #999;
    font-size: 1rem;
    transition: color 0.2s;
}

.post-card-share a:hover {
    color: var(--blue-500);
    text-decoration: none;
}

.read-more {
    color: var(--blue-500);
    font-weight: 600;
    font-size: 0.95rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* ---------- Pinned Badge ---------- */
.badge-pinned {
    display: inline-block;
    background: var(--blue-500);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Single Post ---------- */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-post .post-cover {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.single-post h1 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 12px;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #4173C4;
}

.post-meta-bar i {
    margin-right: 4px;
    color: var(--blue-500);
}

.post-meta-bar a {
    color: var(--blue-500);
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 1.2em;
}

.post-content h2 {
    margin-top: 1.5em;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.post-content h3 {
    margin-top: 1.3em;
}

.post-content blockquote {
    border-left: 4px solid #4173C4;
    margin: 1.5em 0;
    padding: 12px 20px;
    background: #f5f7fa;
    color: #555;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

.post-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 16px 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.9rem;
}

.post-content code {
    background: #f5f7fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

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

.post-content img {
    border-radius: 6px;
    margin: 1em 0;
}

/* Audio player */
.audio-player {
    width: 100%;
    margin: 16px 0;
    border-radius: 30px;
}

/* Like & Share bar */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

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

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f7fa;
    color: #666;
    transition: all 0.2s;
}

.share-buttons a:hover {
    background: var(--blue-500);
    color: #fff;
    text-decoration: none;
}

/* ---------- Like Button ---------- */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f7fa;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    transition: all 0.2s;
}

.like-btn:hover {
    background: var(--blue-500);
    color: #fff;
    border-color: var(--blue-500);
}

.like-btn.liked {
    background: var(--blue-500);
    color: #fff;
    border-color: var(--blue-500);
    cursor: default;
}

.like-btn.small {
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* ---------- Comments ---------- */
.comments-section {
    margin-top: 40px;
}

.comments-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4173C4;
}

.comment {
    border-left: 3px solid #4173C4;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #f9fafb;
    border-radius: 0 6px 6px 0;
}

.comment .comment-author {
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.comment .comment-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
}

.comment .comment-body {
    color: #444;
    line-height: 1.6;
}

.comment .comment-actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
}

.comment-reply {
    margin-left: 32px;
}

.comment-reply .comment {
    border-left-color: #8ab4f8;
    background: #f0f4fa;
}

/* Comment form */
.comment-form {
    margin-top: 24px;
    padding: 24px;
    background: #f5f7fa;
    border-radius: var(--radius);
}

.comment-form h3 {
    margin-bottom: 16px;
}

/* ---------- Sidebar ---------- */
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    color: #222;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid #4173C4;
}

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

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.sidebar-widget ul li a {
    color: #444;
    font-size: 0.95rem;
}

.sidebar-widget ul li a:hover {
    color: var(--blue-500);
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(65, 115, 196, 0.15);
}

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

select.form-control {
    appearance: auto;
}

.form-hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--blue-500);
    color: #fff;
}

.btn-primary:hover {
    background: #2c5aa0;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #545b62;
    color: #fff;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
    color: #fff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
    color: #fff;
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid #4173C4;
    color: var(--blue-500);
}

.btn-outline:hover {
    background: var(--blue-500);
    color: #fff;
}

/* ---------- Flash Messages ---------- */
.flash-container {
    margin-bottom: 20px;
}

.flash {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error, .flash-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    list-style: none;
    padding: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--blue-500);
    background: #f5f7fa;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--blue-500);
    color: #fff;
    text-decoration: none;
}

.pagination .active,
.pagination span.current {
    background: var(--blue-500);
    color: #fff;
}

.pagination .disabled {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

/* ---------- Admin Panel ---------- */
.admin-panel {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-panel h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.admin-panel h1 i {
    color: var(--blue-500);
    margin-right: 8px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 {
    margin-bottom: 0;
}

.admin-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.admin-nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.admin-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    text-align: center;
}

.admin-nav-card:hover {
    border-color: var(--blue-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text);
}

.admin-nav-card i {
    font-size: 1.8rem;
    color: var(--blue-500);
}

.admin-nav-card span {
    font-weight: 600;
    font-size: 1rem;
}

.admin-nav-card small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.admin-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.admin-section h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue-500);
}

.admin-form {
    max-width: 600px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.actions-cell {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* Badge statuses */
.badge-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-published { background: #d4edda; color: #155724; }
.badge-draft { background: #fff3cd; color: #856404; }
.badge-superadmin { background: #f8d7da; color: #721c24; }
.badge-admin { background: var(--blue-100); color: var(--blue-600); }
.badge-author { background: #f5f7fa; color: #6c757d; }
.badge-pinned-sm { background: var(--blue-100); color: var(--blue-500); }

/* Admin comment items */
.admin-comment-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.admin-comment-item:last-child { border-bottom: none; }
.admin-comment-item p { margin: 4px 0; color: var(--text-light); font-size: 0.9rem; }
.admin-comment-item small { color: var(--text-muted); }

.admin-comment-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
}

.admin-comment-header {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.admin-comment-date {
    color: var(--text-muted);
    margin-left: 8px;
}

.admin-comment-body {
    color: var(--text);
    margin-bottom: 10px;
}

.admin-comment-actions {
    display: flex;
    gap: 8px;
}

/* ---------- Stat Cards ---------- */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-number {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blue-500);
    display: block;
}

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

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover {
    background: #f9fafb;
}

table td a {
    color: var(--blue-500);
}

/* ---------- Voice Recorder ---------- */
.recorder-container {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.recorder-container .record-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #dc3545;
    background: #fff;
    color: #dc3545;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.recorder-container .record-btn:hover {
    background: #dc3545;
    color: #fff;
}

.recorder-container .record-btn.recording {
    background: #dc3545;
    color: #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.recorder-status {
    font-size: 0.95rem;
    color: #666;
    margin-top: 12px;
}

/* ---------- Dashboard ---------- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
}

/* ---------- Author Profile ---------- */
.author-profile {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    background: #f5f7fa;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4173C4;
}

.author-info h1 {
    margin-bottom: 4px;
}

.author-info .author-stats {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
}

/* ---------- Social Grid Widget ---------- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: #fff;
}

.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-twitter { background: var(--dark-900); }
.social-facebook { background: #1877F2; }
.social-youtube { background: #FF0000; }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--blue-300);
}

.empty-state h3 {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* ---------- Sidebar Recent Post Dates ---------- */
.sidebar-widget ul li small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #005a96;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 40px 20px 30px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin: 0 auto 10px;
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--blue-500);
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ---------- Social Share Panel ---------- */
.social-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.social-panel h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue-500);
}

.social-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.social-item:last-child { border-bottom: none; }

.social-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.social-item-header i {
    margin-right: 6px;
    font-size: 1.1rem;
}

.social-item-text {
    background: var(--bg);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---------- Editor (Full-Width WYSIWYG) ---------- */
.editor-fullwidth {
    max-width: 100%;
}

.editor-fullwidth h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.form-control-lg {
    font-size: 1.3rem;
    padding: 14px 18px;
    font-weight: 600;
}

.editor-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 16px;
}

.editor-main {
    flex: 1;
    min-width: 0;
}

.editor-main label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text);
}

#quill-editor {
    min-height: 500px;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 1.05rem;
    line-height: 1.7;
}

.ql-toolbar.ql-snow {
    border-radius: var(--radius) var(--radius) 0 0;
    border-color: var(--border);
    background: #fafbfc;
}

.ql-container.ql-snow {
    border-color: var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
}

.editor-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.editor-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 90px;
}

.editor-panel h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue-500);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue-500);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .editor-row {
        flex-direction: column;
    }
    .editor-sidebar {
        width: 100%;
    }
    #quill-editor {
        min-height: 350px;
    }
}

/* ---------- About Page ---------- */
.about-page {
    max-width: 800px;
    margin: 0 auto;
}

.about-page h1 {
    font-size: 2.2rem;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--blue-500);
}

.about-section {
    margin-bottom: 36px;
}

.about-section h2 {
    font-size: 1.5rem;
    color: var(--blue-600);
    margin-bottom: 16px;
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 14px;
}

/* ---------- Page Header ---------- */
.page-header {
    background: linear-gradient(135deg, #0072BC 0%, #005a96 100%);
    color: #fff;
    padding: 48px 24px 40px;
    margin: -24px -24px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E8651A, #4DA8E8, #E8651A);
}

.page-header-inner {
    max-width: 700px;
    margin: 0 auto;
}

.page-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.page-header h1 i {
    margin-right: 10px;
    opacity: 0.85;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ---------- Page Body ---------- */
.page-body {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 0;
}

/* ---------- Page Cards ---------- */
.page-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

.page-card:hover {
    box-shadow: var(--shadow-md);
}

.page-card h2 {
    font-size: 1.5rem;
    color: #005a96;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue-100);
}

.page-card h2 i {
    margin-right: 8px;
    color: #0072BC;
}

.page-card h3 {
    font-size: 1.2rem;
    color: #005a96;
    margin-bottom: 12px;
}

.page-card h3 i {
    margin-right: 8px;
    color: #4DA8E8;
}

.page-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 12px;
}

.page-card p:last-child {
    margin-bottom: 0;
}

.page-card-accent {
    border-left: 4px solid #0072BC;
}

/* ---------- Services Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.service-card {
    text-align: center;
    padding: 36px 28px;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0072BC, #4DA8E8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 114, 188, 0.3);
}

.service-card h3 {
    text-align: center;
    border: none;
}

/* ---------- Contact Layout ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.contact-info .page-card {
    margin-bottom: 16px;
}

.contact-form-wrapper .page-card {
    position: sticky;
    top: 100px;
}

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

.styled-form .form-group label {
    font-weight: 600;
    color: var(--dark-900);
    margin-bottom: 6px;
    display: block;
    font-size: 0.92rem;
}

.styled-form .form-group label i {
    margin-right: 6px;
    color: #4DA8E8;
}

.styled-form .form-control {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.styled-form .form-control:focus {
    border-color: #0072BC;
    box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.15);
    outline: none;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1.05rem;
}

/* ---------- Dashboard Stats ---------- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0072BC, #4DA8E8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon-green {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.stat-icon-amber {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-900);
    line-height: 1;
}

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

.dashboard-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.dashboard-table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.dashboard-table thead th {
    background: var(--bg);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.dashboard-table tbody tr:hover {
    background: rgba(0, 114, 188, 0.03);
}

.post-title-link {
    font-weight: 600;
    color: var(--dark-900);
}

.post-title-link:hover {
    color: #0072BC;
}

.date-cell {
    color: var(--text-light);
    font-size: 0.9rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-published {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-published i { font-size: 0.5rem; }

.status-draft {
    background: #fff3e0;
    color: #e65100;
}

.status-draft i { font-size: 0.5rem; }

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.empty-state i {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* ---------- Auth Card ---------- */
.auth-card {
    max-width: 440px;
    margin: 40px auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.auth-card-header {
    background: linear-gradient(135deg, #0072BC 0%, #005a96 100%);
    color: #fff;
    padding: 28px 32px;
    text-align: center;
}

.auth-card-header i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.85;
}

.auth-card-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.6rem;
}

.auth-card-body {
    padding: 32px;
}

/* ---------- Profile Form ---------- */
.profile-form-container {
    max-width: 640px;
    margin: 0 auto;
}

.form-section-divider {
    margin: 28px 0 20px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.form-section-divider h3 {
    color: #005a96;
    margin-bottom: 4px;
}

.form-section-divider h3 i {
    margin-right: 8px;
    color: #E8651A;
}

.form-help {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ---------- Improved Voice Recorder ---------- */
.recorder-container {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.recorder-visual {
    margin-bottom: 24px;
}

.recorder-timer {
    font-family: 'DM Sans', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-900);
    margin-top: 16px;
    letter-spacing: 2px;
}

.recorder-controls {
    margin-bottom: 16px;
}

/* ---------- Responsive: Contact ---------- */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 32px 16px 28px;
        margin: -16px -16px 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

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

    .dashboard-actions {
        flex-direction: column;
    }

    .dashboard-table thead {
        display: none;
    }

    .dashboard-table tbody td {
        display: block;
        padding: 8px 16px;
        border: none;
    }

    .dashboard-table tbody td:first-child {
        padding-top: 16px;
        font-size: 1.05rem;
    }

    .dashboard-table tbody tr {
        border-bottom: 1px solid var(--border);
    }

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

    .auth-card {
        margin: 20px 12px;
    }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-muted { color: #999; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }

    .blog-sidebar {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #0072BC;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .site-nav.active {
        display: flex;
    }

    .site-nav a {
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-tagline p {
        font-size: 0.9rem;
    }

    .single-post h1 {
        font-size: 1.6rem;
    }

    .post-card-image {
        height: 180px;
    }

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

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

    .dashboard-header {
        flex-direction: column;
        gap: 12px;
    }

    .comment-reply {
        margin-left: 16px;
    }
}

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

    .post-meta-bar {
        flex-direction: column;
        gap: 8px;
    }
}
