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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

a {
    text-decoration: none;
    color: #1e73be;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d4b8c;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.btn {
    display: inline-block;
    background-color: #1e73be;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0d4b8c;
    color: #fff;
}

section {
    padding: 60px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: #1e73be;
    margin-bottom: 5px;
}

.logo p {
    font-size: 1rem;
    color: #666;
}

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

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

nav ul li a {
    color: #333;
    font-weight: 600;
    padding: 10px 5px;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #1e73be;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 120px 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.service-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.service-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.5rem;
    color: #1e73be;
}

.service-card p {
    padding: 0 20px 20px;
    color: #666;
}

.services .btn {
    display: block;
    width: 200px;
    margin: 0 auto;
    text-align: center;
}

/* Blog Preview Section */
.blog-preview {
    background-color: #f0f5fa;
}

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

.blog-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.blog-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
    color: #1e73be;
}

.blog-card p {
    padding: 0 20px 20px;
    color: #666;
}

.blog-card .btn {
    margin: 0 20px 20px;
    font-size: 0.9rem;
    padding: 8px 16px;
}

.blog-preview .btn {
    display: block;
    width: 200px;
    margin: 0 auto;
    text-align: center;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-card:before {
    content: '\201C';
    font-size: 4rem;
    color: #1e73be;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 10px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-card h4 {
    color: #1e73be;
    font-weight: 600;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.cta h2 {
    color: #fff;
    margin-bottom: 20px;
}

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

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    color: #1e73be;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col p {
    color: #ccc;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #1e73be;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

/* Blog Page Styles */
.blog-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/blog-header.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.blog-header h2 {
    color: #fff;
}

.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-post {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.blog-post-header {
    padding: 30px 40px;
    border-bottom: 1px solid #eee;
}

.blog-post-header h1 {
    font-size: 2.2rem;
    color: #1e73be;
    margin-bottom: 15px;
}

.blog-post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.blog-post-content {
    padding: 40px;
}

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

.blog-post-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    text-align: left;
    color: #333;
}

.blog-post-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #1e73be;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 20px 0 20px 20px;
}

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

.blog-post-content img {
    max-width: 100%;
    margin: 30px 0;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.blog-post-content .tip-box {
    background-color: #f0f5fa;
    border-left: 4px solid #1e73be;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 5px 5px 0;
}

.blog-post-content .tip-box h4 {
    color: #1e73be;
    margin-bottom: 10px;
}

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

    nav ul {
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .service-grid,
    .blog-grid,
    .testimonial-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-header h1 {
        font-size: 1.8rem;
    }

    .blog-post-content {
        padding: 20px;
    }
}