/* ================================================================
   CERTIFICATIONS.CSS
   Surgicrafts Certifications Page
   Color scheme matches index.css: red (#c8102e), black (#0d0d0d)
================================================================ */

:root {
    --red: #c8102e;
    --red-dark: #9b0d23;
    --red-light: rgba(200, 16, 46, 0.1);
    --black: #0d0d0d;
    --white: #ffffff;
    --dark: #161616;
    --gray: #3a3a3a;
    --gray-light: #6c757d;
    --light: #f5f5f5;
    --mid: #777;
    --border: #e9ecef;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ================================================================
   CERTIFICATIONS HERO SECTION
================================================================ */
.certifications-hero {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    overflow: hidden;
}

.certifications-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1581091226033-d5c48150dbaa?w=800&q=80') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.certifications-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.certifications-hero-content .label {
    color: var(--red);
    margin-bottom: 16px;
}

.certifications-hero-content .heading {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 16px;
}

.certifications-hero-content .divider {
    margin-bottom: 20px;
}

.certifications-hero-content .sub {
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    font-size: 1rem;
}

/* ================================================================
   CERTIFICATIONS GRID SECTION
================================================================ */
.certifications-grid-section {
    background: var(--light);
    padding: 60px 0;
}

/* Stats Bar */
.cert-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.cert-stat {
    text-align: center;
}

.cert-stat-number {
    font-family: "Oswald", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
}

.cert-stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Certification Cards Grid */
.certs-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--red);
}

.cert-card-icon {
    width: 80px;
    height: 80px;
    background: var(--red-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cert-card-icon i {
    font-size: 2.5rem;
    color: var(--red);
}

.cert-card-title {
    font-family: "Oswald", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}

.cert-card-desc {
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cert-card-footer {
    margin-top: auto;
}

.cert-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--red-light);
    color: var(--red);
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ================================================================
   CERTIFICATION DETAILS ACCORDION
================================================================ */
.cert-details-section {
    background: var(--white);
    padding: 60px 0;
}

.cert-accordion {
    max-width: 900px;
    margin: 50px auto 0;
}

.accordion-item {
    background: var(--light);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    cursor: pointer;
    background: var(--white);
    border-radius: 16px;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--red-light);
}

.accordion-icon {
    width: 45px;
    height: 45px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.accordion-header h3 {
    flex: 1;
    font-family: "Oswald", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.accordion-toggle {
    color: var(--red);
    font-size: 1rem;
    transition: var(--transition);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--white);
}

.accordion-content-inner {
    padding: 20px 25px;
    border-top: 1px solid var(--border);
}

.accordion-content-inner p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gray);
}

.accordion-content-inner p strong {
    color: var(--black);
    width: 140px;
    display: inline-block;
}

.accordion-item.active .accordion-header {
    background: var(--red-light);
}

/* ================================================================
   WHY CERTIFICATIONS MATTER SECTION
================================================================ */
.why-cert-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--black) 100%);
    padding: 80px 0;
}

.why-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-cert-content .label {
    color: var(--red);
}

.why-cert-content .heading {
    color: var(--white);
    margin-bottom: 16px;
}

.why-cert-content .divider {
    margin-bottom: 20px;
}

.why-cert-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
}

.why-cert-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-cert-feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.why-cert-feature i {
    font-size: 1.5rem;
    color: var(--red);
    margin-top: 5px;
}

.why-cert-feature h4 {
    font-family: "Oswald", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.why-cert-feature p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.why-cert-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.why-cert-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

.image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--red);
    padding: 10px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-badge i {
    color: var(--white);
    font-size: 1rem;
}

.image-badge span {
    color: var(--white);
    font-weight: 600;
}

/* ================================================================
   CERTIFICATION PROCESS SECTION
================================================================ */
.cert-process-section {
    background: var(--light);
    padding: 60px 0;
}

.process-timeline {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--red-light);
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-content {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    flex: 1;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.step-content h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.6;
    margin: 0;
}

/* ================================================================
   CTA SECTION
================================================================ */
.cert-cta-section {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    padding: 60px 0;
    text-align: center;
}

.cert-cta-section .cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cert-cta-section .heading {
    color: var(--white);
    margin-bottom: 16px;
}

.cert-cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--red);
}

/* ================================================================
   RESPONSIVE DESIGN
================================================================ */
@media (max-width: 992px) {
    .cert-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .why-cert-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-cert-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .certifications-hero {
        padding: 50px 0;
    }
    
    .certifications-hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .certifications-hero-content .divider {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cert-stats-bar {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .certs-detailed-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .step-content {
        padding: 15px;
    }
    
    .accordion-header {
        padding: 15px 20px;
    }
    
    .accordion-icon {
        width: 35px;
        height: 35px;
    }
    
    .accordion-header h3 {
        font-size: 0.85rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .cert-card {
        padding: 20px;
    }
    
    .cert-card-icon {
        width: 60px;
        height: 60px;
    }
    
    .cert-card-icon i {
        font-size: 1.8rem;
    }
    
    .accordion-content-inner p strong {
        width: auto;
        display: block;
        margin-bottom: 4px;
    }
    
    .step-content:hover {
        transform: translateX(5px);
    }
}