/* Modern 2025 Design Enhancements for CMDA Theme */

/* Glassmorphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(7, 107, 78, 0.15);
}

/* Modern Card Designs - 2025 Edition */
.card-2025 {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(251,238,214,0.9));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Photo-Based Cards 2025 */
.photo-card-2025 {
    position: relative;
    border-radius: 25px;
    overflow: visible !important;
}

.photo-card-2025 .card-detail-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    z-index: 10;
    margin-top: 1rem;
}

.photo-card-2025 .card-detail-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hero Social Sidebar */
.hero-social-sidebar a:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hero-social-sidebar {
        position: static !important;
        transform: none !important;
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 2rem 0;
    }
}

.card-2025::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card-2025:hover::before {
    transform: scaleX(1);
}

.card-2025:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(7, 107, 78, 0.15);
}

.card-2025 .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0a8f66);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(7, 107, 78, 0.3);
    transition: all 0.3s ease;
}

.card-2025:hover .card-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(7, 107, 78, 0.4);
}

/* Modern Button Styles */
.btn-modern {
    position: relative;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color), #0a8f66);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(7, 107, 78, 0.3);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(7, 107, 78, 0.4);
}

/* Hero Section with Background Image */
.hero-section-modern {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(7, 107, 78, 0.95), rgba(10, 143, 102, 0.9));
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    animation: fadeInUpModern 1s ease;
}

@keyframes fadeInUpModern {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Carousel Styles */
.cmda-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* Card Detail Panels */
.card-detail-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(251,238,214,0.5);
    border-radius: 15px;
    margin-top: 1rem;
}

.card-detail-panel.active {
    max-height: 500px;
    padding: 1.5rem;
}

.card-details-list {
    list-style: none;
    padding: 0;
}

.card-details-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(7, 107, 78, 0.1);
}

.card-details-list li:last-child {
    border-bottom: none;
}

.card-details-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Modern Calendar Styles */
.calendar-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.calendar-day-modern {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    background: rgba(251,238,214,0.3);
}

.calendar-day-modern:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.calendar-day-modern.has-event {
    background: linear-gradient(135deg, var(--primary-color), #0a8f66);
    color: white;
    box-shadow: 0 5px 15px rgba(7, 107, 78, 0.3);
}

.calendar-day-modern.has-event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.calendar-day-modern.has-event:hover {
    transform: scale(1.15) rotate(3deg);
    box-shadow: 0 10px 30px rgba(7, 107, 78, 0.4);
}

/* Team Member Cards */
.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.1);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0a8f66);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-social a:hover {
    transform: translateY(-3px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(7, 107, 78, 0.3);
}

/* Sponsor Logos */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.sponsor-logo {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sponsor-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.sponsor-logo:hover img {
    filter: grayscale(0%);
}

/* Video Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Mission/Vision Cards */
.mission-vision-card {
    background: linear-gradient(135deg, rgba(7, 107, 78, 0.05), rgba(251, 238, 214, 0.5));
    border-radius: 20px;
    padding: 3rem;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.mission-vision-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.mission-vision-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), #ff5555);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(221, 51, 51, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .card-2025 {
        padding: 1.5rem;
    }
    
    .photo-card-2025 {
        height: 400px !important;
    }
    
    .carousel-slide img {
        height: 300px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .team-card-modern {
        margin-bottom: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .sponsor-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
    .team-photo {
        height: 250px;
    }

/* Modern Team Cards - Glassmorphism Design 2025 */
.team-section {
    position: relative;
    overflow: hidden;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.team-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
    transform: translateY(0) scale(1);
}

.team-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(7,107,78,0.05), rgba(251,238,214,0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.team-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 5px solid transparent;
    background: linear-gradient(135deg, var(--primary-color), #0a8f66) padding-box,
                linear-gradient(135deg, var(--primary-color), #0a8f66, #28a745) border-box;
    position: relative;
    box-shadow: 0 20px 40px rgba(7,107,78,0.4), 0 0 0 2px rgba(255,255,255,0.8), 0 0 20px rgba(7,107,78,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.team-avatar::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(7,107,78,0.3), rgba(251,238,214,0.2), rgba(7,107,78,0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-avatar:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 50px rgba(7,107,78,0.5), 0 0 0 3px rgba(255,255,255,0.9), 0 0 30px rgba(7,107,78,0.3);
}

.team-avatar:hover::before {
    opacity: 1;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.team-avatar:hover img {
    transform: scale(1.1);
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(7,107,78,0.15), rgba(251,238,214,0.1), rgba(7,107,78,0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.team-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #b91c1c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-role {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.team-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.expertise-tag {
    background: rgba(7,107,78,0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.team-details-btn {
    background: linear-gradient(135deg, var(--primary-color), #0a8f66);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(7,107,78,0.3);
}

.team-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(7,107,78,0.4);
}

.team-details-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(25px);
    padding: 2.5rem;
    border-radius: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.close-details {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(221,51,51,0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-details:hover {
    background: rgba(221,51,51,0.2);
    transform: scale(1.1);
}

.details-content h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.details-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.details-list {
    text-align: left;
    max-width: 250px;
    margin: 0 auto;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.detail-item i {
    flex-shrink: 0;
}

/* Team Stats Cards */
.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.stat-card div:first-child {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #0a8f66);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 25px rgba(7,107,78,0.3);
}

.stat-card div:nth-child(2) {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card div:last-child {
    color: var(--text-light);
    font-weight: 600;
}

/* Responsive Team Cards */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-card {
        padding: 2rem;
    }

    .team-avatar {
        width: 130px;
        height: 130px;
    }

    .team-info h3 {
        font-size: 1.3rem;
    }

    .team-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }
}

