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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #2d5016;
    color: white;
    border-color: #2d5016;
}

.btn-primary:hover {
    background: #1a3009;
    border-color: #1a3009;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #2d5016;
    border-color: #2d5016;
}

.btn-secondary:hover {
    background: #2d5016;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #2d5016;
    border-color: #2d5016;
}

.btn-outline:hover {
    background: #2d5016;
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 5000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3500;
}

/* Ensure header and controls are always clickable above content */
.header,
.navbar,
.navbar .hamburger {
    pointer-events: auto;
}

/* Ensure header always stacks above page content */
.navbar {
    position: relative;
    z-index: 3200;
}

.nav-brand h1 {
    color: #2d5016;
    font-size: 1.8rem;
    margin-bottom: 0;
}

.nav-brand span {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

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

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2d5016;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2d5016;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Remove any UA or inherited line-through on links */
.nav-link,
.nav-menu .nav-link,
.footer a,
.content-card a {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    text-decoration-thickness: initial !important;
    text-decoration-color: currentColor !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    border: 1px solid #2d5016;
    color: #2d5016;
    background: #ffffff;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-weight: 600;
    line-height: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 0;
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5016 0%, #4a6741 50%, #87a96b 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #2d5016;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2rem;
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 600;
}

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

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #2d5016, #4a6741);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(45, 80, 22, 0.3);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
}

.author-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
}

/* Poems Section */
.poems {
    padding: 6rem 0;
    background: white;
}

/* Featured Poems Section */
.featured-poems {
    padding: 6rem 0;
    background: white;
    margin-top: 0;
}

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

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

.poem-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.poem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.poem-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2d5016, #4a6741);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.poem-card h3 {
    font-size: 1.5rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.poem-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poem-link {
    color: #2d5016;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.poem-link:hover {
    color: #1a3009;
}

/* Seasons Section */
.seasons {
    padding: 6rem 0;
    background: #f8f9fa;
}

.season-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: white;
    border: 2px solid #2d5016;
    color: #2d5016;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-btn:hover,
.tab-btn.active {
    background: #2d5016;
    color: white;
}

.season-content {
    position: relative;
}

.season-panel {
    display: none;
}

.season-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.season-info {
    text-align: center;
    margin-bottom: 3rem;
}

