/* 
 * Certificates & Recognitions Page Stylesheet (Redesign)
 * Brand Identity: Thrust Batteries (Agson Industries Pvt. Ltd.)
 * Designed with modern, clean, industrial aesthetics.
 */

/* ==========================================================================
   1. VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Color Palette */
    --brand-red: #e31e24;
    --brand-red-hover: #b9151b;
    --brand-dark: #181f27;
    --brand-dark-rgb: 24, 31, 39;
    --text-primary: #1e252d;
    --text-muted: #596673;
    --bg-light: #ffffff;
    --bg-alt: #f8fafc;
    --bg-warm-light: #fff7f7;
    --border-color: #e2e8f0;
    --border-color-warm: #ead7d9;
    --white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 40px -10px rgba(24, 31, 39, 0.07);
    --shadow-brand: 0 12px 24px -6px rgba(227, 30, 36, 0.15);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Layout & Spacing */
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-full: 9999px;
}

/* ==========================================================================
   2. RESET & BASE LAYOUT (Scoped to Redesigned Sections)
   ========================================================================== */
.cert-redesign-container {
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.cert-redesign-container * {
    box-sizing: border-box;
}

/* Typography Utility */
.cert-redesign-container h1,
.cert-redesign-container h2,
.cert-redesign-container h3,
.cert-redesign-container h4,
.cert-redesign-container h5,
.cert-redesign-container h6 {
    font-family: 'Poppins', 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 12px;
}

.cert-redesign-container p {
    color: var(--text-muted);
    margin: 0 0 16px;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.cert-redesign-container a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.cert-section-padding {
    padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.cert-bg-alt {
    background-color: var(--bg-alt);
}

/* Container width matching bootstrap layout fluid grid */
.cert-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. HERO BANNER
   ========================================================================== */
.cert-hero {
    position: relative;
    overflow: hidden;
    height: 280px; /* fixed height for desktop to prevent excessive zooming of the 1980x345 banner image */
    display: flex;
    align-items: center;
    background-color: var(--brand-dark);
}

.cert-hero picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cert-hero picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center; /* Pin image to the right so the trophy remains fully visible on desktop */
}

/* Hero Overlay Gradients */
.cert-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 31, 39, 0.92) 0%, rgba(24, 31, 39, 0.7) 40%, rgba(24, 31, 39, 0.2) 100%);
    z-index: 1;
}

@media (max-width: 767px) {
    .cert-hero {
        height: auto;
        min-height: 260px;
    }
    .cert-hero-overlay {
        background: linear-gradient(180deg, rgba(24, 31, 39, 0.95) 0%, rgba(24, 31, 39, 0.8) 100%);
    }
}

.cert-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    width: 100%;
    padding: 40px 0;
}

.cert-hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--white) !important;
    line-height: 1.15;
    margin-bottom: 12px;
}

.cert-hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    color: var(--border-color-warm) !important;
    max-width: 600px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Breadcrumbs in Hero */
.cert-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0 0 16px;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.cert-breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: rgba(255, 255, 255, 0.35);
}

.cert-breadcrumbs a {
    color: rgba(255, 255, 255, 0.65);
}

.cert-breadcrumbs a:hover {
    color: var(--white);
}

.cert-breadcrumbs .active {
    color: var(--brand-red);
}

/* ==========================================================================
   4. STATISTICS CARDS
   ========================================================================== */
.cert-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

.cert-section-header h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.cert-section-header h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    background-color: var(--brand-red);
    border-radius: var(--border-radius-sm);
}

.cert-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
}

.cert-stats-card {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--brand-red);
    border-radius: var(--border-radius-md);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    height: 100%;
}

.cert-stats-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-brand);
    border-color: rgba(227, 30, 36, 0.25);
}

.cert-stats-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
    margin-bottom: 12px;
}

