/* ===== REUSABLE COMPONENTS ===== */

/* Navigation Logo Link */
.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 0.75rem;
    transition: none !important;
    transform: none !important;
}

.nav-logo-link:hover {
    transform: none !important;
    transition: none !important;
}

.nav-logo-link:active {
    transform: none !important;
    transition: none !important;
}

.nav-logo-link h2 {
    color: #2563eb;
    font-size: 1.5rem;
    margin: 0;
    transition: none !important;
    transform: none !important;
}

/* Navigation Dropdown */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.1);
    min-width: 160px;
    display: none;  /* Hide completely by default to prevent FOUC */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 2px;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.active .dropdown-menu,
.dropdown-menu:hover {
    display: block;  /* Show the dropdown */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Create a hover bridge to prevent dropdown from disappearing */
.nav-item.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
    z-index: 999;
}

.dropdown-link {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px;
}

.dropdown-link:hover {
    background: #f0f9ff;
    color: #2563eb;
}

.dropdown-link:first-child {
    margin-top: 8px;
}

.dropdown-link:last-child {
    margin-bottom: 8px;
}

/* Mobile Navigation Styles */
/* Hide mobile secondary navigation by default on larger screens */
.mobile-secondary-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Inline mobile dropdowns (accordion inside the hamburger list) */
    .nav-item.dropdown .dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none; /* closed by default */
        padding: 0;
    }

    /* Disable hover-based dropdown opening on mobile */
    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown.active .dropdown-menu {
        display: none;
    }

    /* Open state controlled by JS */
    .nav-item.dropdown.mobile-open .dropdown-menu {
        display: block;
    }

    /* Indented submenu links */
    .nav-item.dropdown .dropdown-link {
        display: block;
        padding: 14px 20px 14px 44px;
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid #eef2f7;
        background: rgba(37, 99, 235, 0.04);
    }

    .nav-item.dropdown .dropdown-link:hover {
        background: rgba(37, 99, 235, 0.08);
    }

    .nav-item.dropdown .dropdown-link:last-child {
        border-bottom: 1px solid #e5e7eb;
    }

    /* Caret indicator on the dropdown "category" row */
    html.js-enabled .nav-item.dropdown > .nav-link {
        padding-right: 44px;
    }

    html.js-enabled .nav-item.dropdown > .nav-link::before {
        content: '▾';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 0.9rem;
        transition: transform 0.2s ease;
    }

    html.js-enabled .nav-item.dropdown.mobile-open > .nav-link::before {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Mobile Secondary Navigation */
    .mobile-secondary-nav {
        display: none; /* no longer used: dropdowns expand inline in the main menu */
        position: fixed;
        left: -100%;
        top: 80px;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        transition: 0.3s;
        z-index: 999;
        padding: 0;
    }
    
    .mobile-secondary-nav.active {
        left: 0;
    }
    
    /* Back Button */
    .mobile-nav-back {
        display: flex;
        align-items: center;
        padding: 16px 20px;
        background: #f8fafc;
        border-bottom: 2px solid #e5e7eb;
        color: #2563eb;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s ease;
    }
    
    .mobile-nav-back:hover {
        background: #e5e7eb;
    }
    
    .mobile-nav-back::before {
        content: '←';
        margin-right: 8px;
        font-size: 1.2rem;
    }
    
    /* Mobile Secondary Menu Items */
    .mobile-secondary-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-secondary-menu .nav-link {
        display: block;
        padding: 16px 20px;
        color: #374151;
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid #e5e7eb;
        transition: all 0.3s ease;
    }
    
    .mobile-secondary-menu .nav-link:first-child {
        background: #f0f9ff;
        color: #2563eb;
        font-weight: 600;
    }
    
    .mobile-secondary-menu .nav-link:hover {
        background: #f0f9ff;
        color: #2563eb;
    }
    
    .mobile-secondary-menu .nav-link:last-child {
        border-bottom: none;
    }
}

