/* Translation Page Specific Styles */

/* --- Hero Section (Background Image Mode) --- */
.hero-translation {
    position: relative;
    /* White Background */
    background-color: #ffffff;
    background-image: url('../images/bento_translation.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    /* Fixed can be buggy on mobile */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding-top: 220px;
    padding-bottom: 140px;
    /* Reduced specific vertical space */
    min-height: auto !important;

    /* Prevent Horizontal Scroll */
    overflow-x: hidden;
    width: 100%;
}

.hero-overlay {
    /* Visible Overlay with More Teal, Less Opacity */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 252, 253, 0.96) 100%);
    z-index: 1;
}

/* Hide Foreground Image Wrapper (No Mask) */
.hero-image-wrapper {
    /* Position */
    width: 120%;
    /* Allow stagger bleed */
    margin-left: -10%;
    /* Center the effect */
    z-index: 0;

    /* Mask: 3 Overlapping Staggered Horizontal Pills - Maximum Rounding */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='-10' y='0' width='110' height='45' rx='25' fill='black'/%3E%3Crect x='10' y='28' width='110' height='45' rx='25' fill='black'/%3E%3Crect x='-5' y='55' width='115' height='45' rx='25' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='-10' y='0' width='110' height='45' rx='25' fill='black'/%3E%3Crect x='10' y='28' width='110' height='45' rx='25' fill='black'/%3E%3Crect x='-5' y='55' width='115' height='45' rx='25' fill='black'/%3E%3C/svg%3E");

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    /* Reset other props */
    transform: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: visible;
    display: none !important;
}

.hero-image-wrapper img {
    /* Scale img to fit blob properly */
    width: 100%;
    height: auto;
    object-fit: cover;

    /* Reset skew compensation */
    transform: none;

    /* Ensure no residual styles interfere */
    clip-path: none;
    filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    display: none !important;
}

/* Removed hover scale effect */

@media (max-width: 991px) {
    .hero-translation {
        padding-top: 120px !important;
        padding-bottom: 40px !important;
    }
}

/* New Pill Badge Style (Replaces text-gold-gradient usage for SuperTitle) */
/* hero-pill-badge moved to site.css as .badge-pill-gold */

/* Overhang Logic REMOVED for Mosaic Layout */
@media (min-width: 992px) {
    .hero-upload-col {
        padding-left: 40px;
    }
}

/* Ensure Layout Stacking Order for Overhang */
.hero-translation {
    z-index: 10;
    /* Hero above workflow */
}

.workflow-section {
    position: relative;
    z-index: 1;
    /* Workflow below hero elements */
    padding-top: 100px !important;
    /* Reduced padding since no overhang */
    position: relative;
}



.hero-container-grid {
    display: block;
    /* Switched to block for single column stack */
    max-width: 1280px;
    /* Standardize to 1280px */
    /* Widened significantly for Ribbon + Form Layout */
    margin: 0 auto;
    padding: 0 24px;
    /* Standardize to 24px */
    text-align: center;
    /* Center everything by default now */
    z-index: 2;
    position: relative;
}

@media (max-width: 991px) {
    .hero-container-grid {
        grid-template-columns: 1fr;
        /* Removed text-align: center */
    }
}

/* --- Side-by-Side Layout CSS -> Centered for Background Mode --- */
/* Force full width and centering for the text column since right col is gone */
.hero-text-col {
    text-align: center !important;
    margin: 0 auto;
    padding-right: 0;
    color: #002b36 !important;
    /* Force Dark Text */
    z-index: 5;
    position: relative;
    max-width: 900px !important;
    /* Limit width for readability */
    width: 100% !important;
    flex: 0 0 100% !important;
}

.hero-text-col h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #005f6b !important;
    /* Word 'Translation' Dark Teal */
    text-shadow: none !important;
    /* Remove any text shadows */
}

/* Highlight text override */
.hero-highlight-text {
    color: var(--brand-teal) !important;
    /* Highlight 'AI'/'Mastery' Brighter Teal */
    background: none !important;
    -webkit-text-fill-color: initial !important;
    /* Reset gradient text hacks */
}

.hero-text-col p {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #555 !important;
    /* Force Dark Subtitle */
    font-size: 1.2rem;
    text-shadow: none !important;
}

/* Trusted Badge updates for light bg */
.trusted-text,
.trusted-text span {
    color: #666 !important;
    text-shadow: none !important;
    font-size: 1rem;
    /* Ensure consistent base size */
    line-height: 1.4;
}

.trusted-text strong,
.trusted-text b {
    color: #005f6b !important;
    /* '500+' Dark Teal */
}

