/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Georgia", arial, sans-serif;
    font-size: 14px; /* Increased from 12px */
    color: #aaa;
    line-height: 1.5em;
    /* Granite textured background - darkened to be closer to black */
    background: #151718 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" seed="2"/><feColorMatrix type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.1"/></svg>');
    margin: 0;
    padding: 0; /* Remove side padding since header now handles it */
}

/* Full-width Site Header */
.site-header {
    background: inherit; /* Same textured background */
    border-bottom: 1px solid #3e3e3e;
    width: 100%;
    padding: 15px 20px; /* Back to original equal padding */
}

.header-content {
    max-width: 1400px; /* Match page-wrapper max-width */
    margin: 0 auto; /* Center the header content */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    transform: translateY(-2px); /* Move logo up */
}

.site-title {
    font-size: 26px; /* Increased from 24px */
    color: #d37d1a; /* Orange title like navigation */
    font-weight: normal;
    margin: 0;
    font-family: "Georgia", arial, sans-serif;
    line-height: 1; /* Ensure consistent line height */
    display: flex;
    align-items: center; /* Center with logo */
    transform: translateY(6px); /* Move text down more */
}

.search-box {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0;
}

.search-input {
    padding: 6px 12px;
    border: 1px solid #666;
    background-color: #2a2e31;
    font-size: 13px; /* Increased from 11px */
    color: #aaa;
    width: 240px;
    border-radius: 3px 0 0 3px;
    border-right: none;
}

.search-input:focus {
    outline: none;
    border-color: #d37d1a;
    background-color: #323639;
}

.search-input::placeholder {
    color: #777;
}

.search-btn {
    padding: 6px 8px;
    border: 1px solid #666;
    background-color: #666;
    color: white;
    font-size: 13px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    border-left: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: #d37d1a;
    border-color: #d37d1a;
}

.search-btn:active {
    transform: translateY(1px);
}

/* Main page wrapper with 3-column layout - CENTERED AND CONSTRAINED */
.page-wrapper {
    display: grid;
    grid-template-columns: 164px 1fr 280px;
    min-height: calc(100vh - 70px); /* Subtract approximate header height */
    width: 100%;
    max-width: 1400px; /* Maximum width constraint */
    margin: 0 auto; /* Center the layout */
    background: inherit; /* Keep the textured background */
}

/* Left Navigation Sidebar - LIGHT GRAY WITH GRANITE TEXTURE */
.left-nav {
    /* Light gray background with granite texture */
    background: #3a3e41 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" seed="2"/><feColorMatrix type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.1"/></svg>');
    padding: 20px 8px;
    border-right: 1px solid #3e3e3e;
    position: relative; /* For pseudo-element positioning */
}

/* Extend gray background to left edge of screen */
.left-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100vw; /* Extend far to the left */
    width: 100vw; /* Full viewport width */
    height: 100%;
    background: #3a3e41 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" seed="2"/><feColorMatrix type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.1"/></svg>');
    z-index: -1; /* Behind the navigation content */
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 6px; /* Spacing between buttons */
    position: relative;
}

/* Clean navigation buttons without arrows */
.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px; /* Back to symmetric padding */
    background-color: #666; /* Default gray for inactive buttons */
    color: white;
    text-decoration: none;
    font-family: "Georgia", arial, sans-serif;
    font-size: 18px; /* Increased from 16px */
    font-style: italic;
    border: none;
    border-radius: 4px; /* Rounded corners */
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Active/selected button styling - ORANGE */
.nav-button.active {
    background-color: #d37d1a;
    color: white;
}

/* Hover effects */
.nav-button:hover {
    background-color: #777;
    transform: translateY(-1px);
}

.nav-button.active:hover {
    background-color: #cc7c00;
}

/* Main Content Area - NO WHITE BACKGROUND */
.main-content {
    background: inherit; /* Same textured background as body */
    padding: 0;
}

/* Blog Container */
.blog-container {
    padding: 20px 30px;
    background: inherit; /* Same textured background */
}

/* Blog Posts */
.blog-post {
    background: inherit; /* Same textured background */
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #3e3e3e;
}

.blog-post:last-child {
    border-bottom: none;
}

