.top-banner .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.top-banner {
    width: 100%;
    max-height: 300px;
    /* max height of banner */
    overflow: hidden;
    position: relative;
}

.top-banner img {
    width: 100%;
    /* full width responsive image */
    height: auto;
    /* maintain aspect ratio */
    display: block;
    object-fit: cover;
    /* cover container nicely */
    object-position: center;
}

@media (max-width: 768px) {
    .top-banner {
        max-height: 180px;
        /* smaller height on mobile */
    }
}

.abt-links li {
    margin: 0 5px;
}

.page-title {
    text-align: center;
    margin-top: 32px;
    font-size: 2rem;
    color: #0f2454;
    position: relative;
    margin-bottom: 30px;
    font-family: "EB Garamond", serif;
}

.page-title::before,
.page-title::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 2px;
    background: #ccc;
    margin: 0 16px;
    vertical-align: middle;
}

.content-area p {
    font-size: 95%;
    color: #0d345f;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.content-area ul {
    font-size: 1.03rem;
    color: #0d345f;
}

.content-area h3 {
    background-color: #163560;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    border-left: 4px solid #517fbe;
    padding: 12px 15px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 32px 0;
}

@media (max-width: 900px) {
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .icon-grid {
        grid-template-columns: 1fr;
    }
}

.icon-tile {
    background: #0f2454;
    color: #fff;
    text-align: center;
    padding: 28px 8px 10px 8px;
    border-radius: 5px;
    transition: background 0.2s;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-tile i {
    font-size: 2.4em;
    margin-bottom: 0.6em;
}

.icon-tile span {
    font-size: 1.11em;
    font-weight: 450;
}

.icon-tile:hover {
    background: #173479;
    color: #ffe451;
}

/* Breadcrumb styles */
.breadcrumb {
    background: #142857;
    color: #fff;
    margin-bottom: 0;
    border-radius: 0;
    padding: 10px 20px;
}

.breadcrumb a {
    color: #ffe451;
    text-decoration: none;
}

.sidebar {
    max-height: 600px;
    /* Or whatever max height you want*/
    background: #1f2a48;
    max-width: 260px;
    align-items: center;
    border-right: 1px solid #d8d8d8;
    padding: 0;
    overflow-y: scroll;
    overflow: auto;
    scrollbar-width: none;
    transition: max-height 0.5s ease; /* Smooth height transition */
}
.sidebar.expanded {
    max-height: 500px; /* Height when curriculum opens (adjust as needed) */
}

.sidebar-title {
    background: #ffe451;
    color: #0f2454;
    font-weight: bold;
    padding: 16px 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #fff;
    border-radius: 0px !important;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar ul li {
    border-bottom: 1px solid #173479;
}

.sidebar ul li a {
    display: block;
    color: #fff;
    font-size: 1.05em;
    padding: 13px 10px;
    text-decoration: none;
    border-left: 5px solid transparent;
    transition: background 0.3s, border-left 0.3s, color 0.3s;
}

.sidebar ul li.active a,
.sidebar ul li a:hover {
    background: #173479;
    color: #ffe451;
    border-left: 5px solid #ffe451;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .sidebar {
        max-width: 100%;
        border-right: none;
    }
}
.Department-Btn {
    margin: 0;
    padding: 0;
}

.Department-Btn ul {
    box-sizing: border-box;
}

.Department-Btn ul li {
    display: inline-block;
    padding: 10px 10px;
    background: #bb2f2f;
    font-size: 20px;
    border-radius: 5px;
}

.Department-Btn ul li a {
    text-decoration: none;
    color: #fff;
    display: block;
}

.sidebar ul li a {
    position: relative; /* allow ::after positioning */
}

/* Add + sign automatically on dropdown items */

/* Submenu hidden by default */
.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #132f66;
}

/* When dropdown is open (JS will add .open class) */
.dropdown.open .sub-menu {
    max-height: 200px; /* large enough for submenu */
}

/* Change + to – when open */

.sbj-list {
    overflow: hidden;
    margin-bottom: 25px;
    columns: 2; /* 2 columns */
    -webkit-columns: 2;
    -moz-columns: 2;
    gap: 20px; /* space between columns */
    list-style-type: disc;
}
.content-dt1 {
    text-align: justify;
    line-height: 28px;
    font-size: 100%;
    color: #0d345f;
}
@media (min-width: 768px) {
    .flex-md-unordered {
        -webkit-box-ordinal-group: 1;
        -webkit-order: 0;
        -ms-flex-order: 0;
        order: 0;
    }
}
.accordion {
    clear: both;
    overflow: hidden;
}

.accordion .card {
    border: none;
    border-radius: 0;
}

