/* Course Section Styles */
.course-section {
    background-color: #f8f9fa;
    padding-bottom: 60px;
}

/* Sticky Tabs */
.course-tabs-wrapper {
    position: sticky;
    top: 122px;
    background: white;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.course-tabs {
    display: flex;
    gap: 0;
    padding: 0;
}

.course-tab {
    flex: 1;
    padding: 20px 30px;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.course-tab:hover {
    color: var(--dark-blue);
    background: #f8f9fa;
}

.course-tab.active {
    color: var(--dark-blue);
    border-bottom-color: var(--light-blue);
    background: #f8f9fa;
}

/* Tab Content */
.course-content {
    padding: 40px 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Summary Tab Styles */
.course-info-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.info-title {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #333;
    min-width: 180px;
}

.info-value {
    color: #666;
    flex: 1;
}

.course-description {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section-heading {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.course-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.course-description p:last-child {
    margin-bottom: 0;
}

/* Syllabus Tab Styles */
.syllabus-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.syllabus-intro {
    font-size: 1.1rem;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--light-blue);
}

.syllabus-link {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.syllabus-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.syllabus-info p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

/* Subjects Tab Styles */
.subjects-section {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.subject-list {
    padding-left: 25px;
    margin-bottom: 30px;
}

.subject-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.subject-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

.subject-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.subject-table thead {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--dark-blue) 100%);
    color: white;
}

.subject-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
}

.subject-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.subject-table tbody tr:hover {
    background: #f8f9fa;
}

.subject-table tbody tr:last-child td {
    border-bottom: none;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .course-section {
        padding-bottom: 40px;
    }

    .course-tab {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .course-content {
        padding: 30px 0;
    }

    .course-info-card,
    .course-description,
    .syllabus-card,
    .subjects-section {
        padding: 25px;
    }

    .section-heading {
        font-size: 1.3rem;
    }

    .info-label {
        min-width: 150px;
    }
}

@media screen and (max-width: 768px) {
    .course-tabs {
        flex-direction: column;
    }

    .course-tab {
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }

    .course-tab.active {
        border-bottom-color: #e0e0e0;
        border-left-color: var(--light-blue);
    }

    .info-item {
        flex-direction: column;
        gap: 5px;
    }

    .info-label {
        min-width: auto;
    }

    .subject-table {
        font-size: 0.9rem;
    }

    .subject-table th,
    .subject-table td {
        padding: 10px;
    }
}

@media screen and (max-width: 576px) {
    .course-tab {
        padding: 15px;
        font-size: 0.95rem;
    }

    .course-content {
        padding: 20px 0;
    }

    .course-info-card,
    .course-description,
    .syllabus-card,
    .subjects-section {
        padding: 20px;
    }

    .section-heading {
        font-size: 1.2rem;
    }

    .info-title {
        font-size: 1.3rem;
    }

    .subject-table {
        font-size: 0.85rem;
    }

    .subject-table th,
    .subject-table td {
        padding: 8px;
    }
}

/* Additional styles for Science course page */
.subject-note {
    background: #f0f8ff;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid var(--light-blue);
}

.subject-note h4 {
    color: var(--dark-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.subject-note ul {
    list-style: none;
    padding: 0;
}

.subject-note ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem;
}

.subject-note ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--light-blue);
    font-weight: bold;
}

.career-prospects {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
}

.career-prospects p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.career-prospects .subject-list {
    padding-left: 25px;
}

.career-prospects .subject-list li {
    margin-bottom: 12px;
}

/* Additional styles for Commerce course page */
.semester-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid var(--light-blue);
}

.semester-title {
    color: var(--dark-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.semester-section .subject-list {
    margin-bottom: 0;
}

.semester-section .subject-list li {
    background: white;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.semester-section .subject-list li:hover {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.course-description h4 {
    color: var(--dark-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-description ul {
    list-style: none;
    padding: 0;
}

.course-description ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.course-description ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--light-blue);
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .semester-section {
        padding: 20px;
    }

    .semester-title {
        font-size: 1.1rem;
    }

    .semester-section .subject-list li {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
}