/* Blog Template - Modern Design 2025 */
/* Font styles */
/* Minimal Font Pair: Work Sans + IBM Plex Sans */
/* Clean, minimal fonts with excellent readability */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* Font variables for minimal theme */
:root {
    --heading-font: 'Work Sans', sans-serif;
    --body-font: 'IBM Plex Sans', sans-serif;
    --font-family: var(--body-font);
}

/* Apply fonts to elements */
body {
    font-family: var(--body-font);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

.btn {
    font-family: var(--body-font);
    font-weight: 500;
    letter-spacing: 0.025em;
    border-radius: var(--radius-sm);
}

.btn-primary {
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.post-title {
    font-family: var(--heading-font);
    font-weight: 600;
}

.section-title {
    font-family: var(--heading-font);
    font-weight: 700;
}

.logo h1 {
    font-family: var(--heading-font);
    font-weight: 700;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--heading-font);
    font-weight: 600;
}

.post-meta {
    font-family: var(--body-font);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.post-category {
    font-family: var(--body-font);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.newsletter-content h2 {
    font-family: var(--heading-font);
    font-weight: 600;
}

.hero-title {
    font-family: var(--heading-font);
    font-weight: 700;
}

.post-excerpt {
    font-family: var(--body-font);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.005em;
}

.form-group input,
.form-group textarea {
    font-family: var(--body-font);
    letter-spacing: 0.01em;
}


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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-color: #111827;
    --text-light: #6b7280;
    --background-color: #ffffff;
    --background-light: #f8fafc;
    --border-color: #e5e7eb;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--background-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

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

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

/* Header */
.header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

.logo a {
    color: var(--text-color);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.15s ease-in-out;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: all 0.15s ease-in-out;
}

/* Sections */
.hero {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-color) 100%);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

.page-header {
    background-color: var(--background-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.featured-section {
    padding: var(--spacing-2xl) 0;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.featured-post .post-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.featured-post .post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.posts-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--background-light);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-color);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.post-card {
    background-color: var(--background-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transition: all 0.25s ease-in-out;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

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

.post-content {
    padding: var(--spacing-md);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.post-category {
    background-color: var(--background-light);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.post-date {
    color: var(--text-light);
}

.post-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

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

.load-more-section {
    text-align: center;
    padding-top: var(--spacing-lg);
}

.newsletter-section {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-size: 1.125rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: var(--spacing-sm);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.about-content {
    padding: var(--spacing-2xl) 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-2xl);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.categories-section {
    padding: var(--spacing-2xl) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.category-card {
    background-color: var(--background-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transition: all 0.25s ease-in-out;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

.category-content {
    padding: var(--spacing-md);
}

.category-meta {
    margin-bottom: var(--spacing-md);
}

.post-count {
    color: var(--text-light);
    font-size: 0.875rem;
}

.contact-section {
    padding: var(--spacing-2xl) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.contact-methods {
    margin: var(--spacing-xl) 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-form-wrapper {
    background-color: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s ease-in-out;
}

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

.privacy-content {
    padding: var(--spacing-2xl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: var(--spacing-xl);
}

.privacy-section h2 {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.footer {
    background-color: #111827;
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-color);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
        border-top: 1px solid var(--border-color);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .featured-post {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

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

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}



/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-content a {
    color: #4CAF50;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions button {
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-accept {
    background: #4CAF50;
    color: white;
}

.btn-accept:hover {
    background: #45a049;
}

.btn-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   AUTO-FIX: Color Contrast for Dark Backgrounds
   ============================================ */

/* Ensure text is visible on any dark background */
.bg-gray-800,
.bg-gray-900, 
.bg-dark,
[class*="bg-gray-8"],
[class*="bg-gray-9"],
[style*="background: #1f2937"],
[style*="background-color: #111827"],
[style*="background: #374151"],
[style*="background-color: #374151"] {
    color: #f9fafb !important;
}

/* All child elements inherit the light color */
.bg-gray-800 *,
.bg-gray-900 *,
.bg-dark *,
[class*="bg-gray-8"] *,
[class*="bg-gray-9"] *,
[style*="background: #1f2937"] *,
[style*="background-color: #111827"] *,
[style*="background: #374151"] *,
[style*="background-color: #374151"] * {
    color: inherit;
}

/* Headers on dark backgrounds should be white */
.bg-gray-800 h1, .bg-gray-800 h2, .bg-gray-800 h3, .bg-gray-800 h4,
.bg-gray-900 h1, .bg-gray-900 h2, .bg-gray-900 h3, .bg-gray-900 h4,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
[class*="bg-gray-8"] h1, [class*="bg-gray-8"] h2, [class*="bg-gray-8"] h3,
[class*="bg-gray-9"] h1, [class*="bg-gray-9"] h2, [class*="bg-gray-9"] h3 {
    color: #ffffff !important;
}

/* Links on dark backgrounds */
.bg-gray-800 a, .bg-gray-900 a, .bg-dark a {
    color: #60a5fa !important;
}

.bg-gray-800 a:hover, .bg-gray-900 a:hover, .bg-dark a:hover {
    color: #93c5fd !important;
}

/* Ensure icons/SVGs are visible */
.bg-gray-800 svg, .bg-gray-900 svg, .bg-dark svg {
    fill: currentColor;
    stroke: currentColor;
}


/* Theme styles */
/* Professional Theme for Blog Template */
/* Corporate, trustworthy design with neutral colors */

:root {
    --primary-color: #111827;
    --primary-dark: #111827;
    --secondary-color: #6b7280;
    --accent-color: #059669;
    --text-color: #111827;
    --text-light: #4b5563;
    --background-color: #ffffff;
    --background-light: #f9fafb;
    --border-color: #d1d5db;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Professional theme specific styles */
body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--primary-color);
}

.btn {
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--background-light);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.post-card {
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    border-radius: var(--radius-md);
    background-color: var(--background-color);
}

.post-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border-color: var(--primary-color);
}

.category-card {
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    border-radius: var(--radius-md);
    background-color: var(--background-color);
}

.category-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border-color: var(--primary-color);
}

.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-header {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.posts-section {
    background-color: var(--background-color);
}

.featured-section {
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

..newsletter-section {
    background-color: var(--primary-color);
    color: white;
}

.newsletter-content h2,
.newsletter-content p {
    color: white;
}

..footer {
    background-color: var(--primary-color);
    color: white;
}

.footer-section h3,
.footer-section h4,
.footer-section p,
.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Professional spacing and typography */
.container {
    max-width: 1100px;
}

.section-title {
    font-weight: 600;
    color: var(--primary-color);
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.post-category {
    background-color: var(--background-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}
