/* Base Reset & Variables */
:root {
    --color-primary: #38761D; /* Deep Forest Green */
    --color-secondary: #f0f0f0; /* Light Gray/Off-White */
    --color-text: #333333; /* Dark Charcoal */
    --color-accent: #DAA520; /* Golden Accent for links/buttons */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --font-script: 'Allura', cursive;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: #FFFFFF; /* Pure white background */
    line-height: 1.6;
}

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

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

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

/* --- HEADER STYLING --- */

.site-header {
    border-bottom: 1px solid var(--color-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Site Branding (Logo/Title) */
.site-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0px;
}

/* Search Bar */
.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid var(--color-secondary);
    border-radius: 5px 0 0 5px;
    font-size: 0.95rem;
    width: 250px;
    outline: none;
}

.search-button {
    padding: 10px 15px;
    background-color: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
    border-left: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #4a9e2a; /* Slightly lighter green */
}

/* Primary Navigation */
.primary-nav {
    background-color: var(--color-primary);
    padding: 10px 0;
}

.nav-list {
    list-style: none;
/*
    display: flex;
    justify-content: space-between;
*/
}

.primary-nav li {
  display:inline-block;
}

.primary-nav a {
    color: white;
    font-weight: 400;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
    letter-spacing: 0.5px;
}

.primary-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}


.shop-link {
    font-weight: 700 !important; /* Emphasize the affiliate link destination */
    color: var(--color-accent) !important;
}

/* --- MAIN CONTENT STYLING --- */

.page-content {
    padding: 40px 20px 80px;
}

.page-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.intro-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-secondary);
    padding-bottom: 20px;
}

/* --- FOOTER STYLING --- */

