/* ==========================================================================
   Shri Jayam Compliance Group - Global & Micro-site Shared Stylesheet
   ========================================================================== */

:root {
    --portal-bg: #0B1E2E;
    --portal-text: rgba(255, 255, 255, 0.75);
    --portal-text-active: #ffffff;
    --portal-accent: #198754;
    --portal-accent-light: #22c55e;
    --portal-border: rgba(255, 255, 255, 0.12);
    
    /* Micro-site Brand Themes */
    --color-sja: #0B3C5D;
    --color-sja-light: rgba(11, 60, 93, 0.08);
    --color-sjewm: #10B981;
    --color-sjewm-light: rgba(16, 185, 129, 0.08);
    --color-sjpd: #198754;
    --color-sjpd-light: rgba(25, 135, 84, 0.08);
    --color-sjwt: #7C3AED;
    --color-sjwt-light: rgba(124, 58, 237, 0.08);
}

/* 1. Global Portal Top Bar */
.global-portal-bar {
    background-color: var(--portal-bg);
    border-bottom: 1px solid var(--portal-border);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    z-index: 1000;
    position: relative;
    padding: 10px 0;
}

.global-portal-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-dot {
    width: 8px;
    height: 8px;
    background-color: var(--portal-accent-light);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--portal-accent-light);
}

.portal-brand-label {
    color: var(--portal-text-active);
    font-weight: 700;
    font-family: 'IBM Plex Sans', sans-serif;
    letter-spacing: 0.8px;
    font-size: 11px;
}

.portal-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portal-link {
    color: var(--portal-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
}

.portal-link-icon {
    width: 13px;
    height: 13px;
}

.portal-link:hover {
    color: var(--portal-text-active);
    background-color: rgba(255, 255, 255, 0.08);
}

.portal-link.active {
    color: var(--portal-text-active);
    background-color: rgba(255, 255, 255, 0.15);
}

/* 2. Micro-site Secondary Sub-nav */
.sub-nav-bar {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #eef2f5;
    position: sticky;
    top: 0;
    z-index: 900;
    padding: 0;
}

.sub-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.sub-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 15px 0;
}

.sub-nav-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.sub-nav-logo-text {
    display: flex;
    flex-direction: column;
}

.sub-nav-brand-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    color: #0B3C5D;
    font-size: 1.15rem;
    line-height: 1.1;
}

.sub-nav-brand-subtitle {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sub-nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    padding: 24px 0;
    position: relative;
    display: block;
}

.sub-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3.5px;
    background-color: var(--theme-color, #0B3C5D);
    border-radius: 2px 2px 0 0;
    transition: width 0.25s ease;
}

