/*
Theme Name: Fenochem Custom Theme
Theme URI: https://fenochem.co.ke
Author: Fenochem Developer
Description: Custom theme converted from static HTML for Fenochem Limited.
Version: 1.9 (Merged & Cleaned)
*/

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --brand-color: #1fa84c;      /* Main Green */
    --brand-color-dark: #168039; /* Hover Green */
    --brand-secondary: #323232;  /* Dark Gray */
    --text-dark: #333333;
    --text-light: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { 
    touch-action: manipulation !important; 
    overflow-x: hidden;
}

body {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   2. GLOBAL LAYOUT & TYPOGRAPHY
   ========================================= */

/* Main Wrapper: Handles centering */
.main-content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;    /* Centers content */
    padding: 60px 5%;  /* Equal side padding */
    background-color: #f9f9f9;
    transition: margin-left 0.3s ease, width 0.3s ease; 
}

@media (max-width: 768px) {
    .main-content-wrapper { padding: 40px 20px; }
}

/* Typography */
.section-title {
    color: var(--brand-secondary);
    border-left: 5px solid var(--brand-color);
    padding-left: 15px;
    font-size: 24px;
    margin-bottom: 30px;
    display: inline-block;
    text-transform: uppercase;
}

.split-label {
    font-weight: bold; text-transform: uppercase; font-size: 14px;
    display: inline-block; margin-bottom: 15px; line-height: 1;
}
.split-label .first { background-color: var(--brand-color); color: white; padding: 4px 8px; border-radius: 2px; }
.split-label .second { color: var(--brand-color); padding-left: 5px; }

