/* =========================
   BANNER SECTION
========================= */
.asti-client-banner {
    background: url("https://astigujarat.com/wp-content/themes/astiindiaprivatelimited/assets/images/banner/bnr1.jpg") no-repeat center center/cover;
    height: 320px;
    position: relative;
}

.asti-client-banner-overlay {
    background: rgba(12, 30, 60, 0.75);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.asti-client-banner-content {
    max-width: 1200px;
    color: #fff;
    padding: 0 20px;
}

.asti-client-banner-content h1 {
    font-size: 52px;
    margin-bottom: 10px;
}

.asti-client-banner-content p {
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    color:#fff;
}


/* ============================================
   PREMIUM CERTIFICATION PAGE - COMPACT BANNER + PDF STYLE CARDS
   GALLERY STYLE BANNER (SMALLER) + ELEGANT DESIGN
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- GALLERY STYLE BANNER (SMALLER & COMPACT) ---------- */
.gallery-banner {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #0a0a2a 0%, #1a1a3e 50%, #0d0d35 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated background grid - Gallery style */
.gallery-banner::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
    opacity: 0.4;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Floating circles animation */
.gallery-banner .floating-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-banner .circle {
    position: absolute;
    background: radial-gradient(circle, rgba(230,57,70,0.15), transparent);
    border-radius: 50%;
    animation: floatCircle 8s ease-in-out infinite;
}

@keyframes floatCircle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.05); opacity: 0.5; }
}

.circle-1 { width: 200px; height: 200px; top: -80px; right: -50px; animation-delay: 0s; }
.circle-2 { width: 150px; height: 150px; bottom: 30px; left: 5%; animation-delay: 2s; }
.circle-3 { width: 100px; height: 100px; top: 30%; right: 10%; animation-delay: 4s; }
.circle-4 { width: 250px; height: 250px; bottom: -100px; left: -80px; animation-delay: 1s; }

.gallery-banner-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.gallery-banner-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FFFFFF 0%, #ffd4d4 50%, #E63946 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.gallery-banner-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
}

.gallery-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #E63946, #ff6b6b, #E63946, transparent);
}

/* ---------- MAIN CERTIFICATION SECTION - COMPACT PDF STYLE ---------- */
.cert-main-section {
    padding: 60px 20px;
    background: #f8fafd;
}

.cert-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header - Smaller */
.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-header .badge {
    display: inline-block;
    background: linear-gradient(135deg, #E61A72, #B8155A);
    padding: 5px 18px;
    border-radius: 30px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0C1E3C;
    margin-bottom: 12px;
}

.section-header h2 span {
    color: #E61A72;
    position: relative;
}

.section-header h2 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #E63946, #ff6b6b);
    border-radius: 2px;
}

.section-header p {
    font-size: 15px;
    color: #0944B8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 600;
}

/* PDF Style Grid - 2 columns, compact cards */
.cert-pdf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* PDF Style Card - Like a document thumbnail */
.cert-pdf-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid #eef2f8;
    display: flex;
    flex-direction: row;
    cursor: pointer;
}

.cert-pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-color: rgba(230,57,70,0.3);
}

/* PDF Thumbnail area - smaller like document preview */
.pdf-thumbnail {
    width: 120px;
    background: linear-gradient(145deg, #f0f4fa, #e8edf5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid #eef2f8;
}

.pdf-thumbnail img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.cert-pdf-card:hover .pdf-thumbnail img {
    transform: scale(1.05);
}

/* PDF Icon Overlay */
.pdf-icon-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #E61A72;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* PDF Content */
.pdf-content {
    flex: 1;
    padding: 16px 18px;
    background: white;
}

.pdf-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0C1E3C;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-content h3 i {
    color: #E61A72;
    font-size: 14px;
}

.pdf-content p {
    font-size: 13px;
    color: #4C81C2;
    line-height: 1.45;
    margin-bottom: 10px;
    font-weight: 600;
}

/* PDF Meta Info */
.pdf-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.pdf-meta span i {
    margin-right: 4px;
    font-size: 10px;
}

/* View Button - Small */
.pdf-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #E61A72;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #E61A72;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pdf-view-btn:hover {
    background: #4C81C2;
    color: white;
    border-color: #4C81C2;
    gap: 10px;
}

/* Stats Section - Compact */
.stats-compact {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #0A4AA8 0%, #042C68 100%);
    border-radius: 50px;
    padding: 35px 30px;
    margin-top: 30px;
}

.stat-compact-item {
    text-align: center;
}

.stat-compact-number {
    font-size: 42px;
    font-weight: 800;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-align: justify;
}

.stat-compact-label {
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cert-pdf-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.cert-pdf-card:nth-child(1) { animation-delay: 0.05s; }
.cert-pdf-card:nth-child(2) { animation-delay: 0.1s; }
.cert-pdf-card:nth-child(3) { animation-delay: 0.15s; }
.cert-pdf-card:nth-child(4) { animation-delay: 0.2s; }

/* Modal for PDF Preview - Lightbox style */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.pdf-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    padding: 25px;
    text-align: center;
    position: relative;
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pdf-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.pdf-modal-close:hover {
    color: #E63946;
}

.pdf-modal-preview {
    margin: 20px 0;
}

.pdf-modal-preview img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.pdf-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.pdf-download-btn {
    background: #E63946;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pdf-download-btn:hover {
    background: #bc003a;
    transform: scale(1.02);
}

.pdf-close-btn {
    background: #e2e8f0;
    color: #333;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-banner {
        height: 220px;
    }
    .gallery-banner-content h1 {
        font-size: 30px;
    }
    .gallery-banner-content p {
        font-size: 13px;
    }
    .cert-pdf-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .pdf-thumbnail {
        width: 90px;
    }
    .pdf-thumbnail img {
        width: 55px;
        height: 70px;
    }
    .pdf-content h3 {
        font-size: 16px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .stats-compact {
        flex-direction: column;
        gap: 20px;
        border-radius: 35px;
        padding: 30px 20px;
    }
    .stat-compact-number {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .cert-pdf-card {
        flex-direction: column;
    }
    .pdf-thumbnail {
        width: 100%;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #eef2f8;
    }
    .pdf-thumbnail img {
        width: 80px;
        height: 100px;
    }
}
