/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, Helvetica Neue, Helvetica, sans-serif; font-size: 14px; color: #333; line-height: 1.6; }
a { text-decoration: none; color: #337ab7; }
a:hover { color: #23527c; }
img { max-width: 100%; height: auto; }

/* ===== HEADER & TOP NAV ===== */
.custom-top-nav { background: #f8f8f8; border-bottom: 1px solid #e7e7e7; padding: 0; }
.website-logo { display: inline-block; padding: 10px 0; }
.website-logo img.first-logo { height: 65px; float: left; margin-right: 15px; }
.logo-name { display: block; font-size: 20px; font-weight: 700; color: #1a3e6f; line-height: 1.2; }
.logo-tagline { display: block; font-size: 13px; color: #666; font-weight: 500; }
.top-nav-left-custom { list-style: none; display: flex; align-items: center; gap: 5px; padding: 0; margin: 0; }
.top-nav-left-custom li { display: flex; align-items: center; gap: 5px; }
.flash { display: inline-block !important; padding: 6px 12px !important; font-size: 13px !important; font-weight: 600; }
.top-latest-btn1 { background: #ffc107; color: #000 !important; border-radius: 3px; margin: 2px; white-space: nowrap; }
.admission-btn-top { background: #5cb85c !important; color: #fff !important; border-radius: 3px; font-size: 12px; padding: 6px 12px; white-space: nowrap; }
.btn-danger.abcd, .btn-danger.abcde { background: #dc3545 !important; color: #fff !important; border-radius: 3px; font-size: 12px; padding: 6px 12px; white-space: nowrap; }
.btn-primary.abcd { background: #337ab7 !important; color: #fff !important; border-radius: 3px; font-size: 12px; padding: 6px 12px; white-space: nowrap; }
.sarch-nav { padding: 8px; }
.has-search { position: relative; }
.has-search .form-control-feedback { position: absolute; right: 10px; top: 8px; color: #999; }
.has-search input { padding-right: 30px; border-radius: 20px; border: 1px solid #ccc; padding: 6px 30px 6px 12px; }

/* ===== MAIN NAVIGATION ===== */
.header-main-nav-section { background: #1a3e6f; border-top: 3px solid #ffc107; }
.menu { position: relative; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; flex-wrap: wrap; }
.menu > ul > li { position: relative; }
.menu > ul > li > a { display: block; padding: 12px 18px; color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; border-right: 1px solid rgba(255,255,255,0.1); }
.menu > ul > li > a:hover { background: #ffc107; color: #1a3e6f; }
.menu > ul > li > ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; z-index: 1000; box-shadow: 0 6px 12px rgba(0,0,0,0.175); }
.menu > ul > li:hover > ul { display: block; }
.menu ul ul li { position: relative; }
.menu ul ul li a { display: block; padding: 8px 15px; color: #333; font-size: 13px; border-bottom: 1px solid #eee; }
.menu ul ul li a:hover { background: #f5f5f5; color: #1a3e6f; }
.menu ul ul ul { display: none; position: absolute; left: 100%; top: 0; background: #fff; min-width: 220px; box-shadow: 0 6px 12px rgba(0,0,0,0.175); }
.menu ul ul li:hover > ul { display: block; }
.menu-head { font-weight: 700 !important; color: #1a3e6f !important; background: #f8f8f8; }
.website-right-logo img { height: 50px; }
@media (max-width: 991px) {
    .menu > ul { flex-direction: column; }
    .menu > ul > li > ul { position: static; box-shadow: none; }
    .menu ul ul ul { position: static; }
}

/* ===== HERO SLIDER ===== */
.rev_slider_wrapper { position: relative; width: 100%; overflow: hidden; }
.hostel-ad-section { position: absolute; top: 10px; right: 10px; z-index: 10; }
.hostel-ad-section img { height: 80px; }
.rev_slider { position: relative; width: 100%; }
.rev_slider ul { list-style: none; padding: 0; margin: 0; }
.rev_slider ul li { position: relative; display: none; }
.rev_slider ul li:first-child { display: block; }
.rev_slider ul li img { width: 100%; height: 450px; object-fit: cover; }
.carousel-caption.custom-caption { position: absolute; bottom: 60px; left: 0; right: 0; text-align: center; background: rgba(0,0,0,0.6); padding: 20px; }
.carousel-caption.custom-caption h3 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.carousel-caption.custom-caption p { font-size: 18px; color: #ffc107; margin: 0; }
.slider-indicators { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 15; }
.slider-indicators span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.slider-indicators span.active { background: #ffc107; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 15; background: rgba(0,0,0,0.5); color: #fff; border: none; padding: 15px 10px; cursor: pointer; font-size: 18px; }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* ===== QUICK LINKS CIRCLES ===== */
.circle { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; transition: transform 0.3s; }
.circle:hover { transform: scale(1.1); }
.circle i { font-size: 32px; color: #fff; }
.bg1 { background: #337ab7; }
.bg2 { background: #5cb85c; }
.bg3 { background: #f0ad4e; }
.bg4 { background: #dc3545; }
.bg5 { background: #6f42c1; }
.bg6 { background: #20c997; }
.bg7 { background: #0056b3; }
.bg8 { background: #e83e8c; }
.circle-heading { font-size: 14px; font-weight: 700; text-align: center; margin-top: 10px; }
.circle-heading a { color: #333; }
.circle-heading a:hover { color: #337ab7; }

/* ===== NEWS TICKER ===== */
.news-flash { width: 100%; background: #ffc107; font-size: 18px; color: #000; line-height: 25px; border-bottom: 4px solid #fff; padding: 10px 0; }
.news-flash marquee a { color: #000; margin-right: 30px; }
.news-flash marquee a img { vertical-align: middle; margin-right: 5px; }

/* ===== UNIVERSITY GOVERNANCE ===== */
.university-gov-pic-section { padding: 20px 0; }
.profile-pic-uni { width: 40%; float: left; }
.profile-pic-uni img { height: 367px; width: 100%; padding-right: 25px; object-fit: cover; }
.home-chancellor-name { font-weight: 700; padding: 12px 6px; margin: 0 10px; display: flex; color: #fff; font-size: 14px; border-left: 5px solid #209fed; background: #209fed; margin-bottom: 3px; border-radius: 3px; width: 59.6%; }
.nav-pills .nav-link { border: 1px solid #209fed; margin-bottom: 25px; font-size: 15px; font-weight: 600; padding: 25px; background: #209fed; color: #fff; border-radius: 0; }
.nav-pills .nav-link.active { border: 1px solid #dc3545; background-color: #dc3545 !important; }
.tab-content { background: #f1f6fe; padding: 15px; min-height: 367px; }
.tab-content .tab-pane .tab-pane { background: none; padding: 10px; }
.nav-tabs .nav-link { padding: 12px 20px; font-size: 13px; border-radius: 0; }
.nav-tabs .nav-link.active { background-color: #fff !important; border-bottom-color: transparent; }
.ovrflw { position: relative; }
.ovrflw .form_ul { height: 233px; overflow: auto; padding: 10px; }
.ovrflw .form_ul p { text-align: justify; }
.ovrflw .form_ul::-webkit-scrollbar { width: 5px; background-color: #f1f1f1; }
.ovrflw .form_ul::-webkit-scrollbar-thumb { background: #dc3545; }
.btn-secondary { background: #6c757d; color: #fff; border: none; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.btn-secondary.pull-right { float: right; }

/* ===== FACULTY SECTION ===== */
.faculty-section { padding: 30px 0; background: #f9f9f9; }
.faculty-card { text-align: center; padding: 15px; background: #fff; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; }
.faculty-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.faculty-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.faculty-card p { font-size: 12px; color: #666; margin-bottom: 8px; }
.faculty-card a { font-size: 12px; color: #337ab7; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 40px 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.testimonial-card { text-align: center; padding: 30px; }
.testimonial-card p { font-style: italic; font-size: 15px; line-height: 1.8; margin-bottom: 15px; }
.testimonial-card h4 { font-weight: 700; margin-bottom: 5px; }
.testimonial-card span { font-size: 13px; opacity: 0.8; }

/* ===== NOTICE & EVENTS ===== */
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: #1a3e6f; border-bottom: 2px solid #ffc107; padding-bottom: 10px; }
.notice-list { list-style: none; padding: 0; }
.notice-list li { padding: 10px 0; border-bottom: 1px dotted #ddd; }
.notice-list li a { color: #333; font-size: 13px; }
.notice-list li a:hover { color: #337ab7; }
.notice-list li .date { font-size: 11px; color: #999; }
.Evdatetime { color: #fff; background-color: #c52c66; padding: 3px 8px; text-align: center; text-transform: uppercase; margin-right: 15px; border-radius: 3px; font-weight: 700; font-size: 12px; }

/* ===== FOOTER ===== */
.footer { background: #1a3e6f; color: #fff; padding: 40px 0 0; }
.footer h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; border-bottom: 2px solid #ffc107; padding-bottom: 10px; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { padding: 5px 0; }
.footer ul li a { color: #ccc; font-size: 13px; }
.footer ul li a:hover { color: #ffc107; }
.footer p { font-size: 13px; color: #ccc; line-height: 1.8; }
.footer .contact-info li { padding-left: 25px; position: relative; }
.footer .contact-info li i { position: absolute; left: 0; top: 8px; color: #ffc107; }
.footer .copyright { background: #0d2240; padding: 15px 0; margin-top: 30px; text-align: center; font-size: 13px; color: #ccc; }
.social-links { display: flex; gap: 10px; margin-top: 15px; }
.social-links a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); align-items: center; justify-content: center; color: #fff; font-size: 16px; transition: 0.3s; }
.social-links a:hover { background: #ffc107; color: #1a3e6f; }

/* ===== CHAT WIDGET ===== */
.livechat { position: fixed; right: 20px; bottom: 20px; z-index: 99; width: 320px; }
.livechat_inside { box-shadow: 0 0 18px 0 #509cb6; background: #fff; border-radius: 20px; }
.chatheader { background: #ff6000; color: #fff; padding: 20px; border-top-left-radius: 20px; border-top-right-radius: 20px; font-size: 13px; position: relative; }
.chat-circle-icon { position: absolute; top: -39px; left: 128px; background: #ff6000; width: 70px; height: 70px; border-radius: 50%; border: 5px solid #fff; text-align: center; display: flex; align-items: center; justify-content: center; }
.chat-circle-icon img { width: 37px; }
.chat-body { border-bottom-left-radius: 20px; padding: 20px; background: #fff; border-bottom-right-radius: 20px; }
.chatbtn { position: absolute; right: 35px; top: 16px; display: flex; gap: 5px; }
.chatbtn-close { position: absolute; right: 10px; top: 17px; }

/* ===== HEADERBAR (blue title bars) ===== */
.headerbar { text-align: center; padding: 8px; background: #337ab7; color: #fff; position: relative; margin-bottom: 1.5em; box-shadow: 5px 5px 5px #d9d9d9; }
.headerbar h3 { font-size: 23px; font-weight: 700; margin-bottom: 0; }
.headerbar:before { content: ""; position: absolute; border-bottom: 1.5em solid #333; border-left: 1.5em solid transparent; left: 0; top: -1.5em; }
.headerbar:after { content: ""; position: absolute; border-top: 1.5em solid #333; border-right: 1.5em solid transparent; right: 0; bottom: -1.5em; }

/* ===== ADMIN STYLES ===== */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a3e6f 0%, #337ab7 100%); }
.admin-login-box { background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); width: 400px; max-width: 90%; }
.admin-login-box h2 { text-align: center; margin-bottom: 30px; color: #1a3e6f; }
.admin-login-box .form-group { margin-bottom: 20px; }
.admin-login-box label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 5px; }
.admin-login-box input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; }
.admin-login-box .btn-primary { width: 100%; padding: 12px; background: #337ab7; color: #fff; border: none; border-radius: 5px; font-size: 16px; font-weight: 600; cursor: pointer; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: #1a3e6f; color: #fff; padding: 20px 0; flex-shrink: 0; }
.admin-sidebar .admin-logo { padding: 15px 20px; font-size: 18px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 15px; }
.admin-sidebar ul { list-style: none; padding: 0; margin: 0; }
.admin-sidebar ul li a { display: block; padding: 12px 20px; color: rgba(255,255,255,0.8); font-size: 14px; transition: 0.3s; border-left: 3px solid transparent; }
.admin-sidebar ul li a:hover, .admin-sidebar ul li a.active { background: rgba(255,255,255,0.1); color: #fff; border-left-color: #ffc107; }
.admin-main { flex: 1; background: #f4f4f4; }
.admin-header { background: #fff; padding: 15px 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; }
.admin-content { padding: 30px; }
.stat-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; }
.stat-card .stat-number { font-size: 32px; font-weight: 700; }
.stat-card .stat-label { font-size: 14px; color: #666; }
.data-table { width: 100%; background: #fff; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
.data-table th { background: #f8f8f8; font-weight: 600; font-size: 13px; text-transform: uppercase; }
.data-table tr:hover { background: #f5f5f5; }
.btn { display: inline-block; padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-primary { background: #337ab7; color: #fff; }
.btn-success { background: #5cb85c; color: #fff; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-warning { background: #f0ad4e; color: #fff; }
.btn-info { background: #5bc0de; color: #fff; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: #fff; padding: 30px; border-radius: 10px; width: 90%; max-width: 700px; max-height: 90vh; overflow-y: auto; }
.modal-content h3 { margin-bottom: 20px; color: #1a3e6f; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
.text-center { text-align: center; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-0 { margin-bottom: 0; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.pb-3 { padding-bottom: 15px; }
.pt-3 { padding-top: 15px; }
.pt-1 { padding-top: 5px; }
.pb-1 { padding-bottom: 5px; }
.pl-5 { padding-left: 30px; }
.pr-5 { padding-right: 30px; }
.ml-4 { margin-left: 20px; }
.mr-2 { margin-right: 10px; }
.mr-auto { margin-right: auto; }
.ml-auto { margin-left: auto; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.float-left { float: left; }
.float-right { float: right; }
.img-fluid { max-width: 100%; height: auto; }
.clearfix::after { content: ""; clear: both; display: table; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col, .col-md-2, .col-md-10, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-sm-3 { padding: 0 15px; }
.col-md-2 { width: 16.666%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.666%; }
.col-md-10 { width: 83.333%; }
@media (max-width: 768px) {
    .col-md-2, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-10 { width: 100%; }
    .hide-mobile { display: none !important; }
    .profile-pic-uni { width: 100%; float: none; }
    .profile-pic-uni img { height: auto; padding-right: 0; }
    .home-chancellor-name { width: 100%; margin-left: 0; }
    .nav-pills .nav-link { padding: 15px; margin-bottom: 5px; }
}

/* ===== RESULT SEARCH PAGE ===== */
.search-section { padding: 40px 0; background: #f4f4f4; }
.search-box { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); max-width: 600px; margin: 0 auto; }
.search-box h2 { text-align: center; color: #1a3e6f; margin-bottom: 20px; }
.result-card { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-top: 30px; }
.result-card h3 { color: #1a3e6f; border-bottom: 2px solid #ffc107; padding-bottom: 10px; margin-bottom: 20px; }
.info-table { width: 100%; }
.info-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; }
.info-table td:first-child { font-weight: 600; width: 200px; color: #555; }
.marks-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.marks-table th { background: #1a3e6f; color: #fff; padding: 10px; text-align: left; }
.marks-table td { padding: 10px; border-bottom: 1px solid #eee; }
.marks-table tr:nth-child(even) { background: #f9f9f9; }
.loading { text-align: center; padding: 30px; color: #999; }
.error-msg { text-align: center; padding: 20px; color: #dc3545; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
    .logo-name { font-size: 17px; }
    .menu > ul > li > a { padding: 10px 12px; font-size: 12px; }
}
@media (max-width: 991px) {
    .top-nav-left-custom { flex-direction: column; align-items: flex-start; }
    .top-nav-left-custom li { flex-wrap: wrap; }
    .website-logo { text-align: center; }
    .website-logo img.first-logo { float: none; }
}
@media (max-width: 576px) {
    .rev_slider ul li img { height: 200px; }
    .carousel-caption.custom-caption { padding: 10px; bottom: 30px; }
    .carousel-caption.custom-caption h3 { font-size: 16px; }
    .carousel-caption.custom-caption p { font-size: 13px; }
    .circle { width: 60px; height: 60px; }
    .circle i { font-size: 24px; }
    .headerbar h3 { font-size: 18px; }
    .footer h4 { font-size: 14px; }
}