/* =========================================
   1. ORIGINAL METFIN CSS (UNCHANGED)
   ========================================= */

/* METFIN SYSTEMS DESIGN SYSTEM 
   Theme: Industrial, Engineered, Heavy
*/

:root {
    --primary-blue: #003D90; /* Based on Logo */
    --secondary-blue: #002a63; /* Darker shade for contrast */
    --accent-light: #e6f0fa; /* Very subtle blue tint */
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --bg-light: #f4f6f8;
    --bg-white: #ffffff;
    --border-color: #d1d5db;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-pad: 80px;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-pad { padding: var(--section-pad) 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--secondary-blue); }
.text-white { color: white; }
.text-accent { color: #8ab6ff; }
.bg-white { background-color: white; }

/* TOP BAR */
.top-bar {
    background-color: #0b1c31;
    color: #ccc;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar .container { display: flex; justify-content: flex-end; gap: 20px; }

/* NAVIGATION */
#main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    height: 50px; /* Adjust based on actual logo ratio */
    width: auto;
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-blue);
    position: relative;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.btn-nav {
    background-color: var(--primary-blue);
    color: white !important;
    padding: 10px 20px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}
.btn-nav:hover { background-color: var(--secondary-blue); }

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 85vh;
    /* CHANGED: Replaced Unsplash URL with local image path */
    background: linear-gradient(rgba(0, 61, 144, 0.85), rgba(11, 28, 49, 0.9)), url('img/chemical-factory.webp'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content { max-width: 800px; position: relative; z-index: 2; }
.technical-line {
    width: 60px;
    height: 4px;
    background-color: white;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 600px;
}

.hero-actions { display: flex; gap: 20px; }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: white;
    color: var(--primary-blue);
}
.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: white;
    color: white;
}
.btn-outline:hover {
    background-color: white;
    color: var(--primary-blue);
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: white;
    margin-top: 40px;
}

/* SECTIONS & HEADINGS */
.section-header { margin-bottom: 60px; }
.overline {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.header-line {
    width: 100px;
    height: 3px;
    background-color: var(--primary-blue);
}

/* GRIDS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

/* FEATURES (WHY METFIN) */
.feature-card {
    background: white;
    padding: 40px;
    border: 1px solid #e0e0e0;
    border-bottom: 4px solid var(--primary-blue); /* Heavy bottom */
}
.icon-box {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 15px;
    font-family: 'Oswald', sans-serif;
}
.feature-card h3 { margin-bottom: 15px; color: var(--primary-blue); }

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,61,144,0.1);
    border-color: var(--primary-blue);
}

.card-img-placeholder {
    height: 200px;
    background-color: #ddd;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc), 
                      linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.3;
}

.card-body { padding: 25px; }
.card-body h4 { font-size: 1.25rem; margin-bottom: 10px; color: var(--primary-blue); }
.card-body p { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 20px; }
.text-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-blue);
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 2px;
}
.text-link:hover { color: var(--secondary-blue); border-color: var(--secondary-blue); }
.center-btn { text-align: center; }

/* SOLUTIONS SECTION */
.solutions-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.solution-item h3 { color: #8ab6ff; margin-bottom: 10px; }
.solution-item p { color: #ccc; margin-bottom: 15px; }
.blueprint-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, #8ab6ff 50%, transparent 50%);
    background-size: 10px 1px; /* Dashed technical line */
}

/* CTA & CONTACT */
.cta-section {
    background-color: var(--primary-blue);
    padding: 60px 0;
    color: white;
}
.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-white {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
}

.contact-info { padding-right: 30px; }
.contact-detail { margin-top: 30px; font-size: 1.1rem; }
.map-placeholder {
    margin-top: 30px;
    background: #e0e0e0;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #888;
}

.industrial-form {
    background: white;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-blue);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-family: 'Inter', sans-serif;
    border-radius: 0; /* Strict square corners */
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}
.full-width { width: 100%; }

/* FOOTER */
footer {
    background-color: #0b1c31;
    color: #8899a6;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 { color: white; margin-bottom: 5px; }
.footer-links a { margin-left: 20px; color: #ccc; }
.footer-links a:hover { color: white; }
.copyright { padding-top: 20px; text-align: center; font-size: 0.8rem; }

/* MOBILE RESPONSIVE */
.mobile-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--primary-blue); transition: 0.3s; }

@media (max-width: 768px) {
    .grid-3, .grid-2, .solutions-layout { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 2.5rem; }
    .mobile-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 15px 0; }
    
    .cta-box { flex-direction: column; text-align: center; gap: 20px; }
}

/* ANIMATION CLASSES */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   2. NEW ADDITIONS (STRICT LOGO & NEW HTML SUPPORT)
   ========================================= */

