/* ==========================
   BASE
========================== */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
    background: #f1f5f9;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ==========================
   REVEAL ANIMATIONS
========================== */

.reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .6s ease, transform .6s ease .1s;
}

.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-left, .reveal-right { opacity:1; transform:none; transition:none; }
}

/* ==========================
   WRAPPER
========================== */

.ad-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px 70px;
}

/* ==========================
   HERO
========================== */

.ad-hero {
    position: relative;
    margin-bottom: 36px;
}

.ad-hero-img-wrap {
    width: 100%;
    min-height: 440px;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    position: relative;
    animation: heroIn .7s cubic-bezier(.22,1,.36,1) both;
}

@keyframes heroIn {
    from { opacity:0; transform:scale(1.04); }
    to   { opacity:1; transform:scale(1); }
}

.ad-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
    transition: transform .6s ease;
}

.ad-hero-img-wrap:hover img { transform: scale(1.04); }

.ad-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,.05) 0%,
        rgba(0,0,0,.5)  100%);
}

.ad-hero-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.2);
}

/* Trophy badge pinned bottom-right of hero */
.ad-trophy-badge {
    position: absolute;
    bottom: -20px;
    right: 36px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 24px rgba(245,158,11,.45);
    border: 4px solid white;
    animation: popIn .5s cubic-bezier(.34,1.56,.64,1) .4s both;
    z-index: 2;
}

@keyframes popIn {
    from { opacity:0; transform:scale(.4); }
    to   { opacity:1; transform:scale(1); }
}

/* ==========================
   BODY GRID
========================== */

.ad-body {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 26px;
    align-items: start;
}

/* ==========================
   MAIN LEFT
========================== */

.ad-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Breadcrumb */
.ad-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.ad-breadcrumb a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    transition: color .2s;
}

.ad-breadcrumb a:hover { color: #2563eb; }

.ad-breadcrumb span { color: #0f172a; font-weight: 700; }

/* Title card */
.ad-title-card {
    background: white;
    border-radius: 18px;
    padding: 28px 30px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
}

.ad-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ad-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 999px;
}

.ad-date svg { color: #94a3b8; }

.ad-title {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -.6px;
    line-height: 1.2;
}

/* Description card */
.ad-description-card {
    background: white;
    border-radius: 18px;
    padding: 26px 30px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
}

.ad-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.ad-section-title svg { color: #2563eb; }

.ad-description {
    font-size: 15px;
    color: #475569;
    line-height: 1.9;
}

/* Share row */
.ad-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-lbl {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #334155;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: .2s;
}

.share-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-1px);
}

/* ==========================
   SIDEBAR
========================== */

.ad-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}

/* Info card */
.ad-info-card {
    background: white;
    border-radius: 18px;
    padding: 22px 20px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
}

.ad-info-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.ad-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
    transition: .2s;
}

.ad-info-row:last-child { border-bottom: none; }

.ad-info-row:hover { transform: translateX(4px); }

.ad-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
    transition: .25s;
}

.ad-info-row:hover .ad-info-icon {
    background: #2563eb;
    color: white;
}

.info-lbl {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.info-val {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* Congrats card */
.ad-congrats-card {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.ad-congrats-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.07);
}

.congrats-icon {
    font-size: 36px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.ad-congrats-card h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -.3px;
}

.ad-congrats-card p {
    font-size: 12px;
    color: #93c5fd;
    line-height: 1.6;
}

/* Back button */
.ad-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    transition: .25s;
}

.ad-back-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,99,235,.12);
}

/* ==========================
   ACHIEVEMENT GALLERY CARD
========================== */
/* ==========================
   MULTI-PHOTO SLIDER CARD
========================== */

.ad-slider-card {
    border-radius: 24px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 18px 45px -10px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 36px;
    position: relative;
    animation: heroIn .7s cubic-bezier(.22,1,.36,1) both;
}

.ad-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-slider-title-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 15px;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.ad-slider-title-tag svg {
    color: #38bdf8;
    flex-shrink: 0;
}

.ad-slider-counter {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
}

.ad-slider-viewport {
    position: relative;
    width: 100%;
    height: 480px;
    min-height: 420px;
    background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.ad-slider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.ad-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.02);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.ad-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Nav Left & Right Buttons */
.ad-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slider-nav.prev {
    left: 20px;
}

.ad-slider-nav.next {
    right: 20px;
}

.ad-slider-nav:hover {
    background: #ffffff;
    color: #2563eb;
    transform: translateY(-50%) scale(1.14);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.ad-slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {

    .ad-hero-img-wrap { height: 250px; border-radius: 0 0 18px 18px; }

    .ad-trophy-badge { right: 20px; bottom: -16px; width: 50px; height: 50px; }

    .ad-slider-card { border-radius: 18px; margin-bottom: 24px; }
    .ad-slider-header { padding: 10px 16px; }
    .ad-slider-title-tag { font-size: 13px; }
    .ad-slider-counter { font-size: 12px; padding: 3px 10px; }
    .ad-slider-viewport { height: 280px; min-height: 250px; }

    /* Hide prev/next buttons on phone view (users can swipe to slide) */
    .ad-slider-nav {
        display: none !important;
    }

    .ad-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ad-sidebar { position: static; }

    .ad-title-card, .ad-description-card { padding: 20px 16px; }

    .ad-title { font-size: 20px; }

    .ad-description { font-size: 14px; }
}