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

:root {
    --primary-color: #f89921;
    --primary-dark: #d97f12;
    --secondary-color: #06192f;
    --accent-color: #f89921;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #e9f0f2;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --hero-image: linear-gradient(160deg, #1b2535 0%, #06192f 55%, #09101a 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(6, 25, 47, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

.gtranslate_wrapper {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.gtranslate_wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.35rem 2rem 0.35rem 2rem;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    /* Globe icon left, chevron right */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0.55rem center, calc(100% - 0.55rem) center;
    background-size: 14px, 10px;
    min-width: 100px;
}

.gtranslate_wrapper select:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.gtranslate_wrapper select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 55px;
    width: auto;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.nav-login {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    margin-left: 0.5rem;
}

.nav-menu a.nav-login::after {
    display: none;
}

.nav-menu a.nav-login:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.35);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 55, 138, 0.3) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.875rem;
    opacity: 0.8;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(10px); }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    background: var(--bg-white);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 102, 204, 0.25));
    display: grid;
    place-items: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
    stroke-width: 2.25;
    fill: none;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Production Section */
.production {
    background: var(--bg-light);
}

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

.production-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.production-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.production-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.production-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.production-card:hover .production-image img {
    transform: scale(1.1);
}

.production-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.production-card:hover .production-overlay {
    transform: translateY(0);
}

.production-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.production-overlay p {
    opacity: 0.9;
}

/* FAQ Section */
.faq {
    background: var(--bg-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer ul {
    margin-top: 1rem;
    padding-left: 2rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--secondary-color);
}

/* Software Showcase Section */
.software-showcase {
    background: var(--bg-light);
}

.slideshow-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.slideshow-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-lg);
}

.slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}

.slide-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: white;
}

.slide-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    overflow-y: auto;
}

.slide-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.slide-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