.cert-stats-label {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.cert-stats-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

/* ==========================================================================
   5. CATEGORY NAVIGATION TABS
   ========================================================================== */
.cert-tabs-wrapper {
    margin: 40px auto 32px;
    width: 100%;
}

.cert-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 4px;
    list-style: none;
    margin: 0;
}

.cert-tab-item {
    flex: 1 1 170px;
    max-width: 220px;
}

.cert-tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-dark);
    text-align: center;
    box-shadow: var(--shadow-sm);
    outline: none;
}

.cert-tab-button:hover {
    transform: translateY(-4px);
    border-color: rgba(227, 30, 36, 0.4);
    box-shadow: var(--shadow-md);
}

.cert-tab-button:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

.cert-tab-button.active {
    transform: translateY(-4px);
    border-color: var(--brand-red);
    background-color: var(--white);
    box-shadow: var(--shadow-brand);
    color: var(--brand-red);
}

.cert-tab-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cert-tab-button:hover .cert-tab-icon,
.cert-tab-button.active .cert-tab-icon {
    transform: scale(1.1);
}

.cert-tab-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Horizontal scrolling tabs on mobile */
@media (max-width: 767px) {
    .cert-tabs-wrapper {
        overflow-x: auto;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }
    
    .cert-tabs-wrapper::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }
    
    .cert-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        padding: 4px 16px;
        gap: 12px;
    }
    
    .cert-tab-item {
        scroll-snap-align: start;
        flex: 0 0 140px;
        width: 140px;
    }
    
    .cert-tab-button {
        min-height: 108px;
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .cert-tab-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }
}

/* ==========================================================================
   6. CERTIFICATE SECTION CARDS
   ========================================================================== */
.cert-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

.cert-card-col {
    flex: 1 1 calc(25% - 18px); /* 4 columns */
    max-width: calc(25% - 18px);
    display: flex;
}

@media (max-width: 1199px) {
    .cert-card-col {
        flex: 1 1 calc(50% - 12px); /* 2 columns */
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .cert-card-col {
        flex: 1 1 100%; /* 1 column */
        max-width: 100%;
    }
}

.cert-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px 24px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
    min-height: 96px;
}

.cert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(227, 30, 36, 0.4);
    box-shadow: var(--shadow-premium);
}

.cert-card:focus-within {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

.cert-card-pdf-icon {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card-pdf-icon img {
    width: 100%;
    height: auto;
}

.cert-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
    word-break: break-word;
}

.cert-card:hover .cert-card-title {
    color: var(--brand-red);
}

.cert-card-action {
    flex: 0 0 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--border-radius-full);
    background-color: var(--bg-alt);
    transition: var(--transition-smooth);
    font-size: 0.85rem;
}

/* Download Icon micro-animations */
.cert-card:hover .cert-card-action {
    background-color: var(--brand-red);
    color: var(--white);
    transform: scale(1.1);
}

.cert-card:hover .cert-card-action i {
    animation: bounceDownload 1s infinite alternate;
}

@keyframes bounceDownload {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(3px);
    }
}

