/* Base Styles */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #A5D6A7;
    --accent-color: #FF9800;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #FFFFFF;
    --background-light: #F9F9F9;
    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4CAF50;
    --error-color: #F44336;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 6px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    text-align: center;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Header */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 0.25rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

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

nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-light);
    padding: 5rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    color: var(--primary-dark);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Featured Posts Section */
.featured-posts {
    padding: 4rem 0;
}

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

.post-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.post-content h3 a {
    color: var(--text-color);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

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

.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
    display: inline-block;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-light);
    padding: 4rem 0;
    text-align: center;
}

.newsletter h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-left: -2px;
}

/* Gardening Tips Section */
.gardening-tips {
    padding: 4rem 0;
    background-color: var(--background-light);
}

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

.tip-card {
    padding: 2rem;
    text-align: center;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform var(--transition-speed) ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card .icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.tip-card h3 {
    margin-bottom: 1rem;
}

.tip-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: #1f1f1f;
    color: #ffffff;
    padding-top: 3rem;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-links h3,
.footer-contact h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: left;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #cccccc;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    text-align: left;
}

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

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 0.5rem;
    color: #ffffff;
    transition: all var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Page Header */
.page-header {
    background-color: var(--primary-light);
    padding: 4rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('images/6.jpg');
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    color: var(--primary-dark);
}

/* Blog Page Styles */
.blog-content {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.blog-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.blog-info {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-info span {
    margin-right: 1rem;
}

.blog-info .date::before {
    content: '📅 ';
}

.blog-info .category::before {
    content: '🏷️ ';
}

.blog-text h2 {
    margin-top: 0;
    text-align: left;
}

.blog-text h2 a {
    color: var(--text-color);
}

.blog-text h2 a:hover {
    color: var(--primary-color);
}

.blog-text p {
    text-align: left;
}

/* About Page Styles */
.about-story {
    padding: 4rem 0;
}

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

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.about-text h2 {
    margin-top: 0;
    text-align: left;
}

.about-text p {
    text-align: left;
}

.team-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

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

.team-member {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform var(--transition-speed) ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member h3 {
    margin-top: 1.5rem;
}

.team-member p {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.team-member p:last-of-type {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-links a {
    margin: 0 0.5rem;
    color: var(--text-light);
    transition: color var(--transition-speed) ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.values-section {
    padding: 4rem 0;
}

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

.value-card {
    padding: 2rem;
    text-align: center;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed) ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card .icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.cta-section {
    padding: 4rem 0;
    background-color: var(--primary-light);
    text-align: center;
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin: 0 0.5rem;
}

/* Contact Page Styles */
.contact-section {
    padding: 4rem 0;
}

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

.contact-info h2,
.contact-form-container h2 {
    text-align: left;
    margin-top: 0;
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    margin-right: 1rem;
    color: var(--primary-color);
}

.info-content h3 {
    margin: 0 0 0.5rem 0;
    text-align: left;
}

.info-content p {
    margin: 0;
    text-align: left;
}

.contact-form {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

.btn-submit {
    width: 100%;
}

.map-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.faq-section {
    padding: 4rem 0;
}

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

.faq-item {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.faq-item h3 {
    margin-top: 0;
    text-align: left;
}

.faq-item p {
    margin-bottom: 0;
    text-align: left;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalOpen 0.4s;
}

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

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.thank-you-message {
    text-align: center;
}

.thank-you-message svg {
    margin: 0 auto 1.5rem auto;
    width: 64px;
    height: 64px;
}

.close-btn {
    margin-top: 1.5rem;
}

/* Blog Post Styles */
.blog-post {
    padding: 2rem 0 4rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.post-meta span {
    margin: 0 1rem;
}

.featured-image {
    margin-bottom: 2rem;
}

.featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.post-content h2, 
.post-content h3, 
.post-content h4 {
    text-align: left;
}

.post-content p, 
.post-content ul, 
.post-content ol {
    text-align: left;
}

.post-content img {
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.image-container {
    margin: 2rem 0;
}

.image-container img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.caption {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 0;
}

.tip-box {
    background-color: var(--primary-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.tip-box h4 {
    margin-top: 0;
    color: var(--primary-dark);
}

.tip-box p {
    margin-bottom: 0;
}

.author-bio {
    display: flex;
    align-items: center;
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
}

.author-info h3 {
    margin-top: 0;
    text-align: left;
}

.author-info p {
    margin-bottom: 0;
    text-align: left;
}

.post-tags {
    margin: 2rem 0;
}

.post-tags a {
    display: inline-block;
    background-color: var(--background-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin: 0.25rem;
    font-size: 0.9rem;
}

.post-share {
    margin-bottom: 3rem;
    text-align: center;
}

.social-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--background-light);
    border-radius: 50%;
    margin: 0 0.25rem;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

.social-share:hover {
    background-color: var(--primary-color);
    color: white;
}

.related-posts {
    margin-top: 3rem;
}

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

.related-post {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform var(--transition-speed) ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post h4 {
    padding: 1rem;
    margin: 0;
    font-size: 1rem;
}

.related-post a {
    color: var(--text-color);
}

.related-post a:hover {
    color: var(--primary-color);
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 -2px 10px var(--shadow-color);
    z-index: 1000;
    padding: 1rem 0;
}

.cookie-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-content p {
    margin-bottom: 1rem;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.cookie-buttons a {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

/* Responsive Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    .blog-card {
        grid-template-columns: 300px 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .cookie-content p {
        margin-bottom: 0;
        margin-right: 1rem;
        text-align: left;
    }
}

@media (max-width: 767px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .author-info h3,
    .author-info p {
        text-align: center;
    }
}
