/* ==========================================================================
   INSTALLATION SERVICES DETAIL PAGE STYLESHEET
   Automation & Security Inc. (ASI)
   Full-Width Fluid Edge-to-Edge Design matching ASI Design System
   ========================================================================== */

:root {
    --inst-red: #e11d48;
    --inst-red-hover: #be123c;
    --inst-red-tint: #fee2e2;
    --inst-navy: #091830;
    --inst-navy-dark: #050d1a;
    --inst-dark-slate: #0f172a;
    --inst-muted: #64748b;
    --inst-body: #475569;
    --inst-border: #e2e8f0;
    --inst-bg-subtle: #f8fafc;
    --inst-card-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    --inst-card-shadow-hover: 0 10px 24px rgba(15, 23, 42, 0.1);
    --inst-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   FULL-WIDTH FLUID CONTAINER
   ========================================================================== */
.inst-container {
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
    padding-left: clamp(20px, 3.8vw, 64px);
    padding-right: clamp(20px, 3.8vw, 64px);
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.text-red {
    color: var(--inst-red) !important;
}

/* ==========================================================================
   1. HERO SECTION (Height matches background image proportion on all devices)
   ========================================================================== */
.inst-hero-section {
    position: relative;
    width: 100%;
    /* Keep the hero more compact while preserving the original image ratio. */
    aspect-ratio: 1920 / 640;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(16px, 2vw, 32px) 0;
    border-bottom: 1px solid var(--inst-border);
    box-sizing: border-box;
}

/* Background Image Wrapper (Matching Services & Projects Reference) */
.inst-hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.inst-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

/* Left overlay removed as hero-installation.png already has natural white on left */
.inst-hero-gradient-overlay {
    display: none;
}

.inst-hero-container {
    padding-top: 0;
    padding-bottom: 0;
}

.inst-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

/* Left Hero Content */
.inst-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: min(560px, 44vw);
    width: 100%;
}

/* Unified Pill-Badge Breadcrumb (Matches About Us, Solutions, Services, Projects) */
.inst-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--inst-muted);
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    max-width: 100%;
    box-sizing: border-box;
}

.inst-breadcrumb .breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.inst-breadcrumb .breadcrumb-link:hover {
    color: var(--inst-red);
}

.inst-breadcrumb .breadcrumb-icon {
    color: var(--inst-red);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.inst-breadcrumb .breadcrumb-sep {
    color: #cbd5e1;
    font-size: 12px;
}

.inst-breadcrumb .breadcrumb-current {
    color: var(--inst-navy);
    font-weight: 600;
}

/* Mini Tag */
.hero-tag-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    max-width: 100%;
}

.hero-tag-text {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--inst-red);
    text-transform: uppercase;
    line-height: 1.3;
}

/* Main Heading */
.inst-hero-title {
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--inst-dark-slate);
    letter-spacing: -0.8px;
    margin: 0 0 10px 0;
}

/* Subtitle */
.inst-hero-desc {
    font-size: clamp(13.5px, 0.98vw, 15px);
    line-height: 1.55;
    color: var(--inst-body);
    margin: 0 0 14px 0;
    max-width: 520px;
}

/* 4 Trust Features Row (2x2 Grid leaving right side open) */
.inst-hero-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 1vw, 12px);
    margin: 4px 0 18px 0;
    width: 100%;
    max-width: 520px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.9vw, 12px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    padding: 8px clamp(8px, 1vw, 12px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    min-width: 0;
}

.hero-feature-item:hover {
    transform: translateY(-2px);
    border-color: #fca5a5;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.08);
}

.hero-feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: var(--inst-red-tint);
    color: var(--inst-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-feature-icon svg {
    width: 20px;
    height: 20px;
}

.hero-feature-icon .material-icon {
    font-size: 20px;
}

.hero-feature-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hero-feature-title {
    font-size: clamp(11.5px, 0.85vw, 12.5px);
    font-weight: 700;
    color: var(--inst-navy);
    margin: 0;
    line-height: 1.25;
}

.hero-feature-desc {
    font-size: clamp(10px, 0.75vw, 11px);
    color: var(--inst-muted);
    margin: 0;
    line-height: 1.2;
}

/* Dual Hero Action Buttons (Below Features Cards) */
.inst-hero-actions {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 16px);
    margin: 0;
    flex-wrap: wrap;
}