/* Post Header */
.post-header {
    margin-bottom: 15px;
}

.post-title {
    font-size: 22px; /* Increased from 20px */
    margin-bottom: 5px;
    font-weight: normal;
}

.post-title a {
    color: #d37d1a; /* Orange title color like original */
    text-decoration: none;
    font-family: "Georgia", arial, sans-serif;
}

.post-title a:hover {
    color: #cc7c00;
    text-decoration: underline;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 13px; /* Increased from 11px */
    margin-bottom: 10px;
}

.post-date {
    color: #888;
}

.post-comments {
    color: #d37d1a; /* Orange like in original */
    text-decoration: none;
}

.post-comments:hover {
    color: #cc7c00;
    text-decoration: underline;
}

/* Post Content */
.post-content {
    font-family: "Georgia", arial, sans-serif;
    font-size: 15px; /* Increased from 12px */
    color: #bbb; /* Lighter text on dark background */
    line-height: 1.6em;
    margin: 15px 0;
    text-align: justify;
}

.post-content p {
    margin-bottom: 16px;
}

/* Scripture quotes styling - authentic blue color from original */
.post-content em {
    color: #76cae9;
    font-style: italic;
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #3e3e3e;
}

.social-buttons {
    display: flex;
    gap: 8px;
}

.custom-like-btn {
    padding: 6px 12px;
    font-size: 13px; /* Increased from 11px */
    color: white;
    background-color: #666;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    font-family: "Georgia", arial, sans-serif;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.custom-like-btn:hover {
    background-color: #777;
    transform: translateY(-1px);
}

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

.custom-like-btn.liked {
    background-color: #d37d1a;
    color: white;
}

.custom-like-btn.liked:hover {
    background-color: #cc7c00;
}

.thumbs-up {
    font-size: 12px;
}

.post-comments-link {
    color: #d37d1a; /* Orange like in original */
    text-decoration: none;
    font-size: 13px; /* Increased from 11px */
}

.post-comments-link:hover {
    color: #cc7c00;
    text-decoration: underline;
}

/* Right Sidebar - DARK BACKGROUND */
.right-sidebar {
    background: inherit; /* Same dark textured background as main */
    padding: 20px 15px;
    color: #aaa;
    border-left: 1px solid #3e3e3e;
}

.right-sidebar h3 {
    color: white; /* Changed from #d37d1a to white */
    font-family: "Georgia", arial, sans-serif;
    font-size: 20px; /* Increased from 18px */
    margin-bottom: 15px;
    font-weight: normal;
}

/* Author Section */
.author-section {
    margin-bottom: 35px;
}

.author-section::after {
    content: "";
    display: table;
    clear: both;
}

.author-image {
    float: left;
    margin-right: 12px;
    margin-bottom: 8px;
}

.author-image img {
    width: 70px;
    height: auto; /* Changed from fixed 90px to auto to preserve aspect ratio */
    border: 1px solid #666;
}

.author-info {
    /* Remove overflow: hidden to allow text wrapping around floated image */
}

.author-info h3 {
    margin-bottom: 8px;
    clear: none; /* Allow heading to start next to image if space permits */
}

.author-info p {
    font-size: 15px; /* Increased from 13px */
    line-height: 1.4em;
    color: #aaa; /* Back to darker text for dark background */
    text-align: justify;
    clear: none; /* Allow text to wrap around image */
}

/* Categories Section */
.categories-section {
    margin-bottom: 30px;
    clear: both;
}

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

.categories-list li {
    margin-bottom: 2px;
}

.categories-list a {
    color: #d37d1a; /* Orange like in original */
    text-decoration: none;
    font-size: 15px; /* Increased from 13px */
    display: block;
    padding: 1px 0;
}

.categories-list a:hover {
    color: #76cae9; /* Blue hover like original */
    text-decoration: underline;
}

/* Archives Section */
.archives-section {
    margin-bottom: 30px;
    clear: both;
}

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

.archives-list li {
    margin-bottom: 2px;
}

.archives-list a {
    color: #d37d1a; /* Orange like in original */
    text-decoration: none;
    font-size: 15px; /* Increased from 13px */
    display: block;
    padding: 1px 0;
}

