/**
 * Custom Responsive Enhancements & UI Styles
 * Modular Translation Agency Website
 */

html {
    scroll-padding-top: 75px;
    scroll-behavior: smooth;
    margin: 0;
    padding-top: 0 !important;
}

body {
    margin: 0;
    padding-top: 0 !important;
}

section[id] {
    scroll-margin-top: 75px;
}

/* ========================================================
   Brand Logo & Header Placement
========================================================= */
.brand {
    display: inline-flex !important;
    align-items: center;
    padding: 0 !important;
    position: relative;
    text-decoration: none;
}

.brand:before {
    display: none !important;
    content: none !important;
}

.brand_logo_link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.brand_logo_img {
    height: 72px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand_logo_link:hover .brand_logo_img {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* ========================================================
   Responsive Navigation & Mobile Drawer
========================================================= */
.nav-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.nav {
    position: relative;
    width: 100%;
}

/* Stuck / Sticky Navbar Brand */
.nav-stuck-brand {
    display: none;
}

.nav-stuck-logo {
    height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-stuck-brand a:hover .nav-stuck-logo {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* Consistent red bottom accent line across the entire navbar */
.stuck_container {
    transition: background 0.3s ease, padding 0.3s ease;
    width: 100%;
    position: relative;
    border-bottom: 4px solid #E74C3C;
}

.nav:before {
    display: none;
}

.sf-menu > li.active:after {
    position: absolute;
    content: '';
    top: 100%;
    left: 0;
    height: 4px;
    width: 100%;
    background: #E74C3C;
    z-index: 2;
}

.mobile-menu-toggle {
    display: none;
    background: #E74C3C;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.mobile-menu-toggle:hover {
    background: #c0392b;
}

/* ========================================================
   Sticky Navigation Bar
========================================================= */
.stuck_container.isStuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: #242b35 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    border-bottom: 4px solid #E74C3C;
    animation: slideDownNav 0.3s ease-out;
}

@keyframes slideDownNav {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.stuck_container.isStuck .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stuck_container.isStuck .nav-stuck-brand {
    display: flex;
    align-items: center;
    padding: 8px 0;
    flex-shrink: 0;
}

.stuck_container.isStuck .nav {
    width: auto;
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.stuck_container.isStuck .sf-menu {
    display: flex;
    width: auto;
    margin: 0;
}

.stuck_container.isStuck .sf-menu > li {
    display: block;
    border-right: none;
}

.stuck_container.isStuck .sf-menu > li > a {
    padding: 16px 18px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.stuck_container.isStuck .sf-menu > li.active:before {
    display: none;
}

.stuck_container.isStuck .sf-menu > li.active:after {
    display: none;
}

.stuck_container.isStuck .nav:before {
    display: none;
}

@media (max-width: 991px) {
    .header_top {
        display: none !important;
    }

    .nav-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 4px 0;
    }

    .nav-stuck-brand {
        display: flex !important;
        align-items: center;
        padding: 6px 0;
    }

    .nav-stuck-logo {
        height: 38px;
        max-width: 160px;
        object-fit: contain;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 6px 0;
        padding: 8px 14px;
        font-size: 15px;
    }
    
    .stuck_container.isStuck {
        display: block !important;
    }

    .stuck_container.isStuck .nav-wrapper {
        flex-wrap: wrap;
    }
    
    .nav {
        display: none;
        width: 100%;
        background: #242b35;
        border-top: 2px solid #E74C3C;
        padding: 15px 0;
    }

    .stuck_container.isStuck .nav {
        display: none;
        width: 100%;
    }
    
    .nav.nav-open,
    .stuck_container.isStuck .nav.nav-open {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .sf-menu,
    .stuck_container.isStuck .sf-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .sf-menu > li,
    .stuck_container.isStuck .sf-menu > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .sf-menu > li > a,
    .stuck_container.isStuck .sf-menu > li > a {
        display: block;
        padding: 12px 20px;
        color: #fff !important;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .brand_logo_img {
        height: 50px;
        max-width: 190px;
    }
}

/* ========================================================
   Modern Hero Slider
========================================================= */
.custom-slider-container {
    position: relative;
    width: 100%;
    min-height: 520px;
    background: #1f252d;
    overflow: hidden;
    z-index: 1;
}

.custom-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.03);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.custom-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.slide-content-wrapper {
    width: 100%;
    padding: 70px 0 90px 0;
    z-index: 3;
}

.slide-title-box {
    background: rgba(36, 43, 53, 0.9);
    padding: 30px 40px;
    border-left: 6px solid #E74C3C;
    max-width: 850px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border-radius: 0 8px 8px 0;
}

.slide-title-box h2 {
    color: #ffffff;
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 10px;
    font-weight: 700;
}

.slide-title-box h3 {
    color: #E74C3C;
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-controls {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #E74C3C;
    border-color: #E74C3C;
    transform: scale(1.2);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(36, 43, 53, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: #E74C3C;
    color: #fff;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Overlapping Competencies Badges / Hero Section Offset Fix */
.offset,
.well-2.offset {
    position: relative;
    z-index: 10;
    margin-top: -56.5px;
}

.index-list > li {
    position: relative;
}

.index-list > li:before {
    z-index: 12;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .custom-slider-container { min-height: 460px; }
    .slide-content-wrapper { padding: 45px 0 75px 0; }
    .slider-controls { bottom: 55px; }
}

@media (max-width: 767px) {
    .custom-slider-container { min-height: 380px; }
    .slide-content-wrapper { padding: 30px 15px 65px 15px; }
    .slide-title-box {
        padding: 20px 16px;
        max-width: 100%;
        border-left: 5px solid #E74C3C;
        border-radius: 8px;
        margin: 0 auto;
    }
    .slide-title-box h2 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin-bottom: 6px;
    }
    .slide-title-box h3 {
        font-size: 13px !important;
        letter-spacing: 0.5px;
        margin-bottom: 16px;
    }
    .slide-title-box .btn-hero-primary,
    .slide-title-box .btn-hero-ghost {
        width: 100% !important;
        margin-bottom: 8px;
        justify-content: center;
        height: 42px;
        font-size: 13.5px;
    }
    .slider-nav-btn {
        display: none !important;
    }
    .slider-controls {
        bottom: 35px;
    }
    .offset,
    .well-2.offset {
        margin-top: 0 !important;
        padding-top: 30px;
    }
}

/* ========================================================
   Cards, Grid & Responsive Helpers
========================================================= */
.service-card-enhanced {
    background: #fff;
    border-radius: 8px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 30px;
    border-top: 3px solid transparent;
}

.service-card-enhanced:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    border-top: 3px solid #E74C3C;
}

/* ========================================================
   Language Matrix Styling
========================================================= */
.lang-badge-pill {
    display: inline-block;
    background: #f4f6f8;
    color: #3F454D;
    padding: 8px 16px;
    margin: 6px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.lang-badge-pill:hover {
    background: #E74C3C;
    color: #fff;
    border-color: #E74C3C;
    transform: translateY(-2px);
}

.lang-code-tag {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 4px;
}

/* ========================================================
   Alert Messages
========================================================= */
.alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.close-alert {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.close-alert:hover {
    opacity: 1;
}

/* ========================================================
   Modern Form Controls & Input Styling
========================================================= */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    letter-spacing: 0.2px;
}

.form-control,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="tel"].form-control,
input[type="number"].form-control,
input[type="url"].form-control,
select.form-control {
    width: 100%;
    height: 46px;
    padding: 10px 16px;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b !important;
    background-color: #ffffff !important;
    box-sizing: border-box;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

textarea.form-control {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b !important;
    background-color: #ffffff !important;
    box-sizing: border-box;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    resize: vertical;
}

.form-control:focus,
input[type="text"].form-control:focus,
input[type="email"].form-control:focus,
input[type="tel"].form-control:focus,
input[type="number"].form-control:focus,
input[type="url"].form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    outline: none !important;
    border-color: #E74C3C !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(231, 76, 60, 0.15) !important;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

/* ========================================================
   Normalized Buttons & Action Triggers
========================================================= */
.btn-action-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.2px;
    border-radius: 8px;
    background: #E74C3C;
    border: 2px solid #E74C3C;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.25);
}

.btn-action-primary i {
    transition: transform 0.2s ease;
}

.btn-action-primary:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.35);
}

.btn-action-primary:hover i {
    transform: translateX(3px);
}

.btn-action-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.2px;
    border-radius: 8px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #334155 !important;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.btn-action-secondary:hover {
    border-color: #E74C3C;
    color: #E74C3C !important;
    background: #fdf2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 28px;
    font-size: 14.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.3px;
    border-radius: 8px;
    background: #E74C3C;
    border: 2px solid #E74C3C;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.35);
}

.btn-hero-primary i {
    transition: transform 0.2s ease;
}

.btn-hero-primary:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.45);
}

.btn-hero-primary:hover i {
    transform: translateX(3px);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 26px;
    font-size: 14.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.3px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
    backdrop-filter: blur(4px);
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ========================================================
   Pricing Modern Grid & Equal Height Cards
========================================================= */
.pricing-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

@media (max-width: 991px) {
    .pricing-modern-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
        gap: 35px;
    }
}

.pricing-box {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.pricing-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.pricing-box.featured-plan {
    border: 2px solid #E74C3C;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.15);
}

.pricing-badge-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #E74C3C;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 18px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    z-index: 10;
    white-space: nowrap;
}

.pricing-box_header {
    padding: 22px 15px;
    text-align: center;
    color: #ffffff;
    border-radius: 10px 10px 0 0;
}

.pricing-box_header--bronze { background: #d35400; }
.pricing-box_header--silver { background: #7f8c8d; }
.pricing-box_header--gold   { background: #f39c12; }

.pricing-box_header h3 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.pricing-box_body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    padding: 30px 24px 25px;
    text-align: center;
}

.pricing-price-val {
    font-size: 40px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px;
    line-height: 1;
}

.pricing-price-val span {
    font-size: 14px;
    color: #64748b;
    font-weight: normal;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    text-align: left;
    flex-grow: 1;
}

.pricing-features-list li {
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features-list li i {
    color: #10b981;
    font-size: 13px;
    flex-shrink: 0;
}

/* ========================================================
   Services Hub & Sector Modern CSS Grids
========================================================= */
.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

@media (max-width: 991px) {
    .services-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .services-modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.service-card-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 26px 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    border-top: 4px solid #E74C3C;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.service-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.sectors-modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .sectors-modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.sector-card-modern {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 28px 26px;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.sector-card-modern:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Modern Products Grid */
.products-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

@media (max-width: 991px) {
    .products-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .products-modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.product-card-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 28px 24px 24px;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(231, 76, 60, 0.5);
}

/* ========================================================
   Our Advantages Modern Grid & Cards
========================================================= */
.advantages-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: stretch;
    width: 100%;
}

@media (max-width: 1199px) {
    .advantages-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 640px) {
    .advantages-modern-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
        gap: 22px;
    }
}

.advantage-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #E74C3C;
    border-radius: 12px;
    padding: 30px 24px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09);
    border-color: #cbd5e1;
}

.advantage-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.advantage-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #fef2f2;
    color: #E74C3C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: background 0.3s ease, color 0.3s ease;
}

