/* Global Styles */
:root {
    --primary-color: #3498db; /* Blue */
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50; /* Dark Blue */
    --accent-color: #e74c3c; /* Red */
    --accent-dark: #c0392b;
    --light-color: #ecf0f1; /* Light Gray */
    --dark-color: #2c3e50; /* Dark Blue */
    --text-color: #333333;
    --light-text: #ffffff;
    --border-color: #dddddd;
    --success-color: #2ecc71; /* Green */
    --warning-color: #f39c12; /* Orange */
    --info-color: #3498db; /* Blue */
    --danger-color: #e74c3c; /* Red */
    --body-bg: #f8f9fa;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover {
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--light-text);
}

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

.btn-secondary:hover {
    background-color: #1a2530;
    color: var(--light-text);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--gray-400);
}

.btn-tertiary:hover {
    background-color: var(--gray-200);
}

/* Header */
.site-header {
    background-color: var(--light-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo a {
    display: block;
    text-decoration: none;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
}

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

.main-nav .nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

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

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

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-image, 
.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

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

.service-card {
    background-color: var(--light-text);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

.article-card {
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.article-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

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

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

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--gray-100);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-card {
    display: none;
    padding: 2rem;
    background-color: var(--light-text);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.testimonial-card.active {
    display: block;
}

.testimonial-rating {
    display: flex;
    margin-bottom: 1rem;
}

.testimonial-rating svg {
    margin-right: 0.25rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    text-align: right;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.prev-testimonial,
.next-testimonial {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin: 0 1rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: var(--gray-300);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

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

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

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

.newsletter-content p {
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.form-group button {
    border-radius: 0 4px 4px 0;
}

.form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.form-check input {
    margin-right: 0.5rem;
}

.form-check label a {
    color: var(--light-text);
    text-decoration: underline;
}

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

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

.contact-info, 
.contact-map {
    flex: 1;
}

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

.info-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-text h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.social-links h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.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: var(--gray-200);
    transition: background-color 0.3s ease;
}

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

.social-icons a:hover svg path {
    fill: var(--light-text);
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
}

.footer-logo p {
    margin-top: 1rem;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.footer-links-column h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links-column ul {
    list-style: none;
}

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

.footer-links-column ul li a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-logo {
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-links-column {
        margin-bottom: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .main-nav {
        width: 100%;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

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

    .main-nav .nav-list li {
        margin: 0;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--gray-200);
    }

    .main-nav .nav-list a::after {
        display: none;
    }

    .services-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group input {
        border-radius: 4px;
        margin-bottom: 1rem;
    }

    .form-group button {
        border-radius: 4px;
    }
}

/* Article Page Specific Styles */
.article-header {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.article-header .container {
    max-width: 800px;
}

.article-header h1 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.article-meta .author {
    margin-right: 2rem;
    display: flex;
    align-items: center;
}

.article-meta .author-icon,
.article-meta .date-icon {
    margin-right: 0.5rem;
}

.article-content-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 4rem;
}

.article-content-full p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

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

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

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

.article-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.article-tags {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    background-color: var(--gray-200);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.875rem;
}

.article-share {
    margin-top: 2rem;
    display: flex;
    align-items: center;
}

.article-share span {
    margin-right: 1rem;
    font-weight: 600;
}

.share-icons {
    display: flex;
    gap: 0.5rem;
}

.share-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--gray-200);
    transition: background-color 0.3s ease;
}

.share-icons a:hover {
    background-color: var(--primary-color);
}

.share-icons a:hover svg path {
    fill: var(--light-text);
}

.article-navigation {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
}

.article-navigation .prev,
.article-navigation .next {
    max-width: 45%;
}

.navigation-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.article-navigation a {
    font-weight: 600;
    color: var(--primary-color);
}

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

.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
}

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

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

@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-meta .author {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .article-navigation .prev,
    .article-navigation .next {
        max-width: 100%;
    }
}

/* Thank You Page Styles */
.thank-you-page {
    text-align: center;
    padding: 5rem 0;
}

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

.thank-you-icon {
    margin-bottom: 2rem;
}

.thank-you-page h1 {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.thank-you-page p {
    margin-bottom: 2rem;
}

.return-home {
    margin-top: 2rem;
}

/* Legal Pages Styles */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 20px;
}

.legal-page h1 {
    margin-bottom: 2rem;
}

.legal-page h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.legal-page p, 
.legal-page ul, 
.legal-page ol {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.legal-page ul, 
.legal-page ol {
    padding-left: 2rem;
}

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

.legal-page .last-updated {
    margin-top: 3rem;
    font-style: italic;
    color: var(--gray-600);
}
