/* ===================================
   The Quiet Growth Lab - Main Styles
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #27ae60;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Feature Grid */
.features {
    margin: 4rem 0;
}

.features h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Philosophy Section */
.philosophy {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 4rem 0;
    box-shadow: var(--shadow);
}

.philosophy h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.philosophy p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.text-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.text-link:hover {
    color: var(--accent-color);
}

/* Tool Panels */
.tools-page .page-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.tools-page .page-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tool-panel {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.tool-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.tool-content {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1rem;
}

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

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

.input-group input:focus,
.tool-content textarea:focus,
.scheduler-input input:focus,
.scheduler-input select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.tool-content textarea {
    resize: vertical;
    min-height: 150px;
}

.tool-button {
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tool-button:hover:not(:disabled) {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tool-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.tool-button.secondary {
    background-color: var(--secondary-color);
}

.tool-button.secondary:hover:not(:disabled) {
    background-color: #2980b9;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* QR Code Display */
.qr-display {
    margin: 1.5rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
    min-height: 100px;
}

.qr-display canvas {
    max-width: 100%;
}

/* Word Counter Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-item:hover {
    background: #e8eaf0;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
}

.checkbox-item span {
    flex: 1;
}

/* Timer Display */
.timer-display {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.timer-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

.timer-status {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Content Scheduler */
.scheduler-input {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.scheduler-table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

#scheduler-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

#scheduler-table th,
#scheduler-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

#scheduler-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

#scheduler-table tbody tr:hover {
    background: var(--bg-light);
}

#scheduler-table button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
}

#scheduler-table button:hover {
    background: #c0392b;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Ad Placeholder */
.ad-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-ad {
    margin: 3rem 0;
}

/* Essays */
.essays-list {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.essay-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.essay-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.essay-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.essay-card h3 a:hover {
    color: var(--accent-color);
}

.essay-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Individual Essay */
.essay-content {
    max-width: 800px;
    margin: 0 auto;
}

.essay-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.essay-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.essay-meta {
    font-size: 1.1rem;
    color: var(--text-light);
}

.essay-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.essay-body h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.essay-body p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.essay-body ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.essay-body li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.essay-body strong {
    color: var(--primary-color);
}

.essay-body hr {
    margin: 3rem 0;
    border: none;
    border-top: 2px solid var(--border-color);
}

.essay-footer-note {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Resources Page */
.resource-category {
    margin-bottom: 4rem;
}

.resource-category h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.resource-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.resource-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.resource-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.resource-link:hover {
    color: var(--accent-color);
}

.resources-footer {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

.resources-footer p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

.about-section {
    margin-bottom: 3rem;
}

.about-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.belief-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.belief-list li {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Legal Pages */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.legal-date {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legal-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Page Intro */
.page-intro {
    margin-bottom: 3rem;
}

.page-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .scheduler-input {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .tool-button {
        width: 100%;
    }

    .timer-number {
        font-size: 3rem;
    }

    .essay-header h1 {
        font-size: 2rem;
    }

    .essay-body {
        font-size: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .tool-panel {
        padding: 1.5rem;
    }

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

/* Downloads Page */
.downloads-page .page-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.download-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.download-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    aspect-ratio: 8.5 / 11;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.preview-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.preview-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.download-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.download-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.download-description {
    margin-bottom: 2rem;
}

.download-description p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.download-description h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.download-description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.download-description li {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.download-description li strong {
    color: var(--primary-color);
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.download-button:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.button-icon {
    font-size: 1.3rem;
}

.download-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Usage Tips Section */
.usage-tips {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 4rem 0;
}

.usage-tips h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

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

.tip-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.tip-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 50px;
    margin-bottom: 1rem;
}

.tip-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.tip-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Related CTA Section */
.related-cta {
    margin: 4rem 0;
    text-align: center;
}

.related-cta h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.related-cta > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.cta-item {
    background: white;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.cta-item h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.cta-item p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-link:hover {
    color: var(--accent-color);
}

/* Share Section */
.share-section {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 4rem 0;
}

.share-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.share-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.share-link-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.share-link-display strong {
    color: var(--accent-color);
}

/* Print Styles */
@media print {
    header,
    footer,
    .ad-placeholder,
    .tool-button {
        display: none;
    }
}

/* Responsive - Downloads Page */
@media (max-width: 768px) {
    .download-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .preview-placeholder {
        max-width: 300px;
        margin: 0 auto;
    }

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

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

/* ========================================
   ESSAY PAGE FIXES - Added Dec 3, 2024
   ======================================== */

/* Essay Page Styling */
.essay-page {
    background: #ffffff;
}

.essay-page .essay-header {
    background: #f8f9fa;
    padding: 3rem 2rem;
    margin: -2rem -2rem 3rem -2rem;
    border-bottom: 3px solid #4a90a4;
}

.essay-page .essay-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.essay-page .essay-meta {
    font-size: 1.15rem;
    color: #546e7a;
    font-weight: 400;
    font-style: italic;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Scroll Padding Fix */
html {
    scroll-padding-top: 100px;
}

main.container {
    padding-top: 2rem;
    margin-top: 0;
}

/* Essay Content */
.essay-page .essay-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.essay-page .essay-content h2 {
    font-size: 1.9rem;
    color: #2c3e50;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
}

.essay-page .essay-content h3 {
    font-size: 1.5rem;
    color: #37474f;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.essay-page .essay-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #37474f;
    margin-bottom: 1.5rem;
}

.essay-page .essay-content strong {
    font-weight: 600;
    color: #2c3e50;
}

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

.essay-page .essay-content li {
    margin-bottom: 0.75rem;
    color: #37474f;
}

/* Essay Preview Cards */
.essay-list {
    margin: 3rem 0;
}

.essay-preview {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #4a90a4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.essay-preview h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.essay-preview h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.essay-preview h3 a:hover {
    color: #4a90a4;
}

.essay-excerpt {
    color: #546e7a;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #4a90a4;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: #2c3e50;
}

/* Essay Footer */
.essay-footer {
    margin-top: 4rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-top: 3px solid #4a90a4;
}

.essay-footer p strong {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.essay-footer ul {
    margin-top: 1rem;
    list-style: none;
    padding-left: 0;
}

.essay-footer li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.essay-footer li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4a90a4;
    font-weight: bold;
}

.essay-footer a {
    color: #4a90a4;
    text-decoration: none;
    font-weight: 500;
}

.essay-footer a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Ad Placeholders */
.essay-page .ad-placeholder {
    margin: 3rem 0;
    padding: 2rem;
    text-align: center;
    background: #f0f0f0;
    border: 2px dashed #cccccc;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .essay-page .essay-header {
        padding: 2rem 1rem;
        margin: -1rem -1rem 2rem -1rem;
    }
    
    .essay-page .essay-header h1 {
        font-size: 1.8rem;
    }
    
    .essay-page .essay-meta {
        font-size: 1rem;
    }
    
    .essay-page .essay-content {
        padding: 0 1rem;
    }
    
    .essay-page .essay-content h2 {
        font-size: 1.5rem;
    }
    
    .essay-preview {
        padding: 1.5rem;
    }
}

/* Contact Page Styling */
.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-methods {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.contact-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.contact-email {
    font-size: 1.3rem;
    margin: 1.5rem 0;
}

.contact-email a {
    color: #4a90a4;
    text-decoration: none;
    font-weight: 600;
}

.contact-email a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.contact-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4a90a4;
}

.topic-item h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.response-expectations,
.alternative-contact,
.contact-footer {
    margin: 3rem 0;
}

/* ========================================
   END OF ADDED FIXES
   ======================================== */
