/* Reset & Base Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6b96c9;
    --accent-color: #e67e22;
    --text-color: #333333;
    --light-text: #666666;
    --background: #ffffff;
    --light-background: #f7f9fc;
    --border-color: #e1e1e1;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --max-width: 1200px;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

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

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

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

ul {
    list-style: none;
}

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

button, .btn-primary, .btn-secondary {
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

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

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

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

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1em;
}

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

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

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

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.2em;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    padding: 5px 0;
    font-weight: 500;
    position: relative;
}

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

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Banner Section */
.hero-banner {
    background-color: var(--light-background);
    padding: 80px 0;
    text-align: center;
}

.banner-content {
    max-width: 700px;
    margin: 0 auto;
}

.banner-content img {
    max-height: 200px;
    margin-bottom: 20px;
}

.banner-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.banner-content p {
    margin-bottom: 30px;
    font-size: 1.2em;
    color: var(--light-text);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--background);
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.about-text {
    max-width: 600px;
}

.about-text p {
    margin-bottom: 15px;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.service-card img {
    height: 60px;
    margin-bottom: 15px;
}

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

/* Tips Section */
.tips-section {
    padding: 80px 0;
    background-color: var(--background);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tip-card {
    padding: 25px;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.tip-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.tip-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tip-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* Blog Preview Section */
.blog-preview-section {
    padding: 80px 0;
    background-color: var(--light-background);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.blog-content p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.read-more {
    font-weight: 600;
    display: inline-block;
}

.blog-btn-container {
    text-align: center;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--background);
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial {
    background-color: var(--light-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 350px;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonial p {
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial h4 {
    color: var(--primary-color);
}

/* Subscription Form Section */
.subscription-section {
    padding: 80px 0;
    background-color: var(--light-background);
}

.subscription-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.subscription-form {
    background-color: var(--background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-checkbox {
    display: flex;
    align-items: start;
    margin-bottom: 20px;
}

.form-checkbox input {
    margin-right: 10px;
    margin-top: 3px;
}

.form-checkbox label {
    font-size: 0.9em;
}

.subscription-form .btn-primary {
    width: 100%;
    padding: 12px;
}

/* Contact Info Section */
.contact-info-section {
    padding: 50px 0;
    background-color: var(--background);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    min-width: 200px;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-background);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

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

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

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

.footer-logo img {
    height: 40px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.footer-links h4 {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: white;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--background);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 2em;
    }
    
    .section-header h2 {
        font-size: 1.8em;
    }
    
    .contact-info {
        flex-direction: column;
    }
}

/* Blog Page Styles */
.blog-header {
    background-color: var(--light-background);
    padding: 60px 0;
    text-align: center;
}

.blog-header h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.blog-container {
    padding: 60px 0;
}

.blog-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Article Page Styles */
.article-header {
    background-color: var(--light-background);
    padding: 60px 0;
}

.article-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.article-title h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    margin-bottom: 20px;
}

.article-meta span {
    margin: 0 10px;
}

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

.article-image {
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-text h2 {
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.article-text h3 {
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.article-text ul, .article-text ol {
    margin: 20px 0;
    padding-left: 20px;
}

.article-text li {
    margin-bottom: 10px;
}

.article-text blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background-color: var(--light-background);
    font-style: italic;
}

.article-cta {
    background-color: var(--light-background);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px 0;
    text-align: center;
}

.article-cta h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-cta p {
    margin-bottom: 20px;
}

.related-articles {
    padding: 60px 0;
    background-color: var(--light-background);
}

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

/* Thanks Page Styles */
.thanks-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.thanks-content {
    max-width: 600px;
}

.thanks-content img {
    max-height: 100px;
    margin-bottom: 30px;
}

.thanks-content h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.thanks-content p {
    margin-bottom: 30px;
    font-size: 1.2em;
}

/* Legal Pages Styles */
.legal-header {
    background-color: var(--light-background);
    padding: 60px 0;
    text-align: center;
}

.legal-header h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h2 {
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.legal-content h3 {
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.legal-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.legal-content ul, .legal-content ol {
    margin: 20px 0;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.article-image img {
    display: block;
    margin: 0 auto;
}