.advantage-card:hover .advantage-icon-box {
    background: #E74C3C;
    color: #ffffff;
}

.advantage-step-number {
    font-size: 28px;
    font-weight: 900;
    color: #e2e8f0;
    font-family: inherit;
    line-height: 1;
    letter-spacing: -1px;
}

.advantage-card-body {
    flex-grow: 1;
}

.advantage-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.35;
}

.advantage-card-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px;
}

.advantage-card-footer {
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.advantage-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    padding: 5px 12px;
    border-radius: 20px;
}

.advantage-pill-tag i {
    color: #0d9488;
    font-size: 13px;
}

/* ========================================================
   Contact & Quote Form UX Enhancements
========================================================= */
.role-toggle-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.role-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    outline: none;
    text-decoration: none;
    margin: 0 !important;
}

.role-tab-btn:hover {
    border-color: #cbd5e1;
    color: #334155;
}

.role-tab-btn.active {
    border-color: #E74C3C !important;
    background: #E74C3C !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
}

.form-step-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E74C3C;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

/* Team Member Grid & Equal Height Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: stretch;
}

@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.team-member-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 22px 26px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1.5px solid #e2e8f0;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 0;
    box-sizing: border-box;
}

.team-member-card:hover {
    transform: translateY(-5px);
    border-color: #E74C3C;
    box-shadow: 0 12px 28px rgba(231, 76, 60, 0.12);
}

.team-member-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    border: 3px solid #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.team-member-name {
    margin: 0 0 5px;
    font-weight: 700;
    color: #1e293b;
    font-size: 18px;
}

.team-member-role {
    color: #E74C3C;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    line-height: 1.3;
}

.team-member-bio {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 0;
    flex-grow: 1;
}

/* ========================================================
   Footer & Clean Copyright
========================================================= */
footer {
    background: #23282f;
    color: #9aa0a6;
    padding: 55px 0 35px;
}