.inst-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px clamp(18px, 1.6vw, 24px);
    background-color: var(--inst-red);
    color: #ffffff !important;
    font-size: clamp(13px, 0.92vw, 14px);
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28);
    transition: var(--inst-transition);
    line-height: 1.2;
}

.inst-btn-primary:hover {
    background-color: var(--inst-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.42);
}

.inst-btn-primary .btn-arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.inst-btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.inst-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px clamp(18px, 1.6vw, 24px);
    background-color: #ffffff;
    color: var(--inst-navy) !important;
    font-size: clamp(13px, 0.92vw, 14px);
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: var(--inst-transition);
    line-height: 1.2;
}

.inst-btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: var(--inst-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Floating Action / Quote Card (Right Side, Matching Services & Projects) */
.hero-quote-card {
    width: clamp(290px, 23vw, 340px);
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 14px;
    padding: clamp(20px, 2.2vw, 26px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    flex-direction: column;
}

.hero-quote-line {
    width: 32px;
    height: 3.5px;
    background-color: var(--inst-red);
    border-radius: 2px;
    margin-bottom: 12px;
}

.hero-quote-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--inst-dark-slate);
    line-height: 1.25;
    margin: 0 0 8px 0;
}

.hero-quote-desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--inst-body);
    margin: 0 0 18px 0;
}

.hero-quote-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.btn-talk-team {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background-color: var(--inst-red);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
    transition: var(--inst-transition);
    width: 100%;
    box-sizing: border-box;
}

.btn-talk-team:hover {
    background-color: var(--inst-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.42);
}

.btn-talk-team .arrow {
    transition: transform 0.2s ease;
}

.btn-talk-team:hover .arrow {
    transform: translateX(3px);
}

.btn-talk-team-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: transparent;
    color: var(--inst-navy);
    border: 1.5px solid var(--inst-border);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--inst-transition);
    width: 100%;
    box-sizing: border-box;
}

.btn-talk-team-secondary:hover {
    background: var(--inst-bg-subtle);
    border-color: var(--inst-navy);
}

/* ==========================================================================
   COMMON SECTION STYLING (Full Width Fluid)
   ========================================================================== */
.inst-section {
    padding: clamp(48px, 5vw, 76px) 0;
    position: relative;
    width: 100%;
}

.inst-section-heading-wrap {
    text-align: left;
    margin-bottom: clamp(28px, 3.5vw, 44px);
}

.inst-section-title {
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 800;
    color: var(--inst-navy);
    margin: 0 0 10px 0;
    letter-spacing: -0.015em;
}

.inst-section-subtitle {
    font-size: clamp(14px, 1.05vw, 15.5px);
    color: var(--inst-muted);
    margin: 0;
    line-height: 1.55;
    max-width: 640px;
}

/* ==========================================================================
   2. OUR INSTALLATION PROCESS (5 STEPS)
   ========================================================================== */
.inst-process-section {
    background: #ffffff;
    border-bottom: 1px solid var(--inst-border);
}

.inst-process-track {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.inst-step-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--inst-border);
    border-radius: 14px;
    padding: clamp(18px, 1.8vw, 24px) clamp(16px, 1.5vw, 20px);
    box-shadow: var(--inst-card-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--inst-transition);
    min-width: 0;
}

.inst-step-card:hover {
    border-color: var(--inst-red);
    transform: translateY(-3px);
    box-shadow: var(--inst-card-shadow-hover);
}

.inst-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.inst-step-num {
    background: var(--inst-red);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inst-step-icon {
    width: 24px;
    height: 24px;
    color: var(--inst-red);
    flex-shrink: 0;
}

.inst-step-icon svg {
    width: 100%;
    height: 100%;
}

.inst-step-icon .material-icon {
    font-size: 24px;
}

.inst-step-title {
    font-size: clamp(15px, 1.15vw, 17px);
    font-weight: 700;
    color: var(--inst-navy);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.inst-step-desc {
    font-size: clamp(12.5px, 0.95vw, 13.5px);
    line-height: 1.5;
    color: var(--inst-muted);
    margin: 0;
}

.inst-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--inst-red);
    font-size: 20px;
    font-weight: 800;
    user-select: none;
    padding: 0 4px;
    flex-shrink: 0;
}

