/* Sharp, Modern Professional Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #004b99; /*#2563eb;*/
    --primary-dark:#004b99;  /*#1d4ed8;*/
    --primary-light: #004b99; /*#3b82f6;*/
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Scroll still works; scrollbars are hidden (Firefox / Chromium / legacy Edge) */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sharp Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    border-radius: var(--radius);
}

.nav-logo h1 {
    color: var(--primary);
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
}

/* Desktop-only blog nav controls (don’t affect mobile menu) */
.desktop-nav-actions { display: none; align-items: center; gap: 0.75rem; margin-left: auto; }
.desktop-menu { position: relative; }
.desktop-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 240px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    z-index: 2000;
}
.desktop-menu-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    text-decoration: none;
    color: var(--gray-800);
}
.desktop-menu-dropdown .dropdown-item:hover { background: var(--gray-100); }
.desktop-menu-dropdown .dropdown-divider { height: 1px; margin: 0.35rem 0; background: var(--gray-200); }

@media (min-width: 769px) {
    /* Hide clutter in desktop nav; use dropdown instead */
    .nav-menu > a.nav-link,
    .nav-menu > .auth-buttons,
    .nav-menu > .user-menu {
        display: none !important;
    }
    .desktop-nav-actions { display: inline-flex; }
    /* Mobile hamburger not used on desktop */
    .mobile-menu-toggle { display: none !important; }
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--gray-100);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary);
    color: white;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 0.875rem;
}

.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: 0.5rem;
    border-radius: 0%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-toggle:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: calc(100%);
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 12rem;
    display: none;
    z-index: 1001;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
    transform: translateX(4px);
}

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

.dropdown-item i {
    width: 1rem;
    text-align: center;
    color: var(--gray-500);
}

.dropdown-item:hover i {
    color: var(--primary);
}

/* Sharp Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Main Content Layout */
.main-content {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

.brand-watermark {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    opacity: 0.1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.brand-watermark:hover {
    opacity: 0.2;
}

.watermark-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: grayscale(100%);
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sharp Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Sharp Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    border-radius: var(--radius);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

/* Sharp Dashboard Layout */
.dashboard-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 7rem;
    border: 1px solid var(--gray-200);
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stat-card p {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.025em;
}

/* Sharp Profile Section */
.profile-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
}

.profile-avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 0%;
    object-fit: cover;
    border: 4px solid white;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.025em;
}

.profile-username {
    opacity: 0.9;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.profile-bio {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.profile-details {
    padding: 2rem;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.profile-info-item i {
    color: var(--primary);
    width: 1.25rem;
    text-align: center;
    font-size: 1.125rem;
}

/* Sharp Posts Grid — column rhythm is defined with homepage grids (see ~1703) */
.posts-grid {
    position: relative;
}

.post-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 0%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.post-author-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.post-author-info p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.post-content {
    padding: 1rem 1.5rem 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
    line-height: 1.4;
}

.post-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.875rem;
}

.post-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin: 1rem 0;
    border-radius: var(--radius);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.post-actions {
    display: flex;
    gap: 1.5rem;
}

.click-hint {
    color: var(--gray-500);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.post-card:hover .click-hint {
    opacity: 1;
    color: var(--primary);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: var(--radius);
}

.post-action:hover {
    color: var(--primary);
    background: var(--gray-100);
    transform: translateY(-1px);
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.tag {
    background: var(--gray-100);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-200);
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Sharp Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.section-header h2 {
    font-size: 1.875rem;
    color: var(--gray-800);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    min-width: 280px;
    transition: all 0.2s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.tag-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: white;
    min-width: 160px;
    transition: all 0.2s ease;
}

.tag-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* User Search Results */
.user-search-result {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-search-result:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.user-search-result .user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 0%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-search-result .user-info {
    flex: 1;
}

.user-search-result .user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.user-search-result .user-username {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.user-search-result .user-bio {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.user-search-result .user-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-search-result .user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-search-result .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-btn {
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Footer Styles */
.footer {
    background: var(--gray-900);
    color: white;
    margin-top: 4rem;
    border-top: 1px solid var(--gray-800);
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--gray-300);
    line-height: 1.6;
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: white;
    font-size: 0.9rem;
}

.contact-form input {
    color: var(--gray-800);
}

.contact-form textarea {
    color: var(--gray-800) !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-500);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 177, 0.1);
}

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* Map Container */
.map-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.us-map {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--gray-700);
    background: var(--gray-800);
}

.us-map iframe {
    border-radius: var(--radius-lg);
}

.location-info p {
    color: var(--gray-300);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-info i {
    color: var(--primary);
    width: 16px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 1.5rem 2rem;
    background: var(--gray-950);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-400);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .us-map {
        height: 150px;
    }
}

/* Sharp Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 32rem;
    position: relative;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.modal-content.large {
    max-width: 48rem;
}

.modal-header {
    padding: 2rem 2rem 0;
    position: relative;
}

.modal-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.close {
    color: var(--gray-500);
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0%;
    transition: all 0.2s ease;
}

.close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Informational Modal Specific Styles */
.info-modal-content {
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.info-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    text-align: center;
}

.info-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.info-modal-body {
    padding: 2rem;
}

.info-content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.info-text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-text-content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.info-text-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.info-text-content ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-text-content li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.info-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.info-image-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.info-modal-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0 0 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
    position: relative;
}

.info-modal-actions .btn {
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.info-modal-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive design for informational modal */
@media (max-width: 768px) {
    .info-content-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .info-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .info-modal-body {
        padding: 1.5rem;
    }
}

/* Sharp Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input:not(#newspaper-welcome-dont-show), .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 6rem;
    line-height: 1.6;
}

/* Approval Status */
.approval-status {
    background: white;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow);
    border-left: 4px solid;
    font-weight: 500;
}

.approval-status.warning {
    border-left-color: var(--warning);
    color: var(--warning);
    background: #fef3c7;
}

.approval-status.danger {
    border-left-color: var(--danger);
    color: var(--danger);
    background: #fee2e2;
}

.approval-status i {
    font-size: 1.125rem;
}

/* Admin Interface */
.user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 0%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.5rem;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 0%;
    object-fit: cover;
}

.user-details h4 {
    margin: 0 0 0.25rem 0;
    color: var(--gray-800);
}

.user-details p {
    margin: 0 0 0.5rem 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.user-role, .user-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 0.5rem;
}

.user-role.admin {
    background: var(--danger);
    color: white;
}

.user-role.moderator {
    background: var(--warning);
    color: white;
}

.user-role.user {
    background: var(--gray-500);
    color: white;
}

.user-status.pending {
    background: var(--warning);
    color: white;
}

.user-status.approved {
    background: var(--success);
    color: white;
}

.user-status.rejected {
    background: var(--danger);
    color: white;
}

.user-status.suspended {
    background: var(--gray-600);
    color: white;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.status-select, .role-select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.approval-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.approval-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--gray-800);
}

.approval-info p {
    margin: 0 0 0.25rem 0;
    color: var(--gray-600);
}

.approval-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.approval-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Post Status Badges */
.post-status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.75rem;
}

