/* Safecore Safety Solutions - Modern Industrial Styling */
:root {
    --sc-navy: #0b1727;
    --sc-navy-light: #162438;
    --sc-navy-card: #1f304a;
    --sc-orange: #f97316;
    --sc-orange-hover: #ea580c;
    --sc-amber: #f59e0b;
    --sc-yellow: #fbbf24;
    --sc-dark: #0f172a;
    --sc-gray-bg: #f8fafc;
    --sc-gray-border: #e2e8f0;
    --sc-text-main: #1e293b;
    --sc-text-muted: #64748b;
    --sc-success: #10b981;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--sc-text-main);
    background-color: #ffffff;
    overflow-x: hidden;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Navbar */
.sc-topbar {
    background-color: var(--sc-navy);
    font-size: 0.78rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-topbar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.sc-topbar a:hover {
    color: var(--sc-yellow);
}

.sc-navbar {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 0.55rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.sc-brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--sc-navy);
}

.sc-brand-title span {
    color: var(--sc-orange);
}

.sc-nav-link {
    font-weight: 600;
    color: #334155 !important;
    padding: 0.5rem 0.95rem !important;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: all 0.2s;
}

.sc-nav-link:hover, .sc-nav-link.active {
    color: var(--sc-orange) !important;
}

/* Hero Section (Modern Industrial Clean Style) */
.sc-hero {
    background: #ffffff;
    background-image: radial-gradient(#cbd5e1 0.75px, transparent 0.75px);
    background-size: 16px 16px;
    color: var(--sc-navy);
    padding: 2.8rem 0 3.2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.sc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.sc-hero h1 {
    font-size: 2.15rem;
    font-weight: 900;
    color: #0b1727;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    letter-spacing: -0.5px;
}

.sc-hero h1 span {
    color: var(--sc-orange);
}

.sc-hero p {
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 1.4rem;
    max-width: 540px;
    line-height: 1.6;
}

.sc-hero-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(11, 23, 39, 0.12);
    border: 4px solid #ffffff;
}

.sc-hero-img-wrap img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.sc-btn-primary {
    background-color: var(--sc-orange);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.84rem;
    border: none;
    padding: 0.52rem 1.2rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sc-btn-primary:hover {
    background-color: var(--sc-orange-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.sc-btn-outline {
    background-color: #ffffff;
    color: #0b1727;
    border: 1.5px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.52rem 1.2rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sc-btn-outline:hover {
    border-color: #0b1727;
    background-color: #f8fafc;
    color: #0b1727;
    transform: translateY(-2px);
}

/* Quick Verify Box */
.sc-verify-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-top: 5px solid var(--sc-orange);
    color: var(--sc-text-main);
}

/* Section Headings */
.sc-section-tag {
    color: var(--sc-orange);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
    display: block;
}

.sc-section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--sc-navy);
    margin-bottom: 0.75rem;
}

/* Cards */
.sc-card {
    background: #ffffff;
    border: 1px solid var(--sc-gray-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.sc-card-img-wrap {
    position: relative;
    height: 200px;
    background-color: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-card-img-wrap img {
    max-height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sc-card:hover .sc-card-img-wrap img {
    transform: scale(1.05);
}

.sc-badge-validity {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--sc-navy);
    color: var(--sc-yellow);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sc-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sc-price-tag {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sc-orange);
}

.sc-price-strike {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-left: 6px;
}

/* Certificate Styles */
.cert-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border: 12px double #1e3a8a;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    background-image: radial-gradient(#f8fafc 15%, transparent 16%);
    background-size: 16px 16px;
}

.cert-corner-decor {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid #f59e0b;
}
.cert-tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.cert-tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.cert-bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.cert-br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.cert-header {
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.cert-title {
    font-family: 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.cert-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.cert-candidate-name {
    font-family: 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #f97316;
    display: inline-block;
    padding: 0 30px 4px;
    margin: 15px 0;
}

.cert-course-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e3a8a;
    margin: 10px 0;
}

.cert-validity-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-top: 10px;
}

.cert-validity-pill.expired {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.cert-footer-seal {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 3px dashed #f59e0b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #b45309;
    text-transform: uppercase;
    margin: 0 auto;
    background: #fffbeb;
}

/* Footer */
.sc-footer {
    background: var(--sc-navy);
    color: #94a3b8;
    padding: 4rem 0 1.5rem;
}

.sc-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.sc-footer a:hover {
    color: var(--sc-orange);
}

.sc-footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 8px;
}

.sc-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--sc-orange);
    border-radius: 2px;
}

/* Global Responsive Refinements */
@media (max-width: 991.98px) {
    .sc-hero {
        padding: 3rem 0 3.5rem;
    }
    .sc-hero h1 {
        font-size: 2.2rem;
    }
    .sc-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .navbar-collapse {
        padding: 1rem 0;
        border-top: 1px solid #e2e8f0;
        margin-top: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .sc-hero {
        padding: 2rem 0 2.2rem;
    }
    .sc-hero h1 {
        font-size: 1.55rem;
        line-height: 1.3;
    }
    .sc-hero p {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    .sc-hero .sc-btn-primary, 
    .sc-hero .sc-btn-outline {
        width: 100%;
        justify-content: center;
    }
    .sc-hero-img-wrap {
        margin-top: 1rem;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .sc-brand-title {
        font-size: 1.15rem;
    }
    .sc-section-title {
        font-size: 1.45rem;
        line-height: 1.3;
    }
    .sc-section-tag {
        font-size: 0.72rem;
    }
    .card-stat {
        margin-bottom: 0.75rem;
    }
    .table-responsive {
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Fixed circle icon sizing on mobile */
    .p-4.border.rounded-3 .rounded-circle {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        min-height: 64px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }
    /* Training card button handling */
    .sc-card-body {
        padding: 1.1rem;
    }
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .cert-container, .cert-container * {
        visibility: visible;
    }
    .cert-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        box-shadow: none !important;
        border: 8px double #1e3a8a !important;
    }
    .no-print {
        display: none !important;
    }
}

