/* =========================================
   WELLNESS MANDALI STYLES (Equal Height Fix)
   ========================================= */

/* --- 1. Hero Section --- */
.hero-centered {
    background-color: var(--deep-blue);
    color: var(--white);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    padding-top: 100px;
    padding-bottom: 10px;
    text-align: center;
}

.hero-centered h1 {
    color: var(--white);
    font-family: var(--font-serif);
    margin-bottom: 10px;
    font-size: 3rem;
}

.hero-description {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(62, 92, 154, 0.15) 0%, rgba(42, 64, 104, 0) 70%);
    z-index: 1;
    pointer-events: none;
}
.hero-content-wrapper-center { z-index: 2; position: relative; }

/* --- 2. TAB NAVIGATION --- */
.wm-tabs-wrapper {
    background-color: #fff;
    border-bottom: 0px solid #eee;
    position: sticky;
    /* Stick directly below the fixed navbar (approx 60px) */
    top: 60px;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

.wm-tabs {
    display: flex;
    justify-content: center;
    gap: 0px;
    padding: 15px 0;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-grey);
    padding: 10px 25px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    color: var(--primary-blue);
    background-color: rgba(62, 92, 154, 0.05);
}

.tab-btn.active {
    background-color: var(--deep-blue);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(42, 64, 104, 0.3);
}

/* --- Tab Content Areas --- */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    padding-bottom: 60px;
}

.tab-content.active { display: block; }

.tab-content-detail {
    display: none;
    animation: fadeIn 0.5s ease;
    padding-bottom: 20px;
}

.tab-content-detail.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3. Layout & Sections --- */
.wm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

/* --- 4. Upcoming Session Card (Featured) --- */
.upcoming-grid {
    display: grid;
    /* 80% Width Logic from previous step */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 40px;
    margin-bottom: 40px;
    /* Grid automatically stretches items to same height by default */
}

.event-card-featured {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    
    /* EQUAL HEIGHT FIX */
    display: flex; 
    flex-direction: column; 
    height: 100%; /* Forces card to fill the grid cell height */
    
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s;
    text-decoration: none !important;
    color: inherit;
}

.event-card-featured:hover {
    transform: translateY(-5px);
    color: inherit;
}

.event-card-featured:hover h3, 
.event-card-featured:hover p {
    text-decoration: none !important;
}

.featured-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #f4f6f8;
    flex-shrink: 0; /* Prevents image from shrinking if text is long */
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-card-featured:hover .featured-img { transform: scale(1.03); }

.zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
    color: var(--deep-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.zoom-btn:hover { background: #fff; transform: scale(1.1); }

.featured-content {
    padding: 30px;
    /* Flex grow pushes footer down if we had one, fills space */
    flex: 1; 
    display: flex;
    flex-direction: column;
}

.date-badge {
    background-color: var(--primary-blue);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--deep-blue);
    margin-bottom: 15px;
    line-height: 1.2;
    transition: color 0.2s;
}

.event-card-featured:hover .event-title { color: var(--primary-blue); }

.event-desc {
    font-family: var(--font-sans);
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the link indicator to bottom */
}

.external-link-indicator {
    margin-top: auto; /* Ensure it stays at bottom */
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--deep-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card-featured:hover .external-link-indicator { color: #E1306C; }

/* --- 5. Previous Sessions (Archive Grid) --- */
.archive-grid {
    display: grid;
    /* 80% Width Logic */
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 30px;
}

.archive-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s;
    
    /* EQUAL HEIGHT FIX */
    display: flex;
    flex-direction: column;
    height: 100%; /* Fills the grid row height */
    
    text-decoration: none !important;
    color: inherit;
    position: relative;
}

.archive-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-3px);
    color: inherit;
}

.archive-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: #fafafa;
    flex-shrink: 0;
}

.archive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: var(--deep-blue);
    font-size: 0.9rem;
}

.archive-zoom-btn:hover { background: #fff; }

.archive-content { 
    padding: 20px;
    /* Ensures text content fills height */
    flex: 1; 
    display: flex;
    flex-direction: column;
}

.archive-date {
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.archive-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--deep-blue);
    margin-bottom: 10px;
}

.archive-card:hover .archive-title { color: var(--primary-blue); }

.archive-desc {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    --webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto; /* Pushes bottom padding */
}

/* Empty State */
.no-events {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 10px;
    width: 100%;
}

.no-events i { font-size: 2rem; margin-bottom: 10px; opacity: 0.5; display: block; }

/* --- 6. Unified Grid (Upcoming + Past) --- */
.unified-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.event-card-unified {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s, opacity 0.3s;
    text-decoration: none !important;
    color: inherit;
    position: relative;
}

.event-card-unified.past {
    opacity: 0.85;
}

.event-card-unified:hover {
    transform: translateY(-5px);
    color: inherit;
}

.event-card-unified:hover h3,
.event-card-unified:hover p {
    text-decoration: none !important;
}

