/* Modern Design System */
:root {
    /* Color System */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Poppins', var(--font-sans);
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    /* Navigation Styles */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-color: #4f46e5;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --transition-base: all 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.6;
}

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

/* Modern Header */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.custom-navbar-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-section {
    flex: 1 1 0;
    display: flex;
    align-items: center;
}

.navbar-brand-section {
    justify-content: flex-start;
}

.nav-links-section {
    justify-content: center;
}

.navbar-search-section {
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gray-900);
    text-decoration: none;
    margin-right: var(--space-8);
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-color, #333);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color, #007bff);
}

/* Active/Current Page Styles */
.nav-link[aria-current="page"] {
    color: var(--primary-color, #007bff);
    font-weight: 600;
}

.nav-link[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color, #007bff);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

/* Hover effect for non-active links */
.nav-link:not([aria-current="page"]):hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color, #007bff);
    transform: scaleX(0.5);
    transition: transform 0.3s ease;
}

/* Focus styles for accessibility */
.nav-link:focus {
    outline: 2px solid var(--primary-color, #007bff);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Search Button */
.btn-search {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.1rem;
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-search:hover {
    color: var(--primary);
}

/* Search Modal */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    color: var(--gray-400);
    font-size: 1.1rem;
}

#searchInput {
    padding-left: calc(var(--space-4) * 2 + 1rem);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    height: 3rem;
}

#searchInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modal-body {
    padding: var(--space-4);
    max-height: 70vh;
    overflow-y: auto;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.search-result-item {
    padding: var(--space-4);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.search-result-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.search-result-item h5 {
    margin-bottom: var(--space-2);
}

.search-result-item h5 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-result-item h5 a:hover {
    color: var(--primary);
}

.search-result-item .small {
    color: var(--gray-500);
}

.search-result-item p {
    color: var(--gray-600);
    margin-bottom: 0;
}

mark {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 0.1em 0.2em;
    border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--space-16) * 2);
    padding-bottom: var(--space-16);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    margin-top: 72px;
    /* Height of navbar */
}

.hero-section .container {
    max-width: 800px;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;

    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-4);
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-section .terms-title,
.hero-section .privacy-title,
.hero-section .lead {
    color: #fff !important;
}

/* Privacy and Terms Content Styles */
.privacy-content,
.terms-content,
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.privacy-header,
.terms-header {
    text-align: center;
    margin-bottom: 3rem;
}

.privacy-title,
.terms-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.privacy-section,
.terms-section {
    margin-bottom: 3rem;
}

.privacy-section h2,
.terms-section h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.privacy-section p,
.terms-section p {
    font-family: var(--font-sans);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.privacy-section ul,
.terms-section ul {
    margin-bottom: 1.5rem;
}

.privacy-section li,
.terms-section li {
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--white);
    font-style: italic;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {

    .privacy-title,
    .terms-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 5rem 0 2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Recent Blogs Section */
.recent-blogs {
    padding: var(--space-16) 0;
    background-color: var(--gray-50);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-8);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: var(--space-4) auto 0;
    border-radius: var(--radius-full);
}

/* Blog Grid Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px 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 8px 12px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

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

.blog-category {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-read-time {
    color: #6c757d;
    font-size: 0.875rem;
}

.blog-card-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #0d6efd;
}

.blog-card-description {
    color: #6c757d;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Modern Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-4);
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: var(--space-6);
}

.footer-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    padding: var(--space-2) 0;
    display: block;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.social-link {
    color: var(--gray-400);
    font-size: 1.5rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    text-align: center;
    color: var(--gray-500);
}

/* Footer Blog Section */
.footer-blogs {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.footer-blog-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    min-width: 0;
}

.footer-blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px) scale(1.03);
    background: rgba(255, 255, 255, 0.13);
}

.footer-blog-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    display: block;
    margin-right: var(--space-4);
}