/* Filter & Grid Layout Classes */
.cert-card-col {
    flex: 0 0 calc(25% - 18px); /* 4 items per row on desktop */
    max-width: calc(25% - 18px);
    display: flex;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (max-width: 1199px) and (min-width: 768px) {
    .cert-card-col {
        flex: 0 0 calc(50% - 12px); /* 2 items per row on tablet */
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .cert-card-col {
        flex: 0 0 100%; /* 1 item per row on mobile */
        max-width: 100%;
    }
}

/* Image-Only Certificate Cards (Sleek 4-column layout) */
.cert-img-only-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
}

.cert-img-only-card:hover {
    transform: translateY(-6px);
    border-color: rgba(227, 30, 36, 0.4);
    box-shadow: var(--shadow-premium);
}

.cert-img-only-card .cert-gallery-image-box {
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
    cursor: pointer;
    aspect-ratio: 1 / 1.35;
    width: 100%;
}

.cert-img-only-card .cert-gallery-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.cert-img-only-card:hover .cert-gallery-image-box img {
    transform: scale(1.05);
}

.cert-img-only-card .cert-gallery-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 31, 39, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.cert-img-only-card:hover .cert-gallery-zoom-overlay {
    opacity: 1;
}

.cert-img-only-card .cert-gallery-zoom-overlay i {
    font-size: 2.25rem;
    color: var(--white);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.cert-img-only-card:hover .cert-gallery-zoom-overlay i {
    transform: scale(1);
}
    border-bottom: 1px solid var(--border-color);
}

.cert-visual-card .cert-gallery-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.cert-visual-card:hover .cert-gallery-image-box img {
    transform: scale(1.04);
}

.cert-visual-card .cert-gallery-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 31, 39, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.cert-visual-card:hover .cert-gallery-zoom-overlay {
    opacity: 1;
}

.cert-visual-card .cert-gallery-zoom-overlay i {
    font-size: 1.75rem;
    color: var(--white);
}

.cert-visual-card .cert-gallery-zoom-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-visual-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cert-badge {
    align-self: flex-start;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-red);
    background-color: var(--bg-warm-light);
    border: 1px solid var(--border-color-warm);
    border-radius: var(--border-radius-full);
    padding: 3px 10px;
    margin-bottom: 10px;
}

.cert-visual-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 6px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.cert-visual-card:hover .cert-visual-card-title {
    color: var(--brand-red);
}

.cert-visual-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 18px;
    line-height: 1.5;
    flex: 1;
}

.cert-visual-card-actions {
    margin-top: auto;
}

.cert-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background-color: var(--brand-dark);
    color: var(--white) !important;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.cert-btn-download:hover {
    background-color: var(--brand-red);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

.cert-btn-download i {
    font-size: 0.95rem;
}

.cert-card-col.hide {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

/* Truck Batteries / Status Card */
.cert-status-card {
    flex: 1 1 100%;
    max-width: 100%;
    background-color: var(--white);
    border: 1px dashed var(--brand-red);
    border-radius: var(--border-radius-md);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.cert-status-icon {
    font-size: 2.5rem;
    color: var(--brand-red);
}

.cert-status-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.cert-status-text {
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cert-status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: var(--brand-red);
    color: var(--white) !important;
    border-radius: var(--border-radius-full);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-brand);
    transition: var(--transition-smooth);
}

.cert-status-btn:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   7. TESTED & APPROVED LOGOS SECTION
   ========================================================================== */
.cert-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.cert-logo-card {
    flex: 0 1 200px;
    width: 200px;
    height: 110px;
    padding: 16px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.cert-logo-card:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(227, 30, 36, 0.2);
}

.cert-logo-card img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .cert-logo-card {
        flex: 0 1 calc(50% - 12px);
        width: calc(50% - 12px);
        height: 96px;
        padding: 12px;
    }
    
    .cert-logo-card img {
        max-height: 54px;
    }
}

/* ==========================================================================
   8. AWARDS & GALLERY
   ========================================================================== */
.cert-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
}

.cert-gallery-col {
    flex: 1 1 calc(25% - 18px);
    max-width: calc(25% - 18px);
    display: flex;
}

@media (max-width: 991px) {
    .cert-gallery-col {
        flex: 1 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 575px) {
    .cert-gallery-col {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.cert-gallery-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.cert-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(227, 30, 36, 0.15);
}

.cert-gallery-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--brand-dark);
    cursor: pointer;
}

.cert-gallery-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cert-gallery-card:hover .cert-gallery-image-box img {
    transform: scale(1.08);
}

/* Lightbox Icon Zoom Overlay */
.cert-gallery-zoom-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(227, 30, 36, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.cert-gallery-image-box:hover .cert-gallery-zoom-overlay {
    opacity: 1;
}

.cert-gallery-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid var(--border-color);
}

.cert-gallery-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--brand-dark);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   9. CTA SECTION
   ========================================================================== */
