/* CSS Variables */
:root {
    --primary-color: #002147;
    /* Deep Blue */
    --accent-color: #FFD700;
    /* Gold/Yellow */
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --font-family: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Utility Classes */
.hover-lift {
    transition: transform 0.3s;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-text-primary:hover {
    color: var(--primary-color) !important;
}

.hover-text-warning:hover {
    color: var(--accent-color) !important;
}

.hover-text-white:hover {
    color: var(--white) !important;
}

.text-justify {
    text-align: justify;
}

/* Top Bar */
.top-bar-new {
    background-color: #1a237e;
    font-size: 0.8125rem;
    /* 13px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.top-bar-new a,
.top-bar-new i {
    color: var(--white) !important;
}

.tb-links li:not(:last-child):not(:nth-last-child(2))::after {
    content: '|';
    margin-left: 15px;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    right: -10px;
}

.top-bar-new .container,
.main-header .container {
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* Header */
/* Header */
.main-header {
    background-color: var(--white);
    border-bottom: 4px solid var(--accent-color);
}

.university-name h1 {
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 1;
    font-family: serif;
}

.university-name h2 {
    font-weight: 600;
    font-size: .8rem;
    /*yha se change kr skte h fontsize of name */
    line-height: 1;
}

.university-name h3 {
    font-weight: 100;
    font-size: .7rem;
    line-height: 1.2;
}


.university-name .hindi-name {
    color: #0056b3;
    font-weight: light;
}

.logo-section .logo {
    width: 100px;
    height: auto;
}

/* fghjhgfvhjhb */
.flag img {
    height: 60px;
}

@media (min-width: 992px) {
    .logo-section .logo {
        width: 130px;
    }
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 100;
    text-transform: uppercase;
    font-size: 0.7rem;
    /* 14px */
    padding: 10px 15px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu on Hover */
@media (min-width: 992px) {
    .navbar-nav .nav-item:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        border-top: 3px solid var(--accent-color);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
}

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Hero Section */
/* Hero Slider */
.hero-slider {
    height: 650px;
}

.hero-slider img {
    height: 600px;
    min-height: 450px;
    object-fit: cover;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.125rem;
    /* 18px */
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Sidebar Profiles */
.sidebar-card {
    border-left: 4px solid var(--accent-color);
    transition: transform 0.2s;
}

.sidebar-card:hover {
    transform: translateX(5px);
}

/* Marquee Section */
.news-marquee {
    background-color: var(--primary-color);
    color: var(--white);
    height: 40px;
}

.marquee-label {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.marquee-label::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 40px solid var(--accent-color);
    border-right: 15px solid transparent;
    z-index: 1;
}

/* Quick Access */
.qa-card {
    transition: all 0.3s;
    border: 1px solid transparent;
}

.qa-card:hover {
    border-color: #b3e5fc;
    background-color: var(--white);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Section Headings */
.section-heading {
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Shared Animations */
.vertical-scroll-container {
    height: 300px;
}

.scroll-content {
    animation: scrollUp 15s linear infinite;
}

.vertical-scroll-container:hover .scroll-content {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Info Resources */
.info-card {
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    border-radius: 20px;
    transition: background 0.3s;
    font-weight: bold;
    /* Ensuring it looks 'active'/bold as often hover states do, though not strictly in previous CSS, the user likely wants the full effect */
}



.info-read-more:hover {
    background-color: var(--accent-color);
    /* Same as base now */
    color: var(--primary-color) !important;
}

/* News & Events */
.news-events-section .news-events-main-header {
    background-color: var(--primary-color);
}

.badge-new {
    display: inline-block;
    border: 1px solid #e53935;
    color: #e53935;
    font-size: 0.625rem;
    /* 10px */
    padding: 0 5px;
    border-radius: 10px;
    margin-left: 5px;
    font-style: italic;
}

/* Photo Gallery Marquee */
.gallery-track {
    width: max-content;
    animation: scrollGallery 30s linear infinite;
    padding: 20px 0;
    /* Add padding to prevent clipping of scaled images */
}

.gallery-track img {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: bottom center;
    /* Anchor to bottom like a dock, or center? Dock is usually bottom. Let's try center for general pop */
    transform-origin: center;
}

.gallery-track img:hover {
    transform: scale(1.2);
    z-index: 10;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    /* Enhance pop effect */
}

.gallery-marquee:hover .gallery-track {
    animation-play-state: paused;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Toppers Marquee */
.toppers-section {
    background-color: var(--primary-color);
}

.toppers-track {
    width: max-content;
    animation: scrollToppers 25s linear infinite;
    padding: 20px 0;
    /* Add padding to prevent clipping of scaled images */
}

.toppers-track img {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: bottom center;
    /* Anchor to bottom like a dock, or center? Dock is usually bottom. Let's try center for general pop */
    transform-origin: center;
}

.toppers-track img:hover {
    transform: scale(1.2);
    z-index: 10;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    /* Enhance pop effect */
}

.toppers-marquee:hover .toppers-track {
    animation-play-state: paused;
}

@keyframes scrollToppers {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    border-top: 5px solid var(--accent-color);
}

.footer-social a {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    border-color: var(--accent-color);
}

.footer-links-list a {
    transition: padding-left 0.2s;
}

.footer-links-list a:hover {
    padding-left: 5px;
}

/* Birthday Gallery Section */
.birthday-section {
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.birthday-track {
    display: flex;
    gap: 3rem;
    animation: scrollGallery 25s linear infinite;
    width: max-content;
    padding: 30px 0;
}

/* Birthday Gallery Section */
.birthday-section {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    /* Light background for contrast */
}

.birthday-track {
    display: flex;
    gap: 2rem;
    animation: scrollGallery 25s linear infinite;
    width: max-content;
    padding: 40px 0;
    /* More padding for hover effects */
}

.birthday-card {
    position: relative;
    min-width: 200px;
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #ffffff;
    background-image: radial-gradient(#FFD700 5%, transparent 5%), radial-gradient(#ff5e62 5%, transparent 5%), radial-gradient(#002147 5%, transparent 5%), radial-gradient(#4CAF50 5%, transparent 5%), radial-gradient(#9C27B0 5%, transparent 5%);
    background-position: 10px 10px, 40px 120px, 160px 20px, 140px 150px, 180px 80px;
    background-size: 15px 15px;
    background-repeat: repeat;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft, modern shadow */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.birthday-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.birthday-img-wrapper {
    position: relative;
    display: inline-block;
    width: 110px;
    height: 110px;
    margin-bottom: 15px;
}

.birthday-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    /* Thicker, bolder border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.birthday-cap {
    position: absolute;
    top: -55px;
    right: -15px;
    width: 85px;
    height: auto;
    z-index: 10;
    transform: rotate(15deg);
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
    /* Better shadow for depth */
    pointer-events: none;
    transition: transform 0.3s ease;
}

.birthday-card:hover .birthday-cap {
    transform: rotate(5deg) scale(1.1);
    /* Animate cap on hover */
}

.birthday-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.birthday-info p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Hover pause for birthday marquee */
.birthday-marquee:hover .birthday-track {
    animation-play-state: paused;
}

/* Sticky Side Buttons */




/* fixed social*/

#fixed-social {
    position: fixed;
    top: 50%;
    z-index: 999;
    transform: translateY(-50%);
}

#fixed-social a img {
    width: 32px;
    filter: invert(1);
}

#fixed-social a {
    color: #fff;
    height: 50px;
    position: relative;
    text-align: center;
    line-height: 40px;
    width: 50px;
    margin-bottom: 1px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 5px 5px 0;
}

#fixed-social a:hover>span {
    visibility: visible;
    left: 58px;
    opacity: 1;
}

#fixed-social a span {
    line-height: 40px;
    left: 60px;
    position: absolute;
    text-align: center;
    width: 120px;
    visibility: hidden;
    transition-duration: 0.5s;
    z-index: 1;
    opacity: 0;
}

.calendar {
    background-color: #00aae5;
}

.calendar span {
    background-color: #00aae5;
}

.brochure {
    background-color: #7d3895;
}

.brochure span {
    background-color: #7d3895;
}

.darpan {
    background-color: #00af54;
}

.darpan span {
    background-color: #00af54;
}


.new-fixed-social {
    position: fixed;
    top: 50%;
    z-index: 999;
    transform: translateY(-50%);
    right: 0;
    left: auto;
}

.new-fixed-social a {
    color: #fff;
    height: 50px;
    position: relative;
    text-align: center;
    line-height: 40px;
    width: 50px;
    margin-bottom: 1px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 0 0 5px;
}

.new-fixed-social a img {
    width: 32px;
    transition: all 0.3s;
    transform: scale(0.9);
}

.new-fixed-social a.calendar,
.new-fixed-social a.calendar span {
    background-color: #0062e0;
}

.new-fixed-social a.brochure,
.new-fixed-social a.brochure span {
    background-color: #ffd700;
}

.new-fixed-social a.wallet,
.new-fixed-social a.wallet span {
    background-color: #009003;
}

.new-fixed-social a:hover img {
    transform: scale(1);
}

.new-fixed-social a span {
    line-height: 40px;
    right: 40px;
    position: absolute;
    text-align: center;
    width: 120px;
    visibility: hidden;
    transition-duration: 0.5s;
    z-index: 1;
    opacity: 0;
    left: auto;
}

.new-fixed-social a:hover>span {
    visibility: visible;
    right: 58px;
    opacity: 1;
    left: auto;
}





.sticky-right {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Ensures buttons expand to the left */
    gap: 10px;
}

.sticky-right .sticky-btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    width: 50px;
    /* Collapsed width */
    height: 45px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center icon when collapsed */
    padding: 0;
    position: relative;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
}

.sticky-right .sticky-btn:hover {
    width: 150px;
    /* Expanded width */
    justify-content: flex-end;
    /* Keep content aligned to right */
    padding-right: 15px;
    /* Spacing for icon from right edge */
}

/* Ensure icon stays at the right */
.sticky-right .sticky-btn i {
    font-size: 1.2rem;
    position: absolute;
    right: 13px;
    /* Fixed position relative to button */
    transition: none;
}

/* Text styles */
.sticky-right .sticky-btn span {
    opacity: 0;
    margin-right: 35px;
    /* Space for the icon */
    transform: translateX(10px);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.sticky-right .sticky-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}


.sticky-left {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1030;
}

.sticky-left .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: auto;
}

.sticky-left .btn i {
    transform: rotate(0deg);
    /* Icon orientation */
    margin-bottom: 5px;
}

.sticky-left .vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Offcanvas Custom Styles */
.custom-close-btn {
    width: 30px;
    height: 30px;
    background-color: #0d6efd;
    border-radius: 50%;
    position: relative;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    display: block;
    transition: transform 0.2s, background-color 0.2s;
}

.custom-close-btn::before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgb(3, 8, 32);
    font-size: 16px;
}

.custom-close-btn:hover {
    transform: scale(1.1);
    background-color: #0b5ed7;
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .main-header {
        text-align: left;
        /* Keep left alignment for side-by-side */
    }

    .main-header .d-flex {
        justify-content: flex-start !important;
        /* Align logo and text to start */
        flex-wrap: nowrap;
        /* Prevent wrapping so they stay side-by-side */
        text-align: left;
    }

    .logo {
        max-width: 60px !important;
        /* Smaller logo for mobile row */
    }

    .university-name {
        margin-left: 10px;
    }

    .university-name h1 {

        /* Adjust font size for space */
        margin-top: 0;
        line-height: 1.2;
        font-size: 1rem;
        text-align: left;

    }

    .university-name h2 {
        font-size: 0.9rem;
        text-align: left;
    }

    .university-name h3 {
        font-size: 0.7rem;

        text-align: left;
    }

    .header-right-buttons {
        justify-content: space-between !important;
        margin-top: 15px;
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .header-right-buttons .btn {
        flex: 1;
        /* Make buttons equal width */
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 6px 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {

    /* Header adjustments for very small screens */
    .logo {
        max-width: 80px !important;
    }

    .university-name h1 {
        font-size: 1.2rem;
    }

    .university-name h2 {
        font-size: 0.9rem;
        text-align: left;
    }

    .university-name h3 {
        font-size: 0.8rem;

        text-align: left;
    }

    /* Hero Slider Responsive Height */
    .hero-slider {
        height: auto !important;
        /* Override inline height */
    }

    /* Ensure hero slider images cover well */
    .hero-slider .slide img {
        height: auto !important;
        min-height: 0 !important;
        object-fit: contain;
    }


}