.site-footer {
    background-color: #222; /* Dark background for sophistication */
    color: #ccc;
    padding-top: 40px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.secondary-nav h3, .footer-info h3 {
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.secondary-nav ul {
    list-style: none;
}

.secondary-nav a, .footer-info p {
    color: #ccc;
    padding: 5px 0;
    display: block;
}

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

/* Affiliate Notice Bar */
.affiliate-notice {
    background-color: #1a1a1a;
    color: var(--color-secondary);
    padding: 10px 0;
    text-align: center;
}

.affiliate-notice p {
    font-size: 0.85rem;
    font-style: italic;
}

/* =======================================================
   ADMINISTRATION & LOGIN STYLES (Conflict-Free Integration)
   ======================================================= */

/* Wrapper to safely center the login form content (used in login.php) */
.login-page-wrapper { 
    display: flex;
    justify-content: center; 
    align-items: center; 
    min-height: 80vh; 
    padding: 40px 0;
}



/* Login Form Container (used in login.php) */
.login-container { 
    background: white; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    width: 350px; 
    display: flex;
    flex-direction: column;
}

/* ADD THIS BLOCK to force labels/inputs to stack inside the form */
.login-container form {
    display: flex;
    flex-direction: column;
}

.login-container h2 { 
    text-align: center; 
    color: var(--color-primary); 
    margin-bottom: 25px;
}
.error { 
    color: #c0392b; 
    background-color: #fcebeb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px; 
    text-align: center; 
    border: 1px solid #f8d7da;
}
.login-container label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: bold; 
}
.login-container input[type="text"], 
.login-container input[type="password"] { 
    width: 100%; 
    padding: 10px; 
    margin-bottom: 20px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 1rem;
}
.login-container input[type="submit"] { 
    width: 100%; 
    background-color: var(--color-primary); 
    color: white; 
    padding: 12px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 1.1rem; 
    font-weight: 700;
    transition: background-color 0.3s;
}
.login-container input[type="submit"]:hover { 
    background-color: #4a9e2a; 
}

/* General Admin Container (Uses the width of your existing .container) */
.admin-content-wrapper { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

/* List Table Styling (admin_plantlist.php) */
.plant-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; 
}
.plant-table th, .plant-table td { 
    border: 1px solid var(--color-secondary); 
    padding: 12px; 
    text-align: left; 
}
.plant-table th { 
    background-color: var(--color-primary);
    color: white; 
}
.plant-table tr:nth-child(even) { 
    background-color: var(--color-secondary);
}

/* Action Buttons */
.action-link { 
    margin-right: 10px; 
    padding: 5px 10px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-size: 0.9rem;
    display: inline-block;
}
.edit-btn { 
    background-color: var(--color-accent); 
    color: var(--color-text);
}
.delete-btn { 
    background-color: #c0392b; 
    color: white; 
}

/* Add New Button */
.add-new { 
    display: block; 
    margin: 30px 0 0 0; 
    background-color: var(--color-primary); 
    color: white; 
    padding: 12px 20px; 
    text-align: center; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    width: 300px;
    transition: background-color 0.3s;
}
.add-new:hover {
    background-color: #4a9e2a; 
    color: white;
}

/* Status Messages */
.message { 
    padding: 15px; 
    background-color: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb; 
    margin-bottom: 20px; 
    border-radius: 4px; 
    font-weight: bold;
}

/* Verification Box (admin_plantlist.php) */
.verify-box { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center; z-index: 1000; 
}
.verify-content { 
    background: white; padding: 40px; border-radius: 8px; text-align: center; 
    max-width: 450px; box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.verify-content h2 { 
    color: #c0392b; 
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.verify-actions a { 
    margin: 0 15px; 
    font-size: 1rem; 
    padding: 8px 15px;
}

/* Form Styling (admin_plant.php) */
.form-group { 
    margin-bottom: 25px; 
}
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: bold; 
    color: var(--color-primary); 
}
.form-group input[type="text"], .form-group textarea {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 1rem;
}
.form-group textarea { 
    height: 200px; 
    resize: vertical; 
}
.form-actions { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 40px; 
}
.btn-submit { 
    background-color: var(--color-primary); 
    color: white; 
    padding: 15px 30px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 1.2rem; 
    font-weight: 700;
}
.btn-submit:hover {
    background-color: #4a9e2a;
}
.back-link { 
    color: var(--color-text); 
    text-decoration: none; 
    padding: 10px 15px; 
    border: 1px solid #ccc; 
    border-radius: 4px;
    transition: background-color 0.3s;
}
.back-link:hover {
    background-color: var(--color-secondary);
}

/* Related Tables Styling (admin_plant.php) */
.related-section h3 {
    color: var(--color-text);
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}
.related-table {
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 20px;
}
.related-table th {
    background-color: #e0e0e0 !important; 
    color: var(--color-text);
}
.add-new-sub {
    display: inline-block;
    background-color: #f0f0f0;
    color: var(--color-primary);
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}
.add-new-sub:hover {
    background-color: #e5e5e5;
}

/* --- Catalog Grid Styling (for catalog.php) --- */

.plant-catalog-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    gap: 30px;
    margin-top: 30px;
    grid-template-columns: repeat(auto-fit, 320px);
    justify-content: center;
}

.catalog-item {
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.plant-link {
    display: block;
    text-decoration: none;
}

.catalog-image {
    width: 100%;
    height: 400px; /* Standardized height for grid appearance */
    object-fit: cover;
    display: block;
/* This max-width hint aids in browser resource allocation for the thumbnail view. */
    /* max-width: 350px; */
}

.catalog-details {
    padding: 15px;
    text-align: center;
}

.catalog-details h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.catalog-details .scientific-name {
    font-size: 0.95rem;
    color: #666;
    margin-top -5px;
    margin-bottom: 10px;
    display: block;
}

.view-profile-link {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- IMPROVED ABOUT PAGE STYLING (for about.php) --- */

.about-page-content {
    /* Adds internal padding to the content area if needed, though the main .container handles this */
    padding: 20px 0 50px 0;
}

.about-page-content h1 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    /* A more pronounced underline effect */
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 12px;
    margin-bottom: 30px;
    font-size: 2.8rem;
    line-height: 1.2;
}

.about-page-content h2 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 2rem;
}

.about-page-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Styling the "Four Pillars" list */
.about-page-content ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 40px;
}