.post-status-badge.draft {
    background: var(--warning);
    color: white;
}

.post-status-badge.published {
    background: var(--success);
    color: white;
}

.post-status-badge.archived {
    background: var(--gray-600);
    color: white;
}

/* Edit Post Button */
.edit-post-btn {
    color: var(--primary) !important;
    font-weight: 500;
}

.edit-post-btn:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

/* Delete Post Button */
.delete-post-btn {
    color: var(--danger) !important;
    font-weight: 500;
}

.delete-post-btn:hover {
    color: #dc2626 !important;
    text-decoration: underline;
}

/* User Profile Links */
.user-profile-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.user-profile-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* User Posts Section */
.user-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 0%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.user-details h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.user-details p {
    margin: 0;
    font-size: 1.1rem;
}

/* Homepage featured strip + browse grid: same rhythm — one wide row, then two cards, repeat (desktop 2-col) */
.featured-posts-grid,
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 100%;
    position: relative;
}

.featured-posts-grid {
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-posts-grid .post-card,
.posts-grid .post-card {
    width: 100%;
}

@media (min-width: 769px) {
    .featured-posts-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .featured-posts-grid {
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .posts-grid .post-card:nth-child(3n + 1),
    .featured-posts-grid .post-card:nth-child(3n + 1) {
        grid-column: 1 / -1;
        max-width: 100% !important;
    }

    /* Final row is a single orphan (2nd, 5th, 8th… last card): full width */
    .posts-grid .post-card:nth-child(3n + 2):last-child,
    .featured-posts-grid .post-card:nth-child(3n + 2):last-child {
        grid-column: 1 / -1;
        max-width: 100% !important;
    }

    /* Single-post rows (1,2,1,2 rhythm): preview left, image right; scroll preview only */
    .posts-grid .post-card:nth-child(3n + 1),
    .featured-posts-grid .post-card:nth-child(3n + 1),
    .posts-grid .post-card:nth-child(3n + 2):last-child,
    .featured-posts-grid .post-card:nth-child(3n + 2):last-child {
        display: flex;
        flex-direction: column;
        aspect-ratio: unset;
        max-height: none;
        min-height: 22rem;
        overflow: hidden !important;
    }

    .posts-grid .post-card:nth-child(3n + 1) > .post-content,
    .featured-posts-grid .post-card:nth-child(3n + 1) > .post-content,
    .posts-grid .post-card:nth-child(3n + 2):last-child > .post-content,
    .featured-posts-grid .post-card:nth-child(3n + 2):last-child > .post-content {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .posts-grid .post-card:nth-child(3n + 1) .post-content > .post-card-preview-row,
    .featured-posts-grid .post-card:nth-child(3n + 1) .post-content > .post-card-preview-row,
    .posts-grid .post-card:nth-child(3n + 2):last-child .post-content > .post-card-preview-row,
    .featured-posts-grid .post-card:nth-child(3n + 2):last-child .post-content > .post-card-preview-row {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 1.25rem;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .posts-grid .post-card:nth-child(3n + 1) .post-card-preview-col,
    .featured-posts-grid .post-card:nth-child(3n + 1) .post-card-preview-col,
    .posts-grid .post-card:nth-child(3n + 2):last-child .post-card-preview-col,
    .featured-posts-grid .post-card:nth-child(3n + 2):last-child .post-card-preview-col {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .posts-grid .post-card:nth-child(3n + 1) .post-excerpt.scrollable-content,
    .featured-posts-grid .post-card:nth-child(3n + 1) .post-excerpt.scrollable-content,
    .posts-grid .post-card:nth-child(3n + 2):last-child .post-excerpt.scrollable-content,
    .featured-posts-grid .post-card:nth-child(3n + 2):last-child .post-excerpt.scrollable-content {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none !important;
        overflow-y: auto;
        overflow-x: hidden;
        margin-bottom: 0;
    }

    .posts-grid .post-card:nth-child(3n + 1) .post-card-image-col,
    .featured-posts-grid .post-card:nth-child(3n + 1) .post-card-image-col,
    .posts-grid .post-card:nth-child(3n + 2):last-child .post-card-image-col,
    .featured-posts-grid .post-card:nth-child(3n + 2):last-child .post-card-image-col {
        flex: 0 0 38%;
        max-width: 42%;
        min-width: 200px;
        display: flex;
        align-items: stretch;
    }

    .posts-grid .post-card:nth-child(3n + 1) .post-card-image-col .post-featured-image,
    .featured-posts-grid .post-card:nth-child(3n + 1) .post-card-image-col .post-featured-image,
    .posts-grid .post-card:nth-child(3n + 2):last-child .post-card-image-col .post-featured-image,
    .featured-posts-grid .post-card:nth-child(3n + 2):last-child .post-card-image-col .post-featured-image {
        margin: 0;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        align-items: stretch;
    }

    .posts-grid .post-card:nth-child(3n + 1) .post-card-image-col img,
    .featured-posts-grid .post-card:nth-child(3n + 1) .post-card-image-col img,
    .posts-grid .post-card:nth-child(3n + 2):last-child .post-card-image-col img,
    .featured-posts-grid .post-card:nth-child(3n + 2):last-child .post-card-image-col img {
        width: 100%;
        height: 100%;
        min-height: 12rem;
        max-height: none;
        object-fit: cover;
        border-radius: 8px;
    }

    .posts-grid .post-card:nth-child(3n + 1) .post-card-image-col--empty,
    .featured-posts-grid .post-card:nth-child(3n + 1) .post-card-image-col--empty,
    .posts-grid .post-card:nth-child(3n + 2):last-child .post-card-image-col--empty,
    .featured-posts-grid .post-card:nth-child(3n + 2):last-child .post-card-image-col--empty {
        display: flex;
    }
}

/* Post Cards - Full Width */
.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-200);
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    aspect-ratio: 1 / 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* Mobile: stack preview column, then image column, then tags */
@media (max-width: 768px) {
    .post-card {
        display: flex;
        flex-direction: column;
    }
    
    .post-header {
        order: 1;
    }
    
    .post-content {
        order: 2;
        display: flex;
        flex-direction: column;
    }

    .post-card-preview-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .post-card-image-col--empty {
        display: none;
    }

    .post-card-image-mobile {
        display: block;
        margin: 0 0 0.75rem 0;
    }

    /* Avoid duplicate hero image: hide right-column image on mobile when mobile strip is shown */
    .post-card-preview-row > .post-card-image-col:not(.post-card-image-col--empty) {
        display: none !important;
    }
    
    .post-tags {
        order: 3;
    }
    
    .post-meta {
        order: 4;
    }
}

/* Cap font sizes inside cards to a maximum of 20px */
.post-card, .post-card * {
    font-size: clamp(12px, 1rem, 20px);
}

/* Featured Post Cards (larger) */
.featured-posts-grid .post-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    padding: 0;
}

.featured-posts-grid .post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Post Images - Full Width */
.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--gray-200);
}

.featured-posts-grid .post-card .post-image { height: 220px; }

/* Post Content - Full Width */
.post-content { padding: 1rem; }

/* Ensure all post content children scroll with consistent typography */
.post-content {
    overflow: auto;
}
.post-content > * {
    overflow: auto;
}

.post-content > .post-card-preview-row {
    overflow: visible;
}

/* Classic blog card: preview + image row (stacked on mobile; wide layout on desktop via media query) */
.post-card-preview-row {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.75rem;
}

.post-card-image-col--empty {
    display: none;
}

.post-card-image-placeholder {
    flex: 1 1 auto;
    min-height: 10rem;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 2rem;
}


.post-featured-image-mobile img {
    width: 100%;
    display: block;
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
}

/* Skeleton loaders (first 6 pending posts) */
.post-card--skeleton {
    cursor: default;
    pointer-events: none;
}
.post-skel-line,
.post-skel-circle,
.post-skel-rect {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 37%, var(--gray-200) 63%);
    background-size: 400% 100%;
    animation: skel-shimmer 1.2s ease-in-out infinite;
    border-radius: 8px;
}
.post-skel-circle {
    border-radius: 999px;
    width: 50px;
    height: 50px;
}
.post-skel-rect {
    border-radius: 8px;
}
@keyframes skel-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}
.post-content * {
    font-size: 18px !important;
}