/* --- A. STRICT LOGO HANDLING (Overrides) --- */
/* Ensures the PNG logo fits perfectly in the sticky navbar */
.brand-logo img {
    height: 55px !important; /* Fixed Height per requirement */
    width: auto !important;
    object-fit: contain;
    display: block;
}

/* Allows navbar flex to handle the image width correctly */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Footer specific logo styling */
.footer-logo {
    height: 45px !important; /* Footer specific height */
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* --- B. NEW PRODUCT CARD LAYOUT --- */
/* Supports the new HTML structure: .p-header and .p-body */
.p-header {
    background: var(--bg-light);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.p-header h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-blue);
}
.p-body {
    padding: 20px;
}
.p-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    min-height: 45px;
}
.link-arrow {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    display: inline-block;
    border-bottom: 2px solid transparent;
}
.link-arrow:hover {
    border-bottom: 2px solid var(--primary-blue);
}

/* --- C. NEW SOLUTIONS LAYOUT --- */
/* Supports the .solution-row and .sol-icon structure */
.solution-row {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 30px;
}
.solution-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.sol-icon {
    font-size: 2rem;
    font-family: 'Oswald', sans-serif;
    color: var(--text-accent);
    opacity: 0.5;
    font-weight: bold;
    min-width: 40px;
}
.sol-content h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.sol-content p {
    color: #ccc;
    font-size: 0.95rem;
}

/* --- D. NEW BUTTONS & CTA --- */
.btn-white-solid {
    background: white;
    color: var(--primary-blue);
    padding: 15px 40px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}
.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- E. RESPONSIVE FIXES FOR NEW ELEMENTS --- */
@media (max-width: 768px) {
    .cta-flex { flex-direction: column; gap: 20px; text-align: center; }
    .footer-grid { flex-direction: column; gap: 40px; }
}
/* =========================================
   3. NEW CONTACT & WHATSAPP STYLES
   ========================================= */

/* Contact Section Blocks */
.contact-block {
    background: white;
    padding: 30px;
    border-left: 5px solid var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.contact-block h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
}
.contact-block p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* Address Grid */
.address-grid {
    display: grid;
    gap: 20px;
}
.address-grid .info-block {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.address-grid h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--secondary-blue);
}

/* Business Snapshot Table */
.biz-snapshot {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
}
.biz-snapshot h4 {
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.biz-table {
    width: 100%;
    border-collapse: collapse;
}
.biz-table td {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
}
.biz-table tr:last-child td {
    border-bottom: none;
}
.biz-table strong {
    color: var(--primary-blue);
}

/* Map Container */
.map-box {
    border: 1px solid var(--border-color);
    background: #ddd;
    height: 250px;
    overflow: hidden;
}

/* WhatsApp Main Button */
.btn-whatsapp {
    background-color: var(--primary-blue);
    color: white;
    font-size: 1.1rem;
    padding: 18px 25px;
    border-radius: 4px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-blue);
}
.btn-whatsapp:hover {
    background-color: white;
    color: var(--primary-blue);
}
.btn-whatsapp svg {
    fill: currentColor;
}

/* Sticky WhatsApp Button (Bottom Right) */
.sticky-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Official WhatsApp Green */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: transform 0.3s ease;
}
.sticky-wa:hover {
    transform: scale(1.1);
    background-color: #20b858;
}

/* Footer Metadata */
.footer-meta {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}
.footer-meta p {
    margin-bottom: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .biz-snapshot {
        margin-top: 20px;
    }
    .sticky-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
/* =========================================
   4. ABOUT US PAGE STYLES
   ========================================= */

/* Page Header (Sub-page Hero) */
.page-hero {
    position: relative;
    height: 400px; /* Shorter than home hero */
    background: linear-gradient(rgba(0, 61, 144, 0.9), rgba(11, 28, 49, 0.95)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

/* About Layout (Text + Image) */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-gray);
    text-align: justify;
}

/* Specific About Image Styles */
.about-media {
    position: relative;
}
.industrial-img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    /* Ensure no pixelation */
    image-rendering: auto; 
}

/* Philosophy Box */
.philosophy-box {
    background: white;
    padding: 50px;
    border-left: 6px solid var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.philosophy-box h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.8rem;
}
.philosophy-box p {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* Strengths Grid */
.strengths-grid {
    gap: 30px;
}
.strength-card {
    background: var(--bg-light);
    padding: 30px;
    border: 1px solid var(--border-color);
}
.strength-card h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    display: inline-block;
}
.strength-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Credibility Block */
.credibility-block {
    max-width: 900px;
}
.closing-statement {
    margin-top: 30px;
    padding: 20px;
    border: 1px dashed rgba(255,255,255,0.3);
    font-style: italic;
    background: rgba(255,255,255,0.05);
}