/* ==========================================================================
   3. OUR INSTALLATION SERVICES COVER (20 SOLUTIONS GRID)
   ========================================================================== */
.inst-cover-section {
    background: var(--inst-bg-subtle);
    border-bottom: 1px solid var(--inst-border);
}

.inst-cover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 1.8vw, 24px);
    width: 100%;
}

.inst-cover-card {
    background: #ffffff;
    border: 1px solid var(--inst-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 215px; /* Noticeably increased card height */
    box-shadow: var(--inst-card-shadow);
    transition: var(--inst-transition);
}

.inst-cover-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

.inst-card-media {
    flex: 0 0 42%;
    background: #f8fafc;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inst-card-img {
    width: 100%;
    height: 100%;
    min-height: 185px;
    max-height: 215px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.inst-card-info {
    flex: 1;
    padding: clamp(20px, 1.8vw, 24px) clamp(16px, 1.6vw, 22px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.inst-card-icon {
    width: 26px;
    height: 26px;
    color: var(--inst-red);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.inst-card-icon svg {
    width: 100%;
    height: 100%;
}

.inst-card-icon .material-icon {
    font-size: 26px;
}

.inst-card-title {
    font-size: clamp(15.5px, 1.15vw, 17px);
    font-weight: 700;
    color: var(--inst-navy);
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.inst-title-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--inst-muted);
}

.inst-card-desc {
    font-size: clamp(12.5px, 0.95vw, 13.5px);
    line-height: 1.45;
    color: var(--inst-muted);
    margin: 0;
}

/* ==========================================================================
   4. TYPICAL INSTALLATION SCENARIOS (7 PILL ITEMS)
   ========================================================================== */
.inst-scenarios-section {
    background: #ffffff;
    border-bottom: 1px solid var(--inst-border);
}

.inst-scenarios-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(10px, 1.2vw, 16px);
    width: 100%;
}

.inst-scenario-item {
    background: #ffffff;
    border: 1px solid var(--inst-border);
    border-radius: 14px;
    padding: clamp(18px, 1.8vw, 24px) 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--inst-card-shadow);
    transition: var(--inst-transition);
}

.inst-scenario-item:hover {
    border-color: var(--inst-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.08);
}

.inst-scenario-icon {
    width: 36px;
    height: 36px;
    color: var(--inst-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inst-scenario-icon svg {
    width: 100%;
    height: 100%;
}

.inst-scenario-icon .material-icon {
    font-size: 28px;
}

.inst-scenario-label {
    font-size: clamp(12.5px, 0.95vw, 13.5px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--inst-navy);
}

/* ==========================================================================
   5. WHY CHOOSE ASI FOR INSTALLATION? (4 COLUMNS)
   ========================================================================== */
.inst-why-section {
    background: var(--inst-bg-subtle);
    border-bottom: 1px solid var(--inst-border);
}

.inst-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.6vw, 20px);
    width: 100%;
}

.inst-why-card {
    background: #ffffff;
    border: 1px solid var(--inst-border);
    border-radius: 14px;
    padding: clamp(20px, 2vw, 24px) clamp(16px, 1.6vw, 20px);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--inst-card-shadow);
    transition: var(--inst-transition);
}

.inst-why-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--inst-card-shadow-hover);
}