.feature-list li {
    padding: 0.875rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

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

.content-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

.hero-subtitle.content-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.hero-subtitle.content-list li {
    color: white;
    opacity: 0.95;
}

.slideshow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.slide-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slide-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.slide-btn:active {
    transform: scale(0.95);
}

.slide-btn svg {
    width: 24px;
    height: 24px;
}

.slide-indicators {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

/* Contact Section */
.contact {
    background: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item strong {
    color: var(--secondary-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-feedback {
    min-height: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.footer-bottom p {
    margin: 0;
}

.footer-contact-btn,
.footer-contact-btn:link,
.footer-contact-btn:visited {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1.4rem;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.footer-contact-btn:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.footer-address {
    font-style: normal;
    opacity: 0.75;
    line-height: 1.75;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-demo-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.footer-demo-link,
.footer-demo-link:link,
.footer-demo-link:visited,
.footer-demo-link:hover,
.footer-demo-link:active {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff !important;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s, background 0.2s;
}

.footer-demo-link:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.fdl-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-demo-link--rewind .fdl-dot {
    background: #fb923c;
}

.footer-demo-link--unwind .fdl-dot {
    background: #34d399;
}

.fdl-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.fdl-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.fdl-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-img {
        height: 45px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid,
    .production-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .slide-image {
        min-height: 250px;
        max-height: 400px;
    }
    
    .slide-image img {
        object-fit: contain;
    }
    
    .slide-info {
        padding: 2rem;
    }
    
    .slide-info h3 {
        font-size: 1.5rem;
    }
    
    .slideshow-controls {
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .slide-btn {
        width: 40px;
        height: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
    }
    
}

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

    .section-header h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 15px;
    }
    
    .slide-info {
        padding: 1.5rem;
    }
    
    .slide-info h3 {
        font-size: 1.25rem;
    }
    
    .slide-info p {
        font-size: 1rem;
    }
    
    .feature-list li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        padding-left: 1.25rem;
    }
}

/* ===== BLOG STYLES ===== */

/* Blog Header - matches main site hero style */
.blog-header {
    position: relative;
    color: white;
    padding: 10rem 0 5rem;
    text-align: center;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
}

.blog-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.blog-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.blog-header-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.blog-header-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto;
    font-weight: 300;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 5rem 0;
    background: var(--secondary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Blog Post Card */
.blog-post {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.blog-post.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-post.featured .blog-post-image {
    height: 100%;
    min-height: 360px;
}

.blog-post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.08);
}

.blog-post-category {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.blog-post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-post-meta time {
    font-weight: 500;
}

.blog-post-content h2 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.blog-post.featured .blog-post-content h2 {
    font-size: 1.75rem;
}

.blog-post-content h2 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-content h2 a:hover {
    color: var(--primary-color);
}

.blog-post-content > p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-light);
    flex: 1;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

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

/* Blog Coming Soon */
.blog-coming-soon {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.coming-soon-content h3 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.coming-soon-content > p {
    color: rgba(255, 255, 255, 0.6);
}

.coming-soon-content ul {
    text-align: left;
    max-width: 380px;
    margin: 1.5rem auto;
    list-style: none;
}

.coming-soon-content li {
    margin-bottom: 0.6rem;
    padding-left: 1.6rem;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
}

.coming-soon-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.coming-soon-content a {
    color: var(--accent-color);
}

/* ===== BLOG ARTICLE STYLES ===== */

/* Article Hero - matches main site hero */
.article-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.article-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
}

.article-hero-content .article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.article-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 700px;
    letter-spacing: -0.02em;
}

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Article Body */
.blog-article {
    background: var(--bg-light);
}

.article-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    background: white;
    box-shadow: 0 0 60px rgba(0,0,0,0.07);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2.5rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb .sep {
    color: var(--border-color);
    font-size: 0.75rem;
}

.breadcrumb .current {
    color: var(--text-light);
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

/* Article Intro */
.article-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-color);
}

.article-intro p + p {
    margin-top: 1rem;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-color);
}

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

/* Defect Category */
.defect-category {
    margin-bottom: 4rem;
}

.defect-category > h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Defect Section Cards */
.defect-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.defect-section:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.defect-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.defect-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.defect-description {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Problem / Solution Blocks */
.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.problem, .solution {
    padding: 1.5rem;
    border-radius: 10px;
}

.problem {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
}

.solution {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
}

.problem h3, .problem h4,
.solution h3, .solution h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.problem ul, .solution ul {
    list-style: none;
    padding: 0;
}

.problem li, .solution li {
    padding: 0.4rem 0 0.4rem 1.4rem;
    position: relative;
    line-height: 1.5;
    font-size: 1rem;
}

.problem li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc2626;
}

.solution li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
}

/* Article Conclusion - dark section like main site */
.article-conclusion {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--secondary-color);
    border-radius: 16px;
    color: white;
}

.article-conclusion h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-conclusion p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.article-conclusion ul {
    margin: 1.5rem 0;
    list-style: none;
    padding: 0;
}

.article-conclusion li {
    margin-bottom: 0.75rem;
    padding-left: 1.6rem;
    position: relative;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.article-conclusion li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.article-conclusion strong {
    color: white;
}

/* Article Footer */
.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.article-share h3 {
    margin-bottom: 0.4rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.article-share p {
    color: var(--text-light);
}

.article-share a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.article-share a:hover {
    text-decoration: underline;
}

.back-to-blog {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.back-to-blog:hover {
    background: var(--primary-color);
    color: white;
}

/* Tension Glossary */
.tension-glossary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.glossary-item {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--primary-color);
}

.glossary-item h4 {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.glossary-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .tension-glossary {
        grid-template-columns: 1fr;
    }
}

/* Nav active state for blog pages */
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== BLOG RESPONSIVE ===== */

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

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

    .blog-post.featured .blog-post-image {
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 8rem 0 3.5rem;
    }

    .blog-header-content h1 {
        font-size: 2.2rem;
    }

    .blog-header-content p {
        font-size: 1.05rem;
    }

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

    .article-hero {
        height: 320px;
    }

    .article-hero-content {
        padding: 2rem 1.5rem;
    }

    .article-hero-content h1 {
        font-size: 1.8rem;
    }

    .article-body {
        padding: 2.5rem 1rem;
    }

    .article-intro {
        padding: 1.5rem;
        font-size: 1.05rem;
    }

    .problem-solution {
        grid-template-columns: 1fr;
    }

    .defect-section {
        padding: 1.5rem;
    }

    .problem, .solution {
        padding: 1.25rem;
    }

    .article-conclusion {
        padding: 1.5rem;
    }

    .article-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .blog-header-content h1 {
        font-size: 1.8rem;
    }

    .article-hero {
        height: 260px;
    }

    .article-hero-content h1 {
        font-size: 1.5rem;
    }

    .article-hero-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .blog-post-content h2 {
        font-size: 1.25rem;
    }
}