.cert-cta {
    background: linear-gradient(135deg, #181f27 0%, #301416 100%);
    border-radius: var(--border-radius-lg);
    padding: 56px 48px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

/* Subtle accent shapes for the CTA background */
.cert-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background-color: rgba(227, 30, 36, 0.08);
    border-radius: var(--border-radius-full);
    pointer-events: none;
}

.cert-cta-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.cert-cta-content {
    flex: 1 1 500px;
}

.cert-cta h3 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--white) !important;
    margin-bottom: 12px;
}

.cert-cta p {
    color: #e2e8f0 !important;
    margin-bottom: 0;
    max-width: 650px;
}

.cert-cta-action {
    flex: 0 0 auto;
}

.cert-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background-color: var(--brand-red);
    color: var(--white) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-brand);
    transition: var(--transition-smooth);
}

.cert-cta-btn:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(227, 30, 36, 0.35);
}

@media (max-width: 767px) {
    .cert-cta {
        padding: 36px 24px;
        text-align: center;
    }
    
    .cert-cta-flex {
        justify-content: center;
    }
    
    .cert-cta-content {
        flex: 1 1 100%;
    }
    
    .cert-cta-btn {
        width: 100%;
    }
}

/* ==========================================================================
   10. VANILLA LIGHTBOX MODAL
   ========================================================================== */
.cert-lightbox-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(24, 31, 39, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.cert-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.cert-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.cert-lightbox-close:hover {
    background-color: var(--brand-red);
    transform: rotate(90deg);
}

.cert-lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius-sm);
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cert-lightbox-modal.active .cert-lightbox-content {
    transform: scale(1);
}

.cert-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    display: block;
}

.cert-lightbox-caption {
    position: absolute;
    bottom: 24px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   11. SCROLL REVEAL ANIMATIONS (Intersection Observer)
   ========================================================================== */
.cert-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}

.cert-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers for lists of cards */
.cert-reveal-delay-1 { transition-delay: 0.1s; }
.cert-reveal-delay-2 { transition-delay: 0.2s; }
.cert-reveal-delay-3 { transition-delay: 0.3s; }
.cert-reveal-delay-4 { transition-delay: 0.4s; }

/* Handle Reduced Motion preferences */
@media (prefers-reduced-motion: reduce) {
    .cert-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .cert-stats-card:hover,
    .cert-tab-button:hover,
    .cert-tab-button.active,
    .cert-card:hover,
    .cert-logo-card:hover,
    .cert-gallery-card:hover,
    .cert-gallery-card:hover img,
    .cert-cta-btn:hover {
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}


/* ==========================================================================
   12. FREQUENTLY ASKED QUESTIONS SECTION (Redesign)
   ========================================================================== */
.cert-faq-section {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}

.cert-faq-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.cert-faq-tab-btn {
    padding: 10px 24px;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cert-faq-tab-btn:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.cert-faq-tab-btn.active {
    background-color: var(--brand-red);
    color: var(--white);
    border-color: var(--brand-red);
    box-shadow: var(--shadow-brand);
}

.faq-group-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 32px 0 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-red);
    display: inline-flex;
    align-items: center;
}

.faq-accordion-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.faq-accordion-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.faq-accordion-item.active {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
}

.faq-accordion-header {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-dark);
    transition: var(--transition-smooth);
}

.faq-accordion-header:hover {
    color: var(--brand-red);
}

.faq-accordion-item.active .faq-accordion-header {
    color: var(--brand-red);
}

.faq-icon-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.faq-accordion-item.active .faq-icon-toggle {
    background-color: var(--brand-red);
    color: var(--white);
    transform: rotate(180deg);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease-out;
    padding: 0 24px;
    background-color: #fafbfc;
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 300px;
    padding: 0 24px 20px;
    border-top: 1px solid #f1f5f9;
}

.faq-accordion-content p {
    margin: 12px 0 0;
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.65;
}