.inst-why-icon {
    flex: 0 0 36px;
    height: 36px;
    color: var(--inst-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inst-why-icon svg {
    width: 100%;
    height: 100%;
}

.inst-why-icon .material-icon {
    font-size: 28px;
}

.inst-why-text {
    flex: 1;
    min-width: 0;
}

.inst-why-title {
    font-size: clamp(15px, 1.1vw, 16px);
    font-weight: 700;
    color: var(--inst-navy);
    line-height: 1.25;
    margin: 0 0 6px 0;
}

.inst-why-desc {
    font-size: clamp(12.5px, 0.9vw, 13px);
    line-height: 1.5;
    color: var(--inst-muted);
    margin: 0;
}

/* ==========================================================================
   6. CTA BANNER ("Ready to install your system?")
   ========================================================================== */
.inst-cta-section {
    padding: clamp(40px, 4.5vw, 64px) 0;
    background: #ffffff;
    width: 100%;
}

.inst-cta-card {
    background: url("/images/services/cta-service-banner.png") center top / cover no-repeat;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    width: 100%;
    height: 303px;
}

.inst-cta-content {
    min-width: 0;
    width: 58%;
    padding: clamp(24px, 2.8vw, 40px) clamp(28px, 4vw, 52px);
    color: var(--inst-navy);
}

.inst-cta-title {
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 800;
    color: var(--inst-navy);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.inst-cta-desc {
    font-size: clamp(14px, 1.05vw, 15.5px);
    line-height: 1.6;
    color: #334155;
    margin: 0 0 18px 0;
    max-width: 480px;
}

.btn-cta-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e2025;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--inst-transition);
}

.btn-cta-banner:hover {
    background: var(--inst-red);
    border-color: var(--inst-red);
    transform: translateY(-2px);
}

/* ==========================================================================
   7. FREQUENTLY ASKED QUESTIONS (FAQ)
   ========================================================================== */
.inst-faq-section {
    background: var(--inst-bg-subtle);
    border-top: 1px solid var(--inst-border);
    width: 100%;
}

.inst-faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.inst-faq-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--inst-red);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--inst-transition);
}

.inst-faq-view-all:hover {
    color: var(--inst-red-hover);
    transform: translateX(3px);
}

.inst-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 1.8vw, 24px);
    width: 100%;
}

.inst-faq-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inst-faq-item {
    background: #ffffff;
    border: 1px solid var(--inst-border);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--inst-transition);
}

.inst-faq-item:hover {
    border-color: #cbd5e1;
}

.inst-faq-item.is-open {
    border-color: var(--inst-red);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.08);
}

.inst-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--inst-navy);
    text-align: left;
    gap: 12px;
}

.inst-faq-q-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.inst-faq-bullet {
    color: var(--inst-red);
    font-size: 18px;
    line-height: 1;
}

.inst-faq-icon {
    font-size: 20px;
    font-weight: 700;
    color: var(--inst-muted);
    transition: var(--inst-transition);
}

.inst-faq-item.is-open .inst-faq-icon {
    color: var(--inst-red);
}

.inst-faq-body {
    display: none;
    padding: 0 20px 18px 34px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--inst-body);
}

.inst-faq-item.is-open .inst-faq-body {
    display: block;
}

.inst-faq-body p {
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Fluid Full-Width Scaling Across All Devices)
   ========================================================================== */
@media (max-width: 1200px) {
    .inst-cover-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inst-scenarios-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .inst-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .inst-hero-section {
        height: auto;
        min-height: 0;
        aspect-ratio: 1920 / 640;
        padding: clamp(14px, 1.8vw, 24px) 0;
    }

    .inst-hero-bg-img {
        object-fit: cover;
        object-position: right center;
    }

    .inst-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .inst-hero-content {
        max-width: 440px;
    }

    .inst-hero-title {
        font-size: clamp(22px, 2.4vw, 28px);
        margin-bottom: 6px;
    }

    .inst-hero-desc {
        max-width: 420px;
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .inst-hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 440px;
        margin: 2px 0 14px 0;
    }

    .hero-feature-item {
        padding: 6px 10px;
    }

    .hero-feature-icon {
        width: 32px;
        height: 32px;
    }

    .hero-feature-title {
        font-size: 11px;
    }

    .hero-feature-desc {
        font-size: 9.5px;
    }

    .inst-hero-actions {
        margin-bottom: 0;
        gap: 10px;
    }

    .inst-btn-primary,
    .inst-btn-secondary {
        padding: 10px 18px;
        font-size: 12.5px;
    }

    .inst-cover-card {
        min-height: 200px;
    }

    .inst-card-img {
        min-height: 170px;
        max-height: 200px;
    }

    .inst-process-track {
        flex-direction: column;
        gap: 16px;
    }

    .inst-step-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }

    .inst-cta-card {
        height: 263px;
    }

    .inst-cta-content {
        width: 72%;
    }
}

