/**
 * Neel Chooksi - Achievements & Certificates Stylesheet
 * Luxury Cosmic Dark & Golden Prestige Theme
 */

:root {
    --ach-bg-dark: #070c22;
    --ach-bg-card: #0d1538;
    --ach-bg-card-hover: #121c4b;
    --ach-gold-primary: #ffaa00;
    --ach-gold-secondary: #d4af37;
    --ach-gold-light: #ffe599;
    --ach-gold-gradient: linear-gradient(135deg, #d4af37 0%, #ffaa00 50%, #ffd700 100%);
    --ach-border-gold: rgba(255, 170, 0, 0.22);
    --ach-border-gold-hover: rgba(255, 170, 0, 0.65);
    --ach-text-white: #ffffff;
    --ach-text-muted: #94a3b8;
    --ach-shadow-card: 0 10px 30px rgba(3, 7, 26, 0.6);
    --ach-shadow-glow: 0 0 35px rgba(255, 170, 0, 0.25);
}

/* ========================================================
   HERO PRESTIGE BANNER
======================================================== */
.achievements-hero-section {
    background: #05081a;
    background: radial-gradient(circle at 50% 20%, #15225c 0%, #070c22 60%, #040614 100%);
    padding: 90px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--ach-border-gold);
}

.achievements-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #ffaa00, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ffd700, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.18;
    pointer-events: none;
}

.ach-hero-container {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ach-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid var(--ach-border-gold);
    color: var(--ach-gold-primary);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.15);
}

.ach-hero-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 46px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.ach-hero-title span.text-gold {
    background: var(--ach-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ach-ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 22px;
    max-width: 320px;
}

.ach-ornament-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ach-gold-secondary), transparent);
}

.ach-ornament-divider .icon {
    color: var(--ach-gold-primary);
    font-size: 18px;
}

.ach-hero-desc {
    color: var(--ach-text-muted);
    font-size: 16.5px;
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto 36px;
}

/* Prestige Stats Ribbon */
.ach-stats-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding: 24px;
    background: rgba(13, 21, 56, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--ach-border-gold);
    border-radius: 16px;
    box-shadow: var(--ach-shadow-card);
}

.ach-stat-item {
    text-align: center;
    padding: 8px 12px;
    border-right: 1px solid rgba(255, 170, 0, 0.15);
}

.ach-stat-item:last-child {
    border-right: none;
}

.ach-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--ach-gold-primary);
    font-family: 'Cinzel', serif;
    line-height: 1.2;
}

.ach-stat-label {
    font-size: 13px;
    color: #e2e8f0;
    margin-top: 4px;
    font-weight: 600;
}

/* ========================================================
   MAIN SECTION & FILTER TABS
======================================================== */
.achievements-main-section {
    background: #040718;
    padding: 60px 0 90px;
    min-height: 600px;
    scroll-margin-top: 90px;
}

.ach-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filter Navigation */
.ach-filter-wrap {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.ach-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(13, 21, 56, 0.85) !important;
    border: 1px solid var(--ach-border-gold) !important;
    color: #e2e8f0 !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ach-filter-btn i {
    color: var(--ach-gold-secondary);
    font-size: 15px;
}

.ach-filter-btn:hover {
    color: #fff !important;
    border-color: var(--ach-gold-primary) !important;
    background: rgba(255, 170, 0, 0.12) !important;
    transform: translateY(-2px);
}

.ach-filter-btn.active {
    background: var(--ach-gold-gradient) !important;
    color: #070c22 !important;
    border-color: #ffd700 !important;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.35);
    transform: translateY(-2px);
}

.ach-filter-btn.active i {
    color: #070c22 !important;
}

.ach-filter-count {
    display: inline-block;
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.ach-filter-btn.active .ach-filter-count {
    background: rgba(7, 12, 34, 0.25);
    color: #070c22;
}

/* ========================================================
   CARDS GRID & STYLING
======================================================== */
.ach-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ach-card {
    background: var(--ach-bg-card);
    border: 1px solid var(--ach-border-gold);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ach-shadow-card);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.ach-card:hover {
    transform: translateY(-6px);
    border-color: var(--ach-gold-primary);
    box-shadow: var(--ach-shadow-glow), 0 16px 36px rgba(0, 0, 0, 0.6);
}

/* Ornate Corner Elements on Certificate Cards */
.ach-card::before,
.ach-card::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(255, 170, 0, 0.45);
    pointer-events: none;
    z-index: 5;
    transition: border-color 0.3s ease;
}

.ach-card::before {
    top: 8px;
    left: 8px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.ach-card::after {
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

.ach-card:hover::before,
.ach-card:hover::after {
    border-color: var(--ach-gold-primary);
}

/* Card Media / Thumbnail */
.ach-card-media {
    position: relative;
    width: 100%;
    height: 270px;
    background: #030614;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ach-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}

.ach-card:hover .ach-card-media img {
    transform: scale(1.05);
}

/* Lightbox Click Hover Overlay */
.ach-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 12, 34, 0.65);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    z-index: 4;
}

.ach-card-media:hover .ach-media-overlay {
    opacity: 1;
}

.ach-overlay-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ach-gold-gradient);
    color: #070c22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.4);
    transform: scale(0.85);
    transition: transform 0.25s ease;
}

