/**
 * Premium Card Designs with Dark Gradients
 * Matching the "Ready to Join Us?" CTA box aesthetic
 * Version: 1.0
 */

/* ========================================
   PREMIUM DARK GRADIENT CARDS
   ======================================== */

/* Event Cards - Subtle dark gradient like CTA box */
.single-services,
.event-card,
.blog-card,
.team-card,
.card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(40, 40, 50, 0.95) 0%, 
        rgba(30, 30, 40, 0.95) 50%,
        rgba(25, 25, 35, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Subtle color gradient overlay on hover */
.single-services::before,
.event-card::before,
.blog-card::before,
.team-card::before,
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.05) 0%, 
        rgba(139, 71, 137, 0.05) 50%, 
        rgba(65, 88, 208, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

/* Hover effect */
.single-services:hover::before,
.event-card:hover::before,
.blog-card:hover::before,
.team-card:hover::before,
.card:hover::before {
    opacity: 1;
}

.single-services:hover,
.event-card:hover,
.blog-card:hover,
.team-card:hover,
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Ensure content stays above gradient */
.single-services > *,
.event-card > *,
.blog-card > *,
.team-card > *,
.card > * {
    position: relative;
    z-index: 1;
}

/* ========================================
   SPECIFIC CARD ENHANCEMENTS
   ======================================== */

/* Event Detail Cards */
.event-details-card,
.event-info-card {
    background: linear-gradient(135deg, 
        rgba(40, 40, 50, 0.95) 0%, 
        rgba(30, 30, 40, 0.95) 50%,
        rgba(25, 25, 35, 0.95) 100%
    );
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Blog Post Cards */
.blog-post-item,
.post-card {
    background: linear-gradient(135deg, 
        rgba(40, 40, 50, 0.95) 0%, 
        rgba(30, 30, 40, 0.95) 50%,
        rgba(25, 25, 35, 0.95) 100%
    );
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.blog-post-item:hover,
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Team Member Cards */
.team-member-card,
.member-card {
    background: linear-gradient(135deg, 
        rgba(40, 40, 50, 0.95) 0%, 
        rgba(30, 30, 40, 0.95) 50%,
        rgba(25, 25, 35, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.team-member-card:hover,
.member-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ========================================
   CARD CONTENT STYLING
   ======================================== */

.card-title,
.event-title,
.blog-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-category,
.event-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.card-description,
.event-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ========================================
   STATUS BADGES WITH GRADIENT
   ======================================== */

.status-badge,
.event-status,
.badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ongoing status */
.status-ongoing,
.badge-ongoing {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

/* Upcoming status */
.status-upcoming,
.badge-upcoming {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Completed status */
.status-completed,
.badge-completed {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .single-services,
    .event-card,
    .blog-card,
    .team-card,
    .card {
        padding: 20px;
        border-radius: 20px;
    }
    
    .card-title,
    .event-title,
    .blog-title {
        font-size: 20px;
    }
    
    .card-description,
    .event-description {
        font-size: 14px;
    }
}


/* ========================================
   CARD BUTTONS - MATCHING JOIN E-CELL STYLE
   ======================================== */

.card-button,
.view-details-btn,
a.btn,
a.btn3,
a.ss-btn,
a.btn2,
button.btn3 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 70px 15px 30px;
    min-height: 60px;
    background: linear-gradient(180deg, #FF6B35 0%, #8B4789 50%, #4158D0 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    overflow: visible;
}

/* Circular Arrow Icon */
.card-button::after,
.view-details-btn::after,
a.btn::after,
a.btn3::after,
a.ss-btn::after,
a.btn2::after,
button.btn3::after {
    content: '→';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #8B4789;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Hide existing icons */
.card-button i,
.view-details-btn i,
a.btn i,
a.btn3 i,
a.ss-btn i,
a.btn2 i,
button.btn3 i {
    display: none;
}

/* Hover Effects */
.card-button:hover,
.view-details-btn:hover,
a.btn:hover,
a.btn3:hover,
a.ss-btn:hover,
a.btn2:hover,
button.btn3:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.card-button:hover::after,
.view-details-btn:hover::after,
a.btn:hover::after,
a.btn3:hover::after,
a.ss-btn:hover::after,
a.btn2:hover::after,
button.btn3:hover::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Active State */
.card-button:active,
.view-details-btn:active,
a.btn:active,
a.btn3:active,
a.ss-btn:active,
a.btn2:active,
button.btn3:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   RESPONSIVE BUTTON SIZES
   ======================================== */

@media (max-width: 991px) {
    .card-button,
    .view-details-btn,
    a.btn,
    a.btn3,
    a.ss-btn,
    a.btn2,
    button.btn3 {
        min-height: 55px;
        padding: 12px 65px 12px 25px;
        font-size: 15px;
        letter-spacing: 1.5px;
    }
    
    .card-button::after,
    .view-details-btn::after,
    a.btn::after,
    a.btn3::after,
    a.ss-btn::after,
    a.btn2::after,
    button.btn3::after {
        width: 42px;
        height: 42px;
        font-size: 22px;
        right: 7px;
    }
}

@media (max-width: 767px) {
    .card-button,
    .view-details-btn,
    a.btn,
    a.btn3,
    a.ss-btn,
    a.btn2,
    button.btn3 {
        min-height: 50px;
        padding: 10px 60px 10px 20px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .card-button::after,
    .view-details-btn::after,
    a.btn::after,
    a.btn3::after,
    a.ss-btn::after,
    a.btn2::after,
    button.btn3::after {
        width: 38px;
        height: 38px;
        font-size: 20px;
        right: 6px;
    }
}

@media (max-width: 480px) {
    .card-button,
    .view-details-btn,
    a.btn,
    a.btn3,
    a.ss-btn,
    a.btn2,
    button.btn3 {
        min-height: 48px;
        padding: 10px 55px 10px 18px;
        font-size: 13px;
        letter-spacing: 0.5px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .card-button::after,
    .view-details-btn::after,
    a.btn::after,
    a.btn3::after,
    a.ss-btn::after,
    a.btn2::after,
    button.btn3::after {
        width: 36px;
        height: 36px;
        font-size: 18px;
        right: 6px;
    }
}


/* ========================================
   FIX DUPLICATE BADGES
   ======================================== */

/* Hide any duplicate badges that appear after the first one */
.single-services .status-badge ~ .status-badge,
.event-card .status-badge ~ .status-badge,
.single-services .event-status ~ .event-status,
.event-card .event-status ~ .event-status,
.single-services .badge ~ .badge,
.event-card .badge ~ .badge {
    display: none !important;
}

/* If badge is inside image, hide the one outside */
.single-services img ~ .status-badge,
.event-card img ~ .status-badge,
.single-services img ~ .event-status,
.event-card img ~ .event-status,
.single-services img ~ .badge,
.event-card img ~ .badge {
    display: none !important;
}

/* Keep only the badge that's positioned absolutely on the image */
.single-services .status-badge[style*="position: absolute"],
.event-card .status-badge[style*="position: absolute"],
.single-services .event-status[style*="position: absolute"],
.event-card .event-status[style*="position: absolute"] {
    display: inline-block !important;
}