footer a {
    color: #cbd5e1;
    transition: color 0.25s ease;
}

footer a:hover {
    color: #E74C3C;
}

/* Footer Brand Logo */
.footer-brand-logo {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo-img {
    height: 56px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-brand-logo:hover .footer-logo-img {
    transform: translateY(-2px);
    opacity: 0.95;
}

.footer-copyright-text {
    color: #94a3b8;
    font-size: 13.5px;
}

@media (max-width: 767px) {
    .footer-brand-logo {
        margin-bottom: 16px;
        text-align: center;
        display: inline-block;
    }
    .footer-logo-img {
        height: 48px;
        margin: 0 auto;
    }
}

/* Modern Adaptive Footer Styles */
.footer-col-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: #E74C3C;
    border-radius: 2px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-nav-list li a i {
    color: #E74C3C;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.footer-nav-list li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-nav-list li a:hover i {
    transform: translateX(2px);
}

.footer-contact-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.15);
    color: #E74C3C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.footer-contact-item-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.footer-contact-item-box:last-of-type {
    margin-bottom: 0;
}

.footer-item-label {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.footer-item-value {
    color: #e2e8f0;
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-word;
}

.footer-item-value a {
    color: #e2e8f0;
    text-decoration: none;
}

.footer-item-value a:hover {
    color: #E74C3C;
}

.footer-badge-box {
    margin-top: 16px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 12px;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Contact Page Feature Badges */
.contact-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.contact-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.contact-feature-pill i {
    color: #E74C3C;
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links a {
    color: #94a3b8;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #E74C3C;
}

@media (max-width: 767px) {
    .footer-bottom {
        text-align: center;
        flex-direction: column;
    }
    .footer-bottom-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .footer-bottom-links a {
        margin: 0 4px;
    }
}

/* ========================================================
   Mobile View UX & Responsiveness Polishing (1.png - 6.png)
========================================================= */
@media (max-width: 600px) {
    /* Contact Role Toggle Group (6.png) */
    .role-toggle-group {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .role-tab-btn {
        width: 100% !important;
        height: 46px !important;
        justify-content: center !important;
        font-size: 13.5px !important;
    }
}

@media (max-width: 575px) {
    /* Sector Card Action Buttons on Mobile (2.png, 5.png) */
    .sector-card-modern > div:last-child,
    .sector-card > div:last-child {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .sector-card-modern .btn-action-primary,
    .sector-card-modern .btn-action-secondary,
    .sector-card .btn-action-primary,
    .sector-card .btn-action-secondary {
        width: 100% !important;
        min-width: 100% !important;
        height: 44px !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    /* Form Cards Mobile Padding */
    .quote-form-card,
    .contact-form-card {
        padding: 24px 16px !important;
    }
}

@media (max-width: 767px) {
    /* Advantages Numbered List (4.png) */
    .index-list-2 > li {
        padding-left: 65px !important;
        margin-bottom: 22px !important;
        min-height: 48px !important;
    }
    .index-list-2 > li:before {
        width: 48px !important;
        height: 48px !important;
        line-height: 48px !important;
        font-size: 16px !important;
    }
    .index-list-2 > li h5 {
        font-size: 16px !important;
        margin-top: 0 !important;
        margin-bottom: 5px !important;
    }
    .index-list-2 > li p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-top: 4px !important;
    }

    /* Headings & Section Spacing on Mobile */
    h1 { font-size: 26px !important; line-height: 1.25 !important; }
    h2 { font-size: 22px !important; line-height: 1.3 !important; }
    h3 { font-size: 20px !important; line-height: 1.3 !important; }
    .well-4, .well-5 { padding: 45px 0 !important; }
    .well-3 { padding: 40px 0 !important; }
}