@media (max-width: 768px) {
    .inst-hero-section {
        height: auto;
        min-height: auto;
        aspect-ratio: unset;
        padding: 20px 0 24px 0;
        background-color: #ffffff;
    }

    .inst-cta-card {
        height: 243px;
    }

    .inst-hero-bg-img {
        object-position: left center;
    }

    .inst-hero-content {
        max-width: 100%;
        width: 100%;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border: none;
    }

    .inst-breadcrumb {
        font-size: 12px;
        padding: 4px 10px;
        gap: 6px;
    }

    .inst-hero-title {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .inst-hero-desc {
        font-size: 13.5px;
        max-width: 100%;
        margin-bottom: 12px;
    }

    .inst-hero-features {
        grid-template-columns: repeat(2, 1fr);
        max-width: 420px;
        gap: 8px;
        margin: 4px 0 14px 0;
    }

    .inst-hero-features .hero-feature-item {
        padding: 7px 9px;
    }

    .inst-hero-features .hero-feature-icon {
        width: 26px;
        height: 26px;
    }

    .inst-hero-features .hero-feature-title {
        font-size: 11px;
    }

    .inst-hero-features .hero-feature-desc {
        font-size: 9.5px;
    }

    .inst-hero-actions {
        display: flex;
        flex-direction: row;
        width: 100%;
        max-width: 420px;
        gap: 10px;
        margin: 0;
        flex-wrap: wrap;
    }

    .inst-btn-primary,
    .inst-btn-secondary {
        flex: 1 1 auto;
        min-width: 200px;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13.5px;
    }

    .inst-cover-grid {
        grid-template-columns: 1fr;
    }

    .inst-cover-card {
        min-height: 185px;
    }

    .inst-scenarios-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .inst-why-grid {
        grid-template-columns: 1fr;
    }

    .inst-faq-grid {
        grid-template-columns: 1fr;
    }

    .inst-cta-content {
        width: 100%;
        padding: 32px 24px;
    }

}

@media (max-width: 600px) {
    .inst-hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: min(340px, 100%) !important;
        gap: 6px !important;
        margin-bottom: 12px;
    }

    .inst-hero-features .hero-feature-item {
        padding: 6px 8px !important;
    }

    .inst-hero-features .hero-feature-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .inst-hero-features .hero-feature-title {
        font-size: 10px !important;
    }

    .inst-hero-features .hero-feature-desc {
        font-size: 8.5px !important;
    }

    .inst-hero-actions {
        flex-direction: column !important;
        max-width: min(340px, 100%) !important;
        gap: 8px;
    }

    .inst-btn-primary,
    .inst-btn-secondary {
        width: 100% !important;
        min-width: unset !important;
        flex: none !important;
    }
}

@media (max-width: 480px) {
    .inst-cta-content {
        width: 88%;
        padding: 20px;
    }

    .inst-cta-card {
        height: auto;
        min-height: 230px;
        background-image:
            linear-gradient(90deg, rgba(248, 250, 252, 0.97) 0%, rgba(248, 250, 252, 0.92) 58%, rgba(248, 250, 252, 0.28) 100%),
            url("/images/services/cta-service-banner.png");
        background-position: center, right center;
    }

    .inst-cta-title {
        font-size: clamp(20px, 5.4vw, 24px);
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .inst-cta-desc {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .btn-cta-banner {
        gap: 6px;
        padding: 10px 14px;
        font-size: 12px;
        line-height: 1.3;
        white-space: normal;
    }

    .inst-scenarios-row {
        grid-template-columns: 1fr;
    }

    .inst-cover-card {
        flex-direction: column;
        min-height: auto;
    }

    .inst-card-media {
        flex: auto;
        height: 175px;
    }

    .inst-card-img {
        height: 100%;
        min-height: 175px;
        max-height: 175px;
    }
}
