/* ============================================
   Modern Blogging Platform - Main Styles
   ============================================ */

:root {
    --primary: #111827;
    --secondary: #4F46E5;
    --accent: #6366F1;
    --background: #F9FAFB;
    --card: #FFFFFF;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

/* Navigation Bar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    gap: 0.5rem;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.nav-logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.nav-logo span:not(.logo-text) {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.logo-text {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    color: var(--primary);
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link.active {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.25rem;
}

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.nav-btn:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.18);
}

.search-btn, .theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text);
    transition: color 0.3s, background 0.3s;
}

.search-btn:hover, .theme-toggle:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--secondary);
}

/* Search Modal */
.search-open {
    overflow: hidden;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 7rem 1.5rem 2rem;
    background: rgba(17, 24, 39, 0.62);
}

.search-modal.active {
    display: flex;
}

.search-container {
    width: min(720px, 100%);
    max-height: calc(100vh - 9rem);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.25);
    position: relative;
}

.search-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1;
}

.search-close:hover {
    background: var(--background);
    color: var(--secondary);
}

.search-input-wrapper {
    display: grid;
    grid-template-columns: 1fr 3.25rem;
    gap: 0.5rem;
    padding: 1.25rem 4rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.search-input {
    width: 100%;
    min-width: 0;
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--background);
    color: var(--text);
    font-size: 1rem;
}

.search-input:focus,
.search-form input:focus,
.search-hero:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.search-submit {
    width: 3.25rem;
    height: 3rem;
    border: none;
    border-radius: 6px;
    background: var(--secondary);
    color: white;
    cursor: pointer;
}

.search-submit:hover {
    background: var(--accent);
}

.search-results {
    max-height: min(420px, 52vh);
    overflow-y: auto;
}

.search-results-list {
    padding: 0.5rem;
}

.search-result-item {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    color: var(--text);
}

.search-result-item:hover {
    background: var(--background);
    color: var(--text);
}

.result-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.result-excerpt {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.45;
}