.season-info h3 {
    font-size: 2rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.season-info p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.poem-item {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.poem-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.poem-item h4 {
    font-size: 1.3rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.poem-item p {
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

/* Books Section */
.books {
    padding: 6rem 0;
    background: white;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.book-card {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.book-image {
    width: 150px;
    background: linear-gradient(135deg, #2d5016, #4a6741);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.book-info {
    padding: 2rem;
    flex: 1;
}

.book-info h3 {
    font-size: 1.5rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.book-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Ensure contact form/layout is responsive on smaller screens */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-form {
        width: 100%;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #2d5016;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5016;
}

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

/* Footer */
.footer {
    background: #2d5016;
    color: white;
    padding: 3rem 0 1rem;
}

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

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

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

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

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

.social-links a:hover {
    background: white;
    color: #2d5016;
    transform: translateY(-2px);
}

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

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

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2d5016;
}

.poem-display h2 {
    color: #2d5016;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.poem-display #poem-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-style: italic;
}

.poem-display #poem-text p {
    margin-bottom: 1rem;
}

.poem-display #poem-source {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: inline-block;
        margin-right: 12px; /* move slightly away from right edge */
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .book-card {
        flex-direction: column;
    }
    
    .book-image {
        width: 100%;
        height: 200px;
    }
    
    .season-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .poems-grid {
        grid-template-columns: 1fr;
    }
    
    .poems-list {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
    .poem-card,
    .book-card,
    .poem-item {
        transition: all 0.3s ease;
    }
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

/* Contact Page */
.contact-page {
    padding: 6rem 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #2d5016;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2d5016;
}

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

/* Page Content */
.page-content {
    padding: 6rem 0;
    background: white;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* About Preview Section */
.about-preview {
    padding: 6rem 0;
    background: white;
}

.about-preview .about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Philosophy Section */
.philosophy {
    padding: 6rem 0;
    background: #f8f9fa;
}

.philosophy-content h2 {
    text-align: center;
    color: #2d5016;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.philosophy-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2d5016, #4a6741);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.philosophy-item h3 {
    color: #2d5016;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.philosophy-item p {
    color: #666;
    line-height: 1.6;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #2d5016;
    color: #2d5016;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2d5016;
    color: white;
}

/* No Books Section */
.no-books {
    text-align: center;
    padding: 4rem 0;
}

.no-books-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-books-content i {
    font-size: 4rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.no-books-content h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.no-books-content p {
    color: #666;
}

/* Featured from Books */
.featured-from-books {
    padding: 6rem 0;
    background: #f8f9fa;
}

/* Contact Extra */
.contact-extra {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.contact-extra h3 {
    color: #2d5016;
    margin-bottom: 2rem;
    text-align: center;
}

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

.contact-method {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-method i {
    font-size: 2rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.contact-method h4 {
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: white;
}

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

.faq-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #2d5016;
}

.faq-item h4 {
    color: #2d5016;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Disabled Button */
.btn.disabled {
    background: #ccc;
    color: #666;
    border-color: #ccc;
    cursor: not-allowed;
}

.btn.disabled:hover {
    background: #ccc;
    color: #666;
    transform: none;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero,
    .modal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .about,
    .poems,
    .seasons,
    .books,
    .contact {
        padding: 2rem 0;
    }
}

/* Mobile contact layout hardening */
@media (max-width: 768px) {
    .contact .container,
    .contact-page .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .contact-content { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
    }
    .contact-form {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .contact-form .form-group,
    .contact-form input,
    .contact-form textarea,
    .contact-form button { 
        width: 100%;
        box-sizing: border-box;
    }
}

/* Fix for page loading issues */
body:not(.index-page) section,
body:not(.index-page) .main-content,
body:not(.index-page) .page-content {
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure main content is always visible */
.main-content {
    opacity: 1;
    transform: none;
}

/* Page Layout Fixes */
body:not(.index-page) {
    padding-top: 80px; /* Space for fixed header */
}

/* Fix spacing for all page sections */
body:not(.index-page) section {
    padding-top: 2rem;
    margin-top: 2rem;
}

body:not(.index-page) .about,
body:not(.index-page) .poems,
body:not(.index-page) .books,
body:not(.index-page) .contact {
    padding: 4rem 0;
    margin-top: 0;
}

/* Fix header spacing on pages */
body:not(.index-page) .section-header {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

body:not(.index-page) .section-header h1,
body:not(.index-page) .section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Page header styling */
.page-header {
    text-align: center;
    padding: 6rem 0 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 0;
    margin-top: -80px; /* Offset the body padding */
    padding-top: 8rem; /* Extra padding to account for header */
}

.page-header h1 {
    font-size: 3rem;
    color: #2d5016;
    margin: 0;
    font-weight: 600;
}

/* Main content area for pages */
body:not(.index-page) .main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
    margin: 0;
}

.page-content {
    padding: 4rem 0 6rem 0;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.page-content h2 {
    color: #2d5016;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 600;
}

.page-content h3 {
    color: #4a6741;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 500;
}

.page-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Footer spacing for pages */
body:not(.index-page) .footer {
    margin-top: 4rem;
}

/* Page transition effects */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Content cards for pages */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.content-card h2 {
    color: #2d5016;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid #2d5016;
    padding-bottom: 1rem;
}

.content-card h3 {
    color: #4a6741;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Additional page improvements */
body:not(.index-page) .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

body:not(.index-page) .about-content,
body:not(.index-page) .poems-grid,
body:not(.index-page) .books-grid,
body:not(.index-page) .contact-content {
    margin-top: 2rem;
}

/* Improve content spacing */
body:not(.index-page) .about-text,
body:not(.index-page) .poem-card,
body:not(.index-page) .book-card {
    margin-bottom: 2rem;
}

/* Footer improvements for pages */
body:not(.index-page) .footer {
    margin-top: 6rem;
    padding-top: 4rem;
}

/* Responsive page layout */
@media (max-width: 768px) {
    body:not(.index-page) {
        padding-top: 70px;
    }
    
    body:not(.index-page) .container {
        padding: 0 1rem;
    }
    
    .page-header {
        padding: 5rem 0 3rem 0;
        margin-top: 0; /* avoid overlaying header */
        padding-top: 6rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-content {
        padding: 3rem 0 4rem 0;
    }
    
    .content-card {
        padding: 2rem;
        margin: 1rem 0;
    }
    
    .page-content h2 {
        font-size: 1.8rem;
    }
    
    .page-content h3 {
        font-size: 1.3rem;
    }
    
    body:not(.index-page) .about,
    body:not(.index-page) .poems,
    body:not(.index-page) .books,
    body:not(.index-page) .contact {
        padding: 3rem 0;
    }
    
    body:not(.index-page) .section-header h1,
    body:not(.index-page) .section-header h2 {
        font-size: 2.2rem;
    }

    /* Reposition theme toggle on mobile to avoid overlapping hamburger */
    .theme-toggle {
        position: fixed;
        right: 20px !important;
        bottom: 20px !important;
        top: auto !important;
        z-index: 2000 !important; /* keep below header/hamburger */
    }

    /* Keep hamburger above */
    .navbar .hamburger {
        position: relative;
        z-index: 4000;
    }

    /* Mobile navigation menu - ensure visibility and clickability on pages */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px; /* below fixed header */
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        background: #ffffff;
        padding: 1rem 1.25rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        border-bottom: 1px solid #e9ecef;
        z-index: 3500; /* above page content, below hamburger */
    }

    .nav-menu .nav-link {
        padding: 0.75rem 0;
        width: 100%;
        text-decoration: none !important; /* prevent mobile UA striking */
    }

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

    /* Lower page content stacking to avoid overlaying header */
    body:not(.index-page) .page-header,
    body:not(.index-page) .main-content,
    body:not(.index-page) section {
        position: relative;
        z-index: 1;
    }
}
