/* ===== GENERAL STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: rgb(5, 229, 236);
    font-family: 'Poppins', Arial, sans-serif;
    color: #000000;
    overflow-x: hidden;
    width: 100%;
}

.main-content {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    background: #cce9f8;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.content-section h2 {
    text-align: center;
    color: #1E88E5;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.intro-paragraph {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #000000;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SUBJECT CATEGORIES ===== */
.subject-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.category-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.category-btn.active {
    background: #1E88E5;
    color: white;
    border-color: #1E88E5;
}

.category-btn:hover:not(.active) {
    background: #e9ecef;
    border-color: #1E88E5;
}

/* ===== SUBJECTS GRID ===== */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.subject-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #1E88E5;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.subject-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.subject-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.subject-card ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.subject-card li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.4;
}

/* ===== SUBJECT LEVEL AND ICON ===== */
.subject-level {
    display: inline-block;
    background: #e9c46a;
    color: #333;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.subject-icon {
    font-size: 2rem;
    color: #1E88E5;
    margin-bottom: 15px;
}

/* ===== PHASE SPECIFIC STYLES ===== */
.phase-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.phase-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #1E88E5;
}

.phase-header h3 {
    color: #1E88E5;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.phase-description {
    color: #666;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Foundation Phase Colors */
.phase-foundation .subject-card {
    border-left-color: #4CAF50;
}

.phase-foundation .subject-level {
    background: #4CAF50;
    color: white;
}

.phase-foundation .subject-icon {
    color: #4CAF50;
}

/* Intermediate Phase Colors */
.phase-intermediate .subject-card {
    border-left-color: #FF9800;
}

.phase-intermediate .subject-level {
    background: #FF9800;
    color: white;
}

.phase-intermediate .subject-icon {
    color: #FF9800;
}

/* Senior Phase Colors */
.phase-senior .subject-card {
    border-left-color: #9C27B0;
}

.phase-senior .subject-level {
    background: #9C27B0;
    color: white;
}

.phase-senior .subject-icon {
    color: #9C27B0;
}

/* FET Phase Colors */
.phase-fet .subject-card {
    border-left-color: #2196F3;
}

.phase-fet .subject-level {
    background: #2196F3;
    color: white;
}

.phase-fet .subject-icon {
    color: #2196F3;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1E88E5;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1E88E5;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ===== BUTTON STYLES ===== */
.cta-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.cta-btn.primary {
    background-color: #1E88E5;
    color: white;
}

.cta-btn.secondary {
    background-color: transparent;
    color: #1E88E5;
    border: 2px solid #1E88E5;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.cta-btn.primary:hover {
    background-color: #1976D2;
}

.cta-btn.secondary:hover {
    background-color: #1E88E5;
    color: white;
}

.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .subjects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 2rem 1rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .intro-paragraph {
        font-size: 1rem;
        text-align: left;
    }
    
    .subject-categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .subject-card {
        padding: 20px;
    }
    
    .phase-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .phase-header h3 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 1.5rem 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .subject-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .subject-card {
        padding: 15px;
    }
    
    .subject-card h3 {
        font-size: 1.2rem;
    }
    
    .phase-section {
        padding: 1rem;
    }
    
    .phase-header h3 {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .subject-card,
    .cta-btn {
        transition: none;
    }
}

/* Focus styles for better accessibility */
.category-btn:focus,
.cta-btn:focus {
    outline: 2px solid #1E88E5;
    outline-offset: 2px;
}

/* Loading state for filtering */
.subjects-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty state */
.no-subjects-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.no-subjects-message i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}