.archives-list a:hover {
    color: #76cae9; /* Blue hover like original */
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .page-wrapper {
        max-width: 1200px;
    }
    
    .header-content {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .page-wrapper {
        grid-template-columns: 150px 1fr 260px;
        max-width: 1000px;
    }
    
    .header-content {
        max-width: 1000px;
    }
}

@media (max-width: 1000px) {
    .site-header {
        padding: 15px 10px; /* Reduce header padding on smaller screens */
    }
    
    .header-content {
        max-width: none; /* Remove max-width constraint on mobile */
    }
    
    .page-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "nav"
            "main"
            "sidebar";
        max-width: none; /* Remove max-width constraint on mobile */
    }
    
    .left-nav {
        grid-area: nav;
        border-right: none;
        border-bottom: 1px solid #3e3e3e;
        padding: 10px;
    }
    
    /* Hide the left extension on mobile since nav is full width */
    .left-nav::before {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    
    .nav-menu li {
        margin-bottom: 0;
        margin-right: 0;
    }
    
    .nav-button {
        padding: 12px 16px; /* Back to symmetric padding */
        font-size: 15px; /* Increased from 13px */
        border-radius: 6px;
    }
    
    .main-content {
        grid-area: main;
    }
    
    .right-sidebar {
        grid-area: sidebar;
        border-left: none;
        border-top: 1px solid #3e3e3e;
    }
    
    .site-branding {
        gap: 8px; /* Smaller gap on mobile */
    }
    
    .site-logo {
        height: 20px; /* Smaller logo on mobile */
    }
    
    .site-title {
        font-size: 22px; /* Reduced for mobile */
    }
    
    .blog-container {
        padding: 15px;
    }
    
    .author-image {
        float: none;
        text-align: center;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .author-info {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 15px 5px; /* Even less padding on very small screens */
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .page-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .search-input {
        width: 80px;
    }
}

/* Comment Section Styles */
.blog-comment-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #3e3e3e;
}

.comments-header h3 {
    color: white;
    font-family: "Georgia", arial, sans-serif;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: normal;
}

.comments-list {
    margin-bottom: 40px;
}

.comment {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

/* Threaded comment indentation */
.comment-level-1 {
    margin-left: 30px;
    border-left: 3px solid #d37d1a;
    background: rgba(211, 125, 26, 0.05);
}

.comment-level-2 {
    margin-left: 60px;
    border-left: 3px solid #76cae9;
    background: rgba(118, 202, 233, 0.05);
}

.comment-level-3 {
    margin-left: 90px;
    border-left: 3px solid #ffcc33;
    background: rgba(255, 204, 51, 0.05);
}

.comment-level-4 {
    margin-left: 120px;
    border-left: 3px solid #aaa;
    background: rgba(170, 170, 170, 0.05);
}

/* For deeper nesting levels, cap at level 4 styling */
.comment[data-level="5"],
.comment[data-level="6"],
.comment[data-level="7"],
.comment[data-level="8"],
.comment[data-level="9"] {
    margin-left: 120px;
    border-left: 3px solid #aaa;
    background: rgba(170, 170, 170, 0.05);
}

.comment-replies {
    margin-top: 15px;
}

.comment-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
}

.comment-author {
    color: #d37d1a;
    font-weight: bold;
}

.comment-date {
    color: #888;
}

.comment-content {
    color: #bbb;
    line-height: 1.6em;
    font-size: 15px;
}

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

.no-comments {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Comment Form Styles */
.comment-reply-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    padding: 25px;
}

.comment-reply-title {
    color: white;
    font-family: "Georgia", arial, sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: normal;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: #bbb;
    font-size: 14px;
    font-weight: normal;
}

.required {
    color: #d37d1a;
}

.form-group input,
.form-group textarea {
    background-color: #2a2e31;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 10px 12px;
    color: #bbb;
    font-family: "Georgia", arial, sans-serif;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d37d1a;
    background-color: #323639;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #777;
}

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

.form-actions {
    margin-top: 10px;
}

.comment-submit-btn {
    background-color: #d37d1a;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-family: "Georgia", arial, sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.comment-submit-btn:hover {
    background-color: #cc7c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

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

/* Reply Button Styles */
.reply-btn {
    background: none;
    border: 1px solid #d37d1a;
    color: #d37d1a;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.reply-btn:hover {
    background-color: #d37d1a;
    color: white;
}

/* Reply Form Container */
.reply-form-container {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    border-left: 3px solid #d37d1a;
}

.reply-form-container h4 {
    color: #d37d1a;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: normal;
}

/* Reply Form Styles */
.reply-form {
    gap: 12px;
}

.reply-form .form-group {
    margin-bottom: 12px;
}

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

/* Cancel Reply Button */
.cancel-reply-btn {
    background: none;
    border: 1px solid #666;
    color: #aaa;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.cancel-reply-btn:hover {
    background-color: #666;
    color: white;
}

/* Page Content Styles for About and Contact */
.page-content {
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* About Page Styles */
.welcome-section {
    text-align: center;
    margin-bottom: 50px;
}

.welcome-title {
    color: #ffcc33;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    font-family: "Georgia", arial, sans-serif;
}

.intro-content {
    text-align: left;
    margin-top: 30px;
}

.intro-image {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
}

.intro-image .content-image {
    width: 350px; /* Much larger to match original */
    height: auto;
    border: 1px solid #666;
    padding: 3px;
    border-radius: 4px;
}

.intro-text {
    /* Remove flex properties, let text flow naturally */
}

.large-text {
    font-size: 20px;
    font-weight: bold;
    color: #bbb;
    line-height: 1.4em;
    text-align: left;
    margin-top: 0;
}

.content-image {
    max-width: 200px;
    height: auto;
    border: 1px solid #666;
    padding: 3px;
    border-radius: 4px;
}

.about-sections {
    margin-top: 50px;
    clear: both; /* Clear the floated intro image */
}

.about-grid {
    /* Remove grid layout, use natural flow */
    display: block;
}

.about-site {
    margin-bottom: 60px; /* More space between sections */
    clear: both; /* Clear the intro image */
}

.about-site::after {
    content: "";
    display: table;
    clear: both;
}

.about-author {
    margin-top: 40px;
    clear: both; /* Clear any floated elements above */
}

.about-author::after {
    content: "";
    display: table;
    clear: both;
}

.intro-content::after {
    content: "";
    display: table;
    clear: both;
}

.section-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left; /* Left align like original */
    font-family: "Georgia", arial, sans-serif;
}

.section-content {
    color: #bbb;
    line-height: 1.6em;
    font-size: 15px;
}

.section-content p {
    margin-bottom: 15px;
}

.section-content em {
    color: #76cae9;
    font-style: italic;
}

.enjoy-text {
    font-size: 18px;
    font-weight: bold;
}

.author-content {
    /* Remove flex layout */
}

.author-content .author-image {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
}

.author-content .author-image .content-image {
    width: 150px; /* Increased for better visibility */
    height: auto;
}

.author-content .section-content {
    /* Let text wrap around floated image */
    text-align: left;
}

/* Contact Page Styles */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
}

.page-title {
    color: white;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    font-family: "Georgia", arial, sans-serif;
}

.contact-intro {
    color: #bbb;
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5em;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-note {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3e3e3e;
}

.form-note p {
    color: #bbb;
    margin-bottom: 5px;
}

.required-note {
    font-size: 14px;
    color: #888;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.contact-form label {
    color: #bbb;
    font-size: 14px;
    font-weight: normal;
}

.contact-form input,
.contact-form textarea {
    background-color: #2a2e31;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 12px;
    color: #bbb;
    font-family: "Georgia", arial, sans-serif;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #d37d1a;
    background-color: #323639;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: #d37d1a;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 15px 30px;
    font-family: "Georgia", arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #cc7c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

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

.contact-info {
    text-align: center;
    color: #bbb;
}

.contact-info h3 {
    color: white;
    margin-bottom: 10px;
    font-family: "Georgia", arial, sans-serif;
}

/* Responsive comment form and threading */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .comment-reply-section {
        padding: 20px;
    }
    
    .blog-comment-area {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    /* Reduce indentation on mobile */
    .comment-level-1 {
        margin-left: 15px;
    }
    
    .comment-level-2 {
        margin-left: 30px;
    }
    
    .comment-level-3 {
        margin-left: 45px;
    }
    
    .comment-level-4,
    .comment[data-level="5"],
    .comment[data-level="6"],
    .comment[data-level="7"],
    .comment[data-level="8"],
    .comment[data-level="9"] {
        margin-left: 45px;
    }
    
    /* Reply form adjustments for mobile */
    .reply-form-container {
        padding: 12px;
        margin-top: 12px;
    }
    
    .reply-form-container h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .reply-btn {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .cancel-reply-btn {
        padding: 10px 16px;
        font-size: 13px;
        margin-left: 8px;
    }
} 

/* Responsive design for new pages */
@media (max-width: 768px) {
    .page-content {
        padding: 20px 15px;
    }
    
    .intro-content {
        text-align: center;
    }
    
    .intro-image {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
    }
    
    .intro-image .content-image {
        width: 280px; /* Smaller on mobile but still prominent */
        max-width: 100%;
    }
    
    .author-content .author-image {
        float: none;
        text-align: center;
        margin: 0 auto 20px auto;
        display: block;
    }
    
    .author-content .author-image .content-image {
        width: 140px; /* Larger author image on mobile */
    }
    
    .section-title {
        text-align: center; /* Center on mobile */
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    /* Contact form responsive styles */
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
} 

/* Books and Classbooks Page Styles */
.books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.book-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    align-items: start;
}

.book-image {
    display: flex;
    justify-content: center;
}

.book-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #3e3e3e;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.book-image img:hover {
    transform: scale(1.05);
    border-color: #d37d1a;
}

.book-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.book-title {
    font-size: 1.4rem;
    color: #d37d1a;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

.book-subtitle {
    font-size: 1rem;
    color: #ffcc33;
    font-style: italic;
    margin: 0;
}

.book-author {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: bold;
    margin: 0;
}

.book-price {
    font-size: 1rem;
    color: #ccc;
    margin: 0;
}

.order-note {
    color: #ffcc33;
    font-style: italic;
    font-size: 0.9rem;
}

.ebook-link {
    color: #5cbce0;
    text-decoration: underline;
    font-weight: bold;
}

.ebook-link:hover {
    color: #7dd3f0;
}

.book-description {
    font-size: 1rem;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

.book-description em {
    font-style: italic;
    color: #ccc;
}

.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #3e3e3e, transparent);
    margin: 1rem 0 2rem 0;
}

/* Responsive design for books pages */
@media (max-width: 768px) {
    .book-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .book-image {
        justify-content: center;
    }
    
    .book-details {
        text-align: left;
    }
    
    .books-grid {
        gap: 2rem;
    }
}

/* Larger text for better accessibility */
@media (min-width: 1200px) {
    .book-title {
        font-size: 1.5rem;
    }
    
    .book-author, .book-price {
        font-size: 1.1rem;
    }
    
    .book-description {
        font-size: 1.05rem;
    }
} 

/* Recipes Page Styles */
.recipes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.recipes-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 2rem;
}

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

.recipes-list li {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #3e3e3e;
}

.recipes-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recipe-link {
    color: #76cae9;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: "Georgia", arial, sans-serif;
    line-height: 1.4;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.recipe-link:hover {
    color: #a8d4ed;
    text-decoration: underline;
    padding-left: 0.5rem;
}

.recipes-intro {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.intro-text {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Responsive design for recipes page */
@media (max-width: 768px) {
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .recipes-column {
        padding: 1.5rem;
    }
    
    .recipe-link {
        font-size: 1rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
}

/* Larger text for better accessibility on recipes */
@media (min-width: 1200px) {
    .recipe-link {
        font-size: 1.2rem;
    }
    
    .intro-text {
        font-size: 1.15rem;
    }
} 

/* Individual Recipe Page Styles */
.recipe-header {
    text-align: center;
    margin-bottom: 2rem;
}

.recipe-title {
    color: #d37d1a;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: "Georgia", arial, sans-serif;
}

.recipe-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 2.5rem;
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.recipe-content p {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-family: "Georgia", arial, sans-serif;
}

.recipe-content p:last-child {
    margin-bottom: 0;
}

/* Recipe sections styling */
.recipe-content h3 {
    color: #d37d1a;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid #3e3e3e;
    padding-bottom: 0.5rem;
}

.recipe-content h4 {
    color: #ffcc33;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1.5rem 0 0.75rem 0;
}

.recipe-content ul, .recipe-content ol {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.recipe-content li {
    margin-bottom: 0.5rem;
}

.recipe-content strong {
    color: #ccc;
    font-weight: bold;
}

.recipe-content em {
    color: #76cae9;
    font-style: italic;
}

/* Back to recipes link */
.back-to-recipes {
    text-align: center;
    margin: 2rem 0;
}

.back-to-recipes a {
    color: #76cae9;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #76cae9;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.back-to-recipes a:hover {
    background-color: #76cae9;
    color: #202427;
    text-decoration: none;
}

/* Responsive design for recipe pages */
@media (max-width: 768px) {
    .recipe-content {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .recipe-title {
        font-size: 1.6rem;
    }
    
    .recipe-content p,
    .recipe-content ul,
    .recipe-content ol {
        font-size: 1rem;
    }
    
    .recipe-content h3 {
        font-size: 1.2rem;
    }
}

/* Print styles for recipes */
@media print {
    .recipe-content {
        background: white;
        border: none;
        box-shadow: none;
        color: black;
    }
    
    .recipe-content p,
    .recipe-content ul,
    .recipe-content ol,
    .recipe-content li {
        color: black;
    }
    
    .recipe-title {
        color: black;
    }
    
    .back-to-recipes {
        display: none;
    }
} 

/* Recommended Sites Page Styles */
.recommended-sites {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem; /* Add padding for breathing room */
}

.site-recommendation {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 2.5rem; /* Increased from 2rem */
    margin-bottom: 2.5rem; /* Increased from 2rem */
    transition: background-color 0.2s ease;
}

.site-recommendation:hover {
    background: rgba(255, 255, 255, 0.04);
}

.site-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #d37d1a;
    font-weight: bold;
    font-family: "Georgia", arial, sans-serif;
}

.site-title a {
    color: #d37d1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-title a:hover {
    color: #ffcc33;
    text-decoration: underline;
}

.site-description {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-family: "Georgia", arial, sans-serif;
}

.site-description:last-child {
    margin-bottom: 0;
}

.grief-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 2.5rem; /* Increased from 2rem */
    margin-top: 3.5rem; /* Increased from 3rem */
    margin-bottom: 2.5rem; /* Increased from 2rem */
}

.section-header {
    font-size: 1.3rem;
    color: #5cbce0;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: "Georgia", arial, sans-serif;
    text-decoration: underline;
}

.grief-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* Increased from 1rem */
}

.grief-link {
    padding: 1.25rem; /* Increased from 1rem */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #4e4e4e;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.grief-link:hover {
    background: rgba(255, 255, 255, 0.04);
}

.grief-link a {
    color: #76cae9;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
    transition: color 0.2s ease;
}

.grief-link a:hover {
    color: #a8d4ed;
    text-decoration: underline;
}

.page-footer {
    margin-top: 3.5rem; /* Increased from 3rem */
    padding-top: 2.5rem; /* Increased from 2rem */
    border-top: 2px solid #3e3e3e;
    text-align: center;
}

.update-note {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 2.5rem; /* Increased from 2rem */
    max-width: 700px;
    margin: 0 auto;
}

.update-note p {
    color: #f6aaf0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.update-note p:last-child {
    margin-bottom: 0;
}

.signature {
    color: #bbb !important;
    font-style: normal !important;
    font-weight: bold;
    margin-top: 1rem;
}

/* Responsive design for recommended sites */
@media (max-width: 768px) {
    .site-recommendation,
    .grief-section,
    .update-note {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .site-description,
    .grief-link a {
        font-size: 1rem;
    }
    
    .section-header {
        font-size: 1.1rem;
    }
    
    .recommended-sites {
        padding: 0 1rem;
    }
}

/* Larger text for better accessibility */
@media (min-width: 1200px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        font-size: 1.15rem;
    }
    
    .grief-link a {
        font-size: 1.15rem;
    }
    
    .update-note p {
        font-size: 1.15rem;
    }
} 

/* FAQ & Tutorial Page Styles */
.faq-sections {
    margin-top: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: background-color 0.2s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.faq-question {
    color: #d37d1a;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: "Georgia", arial, sans-serif;
    border-bottom: 1px solid #3e3e3e;
    padding-bottom: 0.5rem;
}

.faq-answer {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.7;
    font-family: "Georgia", arial, sans-serif;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.signature-section {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 400px;
}

.signature-section p {
    color: #bbb;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: "Georgia", arial, sans-serif;
}

.signature-section .signature {
    color: #d37d1a !important;
    font-size: 1.2rem;
    font-style: italic;
}

/* Responsive design for FAQ page */
@media (max-width: 768px) {
    .faq-item,
    .signature-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        font-size: 1rem;
    }
    
    .signature-section p {
        font-size: 1rem;
    }
    
    .signature-section .signature {
        font-size: 1.1rem;
    }
}

/* Larger text for better accessibility on FAQ */
@media (min-width: 1200px) {
    .faq-question {
        font-size: 1.4rem;
    }
    
    .faq-answer {
        font-size: 1.15rem;
    }
    
    .signature-section p {
        font-size: 1.15rem;
    }
    
    .signature-section .signature {
        font-size: 1.25rem;
    }
}

/* Gallery Page Styles */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

.gallery-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #d37d1a;
}

.gallery-image-holder {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

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

.gallery-link:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-caption {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    font-family: "Georgia", arial, sans-serif;
    line-height: 1.3;
}

.gallery-description {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.description-content p {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-family: "Georgia", arial, sans-serif;
}

.description-content em {
    color: #76cae9;
    font-style: italic;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #d37d1a;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid #3e3e3e;
    border-radius: 4px;
}

.lightbox-caption {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    font-family: "Georgia", arial, sans-serif;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    pointer-events: auto;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.lightbox-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #d37d1a;
    transform: scale(1.1);
}

#lightbox-prev {
    margin-left: -60px;
}

#lightbox-next {
    margin-right: -60px;
}

/* Responsive gallery design */
@media (max-width: 768px) {
    .gallery-container {
        padding: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
    }
    
    .gallery-caption {
        font-size: 0.9rem;
    }
    
    .description-content p {
        font-size: 1rem;
    }
    
    .lightbox-container {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: -35px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    .lightbox-nav-btn {
        font-size: 2rem;
        padding: 0.5rem;
    }
    
    #lightbox-prev {
        margin-left: -40px;
    }
    
    #lightbox-next {
        margin-right: -40px;
    }
    
    .lightbox-caption {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-container {
        padding: 0.5rem;
    }
    
    .gallery-description {
        padding: 1.5rem;
    }
    
    .lightbox-nav-btn {
        font-size: 1.5rem;
        padding: 0.25rem;
    }
    
    #lightbox-prev,
    #lightbox-next {
        margin: 0;
        position: relative;
    }
    
    .lightbox-nav {
        position: static;
        transform: none;
        margin-top: 1rem;
        justify-content: center;
        gap: 2rem;
    }
}

/* Larger screens */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .gallery-caption {
        font-size: 1.1rem;
    }
    
    .description-content p {
        font-size: 1.15rem;
    }
    
    .lightbox-caption {
        font-size: 1.3rem;
    }
}

/* Pagination */
.pagination-nav {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #3e3e3e;
    text-align: center;
}

.pagination-info {
    margin-bottom: 20px;
}

.pagination-info p {
    color: #888;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    margin: 0 10px;
}

.pagination-btn,
.pagination-number {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #3e3e3e;
    color: #aaa;
    text-decoration: none;
    border-radius: 4px;
    font-family: "Georgia", arial, sans-serif;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-btn:hover,
.pagination-number:hover {
    background: rgba(211, 125, 26, 0.1);
    border-color: #d37d1a;
    color: #d37d1a;
}

.pagination-number.current {
    background: #d37d1a;
    border-color: #d37d1a;
    color: #000;
    font-weight: bold;
}

.pagination-btn.disabled {
    background: rgba(255, 255, 255, 0.02);
    border-color: #2a2a2a;
    color: #555;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #666;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-numbers {
        margin: 0;
    }
    
    .pagination-btn,
    .pagination-number {
        padding: 10px 14px;
        font-size: 16px;
    }
} 