.post-title { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.5rem 0; color: var(--text-primary); line-height: 1.35; }

.post-excerpt { color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.75rem; font-size: 0.9rem; }

/* Scrollable content for normal posts */
.post-card .post-excerpt.scrollable-content {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-bottom: 0.75rem;
}

/* Wide-row cards: full HTML/plain body inside excerpt; clip via parent scroll */
.post-excerpt--full-body {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.post-excerpt--full-body img,
.post-excerpt--full-body video,
.post-excerpt--full-body iframe {
    max-width: 100%;
    height: auto;
}

/* Locked previews: blur everything after the first 200 chars */
.locked-preview-blur {
    filter: blur(6px);
    -webkit-filter: blur(6px);
}

.locked-preview-filler {
    margin-top: 0.75rem;
}
.locked-preview-filler p {
    margin: 0 0 0.85rem 0;
}

/* Strong overrides per request */
.post-card { overflow-y: scroll !important; }
.post-excerpt { font-size: 16px !important; }

/* Featured Post Badge */
.featured-post-badge {
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.featured-post-badge i {
    margin-right: 0.25rem;
    color: #fff3cd;
}

/* Post Meta */
.post-meta {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-action {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-action:hover {
    color: var(--primary);
}

.post-action.liked {
    color: var(--danger);
}

.post-action i {
    font-size: 1rem;
}

/* Rich Text Editor */
.rich-text-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    flex-wrap: wrap;
}

.toolbar-btn {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.toolbar-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.rich-text-editor {
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: white;
    outline: none;
    font-family: inherit;
    line-height: 1.6;
    overflow-y: auto;
}

.rich-text-editor:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rich-text-editor[data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: var(--text-tertiary);
    pointer-events: none;
}

.rich-text-editor h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: var(--text-primary);
}

.rich-text-editor blockquote {
    border-left: 4px solid var(--primary);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    font-style: italic;
    color: var(--text-secondary);
}

.rich-text-editor ul, .rich-text-editor ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.rich-text-editor li {
    margin: 0.25rem 0;
}

.rich-text-editor img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}

/* Rich Content Indicator */
.rich-content-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.rich-content-indicator i {
    font-size: 0.7rem;
}

/* Post Content Styling */
.post-content-full {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-content-full h1,
.post-content-full h2,
.post-content-full h3,
.post-content-full h4,
.post-content-full h5,
.post-content-full h6 {
    margin: 1.5rem 0 1rem 0;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.post-content-full h1 { font-size: 2rem; }
.post-content-full h2 { font-size: 1.75rem; }
.post-content-full h3 { font-size: 1.5rem; }
.post-content-full h4 { font-size: 1.25rem; }
.post-content-full h5 { font-size: 1.1rem; }
.post-content-full h6 { font-size: 1rem; }

.post-content-full p {
    margin: 1rem 0;
    line-height: 1.8;
}

.post-content-full blockquote {
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    font-style: italic;
    color: var(--text-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-content-full ul,
.post-content-full ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content-full li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.post-content-full strong,
.post-content-full b {
    font-weight: 600;
    color: var(--text-primary);
}

.post-content-full em,
.post-content-full i {
    font-style: italic;
}

.post-content-full u {
    text-decoration: underline;
}

.post-content-full img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    display: block;
}

.post-content-full a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.post-content-full a:hover {
    border-bottom-color: var(--primary);
}

/* Image Upload Modal - Higher z-index to appear above other modals */
#image-upload-modal {
    z-index: 2000 !important;
}

#image-upload-modal .modal-content {
    max-width: 500px;
    width: 90%;
}

.image-upload-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.image-preview-container {
    border: 1px solid #e1e5e9;
    border-radius: var(--radius-md);
    padding: 1rem;
    background: #f8f9fa;
}

#image-preview-img {
    display: block;
    margin: 0 auto;
}

/* Mobile Responsive for Rich Text Editor */
@media (max-width: 768px) {
    .rich-text-toolbar {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .toolbar-btn {
        padding: 0.4rem;
        min-width: 36px;
        font-size: 0.8rem;
    }
    
    .rich-text-editor {
        min-height: 150px;
        padding: 0.75rem;
    }
}

/* Sharp Loading Spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Featured Posts - Mobile */
    .featured-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-posts-grid .post-card .post-image {
        height: 250px;
    }
    
    .featured-posts-grid .post-card .post-title {
        font-size: 1.5rem;
    }
    
    /* Regular Posts - Mobile */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Featured Posts - Mobile */
    .featured-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo h1 {
        display: none; /* Hide "Universally Thinking" text on mobile */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--gray-100);
        text-align: left;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .auth-buttons, .user-menu {
        width: 100%;
        padding: 1rem 2rem;
        justify-content: center;
        gap: 1rem;
    }
    
    .user-dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        margin-top: 0.5rem;
        border-radius: var(--radius);
    }
    
    /* Hero Section */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-logo {
        width: 120px;
        height: 120px;
    }
    
    /* Section Headers */
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input, .tag-select {
        width: 100%;
    }
    
    /* Posts Grid */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .post-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .post-action {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .post-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .post-author-avatar {
        width: 60px;
        height: 60px;
    }
    
    /* Dashboard */
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        order: 2;
        margin-top: 1rem;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid var(--gray-200);
        padding-top: 1rem;
        z-index: 100;
    }
    
    .dashboard-main {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }
    
    .modal-content.large {
        width: 95%;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .close {
        right: 1rem;
        top: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        border-radius: var(--radius);
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 2rem;
    }
    
    /* Admin Interface */
    .user-row, .approval-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .user-actions, .approval-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Brand Watermark */
    .brand-watermark {
        display: none;
    }
    
    /* Mobile Notification */
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .notification-content {
        padding: 1rem;
    }
    
    .notification-message {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }
    
    .post-content h3 {
        font-size: 1.25rem;
    }
    
    .post-excerpt {
        font-size: 0.875rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn, .post-action, .nav-link {
        min-height: 44px; /* iOS minimum touch target */
    }
    
    .post-card {
        cursor: pointer;
    }
    
    .post-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* Form Footer */
.form-footer {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Verification Actions */
.verification-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.verification-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Custom Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
}

.notification-icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    line-height: 1.5;
    white-space: pre-line;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.notification.success {
    border-left-color: var(--success);
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification.warning .notification-icon {
    color: var(--warning);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.error .notification-icon {
    color: var(--danger);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Floating Help Button */
.floating-help-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2001;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-help-btn i {
    transition: transform 0.3s ease;
}

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

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 0%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .brand-watermark {
        display: none;
    }
}

/* Pagination Styles */
.pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination-info {
    margin-bottom: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Homepage Pagination */
#home-pagination {
    margin-top: 2rem;
    text-align: center;
}

#home-pagination .pagination-info {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--gray-700);
}

#home-pagination .pagination-controls {
    justify-content: center;
    gap: 1.5rem;
}

/* Load More Styles */
.load-more-container {
    margin-top: 3rem;
    text-align: center;
}

/* Posts Loading Overlay */
.posts-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Posts Grid Loading State */
.posts-grid-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}

.posts-grid-loading .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.posts-grid-loading .loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 0%;
    animation: spin 1s linear infinite;
}

.posts-grid-loading .loading-spinner .loading-text {
    color: var(--gray-700);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

/* No Posts State */
.no-posts-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}

/* Post Views Styling */
.post-views {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Hide post-views div when empty (no view count) */
.post-views:empty {
    display: none;
}

.no-posts-content {
    text-align: center;
}

.no-posts-content p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin: 0;
}

.no-posts-content .icon {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.posts-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.posts-loading-overlay .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.posts-loading-overlay .loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 0%;
    animation: spin 1s linear infinite;
}

.posts-loading-overlay .loading-spinner .loading-text {
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Single Post Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}

.loading-state .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-state .loading-spinner .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 0%;
    animation: spin 1s linear infinite;
}

.loading-state .loading-spinner p {
    color: var(--gray-700);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

/* Single Post Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
    text-align: center;
}

.error-state .error-icon {
    font-size: 4rem;
    color: var(--danger);
    margin-bottom: 1.5rem;
}

.error-state h3 {
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.error-state p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
}

.error-state .error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.error-state .error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.error-state .error-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Lazy loading styles */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

.post-image.lazy {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.load-more-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.load-more-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.load-more-info {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

.background-loading-indicator {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.background-loading-indicator small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.background-loading-indicator i {
    color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Sharp Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbars: hidden globally (see top of file); keep overflow/scroll behavior */

textarea#contact-message {
    color: var(--gray-800) !important;
}

.rich-content-indicator, #test-rich-text {
    display: none !important;
}

.post-content {
    min-height: 80%;
}
.post-meta {
    display: none;
}

/* Show post-meta for administrators */
body.user-is-admin .post-meta {
    display: flex !important;
}
@media (min-width: 900px) {
  div#info-modal, div#info-modal * {
      overflow: hidden;
  } 
  .info-modal-actions {
      position: absolute;
      bottom: 10px;
  }
}

/* Image placeholder styles */
.post-image-placeholder {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #e2e8f0;
    position: relative;
    overflow: hidden;
}

.post-image-placeholder:hover {
    border-color: var(--primary);
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.post-image-placeholder .image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-500);
}

.post-image-placeholder .image-loading .loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

.post-image-placeholder .image-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-400);
}

