/* Global Clean Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none; /* Globally remove bullets for a clean engineering look */
}

body {
    font-family: 'Inter', 'Exo 2', sans-serif;
    background-color: #ffffff; /* Clean White */
    color: #0f172a; /* Slate 900 for high contrast */
    line-height: 1.8;
    font-size: 1.15rem; /* Better readability */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

h1, h2 {
    font-family: 'Russo One', sans-serif;
}

h3, h4, h5, h6 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
}

/* Header & Navigation */
body > header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95); /* White semi-transparent */
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Light border */
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Fix logo sizing */
.logo-container img {
    height: 60px; /* Fixed height to prevent header expansion */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-family: 'Russo One', sans-serif;
}

.nav-links a {
    text-decoration: none;
    color: #475569; /* Slate 600 */
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #2a8ff6; /* Logo Blue */
}

/* Hero Section */
.hero {
    margin-top: 70px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #f1f5f9, #ffffff); /* Light Gradient */
    position: relative;
    overflow: hidden;
}

/* Subtle background effects */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(42, 143, 246, 0.08), transparent 70%); /* Logo Blue tint */
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 1000px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-logo img {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1)); /* Softer shadow */
}

.brand-motto {
    font-family: 'Russo One', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #2a8ff6; /* K-OPS Blue */
    font-weight: 700;
    opacity: 0.8;
    display: block;
}

.hero-motto {
    margin-bottom: 1.5rem;
}

.about-motto {
    margin-top: 1.5rem;
}

.footer-motto {
    font-size: 0.7rem;
    margin-top: -5px;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.hero h1 {
    font-size: 3.5rem;
    color: #0f172a; /* Slate 900 */
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #0f172a, #334155); /* Dark gradient text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Standard property */
}

.hero p {
    font-size: 1.35rem; /* Slightly larger */
    color: #475569;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #ff9703 0%, #e68a00 100%);
    color: white; /* Keep white text on button */
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 151, 3, 0.3);
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 151, 3, 0.5);
    background: linear-gradient(135deg, #ffaa33 0%, #ff9703 100%);
}

/* Services Section */
.services {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #0f172a; /* Slate 900 */
    font-weight: 700;
}

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

.service-card {
    padding: 2.5rem;
    background: #ffffff; /* White card */
    border: 1px solid #e2e8f0; /* Light border */
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0f172a; /* Slate 900 */
}

.service-card p {
    color: #475569;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 8rem 2rem;
    background: #f1f5f9; /* Slate 100 */
    position: relative;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a; /* Slate 900 */
}

.about-text p {
    color: #334155;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.9;
    text-align: justify;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a8ff6; /* Logo Blue */
    display: block;
}

.stat-label {
    color: #64748b; /* Slate 500 */
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.1));
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Light shadow */
    border: 1px solid #e2e8f0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #334155; /* Slate 700 */
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #f8fafc; /* Slate 50 */
    border: 1px solid #cbd5e1; /* Slate 300 */
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b; /* Slate 800 */
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a8ff6; /* Logo Blue */
    box-shadow: 0 0 0 3px rgba(42, 143, 246, 0.1);
    background: #ffffff;
}

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

.cf-turnstile {
    margin: 1.5rem auto;
    text-align: center;
    display: flex;
    justify-content: center;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ff9703 0%, #e68a00 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 151, 3, 0.5);
}

/* Footer */
footer {
    background: #f8fafc; /* Light Grey Footer */
    color: #64748b;
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
    opacity: 1; /* Full opacity for light mode */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    font-family: 'Russo One', sans-serif;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #2a8ff6; /* Logo Blue */
}

