/* Auto-extracted from mathematics.php on 2026-05-04 */

.subject-hero {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: white;
        padding: 60px 20px;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .subject-hero h1 {
        font-size: 3em;
        margin-bottom: 15px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }
    
    .subject-hero p {
        font-size: 1.2em;
        opacity: 0.95;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px 40px;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .stat-card {
        background: white;
        padding: 25px;
        border-radius: 10px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }
    
    .stat-number {
        font-size: 2.5em;
        font-weight: bold;
        color: #00f2fe;
        display: block;
    }
    
    .stat-label {
        color: #666;
        margin-top: 8px;
        font-size: 1em;
    }
    
    .units-grid {
        display: grid;
        gap: 25px;
    }
    
    .unit-card {
        background: white;
        border-radius: 12px;
        padding: 30px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border-left: 5px solid #00f2fe;
    }
    
    .unit-card:hover {
        transform: translateX(5px);
        box-shadow: 0 6px 20px rgba(0, 242, 254, 0.2);
    }
    
    .unit-header {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 15px;
    }
    
    .unit-number {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: white;
        padding: 15px 20px;
        border-radius: 10px;
        font-size: 1.5em;
        font-weight: bold;
        min-width: 80px;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 242, 254, 0.3);
    }
    
    .unit-info {
        flex: 1;
    }
    
    .unit-name {
        font-size: 1.8em;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 10px;
    }
    
    .unit-name a {
        color: #2c3e50;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .unit-name a:hover {
        color: #00f2fe;
    }
    
    .unit-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 15px;
    }
    
    .meta-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #e6f9ff;
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 0.9em;
        color: #555;
    }
    
    .meta-badge .icon {
        font-size: 1.1em;
    }
    
    .meta-badge .number {
        font-weight: bold;
        color: #00a8cc;
    }
    
    .complexity-badge {
        padding: 5px 12px;
        border-radius: 12px;
        font-size: 0.85em;
        font-weight: bold;
    }
    
    .complexity-easy {
        background: #d4edda;
        color: #155724;
    }
    
    .complexity-mid {
        background: #fff3cd;
        color: #856404;
    }
    
    .complexity-high {
        background: #f8d7da;
        color: #721c24;
    }
    
    @media (max-width: 768px) {
        .subject-hero h1 {
            font-size: 2em;
        }
        
        .unit-header {
            flex-direction: column;
        }
        
        .unit-number {
            width: 100%;
        }
        
        .stats-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