/* Upcoming Badge */
.upcoming-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    padding: 7px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

.upcoming-badge i {
    font-size: 0.85rem;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.event-card-unified .featured-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #f4f6f8;
    flex-shrink: 0;
}

.event-card-unified .featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-card-unified:hover .featured-img {
    transform: scale(1.03);
}

.event-card-unified .zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
    color: var(--deep-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.event-card-unified .zoom-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.event-card-unified .featured-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-unified .date-badge {
    background-color: var(--primary-blue);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card-unified .event-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--deep-blue);
    margin-bottom: 15px;
    line-height: 1.2;
    transition: color 0.2s;
}

.event-card-unified:hover .event-title {
    color: var(--primary-blue);
}

.event-card-unified .event-desc {
    font-family: var(--font-sans);
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.event-card-unified .external-link-indicator {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--deep-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card-unified:hover .external-link-indicator {
    color: #E1306C;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-centered h1 { font-size: 2.2rem; }
    .upcoming-grid { grid-template-columns: 1fr; }
    .unified-grid { grid-template-columns: 1fr; }
    .wm-tabs { overflow-x: auto; padding: 15px 20px; justify-content: flex-start; white-space: nowrap; }
    .wm-tabs::-webkit-scrollbar { display: none; }
}
.yd-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0 40px;
}

.yd-feature-tile {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 3px solid #3E5C9A;
}

.yd-icon {
    font-size: 2rem;
    color: #3E5C9A;
    margin-bottom: 15px;
}

.yd-feature-tile h4 {
    font-family: 'Playfair Display', serif;
    color: #2A4068;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.yd-feature-tile p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.yd-steps-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 10px;
}

.yd-steps-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.yd-steps-card h4 {
    font-family: 'Playfair Display', serif;
    color: #2A4068;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.yd-steps-list {
    padding-left: 20px;
    color: #444;
    line-height: 2;
    font-size: 0.95rem;
}

.yd-steps-list a {
    color: #3E5C9A;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .yd-features-grid { grid-template-columns: 1fr; }
    .yd-steps-wrapper { grid-template-columns: 1fr; }
}
/* =========================================
   EXTERNAL COUNSELLING PAGE
   ========================================= */
.helpline-container {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.helpline-intro {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 35px;
}

.telemanas-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.07);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.04);
}

.tm-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2A4068;
    margin-bottom: 12px;
}

.tm-badge {
    display: inline-block;
    background-color: #27ae60;
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.numbers-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.phone-number-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2A4068;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.phone-number-btn:hover {
    border-color: #27ae60;
    color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39,174,96,0.15);
    text-decoration: none;
}

.phone-number-btn i {
    margin-right: 8px;
    font-size: 1.3rem;
}

/* =========================================
   ACTION BUTTONS (LIKE & SHARE)
   ========================================= */
.action-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: #f5f5f5;
    border-color: #999;
    transform: translateY(-2px);
}

.action-btn.liked {
    background: #ffe0e6;
    border-color: #ff4757;
    color: #ff4757;
}

.action-btn.liked i {
    animation: likePopin 0.5s ease;
    color: #ff4757;
}

@keyframes likePopin {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 18px 28px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    font-size: 1rem;
    z-index: 9999;
    animation: slideInToast 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 350px;
    border-left: 5px solid #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.toast-notification i {
    font-size: 1.4rem;
    animation: iconBounce 0.6s ease;
}

.toast-notification.fadeOut {
    animation: slideOutToast 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInToast {
    from {
        transform: translateX(450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToast {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(450px);
        opacity: 0;
    }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 768px) {
    .toast-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        padding: 16px 24px;
        font-size: 0.95rem;
        z-index: 9999;
    }
}
    

.tm-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9rem;
}

.tm-feat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-feat-item i {
    color: #3E5C9A;
}

.website-link-btn {
    display: inline-block;
    color: #3E5C9A;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 2px solid rgba(62, 92, 154, 0.3);
    padding-bottom: 2px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.website-link-btn:hover {
    color: #2A4068;
    border-bottom-color: #2A4068;
    text-decoration: none;
}

/* Flow section wrapper used by individual therapy page pattern */
.flow-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.wm-tabs-wrapper {
    background-color: #fff;
    border-bottom: 0px solid #eee;
    position: sticky;
    top: 60px;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 40px;
    padding-top: 10px; /* adds space between hero and tabs */
}

.wm-tabs {
    display: flex;
    justify-content: center; /* centers the tabs */
    gap: 0px;
    padding: 15px 0;
}
.team-tabs-wrapper {
    /* add this */
    margin-top: 20px; /* space below hero */
}

.team-tabs {
    display: flex;
    justify-content: center;
    gap: 0px;
    padding: 15px 0;
}
@media (max-width: 768px) {
    .wm-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 15px 12px;
        gap: 8px;
        scrollbar-width: none;
    }

    .wm-tabs::-webkit-scrollbar { display: none; }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.78rem;
        padding: 8px 14px;
    }
}
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}