/* ============================================================
   WISDOM-PAGE.CSS — Saaradaa Learknowations Wisdom Page
   ============================================================ */

.wisdom-hero {
    padding: 140px 5% 60px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    text-align: center;
    color: var(--white);
}

.wisdom-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.wisdom-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    margin: 0 auto;
}

.wisdom-section {
    padding: var(--section-pad);
    background: #0f1220;
    min-height: 60vh;
}

/* Carousel */
.wn-frame {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.7), 0 0 20px rgba(41, 87, 164, 0.15);
    /* Added subtle blue glow */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.wn-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-wrap img {
    width: 150%;
    height: 150%;
    object-fit: cover;
}

.wn-title {
    font-size: 1.25rem;
    color: #f3f6fb;
    font-weight: 600;
    font-family: var(--font-heading);
}

.carousel-viewport {
    width: 100%;
    max-height: calc(100vh - 200px);
    background: #141624;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 480ms cubic-bezier(.22, .9, .2, 1);
    will-change: transform;
    touch-action: pan-y;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.slide img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.slide .thumb-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: inherit;
    background: #0e0e0e;
    overflow: hidden;
    border-radius: 10px;
}

.slide .thumb-link img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.4s ease;
    pointer-events: auto;
}

.slide .thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--amber);
    /* Changed to amber for pop */
    padding: 20px 10px 15px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.slide .thumb-link:hover img {
    transform: scale(1.02);
}

.slide .thumb-link:hover .thumb-overlay {
    opacity: 1;
}

.wn-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
}

.wn-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: #9aa3b2;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 160ms ease;
}

.wn-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.wn-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.wn-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.6);
    cursor: pointer;
    transition: all 140ms ease;
}

.wn-dot[aria-selected="true"] {
    transform: scale(1.15);
    background: linear-gradient(180deg, var(--amber), var(--royal-blue));
    box-shadow: 0 8px 20px rgba(41, 87, 164, 0.25);
    border-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    .wisdom-hero {
        padding: 120px 5% 50px;
    }

    .wisdom-hero h1 {
        font-size: 2.2rem;
    }

    .slide .thumb-overlay {
        opacity: 1;
    }
}