.post-image-placeholder .image-error i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.post-image-placeholder .image-error p {
    margin: 0;
    font-size: 0.875rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.post-featured-image img {
    object-fit: contain !important;
}

.post-author-avatar {
    border: 0;
}

/* Captcha styling */
.captcha-container {
    margin: 10px 0;
}

.g-recaptcha {
    display: inline-block;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

.featured-post-badge {
    display: none !important;
}

/* Unlock Floating Button */
.unlock-floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 24px;
}

.unlock-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    background: var(--primary-dark);
}

.unlock-floating-btn:active {
    transform: scale(0.95);
}

.unlock-floating-btn.unlocked {
    background: var(--success);
}

.unlock-floating-btn.unlocked:hover {
    background: #059669;
}

@media (max-width: 768px) {
    .unlock-floating-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 20px;
    }
}

.featured-post-content .post-content {
    max-height: 350px;
}

@media (max-width: 768px) {
    .post-content {
        order: 2;
        display: block;
        flex-direction: column;
        max-height: fit-content;
    }
    .post-featured-image img {
        object-fit: contain !important;
        max-width: 100%;
    }
   
}

@media (min-width: 768px) {
    .post-excerpt.scrollable-content.post-excerpt--full-body {
        height: 400px !important;
        overflow: scroll !important;
    }
    .post-featured-image img {
        max-width: 100% !important;
    }
}

