/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: #f9fcfc;
    color: #333;
    line-height: 1.6;
}

/* Common Font and Color for H1, H2, H3, H4 (Sets font-family and primary color) */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #4a7c59; /* Default Green for most headings */
}

/* Base Heading Styles */
h2 {
    /* Styles moved from .section-title - applied to ALL h2 */
    margin-top: 0;
    border-bottom: 3px solid #a8d5ba;
    padding-bottom: 1rem;
}

h3 {
    /* Styles moved from .sub-heading - applied to ALL h3 */
    font-size: 1.3rem;
    margin-top: 2rem;
    color: #8b5a5a; /* Site-wide color for all h3 */
}

h4 {
    font-size: 1.0rem;
    margin: 0 0 0.5rem 0;
    color: #8b5a5a; /* Site-wide color for all h4 */
}

/* Global List Styles (Moved from .detail-list) - applied to ALL ul/li */
ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

ul li {
    margin: 0.8rem 0;
}

nav {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    text-align: center;
}

nav a {
    margin: 0 1rem;
    color: #4a7c59;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #a8d5ba;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.5rem;
}

footer {
    text-align: center;
    padding: 0.5rem 2rem;
    background: #4a7c59;
    color: white;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

footer a {
    color: #a8d5ba;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ============================================
   REUSABLE COMPONENTS
   ============================================ */

/* Buttons */
.btn {
    background: #4a7c59;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.btn:hover {
    background: #8bb89a;
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: #4a7c59;
    padding: 0.6rem 1.2rem;
    border: 2px solid #4a7c59;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

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

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

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

.card h2 {
    font-size: 1.5rem;
    margin-top: 0;
}

/* Quotes */
.quote {
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Content Panel (Main content wrapper) */
.content-panel {
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Back Link (Component) */
.back-link {
    display: inline-block;
    margin: 1rem 0;
    color: #4a7c59;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #a8d5ba;
}

/* ============================================
   PAGE-SPECIFIC COMPONENTS
   ============================================ */

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.page-tagline {
    font-size: 1.2rem;
    color: #4a7c59;
    font-style: italic;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
}

/* Tab Navigation */
.tab-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ddd;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    background: transparent;
    color: #4a7c59;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #4a7c59;
    color: white;
}

.tab-content {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

.tab-panel {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Books & Articles Sections */
.book-section,
.article-section {
    margin-bottom: 3rem;
}

.book-section h3,
.article-section h3 {
    /* Overrides the default h2 border style for h3 */
    border-bottom: 2px solid #a8d5ba;
    padding-bottom: 1rem;
}

.book-item,
.article-item {
    background: #f9f9f9;
    padding: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid #a8d5ba;
    margin-bottom: 1rem;
}

.book-item h3 {
    /* Override the global h3 margin-top for book items */
    margin-top: 0.5rem; /* Or 0, to remove it completely */
}

.book-item p,
.article-item p {
    margin: 1rem 0;
}

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

.book-links a {
    padding: 0.5rem 1rem;
    background: #4a7c59;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.book-links a:hover {
    background: #2d5a3d;
    transform: translateY(-2px);
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.article-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #a8d5ba;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.article-card h3 {
    margin: 0 0 0.5rem 0;
    /* font-size override removed for global consistency */
}

.article-card p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

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

.featured-card {
    background: linear-gradient(135deg, #4a7c59 0%, #2d5a3d 100%);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.featured-card h3 {
    margin-top: 0;
    color: white; /* Necessary override to keep h3 white on a dark background */
}

.featured-card a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.featured-card a:hover {
    text-decoration: underline;
}

/* Info Boxes */
.info-box {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #a8d5ba;
    margin: 1rem 0;
}

.info-box p {
    margin: 0;
}

/* Divider */
.section-divider {
    text-align: center;
    margin: 4rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

/* ============================================
   BOOK PAGE – FEATURED BOOK COVER
   ============================================ */

.book-cover-frame {
    width: 300px; /* 👈 change this to resize everything */
    aspect-ratio: 0.6;
    padding: 5px;
    border-radius: 1px;
    background: linear-gradient(135deg, #8b5a5a 0%, #4a7c59 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1px;
    display: block;
}


/* ============================================
   SECTION-SPECIFIC STYLES
   ============================================ */

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, #d0e8dd, #f9fcfc);
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-shape {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(168, 213, 186, 0.15);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

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

.hero-title-c {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0;
    opacity: 0;
    animation: slideInDown 0.8s ease-out 0.2s forwards;
    color: #4a7c59;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline;
}

.hero-title-k {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0;
    opacity: 0;
    animation: slideInDown 0.8s ease-out 0.2s forwards;
    color: #6b2f2f;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin: 0.5rem 0 0 0;
    opacity: 0;
    animation: slideInDown 0.8s ease-out 0.4s forwards;
}

.hero-tagline {
    font-size: 1.3rem;
    color: #4a7c59;
    font-weight: 600;
    margin: 1rem 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

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

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

/* Services Section */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* About Section */
.about-section {
    text-align: left;
}

.about-section p {
    font-size: 1rem;
    margin: 1rem 0;
}

.about-section h2 {
    text-align: center;
}

.why-list {
    text-align: left;
    background: #c8e6d7;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 500px;
}

.why-list h3 {
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    color: #000;
    font-weight: bold;
    text-align: left;
}

.why-list ul {
    list-style: none;
    padding: 0;
}

.why-list li {
    margin: 0.8rem 0;
    font-size: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.why-list li:before {
    content: "✨";
    position: absolute;
    left: 0;
}

.why-list-footer {
    font-size: 1rem;
    margin-top: 1.5rem;
    text-align: left;
    color: #333;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 5px rgba(74, 124, 89, 0.3);
}

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

/* Testimonials Section */
.testimonials {
    background: #eef5f2;
    padding: 4rem 2rem;
    text-align: center;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    nav a {
        margin: 0 0.5rem;
    }

    .hero {
        padding: 4rem 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .tab-buttons {
        gap: 0.5rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

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