.tabbed-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    padding: 1rem;
}

.tabbed-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tabbed-button:hover {
    transform: translateY(-2px);
}

.tabbed-button.active {
    background: #4A90E2;
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Subject Cards Grid - Updated for 3 cards per row */
.tabbed-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    /* Maximum width for the grid */
    margin: 0 auto;
    /* Center the grid */
}

/* Subject Card */
.tabbed-subject-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

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

/* Subject Title */
.tabbed-subject-title {
    color: #4A90E2;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4A90E2;
}

/* Subject List */
.tabbed-subject-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    /* Allow list to fill remaining space */
}

.tabbed-subject-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
    line-height: 1.5;
}

/* Year Content */
.tabbed-year-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: none;
}

.tabbed-year-content.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tabbed-content {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .tabbed-nav {
        flex-wrap: wrap;
    }

    .tabbed-button {
        width: 100%;
    }

    .tabbed-content {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
}

.tabbed-subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Force 3 columns */
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Subject Card */
.tabbed-subject-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

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

/* Subject Title */
.tabbed-subject-title {
    color: #4A90E2;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4A90E2;
}

/* Subject List */
.tabbed-subject-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    /* Allow list to fill remaining space */
}

.tabbed-subject-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
    line-height: 1.5;
}

.tabbed-check-icon {
    color: #48bb78;
    font-weight: bold;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tabbed-subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .tabbed-subjects-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