/* Card Components */
.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.card-title {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Glass Effect Components */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

.glass-strong {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Badge Components */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.badge-secondary {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Alert Components */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(37, 99, 235, 0.1);
    border-left-color: #2563eb;
    color: #1e40af;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
    color: #065f46;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
    color: #92400e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #991b1b;
}

/* Form Components */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

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

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

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

/* Table Components */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.table tbody tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Reference Table Specific */
.reference-table-container {
    background: white;
    border-radius: 15px;
    overflow-x: auto; /* allow horizontal scroll on narrow screens */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    overscroll-behavior-x: contain; /* prevent scroll chaining to the page */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    margin-top: 2rem;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 720px; /* ensure columns remain readable and enable overflow */
}

/* Custom horizontal scrollbar indicator below the references table */
.reference-scrollbar {
    position: relative;
    height: 10px;
    margin: 8px 0 0 0;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    touch-action: pan-x;
}

/* Fixed variant: sticks to viewport bottom and matches container width/left */
.reference-scrollbar.fixed {
    position: fixed;
    left: 0; /* set dynamically via JS */
    bottom: 12px; /* can be increased if sticky CTA is visible */
    margin: 0;
    z-index: 1050; /* above content, below sticky CTA (1100) */
}

.reference-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transform: translateX(0);
    transition: background 0.2s ease;
}

.reference-scrollbar-thumb:active {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.reference-table thead {
    background: linear-gradient(135deg, #1e40af, #2563eb);
}

.reference-table thead th {
    background: transparent;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1d4ed8;
}

.reference-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
}

.reference-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.03);
}

.reference-table tbody tr:last-child td {
    border-bottom: none;
}

/* Category header rows with merged cells */
.reference-table .category-header {
    background: transparent;
    font-weight: 600;
    color: #374151;
}

.reference-table .category-header td:first-child {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    background: transparent;
    border-right: 1px solid #e5e7eb;
}

.reference-table .category-header:hover {
    background: rgba(37, 99, 235, 0.03);
}

/* Pricing Table Specific */
.pricing-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.pricing-table th {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.pricing-table td {
    padding: 1.5rem 1rem;
    text-align: center;
    vertical-align: middle;
}

.pricing-table .service-name {
    text-align: left;
    font-weight: 600;
    color: #1e40af;
}

.pricing-table .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}

.pricing-table .unit {
    font-size: 0.875rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

/* Loading Components */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    border-top-color: #2563eb;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Components */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    color: #1e40af;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Utility Classes */
.text-primary { color: #2563eb; }
.text-secondary { 
    color: #6b7280; 
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Long text readability improvements */
.intro-text p,
.detail-item p,
.service-category p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    text-align: justify;
    hyphens: auto;
    word-spacing: 0.05em;
}

/* Better spacing for long paragraphs */
.text-secondary + .text-secondary {
    margin-top: 1rem;
}

/* Improved readability for service descriptions */
.service-category p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4b5563;
}

/* Better contrast for important text */
.text-secondary strong {
    color: #374151;
    font-weight: 600;
}

/* Enhanced text styling for all long text content */
.intro-text p,
.services-detailed p,
.service-category p,
.company-details p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    text-align: justify;
    hyphens: auto;
    word-spacing: 0.05em;
    font-size: 1.05rem;
    color: #374151;
}

.intro-text p + p,
.services-detailed p + p,
.service-category p + p,
.company-details p + p {
    margin-top: 1rem;
}

.intro-text h3,
.services-detailed h3,
.service-category h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ===== SITEMAP STYLES ===== */
.sitemap-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.sitemap-content {
    max-width: 1000px;
    margin: 0 auto;
}

.sitemap-category {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sitemap-category h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.sitemap-links li {
    margin: 0;
}

.sitemap-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: #f8fafc;
}

.sitemap-links a:hover {
    background: #e0f2fe;
    border-left-color: #2563eb;
    color: #2563eb;
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sitemap-links {
        grid-template-columns: 1fr;
    }
    
    .sitemap-category {
        padding: 1.5rem;
    }
    
    .sitemap-category h2 {
        font-size: 1.25rem;
    }
}