.accordion .card-header {
    display: flex; /* Required for flex centering */
    align-items: center; /* Vertical centering */
    /* Horizontal centering */
    height: 60px; /* Adjust as needed */
    font-size: 300;
    border-radius: 0;
    border-bottom: none;
    margin-top: 10px; /* Added missing value */
    margin-bottom: 20px;
    transition: all linear 0.2s;
    justify-content: space-between;
    background: #fff !important;
}

.accordion .card-body {
    padding: 5px 0 5px 5px;
    align-items: center;
    justify-content: center;
}

.accordion .card-header.active,
.accordion .card-header,
.accordion .card-header:focus {
    /* background-color: #163560 !important; */
    color: #fff !important;
    border-left: 5px solid #517fbe !important;
}

.accordion .card-header i {
    float: right;
    margin-top: 10px;
    color: #163560;
    font-size: 100%;
}

.accordion .card-header.active i,
.accordion .card-header:hover i {
    color: #fff;
}

.accordion .card-title {
    line-height: 1.3;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-size: 100%;
    font-weight: bold;
}
.accordion .toggle-icon {
    font-size: 22px;
    font-weight: bold;
    color: #075796;
}

.accordion p {
    margin-bottom: 5px;
}
.m-0 {
    margin: 0 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.ml-0 {
    margin-left: 0 !important;
}

.mx-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.accordion .card-header {
    margin: 10px 0px;
}
.tag-btn ul {
    list-style: none; /* bullets hatane */
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* multiple line ch adjust hon */
    gap: 10px; /* buttons vich gap */
}

.tag-btn ul li {
    margin: 0;
}

.tag-btn ul li a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0f2454; /* button color */
    color: #fff; /* text white */
    text-decoration: none; /* underline remove */
    border-radius: 25px; /* rounded pill shape */
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease; /* smooth hover effect */
}

.tag-btn ul li a:hover {
    background-color: #ffe451; /* hover color */
    color: #0f2454; /* hover text color */
    transform: translateY(-2px); /* halki upar wali lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.container-academic {
    margin: 40px auto;
    background: rgba(255 255 255 / 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}
.sub-menu {
    max-height: 0;
    /* start collapsed */
    overflow: hidden;
    transition: max-height 0.8s ease;
    /* smooth open/close */
}

.dropdown.open .sub-menu {
    max-height: 500px;
    /* large enough to fit content */
}

.accordion-button:focus {
    z-index: 3;
    border-color: #517fbe;
    outline: 0;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    box-shadow: none !important;
}

.accordion .card-header.active,
.accordion .card-header:hover,
.accordion .card-header:focus {
    background-color: #fff !important;
    color: #fff;
    border-left: 5px solid #517fbe;
}

.accordion .card-header {
    margin: 10px 0px;
}

.accordion-button {
    background: #c7d3ed !important;
    border-radius: 5px !important;
}

/* Basic Reset */
* {
    box-sizing: border-box;
}

.container-academic {
    margin: 40px auto;
    background: rgba(255 255 255 / 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

/* sidebar-academic */
.sidebar-academic {
    width: 220px;
    background: #1f2a48;
    color: #f1f1f1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: inset 4px 0 7px -4px rgb(255 255 255 / 0.25),
        1px 0 7px -4px rgb(0 0 0 / 0.4);
}

.sidebar-academic .header {
    background: #f5c432;
    color: #141414;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 20px;
    text-align: center;
    font-family: "Poppins", sans-serif;
}

.nav-group-academic {
    overflow-y: auto;
    flex-grow: 1;
}

.nav-item-academic {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    border-left: 4px solid transparent;
    user-select: none;
}

.nav-item:hover {
    background: #3451a1;
}

.nav-item.active {
    background: #f5c432;
    color: #1b1b1b;
    border-left: 6px solid #233484;
    font-weight: 700;
}

/* Content Area */
.content-area {
    flex-grow: 1;
    padding: 30px;
    background: #e6ebf7;
    border-left: 2px solid #f5c432;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Title with subtle lines */
.content-area h2 {
    font-family: "Georgia", serif;
    font-weight: 400;
    color: #2c3e50;
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.content-area h2::before,
.content-area h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1.5px;
    background: #233484;
}

.content-area h2::before {
    left: 0;
    transform: translateY(-50%);
}

.content-area h2::after {
    right: 0;
    transform: translateY(-50%);
}

.accordion:hover {
    background: #a4c1f3;
}

.accordion.active {
    background: #74a0ef;
    color: #fff;
}

.accordion svg {
    transition: transform 0.3s ease;
}

.accordion.active svg {
    transform: rotate(180deg);
}

/* Accordion content */
.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-weight: 400;
    background: #d2ddf9;
    border-radius: 0 0 12px 12px;
    padding: 0 20px;
    color: #2c3e50;
}

.panel p {
    margin: 15px 0;
}

.breadcrumb {
    background: #142857;
    color: #fff;
    margin-bottom: 0;
    border-radius: 0;
    padding: 10px 20px;
}

.top-banner {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

.top-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}