/* Responsive for About Page */
@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
    .page-hero {
        height: 300px;
    }
    .page-hero h1 {
        font-size: 2.2rem;
    }
}
/* =========================================
   5. PRODUCTS & SERVICES PAGE STYLES
   ========================================= */

/* Product Grid Layout for Full Page */
.product-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Wider cards */
    gap: 40px;
}

/* Updated Product Card Image Handling */
.p-img-container {
    width: 100%;
    height: 250px; /* Fixed height for uniformity */
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background-color: #f4f4f4;
}
.p-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* STRICT RULE: No stretching */
    transition: transform 0.4s ease;
}
.product-card:hover .p-img-container img {
    transform: scale(1.05);
}

/* Full Product Card Specifics */
.full-card .p-desc {
    min-height: 80px; /* Space for longer text */
    text-align: justify;
}

/* WhatsApp CTA Button */
.btn-whatsapp-small {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 15px;
    text-decoration: none;
    transition: 0.3s;
}
.btn-whatsapp-small:hover {
    background-color: #1ebc57;
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.wa-icon {
    font-size: 1.2rem;
    margin-left: 8px;
}

/* Service Page Specifics */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.service-row {
    background: white;
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border-left: 5px solid var(--primary-blue); /* Industrial accent */
}
.s-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: #e0e0e0;
    font-weight: bold;
    line-height: 1;
}
.s-content h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-size: 1.4rem;
}
.s-content p {
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .product-grid-full {
        grid-template-columns: 1fr;
    }
    .service-row {
        flex-direction: column;
        gap: 15px;
    }
}
/* =========================================
   6. AUTO-SCROLL MARQUEE & SMART BUTTONS
   ========================================= */

/* --- A. INFINITE MARQUEE --- */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    background: #fff;
    padding: 20px 0;
    position: relative;
    /* Masking for fade effect on edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* UPDATED: Speed increased (20s instead of 30s) */
    animation: scroll 20s linear infinite;
}

/* Pause on hover for interaction */
.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-card {
    width: 280px;
    background: white;
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    border-bottom: 3px solid var(--primary-blue);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.marquee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.marquee-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
}

.marquee-card h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin: 0;
}

/* Animation Keyframes */
@keyframes scroll {
    0% { transform: translateX(0); }
    /* Moves -50% (The width of the first set of items) */
    /* This creates the seamless loop effect when content is duplicated */
    100% { transform: translateX(-50%); } 
}

/* --- B. SMART QUOTE BUTTON (INDUSTRIAL) --- */
.btn-quote {
    display: inline-block;
    width: 100%;
    padding: 14px 0;
    margin-top: 15px;
    background-color: #003D90; /* PRIMARY BRAND COLOR */
    color: white;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    letter-spacing: 1px;
}

.btn-quote:hover {
    background-color: #002a63; /* Darker blue on hover */
}

.btn-quote:active {
    transform: scale(0.98); /* Click press effect */
}
/* =========================================
 7. FEATURED PRODUCT CARD ENHANCEMENTS
   ========================================= */

/* Adjust Marquee Card for New Content */
.marquee-card {
    width: 320px; /* Slightly wider for better layout */
    height: 420px; /* Fixed height for alignment */
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    text-align: left; /* Align text left for readability */
    border-bottom: 4px solid var(--primary-blue);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content apart */
    transition: transform 0.3s, box-shadow 0.3s;
}

.marquee-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.marquee-card h4 {
    color: var(--primary-blue);
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Short Product Description */
.marquee-desc {
    font-size: 0.9rem;
    color: #666; /* Industrial Grey */
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* Enforce height consistency */
}

/* Action Row (View Details + Quote) */
.marquee-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto; /* Pushes to bottom */
    gap: 10px;
}

