/* 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: #003e8f;
    background: #f8f9fa;
}

.course-tab.active {
    color: #003e8f;
    border-bottom-color: #2BAFE3;
    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: #003e8f;
    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: #003e8f;
    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 #2BAFE3;
}

.syllabus-link {
    color: #2BAFE3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.syllabus-link:hover {
    color: #003e8f;
    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, #2BAFE3 0%, #003e8f 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;
}
/*subject-table*/
.year-btn {
  padding: 12px 26px;
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}

.year-btn:hover {
  background: #084298;
}

/* 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: #2BAFE3;
    }

    .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 #2BAFE3;
}

.subject-note h4 {
    color: #003e8f;
    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: #2BAFE3;
    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 #2BAFE3;
}

.semester-title {
    color: #003e8f;
    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: #003e8f;
    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: #2BAFE3;
    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;
    }
}

.student-button {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

/* Default (NON-ACTIVE) */
.year-btn {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: 2px solid #003e8f;
    color: #003e8f;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover */
.year-btn:hover {
    background: #003e8f;
    color: #fff;
}

/* ACTIVE button */
.year-btn.active {
    background: #003e8f;
    color: #fff;
    border-color: #003e8f;
    box-shadow: 0 6px 14px rgba(0,123,255,0.3);
}


.pdf-content {
    display: none;
}

.pdf-content.active {
    display: block;
    margin-top: 30px;
}

.year-btn.active {
    background: #007bff;
    color: #fff;
}

.pdf-card {
    max-width: 420px;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid #eaeaea;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 15px;
}

.pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}


.pdf-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.pdf-top i {
    font-size: 26px;
}


.pdf-bottom {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.pdf-btn {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 16px;
    display: block;
}

.pdf-btn a {
    margin:  0 auto;
}
