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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Mobile-First Typography */
h1 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.875rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.btn-secondary:hover {
    background-color: #2563eb;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #374151;
    border-color: #d1d5db;
}

.btn-outline:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

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

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

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

.nav-link {
    padding: 0.75rem 0;
    color: #374151;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-link.active,
.nav-link:hover {
    color: #2563eb;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section - Mobile First */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-cta .btn {
    width: 100%;
    max-width: 280px;
}

/* Page Header */
.page-header {
    background-color: #f8fafc;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.page-header h1 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #64748b;
}

/* Ad Placeholders */
.ad-section {
    padding: 1.5rem 0;
}

.ad-placeholder {
    background-color: #f1f5f9;
    text-align: center;
    border-radius: 8px;
    color: #64748b;
    font-weight: 500;
    width: fit-content;
    margin: 0 auto;
}

/* Featured Posts - Mobile First */
.featured-posts {
    padding: 3rem 0;
    background-color: #f8fafc;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.posts-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background-color: #dbeafe;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.post-content h3 {
    margin-bottom: 0.75rem;
}

.post-content h3 a {
    color: #1e293b;
}

.post-content h3 a:hover {
    color: #2563eb;
}

.post-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.text-center {
    text-align: center;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
}

.features-grid {
    display: grid;
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature p {
    color: #64748b;
}

/* Blog Listing Styles */
.blog-listing {
    padding: 2rem 0;
}

.blog-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.blog-post-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-post-card .post-content {
    padding: 1.5rem;
}

.blog-post-card .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-post-card .post-category {
    background-color: #dbeafe;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-post-card .post-date {
    font-size: 0.875rem;
    color: #64748b;
}

.blog-post-card h2 {
    margin-bottom: 1rem;
}

.blog-post-card h2 a {
    color: #1e293b;
}

.blog-post-card h2 a:hover {
    color: #2563eb;
}

.blog-post-card .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.read-time {
    font-size: 0.875rem;
    color: #64748b;
}

.read-more {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.9375rem;
}

.read-more:hover {
    color: #1d4ed8;
}

/* Blog Post Styles (Individual Pages) */
.blog-post {
    padding: 2rem 0;
}

.blog-post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: #64748b;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.blog-post-content h2 {
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content h3 {
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.blog-post-content blockquote {
    border-left: 4px solid #2563eb;
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4b5563;
}

.blog-post-content .highlight {
    background-color: #fef3c7;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

/* Form Styles */
.form-container {
    padding: 2rem 0;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Footer Styles */
.footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 2.5rem 0 1rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: #cbd5e1;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #94a3b8;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
    }

    .nav-link {
        padding: 0;
        border-bottom: none;
    }

    .nav-toggle {
        display: none;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    .hero-cta .btn {
        width: auto;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-post-meta {
        flex-direction: row;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .blog-post {
        padding: 3rem 0;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        padding: 0 3rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card,
.blog-post-card,
.feature {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .btn,
    .ad-placeholder {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .blog-post-content {
        max-width: none;
    }
}

canvas.fullscreen-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}
