/* Blog Styles */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.blog-article {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Article Header */
.article-header {
    padding: 40px 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

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

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #6c757d;
    font-size: 14px;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Article Body */
.article-body {
    padding: 40px;
}

.article-section {
    margin-bottom: 40px;
}

.article-section:last-child {
    margin-bottom: 0;
}

.article-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.article-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #343a40;
    margin: 25px 0 15px 0;
}

.article-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin: 20px 0 10px 0;
}

.article-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin: 0 0 15px 0;
}

.article-section ul, .article-section ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-section li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 8px;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.comparison-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.comparison-item h4 {
    color: #007bff;
    margin-top: 0;
}

/* FAQ Section */
.faq-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.faq-item h3 {
    color: #007bff;
    margin-top: 0;
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px -40px -40px -40px;
}

.cta-section h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: #28a745;
    color: white;
}

.cta-button.primary:hover {
    background: #218838;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.cta-button.secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Article Footer */
.article-footer {
    padding: 40px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.article-tags {
    margin-bottom: 30px;
}

.tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin: 0 8px 8px 0;
}

.related-articles h3 {
    color: #212529;
    margin-bottom: 15px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 10px;
}

.related-articles a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.related-articles a:hover {
    text-decoration: underline;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.nav-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #007bff;
}

.nav-link.active {
    background: #007bff;
    color: white;
}

.logo-link {
    color: inherit;
    text-decoration: none;
}

/* Language Toggle in Blog */
.language-toggle .lang-btn {
    background: none;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-toggle .lang-btn:hover {
    background: #f8f9fa;
}

.language-toggle .lang-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Ensure home page header uses same styling */
.app-header .header-nav {
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.app-header .nav-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.app-header .nav-link:hover {
    background: #f8f9fa;
    color: #007bff;
}

.app-header .nav-link.active {
    background: #007bff;
    color: white;
}

.app-header .logo-link {
    color: inherit;
    text-decoration: none;
}

/* Override default header styles for consistency */
.app-header {
    background: white;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-header .header-logo {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

.app-header .header-logo:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-content {
        padding: 10px;
    }
    
    .article-header,
    .article-body,
    .article-footer {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .header-nav {
        margin-right: 10px;
        gap: 10px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-section h2 {
        font-size: 1.5rem;
    }
    
    .article-section h3 {
        font-size: 1.3rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Blog Index Styles */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 20px 0;
}

.blog-description {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

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

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

.article-content {
    padding: 30px;
}

.article-content h2 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-content h2 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h2 a:hover {
    color: #007bff;
}

.article-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags .tag {
    font-size: 11px;
    padding: 4px 10px;
}

.blog-cta {
    text-align: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 12px;
    margin: 0 -20px;
}

.blog-cta h2 {
    color: white;
    font-size: 2rem;
    margin: 0 0 15px 0;
    border-bottom: none;
}

.blog-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.blog-cta .cta-button {
    font-size: 1.2rem;
    padding: 18px 36px;
}

/* Responsive Blog Index */
@media (max-width: 768px) {
    .blog-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .blog-cta {
        padding: 40px 20px;
        margin: 0 -10px;
    }
    
    .blog-cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-description {
        font-size: 1.1rem;
    }
    
    .article-content h2 {
        font-size: 1.3rem;
    }
    
    .blog-cta h2 {
        font-size: 1.6rem;
    }
}

/* Trust Pages Styles */
.about-content,
.methodology-content,
.data-sources-content,
.contact-content,
.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 20px 0;
}

.page-header .lead {
    font-size: 1.3rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.last-updated {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 15px;
}

/* Section Styles */
.mission-section,
.expertise-section,
.values-section,
.team-section,
.impact-section,
.certification-section,
.contact-section,
.overview-section,
.bill-analysis-section,
.calculation-section,
.data-sources-section,
.accuracy-section,
.transparency-section,
.continuous-improvement,
.rae-section,
.henex-section,
.supplier-data-section,
.data-quality-section,
.privacy-overview,
.data-controller,
.data-collection,
.data-usage,
.data-sharing,
.data-security,
.your-rights,
.cookies,
.third-party,
.children-privacy,
.international-transfers,
.policy-updates,
.contact-privacy {
    margin-bottom: 50px;
}

.mission-section h2,
.expertise-section h2,
.values-section h2,
.team-section h2,
.impact-section h2,
.certification-section h2,
.contact-section h2,
.overview-section h2,
.bill-analysis-section h2,
.calculation-section h2,
.data-sources-section h2,
.accuracy-section h2,
.transparency-section h2,
.continuous-improvement h2,
.rae-section h2,
.henex-section h2,
.supplier-data-section h2,
.data-quality-section h2,
.privacy-overview h2,
.data-controller h2,
.data-collection h2,
.data-usage h2,
.data-sharing h2,
.data-security h2,
.your-rights h2,
.cookies h2,
.third-party h2,
.children-privacy h2,
.international-transfers h2,
.policy-updates h2,
.contact-privacy h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.mission-section h3,
.expertise-section h3,
.values-section h3,
.team-section h3,
.impact-section h3,
.certification-section h3,
.contact-section h3,
.bill-analysis-section h3,
.calculation-section h3,
.rae-section h3,
.henex-section h3,
.supplier-data-section h3,
.data-quality-section h3,
.data-controller h3,
.data-collection h3,
.data-usage h3,
.data-sharing h3,
.data-security h3,
.your-rights h3,
.cookies h3,
.third-party h3,
.children-privacy h3,
.international-transfers h3,
.policy-updates h3,
.contact-privacy h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    margin: 25px 0 15px 0;
}

.mission-section h4,
.expertise-section h4,
.values-section h4,
.team-section h4,
.impact-section h4,
.certification-section h4,
.contact-section h4,
.bill-analysis-section h4,
.calculation-section h4,
.rae-section h4,
.henex-section h4,
.supplier-data-section h4,
.data-quality-section h4,
.data-controller h4,
.data-collection h4,
.data-usage h4,
.data-sharing h4,
.data-security h4,
.your-rights h4,
.cookies h4,
.third-party h4,
.children-privacy h4,
.international-transfers h4,
.policy-updates h4,
.contact-privacy h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin: 20px 0 10px 0;
}

/* Grid Layouts */
.expertise-grid,
.values-list,
.impact-stats,
.data-extraction-grid,
.calculation-grid,
.rae-data-grid,
.henex-data-grid,
.supplier-categories,
.quality-steps,
.sharing-scenarios,
.security-measures,
.gdpr-rights,
.cookie-types,
.usage-purposes,
.contact-methods-grid,
.response-times-grid,
.office-hours-grid,
.faq-links,
.contact-options,
.privacy-contact-methods {
    display: grid;
    gap: 25px;
    margin: 25px 0;
}

.expertise-grid,
.values-list,
.impact-stats {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.data-extraction-grid,
.calculation-grid,
.rae-data-grid,
.henex-data-grid,
.supplier-categories {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.quality-steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sharing-scenarios,
.security-measures,
.gdpr-rights,
.cookie-types,
.usage-purposes {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-methods-grid,
.response-times-grid,
.office-hours-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.faq-links {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-options,
.privacy-contact-methods {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Grid Items */
.expertise-item,
.value-item,
.stat-item,
.extraction-item,
.calc-item,
.rae-data-item,
.henex-data-item,
.supplier-category,
.quality-step,
.sharing-scenario,
.security-measure,
.gdpr-right,
.cookie-type,
.usage-purpose,
.contact-method,
.response-time-item,
.office-hours-item,
.faq-category,
.contact-option {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.expertise-item h3,
.value-item h3,
.stat-item h3,
.extraction-item h3,
.calc-item h3,
.rae-data-item h3,
.henex-data-item h3,
.supplier-category h3,
.quality-step h3,
.sharing-scenario h3,
.security-measure h3,
.gdpr-right h3,
.cookie-type h3,
.usage-purpose h3,
.contact-method h3,
.response-time-item h3,
.office-hours-item h3,
.faq-category h3,
.contact-option h3 {
    color: #007bff;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.expertise-item h4,
.value-item h4,
.extraction-item h4,
.calc-item h4,
.rae-data-item h4,
.henex-data-item h4,
.supplier-category h4,
.quality-step h4,
.sharing-scenario h4,
.security-measure h4,
.gdpr-right h4,
.cookie-type h4,
.usage-purpose h4,
.contact-method h4,
.response-time-item h4,
.office-hours-item h4,
.faq-category h4,
.contact-option h4 {
    color: #495057;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #0056b3;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.2rem;
}

/* Emergency Contact */
.emergency-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.emergency-info p {
    margin: 8px 0;
}

/* Responsive Design */
/* Burger Menu Styles */
.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    justify-content: center;
    align-items: center;
}

.burger-line {
    width: 20px;
    height: 2px;
    background: #495057;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu:hover .burger-line {
    background: #007bff;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.burger-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Ensure header has relative positioning for absolute dropdown */
.app-header {
    position: relative;
}

/* Prevent text overflow in header elements */
.header-logo h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-nav {
    flex-shrink: 0;
}

.nav-link {
    white-space: nowrap;
    flex-shrink: 0;
}

.language-toggle {
    flex-shrink: 0;
}

.lang-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.burger-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.burger-nav {
    padding: 15px 0;
}

.burger-link {
    display: block;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.burger-link:hover {
    background: #f8f9fa;
    color: #007bff;
    padding-left: 25px;
}

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

/* Mobile responsive styles */
@media (max-width: 768px) {
    .app-header {
        padding: var(--space-3) var(--space-4);
        gap: var(--space-2);
    }
    
    .header-logo h1 {
        font-size: 1.25rem;
    }
    
    .burger-dropdown {
        width: 200px;
    }
    
    /* Form and Content Mobile Responsiveness */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid,
    .values-list,
    .impact-stats,
    .data-extraction-grid,
    .calculation-grid,
    .rae-data-grid,
    .henex-data-grid,
    .supplier-categories,
    .quality-steps,
    .sharing-scenarios,
    .security-measures,
    .gdpr-rights,
    .cookie-types,
    .usage-purposes,
    .contact-methods-grid,
    .response-times-grid,
    .office-hours-grid,
    .faq-links,
    .contact-options,
    .privacy-contact-methods {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: var(--space-2) var(--space-3);
    }
    
    .header-logo h1 {
        font-size: 1rem;
    }
    
    .burger-dropdown {
        width: 180px;
    }
}