.about-page-content li {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-left: 4px solid var(--color-primary); /* Green accent bar */
    background-color: var(--color-secondary); /* Light background for definition boxes */
    border-radius: 4px;
    position: relative;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Custom bullet for list items */
.about-page-content li:before {
    content: "↓"; /* Using a clean arrow to represent unfolding */
    color: var(--color-primary);
    font-size: 1.5rem;
    position: absolute;
    left: -18px;
    top: 10px;
    font-family: sans-serif; /* Ensuring the arrow is standard */
}

.about-page-content strong {
    color: var(--color-primary);
    font-weight: 700;
}

.about-page-content hr {
    border: 0;
    border-top: 1px solid var(--color-accent);
    margin: 60px 0;
}

/* --- HOMEPAGE STYLING (for index.php) --- */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 50px;
    background-color: var(--color-secondary); /* Light background for contrast */
    border-radius: 8px;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.intro-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.btn-primary-action {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn-primary-action:hover {
    background-color: #ffc434; /* Slightly lighter gold */
    color: white;
}

/* Featured Content Section */
.featured-content {
    margin-bottom: 60px;
}

.featured-content h2 {
    font-family: var(--font-heading);
    color: var(--color-text);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.featured-plant-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.featured-plant-card {
    flex: 1;
    max-width: 380px;
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.featured-plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.featured-plant-card a {
    display: block;
    padding-bottom: 15px;
}

.featured-plant-image {
    width: 100%;
    /* Enforces 4:3 aspect ratio display (380/4 * 3 = 285px height if max-width 380px) */
    height: 400px; 
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

.featured-plant-card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.card-description {
    font-size: 0.9rem;
    color: #666;
    padding: 0 15px 15px 15px;
}

/* Promotional Pillars Section */
.pillars-section {
    background-color: #f7f7f7;
    padding: 40px 0 60px 0;
}

.pillars-section h2 {
    font-family: var(--font-heading);
    color: var(--color-text);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.pillars-grid {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pillar-card {
    flex: 1;
    text-align: center;
    padding: 20px;
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pillar-card h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.pillar-card p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.pillar-card a {
    font-weight: bold;
    color: var(--color-accent);
}

/* --- RECIPE PROFILE STYLING (for recipe.php) --- */

.recipe-profile-wrapper {
    padding: 20px 0 60px 0;
}

.recipe-main-header {
    text-align: center;
    margin-bottom: 30px;
}

.recipe-main-header h1 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 3rem;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 10px;
}

/* Meta Strip (Times and Servings) */
.recipe-meta-strip {
    display: flex;
    justify-content: space-around;
    background-color: var(--color-secondary);
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text);
}

.recipe-meta-strip strong {
    font-weight: 700;
    color: var(--color-primary);
}

/* Content Split Layout */
.recipe-content-split {
    display: flex;
    gap: 40px;
}

.recipe-sidebar {
    /* Takes up about 35% of the width */
    flex: 0 0 35%; 
}

.recipe-instructions {
    /* Takes up the remaining width */
    flex: 1; 
}

/* Hero Image */
.recipe-hero-image {
    width: 100%;
    height: 350px; /* Fixed height for visual consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ingredients Section */
.recipe-ingredients h2,
.recipe-instructions h2 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 8px;
}

.ingredient-list {
    list-style: none;
    padding-left: 0;
}

.ingredient-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 1.1rem;
}

/* Instructions Section */
.instruction-list {
    padding-left: 25px;
    counter-reset: step-counter; /* Initialize step counter */
}

.instruction-list li {
    margin-bottom: 25px;
    padding-left: 10px;
    line-height: 1.7;
    font-size: 1.1rem;
    list-style-type: none; /* Hide default list style */
    position: relative;
}

/* Custom numbered list styling */
.instruction-list li:before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: -25px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 0.9rem;
    line-height: 20px;
    font-weight: bold;
}

.related-plants-notice {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid var(--color-secondary);
    border-left: 5px solid var(--color-primary);
    background-color: #fafafa;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .recipe-content-split {
        flex-direction: column;
    }
    .recipe-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* --- PAGINATION CONTROLS STYLING --- */

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 15px;
}

.page-link, .page-number {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--color-secondary);
    border-radius: 4px;
    color: var(--color-text);
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
    font-weight: 700;
}

.page-link:hover, .page-number:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.page-number.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    cursor: default;
}

.page-number.active:hover {
    background-color: var(--color-primary);
    color: white;
}

.page-link.disabled {
    color: #aaa;
    border-color: #eee;
    background-color: #f7f7f7;
    cursor: not-allowed;
}

.page-numbers .ellipsis {
    padding: 0 5px;
    color: #999;
}

/* --- RECIPE CATALOG GRID STYLING --- */

.recipe-catalog-grid {
    /* Create responsive columns: at least 280px wide */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; 
    margin-bottom: 50px;
}

/* Ensure recipe card images are vertically consistent */
.recipe-item .recipe-image {
    height: 350px; 
    object-fit: cover;
    display: block;
    width: 100%;
}

.recipe-details {
    padding: 15px;
    text-align: center;
}

.recipe-meta-text {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

/* --- CONTACT FORM STYLING FIX (Ensures vertical stacking) --- */

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block; /* Make label take up full width and stack */
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-primary); /* Style label for emphasis */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px; /* Slightly larger padding */
    margin-bottom: 0; /* Clear bottom margin on input itself */
    border: 1px solid #ccc;
    border-radius: 6px; /* Slightly more rounded corners */
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

/* --- MESSAGING STYLING FOR CONTACT PAGE --- */

.success-message, .error-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid;
}

.success-message {
    background-color: #e8f5e9; /* Light green background */
    color: var(--color-success);
    border-color: var(--color-success);
}

.error-message {
    background-color: #ffebee; /* Light red background */
    color: var(--color-error);
    border-color: var(--color-error);
}

.success-message p, .error-message p {
    margin: 0;
}

/* --- RECIPE LAYOUT AND IMAGE STYLES --- */

/* Reverts to split layout for image and ingredients */
.recipe-content-split {
    display: flex;
    gap: 20px;
    margin-bottom: 30px; /* Space before instructions */
}