.search-no-results,
.search-error,
.search-loading {
    padding: 1.25rem;
    color: var(--text-light);
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: var(--background);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.25rem;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-hero {
    width: 100%;
    min-width: 0;
    height: 3.25rem;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 1rem;
}

.btn-search {
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--secondary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-search:hover {
    transform: translateY(-2px);
}

.hero-search-results {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: min(360px, 44vh);
    overflow-y: auto;
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.hero-search-results .search-result-item {
    text-align: left;
}

.hero-search-results:empty {
    display: none;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 70px);
}

/* Search Page */
.search-page-header {
    padding: 4rem 0 3rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.search-page-header h1 {
    margin-bottom: 1.5rem;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.25rem;
    gap: 0.5rem;
    max-width: 640px;
}

.search-form input {
    width: 100%;
    min-width: 0;
    height: 3.25rem;
    padding: 0 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--text);
    font-size: 1rem;
}

.search-form button {
    width: 3.25rem;
    height: 3.25rem;
    border: none;
    border-radius: 6px;
    background: var(--secondary);
    color: white;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--accent);
}

.page-content {
    padding: 3rem 0;
}

.search-info,
.no-results {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.page-content .search-results {
    display: grid;
    gap: 1rem;
    max-height: none;
    overflow: visible;
}

.search-result {
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.search-result h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.search-result p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Section Styling */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Featured Section */
.featured-section {
    padding: 4rem 1.5rem;
    background: white;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.featured-image {
    height: 200px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 1.5rem;
}

.featured-content h3 {
    margin-bottom: 0.5rem;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 1rem 0;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more {
    color: var(--secondary);
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--accent);
}

/* Categories Section */
.categories-section {
    padding: 4rem 1.5rem;
    background: var(--background);
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: 500;
}

.category-chip:hover {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

/* Posts Grid */
.posts-section {
    padding: 4rem 1.5rem;
    background: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(79, 70, 229, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.post-content h3 {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

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

.tag-badge {
    background: #f0f0f0;
    color: var(--text);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.tag-badge:hover {
    background: var(--secondary);
    color: white;
}

.post-link {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.post-link:hover {
    gap: 0.75rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-link {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    transition: all 0.3s;
    font-weight: 500;
}

.page-link:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.page-link.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.newsletter-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
}

.newsletter-card h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.newsletter-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

.newsletter-status {
    display: none;
    margin: 0.75rem 0 0;
    color: #86efac;
    font-size: 0.95rem;
    line-height: 1.5;
}

.newsletter-status.show {
    display: block;
}

.newsletter-status.error {
    color: #fecaca;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 1.5rem 1.5rem;
}

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

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3, .footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

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

.post-like-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card, #fff);
    color: var(--text);
    padding: 0.45rem 0.75rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-like-button:hover,
.post-like-button.liked {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(220, 38, 38, 0.08);
}

.post-like-button:disabled {
    cursor: default;
    opacity: 1;
}

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

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

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Post Page Layout */
.breadcrumb {
    padding: 1rem 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.breadcrumb span {
    color: var(--text-light);
}

.post-header {
    padding: 3.5rem 0 2.75rem;
    background: var(--card);
}

.post-header-content {
    max-width: 860px;
}

.post-header-content h1 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.15;
}

.post-header .post-excerpt {
    max-width: 760px;
    margin-bottom: 1.4rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 0.8rem 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.post-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-category-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.09);
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.post-featured-image {
    padding: 2rem 0 0;
    background: var(--background);
}

.post-featured-image .featured-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.post-content-wrapper {
    padding: 3rem 0 4rem;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
}

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

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text);
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.post-body p {
    margin-bottom: 1.2rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.post-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.post-body figcaption {
    display: none;
}

.post-body a {
    text-decoration: underline;
    transition: all 0.3s;
}

.post-body a:hover {
    color: var(--accent);
}

/* Post Tags Section */
.post-tags-section {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-tags-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--background);
    color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.tag-link:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Post Share */
.post-share {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--background);
    border-radius: 10px;
}

.post-share h3 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.share-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.share-btn.twitter { border-left: 3px solid #1DA1F2; }
.share-btn.facebook { border-left: 3px solid #1877F2; }
.share-btn.linkedin { border-left: 3px solid #0A66C2; }
.share-btn.copy-link { border-left: 3px solid var(--secondary); }

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text);
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.widget-content p {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

.widget-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    border-left: 3px solid transparent;
}

.related-post:hover {
    background: #f3f4f6;
    border-left-color: var(--secondary);
    transform: translateX(4px);
}

.related-post-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post small {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Newsletter Sidebar */
.newsletter-widget {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    border: none;
}

.newsletter-widget h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-sidebar-form input {
    padding: 0.7rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text);
}

.newsletter-sidebar-form input::placeholder {
    color: var(--text-light);
}

.newsletter-sidebar-form button {
    padding: 0.7rem;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-sidebar-form button:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Comments */
.comments-section {
    margin-top: 3rem;
}

.comments-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.comments-title-row h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.no-comments {
    padding: 2rem;
    text-align: center;
    background: var(--background);
    border-radius: 8px;
    color: var(--text-light);
}

.comment {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.1rem;
    border: 1px solid #e4e9f3;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.comment:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.comment-reply {
    margin-left: 2rem;
    margin-top: 0.85rem;
    padding: 0.95rem;
    background: var(--background);
    border: 1px solid var(--border);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #4f46e5, #312e81);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
}

.comment-content-box {
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.comment-header strong {
    font-size: 1.04rem;
    font-weight: 700;
}

.comment-header small {
    color: #6b7280;
    white-space: nowrap;
    font-size: 0.9rem;
}

.comment-content-box p {
    margin-bottom: 0.85rem;
    overflow-wrap: anywhere;
    line-height: 1.6;
    color: #1f2937;
}

.comment-actions-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.comment-action {
    border: 0;
    background: transparent;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.comment-action:hover {
    color: var(--secondary);
}

.comment-action.liked {
    color: var(--secondary);
    cursor: default;
}

.comment-replies {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Comment Form Section */
.comment-form-section {
    margin-top: 2.5rem;
    padding: 1.45rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid #e5eaf5;
    border-radius: 14px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.comment-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.comment-form-row input,
.reply-form-row input {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 1px solid #d9e0ee;
    border-radius: 10px;
    background: var(--card, #fff);
    color: var(--text);
    font-size: 0.94rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form-row input:focus,
.reply-form-row input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb, 59, 130, 246), 0.12);
}

.comment-form-header {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), var(--primary, #6366f1));
    font-weight: 700;
    font-size: 1rem;
}

.user-info-mini {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.user-info-mini span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.guest-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    width: 100%;
}

.guest-input-row input {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card, #fff);
    color: var(--text);
    font-size: 0.9rem;
}

.guest-input-row input::placeholder {
    color: var(--text-light);
}

.emoji-textarea-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.emoji-textarea-wrapper textarea {
    width: 100%;
    padding: 0.9rem;
    padding-right: 2.8rem;
    border: 1px solid #d9e0ee;
    border-radius: 10px;
    background: var(--card, #fff);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 110px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.emoji-textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb, 59, 130, 246), 0.1);
}

.emoji-textarea-wrapper textarea::placeholder {
    color: var(--text-light);
}

.comment-form-actions {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    display: flex;
    gap: 0.4rem;
}

.emoji-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card, #fff);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.emoji-toggle:hover {
    color: var(--secondary);
    border-color: var(--secondary);
    background: var(--background);
}

.emoji-picker {
    position: fixed;
    z-index: 9999;
    display: none;
    grid-template-columns: repeat(8, 38px);
    gap: 0.5rem;
    padding: 0.8rem;
    max-width: 340px;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card, #fff);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.emoji-picker.is-open {
    display: grid;
}

.emoji-picker button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-picker button:hover {
    background: var(--background);
    transform: scale(1.15);
}

.comment-form-footer {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-end;
}

.comment-form-footer .btn {
    min-width: 94px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--background);
    color: var(--text);
}

/* Reply Form */
.reply-form {
    margin-top: 1.1rem;
    padding: 1.1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.reply-form-header {
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
}

.reply-as {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.guest-reply-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
}

.guest-reply-inputs input {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card, #fff);
    color: var(--text);
    font-size: 0.85rem;
}

.reply-form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.user-login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.user-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: var(--background);
}

.user-auth-card {
    width: min(440px, 100%);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card, #fff);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

.user-auth-card h1 {
    margin: 1rem 0 0.5rem;
}

.user-auth-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.user-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.user-auth-form {
    margin-top: 1rem;
}

.user-auth-test {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.25rem;
    padding: 0.9rem;
    border-radius: 6px;
    background: var(--background);
    color: var(--text-light);
    font-size: 0.92rem;
}

@media (max-width: 640px) {
    .comment {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 0.85rem;
    }

    .comment-avatar {
        width: 36px;
        height: 36px;
    }

    .comment-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.alert-success {
    background: #DCFCE7;
    color: #166534;
    border-left: 4px solid #10B981;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
    display: flex;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

.toast.show {
    display: flex;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

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

/* Dark Mode Support */
/* System preference based */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1F2937;
        --card: #111827;
        --text: #F3F4F6;
        --text-light: #9CA3AF;
        --border: #374151;
    }
}

/* Toggle-based dark mode (data-theme attribute) */
html[data-theme="dark"] {
    --background: #1F2937;
    --card: #111827;
    --text: #F3F4F6;
    --text-light: #9CA3AF;
    --border: #374151;
}

html[data-theme="dark"] .newsletter-section {
    background: linear-gradient(135deg, #1f3b73 0%, #3a2a66 100%);
}

html[data-theme="dark"] .newsletter-card {
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid #334155;
}

html[data-theme="dark"] .newsletter-card h2 {
    color: #f8fafc;
}

html[data-theme="dark"] .newsletter-card p {
    color: #cbd5e1;
}

html[data-theme="dark"] .newsletter-form input {
    background: #0f172a;
    color: #f8fafc;
    border-color: #475569;
}

html[data-theme="dark"] .newsletter-form input::placeholder {
    color: #94a3b8;
}

html[data-theme="dark"] .newsletter-form button {
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    color: #ffffff;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-light);
}

.no-posts {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.no-data {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* Search modal override kept last so the overlay cannot collapse into the page flow. */
body .search-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 7rem 1.5rem 2rem;
    background: rgba(17, 24, 39, 0.62);
}

body .search-modal.active {
    display: flex;
}

/* Contact Page */
.contact-page-header {
    background: radial-gradient(circle at 10% 20%, #eef2ff 0%, #f8fafc 55%, #ffffff 100%);
    border-bottom: 1px solid #e8ecf5;
}

.contact-page-header h1 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-page-header p {
    max-width: 680px;
    margin: 0.65rem auto 0;
    color: #4b5563;
    font-size: 1.05rem;
}

.contact-content {
    padding: 3rem 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
    align-items: start;
}

.contact-form-wrapper,
.contact-info {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #e5eaf5;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
    padding: 1.4rem;
}

.contact-form-wrapper h2,
.contact-info h2 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 0.9rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #1f2937;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d9e0ee;
    border-radius: 10px;
    padding: 0.78rem 0.9rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.96rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.contact-form .btn {
    border-radius: 10px;
    font-weight: 700;
    min-width: 155px;
}

.info-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    padding: 0.7rem 0;
    border-bottom: 1px dashed #e6ebf6;
}

.info-item:last-of-type {
    border-bottom: 0;
}

.info-item > i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4338ca;
    background: #eef2ff;
}

.info-item h3 {
    margin-bottom: 0.15rem;
    font-size: 1rem;
}

.info-item p {
    margin-bottom: 0;
    color: #4b5563;
}

.contact-info > h3 {
    margin-top: 1rem;
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
}

.social-links-contact {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.social-links-contact .social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #dbe3f2;
    background: #fff;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links-contact .social-icon:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page */
.about-page-header {
    background:
        radial-gradient(circle at 12% 18%, rgba(79, 70, 229, 0.2), transparent 48%),
        radial-gradient(circle at 88% 12%, rgba(16, 185, 129, 0.18), transparent 38%),
        linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    border-bottom: 1px solid #e6ebf6;
}

.about-page-header h1 {
    font-size: clamp(2rem, 3.3vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-page-header p {
    max-width: 720px;
    margin: 0.7rem auto 0;
    color: #4b5563;
    font-size: 1.06rem;
}

.about-content {
    padding: 3rem 0 4rem;
}

.about-section {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #e5eaf5;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    padding: 1.35rem;
    margin-bottom: 1.15rem;
}

.about-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.about-section > p {
    color: #374151;
}

.features-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.9rem;
}

.feature,
.value-card {
    background: #fff;
    border: 1px solid #e6ebf5;
    border-radius: 14px;
    padding: 1rem;
}

.feature i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4338ca;
    background: #eef2ff;
    margin-bottom: 0.6rem;
}

.feature h3,
.value-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1.08rem;
}

.feature p,
.value-card p {
    margin-bottom: 0;
    color: #4b5563;
}

.tech-list {
    margin-top: 0.55rem;
    padding-left: 1.2rem;
}

.tech-list li {
    margin-bottom: 0.35rem;
    color: #374151;
}

.about-stats {
    margin: 1.4rem 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.about-stats .stat {
    background: linear-gradient(135deg, #4f46e5, #14b8a6);
    color: #fff;
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 14px 24px rgba(79, 70, 229, 0.24);
}

.about-stats .stat h3 {
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 0.2rem;
}

.about-stats .stat p {
    margin: 0;
    opacity: 0.92;
}

.authors-grid {
    margin-top: 1.5rem;
}

.authors-grid h2 {
    font-size: 1.55rem;
    margin-bottom: 1rem;
}

.authors-blocks {
    gap: 1rem;
}

.author-block {
    border: 1px solid #e4e9f3;
    border-radius: 14px;
}

.author-block:hover {
    border-color: #4f46e5;
    box-shadow: 0 14px 22px rgba(15, 23, 42, 0.11);
}

@media (max-width: 900px) {
    .features-grid,
    .values-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }
}