/* Flex Container for Badge */
.trusted-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0 !important;
    /* Override homepage.css margin which caused misalignment */
}

/* Trusted Badge updates for light bg */
.trusted-text {
    color: #666 !important;
}

.hero-certs.trusted-text {
    /* Ensure ISO text aligns optically with the adjacent text */
    position: relative;
    top: 0;
}

@media (max-width: 991px) {
    .hero-text-col {
        text-align: center !important;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-text-col h1 {
        text-align: center !important;
        font-size: 2.8rem;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }


    .hero-text-col p {
        text-align: center !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Reduce aggressive gutters on mobile to prevent horizontal overflow */
    .g-5,
    .gy-5 {
        --bs-gutter-x: 1.5rem !important;
        --bs-gutter-y: 1.5rem !important;
    }
}

/* Removed Overlap Container */
.hero-overlap-container {
    display: none;
}



/* Redundant styles removed (hero-translation-badge, hero-title-large, hero-subtitle) as we now reuse homepage.css classes */










.mosaic-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--brand-gold);
}

/* Upload styles moved to site.css (Global) */




/* --- Service Tiers Tabs (Light Theme) --- */
.tiers-section {
    background: #ffffff;
    padding: 120px 0;
    position: relative;
    overflow: visible;
    /* Allow tabs to overlap hero */
    color: #333;
    z-index: 20;
    /* Ensure on top of hero */
}



.tiers-section .container-custom {
    position: relative;
    z-index: 1;
}

/* Ensure section headlines use brand teal */
.tiers-section .section-headline {
    color: var(--brand-teal) !important;
    font-weight: 800;
}

.tiers-section .section-subheadline {
    color: #555 !important;
}

.tabs-nav-container {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 20;
    margin-top: -150px;
    /* Pull up significantly to intersect the section border */
    margin-bottom: 60px;
    /* Push content down to compensate */
}

.tabs-nav {
    display: inline-flex;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(13, 128, 140, 0.1);
    /* Subtle Teal Border */
    padding: 10px;
    border-radius: 100px;
    box-shadow: 0 20px 50px rgba(0, 43, 54, 0.15);
    flex-wrap: nowrap;
    /* Never wrap — scale down instead */
    max-width: 100%;
    gap: 6px;
}

/* Tablet: scale buttons down so they fit in one row */
@media (min-width: 769px) and (max-width: 991px) {
    .tabs-nav {
        padding: 8px;
        gap: 4px;
    }

    .tab-btn {
        padding: 10px 16px !important;
        font-size: 0.82rem !important;
    }
}

/* Small tablet / large phone landscape */
@media (min-width: 769px) and (max-width: 850px) {
    .tab-btn {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    .tabs-nav {
        border-radius: 20px;
        /* Reduced radius for stacked look */
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        /* Stack vertically on mobile */
        padding: 16px;
    }

    .tab-btn {
        width: 100%;
        /* Full width buttons */
        padding: 14px 20px;
        text-align: center;
        border-radius: 50px !important;
    }
}

.tab-btn {
    background: transparent;
    border: none;
    color: #555;
    /* Medium grey for inactive */
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    /* Slightly larger text */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--brand-teal);
}

.tab-btn.active {
    background: var(--brand-teal);
    color: #fff;
    box-shadow: 0 5px 15px rgba(13, 128, 140, 0.4);
}

