@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CHEMOIL RESOURCES & KNOWLEDGE CENTER STYLE SHEET --- */

:root {
    --chemoil-navy: #031b33;
    --chemoil-blue: #0A355C;
    --chemoil-blue-hover: #031B33;
    --chemoil-light: #f8fafc;
    --chemoil-border: #cbd5e1;
    --chemoil-text-dark: #1e293b;
    --chemoil-text-muted: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body.chemoil-resources-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--chemoil-text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

.chemoil-resources-wrapper {
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.chemoil-resources-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0 100px 0;
    color: #ffffff;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(3,27,51,0.96) 0%, rgba(10,53,92,0.88) 100%);
    z-index: 1;
}
.chemoil-resources-hero .container {
    position: relative;
    z-index: 2;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}
.hero-content h1 {
    font-size: 44px;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 800;
}
.hero-content p {
    font-size: 16.5px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    max-width: 90%;
}
.search-container {
    display: flex;
    max-width: 500px;
    margin-bottom: 25px;
    align-items: stretch;
}
.search-container input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-size: 14.5px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    height: 50px;
}
.search-container button {
    background: var(--chemoil-blue) !important;
    border: none !important;
    border-radius: 0 6px 6px 0 !important;
    color: #ffffff !important;
    padding: 0 24px !important;
    cursor: pointer !important;
    font-size: 18px !important;
    transition: var(--transition) !important;
    box-sizing: border-box;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-container button:hover {
    background: var(--chemoil-blue-hover) !important;
}
.popular-searches {
    font-size: 13.5px;
    color: rgba(255,255,255,0.7);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.popular-searches a {
    color: #ffffff !important;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px;
    border-radius: 20px;
    transition: var(--transition);
    display: inline-block;
}
.popular-searches a:hover,
.popular-searches a:focus,
.popular-searches a:active {
    background: var(--chemoil-blue) !important;
    color: #ffffff !important;
    border-color: var(--chemoil-blue) !important;
}
.catalog-books-lineup {
    display: flex;
    gap: 25px;
    align-items: center;
    perspective: 1200px; /* Enable 3D perspective */
}

/* 3D Book Container */
.book-3d-wrapper {
    position: relative;
    width: 165px;
    height: 235px;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(5deg);
    transition: var(--transition);
}
.book-3d-wrapper:hover {
    transform: rotateY(-5deg) rotateX(0deg) translateY(-8px);
}

/* Book Cover Front */
.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 4px 8px 8px 4px;
    box-shadow: 8px 8px 25px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 18px 15px;
    z-index: 2;
}

/* Spine shadow effect on left edge */
.book-front::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 12px;
    background: linear-gradient(to right, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 100%);
    z-index: 5;
}

/* Spine Side */
.book-spine {
    position: absolute;
    width: 16px;
    height: 100%;
    left: -8px;
    transform: rotateY(-90deg);
    transform-origin: right center;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Specific book colors */
.book-valve {
    background: #ffffff;
    color: var(--chemoil-navy);
}
.book-valve .book-spine {
    background: #e2e8f0;
}
.book-pump {
    background: #0d3257;
    color: #ffffff;
}
.book-pump .book-spine {
    background: #061629;
}

/* Book Content Styles */
.book-logo {
    height: 14px;
    margin-bottom: 12px;
    object-fit: contain;
    object-position: left;
}
.book-title {
    font-size: 13.5px;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    margin-bottom: auto;
}
.book-valve .book-title {
    color: var(--chemoil-navy);
}
.book-pump .book-title {
    color: #ffffff;
}
.book-image-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.book-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Tablet Mockup (Right catalog) */
.tablet-wrapper {
    position: relative;
    width: 195px;
    height: 245px;
    background: #090e16;
    border: 3.5px solid #2d3748;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 10px 15px 30px rgba(0,0,0,0.4);
    box-sizing: border-box;
    transform: rotateY(-12deg) rotateX(4deg);
    transform-style: preserve-3d;
    transition: var(--transition);
}
.tablet-wrapper:hover {
    transform: rotateY(-4deg) rotateX(0deg) translateY(-8px);
}
.tablet-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #02182c 0%, #031b33 100%);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    box-sizing: border-box;
    color: #ffffff;
}
.tablet-screen .book-logo {
    height: 12px;
    margin-bottom: 8px;
}
.tablet-screen h4 {
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 2px 0;
    text-transform: uppercase;
    font-family: var(--font-heading);
}
.tablet-screen p {
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.tablet-screen img {
    max-height: 110px;
    margin-top: auto;
    object-fit: contain;
}

/* Section Common Header */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}
.section-header-row h2 {
    font-size: 26px;
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0;
    color: var(--chemoil-navy);
}
.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--chemoil-blue);
    text-decoration: none;
    transition: var(--transition);
}
.view-all-link:hover {
    color: var(--chemoil-navy);
    transform: translateX(3px);
}

