* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 12px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-section {
    flex-shrink: 0;
}

.ftcheq-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-text h1 {
    color: #2d3436;
    font-size: 1.4rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.subtitle {
    color: #636e72;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 30px;
    flex: 1;
}

/* Programs Section */
.programs-section {
    margin-bottom: 20px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.program-card {
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.program-card img {
    max-width: 90%;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.program-card:hover img {
    transform: scale(1.05);
}

.program-card h3 {
    margin: 0;
    color: #2d3436;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Footer */
.main-footer {
    background: rgba(0,0,0,0.15);
    color: #2d3436;
    text-align: center;
    padding: 12px;
    margin-top: auto;
}

.main-footer p {
    font-size: 0.8rem;
    margin: 0;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .ftcheq-logo {
        height: 35px;
    }

    .header-text h1 {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .container {
        padding: 15px;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .program-card {
        padding: 18px 12px;
        min-height: 120px;
    }

    .program-card img {
        height: 60px;
    }

    .program-card h3 {
        font-size: 0.85rem;
    }

}

@media (max-width: 480px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}