/* Course Page Specific Styles */

/* Course Hero Section */
.course-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.btech-hero {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.bca-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.course-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.course-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Year Selection - Modern Card Design */
.year-selection {
    margin-top: 3rem;
}

.year-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.year-tab {
    display: block;
    text-decoration: none;
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    cursor: pointer;
}

.year-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.year-tab:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    border-color: var(--success);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.year-tab:hover::before {
    transform: scaleX(1);
}

.year-tab:hover .year-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.year-tab:hover .year-title {
    color: var(--success);
}

.year-tab:hover .year-description {
    color: var(--text);
}

.year-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.year-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.year-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.year-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.year-semesters {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.year-arrow {
    color: var(--success);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.year-tab:hover .year-arrow {
    transform: translateX(5px);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb i {
    color: var(--text-light);
    font-size: 0.8rem;
}

.breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

/* Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Responsive Year Tabs */
@media (max-width: 768px) {
    .year-tabs {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .year-tab {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .year-tab {
        padding: 1rem;
    }
    
    .year-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .year-title {
        font-size: 1.1rem;
    }
    
    .year-description {
        font-size: 0.8rem;
    }
}

/* Semester Content */
.semester-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.semester-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.semester-info h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.semester-info p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Semesters Container */
.semesters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Semester Card */
.semester-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

.semester-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

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

.semester-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.semester-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.3rem 0;
}

.semester-header p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.semester-content-details {
    padding: 1.5rem;
    display: block;
    background: var(--white);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subjects List */
.subjects-list {
    margin-bottom: 1rem;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.subject-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 0.6rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.subject-item:last-child {
    margin-bottom: 0;
}

.subject-item:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(4px);
    border-color: var(--primary);
}

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

.subject-item span {
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Semester Actions */
.semester-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.semester-actions .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    min-width: 100px;
}

.semester-actions .btn-outline {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    transition: all 0.3s ease;
}

.semester-actions .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .year-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .year-tab {
        width: 100%;
        max-width: 300px;
    }
    
    .semesters-container {
        grid-template-columns: 1fr;
    }
    
    .semester-actions {
        flex-direction: column;
    }
    
    .semester-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .course-hero h1 {
        font-size: 2rem;
    }
    
    .course-hero p {
        font-size: 1rem;
    }
    
    .semester-content {
        padding: 1rem;
    }
    
    .semester-header {
        padding: 0.8rem 1rem;
    }
    
    .semester-content-details {
        padding: 1rem;
    }
}
