/* Coding Club Specific Styles */

/* Club Hero Section */
.club-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e1b4b 100%);
    color: var(--white);
    overflow: hidden;
    padding-top: 100px;
}

.club-hero-section .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.club-hero-section .gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientMove 3s ease-in-out infinite;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: var(--white);
}

.about-content {
    background: var(--light-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.pathway-list {
    margin-top: 2rem;
}

.pathway-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.pathway-item:last-child {
    border-bottom: none;
}

.pathway-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

/* Programs Section */
.programs-section {
    padding: 8rem 0;
    background: var(--light-color);
}

.program-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.program-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.program-card.featured:hover {
    transform: scale(1.02) translateY(-10px);
}

.program-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.program-card:hover .program-overlay {
    opacity: 1;
}

.program-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transform: scale(0.8);
    transition: var(--transition);
}

.program-card:hover .program-icon {
    transform: scale(1);
}

.program-content {
    padding: 2rem;
}

.program-category {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.program-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.program-features {
    margin-bottom: 2rem;
}

.program-features .feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.program-features .feature i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.program-duration {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.program-duration i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Age Groups Section */
.age-groups-section {
    padding: 8rem 0;
    background: var(--white);
}

.age-group-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border: 2px solid transparent;
}

.age-group-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.age-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    transition: var(--transition);
}

.age-group-card:hover .age-icon {
    transform: scale(1.1);
}

.age-group-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.age-group-card h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.age-group-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.age-group-card ul {
    list-style: none;
    padding: 0;
}

.age-group-card ul li {
    background: var(--light-color);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding-left: 2.5rem;
}

.age-group-card ul li:before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.age-group-card ul li:last-child {
    margin-bottom: 0;
}

/* Specific Age Group Colors */
.age-groups-section .col-lg-3:nth-child(1) .age-group-card .age-icon {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.age-groups-section .col-lg-3:nth-child(2) .age-group-card .age-icon {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.age-groups-section .col-lg-3:nth-child(3) .age-group-card .age-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.age-groups-section .col-lg-3:nth-child(4) .age-group-card .age-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Custom Statistics for Club */
.club-hero-section .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}

.club-hero-section .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Enhanced Floating Cards for Club */
.club-hero-section .floating-card {
    position: absolute;
    background: var(--white);
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    animation: cardFloat 4s ease-in-out infinite;
    font-size: 0.875rem;
}

.club-hero-section .floating-card i {
    font-size: 1.25rem;
}

/* Specific technology colors for floating cards */
.club-hero-section .floating-card.card-1 i {
    color: #3776ab; /* Python Blue */
}

.club-hero-section .floating-card.card-2 i {
    color: #ff6b35; /* Robotics Orange */
}

.club-hero-section .floating-card.card-3 i {
    color: #7c3aed; /* AI Purple */
}

/* Enhanced Animations */
@keyframes clubHeroFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(1deg); 
    }
}

.club-hero-section .main-image {
    animation: clubHeroFloat 6s ease-in-out infinite;
}

/* Responsive Design for Club Page */
@media (max-width: 992px) {
    .club-hero-section .floating-card {
        display: none;
    }
    
    .program-card.featured {
        transform: none;
    }
    
    .program-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .age-group-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .club-hero-section {
        text-align: center;
        padding-top: 120px;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .pathway-item {
        font-size: 1rem;
    }
    
    .program-content {
        padding: 1.5rem;
    }
    
    .age-group-card {
        padding: 2rem 1.5rem;
    }
    
    .age-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .club-hero-section .hero-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .pathway-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .pathway-item i {
        margin-bottom: 0.5rem;
    }
    
    .program-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .program-footer .btn {
        width: 100%;
        text-align: center;
    }
    
    .age-group-card ul li {
        font-size: 0.8rem;
    }
}

/* Special Effects */
.programs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%233b82f6" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

/* Hover Effects for Better Interactivity */
.program-card .btn:hover {
    transform: translateY(-2px);
}

.age-group-card:hover ul li {
    background: rgba(59, 130, 246, 0.1);
}

/* Loading States */
.program-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.program-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}