/* ===== BLOG STYLES ===== */
.blog-articles {
    padding: 4rem 0;
    background: white;
}

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

.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

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

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.blog-date::after {
    content: '•';
    margin-left: 1rem;
    color: #d1d5db;
}

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

.blog-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #2563eb;
}

.blog-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.blog-load-more {
    text-align: center;
}

/* Newsletter Section */
.newsletter {
    padding: 3rem 0;
}

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

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.newsletter-content p {
    color: #4b5563;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #2563eb;
}

/* Blog Homepage Section */
.blog-preview {
    padding: 4rem 0;
    background: #ffffff;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-preview-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.blog-preview-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-preview-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.blog-preview-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.blog-preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.blog-preview-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-preview-title a:hover {
    color: #2563eb;
}

.blog-preview-excerpt {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.blog-preview-read-more {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Blog Article Styles */
.blog-article {
    padding: 4rem 0;
    background: white;
}

.blog-header {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.blog-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.blog-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-category-tag {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.blog-article h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.blog-article .blog-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content em {
    color: #6b7280;
    font-style: italic;
}

/* Blog Article - Enhanced Layout Blocks */
.blog-lead {
    font-size: 1.25rem;
    line-height: 1.75;
    color: #374151;
    margin: 1.25rem 0 2rem 0;
}

.blog-content h2 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin: 2.25rem 0 0.75rem 0;
    color: #1e40af;
}

.blog-content h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 1.5rem 0 0.5rem 0;
    color: #1e40af;
}

.blog-content ul,
.blog-content ol {
    margin: 0 0 1.5rem 1.25rem;
    color: #374151;
}

.blog-content li {
    margin: 0.5rem 0;
}

.blog-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.blog-content a:hover {
    color: #1d4ed8;
    text-decoration-color: rgba(29, 78, 216, 0.6);
}

.blog-toc {
    background: #f8fafc;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    margin: 0 0 2rem 0;
}

.blog-toc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.blog-toc ul {
    margin: 0 0 0.75rem 1.25rem;
}

.blog-callout {
    background: #f0f9ff;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-left: 6px solid #2563eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 2rem 0;
}

.blog-callout h3 {
    margin-top: 0;
}

.blog-divider {
    border: none;
    height: 1px;
    background: rgba(37, 99, 235, 0.12);
    margin: 2rem 0 1.5rem 0;
}

.blog-footer-meta {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .blog-article h1 {
        font-size: 2rem;
    }
    
    .blog-article .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-lead {
        font-size: 1.15rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }
}
.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-error { color: #ef4444; }

.bg-primary { background: #2563eb; }
.bg-secondary { background: #6b7280; }
.bg-light { background: #f8fafc; }

.rounded { border-radius: 10px; }
.rounded-lg { border-radius: 15px; }
.rounded-xl { border-radius: 20px; }

.shadow { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }

.border { border: 1px solid #e5e7eb; }
.border-primary { border: 1px solid #2563eb; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.m-1 { margin: 0.5rem; }
.m-2 { margin: 1rem; }
.m-3 { margin: 1.5rem; }
.m-4 { margin: 2rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* ===== FAQ COMPONENT ===== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #1e40af;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: inherit;
    font-weight: 600;
    line-height: 1.4;
    padding-right: 1.5rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: #2563eb;
    transition: transform 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-question[aria-expanded="true"] {
    border-bottom: 1px solid #e5e7eb;
    background-color: #f0f9ff;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: #ffffff;
}

.faq-answer p {
    margin: 0;
    padding: 1.25rem 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px; /* Arbitrary large height */
    transition: max-height 0.5s ease-in;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-question h4 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem;
    }
    
    .faq-answer p {
        padding: 1rem 0;
        font-size: 0.95rem;
    }
}

.links-content {
    max-width: 1200px;
    margin: 0 auto;
}

.link-category {
    margin-bottom: 3rem;
}

.link-category h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.link-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
}

.link-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.link-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .link-card {
        padding: 1rem;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .link-info h3 {
        font-size: 1rem;
    }
    
    .link-info p {
        font-size: 0.85rem;
    }
}
