/* ============================================================
   TELERIK REPLACEMENT CSS
   Replaces Telerik RadMenu_Material, RadPanelBar, RadRotator
   styles for the MDU website clone
   ============================================================ */

/* ===================== RADMENU (HORIZONTAL NAV) ===================== */

.RadMenu.RadMenu_Material {
    background-color: #fff;
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    position: relative;
    z-index: 1000;
    width: 100% !important;
}

.RadMenu .rmScrollWrap {
    display: flex;
    align-items: center;
    background: #fff;
    width: 100% !important;
}

.RadMenu .rmRootScrollGroup {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.RadMenu .rmItem {
    position: relative;
    list-style: none;
}

.RadMenu .rmLink {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.RadMenu .rmRootLink {
    padding: 14px 18px;
}

.RadMenu .rmLink:hover,
.RadMenu .rmLink:focus {
    background-color: #0073e6;
    color: #fff !important;
    text-decoration: none;
}

.RadMenu .rmItem.rmSelected > .rmLink {
    background-color: #0073e6;
    color: #fff !important;
}

.RadMenu .rmText {
    font-size: 14px;
}

.RadMenu .rmToggle {
    display: inline-block;
    margin-left: 4px;
}

.RadMenu .rmToggle .rmIcon {
    font-size: 0;
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    margin-left: 5px;
}

/* Level 1 Dropdown */
.RadMenu .rmSlide {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    min-width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    padding: 0;
}

.RadMenu .rmItem:hover > .rmSlide {
    display: block;
}

.RadMenu .rmVertical {
    list-style: none;
    margin: 0;
    padding: 0;
}

.RadMenu .rmVertical .rmItem {
    display: block;
    position: relative;
}

.RadMenu .rmVertical .rmLink {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.RadMenu .rmVertical .rmLink:hover {
    background-color: #0073e6;
    color: #fff !important;
}

/* Level 2+ Dropdown (opens to the right) */
.RadMenu .rmVertical .rmSlide {
    top: 0;
    left: 100%;
}

/* Toggle icon for sub-menus in vertical items */
.RadMenu .rmVertical .rmToggle .rmIcon {
    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 0;
}

/* ===================== RADPANELBAR (SIDE NAV) ===================== */

.RadPanelBar {
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
}

.RadPanelBar .rpRootGroup {
    list-style: none;
    margin: 0;
    padding: 0;
}

.RadPanelBar .rpItem {
    list-style: none;
}

.RadPanelBar .rpLink {
    display: block;
    padding: 10px 15px;
    color: #818181;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.RadPanelBar .rpLink:hover {
    color: #f1f1f1;
}

.RadPanelBar .rpRootLink {
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.RadPanelBar .rpSlide {
    display: none;
}

.RadPanelBar .rpGroup {
    list-style: none;
    margin: 0;
    padding: 0 0 0 15px;
}

.RadPanelBar .rpText {
    font-size: 14px;
}

.RadPanelBar .rpExpandHandle {
    display: none;
}

.RadPanelBar .rpOut {
    display: block;
}

/* Glow skin for side nav */
.RadPanelBar_Glow .rpLink {
    color: #818181;
}

.RadPanelBar_Glow .rpLink:hover {
    color: #f1f1f1;
}

/* Bootstrap skin for mobile menu */
.RadPanelBar_Bootstrap {
    overflow-y: auto;
}

.RadPanelBar_Bootstrap .rpRootGroup {
    list-style: none;
    margin: 0;
    padding: 0;
}

.RadPanelBar_Bootstrap .rpLink {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.RadPanelBar_Bootstrap .rpLink:hover {
    background-color: #f5f5f5;
}

.RadPanelBar_Bootstrap .rpRootLink {
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
}

.RadPanelBar_Bootstrap .rpGroup {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 15px;
}

.RadPanelBar_Bootstrap .rpSlide {
    display: none;
}

.RadPanelBar_Bootstrap .rpExpandable + .rpSlide {
    display: none;
}

/* ===================== RADROTATOR (COURSE SLIDER) ===================== */

.RadRotator {
    position: relative;
    overflow: hidden;
}

.RadRotator .rrRelativeWrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.RadRotator .rrClipRegion {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.RadRotator .rrItemsList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    transition: transform 0.5s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 5px;
}

.RadRotator .rrItem {
    flex: 0 0 auto;
    list-style: none;
}

.RadRotator_Default {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* ===================== RADSITEMAP (BREADCRUMB) ===================== */

.RadSiteMap {
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
}

.RadSiteMap_Metro {
    padding: 5px 0;
}

.RadSiteMap .rsmFlow {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.RadSiteMap .rsmItem {
    display: inline;
}

.RadSiteMap .rsmLink {
    color: #333;
    text-decoration: none;
    padding: 2px 8px;
}

.RadSiteMap .rsmLink:hover {
    text-decoration: underline;
}

/* ===================== MENU DIV OVERRIDES ===================== */

.menudiv {
    border-bottom-width: 4px;
    padding: 0;
    margin: 0;
    border-bottom: 4px solid #008000;
    background-color: #fff;
}

.menumobilediv {
    background-color: #fff;
    padding: 0;
    margin: 0;
}

/* ===================== HEADER FIXES ===================== */

/* Top navigation bar */
.topbar {
    background-color: #EAEAEA;
    border-bottom: 5px solid #008BE7;
    padding: 5px 0;
}

.topbar .navbar {
    padding: 0;
    margin: 0;
}

.topbar .nav-item .nav-link {
    font-size: 14px;
    padding: 8px 12px;
    color: #333;
}

.topbar .nav-item .nav-link:hover {
    color: #0073e6;
}

/* University header layout */
.showmymainpanel .d-flex {
    align-items: center;
    padding: 10px 15px;
}

.showmymainpanel {
    display: block;
}

.auto-style2 {
    display: none;
}

@media only screen and (max-width: 768px) {
    .showmymainpanel {
        display: none;
    }
    .auto-style2 {
        display: block;
        text-align: center;
    }
}

/* ===================== UTILITY BAR ===================== */

.utility-bar {
    padding: 5px 0;
}

.font-adjuster .btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 3px;
}

/* ===================== ABOUT MDU SECTION ===================== */

.showmydiv .table-bordered td {
    vertical-align: middle;
}

.bg-basic {
    background-color: #fff;
    padding: 5px;
}

/* ===================== ADDITIONAL LAYOUT FIXES ===================== */

/* Fix for the sticky nav not overlapping content */
.sticky-top {
    z-index: 1020;
}

/* Smooth scroll-to-top button */
#myBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
    display: none;
}

#myBtn:hover {
    opacity: 0.8;
}

/* ===================== FOOTER FIXES ===================== */

/* Fix: footer has <td> inside <div> — make td display as block */
#footer td {
    display: block;
    padding: 0;
    border: none;
}

#footer .col-xs-12 td {
    display: block;
    padding: 0;
}

/* Footer columns should use proper grid on small screens */
#footer .row {
    display: flex;
    flex-wrap: wrap;
}

#footer h5 {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073e6;
}

