/* Custom variables for Well Wishers page matching project aesthetics */
:root {
    --navy: #0a1f44;
    --navy-light: #132f60;
    --gold: #c9a84c;
    --gold-light: #e8c96a;
    --gold-pale: #fdf3d7;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --bg-light: #f4f7fc;
    --card-shadow: 0 10px 30px rgba(10, 31, 68, 0.07);
    --card-shadow-hover: 0 20px 50px rgba(10, 31, 68, 0.16);
}

/* Use imported fonts */
.well-wishers-section {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, #f8fafd 0%, #fffdf6 50%, #f4f7fc 100%);
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Blobs for background texture */
.ww-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}
.ww-blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(201, 168, 76, 0.09);
    top: -50px;
    left: -100px;
}
.ww-blob-2 {
    width: 450px;
    height: 450px;
    background: rgba(19, 47, 96, 0.07);
    bottom: -100px;
    right: -100px;
}
.ww-blob-3 {
    width: 280px;
    height: 280px;
    background: rgba(201, 168, 76, 0.06);
    bottom: 25%;
    left: 25%;
}

.ww-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Introduction section style */
.ww-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.ww-intro h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.ww-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
    border-radius: 99px;
}

.ww-intro p {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.7;
    font-weight: 500;
}

/* Redesigned grid */
.ww-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

@media (max-width: 992px) {
    .ww-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .ww-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
}

/* Premium Card */
.ww-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(229, 233, 242, 0.7);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ww-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(201, 168, 76, 0.4);
}

.ww-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 110%; /* Aspect ratio ~1:1.1 */
    overflow: hidden;
    background: var(--navy);
}

.ww-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ww-card:hover .ww-img-wrapper img {
    transform: scale(1.06);
}

/* Card hover hint overlay */
.ww-hint {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 2;
}

.ww-card:hover .ww-hint {
    opacity: 1;
    transform: scale(1);
}

.ww-info {
    padding: 24px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.ww-info h3 {
    font-size: 18px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 6px;
}

.ww-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--gold-pale);
    padding: 4px 14px;
    border-radius: 50px;
    margin-top: 4px;
}

/* Modern Glassmorphic Modal */
.ww-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 40, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ww-modal.active {
    opacity: 1;
    visibility: visible;
}

.ww-modal-box {
    background: #ffffff;
    border-radius: 26px;
    max-width: 820px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px -12px rgba(5, 15, 40, 0.4);
    display: flex;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ww-modal.active .ww-modal-box {
    transform: scale(1);
}

@media (max-width: 768px) {
    .ww-modal-box {
        flex-direction: column;
        max-height: 90vh;
    }
}

.ww-modal-img {
    flex: 0 0 290px;
    background: var(--navy);
    position: relative;
}

@media (max-width: 768px) {
    .ww-modal-img {
        flex: 0 0 250px;
        width: 100%;
    }
}

.ww-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.ww-modal-content {
    flex: 1;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .ww-modal-content {
        padding: 30px 24px;
    }
}

.ww-modal-role {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.ww-modal-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 15px;
}

.ww-modal-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 99px;
    margin-bottom: 22px;
}

.ww-modal-bio {
    font-size: 15.5px;
    color: #4b5563;
    line-height: 1.75;
    font-weight: 400;
}

.ww-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 5;
}

.ww-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}