.ach-card-media:hover .ach-overlay-icon {
    transform: scale(1);
}

.ach-overlay-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--ach-gold-light);
    letter-spacing: 0.5px;
}

/* Card Badge */
.ach-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(7, 12, 34, 0.9);
    border: 1px solid var(--ach-border-gold);
    color: var(--ach-gold-primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 6;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Card Body */
.ach-card-body {
    padding: 22px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, #0d1538 0%, #090e29 100%);
}

.ach-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--ach-text-muted);
}

.ach-meta-issuer {
    color: var(--ach-gold-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ach-card-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.ach-card:hover .ach-card-title {
    color: var(--ach-gold-primary);
}

.ach-card-desc {
    color: var(--ach-text-muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* Card Footer Actions */
.ach-card-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-ach-view {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255, 170, 0, 0.1);
    color: var(--ach-gold-primary);
    border: 1px solid var(--ach-border-gold);
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ach-view:hover {
    background: var(--ach-gold-primary);
    color: #070c22;
}

.btn-ach-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px;
    border-radius: 6px;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-ach-wa:hover {
    background: #25d366;
    color: #fff;
    transform: scale(1.05);
}

.btn-ach-external {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, #ffaa00 0%, #e67e22 100%);
    color: #07080d !important;
    border: none;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(255, 170, 0, 0.2);
}

.btn-ach-external:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 170, 0, 0.35);
    color: #000 !important;
}

.btn-ach-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ach-preview-icon:hover {
    background: rgba(255, 170, 0, 0.15);
    border-color: var(--ach-gold-primary);
    color: var(--ach-gold-primary);
}

/* Specific styling for Media Articles */
.ach-card-media-card {
    border-color: rgba(56, 189, 248, 0.25);
}

.ach-card[data-category="media"] .ach-card-media img {
    object-fit: cover;
    object-position: top center;
    padding: 0;
}

.ach-card[data-category="media"] .ach-badge {
    background: rgba(7, 8, 13, 0.9);
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
}

/* ========================================================
   LIGHTBOX MODAL
======================================================== */
.ach-lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 6, 20, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000000;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ach-lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.ach-lightbox-content {
    background: #0d1538;
    border: 1px solid var(--ach-gold-primary);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--ach-shadow-glow);
    overflow: hidden;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.ach-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.2s ease;
}

.ach-lightbox-close:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.ach-lightbox-image-wrap {
    background: #02040d;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.ach-lightbox-image-wrap img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 6px;
}

.ach-lightbox-details {
    padding: 22px 28px;
    background: #090e29;
    border-top: 1px solid var(--ach-border-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ach-lb-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--ach-gold-primary);
    margin: 0 0 4px;
}

.ach-lb-info p {
    color: var(--ach-text-muted);
    font-size: 13.5px;
    margin: 0;
}

.ach-lightbox-nav {
    display: flex;
    gap: 10px;
}

.btn-lb-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 170, 0, 0.15);
    border: 1px solid var(--ach-border-gold);
    color: var(--ach-gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-lb-nav:hover {
    background: var(--ach-gold-primary);
    color: #070c22;
}

/* ========================================================
   BOTTOM PRESTIGE CTA
======================================================== */
.ach-bottom-cta {
    margin-top: 70px;
    background: linear-gradient(135deg, #0d1538 0%, #15225c 50%, #090e29 100%);
    border: 1px solid var(--ach-gold-primary);
    border-radius: 20px;
    padding: 45px 40px;
    text-align: center;
    box-shadow: var(--ach-shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.ach-bottom-cta h3 {
    font-family: 'Cinzel', serif;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.ach-bottom-cta p {
    color: var(--ach-text-muted);
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto 28px;
}

.ach-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-ach-cta-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ach-gold-gradient);
    color: #070c22;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.35);
    transition: all 0.25s ease;
}

.btn-ach-cta-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 170, 0, 0.5);
    color: #000;
}

.btn-ach-cta-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
}

.btn-ach-cta-wa:hover {
    background: #20bd5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Animations */
@keyframes zoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 991px) {
    .ach-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .ach-hero-title {
        font-size: 36px;
    }

    .ach-stats-ribbon {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ach-stat-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 640px) {
    .ach-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ach-hero-title {
        font-size: 28px;
    }

    .ach-stats-ribbon {
        grid-template-columns: 1fr;
    }

    .ach-stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 170, 0, 0.15);
        padding-bottom: 14px;
    }

    .ach-stat-item:last-child {
        border-bottom: none;
    }

    .ach-bottom-cta {
        padding: 30px 20px;
    }

    .ach-bottom-cta h3 {
        font-size: 22px;
    }
}