#footer .quick-links {
    margin-bottom: 0;
}

#footer .quick-links li {
    padding: 3px 0;
}

#footer .quick-links li a {
    color: #999;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

#footer .quick-links li a:hover {
    color: #fff;
    padding-left: 5px;
}

#footer .quick-links li a i {
    margin-right: 5px;
    color: #0073e6;
}

#footer .social li a i {
    font-size: 24px;
    color: #fff;
    transition: color 0.3s;
}

#footer .social li a i:hover {
    color: #0073e6;
}

/* Fix footer section background */
.footer {
    background: #0A0A0A;
    color: #fff;
    padding-top: 20px;
}

/* ===================== ONLINE USERS BAR ===================== */

/* Style the bottom bars */
#main > div[style*="background-color: #333333"] {
    font-size: 13px;
}

/* ===================== GREEN HR LINE ===================== */

hr.Green {
    border: 2px solid #009933;
    margin: 0;
}

/* ===================== CAROUSEL IMPROVEMENTS ===================== */

.carousel-item img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.carousel-caption .imagetitle {
    font-size: 1.2rem;
    font-weight: 600;
}

.carousel-caption .imageinfotext {
    font-size: 1rem;
    margin-bottom: 5px;
}

/* ===================== ABOUT MDU TABLE ===================== */

.showmydiv .table td {
    padding: 8px;
}