/* Defines the image column (e.g., 40%) */
.recipe-sidebar {
    flex: 0 0 40%; 
    max-width: 40%;
}

/* Defines the ingredients column (e.g., 60%) */
.recipe-ingredients {
    flex: 1; /* Takes up the remaining space */
}

/* Reduces the image size within the sidebar */
.recipe-hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Optional: adds a nice curve to the corners */
    object-fit: cover;
}


/* --- INGREDIENT LIST & ALIGNMENT STYLES --- */

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

/* Ensures each ingredient line is a flex container for alignment */
.ingredient-item {
    display: flex;
    justify-content: space-between; /* Pushes text to left, button to right */
    align-items: center; /* Vertically centers text and button */
    padding: 8px 0;
    border-bottom: 1px dashed #ddd; /* Separator */
    min-height: 40px; /* Fixed height to match button size and ensure alignment */
}

.ingredient-text {
    flex-grow: 1; /* Allows text to take up available space */
    padding-right: 15px; /* Space between text and button */
}


/* --- AFFILIATE BUTTON STYLES --- */

.affiliate-btn {
    /* Style to make it look like a clear button */
    display: inline-block;
    padding: 6px 10px;
    background-color: #008000; /* Green background for a 'buy' or 'affiliate' link */
    color: #ffffff; /* White text */
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    line-height: 1.2; /* Ensures vertical centering inside the button */
    /* Optional: Add hover effect */
    transition: background-color 0.2s ease;
}

.affiliate-btn:hover {
    background-color: #006400; /* Darker green on hover */
}


/* --- MOBILE RESPONSIVENESS --- */

@media (max-width: 768px) {
    .recipe-content-split {
        flex-direction: column; /* Stacks columns vertically on mobile */
    }
    .recipe-sidebar {
        flex: none;
        max-width: 100%;
    }
    /* Increase ingredient item height slightly for readability on smaller screens */
    .ingredient-item {
        min-height: 45px;
    }
}

/* --- ABOUT PAGE CONTENT STYLING (for about.php) --- */

/* Inherits from .page-content and is the main container for the about content */
/*
.about-hero, .team-profiles, .other-projects {
    padding: 20px 0;
}
*/

/* Ensure headings use the established styles */
/*
.about-hero h1 {
    /* Uses the enhanced h1 style defined in the main CSS block */
    font-family: var(--font-heading);
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 12px;
    margin-bottom: 30px;
    font-size: 2.8rem;
    line-height: 1.2;
}
*/

.team-profiles h2, .other-projects h2 {
    /* Uses the h2 style defined in the main CSS block */
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-top: 40px;
    margin-bottom: 25px;
    font-size: 2rem;
}

.mission-statement {
    font-size: 1.15rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.focus-heading {
    /* Style for the 'Our Focused Connections' H3 */
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--color-text);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* --- REVISED FOCUS LIST STYLING (Strong Visual Separation) --- */

.focus-list {
    list-style: none;
    padding: 0;
    margin: 0 0 50px 0;
    /* Remove wrapper border for cleaner block look */
}

.focus-item {
    /* Uses the accent color for a left border/flag to draw the eye */
    border-left: 6px solid var(--color-accent);
    background-color: var(--color-secondary); /* Use light grey background */
    padding: 20px 25px;
    margin-bottom: 15px; /* Adds clear separation between items */
    border-radius: 4px;
    font-size: 1.1rem;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); /* Subtle depth */
    transition: box-shadow 0.3s, background-color 0.3s;
}

.focus-item:hover {
    /* Stronger hover: slight lift and color shift */
    background-color: #e8e8e8; /* More noticeable background change */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.focus-item strong {
    color: var(--color-primary); /* Bold primary color for key titles */
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

/* --- EMPLOYEE CARD STYLING --- */

.section-tagline {
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
}

.employee-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.employee-card {
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    background-color: white;
}

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

.employee-photo-area {
    width: 100%;
    height: 400px; 
    overflow: hidden;
}

.employee-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.employee-info {
    padding: 20px 15px 30px;
}

.employee-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.employee-title {
    font-style: italic;
    color: var(--color-accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.employee-bio {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* --- OTHER PROJECTS SECTION --- */

.project-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    font-size: 1.1rem;
}

.project-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-secondary);
}

.project-list li:last-child {
    border-bottom: none;
}

.project-list li strong {
    color: var(--color-text);
    font-weight: 700;
}

.project-list a {
    color: var(--color-primary); 
    font-weight: 700;
}

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

/* Responsive adjustment for team cards on very small screens */
@media (max-width: 600px) {
    .employee-cards-container {
        grid-template-columns: 1fr;
    }
}