.post-excerpt.scrollable-content.post-excerpt--full-body p {
    padding-bottom: 16px;
}

.btn-secondary:hover * {
    color: white !important;
}

/* ——— Newspaper blog (index3) ——— */
body.newspaper-page {
    background: #f2efe8;
    font-family: 'Newsreader', 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    color: #1a1814;
}

.newspaper-page .navbar {
    background: #f2eee8;
    border-bottom: 3px double #2c2416;
}

/* Nav brand: solid ink (overrides global gradient title on .nav-logo h1) */
.newspaper-page a.nav-logo {
    color: #1a1813;
}

.newspaper-page .nav-logo h1 {
    color: #1a1813;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #1a1813;
}

/* Footer: match newspaper theme (override dark site footer) */
.newspaper-page .footer {
    background: #faf8f4;
    color: #1a1814;
    border-top: 4px double #2c2416;
}

.newspaper-page .footer-content,
.newspaper-page .footer-bottom-content {
    font-family: 'Newsreader', 'Libre Baskerville', Georgia, 'Times New Roman', serif;
}

.newspaper-page .footer-section h4,
.newspaper-page .footer-brand h3 {
    color: #1a1814;
}

.newspaper-page .footer-brand p,
.newspaper-page .location-info p,
.newspaper-page .footer-bottom p {
    color: #4a4338;
}

