/* Article Styles - Central CSS for all blog articles */

:root {
    --pico-primary: #2d2d2d;
    --pico-primary-hover: #404040;
    --pico-border-radius: 0px;
    --pico-background-color: #ffffff;
    --pico-text-color: #1a1a1a;
    --pico-muted-color: #555555;
    --pico-muted-border-color: #d0d0d0;
    --pico-border-color: #d0d0d0;
    --pico-link-color: #4a90d9;
    --pico-link-hover-color: #2d2d2d;
    --pico-spacing: 1rem;
    --pico-h-color: #1a1a1a;
}

body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Header Styles */
header {
    background-color: #ffffff;
    padding: 1px 3% 30px 3%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo {
    max-width: 180px;
    width: 180px;
    flex-shrink: 0;
}

#rb-certifications {
    margin-left: 20px;
    flex-shrink: 0;
}

.header-container > #rb-certifications .rb-cert-badge {
    padding: 0.2rem;
    min-width: 60px;
    max-width: 80px;
}

.header-container > #rb-certifications .rb-cert-badge img {
    width: 50px;
    height: 50px;
}

.header-container > #rb-certifications .rb-cert-header {
    display: none;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 1;
}

.top-bar {
    display: flex;
    gap: 30px;
    font-size: 12px;
    margin-bottom: 8px;
}

.top-bar a {
    color: #1a1a1a;
}

.top-bar a:hover {
    color: #2d2d2d;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 16px;
}

nav a {
    color: #1a1a1a;
    font-weight: 500;
    font-size: 16px;
    padding-left: 16px;
    padding-right: 16px;
}

nav a:hover {
    color: #2d2d2d;
}

nav a[href="#contact"] {
    color: #dc3545;
    font-weight: 600;
}

nav a[href="#contact"]:hover {
    color: #c82333;
}

nav a.active {
    color: #dc3545;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a1a1a;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 20px;
}

.lang-link {
    background: none;
    border: 1px solid #2d2d2d;
    color: #1a1a1a;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-link:hover {
    background-color: #2d2d2d;
    color: white;
}

.lang-link.active {
    background-color: #2d2d2d;
    color: white;
}

/* Article Hero */
.article-hero {
    padding: 220px 3% 40px 3%;
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    color: white;
}

.article-hero h1 {
    color: white;
    font-size: 36px;
    max-width: 1200px;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.article-meta span {
    margin-right: 20px;
}

/* Article Section */
.article-section {
    padding: 60px 3%;
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 0 0 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Article Image */
.article-image-container {
    margin: 0 0 40px 0;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Article Content */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #1a1a1a;
}

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

.article-content h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 2.5rem 0 1rem 0;
}

/* Highlight Box */
.highlight-box {
    background: #f5f5f5;
    color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #2d2d2d;
}

.highlight-box h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 20px;
}

.highlight-box p {
    margin-bottom: 0;
    line-height: 1.7;
    color: #1a1a1a;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.benefit-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2d2d2d;
}

.benefit-card h4 {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 14px;
    color: #1a1a1a;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    text-align: center;
    padding: 60px 3%;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #dc3545;
}

.back-link::before {
    content: "← ";
}

/* Footer Styles */
footer {
    background-color: #2d2d2d;
    color: white;
    padding: 60px 3% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ffffff;
    font-size: 14px;
}

.footer-section a:hover {
    color: white;
}

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.footer-legal a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    opacity: 0.8;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Services List */
.services-list {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin: 2rem 0;
}

.services-list h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.services-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    padding: 10px 0;
    border-bottom: 1px solid #d0d0d0;
    font-size: 15px;
    color: #1a1a1a;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list li::before {
    content: "✓ ";
    color: #2d2d2d;
    font-weight: bold;
    margin-right: 10px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .article-hero {
        padding: 180px 3% 30px 3%;
    }

    .article-hero h1 {
        font-size: 26px;
    }

    .article-section {
        padding: 40px 5%;
    }

    .article-content {
        font-size: 16px;
    }

    .top-bar {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
    }

    #rb-certifications {
        display: none;
    }
}