/* Featured Insights & Categories */
.insights-categories-section {
    padding: 60px 0;
}
.insights-categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.insights-column {
    display: flex;
    flex-direction: column;
}
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.insight-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}
.insight-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}
.insight-img-box {
    position: relative;
    height: 130px;
    overflow: hidden;
}
.insight-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.insight-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--chemoil-blue);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.insight-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.insight-info h4 {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--chemoil-navy);
    line-height: 1.4;
}
.insight-info p {
    font-size: 12.5px;
    color: var(--chemoil-text-muted);
    margin: 0 0 15px 0;
    line-height: 1.5;
}
.insight-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--chemoil-blue);
    text-decoration: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
}
.insight-link:hover {
    color: var(--chemoil-navy);
}

/* Category Sidebar Widget */
.categories-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    height: 100%;
    box-sizing: border-box;
}
.categories-box h3 {
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--chemoil-navy);
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px 8px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.category-card:hover {
    border-color: var(--chemoil-blue);
    box-shadow: 0 4px 10px rgba(10, 53, 92, 0.15);
    transform: translateY(-2px);
}
.category-icon {
    font-size: 20px;
    color: var(--chemoil-blue);
}
.category-card span {
    font-size: 12px;
    font-weight: 600;
    color: var(--chemoil-navy);
}

/* Engineering Articles */
.engineering-section {
    padding: 20px 0 60px 0;
}
.engineering-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.eng-article-card {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    gap: 12px;
    align-items: center;
    transition: var(--transition);
}
.eng-article-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.03);
    border-color: var(--chemoil-blue);
}
.eng-img-box {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--chemoil-light);
    flex-shrink: 0;
}
.eng-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.eng-info-box {
    flex: 1;
}
.eng-info-box h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--chemoil-navy);
    line-height: 1.3;
}
.eng-info-box p {
    font-size: 11px;
    color: var(--chemoil-text-muted);
    margin: 0;
}

/* Success Stories & Video Learning */
.stories-videos-section {
    padding: 60px 0;
    background: #f8fafc;
}
.stories-videos-grid {
    display: grid;
    grid-template-columns: 2.1fr 0.9fr;
    gap: 40px;
}
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.story-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}
.story-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}
.story-img-box {
    height: 140px;
    position: relative;
}
.story-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--chemoil-navy);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.story-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.story-info h4 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--chemoil-navy);
}
.story-info p {
    font-size: 12.5px;
    color: var(--chemoil-text-muted);
    margin: 0 0 15px 0;
}
.story-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--chemoil-blue);
    text-decoration: none;
    margin-top: auto;
}

/* Video Column */
.videos-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.video-row {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    transition: var(--transition);
    cursor: pointer;
}
.video-row:hover {
    border-color: var(--chemoil-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.video-thumb {
    width: 70px;
    height: 48px;
    border-radius: 4px;
    background: var(--chemoil-navy);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.play-btn-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 16px;
}
.video-info h4 {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: var(--chemoil-navy);
}
.video-info p {
    font-size: 11px;
    color: var(--chemoil-text-muted);
    margin: 0;
}

/* Resource Library Table & Download center */
.library-download-section {
    padding: 60px 0;
}
.library-download-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.library-table-wrapper {
    overflow-x: auto;
}
.library-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.library-table th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px 10px;
    text-align: left;
    font-weight: 700;
    color: var(--chemoil-navy);
}
.library-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #e2e8f0;
}
.doc-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--chemoil-navy);
}
.doc-icon {
    color: var(--chemoil-blue);
    font-size: 15px;
}
.btn-download-icon {
    color: var(--chemoil-blue);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}
.btn-download-icon:hover {
    color: var(--chemoil-navy);
}

