/* Base Styles */
:root {
    --primary-color: #2e8b57;
    --secondary-color: #3cb371;
    --accent-color: #f39c12;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --text-color: #444;
    --heading-color: #222;
    --link-color: #2e8b57;
    --link-hover-color: #3cb371;
    --border-color: #ddd;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

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

svg {
    vertical-align: middle;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.center-button {
    text-align: center;
    margin-top: 2rem;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 60px;
    padding: 10px 0;
}

.logo {
    display: inline-block;
}

.main-nav {
    float: right;
    display: flex;
    align-items: center;
    height: 80px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
}

.banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

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

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

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

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-stats {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat-item {
    flex: 1;
    min-width: 100px;
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

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

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.service-icon {
    margin-bottom: 1rem;
}

.service-icon img {
    height: 60px;
}

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

/* Latest Articles */
.latest-articles {
    padding: 5rem 0;
    background-color: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-bottom: 0.5rem;
}

.article-content h3 a {
    color: var(--heading-color);
}

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

.article-date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 auto;
    width: calc(33.33% - 1.34rem);
    scroll-snap-align: start;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    left: -10px;
}

.author-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.author-role {
    color: #777;
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: white;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    color: white;
}

.newsletter-form {
    margin-top: 2rem;
}

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

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    text-align: left;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container a {
    color: white;
    text-decoration: underline;
}

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

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 160px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #ccc;
}

.footer-column a:hover {
    color: white;
}

.social-media {
    margin-top: 2rem;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

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

.copyright {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Banner */
.page-banner {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.page-banner h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-social {
    margin-top: 3rem;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form input,
.contact-form textarea,
.newsletter-page-form input,
.newsletter-page-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 0.25rem;
}

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

.contact-form label,
.newsletter-page-form label {
    font-weight: 600;
}

/* Newsletter Page */
.newsletter-page-section {
    padding: 5rem 0;
}

.newsletter-page-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.newsletter-info {
    flex: 1;
    min-width: 300px;
}

.newsletter-benefits {
    margin: 2rem 0;
}

.newsletter-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-benefits svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.newsletter-promise {
    font-style: italic;
    color: #777;
}

.newsletter-form-container {
    flex: 1;
    min-width: 300px;
}

.select-info {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.25rem;
}

/* Blog Page */
.blog-articles {
    padding: 5rem 0;
}

.blog-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.blog-search input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    border-right: none;
    font-size: 1rem;
}

.blog-search button {
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-post {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-post .blog-image {
    flex: 0 0 300px;
    height: auto;
}

.blog-post .blog-content {
    flex: 1;
    padding: 2rem;
    min-width: 300px;
}

.blog-meta {
    margin-bottom: 1rem;
    color: #777;
    font-size: 0.9rem;
}

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

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.page-number,
.current-page,
.next-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.page-number,
.next-page {
    background-color: var(--light-color);
    color: var(--text-color);
}

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

.current-page {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.disabled:hover {
    background-color: var(--light-color);
    color: var(--text-color);
}

/* Newsletter CTA */
.newsletter-cta {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: white;
}

.newsletter-cta-content {
    text-align: center;
}

.newsletter-cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-cta-content p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Article Page */
.article-section {
    padding: 5rem 0;
}

.article-header {
    margin-bottom: 3rem;
}

.article-meta {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: #777;
    font-size: 0.9rem;
}

.back-to-blog {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    border-radius: 5px;
    transition: var(--transition);
}

.back-to-blog:hover {
    background-color: #e9e9e9;
}

.article-header h1 {
    margin-bottom: 2rem;
}

.article-header .article-image {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

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

.article-share {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-share h3 {
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.share-btn.facebook {
    background-color: #3b5998;
    color: white;
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background-color: #0077b5;
    color: white;
}

.share-btn.email {
    background-color: var(--light-color);
    color: var(--text-color);
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-articles h3 {
    margin-bottom: 2rem;
}

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

/* Thank You Page */
.thank-you-section {
    padding: 8rem 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.thank-you-icon svg {
    color: var(--primary-color);
    width: 80px;
    height: 80px;
}

.thank-you-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.thank-you-message {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.thank-you-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Legal Pages */
.legal-content {
    padding: 5rem 0;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
}

.legal-document h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.legal-document h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-document ul, 
.legal-document ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-document ul {
    list-style-type: disc;
}

.legal-document ol {
    list-style-type: decimal;
}

.legal-document li {
    margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .testimonial {
        width: calc(50% - 1rem);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .main-nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }
    
    .main-nav ul.active {
        display: flex;
    }
    
    .main-nav li {
        margin: 0;
        text-align: center;
    }
    
    .main-nav li a {
        display: block;
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .testimonial {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .article-header .article-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .blog-post {
        flex-direction: column;
    }
    
    .blog-post .blog-image {
        height: 200px;
        flex: none;
        width: 100%;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}