.newspaper-page .footer-bottom {
    background: #f2eee8;
    border-top: 1px solid #c9bfa8;
}

.newspaper-page .footer-link {
    color: #4a4338;
}

.newspaper-page .footer-link:hover {
    color: #1a1813;
}

.newspaper-page .location-info i {
    color: #1a1813;
}

.newspaper-page .contact-form input,
.newspaper-page .contact-form textarea {
    background: #fff;
    border: 1px solid #c9bfa8;
}

.newspaper-page .contact-form input:focus,
.newspaper-page .contact-form textarea:focus {
    border-color: #2c2416;
    box-shadow: 0 0 0 3px rgba(44, 36, 22, 0.12);
}

.newspaper-page .us-map {
    border: 1px solid #c9bfa8;
    background: #e8e2d6;
}

/* Welcome topics (index3): FAB + modal */
.newspaper-welcome-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #2c2416;
    background: #1a1813;
    color: #faf8f4;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    font-size: 1.35rem;
    padding: 0;
}

.newspaper-welcome-fab:hover {
    background: #2c2416;
    color: #fff;
}

.newspaper-welcome-modal {
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.newspaper-welcome-modal .modal-content.newspaper-welcome-modal-content {
    max-width: min(28rem, 92vw);
    width: min(28rem, 92vw);
    margin: 0;
    max-height: min(96vh, 46rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #1a1814;
}

.newspaper-welcome-modal .modal-header {
    padding: 0.65rem 2.5rem 0.35rem 1rem;
    flex-shrink: 0;
}

.newspaper-welcome-modal .modal-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    padding-right: 0.5rem;
}

.newspaper-welcome-modal .modal-header .close {
    top: 0.55rem;
    right: 0.65rem;
}

.newspaper-welcome-modal .modal-header h2,
.newspaper-welcome-modal .modal-header .text-muted {
    color: #1a1814;
}

.newspaper-welcome-modal .modal-header .text-muted {
    opacity: 0.88;
}

.newspaper-welcome-modal .newspaper-welcome-lead {
    margin-top: 0.35rem !important;
    font-size: 0.88rem;
    line-height: 1.35;
}

.newspaper-welcome-modal .modal-body {
    padding: 0.5rem 1rem 0.85rem;
    max-height: none;
    overflow: visible;
    flex: 1 1 auto;
    min-height: 0;
}

.newspaper-welcome-modal .form-group {
    margin-bottom: 0.45rem;
}

.newspaper-welcome-modal .form-group label {
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.newspaper-welcome-modal .form-control {
    color: #1a1814;
    border-color: #c9bfa8;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
}

.newspaper-welcome-modal #newspaper-welcome-topics {
    min-height: 3.25rem;
    max-height: 5.5rem;
    line-height: 1.35;
    resize: none;
}

.newspaper-welcome-modal .newspaper-welcome-captcha-wrap {
    margin-bottom: 0.35rem;
}

.newspaper-welcome-modal #newspaper-welcome-recaptcha {
    display: flex;
    justify-content: center;
    margin-top: 2px;
}