.copyright {
    color: #94a3b8;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Blog Page Styles */
.blog-hero {
    min-height: 50vh; /* Shorter hero for blog */
    background: radial-gradient(circle at bottom left, #f1f5f9, #ffffff);
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.blog-image {
    height: 200px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.blog-excerpt {
    color: #475569;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    color: #2a8ff6;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Article Page Styles */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    color: #64748b;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin: 4rem 0 2rem;
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin: 3rem 0 1.5rem;
    font-weight: 700;
}

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

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

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

.article-content pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-content code {
    background: #f1f5f9;
    color: #be185d; /* Pink formatting for inline code */
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

.back-link:hover {
    color: #2a8ff6;
}

/* Fix header logo link */
.logo-container a {
    text-decoration: none;
    display: flex; /* Ensure it behaves like a container */
    align-items: center;
}

/* Tech Stack Section */
.tech-stack {
    padding: 6rem 2rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: #475569; /* Slate 600 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    transform: translateY(-3px);
    border-color: #2a8ff6;
    color: #2a8ff6;
    box-shadow: 0 4px 12px rgba(42, 143, 246, 0.15);
}

/* Product Section */
.products {
    padding: 8rem 2rem;
    background: #f8fafc;
}

.product-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 0; /* Removed padding to let image bleed if needed, but we'll add it back to inner containers */
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    overflow: hidden; /* For the image/terminal side */
}

/* Mobile responsive fix moved here for card layout */
@media (max-width: 850px) {
    .product-card {
        flex-direction: column-reverse; /* Put image on top or bottom? usually top. Let's do column so content is first? User wants nice graphic. Let's keep normal order but vertical. */
        flex-direction: column; 
    }
}

.product-content {
    flex: 1;
    padding: 3rem;
    z-index: 2;
}

.product-visual {
    flex: 1;
    background: #1e293b; /* Dark bg for terminal feel */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Fancy Background Blob for Visual Area */
.product-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(42,143,246,0.1) 0%, rgba(0,0,0,0) 70%);
    animation: pulse 10s infinite;
}

.product-badge {
    background: #e0f2fe;
    color: #0284c7;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.product-card p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: justify;
}

.product-features {
    list-style: none;
    margin-bottom: 2.5rem;
    padding: 0;
}

.product-features li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start; /* Critical for alignment */
    gap: 1rem;
}

.feature-icon {
    font-size: 1.2rem;
    line-height: 1.4; /* Match text line height */
}

.feature-text strong {
    display: block;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.feature-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
}

/* Terminal Window Styles */
.terminal-window {
    width: 100%;
    max-width: 400px;
    background: #0f172a;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid #334155;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    z-index: 10;
}

.terminal-header {
    background: #1e293b;
    padding: 10px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #334155;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #10b981; }

.terminal-body {
    padding: 20px;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.command { color: #38bdf8; margin-bottom: 10px; }
.command::before { content: '$ '; color: #94a3b8; }

.log { color: #94a3b8; }
.success { color: #10b981; }
.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #94a3b8;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Industry Badges */
.industries {
    padding: 5rem 2rem;
    text-align: center;
    background: #ffffff;
}

.industry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    color: #334155;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.industry-icon {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .industry-grid {
        flex-direction: column;
        align-items: center;
    }
}
/* Impacts Section */
.impacts {
    padding: 8rem 2rem;
    background: #ffffff;
}

.impacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.impact-card {
    background: rgba(15, 23, 42, 0.03); /* Very light slate */
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.impact-card.blue {
    border-left: 4px solid var(--accent-blue);
}

.impact-card.orange {
    border-left: 4px solid var(--accent-orange);
}

.impact-stat {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.impact-card.blue .impact-stat {
    color: var(--accent-blue);
}

.impact-card.orange .impact-stat {
    color: var(--accent-orange);
}

.impact-card p {
    margin: 0;
    font-size: 1.15rem;
    color: #334155;
}

:root {
    --accent-blue: #2a8ff6;
    --accent-orange: #ff9703;
}

/* Case Studies Section */
.case-studies {
    padding: 8rem 2rem;
    background: #f1f5f9; /* Slate 100 to match About */
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-blue);
}

.case-tag {
    font-family: 'Russo One', sans-serif;
    font-size: 0.8rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.case-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0f172a;
    line-height: 1.2;
}

.case-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #475569;
    font-weight: 600;
}

.case-card p {
    color: #334155;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.case-results {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.case-results li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.case-results li::before {
    content: '⚡';
    font-size: 1rem;
}

@media (max-width: 600px) {
    .case-card {
        padding: 2rem;
    }
}

/* Mobile responsive fix for product content */
@media (max-width: 600px) {
    .product-content {
        padding: 2rem;
    }
}

/* Blog & Article Styles */
.blog-hero {
    min-height: 50vh; 
    background: radial-gradient(circle at bottom left, #f1f5f9, #ffffff);
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.blog-image {
    height: 200px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-title {
    font-size: 1.7rem;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-excerpt {
    color: #475569;
    margin-bottom: 2rem;
    flex: 1;
}

.read-more {
    color: #2a8ff6;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Article Styles */
.article-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.article-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-header h1 {
    font-size: 3rem;
    color: #0f172a;
}

.article-content {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #334155;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}
