/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #000;
    line-height: 1.6;
}

/* Container */
#ProgramsOffered {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

/* Main Heading */
.superheading {
    color: #004aad;
    text-align: center;
    margin-bottom: 10px;
    font-size: 36px;
    position: relative;
    padding-top: 10px;
}

.superheading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff7a00;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* TABLE OF CONTENTS - Converted from tabs */
.mt-4 {
    margin-top: 1.5rem;
}

/* TOC Box */
.nav-tabs {
    background: #f3f7ff;
    padding: 25px;
    border-left: 4px solid #004aad;
    border-radius: 6px;
    margin: 30px 0 40px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: none !important;
    display: block !important;
}

.nav-tabs::before {
    content: "Table of Contents";
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #004aad;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 74, 173, 0.1);
}

/* Reduced vertical spacing */
.nav-tabs .nav-item {
    display: block;
    margin: 6px 0;
}

/* Remove active styling completely */
.nav-tabs .nav-link,
.nav-tabs .nav-link.active {
    display: block;
    text-decoration: none !important;
    color: #ff7a00 !important;
    font-weight: bold;
    font-size: 15px;
    padding: 6px 10px !important;
    border: none !important;
    background: none !important;
    border-radius: 3px;
    transition: all 0.2s ease;
    text-align: left;
    cursor: pointer;
}

.nav-tabs .nav-link:hover {
    background-color: #e6efff !important;
    text-decoration: underline !important;
    transform: translateX(4px);
}

/* REMOVE TAB FUNCTIONALITY - Show all content */
.tab-content {
    border: none !important;
    padding: 0 !important;
    background: none !important;
    margin-top: 35px;
}

.tab-pane {
    display: block !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    overflow: visible !important;
}

.tab-pane.fade {
    opacity: 1 !important;
    animation: none !important;
}

.fade:not(.show) {
    opacity: 1 !important;
}

/* Section Headings */
.head2 {
    color: #004aad;
    margin-top: 35px;
    border-bottom: 2px solid #004aad33;
    padding-bottom: 7px;
    font-size: 28px;
    font-weight: 600;
    scroll-margin-top: 100px;
    position: relative;
}

/* Scroll margin fix anchor */
.head2::before {
    content: "";
    display: block;
    height: 100px;
    margin-top: -100px;
    visibility: hidden;
    position: absolute;
}

/* Section highlight */
.head2:target {
    animation: highlightSection 1.5s ease;
    background-color: rgba(0, 74, 173, 0.05);
    padding-left: 15px;
    border-radius: 4px;
    margin-left: -15px;
    padding-right: 15px;
}

@keyframes highlightSection {
    0% { background-color: rgba(0, 74, 173, 0.2); }
    100% { background-color: rgba(0, 74, 173, 0.05); }
}

.mt-30 {
    margin-top: 30px;
}

/* Content Styling */
#ProgramsOffered p {
    margin: 15px 0;
    line-height: 1.8;
}

#ProgramsOffered ol,
#ProgramsOffered ul {
    margin: 15px 0;
    padding-left: 25px;
}

#ProgramsOffered ol li,
#ProgramsOffered ul li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Bold text only inside ProgramsOffered */
#ProgramsOffered b,
#ProgramsOffered strong {
    color: #004aad;
}

/* Links only inside ProgramsOffered */
#ProgramsOffered a {
    color: #ff7a00;
    text-decoration: none;
}

#ProgramsOffered a:hover {
    text-decoration: underline;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.table-responsive::-webkit-scrollbar {
    display: none;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.table-bordered {
    border: 1px solid #ddd;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #ddd;
}

.table th {
    background: #004aad;
    color: #fff;
    padding: 12px !important;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.table td {
    padding: 10px !important;
    text-align: center;
    font-size: 14px;
}

.table tr:nth-child(even) {
    background: #f3f7ff;
}

/* Specific table styling */
.head3small {
    font-size: 18px;
    font-weight: bold;
    color: #004aad;
    padding: 10px;
}

.head4small {
    font-size: 16px;
    font-weight: bold;
    background: #004aad;
    color: #fff;
    padding: 12px;
    text-align: center;
}

/* Table row classes */
.tblrow {
    font-weight: bold;
}

.labelsmall {
    background: #f3f7ff;
    color: #004aad;
}

.labelblack {
    background: #004aad;
    color: #fff;
}

.txtsmall {
    font-size: 14px;
}

/* Note box styling */
.note-box {
    background: #f3f7ff;
    border-left: 5px solid #004aad;
    padding: 18px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 15px;
}

/* Fee structure links */
.heading-Fee.facultyul {
    list-style: none;
    padding-left: 0;
}

.heading-Fee.facultyul li {
    margin: 12px 0;
}

.heading-Fee.facultyul a {
    color: #004aad;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    background: #f3f7ff;
    border-radius: 5px;
    border-left: 4px solid #ff7a00;
    transition: all 0.3s ease;
}

.heading-Fee.facultyul a:hover {
    background: #e6efff;
    transform: translateX(10px);
    text-decoration: none;
}

.error {
    color: #dc3545;
}

/* Ensure TOC stays clean */
.nav-tabs::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .table th, .table td {
        padding: 10px 8px !important;
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    #ProgramsOffered {
        width: 98%;
        padding: 0 10px;
    }
    
    .superheading {
        font-size: 28px;
    }
    
    .head2 {
        font-size: 22px;
        margin-top: 30px;
        scroll-margin-top: 80px;
    }
    
    .head2::before {
        height: 80px;
        margin-top: -80px;
    }
    
    .nav-tabs {
        padding: 15px;
    }
    
    .nav-tabs::before {
        font-size: 18px;
    }
    
    .nav-tabs .nav-link {
        font-size: 14px;
        padding: 6px 10px !important;
    }
    
    .table-responsive {
        border: none;
        margin: 15px -10px;
        width: calc(100% + 20px);
    }
    
    .head3small {
        font-size: 16px;
    }
    
    .head4small {
        font-size: 14px;
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .superheading {
        font-size: 24px;
    }
    
    .head2 {
        font-size: 20px;
        scroll-margin-top: 60px;
    }
    
    .head2::before {
        height: 60px;
        margin-top: -60px;
    }
    
    .nav-tabs::before {
        font-size: 16px;
    }
    
    .nav-tabs .nav-link {
        font-size: 13px;
    }
    
    #ProgramsOffered p, 
    #ProgramsOffered ol li, 
    #ProgramsOffered ul li {
        font-size: 14px;
    }
    
    .heading-Fee.facultyul a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .nav-tabs {
        display: none !important;
    }
    
    .head2:target {
        background-color: transparent;
        padding-left: 0;
        margin-left: 0;
    }
    
    #ProgramsOffered a {
        color: #000;
        text-decoration: none;
    }
    
    .table-responsive {
        overflow: visible;
        border: 1px solid #000;
    }
    
    .table {
        page-break-inside: avoid;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