/* Smooth Panel Transition */
.tab-content-panel {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tab-content-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tier-display {
    background: #fff;
    /* White card */
    border-radius: 30px;
    padding: 60px;
    border: 1px solid #eef3f4;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    box-shadow: 0 30px 60px rgba(0, 43, 54, 0.06);
    position: relative;
    overflow: hidden;
}

/* Glow effect inside tier display */
.tier-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 128, 140, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

@media (max-width: 991px) {
    .tier-display {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }
}

.tier-detail {
    position: relative;
}

.tier-badge-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-teal);
    /* Brand teal presence */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.tier-detail h3 {
    color: var(--brand-teal);
    /* Switched from navy to brand teal */
    font-size: 2.1rem;
    /* Reduced from 2.8rem */
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.tier-detail .tier-desc {
    font-size: 1.2rem;
    color: #555;
    /* Dark grey */
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

.feature-list li {
    color: #333;
    /* Darker text */
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.feature-list li i {
    color: var(--brand-teal);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tier-apply-box {
    background: #f8fafb;
    /* Lightest grey-teal */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eaeff0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tier-apply-box h4 {
    color: var(--brand-teal);
    /* Brand teal for subheaders */
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.tier-apply-box ul {
    list-style: none;
    padding: 0;
}

.tier-apply-box li {
    color: #444;
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeff0;
}

.apply-bullet {
    color: var(--brand-teal);
    /* Changed to teal for contrast */
    font-size: 0.7rem;
    /* Smaller, subtle bullet */
    margin-top: 5px;
    /* Align with text */
    flex-shrink: 0;
}

.tier-apply-box li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Copying the highlight text style for translation page if not globally available, or ensuring it works on dark */
.hero-highlight-text {
    position: relative;
    display: inline;
    /* Changed to inline to match homepage */
}

.hero-highlight-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    /* Changed to 2px to match homepage */
    width: 100%;
    /* Adjusted for better visibility on 3rem text */
    width: 100%;
    height: 3px;
    background: var(--brand-gold);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(231, 206, 103, 0.5);
    z-index: -1;
}

/* --- ISO Certifications Section --- */
.iso-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
    z-index: 1;
}

.iso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.iso-card {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.iso-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.iso-logo-container img {
    max-height: 100%;
    width: auto;
}

.iso-card h4 {
    color: var(--brand-teal);
    font-weight: 800;
    margin-bottom: 15px;
}

.iso-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Metrics Section --- */
/* --- Metrics Section (PromptLoc Style) --- */
.metrics-section-trans {
    padding: 100px 0 120px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #004d61 0%, #002b36 70%);
}

.pl-impact-glass-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    border-radius: 1rem;
    padding: 1rem;
    min-height: 220px;
    /* Slight increase for larger content */
    max-width: 200px;
    /* Reduced width for performance */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.pl-impact-glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--brand-gold);
    transform: translateY(-8px);
}

.pl-shimmer-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 25%, rgba(255, 255, 255, 0.05) 50%, transparent 75%);
    background-size: 250% 250%;
    background-position: 100% 100%;
    transition: background-position 0.8s ease;
    pointer-events: none;
    z-index: 1;
}

.pl-impact-glass-card:hover .pl-shimmer-sweep {
    background-position: 0% 0%;
}

.pl-impact-icon-bg {
    position: absolute;
    right: -1rem;
    top: -1rem;
    color: rgba(255, 255, 255, 0.06);
    transform: rotate(12deg);
    transition: all 0.5s ease;
    pointer-events: none;
    font-size: 100px !important;
}

.pl-shimmer-sweep+.pl-impact-icon-bg+.pl-impact-card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pl-impact-glass-card:hover .pl-impact-icon-bg {
    transform: rotate(12deg) scale(1.1);
    color: rgba(255, 255, 255, 0.06);
}

.pl-impact-metric-prefix {
    color: var(--brand-gold);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.pl-impact-metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-gold);
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 0.25rem;
}

.pl-impact-metric-label {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: white;
    margin-top: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.pl-impact-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: rgba(212, 175, 55, 0.06);
    border-radius: 9999px;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* --- Case Studies Preview --- */
.case-studies-section {
    padding: 120px 0;
    background: #fff;
    position: relative;
    z-index: 1;
}

.cases-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 20px;
}

@media (max-width: 768px) {
    .cases-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.case-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 43, 54, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 43, 54, 0.15);
}

.case-img-wrap {
    height: 220px;
    overflow: hidden;
}

.case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-img-wrap img {
    transform: scale(1.05);
}

.case-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-content h4 {
    color: #002b36;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}



/* --- Metrics Section --- */
/* --- Metrics Section (PromptLoc Style) --- */
.metrics-section-trans {
    padding: 100px 0 120px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #004d61 0%, #002b36 70%);
}

.pl-impact-glass-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    border-radius: 1rem;
    padding: 0.85rem;
    /* Reduced padding */
    min-height: 180px;
    /* Reduced from 220px */
    max-width: 200px;
    /* Tighter width to fit numbers */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.pl-impact-glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--brand-gold);
    transform: translateY(-8px);
}

.pl-shimmer-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 25%, rgba(255, 255, 255, 0.05) 50%, transparent 75%);
    background-size: 250% 250%;
    background-position: 100% 100%;
    transition: background-position 0.8s ease;
    pointer-events: none;
    z-index: 1;
}

.pl-impact-glass-card:hover .pl-shimmer-sweep {
    background-position: 0% 0%;
}

.pl-impact-icon-bg {
    position: absolute;
    right: -1rem;
    top: -1rem;
    color: rgba(255, 255, 255, 0.06);
    transform: rotate(12deg);
    transition: all 0.5s ease;
    pointer-events: none;
    font-size: 100px !important;
}

.pl-shimmer-sweep+.pl-impact-icon-bg+.pl-impact-card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pl-impact-glass-card:hover .pl-impact-icon-bg {
    transform: rotate(12deg) scale(1.1);
    color: rgba(255, 255, 255, 0.06);
}

