/* ===================================
   CERTIFICATION PAGE STYLES
   =================================== */

/* ========== SERVICE HERO ========== */
.service-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1E3A8A 0%, #374151 100%);
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(55, 65, 81, 0.88) 100%);
    z-index: 2;
}

.service-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.service-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* ========== SERVICE SECTIONS ========== */
.service-section {
    padding: 80px 0;
    position: relative;
    background: #FFFFFF;
}

.service-section:nth-of-type(even) {
    background: #F9FAFB;
}

.service-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-text,
.service-approach-text {
    max-width: 900px;
    margin: 0 auto;
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-text p,
.service-approach-text p {
    margin-bottom: 1.5rem;
}

.service-text strong,
.service-approach-text strong {
    color: #1E3A8A;
    font-weight: 600;
}

/* ========== STANDARDS GRID ========== */
.service-standards {
    background: #F9FAFB;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.standard-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.standard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15);
    border-color: #1E3A8A;
}

.standard-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #FFFFFF;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.standard-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

.standard-subtitle {
    font-size: 0.95rem;
    color: #6B7280;
    font-style: italic;
    margin-bottom: 1rem;
}

.standard-desc {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
}

/* ========== SITUATIONS SECTION ========== */
.situations-section {
    background: #FFFFFF;
}

.situations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.situation-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 8px;
    border-left: 4px solid #1E3A8A;
    transition: all 0.3s ease;
}

.situation-item:hover {
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
    transform: translateX(5px);
}

.situation-item i {
    font-size: 1.5rem;
    color: #1E3A8A;
    margin-right: 1rem;
    min-width: 30px;
}

.situation-item span {
    font-size: 1.05rem;
    color: #374151;
    font-weight: 500;
}

/* ========== APPROACH SECTION ========== */
.service-approach {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.service-approach-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.service-approach-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.90) 0%, rgba(55, 65, 81, 0.85) 100%);
    z-index: 2;
}

.service-approach-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.service-approach .service-section-title {
    color: #FFFFFF;
}

.service-approach-text {
    color: #FFFFFF;
    font-size: 1.15rem;
}

/* ========== WORKFLOW SECTION ========== */
.service-workflow {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.service-workflow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.service-workflow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.85);
    z-index: 2;
}

.service-workflow-content {
    position: relative;
    z-index: 3;
}

.service-workflow .service-section-title {
    color: #FFFFFF;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid #3B82F6;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.workflow-step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3B82F6;
    min-width: 60px;
    text-align: center;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

/* ========== GXP MATRIX TABLE ========== */
.gxp-matrix-section {
    background: #F9FAFB;
}

.matrix-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.7;
}

.matrix-intro p {
    margin-bottom: 1rem;
}

.matrix-intro strong {
    color: #1E3A8A;
}

.matrix-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gxp-matrix-table {
    width: 100%;
    background: #FFFFFF;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.gxp-matrix-table thead {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
}

.gxp-matrix-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #FFFFFF;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gxp-matrix-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
    transition: background 0.2s ease;
}

.gxp-matrix-table tbody tr:hover {
    background: #F9FAFB;
}

.gxp-matrix-table td {
    padding: 1rem;
    color: #374151;
    vertical-align: middle;
}

.standard-cell {
    text-align: center;
}

.standard-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0.2rem;
}

.standard-badge.gdp {
    background: #DBEAFE;
    color: #1E40AF;
}

.standard-badge.gpp {
    background: #D1FAE5;
    color: #065F46;
}

.standard-badge.gmp {
    background: #FEE2E2;
    color: #991B1B;
}

.standard-badge.glp {
    background: #FEF3C7;
    color: #92400E;
}

.standard-badge.gsp {
    background: #E9D5FF;
    color: #6B21A8;
}

.matrix-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #EFF6FF;
    border-radius: 8px;
    border-left: 4px solid #3B82F6;
}

.note-icon {
    font-size: 1.5rem;
    color: #3B82F6;
    min-width: 30px;
}

.matrix-note p {
    margin: 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}

.matrix-note strong {
    color: #1E3A8A;
}

/* ========== REGULATORY DOCS ========== */
.regulatory-docs-section {
    background: #FFFFFF;
}

.regulatory-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.8;
}

.regulatory-docs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.doc-card {
    background: #F9FAFB;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.doc-card:hover {
    background: #FFFFFF;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.1);
    transform: translateY(-5px);
}

.doc-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.doc-content {
    flex: 1;
}

.doc-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 0.8rem;
}

.doc-description {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3B82F6;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.doc-link:hover {
    color: #1E3A8A;
    gap: 0.7rem;
}

.doc-link i {
    font-size: 0.85rem;
}

/* ========== INSPECTION PROCESS ========== */
.inspection-process-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.process-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.process-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(55, 65, 81, 0.90) 100%);
    z-index: 2;
}

.process-content {
    position: relative;
    z-index: 3;
}

.process-intro {
    margin-bottom: 3rem;
}

.inspection-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.inspection-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.inspection-step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.step-number-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.step-info {
    flex: 1;
}

.step-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.4;
}

/* ========== CTA SECTION ========== */
.service-cta {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.service-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(55, 65, 81, 0.88) 100%);
    z-index: 1;
}

.service-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.service-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.service-cta-text {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .service-hero-title {
        font-size: 2.5rem;
    }
    
    .service-section-title {
        font-size: 2rem;
    }
    
    .standards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .situations-list {
        grid-template-columns: 1fr;
    }
    
    .inspection-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .service-hero {
        min-height: 500px;
    }
    
    .service-hero-title {
        font-size: 2rem;
    }
    
    .service-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .service-section {
        padding: 60px 0;
    }
    
    .service-section-title {
        font-size: 1.8rem;
    }
    
    .standards-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        min-width: auto;
    }
    
    .gxp-matrix-table {
        font-size: 0.85rem;
    }
    
    .gxp-matrix-table th,
    .gxp-matrix-table td {
        padding: 0.8rem 0.6rem;
    }
    
    .regulatory-docs-list {
        grid-template-columns: 1fr;
    }
    
    .doc-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .inspection-steps {
        grid-template-columns: 1fr;
    }
    
    .service-cta-title {
        font-size: 1.8rem;
    }
    
    .service-cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-hero-title {
        font-size: 1.6rem;
    }
    
    .service-hero-subtitle {
        font-size: 1rem;
    }
    
    .service-section-title {
        font-size: 1.5rem;
    }
    
    .standard-title {
        font-size: 1.5rem;
    }
    
    .standard-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .workflow-step {
        padding: 1rem;
    }
    
    .step-number {
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
}