.sub-nav-link:hover {
    color: var(--theme-color, #0B3C5D);
}

.sub-nav-link:hover::after,
.sub-nav-link.active::after {
    width: 100%;
}

.sub-nav-link.active {
    color: var(--theme-color, #0B3C5D);
}

/* Micro-site Themes */
.hub-sja {
    --theme-color: var(--color-sja);
    --theme-light: var(--color-sja-light);
}

.hub-sjewm {
    --theme-color: var(--color-sjewm);
    --theme-light: var(--color-sjewm-light);
}

.hub-sjpd {
    --theme-color: var(--color-sjpd);
    --theme-light: var(--color-sjpd-light);
}

.hub-sjwt {
    --theme-color: var(--color-sjwt);
    --theme-light: var(--color-sjwt-light);
}

/* 3. Micro-site Hero & Layout Structure */
.ms-hero {
    position: relative;
    padding: 6.5rem 0;
    color: #ffffff;
    overflow: hidden;
}

.ms-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.ms-hero-container {
    position: relative;
    z-index: 2;
}

.ms-hero-badge {
    display: inline-block;
    background-color: var(--theme-color, #0B3C5D);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1.2rem;
}

.ms-hero h1,
.ms-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -0.8px;
    font-family: 'IBM Plex Sans', sans-serif;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}

.ms-hero-desc {
    font-size: 1.15rem;
    opacity: 0.92;
    line-height: 1.6;
    max-width: 780px;
    font-family: 'Source Sans 3', sans-serif;
}

/* Micro-site Grid and Card layout */
.ms-section {
    padding: 1.8rem 0;
    position: relative;
}

@media (max-width: 768px) {
    .ms-section {
        padding: 1.2rem 0;
    }
    .ms-card-desc {
        display: block !important;
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }
}

.ms-section-alt {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.ms-section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.8rem;
    font-family: 'IBM Plex Sans', sans-serif;
    text-align: center;
}

.ms-section-desc {
    color: #64748b;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.ms-grid-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 640px) {
    .ms-grid-2, .ms-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ms-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .ms-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==========================================================================
   Image 2 Design Style: Service & Audit Card V2
   ========================================================================== */
.service-card-v2 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-v2:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 32px -8px rgba(11, 60, 93, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Card Tints inspired by Image 2 pastel tones */
.service-card-v2.tint-amber {
    background: #FFFDF5;
    border-color: #FEF3C7;
}
.service-card-v2.tint-sky {
    background: #F4F8FA;
    border-color: #E0F2FE;
}
.service-card-v2.tint-emerald {
    background: #F0FDF4;
    border-color: #D1FAE5;
}
.service-card-v2.tint-purple {
    background: #FAF5FF;
    border-color: #F3E8FF;
}
.service-card-v2.tint-indigo {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

/* Top Featured Cover Image Banner */
.ms-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ms-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-card-image-wrapper.fit-contain img {
    object-fit: contain !important;
    background: #ffffff !important;
    padding: 12px;
}

.service-card-v2:hover .ms-card-image-wrapper img {
    transform: scale(1.05);
}

/* Top Left Overlay Badge Tag on Image */
.ms-card-img-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    color: #F59E0B;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Card Content Typography */
.service-card-v2 .ms-card-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    text-align: center !important;
    margin: 6px 0 2px 0 !important;
    font-family: 'Playfair Display', Georgia, serif;
}

.service-card-v2 .ms-card-subtitle {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #D97706 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    display: block;
}

.service-card-v2 .ms-card-desc {
    font-size: 0.88rem !important;
    color: #475569 !important;
    line-height: 1.55 !important;
    text-align: center !important;
    margin-bottom: 16px !important;
    flex-grow: 1;
}

.service-card-v2 .ms-card-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    transition: color 0.2s, gap 0.2s;
}

.service-card-v2:hover .ms-card-action {
    color: #D97706 !important;
    gap: 10px !important;
}

/* Header Gold Lines Style (Image 2) */
.header-gold-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 8px;
}

.header-gold-lines::before,
.header-gold-lines::after {
    content: '';
    display: inline-block;
    width: clamp(30px, 8vw, 70px);
    height: 2px;
    background: #D97706;
}

.header-subtitle-gold {
    font-size: 1.02rem;
    color: #475569;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

/* 4. Elegant Micro-site Cards (Redesigned & Responsive) */
.ms-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.01);
    padding: 28px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ms-card > img,
.ms-card > div:has(img),
.ms-card > .ms-card-image,
.ms-card > .ms-card-img {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .ms-card {
        padding: 20px;
        border-radius: 12px;
    }
}

.ms-card.portfolio-card {
    display: flex !important;
    flex-direction: column !important;
}

/* Subtle top hover strip to give a high-quality visual accent */
.ms-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--theme-color, #0B3C5D);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.01);
    border-color: rgba(226, 232, 240, 0.5);
}

.ms-card:hover::before {
    transform: scaleX(1);
}

.ms-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    font-family: 'IBM Plex Sans', sans-serif;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.ms-card-desc {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-top: 4px;
    margin-bottom: 16px;
}

.ms-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--theme-color, #0B3C5D);
    background-color: var(--theme-light, rgba(11, 60, 93, 0.06));
    padding: 6px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: end;
    justify-self: start;
    border: 1px solid rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a.ms-card-badge {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

a.ms-card-badge:hover {
    background: var(--theme-color, #0B3C5D) !important;
    background-color: var(--theme-color, #0B3C5D) !important;
    color: #ffffff !important;
    border-color: var(--theme-color, #0B3C5D) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--theme-light, rgba(11, 60, 93, 0.25));
}

/* 5. Blueprints / Plan Showcase Area */
.bp-showcase {
    background-color: #0b1a24;
    border-radius: 14px;
    padding: 40px;
    color: #e2e8f0;
    border: 1px dashed rgba(25, 135, 84, 0.4);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.bp-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(25, 135, 84, 0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(25, 135, 84, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.bp-showcase-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.bp-showcase-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #94a3b8;
}

.bp-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (min-width: 640px) {
    .bp-specs-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.bp-spec-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.bp-spec-val {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

.bp-spec-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 6. Human-centric NGO Section */
.ngo-trust-card {
    border-left: 5px solid var(--color-sjwt);
}

.ngo-story-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .ngo-story-section {
        grid-template-columns: 5fr 7fr;
    }
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .sub-nav-bar {
        position: sticky;
        top: 0;
        z-index: 900;
        padding: 8px 0;
        background-color: #ffffff;
    }
    .sub-nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .sub-nav-logo {
        justify-content: center;
        padding: 4px 0;
    }
    .sub-nav-brand-title {
        font-size: 1.05rem;
    }
    .sub-nav-brand-subtitle {
        font-size: 0.7rem;
    }
    .sub-nav-links {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 4px 4px 8px 4px;
        gap: 8px;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
    }
    .sub-nav-links::-webkit-scrollbar {
        display: none;
    }
    .sub-nav-link {
        padding: 8px 16px;
        font-size: 0.82rem;
        font-weight: 600;
        color: #475569;
        background-color: #f1f5f9;
        border-radius: 20px;
        border: 1px solid #e2e8f0;
        flex-shrink: 0;
        display: inline-block;
        text-align: center;
        transition: all 0.2s ease;
    }
    .sub-nav-link::after {
        display: none !important;
    }
    .sub-nav-link.active,
    .sub-nav-link:hover {
        background-color: var(--theme-color, #0B3C5D);
        color: #ffffff !important;
        border-color: var(--theme-color, #0B3C5D);
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
}

@media (max-width: 768px) {
    .global-portal-bar {
        padding: 8px 0;
    }
    .global-portal-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .portal-links {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        padding: 4px 2px;
        gap: 6px;
        scrollbar-width: none;
    }
    .portal-links::-webkit-scrollbar {
        display: none;
    }
    .portal-link {
        flex-shrink: 0;
        font-size: 11px;
        padding: 4px 8px;
    }
    .ms-hero {
        padding: 3.5rem 0 4rem;
        text-align: center;
    }
    .ms-hero-desc {
        margin: 0 auto;
        font-size: 1rem;
    }
    .ms-section {
        padding: 1.5rem 0;
    }
    .ms-card {
        padding: 22px;
    }
    .bp-showcase {
        padding: 24px;
    }
}

/* Global Responsive Layout Utility Classes */
.responsive-split-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
@media (min-width: 992px) {
    .responsive-split-2 {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.responsive-split-1-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}
@media (min-width: 768px) {
    .responsive-split-1-2 {
        grid-template-columns: minmax(180px, 220px) 1fr;
        gap: 32px;
    }
}

.responsive-form-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .responsive-form-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.responsive-stats-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .responsive-stats-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.responsive-badges-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 768px) {
    .responsive-badges-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Global Text Justification for Paragraphs */
p, .about-p, .hp-hero-p, .cta-desc, .why-card-desc, .trust-card-desc, .wcu-card-desc, .loc-card-desc, .founder-bio p, .contact-details-text, .section-desc, .bp-showcase-desc, .service-desc, .benefit-desc, .blog-excerpt, .faq-answer {
    text-align: justify;
}

/* ==========================================================================
   Company Services Section - Responsive Design & Matrix Styles
   ========================================================================== */
.company-service-tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding: 4px 0;
}

.company-tab-btn {
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid var(--border-color, #E2E8F0);
    background-color: #ffffff;
    color: var(--text-dark, #1E293B);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.company-tab-btn:hover {
    border-color: var(--primary-blue, #0B3C5D);
    color: var(--primary-blue, #0B3C5D);
    transform: translateY(-1px);
}

.company-tab-btn.active {
    background-color: var(--primary-blue, #0B3C5D) !important;
    color: #ffffff !important;
    border-color: var(--primary-blue, #0B3C5D) !important;
    box-shadow: 0 4px 12px rgba(11, 60, 93, 0.2);
}

.companies-services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.company-services-block {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color, #E2E8F0);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.company-services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.company-header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-header-logo {
    width: 54px;
    height: 54px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border-color, #E2E8F0);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.company-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-header-title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
}

.company-header-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.4;
}

.company-header-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.25s ease;
    min-height: 42px;
}

.company-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    border-radius: 12px;
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.category-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.category-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

.category-title {
    margin: 0;
    font-size: 1.18rem;
    color: #0F172A;
    font-weight: 700;
    line-height: 1.3;
}

.category-list {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    font-size: 0.93rem;
    line-height: 1.65;
}

.category-list li {
    margin-bottom: 8px;
    word-break: break-word;
}

.category-list li:last-child {
    margin-bottom: 0;
}

/* Media Queries for Services Matrix & Global Responsive Layouts */
@media (max-width: 991px) {
    .company-services-block {
        padding: 24px;
    }
    .company-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .company-service-tabs-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-bottom: 24px;
        scrollbar-width: none;
        gap: 8px;
    }
    .company-service-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }
    .company-tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        flex-shrink: 0;
        min-height: 38px;
    }
    .company-services-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding-bottom: 16px;
        margin-bottom: 20px;
    }
    .company-header-brand {
        gap: 12px;
    }
    .company-header-logo {
        width: 46px;
        height: 46px;
    }
    .company-header-title {
        font-size: 1.3rem;
    }
    .company-header-subtitle {
        font-size: 0.85rem;
    }
    .company-header-btn {
        width: 100%;
        text-align: center;
    }
    .company-categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .category-card {
        padding: 18px 16px;
    }
    .category-title {
        font-size: 1.08rem;
    }
    .category-list {
        font-size: 0.88rem;
        padding-left: 18px;
        line-height: 1.55;
    }
    .service-desc-detail {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .company-services-block {
        padding: 16px 14px;
        border-radius: 12px;
    }
    .company-header-brand {
        flex-direction: row;
        align-items: center;
    }
    .company-header-title {
        font-size: 1.18rem;
    }
    .category-card-header {
        gap: 8px;
    }
    .category-badge {
        padding: 4px 10px;
        font-size: 0.72rem;
    }
    .category-title {
        font-size: 1.02rem;
    }
}