/* View Details Link */
.view-details {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.view-details:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Request Quote Button (Compact Version for Slider) */
.btn-quote-sm {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}
.btn-quote-sm:hover {
    background-color: #002a63;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    /* Slow down animation on mobile for better readability */
    .marquee-track {
        animation-duration: 40s; 
    }
    
    .marquee-card {
        width: 280px;
        height: auto;
        min-height: 400px;
    }

    .marquee-actions {
        flex-direction: row; /* Keep row even on mobile */
    }
}
/* =========================================
   8. PRODUCT DETAIL PAGE STYLES
   ========================================= */

/* Compact Hero for Product Pages */
.product-hero {
    background: linear-gradient(rgba(0, 61, 144, 0.9), rgba(11, 28, 49, 0.9)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    text-align: center;
}
.product-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.breadcrumb {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.breadcrumb a { color: white; text-decoration: underline; }

/* Product Detail Layout */
.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Product Image Box */
.detail-image-box {
    border: 1px solid #eee;
    padding: 20px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.detail-image-box img {
    width: 100%;
    height: auto;
    object-fit: contain; /* STRICT RULE */
    max-height: 500px;
}

/* Content Side */
.detail-content h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 3px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

.product-overview {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

/* Technical Highlights */
.tech-box {
    background: var(--bg-light);
    padding: 25px;
    border-left: 5px solid var(--primary-blue);
    margin-bottom: 30px;
}
.tech-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.tech-list {
    list-style: none;
    padding: 0;
}
.tech-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #444;
}
.tech-list li::before {
    content: "■";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

/* Applications Badge */
.app-box {
    margin-bottom: 40px;
}
.app-label {
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}
.app-text {
    color: #666;
    font-style: italic;
}

/* Button Group */
.action-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   9. CARD CLICK INTERACTION UPDATES
   ========================================= */

.product-card {
    cursor: pointer; /* Indicates the entire card is clickable */
    position: relative;
}

.btn-quote {
    position: relative;
    z-index: 2; /* Ensures button is above the card click area */
}
/* =========================================
   10. BLOG & KNOWLEDGE HUB STYLES
   ========================================= */

/* Blog Listing Page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: white;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-bottom: 4px solid var(--primary-blue);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.blog-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.blog-card h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-link {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    align-self: flex-start;
}

.read-more-link:hover {
    border-bottom: 2px solid var(--primary-blue);
}

/* Individual Blog Article Styles */
.article-container {
    max-width: 800px; /* Optimal reading width */
    margin: 0 auto;
    padding: 60px 20px;
}

.article-content {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

.article-content h2 {
    color: var(--primary-blue);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-left: 5px solid var(--primary-blue);
    padding-left: 15px;
}

.article-content p {
    margin-bottom: 25px;
}

/* Internal Linking Box inside Articles */
.related-box {
    background: #f4f6f8;
    border: 1px solid #ddd;
    padding: 25px;
    margin: 40px 0;
    border-radius: 4px;
}

.related-box h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.related-links {
    list-style: none;
    padding: 0;
}

.related-links li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.related-links li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}

.related-links a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
}

.related-links a:hover {
    color: var(--secondary-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
/* --- MICRO UPDATE: INDUSTRIAL SOLUTIONS HEADING --- */
#solutions h2 {
    color: #ffffff;
}

/* =========================================
   11. NEW TRUST PAGES STYLES
   ========================================= */

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.industry-card {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-top: 4px solid var(--primary-blue);
    transition: transform 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.industry-card h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.industry-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Infrastructure & Quality Text Blocks */
.info-section-block {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-left: 1px solid #eee; /* Clean divider */
}

.info-section-block h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-section-block h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    margin-right: 12px;
    border-radius: 50%;
}

.compliance-badge {
    background: #e6f0fa;
    color: var(--primary-blue);
    padding: 20px;
    border-left: 5px solid var(--primary-blue);
    margin-top: 20px;
    font-weight: 600;
}

/* =========================================
   MOBILE OPTIMIZATION (NAVBAR & LAYOUT)
   Target: Max Width 768px
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. General Layout Stacking */
    .grid-3, .grid-2, .solutions-layout, .product-grid-full, 
    .product-detail-wrapper, .about-layout { 
        grid-template-columns: 1fr; 
    }
    
    .hero-section h1 { 
        font-size: 2.2rem; 
    }
    
    .cta-flex, .footer-grid, .action-group { 
        flex-direction: column; 
        text-align: center; 
        gap: 20px; 
    }

    .action-group .btn { width: 100%; }
    .biz-snapshot { margin-top: 20px; }

    .sticky-wa { 
        bottom: 20px; 
        right: 20px; 
        width: 50px; 
        height: 50px; 
    }

    /* 2. MOBILE NAVIGATION BAR OPTIMIZATION */

    .mobile-toggle { 
        display: block; 
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: calc(100vh - 80px);
        overflow-y: auto;
        padding: 0;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        align-items: stretch;
    }

    .nav-links.active { 
        left: 0; 
    }

    .nav-links li { 
        margin: 0; 
        width: 100%;
        border-bottom: 1px solid #f4f6f8;
    }

    .nav-links a {
        display: block;
        padding: 16px 25px;
        font-size: 1.05rem;
        color: var(--primary-blue);
        text-align: left;
        font-weight: 600;
    }

    .nav-links a:active,
    .nav-links a:hover {
        background-color: var(--bg-light);
        color: var(--secondary-blue);
    }

    .nav-links a:not(.btn-nav)::after {
        display: none;
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding: 20px;
        background-color: white;
    }

    .btn-nav {
        display: block;
        text-align: center;
        width: 100%;
        padding: 15px;
    }
}