/* --- BUTTON STYLING (Standardized) --- */
.btn-inquiry {
    display: inline-block;
    background-color: var(--brand-color) !important; /* Forces Green */
    color: white !important;
    padding: 12px 30px; 
    font-size: 14px; 
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-inquiry:hover {
    background-color: var(--brand-color-dark) !important;
    transform: translateY(-2px);
}

/* Button Sizing Logic */
.product-card .btn-inquiry { width: 100%; margin-top: auto; }

/* Limits these specific buttons to max 300px */
.hero-content-overlay .btn-inquiry,
.product-section .btn-inquiry.catalog-btn,
.about-text-col .btn-inquiry,
.contact-form-section .btn-inquiry {
    width: 100%;
    max-width: 300px;
    padding-left: 20px;
    padding-right: 20px;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header, .site-header {
    width: 100% !important; margin: 0 !important; padding: 0 !important;
    background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 10001 !important;
}

.top-bar {
    background-color: #f0f0f0; font-size: 12px; padding: 5px 20px;
    display: flex; justify-content: flex-end; color: #666;
}

.main-nav {
    display: flex; justify-content: space-between; align-items: center;
    width: 100% !important; margin: 0; padding: 0 20px; box-sizing: border-box;
    height: 120px !important;
}

.nav-left { display: flex; align-items: center; gap: 25px; height: 100%; visibility: visible !important; opacity: 1 !important; }

.logo img {
    display: block !important; visibility: visible !important; opacity: 1 !important;
    height: 100px !important; width: auto !important; object-fit: contain;
}

.menu-trigger {
    cursor: pointer; display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 35px; height: 35px; padding: 5px; border-radius: 4px;
    visibility: visible !important; opacity: 1 !important;
}
.menu-trigger span { display: block; width: 100%; height: 3px; background-color: #333; border-radius: 3px; }
.menu-trigger:hover { background-color: #f0f0f0; }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links li { position: relative; padding: 20px 0; }
.nav-links a { font-weight: bold; font-size: 14px; text-transform: uppercase; color: #333; transition: color 0.3s; }
.nav-links a:hover { color: var(--brand-color); }

.search-bar { display: flex; align-items: center; background: #f5f5f5; padding: 5px 15px; border-radius: 25px; border: 1px solid #e0e0e0; }
.search-bar input { border: none; background: transparent; outline: none; font-size: 13px; width: 150px; color: #333; }
.search-bar button { border: none; background: transparent; cursor: pointer; font-size: 14px; margin-left: 5px; }

.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; background: white;
    border-top: 3px solid var(--brand-color); box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 240px; padding: 10px 0; z-index: 999;
}
.nav-links li:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 10px 20px; font-size: 13px; color: #666; text-transform: none; }
.dropdown-menu li a:hover { background-color: #f9f9f9; color: var(--brand-color); }

/* =========================================
   4. SIDEBAR
   ========================================= */
.sc-sidebar {
    background-color: #002e25;
    position: fixed; top: 0 !important; left: 0;
    width: 250px !important; height: 100vh !important;
    padding-top: 140px !important; padding-bottom: 20px;
    overflow-y: auto; transition: left 0.3s ease;
    z-index: 9999 !important; box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.sc-sidebar.closed { left: -260px !important; }

.sc-nav-list { padding: 0; margin: 0; }
.sc-link {
    display: flex; align-items: center; justify-content: flex-start;
    text-decoration: none; color: #fff !important; font-size: 14px;
    padding: 12px 25px; transition: background 0.3s; white-space: nowrap;
}
.sc-link:hover { background-color: #476962; }
.sc-link .label { font-weight: 500; font-size: 15px; display: block; }
.sc-submenu .sc-link { font-size: 13px; color: #ccc !important; padding-left: 40px; }
.sc-submenu .sc-link:hover { color: white !important; background: rgba(255,255,255,0.1); }

/* Content Pushing Logic */
.hero-wrapper-split, footer, .hero-section, .about-company-section {
    width: 100%; transition: margin-left 0.3s ease, width 0.3s ease;
}
body.sidebar-expanded .main-content-wrapper {
    margin-left: 250px; width: calc(100% - 250px); margin-right: 0;
}
body.sidebar-expanded .hero-wrapper-split,
body.sidebar-expanded footer,
body.sidebar-expanded .hero-section,
body.sidebar-expanded .about-company-section {
    margin-left: 250px; width: calc(100% - 250px);
}

/* =========================================
   5. HERO SECTIONS (Video & Marquee)
   ========================================= */
.hero-wrapper-split { 
    position: relative; overflow: hidden; background-color: #333; width: 100%;
}

.hero-marquee-container { 
    position: relative; width: 100%; height: 600px; overflow: hidden; display: flex; align-items: center; 
}

.hero-marquee-track { 
    display: flex !important; flex-direction: row !important; height: 100%; width: max-content; 
    animation: marqueeScroll 60s linear infinite;
}

.marquee-img { 
    height: 100%; width: auto; min-width: 600px; object-fit: cover; flex-shrink: 0; display: block; 
}

@keyframes marqueeScroll { 
    0% { transform: translateX(0); } 100% { transform: translateX(-50%); } 
}

.hero-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8)); pointer-events: none; z-index: 5; 
}

.hero-content-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 0 20px;
}

.hero-content-overlay h1 { 
    color: #ffffff !important; font-size: 35px; font-weight: 700; text-shadow: 0 4px 15px rgba(0,0,0,0.9); 
    margin: 0 0 25px 0; line-height: 1.2; text-transform: capitalize; max-width: 1000px; width: 100%;
}

.hero-content-overlay p { 
    color: #f1f1f1 !important; font-size: 20px; font-weight: 500; text-shadow: 0 2px 8px rgba(0,0,0,0.9); 
    margin: 0 0 35px 0; max-width: 800px; width: 100%; line-height: 1.6;
}

/* =========================================
   6. SCROLL ANIMATIONS (Reveal + Spin)
   ========================================= */
.revealOnScroll { visibility: hidden; opacity: 0; will-change: transform, opacity; }
.revealOnScroll.animated { visibility: visible; opacity: 1; animation-fill-mode: both; }

/* Basic Fades */
@keyframes fadeInUp { 0% { opacity: 0; transform: translate3d(0, 40px, 0); } 100% { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes fadeInLeft { 0% { opacity: 0; transform: translate3d(-40px, 0, 0); } 100% { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes fadeInRight { 0% { opacity: 0; transform: translate3d(40px, 0, 0); } 100% { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes scaleUp { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }

/* 360 Spins */
@keyframes fadeInLeftSpin { 0% { opacity: 0; transform: translate3d(-100px, 0, 0) rotate(-360deg); } 100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); } }
@keyframes fadeInRightSpin { 0% { opacity: 0; transform: translate3d(100px, 0, 0) rotate(360deg); } 100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); } }
@keyframes fadeInDownSpin { 0% { opacity: 0; transform: translate3d(0, -100px, 0) rotate(-360deg); } 100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); } }
@keyframes fadeInUpSpin { 0% { opacity: 0; transform: translate3d(0, 100px, 0) rotate(360deg); } 100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); } }

/* =========================================
   7. PRODUCT GRID (Card Styles)
   ========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    align-items: stretch;
}
@media (min-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

.product-card {
    display: flex; flex-direction: column; height: 100%;
    background: white; border: 1px solid #eee; border-radius: 8px; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.product-card > a {
    display: block !important; height: 220px !important; width: 100% !important;
    overflow: hidden; flex-shrink: 0;
}
.product-img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
    object-position: center !important; transition: transform 0.5s ease;
}
.product-card:hover .product-img { transform: scale(1.1); }

.product-info { display: flex; flex-direction: column; flex-grow: 1; padding: 15px; }
.product-info p { margin-bottom: 20px; flex-grow: 1; }

/* =========================================
   8. ABOUT COMPANY SECTION (Front Page)
   ========================================= */
.about-company-section {
    padding: 80px 0; background-color: #fff; overflow: hidden;
}

.about-split-container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 60px; max-width: 1200px; margin: 0 auto 50px; padding: 0 20px;
}

.about-img-col {
    flex: 1; height: 450px; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.main-company-img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease;
}
.about-img-col:hover .main-company-img { transform: scale(1.05); }

.about-text-col {
    flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}

.company-heading { font-size: 36px; color: #333; font-weight: 700; margin: 20px 0; line-height: 1.2; }
.company-desc { font-size: 16px; color: #666; line-height: 1.8; margin-bottom: 30px; }

/* Gallery Strip */
.media-gallery-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.gallery-item {
    width: 100%; height: 160px; object-fit: cover; border-radius: 6px;
    cursor: pointer; border: 1px solid #eee; transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 2; }

/* =========================================
   9. GLOBAL MOBILE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    /* Nav & Sidebar */
    .main-nav { height: 80px !important; }
    .nav-links { display: none; }
    .logo img { height: 60px !important; }
    .sc-sidebar { top: 0 !important; height: 100vh !important; padding-top: 100px !important; width: 260px !important; left: -270px !important; }
    .sc-sidebar.open-mobile { left: 0 !important; }
    body.sidebar-expanded .main-content-wrapper, body.sidebar-expanded footer, body.sidebar-expanded .hero-section { margin-left: 0 !important; width: 100%; }
    
    /* Hero */
    .hero-marquee-container { height: 500px; }
    .hero-content-overlay h1 { font-size: 28px; line-height: 1.3; margin-bottom: 15px; }
    .hero-content-overlay p { font-size: 15px; margin-bottom: 25px; line-height: 1.5; }
    
    /* Layouts */
    .about-split-container, .products-container-split, .formulations-container, .contact-split-container { flex-direction: column; gap: 30px; }
    .about-img-col { height: 300px; }
    .media-gallery-strip { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-sidebar, .filters-sidebar { width: 100%; }
}

/* =========================================
   10. PAGE SPECIFIC: TRAINING
   ========================================= */
.training-container { padding-bottom: 40px; }
.training-layout { display: flex; gap: 50px; flex-wrap: wrap; margin-top: 30px; }
.training-main { flex: 3; min-width: 300px; }
.training-sidebar { flex: 1; min-width: 280px; }

.overview-text p { color: #666; margin-bottom: 20px; line-height: 1.8; font-size: 15px; }
.subsection-title { color: #333; font-size: 24px; margin-top: 50px; margin-bottom: 30px; border-bottom: 2px solid #eee; padding-bottom: 10px; }

.info-box-highlight { background: #f0f7f4; border-left: 4px solid var(--brand-color); padding: 30px; border-radius: 4px; margin: 30px 0; }
.info-box-highlight h3 { margin-bottom: 15px; color: #002e25; font-size: 18px; }
.info-box-highlight ul { list-style: none; padding: 0; margin: 0; }
.info-box-highlight ul li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 14px; color: #555; }
.info-box-highlight ul li::before { content: "✔"; position: absolute; left: 0; color: var(--brand-color); font-weight: bold; }

/* Training Grid */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.course-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.course-img-wrap { height: 180px; overflow: hidden; }
.course-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.course-card:hover .course-img-wrap img { transform: scale(1.1); }
.course-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; text-align: center; }
.course-content h4 { font-size: 16px; margin-bottom: 15px; color: #333; line-height: 1.4; flex-grow: 1; }
.course-btn { display: inline-block; padding: 10px 20px; border: 1px solid var(--brand-color); color: var(--brand-color); text-decoration: none; border-radius: 4px; font-size: 13px; font-weight: bold; transition: all 0.3s; margin-top: auto; }
.course-btn:hover { background: var(--brand-color); color: #fff; }

/* Sidebar Widgets */
.sticky-wrapper { position: sticky; top: 140px; }
.enrol-box { background: var(--brand-color); padding: 30px; border-radius: 8px; color: white; text-align: center; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(31, 168, 76, 0.3); }
.enrol-box h4 { color: white; font-size: 22px; margin-bottom: 10px; }
.enrol-box p { font-size: 14px; color: #e8f5e9; margin-bottom: 20px; }
.download-btn { display: block; background: white; color: var(--brand-color); padding: 12px; border-radius: 4px; text-decoration: none; font-weight: bold; font-size: 14px; transition: 0.3s; }
.download-btn:hover { background: #f1f1f1; transform: translateY(-2px); }
.categories-box { background: #fff; border: 1px solid #eee; padding: 25px; border-radius: 8px; }
.categories-box h3 { font-size: 18px; margin-bottom: 15px; border-bottom: 2px solid var(--brand-color); padding-bottom: 10px; display: inline-block; }
.categories-box ul li { border-bottom: 1px solid #eee; }
.categories-box ul li:last-child { border-bottom: none; }
.categories-box ul li a { display: block; padding: 12px 0; text-decoration: none; color: #555; transition: 0.2s; font-size: 14px; }
.categories-box ul li a:hover { color: var(--brand-color); padding-left: 5px; }

@media (max-width: 768px) {
    .training-layout { flex-direction: column; }
    .training-sidebar { order: -1; margin-bottom: 30px; }
}

/* =========================================
   11. PAGE SPECIFIC: PRODUCTS & FORMULATIONS
   ========================================= */
.products-container-split, .formulations-container { display: flex; gap: 30px; align-items: flex-start; }
.product-sidebar, .filters-sidebar { width: 250px; background: #f9f9f9; padding: 20px; border-radius: 8px; border: 1px solid #eee; flex-shrink: 0; }
.product-sidebar h3, .filter-header h3 { font-size: 16px; margin-bottom: 15px; color: #333; padding-bottom: 10px; border-bottom: 2px solid #ddd; }
.product-sidebar a { display: block; padding: 8px 10px; color: #666; text-decoration: none; font-size: 13px; border-radius: 4px; transition: all 0.2s; }
.product-sidebar a:hover, .product-sidebar a.active { background-color: var(--brand-color); color: white; }
.product-list-area, .results-area { flex: 1; }

/* Formulation Specifics */
.formulation-card { background: white; border: 1px solid #e0e0e0; border-radius: 6px; padding: 20px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.formulation-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.view-btn { border: 1px solid #ccc; padding: 8px 15px; border-radius: 4px; font-size: 13px; color: #333; }
.view-btn:hover { background-color: var(--brand-color); color: white; border-color: var(--brand-color); }

/* Single Product Page Table */
.fenochem-tech-table th { background-color: #f2f4f6; color: #333; font-weight: bold; text-align: left; padding: 15px; width: 30%; border-bottom: 1px solid #e0e0e0; vertical-align: top; }
.fenochem-tech-table td { padding: 15px; color: #555; border-bottom: 1px solid #e0e0e0; line-height: 1.6; }
.single-prod-img { width: 100%; max-width: 400px; flex-shrink: 0; }
.single-prod-img img { width: 100% !important; height: 350px !important; object-fit: cover !important; object-position: center !important; border-radius: 8px !important; border: 1px solid #eee !important; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

@media (max-width: 768px) {
    .single-prod-img img { height: 250px !important; }
}

/* =========================================
   12. PAGE SPECIFIC: NEWS / BLOG
   ========================================= */
.news-list { display: flex; flex-direction: column; gap: 40px; }
.news-item { display: flex; gap: 30px; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.news-item:last-child { border-bottom: none; }
.news-img { flex: 0 0 300px; overflow: hidden; border-radius: 6px; }
.news-img img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
.news-img img:hover { transform: scale(1.05); }
.news-content { flex: 1; }
.news-content h2 { font-size: 20px; margin: 0 0 10px 0; }
.news-content h2 a { color: #333; transition: color 0.2s; }
.news-content h2 a:hover { color: var(--brand-color); }
.news-content .date { font-size: 12px; color: #999; margin-bottom: 15px; }
.news-content p { font-size: 14px; color: #666; margin-bottom: 15px; }
.read-more { color: var(--brand-color); font-weight: bold; font-size: 13px; }
.read-more:hover { text-decoration: underline; }

/* Single Blog Typography */
.blog-content-body p { font-size: 18px; line-height: 1.8; color: #444; margin-bottom: 25px; }
.blog-content-body h2 { font-size: 28px; color: #222; margin-top: 40px; margin-bottom: 15px; font-weight: bold; }
.blog-content-body h3 { font-size: 22px; color: #333; margin-top: 30px; margin-bottom: 10px; border-left: 4px solid #1fa84c; padding-left: 15px; }
.blog-content-body ul, .blog-content-body ol { margin-bottom: 25px; padding-left: 20px; }
.blog-content-body li { font-size: 18px; line-height: 1.8; color: #444; margin-bottom: 10px; }
.blog-content-body a { color: #1fa84c; text-decoration: underline; font-weight: bold; }
.blog-content-body blockquote { background: #f9f9f9; border-left: 5px solid #1fa84c; margin: 30px 0; padding: 20px; font-style: italic; color: #555; font-size: 18px; }

@media (max-width: 768px) {
    .news-item { flex-direction: column; }
    .news-img { flex: auto; width: 100%; }
}

/* =========================================
   13. PAGE SPECIFIC: CONTACT
   ========================================= */
.contact-split-container { display: flex; flex-wrap: wrap; gap: 50px; max-width: 1200px; margin: 0 auto; }
.contact-info-col, .contact-form-col { flex: 1; min-width: 300px; }
.info-block { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.info-block h4 { font-size: 12px; font-weight: bold; color: #999; letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; }
.info-block p { font-size: 16px; color: #333; margin: 0; }
.social-icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; color: white; font-weight: bold; transition: transform 0.2s; }
.social-icon-btn:hover { transform: scale(1.1); }
.social-icon-btn.whatsapp { background: #25D366; }
.social-icon-btn.facebook { background: #1877F2; }
/* =========================================
   CONTACT FORM SUBMIT BUTTON FIX
   ========================================= */

/* Target standard Submit buttons and Contact Form 7 buttons */
input[type="submit"], 
button[type="submit"],
.wpcf7-submit {
    display: inline-block;
    background-color: var(--brand-color) !important; /* Green */
    color: white !important;
    
    /* Matches your standard button size */
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    
    /* Ensure it doesn't stretch weirdly */
    width: auto;
    min-width: 150px;
}

/* Hover Effect */
input[type="submit"]:hover, 
button[type="submit"]:hover,
.wpcf7-submit:hover {
    background-color: var(--brand-color-dark) !important; /* Darker Green */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* =========================================
   14. PAGE SPECIFIC: ABOUT TIMELINE
   ========================================= */
.timeline-container { position: relative; padding: 20px 0; border-left: 2px solid #e9ecef; margin-left: 20px; }
.timeline-item { position: relative; padding-left: 30px; margin-bottom: 30px; }
.timeline-item::before { content: ''; position: absolute; left: -9px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #1fa84c; }
.timeline-item .year { font-weight: bold; font-size: 18px; color: #1fa84c; margin-bottom: 5px; }
.timeline-item .desc { font-size: 14px; color: #666; line-height: 1.6; }

/* =========================================
   15. PARTNERS & SERVICES
   ========================================= */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; }
.partner-card { background: #fff; border: 1px solid #eee; padding: 30px 20px; border-radius: 8px; text-align: center; transition: transform 0.3s; }
.partner-card:hover { transform: translateY(-5px); border-color: var(--brand-color); }
.services-grid { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.service-card { flex: 1; min-width: 250px; background: #f9f9f9; padding: 30px; border-radius: 8px; text-align: center; border-top: 4px solid var(--brand-color); }

/* =========================================
   16. INDUSTRIES PAGE GRID
   ========================================= */

.industry-grid {
    display: grid;
    /* Creates a responsive grid: minimum 250px wide cols, auto-fill the rest */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.industry-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--brand-color);
}

/* Image Container: Forces a fixed height ratio */
.industry-img-wrap {
    width: 100%;
    height: 180px; /* Fixed height for uniformity */
    overflow: hidden;
    background-color: #f0f0f0; /* Placeholder color while loading */
}

.industry-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CROPS the image to fill the box perfectly */
    object-position: center;
    transition: transform 0.5s ease;
}

.industry-card:hover .industry-img-wrap img {
    transform: scale(1.1); /* Zoom effect on hover */
}

/* Title Styling */
.industry-card h3 {
    font-size: 16px;
    color: #333;
    text-align: center;
    padding: 20px 15px;
    margin: 0;
    font-weight: 600;
    background: #fff;
    flex-grow: 1; /* Ensures text area fills remaining height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-card:hover h3 {
    color: var(--brand-color);
}


/* =========================================
   SINGLE COURSE PAGE STYLING
   ========================================= */

/* 1. Header Area */
.course-single-header h1 {
    font-size: 32px;
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 5px solid var(--brand-color);
    padding-left: 15px;
    line-height: 1.2;
}

/* 2. Featured Image */
.course-single-header img {
    width: 100%;
    height: auto;
    max-height: 400px; /* Prevents it from being too tall */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* 3. Course Content (Typography) */
.course-body-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.course-body-content h3 {
    font-size: 20px;
    color: #222;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.course-body-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.course-body-content li {
    margin-bottom: 10px;
}

/* 4. "Back to Courses" Button Fix */
/* This specifically overrides the grey/black and forces it Green */
.course-body-content + div .btn-inquiry {
    background-color: var(--brand-color) !important;
    color: white !important;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.course-body-content + div .btn-inquiry:hover {
    background-color: var(--brand-color-dark) !important;
    transform: translateY(-2px);
}

/* SEARCH BAR STYLING */
form.search-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 5px 15px;
    border-radius: 25px;
    border: 1px solid #e0e0e0;
}

form.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 200px; /* Adjusted width */
    color: #333;
}

form.search-bar button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
    padding: 0;
}

#live-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 9999;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.live-search-list { list-style: none; margin: 0; padding: 0; }
.live-search-list li { border-bottom: 1px solid #f5f5f5; }
.live-search-list li:last-child { border-bottom: none; }

.live-search-list li a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.live-search-list li a:hover { background-color: #f9f9f9; color: var(--brand-color); }