.footer-blog-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.footer-blog-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.footer-blog-meta {
    color: var(--gray-400);
    font-size: 0.85rem;
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

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

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

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

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

.btn-accent {
    background-color: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
}

.btn-accent:hover {
    background-color: #fff;
    color: var(--accent);
    border: 2px solid var(--accent);
}

/* Responsive Design */
@media (max-width: 992px) {
    .custom-navbar-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-section {
        justify-content: center !important;
        margin-bottom: var(--space-2);
    }

    .nav-links {
        justify-content: center;
        width: 100%;
        gap: var(--space-2);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .footer-grid {
        gap: var(--space-6);
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .footer-blog-card {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-3);
    }

    .footer-blog-image {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: var(--space-3);
    }

    .footer-blog-content {
        padding-top: 0;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .footer-blogs {
        grid-template-columns: 1fr;
    }

    .footer-blog-image {
        height: 100px;
    }

    .blog-card-content {
        padding: 1.25rem;
    }

    .blog-card-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .footer-blog-card {
        flex-direction: column;
        padding: var(--space-4);
    }

    .footer-blog-image {
        width: 100%;
        height: 160px;
    }

    .footer-blog-content {
        padding-top: var(--space-3);
    }

    .hero-actions {
        flex-direction: column;
    }

    .blog-image {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .footer-blog-card {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-3);
    }

    .footer-blog-image {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: var(--space-3);
    }

    .footer-blog-content {
        padding-top: 0;
    }
}

/* Search States */
.search-state {
    text-align: center;
    padding: var(--space-8);
    color: var(--gray-600);
}

.search-state i {
    margin-bottom: var(--space-4);
    color: var(--gray-400);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 1001;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray-900);
    position: relative;
    transition: background-color 0.3s;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--gray-900);
    transition: transform 0.3s;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.mobile-menu-toggle.active .menu-icon {
    background-color: transparent;
}

.mobile-menu-toggle.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1002;
    background-color: transparent;
}

.scroll-progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0;
    transition: width 0.1s ease;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--gray-100);
    padding: var(--space-16) 0;
    margin-top: var(--space-16);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-description {
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

.form-group {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    display: none;
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: var(--space-2);
}

.form-control.is-invalid+.invalid-feedback {
    display: block;
}

.newsletter-privacy {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.newsletter-privacy a {
    color: var(--primary);
    text-decoration: none;
}

.newsletter-privacy a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: white;
        padding: var(--space-4);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: center;
        z-index: 1000;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--space-3) 0;
        border-bottom: 1px solid var(--gray-200);
    }

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

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

    .newsletter-form .btn {
        width: 100%;
    }
}

/* Notification System */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1003;
    box-shadow: var(--shadow-lg);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background-color: var(--success);
}