.newspaper-welcome-modal .btn.btn-primary {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.newspaper-welcome-checkbox-label {
    font-size: 0.82rem;
    color: #4a4338;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.newspaper-welcome-form-msg .alert {
    margin: 0;
}

@media (max-height: 720px), (max-width: 520px) {
    .newspaper-welcome-modal .modal-content.newspaper-welcome-modal-content {
        margin: 1vh auto;
        max-height: 98vh;
    }

    .newspaper-welcome-modal .modal-body {
        max-height: calc(98vh - 7.5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.newspaper-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.newspaper-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #5c5346;
    border-bottom: 1px solid #c9bfa8;
    padding: 10px 0 8px;
    font-family: 'Newsreader', Georgia, serif;
}

.newspaper-banner-mid {
    font-weight: 600;
    color: #2c2416;
}

.newspaper-masthead {
    text-align: center;
    padding: 28px 12px 20px;
    border-bottom: 4px double #2c2416;
    margin-bottom: 20px;
}

.newspaper-masthead-inner {
    max-width: 720px;
    margin: 0 auto;
}

.newspaper-kicker {
    margin: 0 0 6px;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #6b5f4b;
}

.newspaper-title {
    margin: 0;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.newspaper-subtitle {
    margin: 12px 0 0;
    font-size: 1rem;
    color: #4a4338;
    font-weight: 400;
}

.newspaper-loading {
    text-align: center;
    padding: 2rem;
    color: #5c5346;
}

.newspaper-error {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fde8e8;
    border: 1px solid #e08585;
    color: #7a1f1f;
    border-radius: 4px;
}

/* Single article (/posts/:id) — same broadsheet feel as the front page */
.newspaper-single-root {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.newspaper-single-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin: 12px 0 8px;
    font-family: 'Newsreader', Georgia, serif;
    font-size: 0.95rem;
}

.newspaper-single-nav a {
    color: #3d3428;
    text-decoration: none;
    font-weight: 600;
}

.newspaper-single-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.newspaper-single-nav-sep {
    color: #a09078;
    user-select: none;
}

.newspaper-masthead--article {
    padding-top: 8px;
    padding-bottom: 20px;
}

.newspaper-article-lock-slot {
    margin-bottom: 10px;
}

.newspaper-article-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: 'Newsreader', Georgia, serif;
}

.newspaper-article-lock--locked {
    background: #c27803;
    color: #fff;
}

.newspaper-article-lock--unlocked {
    background: #2d5a32;
    color: #faf8f4;
}

.newspaper-article-title {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    margin-top: 0;
}

.newspaper-article-meta {
    margin: 14px 0 0;
    font-size: 1rem;
    color: #5c5346;
    font-style: italic;
}

.newspaper-single-featured {
    margin: 0 0 28px;
}

.newspaper-single-featured-figure {
    margin: 0;
    border: 1px solid #c9bfa8;
    background: #e8e2d6;
}

.newspaper-single-featured-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(70vh, 520px);
    object-fit: contain;
}

.newspaper-single-body {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #1a1814;
    border-top: 1px solid #c9bfa8;
    padding-top: 28px;
}

.newspaper-single-body p {
    margin: 0 0 1.1em;
}

.newspaper-single-body h2,
.newspaper-single-body h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    margin: 1.4em 0 0.5em;
    color: #14110d;
}

.newspaper-single-body img,
.newspaper-single-body video,
.newspaper-single-body iframe {
    max-width: 100%;
    height: auto;
}

.newspaper-single-body blockquote {
    margin: 1.25em 0;
    padding: 0.5em 0 0.5em 1.1em;
    border-left: 4px solid #2c2416;
    color: #4a4338;
    font-style: italic;
}

.newspaper-single-tags {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #dcd3c2;
}

.newspaper-single-tags-label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b5f4f;
    margin: 0 0 10px;
}

.newspaper-single-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.newspaper-single-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #c9bfa8;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #3d3428;
    background: rgba(255, 255, 255, 0.5);
}

.newspaper-page .username {
    color: #1a1814;
}

.newspaper-page .dropdown-toggle {
    background: #faf8f4;
    border-color: #c9bfa8;
    color: #1a1813;
}

.newspaper-page .desktop-menu-dropdown {
    background: #faf8f4;
    border-color: #c9bfa8;
}

.newspaper-page .desktop-menu-dropdown .dropdown-item {
    color: #2c2416;
}

.newspaper-page .desktop-menu-dropdown .dropdown-item:hover {
    background: #ebe4d6;
}

.newspaper-page .desktop-menu-dropdown .dropdown-divider {
    background: #c9bfa8;
}

/* Full-viewport article reader (newspaper front page) */
body.newspaper-post-modal-open {
    overflow: hidden;
}

.newspaper-post-modal {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 4500;
    flex-direction: column;
    align-items: stretch;
    background: #f2efe8;
    color: #1a1814;
    font-family: 'Newsreader', 'Libre Baskerville', Georgia, 'Times New Roman', serif;
}

.newspaper-post-modal-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 4510;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #2c2416;
    background: #faf8f4;
    color: #1a1813;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, color 0.15s ease;
}

.newspaper-post-modal-close:hover {
    background: #1a1813;
    color: #faf8f4;
}

.newspaper-post-modal-loading,
.newspaper-post-modal-error {
    flex: 1 1 auto;
    min-height: 40vh;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    text-align: center;
}

.newspaper-post-modal-loading.is-visible,
.newspaper-post-modal-error.is-visible {
    display: flex;
}