/* Download Center Box */
.download-center-box {
    background: linear-gradient(135deg, #0d3257 0%, #031b33 100%);
    border-radius: 10px;
    padding: 30px;
    color: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.download-center-box h3 {
    font-size: 20px;
    font-family: var(--font-heading);
    margin: 0 0 10px 0;
    font-weight: 700;
}
.download-center-box p {
    font-size: 13.5px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 25px 0;
    line-height: 1.5;
}
.folder-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}
.folder-visual img {
    height: 120px;
    width: auto;
}
.btn-explore-downloads {
    background: #ffffff;
    color: var(--chemoil-navy) !important;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
}
.btn-explore-downloads:hover {
    background: var(--chemoil-blue);
    color: #ffffff !important;
}

/* Standards & Certifications */
.standards-section {
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.standards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.standard-badge {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.standard-badge:hover {
    border-color: var(--chemoil-blue);
    transform: translateY(-2px);
}
.std-icon-box {
    font-size: 24px;
    color: var(--chemoil-blue);
}
.standard-badge h4 {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: var(--chemoil-navy);
}
.standard-badge p {
    font-size: 10px;
    color: var(--chemoil-text-muted);
    margin: 0;
}

/* Footer Call To Action */
.chemoil-cta-section {
    position: relative;
    padding: 60px 0;
    background: var(--chemoil-navy);
    color: #ffffff;
}
.cta-grid-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.cta-text-new h3 {
    font-size: 26px;
    font-family: var(--font-heading);
    margin: 0 0 10px 0;
    font-weight: 700;
}
.cta-text-new p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}
.cta-buttons-new {
    display: flex;
    gap: 15px;
}
.btn-cta-blue {
    background: var(--chemoil-blue);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    transition: var(--transition);
}
.btn-cta-blue:hover {
    background: var(--chemoil-blue-hover);
}
.btn-cta-outline-white {
    border: 1.5px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    transition: var(--transition);
}
.btn-cta-outline-white:hover {
    background: #ffffff;
    color: var(--chemoil-navy) !important;
}

/* Footer Section */



.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
    opacity: 0.85;
}
.footer-socials {
    display: flex;
    gap: 12px;
}
.footer-socials a {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition);
}
.footer-socials a:hover {
    background: var(--chemoil-blue);
}





.footer-contact li {
    font-size: 13.5px;
    opacity: 0.85;
    line-height: 1.6;
}






/* RESPONSIVE DESIGN */
@media screen and (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .search-container {
        margin: 0 auto 25px auto;
    }
    .popular-searches {
        justify-content: center;
    }
    .catalog-books-lineup {
        justify-content: center;
        margin-top: 30px;
    }
    .insights-categories-grid {
        grid-template-columns: 1fr;
    }
    .stories-videos-grid {
        grid-template-columns: 1fr;
    }
    .library-download-grid {
        grid-template-columns: 1fr;
    }
    .standards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
}

@media screen and (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
    .engineering-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stories-grid {
        grid-template-columns: 1fr;
    }
    .standards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-grid-new {
        flex-direction: column;
        text-align: center;
    }
    .cta-buttons-new {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .engineering-grid {
        grid-template-columns: 1fr;
    }
    .standards-grid {
        grid-template-columns: 1fr;
    }
    
    
}



/* --- GLOBAL FONT ENFORCERS --- */
body.chemoil-resources-body,
body.chemoil-resources-body p,
body.chemoil-resources-body a,
body.chemoil-resources-body span,
body.chemoil-resources-body li,
body.chemoil-resources-body div {
    font-family: 'Inter', sans-serif;
}

body.chemoil-resources-body h1,
body.chemoil-resources-body h2,
body.chemoil-resources-body h3,
body.chemoil-resources-body h4,
body.chemoil-resources-body h5,
body.chemoil-resources-body h6,
body.chemoil-resources-body .book-title,
body.chemoil-resources-body .section-tag,
body.chemoil-resources-body .btn,
body.chemoil-resources-body .btn-blue,
body.chemoil-resources-body .btn-outline {
    font-family: 'Outfit', 'Inter', sans-serif !important;
}

body.chemoil-resources-body .search-container input,
body.chemoil-resources-body .search-container button {
    font-family: 'Inter', sans-serif !important;
}