.notification.error {
    background-color: var(--danger);
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --text-color: #e2e8f0;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --code-bg: #2d2d2d;
    --code-color: #e2e8f0;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .navbar {
    background-color: rgba(26, 26, 26, 0.8);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .card,
[data-theme="dark"] .modal-content {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Theme Toggle Button */
.btn-icon {
    background: none;
    border: none;
    color: var(--text-color);
    padding: var(--space-2);
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-icon:hover {
    color: var(--primary);
}

/* Blog Post Styles */
.blog-post {
    margin-top: 90px;
    /* Prevent overlap with fixed navbar */
    background-color: var(--background-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin: 2rem auto;
    max-width: 1200px;
    padding: 2rem;
}

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

.category-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.blog-post-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease-out;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-divider {
    height: 2px;
    background-color: var(--border-color);
    margin: 1rem 0;
}

/* Cards and Grids */
.content-card {
    background-color: var(--background-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.content-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-grid,
.capabilities-grid,
.benefits-grid,
.challenges-grid,
.tools-grid,
.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Feature Cards */
.feature-card,
.capability-card,
.benefit-card,
.challenge-card,
.tool-card,
.future-card {
    background-color: var(--background-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.feature-card:hover,
.capability-card:hover,
.benefit-card:hover,
.challenge-card:hover,
.tool-card:hover,
.future-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon,
.capability-icon,
.benefit-icon,
.challenge-icon,
.future-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Info Boxes */
.info-box,
.example-box,
.quote-box {
    background-color: var(--background-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.info-box i,
.example-box i,
.quote-box i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Tables */
.table-of-contents {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 3rem;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 0.5rem;
}

.author-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-light);
    transition: var(--transition-base);
}

.social-link:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-to-main:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .blog-post {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .feature-grid,
    .capabilities-grid,
    .benefits-grid,
    .challenges-grid,
    .tools-grid,
    .future-grid {
        display: block;
    }

    .feature-card,
    .capability-card,
    .benefit-card,
    .challenge-card,
    .tool-card,
    .future-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Featured Post Layout Fix */
.featured-post {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.featured-post .row {
    width: 100%;
    margin: 0;
}

.featured-post .col-lg-6 {
    padding: 0;
}

.featured-post img.w-100 {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 340px;
    display: block;
}

.featured-content {
    padding: 2rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.featured-content .rounded-circle {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 2px solid #eee;
}

@media (max-width: 991px) {
    .featured-post {
        flex-direction: column;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .featured-post img.w-100 {
        min-height: 180px;
        max-height: 220px;
    }
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
}

.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #495057;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0d6efd;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

/* Loading and Error States */
.loading-state,
.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
}

.error-state i {
    color: #dc3545;
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Search and Filter Section */
.search-filter-section {
    background-color: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.search-box .input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.search-box .input-group-text {
    border: 1px solid var(--gray-200);
    border-right: none;
    padding: 0.75rem 1rem;
}

.search-box .form-control {
    border: 1px solid var(--gray-200);
    border-left: none;
    padding: 0.75rem 1rem;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: var(--gray-200);
}

.category-filter .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.category-filter .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

/* No Results State */
#noResults {
    padding: 4rem 0;
}

#noResults i {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

#noResults h3 {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-filter-section {
        padding: 1rem;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

.blog-toc {
    display: none;
    /* Hide table of contents */
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.blog-meta i {
    margin-right: 0.25rem;
}

/* Author avatar size control */
.author-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    object-position: center;
}

.social-share {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    justify-content: center;
}

.social-share .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.related-articles {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.related-articles h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.related-articles h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #0d6efd;
    border-radius: 2px;
}

.related-articles .card {
    border: none;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.related-articles .card-body {
    padding: 1.5rem;
}

.related-articles .card-title {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.related-articles .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.related-articles .btn-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.related-articles .btn-link:hover {
    color: #0a58ca;
}

.related-articles .btn-link i {
    transition: transform 0.2s ease;
}

.related-articles .btn-link:hover i {
    transform: translateX(3px);
}

.blog-author-bio {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-author-bio h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.blog-author-bio h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #0d6efd;
    border-radius: 2px;
}

.blog-author-bio .author-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.blog-author-bio .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-author-bio .author-details h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.blog-author-bio .author-details .author-title {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.blog-author-bio .author-details p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.blog-author-bio .author-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.blog-author-bio .author-social a {
    color: #6c757d;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.blog-author-bio .author-social a:hover {
    color: #0d6efd;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: #0d6efd;
    width: 0;
    transition: width 0.2s;
}

/* Add padding between menu and blog content */
.blog-post {
    padding-top: 4rem !important;
}

/* New styles */
.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.key-takeaways {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.key-takeaways h3 {
    color: #0d6efd;
    margin-bottom: 1rem;
}

.key-takeaways ul {
    margin-bottom: 0;
}

.share-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.share-section .social-share {
    margin-top: 1rem;
}

.share-section .btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.comments-section {
    margin: 3rem 0;
}

.comment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.resources-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.resource-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card i {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.blog-content h2 {
    color: #2c3e50;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.blog-content h3 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    line-height: 1.8;
    color: #2c3e50;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Call to Action styles */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h3 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cta-section .btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-section .btn-primary {
    background: white;
    color: #0d6efd;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: white;
    color: #0a58ca;
}

.cta-section .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.cta-signature {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cta-signature img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.signature-text {
    text-align: left;
}

.cta-signature .signature-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.cta-signature .signature-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.cta-feature i {
    font-size: 1.2rem;
}

/* Category Cards */
.category-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.category-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--primary-color);
}

.category-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-card .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-card .btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tag:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Category Section Spacing */
.categories-section {
    padding: 4rem 0;
}

/* Hero Section for Categories */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    color: #ffffff;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-card {
        padding: 1.5rem;
    }

    .category-icon {
        width: 50px;
        height: 50px;
    }

    .category-card h3 {
        font-size: 1.3rem;
    }

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

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--gray-800);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}