/**
 * QAMA NDT - Public Front-End Stylesheet
 * High-performance, modern industrial & educational theme
 */

:root {
    --qama-primary: #0b3c5d;      /* Deep Navy Blue */
    --qama-secondary: #328cc1;    /* Vibrant Cobalt Blue */
    --qama-accent: #d9b310;       /* Gold / Safety Yellow */
    --qama-dark: #1d2731;         /* Charcoal Navy */
    --qama-light: #f8f9fa;
    --qama-success: #198754;
    --qama-danger: #dc3545;
    --qama-border: #e2e8f0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    background-color: #fbfbfb;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top bar */
.top-bar {
    background-color: var(--qama-dark);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.top-bar a:hover {
    color: var(--qama-accent);
}

/* Main Navbar */
.navbar-custom {
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(11, 60, 93, 0.08);
    transition: all 0.3s ease;
    padding: 12px 0;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--qama-primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand .brand-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--qama-primary), var(--qama-secondary));
    color: #ffffff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(11, 60, 93, 0.25);
}
.navbar-brand .brand-subtitle {
    font-size: 0.72rem;
    display: block;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-link {
    font-weight: 600;
    color: #334155 !important;
    padding: 7px 11px !important;
    transition: all 0.2s ease;
    font-size: 0.91rem;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--qama-secondary) !important;
}

/* Laptop Optimization (992px to 1280px screen/scaling) */
@media (min-width: 992px) and (max-width: 1280px) {
    .nav-link {
        padding: 6px 7px !important;
        font-size: 0.84rem;
    }
    .navbar-brand img {
        height: 38px !important;
    }
    .navbar-custom .btn {
        font-size: 0.82rem;
        padding: 4px 10px !important;
    }
}

/* Hero Section */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(11, 60, 93, 0.94), rgba(29, 39, 49, 0.95)), url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: #ffffff;
    padding: 90px 0 100px;
}
.hero-badge {
    display: inline-block;
    background: rgba(217, 179, 16, 0.2);
    border: 1px solid var(--qama-accent);
    color: #ffde59;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Feature cards */
.feature-card {
    background: #ffffff;
    border: 1px solid var(--qama-border);
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(11, 60, 93, 0.1);
    border-color: #cbd5e1;
}
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--qama-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 20px;
    transition: all 0.3s;
}
.feature-card:hover .feature-icon-wrapper {
    background: var(--qama-primary);
    color: #ffffff;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--qama-primary), #1a4f73);
    color: #ffffff;
    padding: 60px 0 50px;
    margin-bottom: 40px;
}
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}
.breadcrumb-custom a {
    color: #93c5fd;
    text-decoration: none;
}
.breadcrumb-custom .active {
    color: #ffffff;
}

/* Section Titles */
.section-title-wrap {
    margin-bottom: 40px;
}
.section-subtitle {
    color: var(--qama-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.section-title {
    font-weight: 800;
    color: var(--qama-dark);
    font-size: 2.1rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--qama-accent);
    margin-top: 10px;
    border-radius: 2px;
}
.section-title-center::after {
    margin: 12px auto 0 auto;
}

/* Service & Course Cards */
.card-service, .card-course {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--qama-border);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-service:hover, .card-course:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(11, 60, 93, 0.09);
    border-color: #b0c4de;
}
.card-service .card-body, .card-course .card-body {
    padding: 24px;
    flex-grow: 1;
}

/* Gallery Filter */
.gallery-filter-btn {
    border-radius: 25px;
    padding: 7px 20px;
    font-weight: 600;
    font-size: 0.88rem;
    margin: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    transition: all 0.2s;
}
.gallery-filter-btn.active, .gallery-filter-btn:hover {
    background: var(--qama-primary);
    color: #ffffff;
    border-color: var(--qama-primary);
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    background: #ffffff;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
}
.gallery-img-container {
    height: 220px;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
}
.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 60, 93, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.gallery-img-container:hover .gallery-hover-overlay {
    opacity: 1;
}

/* Certificate Verification Card */
.certificate-preview-box {
    border: 10px solid #0b3c5d;
    padding: 35px;
    background: #fffdf7;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.certificate-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.04;
    font-size: 15rem;
    pointer-events: none;
}
.gold-seal-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, #f5d76e, #d9b310);
    border: 4px dashed #997800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4a3b00;
    font-weight: 800;
    font-size: 0.75rem;
    text-align: center;
    box-shadow: 0 6px 12px rgba(217, 179, 16, 0.4);
    text-transform: uppercase;
}

/* Verification Result Box */
.verify-valid-banner {
    background: linear-gradient(135deg, #065f46, #059669);
    color: #ffffff;
    border-radius: 12px;
    padding: 24px;
}

/* Footer */
footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 0 25px;
    font-size: 0.92rem;
}
footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: var(--qama-accent);
}
footer .footer-bottom {
    border-top: 1px solid #1f2937;
    margin-top: 45px;
    padding-top: 25px;
    font-size: 0.85rem;
}

/* Industrial Surveillance Visual Enhancements */
.sector-card {
    background: #ffffff;
    border: 1px solid var(--qama-border);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(11, 60, 93, 0.1);
    border-color: #0b3c5d;
}
.sector-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: #0b3c5d;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}
.sector-card:hover .sector-icon {
    background: #0b3c5d;
    color: #ffffff;
}

.surveillance-pillar-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--qama-border);
    border-top: 4px solid var(--qama-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    padding: 24px;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.surveillance-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(11, 60, 93, 0.12);
    border-top-color: var(--qama-accent);
}

/* Custom Buttons */
.btn-qama-primary {
    background: var(--qama-primary);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.btn-qama-primary:hover {
    background: #092c45;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 60, 93, 0.25);
}
.btn-qama-accent {
    background: var(--qama-accent);
    color: #1d2731;
    font-weight: 700;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.btn-qama-accent:hover {
    background: #c29f0e;
    color: #111827;
    box-shadow: 0 4px 12px rgba(217, 179, 16, 0.35);
}

/* Print Rules */
@media print {
    .no-print, header, footer, .top-bar, .navbar, .btn {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .print-only {
        display: block !important;
    }
}