/* VC image section */
.vcimage {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vcnameback {
    text-align: center;
    padding: 10px;
    border-radius: 0 0 4px 4px;
}

.vcname {
    display: block;
    line-height: 1.4;
}

/* VC message */
.vcmessage {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.vcmessage::-webkit-scrollbar {
    width: 6px;
}

.vcmessage::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

/* Stats cards in About MDU section */
.showmydiv .card.bg-danger,
.showmydiv .card.bg-success,
.showmydiv .card.bg-info,
.showmydiv .card.bg-primary,
.showmydiv .card.bg-warning {
    border-radius: 6px;
    transition: transform 0.2s;
}

.showmydiv .card.bg-danger:hover,
.showmydiv .card.bg-success:hover,
.showmydiv .card.bg-info:hover,
.showmydiv .card.bg-primary:hover,
.showmydiv .card.bg-warning:hover {
    transform: scale(1.03);
}

/* ===================== PROGRAMMES OFFERED SECTION ===================== */

.rotatorStyle {
    padding: 10px 0;
}

/* The "Programmes Offered" heading */
div[style*="background-color: #004FA3"] {
    border-radius: 0;
}

/* ===================== GALLERY SECTION ===================== */

.tz-gallery .card-columns {
    column-count: 4;
}

@media (max-width: 768px) {
    .tz-gallery .card-columns {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .tz-gallery .card-columns {
        column-count: 1;
    }
}

.tz-gallery .card {
    margin-bottom: 15px;
    border: none;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tz-gallery .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.tz-gallery .card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================== ALUMNI SPEAKS ===================== */

.alumnicarousel .carousel-inner {
    min-height: 200px;
}

.alumnicarousel .carousel-item {
    text-align: center;
    padding: 20px;
}

/* ===================== NEWSLINK / MARQUEE BAR ===================== */

.newslink {
    background: linear-gradient(to right, #fff, #f0f8ff);
    border-bottom: 2px solid #0073e6;
    margin-bottom: 10px;
    padding: 8px 15px;
}

.newslink a {
    color: cornflowerblue;
    text-decoration: none;
    font-size: 14px;
}

.newslink a:hover {
    text-decoration: underline;
}

/* ===================== NEWS & EVENTS HEADING ===================== */

span[style*="color:Gray"][style*="X-Large"] {
    display: block;
    text-align: center;
    margin: 15px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #FF9933;
}

/* ===================== ONLINE USERS BAR ===================== */

div[style*="background-color: #333333"] {
    font-size: 13px;
    padding: 8px 15px;
}

div[style*="background-color: #333333"] span {
    color: #fff;
}

/* ===================== VC MESSAGE TABS ===================== */

.nav-tabs .nav-link {
    color: #333;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-tabs .nav-link.active {
    color: #0073e6;
    font-weight: 600;
    border-bottom: 3px solid #0073e6;
    background: #fff;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

/* ===================== STATS CARDS ===================== */

.huge {
    font-size: 16px;
    font-weight: 600;
}

.fontstatstext {
    font-size: 13px;
    font-weight: 500;
}

/* ===================== COURSE SLIDER SCROLLBAR ===================== */

.rrItemsList::-webkit-scrollbar {
    height: 8px;
}

.rrItemsList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.rrItemsList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.rrItemsList::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===================== PROGRAMMES OFFERED SECTION ===================== */

.card-content {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===================== TECHNOLOGY PARTNERS ===================== */

.client-logo {
    padding: 15px;
    text-align: center;
}

.client-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.client-logo img:hover {
    filter: grayscale(0%);
}

/* ===================== NEWS & EVENTS SECTION ===================== */

/* Override mainNewsEv.css outer padding that creates odd layout */
.panel-default.outer {
    padding: 0 !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Override mainNewsEv.css headerbar negative margins */
.panel-heading.headerbar {
    background: linear-gradient(135deg, #004d99, #0073e6) !important;
    color: #fff;
    padding: 12px 15px !important;
    margin: 0 !important;
    border-radius: 0;
    height: auto !important;
    box-shadow: none !important;
}

.panel-heading.headerbar::before,
.panel-heading.headerbar::after {
    display: none !important;
}

.panel-heading.headerbar h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.panel-heading.headerbar:hover {
    transform: none !important;
}

.panel-body {
    padding: 10px 15px;
}

/* News date badges */
.DateNews {
    padding: 2px 8px;
    display: inline-block;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 3px;
    margin-top: 4px;
}

/* News card styling */
.cardstyle {
    border: none !important;
    margin: 0;
    width: 100%;
    padding: 0;
}

.cardstyle .card-body {
    padding: 8px 5px;
}

.Ctitle {
    font-size: 14px !important;
    padding: 0;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
}

.Ctitle a {
    color: #333;
    text-decoration: none;
}

.Ctitle a:hover {
    color: #0073e6;
    text-decoration: underline;
}

/* ===================== EVENTS SECTION ===================== */

#eventList {
    min-height: 400px;
}

/* ===================== ALUMNI SPEAKS ===================== */

/* Ensure proper section spacing */
.container-fluid > br {
    display: block;
    margin-top: 10px;
}

/* ===================== OVERALL BODY DEFAULTS ===================== */

body {
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Main container */
#main {
    max-width: 100%;
    overflow-x: hidden;
}

#form1 {
    max-width: 100%;
}

/* Fix aspNetHidden divs showing */
.aspNetHidden {
    display: none !important;
}

/* Links default color */
a {
    color: #0073e6;
}

a:hover {
    color: #005bb5;
}

/* ===================== MARQUEE REPLACEMENT ===================== */

/* Style the marquee containers */
marquee {
    padding: 5px;
}

/* ===================== MODAL IMAGE FIX ===================== */

.modal-body img {
    max-width: 100%;
    height: auto;
}

/* ===================== RESPONSIVE PANEL BAR TOGGLE ===================== */

/* Make the panel bar items expandable via click in mobile */
.RadPanelBar .rpExpandable {
    cursor: pointer;
}

.RadPanelBar .rpExpandable::after {
    content: '▸';
    float: right;
    margin-right: 10px;
    transition: transform 0.3s;
}

.RadPanelBar .rpExpandable.rpExpanded::after {
    transform: rotate(90deg);
}

/* ===================== PRINT STYLES ===================== */

@media print {
    .sidenav,
    #mobileMenu,
    .sticky-top,
    .newslink,
    #myBtn {
        display: none !important;
    }
}
/* ===================== RESPONSIVE IMPROVEMENTS ===================== */

/* Make the top nav more compact on tablets */
@media (max-width: 1200px) {
    .RadMenu .rmRootLink {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Stack menu items on medium screens */
@media (max-width: 991px) {
    .RadMenu .rmScrollWrap {
        flex-wrap: wrap;
    }
    
    .RadMenu .rmRootLink {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .showmydiv .container-fluid .row .col-xl-3 {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .carousel-caption .imagetitle {
        font-size: 0.9rem;
    }
    
    .carousel-caption .imageinfotext {
        font-size: 0.8rem;
        display: none;
    }

    /* Stack footer columns */
    #footer .col-xs-12.col-sm-4 {
        margin-bottom: 20px;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .showmymainpanel .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .showmymainpanel .ml-auto {
        margin-left: 0 !important;
        text-align: center;
    }

    .newslink {
        font-size: medium !important;
        padding: 5px 10px !important;
    }
}

/* ===================== MISCELLANEOUS FIXES ===================== */

/* Fix image overflow in carousel */
.carousel-inner {
    overflow: hidden;
}

/* Green HR line - ensure consistent rendering */
hr.Green {
    border: 2px solid #009933;
    margin: 0;
    padding: 0;
}

/* Fix orange bottom border on About MDU section */
div[style*="border-bottom-color: #FF9933"] {
    margin-bottom: 0;
}

/* Ensure marquee doesn't overflow */
marquee {
    width: 100%;
    overflow: hidden;
}

/* Fix for Bootstrap modal z-index with sticky nav */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* Event list improvements */
.event-list > li {
    border-radius: 4px;
    overflow: hidden;
}

.event-list > li > .info > .title {
    line-height: 1.3;
}

/* Technology partners section */
section#clients {
    background: #f8f9fa;
}

/* Swachh Bharat / Clean India section images */
.socialbgurl {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fix for embedded YouTube / external links */
.nav-item .fa-youtube-square {
    vertical-align: middle;
}

/* ===================== ANCHOR SMOOTH SCROLL ===================== */

html {
    scroll-behavior: smooth;
}