/* ==========================================================================
   DIAGNOSTICS CENTER MODERNISMS INTERFACE STYLESHEET
   ========================================================================== */

.dg-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    margin-top:50px;
}

.dg-system-badge {
    display: inline-block;
    color: #4f8267;
    background-color: rgba(79, 130, 103, 0.08);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.dg-text-blue {
    color: #326295;
}

/* --- SECTION 1: HERO VIEWPORTS --- */
.dg-tech-hero {
    position: relative;
    background: #ffffff;
    padding: 100px 0;
    overflow: hidden;
    border-bottom: 1px solid #eef2f5;
}

.dg-hero-radial {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(244,248,250,0.8) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.dg-hero-split {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.dg-main-heading {
    font-size: 3.25rem;
    color: #1a4d6c;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.dg-lead-desc {
    font-size: 1.1rem;
    color: #60737d;
    line-height: 1.65;
    margin: 0;
}

.dg-hero-metrics-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dg-metric-pill {
    background: #ffffff;
    border: 1px solid #edf2f6;
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(26, 77, 108, 0.02);
}

.dg-pill-icon {
    width: 40px;
    height: 40px;
    background: #f4f8fb;
    color: #326295;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.dg-metric-pill span {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a4d6c;
}

/* --- SECTION 2: 3D CARD INTERACTIVES --- */
.dg-capabilities-block {
    padding: 100px 0;
    background-color: #fafbfc;
}

.dg-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}
.dg-section-header h2 { font-size: 2.5rem; color: #1a4d6c; font-weight: 800; margin: 0 0 14px 0; }
.dg-section-header p { color: #60737d; margin: 0; font-size: 1.05rem; }

.dg-flip-deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

/* Perspective setup for pristine 3D rotation steps */
.dg-flip-card-wrapper {
    perspective: 1200px;
    height: 280px;
}

.dg-card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dg-flip-card-wrapper:hover .dg-card-flipper {
    transform: rotateY(180deg);
}

.dg-face-panel {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 40px 35px;
    box-sizing: border-box;
    border: 1px solid #edf2f6;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dg-face-front {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(26, 77, 108, 0.02);
}

.dg-face-back {
    background: #ffffff;
    transform: rotateY(180deg);
    border-color: rgba(50, 98, 149, 0.2);
    box-shadow: 0 15px 35px rgba(50, 98, 149, 0.05);
}

.dg-card-icon-frame {
    width: 48px;
    height: 48px;
    background: #f0f6f9;
    color: #326295;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.back-icon {
    background: #eef5f8;
}

.dg-face-panel h3 {
    font-size: 1.3rem;
    color: #1a4d6c;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.dg-face-panel p {
    color: #60737d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.dg-action-hint {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4f8267;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- SECTION 3: INFRASTRUCTURE MATRIX --- */
.dg-infrastructure-matrix {
    padding: 100px 0;
    background-color: #ffffff;
}

.dg-infra-row-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.dg-infra-text h2 {
    font-size: 2.5rem;
    color: #1a4d6c;
    font-weight: 800;
    margin: 0 0 16px 0;
}

.dg-infra-lead {
    font-size: 1.1rem;
    color: #60737d;
    line-height: 1.65;
    margin: 0 0 35px 0;
}

.dg-checklist-cloud {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dg-check-node {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #1a4d6c;
}

.dg-check-node i {
    color: #4f8267;
    font-size: 1.05rem;
}

.dg-infra-media { width: 100%; }
.dg-media-mask-box {
    width: 100%;
    height: 440px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(26, 77, 108, 0.05);
}
.dg-media-mask-box img { width: 100%; height: 100%; object-fit: cover; }

/* --- SECTION 4: FLOATING GLASS ACTION DASHBOARD --- */
.dg-dispatch-cta {
    padding: 60px 0 100px 0;
    background-color: #ffffff;
}

.dg-cta-glass-dashboard {
    background: linear-gradient(135deg, #1a4d6c 0%, #0d2b3e 100%);
    border-radius: 16px;
    padding: 45px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(13, 43, 62, 0.15);
}

.dg-cta-text-bundle h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.dg-cta-text-bundle p {
    margin: 0;
    color: #b0c4cf;
    font-size: 0.98rem;
    line-height: 1.5;
}

.dg-cta-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #1a4d6c;
    padding: 16px 36px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.dg-cta-trigger-btn:hover {
    background: #326295;
    color: #ffffff;
    transform: translateY(-2px);
}
/* --- MICRO-ANIMATION PERFORMANCE STACK --- */
.dg-card-flipper {
    /* Ensures transform shifts ignore default timing snaps when mouse actively triggers values */
    transition: transform 0.1s linear; 
    will-change: transform;
}

.dg-flip-card-wrapper:not(:hover) .dg-card-flipper {
    /* Uses smooth easing only when resetting back to starting frame position state */
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.dg-metric-pill:hover {
    transform: translateY(-3px) scale(1.02) !important;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border-color: rgba(50, 98, 149, 0.3) !important;
}
/* --- ADAPTIVE BREAKPOINTS RESPONSIBILITY --- */
@media (max-width: 992px) {
    .dg-hero-split, .dg-infra-row-split, .dg-cta-glass-dashboard { grid-template-columns: 1fr; gap: 40px; }
    .dg-main-heading { font-size: 2.5rem; }
    .dg-hero-metrics-track { flex-direction: row; flex-wrap: wrap; }
    .dg-cta-glass-dashboard { flex-direction: column; text-align: center; padding: 40px; }
    .dg-cta-trigger-btn { width: 100%; justify-content: center; }
    .dg-media-mask-box { height: 350px; }
}

@media (max-width: 576px) {
    .dg-hero-metrics-track { flex-direction: column; }
    .dg-metric-pill { width: 100%; }
    .dg-flip-card-wrapper { height: 310px; }
}