.newspaper-post-modal-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: max(56px, calc(env(safe-area-inset-top, 0px) + 44px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.newspaper-post-modal-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px 56px;
}

.newspaper-post-modal .newspaper-single-nav a {
    color: #3d3428;
}

.newspaper-top-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #c9bfa8;
}

.np-trio-cell {
    padding: 0 8px;
    border-right: 1px solid #dcd3c2;
}

.np-trio-cell:last-child {
    border-right: none;
}

.np-headline {
    font-family: 'Libre Baskerville', Georgia, serif;
    margin: 0 0 8px;
    line-height: 1.2;
    color: #14110d;
}

.np-headline--lead {
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    margin-top: 4px;
}

.np-headline--trio {
    font-size: 1.15rem;
}

.np-headline--river {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.np-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 10px;
    vertical-align: middle;
}

.np-badge--premium {
    background: #1a1813;
    color: #faf8f4;
    border: 1px solid rgba(26, 24, 19, 0.25);
}

.np-badge--unlocked {
    background: rgba(26, 24, 19, 0.08);
    color: #1a1813;
    border: 1px solid rgba(26, 24, 19, 0.25);
}

.np-a {
    color: inherit;
    text-decoration: none;
}

.np-a:hover .np-headline {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.np-snippet {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #3d362c;
}

.np-dateline {
    margin: 0 0 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b5f4b;
}

.np-dek {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #2a241c;
}

.np-lock-note {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #6b5f4b;
}

.np-lock-note i {
    margin-right: 4px;
}

.newspaper-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 200px;
    gap: 20px 28px;
    align-items: start;
}

.newspaper-rail {
    background: #faf8f4;
    border: 1px solid #c9bfa8;
    padding: 14px 12px 18px;
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
}

.np-rail-title {
    margin: 0 0 12px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #5c5346;
    border-bottom: 2px solid #2c2416;
    padding-bottom: 8px;
}

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

.np-rail-item {
    border-bottom: 1px dotted #c9bfa8;
    padding: 10px 0;
}

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

.np-rail-item .np-a {
    display: block;
}

.np-rail-item-title {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.np-rail-item-meta {
    font-size: 0.72rem;
    color: #6b5f4b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.np-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 8px;
}

.np-lead-media {
    background: #e8e2d6;
    border: 1px solid #c9bfa8;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.np-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 420px;
}

.np-lead-media--empty {
    color: #9a8f7a;
    font-size: 2.5rem;
}

.newspaper-deck {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
    padding-top: 8px;
    border-top: 1px solid #c9bfa8;
}

.np-deck-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #dcd3c2;
}

.np-deck-thumb {
    aspect-ratio: 16 / 9;
    background: #e8e2d6;
    border: 1px solid #c9bfa8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-deck-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-thumb-empty {
    color: #9a8f7a;
    font-size: 2rem;
}

.newspaper-river {
    column-count: 3;
    column-gap: 28px;
    column-rule: 1px solid #dcd3c2;
    margin: 20px 0 28px;
    padding-top: 12px;
    border-top: 3px double #c9bfa8;
}

.np-river-item {
    break-inside: avoid;
    margin-bottom: 18px;
}

.np-river-meta {
    margin: 0 0 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b5f4b;
}

.newspaper-spread {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 18px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #c9bfa8;
}

.np-spread-card {
    border: 1px solid #c9bfa8;
    background: #faf8f4;
    padding: 10px;
    min-height: 100%;
}

.np-spread-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 8px;
    background: #e8e2d6;
}

.np-spread-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.np-spread-card .np-headline {
    font-size: 0.95rem;
}

.newspaper-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 4px double #2c2416;
}

.np-bottom-title {
    margin: 0 0 16px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #5c5346;
}

.np-bottom-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 16px;
}

.np-bottom-cell .np-a {
    display: block;
    padding: 10px 8px;
    border: 1px solid #dcd3c2;
    background: #faf8f4;
    min-height: 100%;
}

.np-bottom-cell .np-a:hover {
    background: #fff;
}

.np-bottom-meta {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b5f4b;
    margin-bottom: 6px;
}

.np-bottom-head {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.35;
}

.np-skel-trio {
    padding: 8px;
}

@media (max-width: 1100px) {
    .newspaper-layout {
        grid-template-columns: 1fr;
    }

    .newspaper-rail {
        position: static;
        max-height: none;
    }

    .newspaper-river {
        column-count: 2;
    }

    .np-bottom-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .newspaper-top-trio {
        grid-template-columns: 1fr;
    }

    .np-trio-cell {
        border-right: none;
        border-bottom: 1px solid #dcd3c2;
        padding-bottom: 16px;
        margin-bottom: 8px;
    }

    .np-lead-grid {
        grid-template-columns: 1fr;
    }

    .newspaper-deck {
        grid-template-columns: 1fr;
    }

    .newspaper-river {
        column-count: 1;
        column-rule: none;
    }

    .newspaper-spread {
        grid-template-columns: 1fr;
    }

    .np-bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.newspaper-welcome-modal #newspaper-welcome-recaptcha {
    max-width: 100%;
}

.form-group.newspaper-welcome-checkbox * {
    display: inline-block;
    max-width: 500px !important;
    margin: 0 0 5px 0;
}