/*
Theme Name: Tex Method
Theme URI: https://texmethod.com
Author: Antigravity
Author URI: https://texmethod.com
Description: Custom Elementor-compatible theme for Tex Method Company Ltd.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: texmethod
*/

/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #0a2558; /* Main deep blue */
    --color-primary-dark: #06183b; /* Darker blue for top bar/footer */
    --color-secondary: #ffc107; /* Vibrant Yellow */
    --color-secondary-hover: #e0a800;
    --color-text-main: #333333;
    --color-text-muted: #6c757d;
    --color-background-light: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-text-main);
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    color: var(--color-text-main);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

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

/* ==========================================================================
   Header Styles
   ========================================================================== */
/* Top Bar */
.top-bar {
    background-color: var(--color-primary-dark);
    color: #a0aec0;
    font-size: 13px;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left i {
    color: var(--color-secondary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-info i {
    color: var(--color-secondary);
}

.top-bar-social a {
    color: #a0aec0;
    margin-left: 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.top-bar-social a:hover {
    color: var(--color-white);
}

/* Main Header Navigation */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-branding img {
    max-height: 50px;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-navigation a {
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.main-navigation a:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    background-color: var(--color-white);
    color: var(--color-text-main);
    font-size: 14px;
}

/* Footer CTA Banner */
.footer-cta {
    background: linear-gradient(135deg, #0a2558 0%, #06183b 100%);
    padding: 40px 0;
    color: var(--color-white);
}

.footer-cta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-cta-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-cta-text p {
    color: #a0aec0;
    font-size: 16px;
}

.footer-cta-buttons {
    display: flex;
    gap: 15px;
}

/* Footer Widgets Area */
.footer-widgets {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
}

.footer-widgets .container {
    display: grid;
    grid-template-columns: 2fr 3fr 1.5fr 1.5fr 2fr;
    gap: 30px;
}

.footer-widget h4 {
    color: var(--color-primary-dark);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* Get in Touch Widget */
.widget-contact p {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.widget-contact i {
    color: var(--color-primary);
    font-size: 18px;
    margin-top: 3px;
}

/* Quick Links / Products Widgets */
.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul a {
    color: var(--color-text-muted);
}

.footer-widget ul a:hover {
    color: var(--color-primary);
}

/* Follow Us Widget */
.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

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

/* Contact Form in Footer */
.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 14px;
    background-color: #fcfcfc;
}

.footer-form input:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.footer-form-row {
    display: flex;
    gap: 15px;
}

.footer-form-row input {
    flex: 1;
}

/* Bottom Bar */
.bottom-bar {
    padding: 25px 0;
    background-color: var(--color-white);
    color: var(--color-text-muted);
}

.bottom-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-bar-logo img {
    height: 35px;
}

.bottom-bar-links a {
    color: var(--color-text-muted);
    margin-left: 20px;
}

.bottom-bar-links a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Responsive Styles & Mobile Drawer Menu
   ========================================================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-primary-dark);
    cursor: pointer;
    padding: 10px;
}

/* Hide close button on desktop */
.mobile-menu-close {
    display: none;
}

@media (max-width: 991px) {
    /* Header Responsive */
    .top-bar-left {
        display: none; /* Hide tagline on tablet/mobile to save space */
    }
    
    .top-bar .container {
        justify-content: center;
    }
    
    .top-bar-info {
        gap: 10px;
        font-size: 12px;
    }
    
    .header-cta {
        display: none; /* Hide button on mobile nav */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile Drawer Menu */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .main-navigation a {
        display: block;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    /* Drawer Close Button */
    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        background: none;
        border: none;
        color: var(--color-primary-dark);
        cursor: pointer;
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Footer Responsive */
    .footer-cta .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-widgets .container {
        grid-template-columns: 1fr 1fr;
    }
    
    .bottom-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .bottom-bar-links {
        margin-top: 10px;
    }
    .bottom-bar-links a {
        margin: 0 10px;
    }
}

@media (max-width: 767px) {
    /* Mobile Smaller Adjustments */
    .top-bar-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .top-bar-social {
        display: none; /* Hide social in top bar on very small screens */
    }
    
    .footer-widgets .container {
        grid-template-columns: 1fr; /* Stack all footer columns */
    }
    
    .footer-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ==========================================================================
   Elementor Hero Widget Styles
   ========================================================================== */
.tm-hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

.tm-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(2, 17, 44, 0.95) 0%, rgba(2, 17, 44, 0.7) 50%, rgba(2, 17, 44, 0.2) 100%);
    z-index: 1;
}

.tm-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 130px;
    padding-bottom: 100px;
}

.tm-hero-text-wrap {
   width: 100%;
}

.tm-hero-subtitle {
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.tm-hero-title {
    color: var(--color-white);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.tm-hero-title span {
    color: var(--color-secondary);
}

.tm-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.tm-hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

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

/* Hero Stats Bar */
.tm-hero-stats-wrapper {
    margin-top: auto;
    position: relative;
    width: 100%;
    z-index: 3;
    background: rgba(2, 17, 44, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.tm-hero-stats-bar {
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    flex-wrap: wrap;
}

.tm-hero-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
    border-right: 1px solid rgba(255,255,255,0.1);
    flex: 1;
}

.tm-hero-stat-item:last-child {
    border-right: none;
}

.tm-hero-stat-icon {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 20px;
    padding: 8px;
}
.tm-hero-stat-icon svg{
   fill: #f8f9fa;
}

.tm-hero-stat-info h4 {
    color: var(--color-white);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.tm-hero-stat-info p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin: 0;
}

/* WhatsApp Float */
.tm-whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.tm-whatsapp-float:hover {
    transform: translateY(-5px);
    color: white;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .tm-hero-title {
        font-size: 42px;
    }
    .tm-hero-stat-item {
        flex: 1 1 50%;
        margin-bottom: 20px;
        border-right: none;
    }
    .tm-hero-stats-bar {
        padding: 25px 0 5px 0;
    }
}

@media (max-width: 767px) {
    .tm-hero-title {
        font-size: 32px;
    }
    .tm-hero-stat-item {
        flex: 1 1 100%;
    }
    .tm-hero-content {
        padding-top: 100px;
        padding-bottom: 60px;
    }
}

/* ==========================================================================
   About Widget Styles
   ========================================================================== */
.tm-about-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.tm-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.tm-about-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-background-light);
}

.tm-about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.tm-about-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.tm-about-badge-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 18px;
    flex-shrink: 0;
}
.tm-about-badge-icon svg {
    fill: var(--color-white);
    width: 20px;
    height: 20px;
}

.tm-about-badge-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--color-white);
}

.tm-signature-font {
    font-family: 'Great Vibes', cursive, 'Brush Script MT', serif; /* Use a handwriting fallback */
    font-size: 24px;
    margin: 0;
    color: var(--color-white);
    line-height: 1;
}

.tm-section-subtitle {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.tm-about-right .tm-section-title {
    color: var(--color-primary-dark);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.tm-section-desc {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.tm-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.tm-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tm-feature-icon {
    color: var(--color-primary);
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 5px;
}
.tm-feature-icon svg {
    width: 32px;
    height: 32px;
}

.tm-feature-text h4 {
    color: var(--color-primary-dark);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.tm-feature-text p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background-color: transparent;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary-dark);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.btn-outline-dark:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

/* ==========================================================================
   Services Widget Styles
   ========================================================================== */
.tm-services-section {
    padding: 80px 0;
    background-color: var(--color-background-light);
}

.tm-section-heading-center {
    text-align: center;
    margin-bottom: 50px;
}

.tm-section-heading-center .tm-section-title {
    color: var(--color-primary-dark);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.tm-heading-line {
    width: 50px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 0 auto;
}

.tm-services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.tm-service-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tm-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.tm-service-icon {
    color: var(--color-primary);
    font-size: 40px;
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tm-service-icon svg {
    width: 48px;
    height: 48px;
}

.tm-service-title {
    color: var(--color-primary-dark);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.tm-service-desc {
    color: var(--color-text-muted);
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Responsive Utilities for New Widgets
   ========================================================================== */
@media (max-width: 1199px) {
    .tm-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .tm-about-grid {
        grid-template-columns: 1fr;
    }
    
    .tm-about-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .tm-about-right .tm-section-title {
        font-size: 32px;
    }
    
    .tm-features-grid {
        grid-template-columns: 1fr;
    }
    
    .tm-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .tm-services-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Partners Widget Styles
   ========================================================================== */
.tm-partners-section {
    padding: 60px 0;
    background-color: var(--color-background-light);
}

.tm-partners-section .tm-section-heading-center {
    margin-bottom: 40px;
}

.tm-partners-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tm-carousel-arrow {
    background-color: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.tm-carousel-arrow:hover {
    color: var(--color-primary);
}

.tm-partners-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    flex-grow: 1;
    padding: 10px 0;
}

.tm-partners-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.tm-partner-slide {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - 100px) / 6); /* 6 items per view with gap */
    min-width: 150px;
}

.tm-partner-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tm-partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.tm-partner-card img {
    max-height: 50px;
    width: auto;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tm-partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}


/* ==========================================================================
   Testimonials Widget Styles
   ========================================================================== */
.tm-testimonials-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.tm-testimonials-carousel-wrapper {
    position: relative;
    max-width: 100%;
}

.tm-testimonials-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    padding: 20px 5px;
}

.tm-testimonials-track::-webkit-scrollbar {
    display: none; 
}

.tm-testimonial-slide {
    scroll-snap-align: center;
    flex: 0 0 calc((100% - 60px) / 3); /* 3 items per view */
    min-width: 300px;
}

.tm-testimonial-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tm-quote-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    width: 35px;
    height: 35px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.tm-quote-text {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.tm-client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.tm-client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e2e8f0;
}

.tm-client-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-client-details h4 {
    color: var(--color-primary-dark);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 3px 0;
}

.tm-client-details p {
    color: var(--color-text-muted);
    font-size: 12px;
    margin: 0;
}

.tm-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.tm-dot {
    width: 10px;
    height: 10px;
    background-color: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tm-dot.active {
    background-color: var(--color-primary);
    width: 12px;
    height: 12px;
}

/* Responsive Overrides for Sliders */
@media (max-width: 991px) {
    .tm-partner-slide {
        flex: 0 0 calc((100% - 60px) / 4);
    }
    .tm-testimonial-slide {
        flex: 0 0 calc((100% - 30px) / 2);
    }
}

@media (max-width: 767px) {
    .tm-partner-slide {
        flex: 0 0 calc((100% - 40px) / 3);
    }
    .tm-testimonial-slide {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .tm-partner-slide {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

/* ==========================================================================
   Why Choose Us Widget Styles
   ========================================================================== */
.tm-wcu-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

.tm-wcu-left {
    width: 50%;
    background-color: var(--color-primary-dark);
    /* Calculate padding so inner content aligns with the 1200px max container */
    padding: 80px 40px 80px calc(50vw - 600px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Fallback padding for smaller screens if container logic goes awry */
@media (max-width: 1240px) {
    .tm-wcu-left {
        padding-left: 30px;
    }
}

.tm-wcu-left-content {
    max-width: 600px; /* Half of 1200px container */
    width: 100%;
}

.tm-wcu-title {
    color: var(--color-white);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

.tm-wcu-line {
    width: 50px;
    height: 3px;
    background-color: var(--color-secondary);
    margin-bottom: 40px;
}

.tm-wcu-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.tm-wcu-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tm-wcu-feature-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.tm-wcu-feature-icon img,
.tm-wcu-feature-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: var(--color-secondary);
    stroke: var(--color-secondary);
    fill: none;
}

.tm-wcu-feature-text h4 {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.tm-wcu-feature-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.tm-wcu-right {
    width: 50%;
    background-color: #d1d5db; /* fallback */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end; /* Push stats to bottom */
    padding: 0 30px 40px 30px;
}

/* Optional slight overlay to make image darker if needed */
.tm-wcu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.1);
    z-index: 1;
}

.tm-wcu-stats-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 15px;
    width: 100%;
    /* Let them sit nicely on the image */
    justify-content: space-between;
}

.tm-wcu-stat-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 25px 15px;
    flex: 1;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tm-wcu-stat-card h3 {
    color: var(--color-primary-dark);
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 5px 0;
}

.tm-wcu-stat-card p {
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Styles for Why Choose Us */
@media (max-width: 991px) {
    .tm-wcu-section {
        flex-direction: column;
    }
    .tm-wcu-left {
        width: 100%;
        padding: 60px 30px;
    }
    .tm-wcu-left-content {
        max-width: 100%;
    }
    .tm-wcu-right {
        width: 100%;
        min-height: 500px;
        padding: 40px 30px;
    }
}

@media (max-width: 767px) {
    .tm-wcu-features-grid {
        grid-template-columns: 1fr;
    }
    .tm-wcu-stats-wrapper {
        flex-wrap: wrap;
    }
    .tm-wcu-stat-card {
        flex: 0 0 calc(50% - 15px);
    }
}

/* ==========================================================================
   Interactive Production Widget Styles
   ========================================================================== */
.tm-ip-section {
    padding: 80px 0;
    background-color: var(--color-background-light); /* Assuming very light blue/grey based on screenshot */
}

.tm-ip-section .tm-section-heading-center {
    margin-bottom: 60px;
}

.tm-section-subtitle-text {
    color: var(--color-text-muted);
    font-size: 16px;
    margin-top: -5px;
}

.tm-ip-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.tm-ip-dashed-line {
    position: absolute;
    top: 65px; /* Half of image height (130/2) */
    left: 10%;
    right: 10%;
    height: 1px;
    border-top: 1px dashed #cbd5e1;
    z-index: 1;
}

.tm-ip-steps-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.tm-ip-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 180px;
}

.tm-ip-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 25px;
    /* Crescent offset border effect */
    box-shadow: -4px 4px 0px 1px var(--color-primary);
    background-color: var(--color-white);
    padding: 3px; /* White gap between image and shadow if any, or just let image fill */
}

.tm-ip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tm-ip-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #e2e8f0;
}

.tm-ip-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.tm-ip-content h4 {
    color: var(--color-primary-dark);
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.tm-ip-content p {
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.tm-ip-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 55px; /* align with center of 130px image */
    flex-shrink: 0;
}

.tm-ip-arrow-icon {
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Responsive Styles for Interactive Production */
@media (max-width: 991px) {
    .tm-ip-steps-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
    .tm-ip-dashed-line {
        display: none; /* Hide dashed line on wrap */
    }
    .tm-ip-arrow {
        display: none; /* Hide horizontal arrows on wrap */
    }
    .tm-ip-step {
        flex: 0 0 calc(33.333% - 30px);
    }
}

@media (max-width: 767px) {
    .tm-ip-step {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 480px) {
    .tm-ip-step {
        flex: 0 0 100%;
        max-width: 250px;
    }
}

/* ==========================================================================
   Featured Products Widget Styles
   ========================================================================== */
.tm-featured-section {
    padding: 80px 0;
    background-color: var(--color-primary-dark);
}

.tm-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.tm-featured-title {
    color: var(--color-white);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.tm-featured-line {
    width: 40px;
    height: 3px;
    background-color: var(--color-secondary);
}

.tm-featured-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tm-filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-white);
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.tm-filter-btn:hover,
.tm-filter-btn.active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary-dark);
}

.tm-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.tm-product-card {
    background-color: var(--color-white);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tm-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tm-product-img {
    height: 220px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
}

.tm-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tm-product-card:hover .tm-product-img img {
    transform: scale(1.05);
}

.tm-product-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
}

.tm-product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tm-product-content h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 800;
}

.tm-product-content h4 a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tm-product-content h4 a:hover {
    color: var(--color-primary);
}

.tm-product-content p {
    color: var(--color-text-muted);
    font-size: 13px;
    margin: 0 0 15px 0;
}

.tm-product-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-product-price {
    color: var(--color-primary-dark);
    font-size: 18px;
    font-weight: 800;
}

.tm-product-actions {
    display: flex;
    gap: 8px;
}

.tm-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tm-action-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.tm-featured-footer {
    text-align: center;
}

.tm-btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--color-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tm-btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-primary-dark);
}

/* Responsive Styles for Featured Products */
@media (max-width: 991px) {
    .tm-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tm-featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .tm-products-grid {
        grid-template-columns: 1fr;
    }
    .tm-featured-filters {
        gap: 10px;
    }
}

/* ==========================================================================
   Contact Us Widget Styles
   ========================================================================== */
.tm-contact-section {
    padding: 80px 0;
    background-color: var(--color-background-light);
}

.tm-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.tm-contact-info-card,
.tm-contact-form-wrapper {
    background-color: var(--color-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    height: 100%;
}

.tm-contact-info-card h3,
.tm-contact-form-wrapper h3 {
    font-size: 24px;
    color: var(--color-primary-dark);
    margin: 0 0 25px 0;
    position: relative;
    padding-bottom: 15px;
}

.tm-contact-info-card h3::after,
.tm-contact-form-wrapper h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-secondary);
}

.tm-company-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 25px;
}

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

.tm-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.tm-contact-list li:last-child {
    margin-bottom: 0;
}

.tm-contact-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(22, 163, 74, 0.1); /* light green or light primary */
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 20px;
    flex-shrink: 0;
}

.tm-contact-text {
    flex-grow: 1;
}

.tm-contact-text strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 15px;
    margin-bottom: 5px;
}

.tm-contact-text p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.tm-contact-text a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tm-contact-text a:hover {
    color: var(--color-secondary);
}

/* Contact Form 7 Overrides for this widget */
.tm-contact-form-wrapper .wpcf7-form {
    margin-top: 20px;
}

/* Helper classes for 2-column CF7 layout */
.tm-cf7-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.tm-cf7-col {
    flex: 1;
}
.tm-contact-form-wrapper .wpcf7-form .tm-cf7-row .wpcf7-form-control-wrap {
    margin-bottom: 0; /* Remove bottom margin when in a row */
}
.site-branding img {
    max-height: 50px;
    max-width: 124px;
}
.bottom-bar-logo img {
    height: 35px;
    max-width: 100px;
}

/* Fallback if they don't use the row classes */
.tm-contact-form-wrapper .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.tm-contact-form-wrapper .wpcf7-form input[type="text"],
.tm-contact-form-wrapper .wpcf7-form input[type="email"],
.tm-contact-form-wrapper .wpcf7-form input[type="tel"],
.tm-contact-form-wrapper .wpcf7-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-text);
    background-color: #f8fafc;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.tm-contact-form-wrapper .wpcf7-form input:focus,
.tm-contact-form-wrapper .wpcf7-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tm-contact-form-wrapper .wpcf7-form input::placeholder,
.tm-contact-form-wrapper .wpcf7-form textarea::placeholder {
    color: #94a3b8;
}

.tm-contact-form-wrapper .wpcf7-submit {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: block;
    width: 100%;
}

.tm-contact-form-wrapper .wpcf7-submit:hover {
    background-color: var(--color-primary-dark);
}

.tm-contact-form-wrapper .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
    display: block;
}

.tm-contact-form-wrapper .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
    border-radius: 6px !important;
    font-size: 14px;
}

/* Responsive Styles for Contact Widget */
@media (max-width: 991px) {
    .tm-contact-wrapper {
        grid-template-columns: 1fr;
    }
    .tm-contact-info-card,
    .tm-contact-form-wrapper {
        padding: 40px;
    }
}

@media (max-width: 767px) {
    .tm-contact-form-wrapper .wpcf7-form {
        grid-template-columns: 1fr;
    }
    .tm-contact-form-wrapper .wpcf7-form > * {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .tm-contact-info-card,
    .tm-contact-form-wrapper {
        padding: 30px 20px;
    }
}