.pl-impact-metric-prefix {
    color: var(--brand-gold);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.pl-impact-metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-gold);
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 0.25rem;
}

.pl-impact-metric-label {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: white;
    margin-top: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.pl-impact-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: rgba(212, 175, 55, 0.06);
    border-radius: 9999px;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* --- Case Studies Preview --- */
.case-studies-section {
    padding: 120px 0;
    background: #fff;
    position: relative;
    z-index: 1;
}

.cases-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 20px;
}

@media (max-width: 768px) {
    .cases-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.case-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 43, 54, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 43, 54, 0.15);
}

.case-img-wrap {
    height: 220px;
    overflow: hidden;
}

.case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-img-wrap img {
    transform: scale(1.05);
}

.case-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-content h4 {
    color: #002b36;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.case-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- Hero Refinement: Trusted Badge --- */
.trusted-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.avatar-stack {
    display: flex;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #002b36;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -12px;
    position: relative;
    background: #fff;
    color: #002b36;
    font-size: 12px;
    font-weight: 700;
}

.avatar-circle:first-child {
    margin-left: 0;
}

.avatar-circle.av-1 {
    background: var(--brand-teal);
    color: white;
}

.avatar-circle.av-2 {
    background: var(--brand-gold);
    color: #002b36;
}

.avatar-circle.av-3 {
    background: #e0f2f1;
    color: var(--brand-teal);
}

.trusted-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--brand-teal-light);
    /* Or white depending on background */
    letter-spacing: -0.01em;
}

/* Bold white for "500+" */
.trusted-text strong {
    color: #fff;
    font-weight: 800;
}

/* --- Hero Refinement: Stack Layout --- */
/* Override container to be tight vertical stack */
.hero-glass-rects-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns */
    gap: 15px;
    /* Spacing between cards */
    width: 460px;
    /* Increased to fit 2 columns */
    position: relative;
    /* No wobble animation on container */
    margin-right: 0;
    /* Align back to center/context */
}

@media (max-width: 992px) {
    .hero-glass-rects-container {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        width: 100%;
        margin-top: 40px;
    }
}

/* Override existing rect styles for stack */
.hero-glass-rect {
    /* Remove float animation if present */
    animation: none !important;
    margin-bottom: 0 !important;

    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    /* Pill shape */
    backdrop-filter: blur(12px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    /* Depth gradient */
    border: 1px solid rgba(212, 163, 115, 0.2);
    /* Subtle Gold Tint */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-glass-rect:hover {
    /* transform: translateX(10px) !important; Removed hover slide */
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--brand-gold);
}

.rect-icon-wrap {
    width: 32px;
    height: 32px;
    background: rgba(212, 163, 115, 0.1);
    /* Gold tint bg */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    /* White icon */
    font-size: 1.4rem;
    /* Bigger icon */
}

.hero-glass-rect p.rect-label {
    margin: 0 !important;
    font-size: 1rem;
    font-family: 'Inter', sans-serif !important;
    /* Force Inter */
    font-weight: 300;
    /* Thin */
    letter-spacing: -0.5px;
    /* Tight spacing */
    color: var(--brand-gold);
    text-transform: none;
    /* Force non-caps */
}

/* --- Grid Layout Reset (No Stagger) --- */
@media (min-width: 992px) {

    /* Reset any transforms for clean grid */
    .hero-glass-rect {
        transform: none !important;
    }

    /* Keep static on hover */
    .hero-glass-rect:hover {
        transform: none !important;
    }
}

/* Reset for Mobile/Tablet */
@media (max-width: 991.98px) {
    .hero-glass-rect {
        transform: none !important;
    }
}


/* Force Gold Filter on ISO Logos */
.cert-logos-inline img {
    filter: sepia(100%) saturate(600%) brightness(90%) hue-rotate(5deg);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.cert-logos-inline img:hover {
    filter: none;
    opacity: 1;
}

/* ISO Section Responsive Padding */
@media (max-width: 768px) {
    .cert-text-col {
        padding-bottom: 30px;
    }
}

@media (max-width: 380px) {
    .hero-text-col h1 {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .tab-btn {
        font-size: 0.95rem;
        padding: 14px 18px;
        white-space: normal;
        line-height: 1.25;
    }

    .tier-detail h3 {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .tier-detail .tier-desc,
    .feature-list li span,
    .tier-apply-box li,
    .trusted-text {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .hero-text-col h1,
    .tab-btn,
    .tier-detail h3,
    .tier-detail .tier-desc,
    .feature-list li span,
    .tier-apply-box li,
    .trusted-text {
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}
