/* -----------------------------------------------------------
   IIT Kanpur | style.css
   Signature Academic & Institutional Aesthetics
----------------------------------------------------------- */

/* 1. Root Variables & Reset */
:root {
    --primary-blue: #003366; /* Signature IITK Dark Blue */
    --accent-orange: #f39200; /* Signature IITK Orange */
    --bg-light: #f4f8fb;
    --bg-dark: #111; /* Dark Footer */
    --text-dark: #222;
    --text-muted: #666;
}
/* Font Control Buttons Styling */
.font-controls button {
    background: rgb(255 206 27 / 82%);
    border: 1px solid rgb(100 100 100 / 30%);
    color: #ffffff;
    padding: 2px 8px;
    margin: 0 2px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: 0.3s;
}

.font-controls button:hover {
    background: var(--accent-orange);
    color: var(--primary-blue);
}

/* Cleaning up Google Translate Widget Look */
/* Contact Info Styling */
.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.contact-info a:hover {
    color: #f39200; /* Accent Orange */
}

/* Applying Bootstrap Form Control Look to Google Translate */
#google_translate_element select {
    display: block;
    width: 100%;
    padding: 0.15rem 1.5rem 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.3rem center;
    background-size: 10px 8px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    appearance: none;
}

/* Remove Google Branding for a cleaner look */
.goog-logo-link {
    display: none !important;
}
.goog-te-gadget {
    color: transparent !important;
}

/* Hide the Google Top Frame that appears after translation */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* 2. Top Utility Bar */
.top-utility-bar {
    background-color: #405185;
    color: #fff;
    padding: 8px 0;
    font-size: 0.8rem;
}

.top-utility-bar a {
    color: #fff;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 600;
    transition: 0.3s;
}

.top-utility-bar a:hover {
    color: var(--accent-orange);
}

/* 3. Main Logo Header */
.header-main {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.logo-img {
    height: 95px; /* Fixed height for the logo */
}

.hindi-title {
    color: #ffce1b;
    font-size: 1.9rem;
}

.english-title {
    color: var(--text-muted);
}

/* 4. Main Navigation (iitk.ac.in style) */
.navbar-main {
    background-color: #ffce1b;
    border-bottom: 4px solid var(--accent-orange); /* Key Visual Element */
    padding: 0;
}

.navbar-main .nav-link {
    color:#282626 !important;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 1px;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
}

.navbar-main .nav-link:hover, .navbar-main .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    border: none;
    border-radius: 0 0 10px 10px;
    background-color: #ffce1b;
    margin-top: 0;
}

.dropdown-menu-item {
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
}

.dropdown-menu-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

/* 5. Hero Carousel */
#heroCarousel {
    margin-top: 0;
}

.carousel-img {
    height: 80vh; /* Replicating iitk.ac.in height */
    min-height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: linear-gradient(rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    max-width: 100%;
    left: 10%;
    bottom: 15%;
}

/* 6. Content Section Styling */
.section-heading {
    font-weight: 800;
    color: #ffce1b;
    border-left: 5px solid var(--accent-orange);
    padding-left: 15px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.info-card {
    border: none;
    border-radius: 0;
    background-color: var(--bg-light);
    border-bottom: 2px solid transparent;
    transition: 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-orange);
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.date-box {
    border: 1px solid #eee;
    min-width: 65px;
}

.professional-list .list-group-item {
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
}

.professional-list .list-group-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.professional-list .list-group-item a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

/* 7. Professional Footer (iitk.ac.in layout) */
.footer {
    background-color: #405185;
    color: #fff;
    padding-top: 80px;
    padding-bottom: 30px;
    font-size: 0.9rem;
}

.footer-logo {
    height: 60px;
    
}

.social-icon {
    background: rgba(255,255,255,0.05);
    color: #fff;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--accent-orange);
    transform: translateY(-5px);
    color: var(--bg-dark);
}

.footer-heading {
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid var(--accent-orange);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1rem;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}

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

.footer-divider {
    border-color: rgba(173, 173, 173, 0.808);
}

/* 8. Mobile Responsiveness */
@media (max-width: 991px) {
    .header-main .container { flex-direction: column; text-align: center; }
    .institute-name-block { ms-0; margin-top: 15px; }
    .navbar-main .nav-link { text-align: center; padding: 12px !important; }
}

@media (max-width: 767px) {
    .carousel-img { height: 60vh; }
    .carousel-caption { left: 5%; bottom: 10%; max-width: 90%; }
    .display-4 { font-size: 2.2rem; }
    .footer { padding-top: 50px; text-align: center; }
    .footer-heading { margin-bottom: 20px; }
    .social-links { justify-content: center; }
}
/* Custom Colors from Screenshot */
:root {
    --iitk-terracotta: #b34b2d; /* The specific orange-red background */
    --iitk-navy: #003366;
}

/* Statistics Strip */
.stats-strip {
    background-color: #000000;
    color: white;
}

.border-end-custom {
    border-right: 1px solid rgba(255,255,255,0.3);
}

/* Research Section */
.research-section {
    background-color: #f8f9fa;
}

.research-title {
    color: var(--iitk-terracotta);
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.bg-terracotta {
    background-color: var(--iitk-terracotta) !important;
    border-radius: 0;
    padding: 8px 15px;
    font-weight: 500;
}

.w-fit { width: fit-content; }

/* Image Overlay Effect */
.research-card {
    min-height: 400px;
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transition: 0.3s ease;
}

.research-card:hover .card-overlay {
    background: linear-gradient(transparent, rgba(179, 75, 45, 0.9)); /* Terracotta hover */
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .border-end-custom { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 20px; margin-bottom: 20px; }
    .research-card { min-height: 300px; }
}
/* Custom Palette Extensions */
.bg-terracotta { background-color: #b34b2d !important; }
.bg-navy { background-color: #001a33 !important; }

/* Ranking Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    display: flex;
}

.control-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    padding: 15px 25px;
    transition: 0.3s;
}

.control-btn:hover {
    background: var(--iitk-terracotta);
}

/* Faculty Section Adjustment */
.faculty-img-box {
    height: 250px;
    overflow: hidden;
}

.faculty-img-box img {
    height: 100%;
    object-fit: cover;
}

/* Grid Border Consistency */
.rankings-spotlight .row {
    border-radius: 4px;
    overflow: hidden;
}

/* Typography and Spacing */
.rankings-spotlight h5 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.rankings-spotlight p {
    line-height: 1.6;
}

/* Responsive Handling */
@media (max-width: 991px) {
    .faculty-img-box { height: auto; }
    .bg-terracotta, .bg-navy { padding: 30px !important; }
}
/* Fix for child menu visibility */
.navbar {
    z-index: 1050 !important; /* Ensure navbar is above hero images */
}

.dropdown-menu {
    z-index: 9999 !important;
    display: none; /* Bootstrap JS will toggle this to 'block' */
}

/* Ensure the hero doesn't hide the dropdown */
#heroCarousel {
    z-index: 1;
}
/* Decrease font size and padding to fit all 17 items */
.navbar-main .nav-link {
    font-size: 0.75rem !important;
    padding: 9px 6px !important;
}

/* Ensure the dropdown menu matches the IITK Blue theme */
.dropdown-menu {
    background-color: #405185; /* Match your primary blue */
    border: none;
    border-top: 3px solid #f39200; /* Match your accent orange */
    border-radius: 0;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.dropdown-item {
    color: white !important;
    font-size: 0.75rem;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-item:hover {
    background-color: #ffce1b !important; /* Highlight with orange */
    color: #405185 !important;
}

/* Fix child menu on hover for desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-item:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
/* Container to control height */
.video-container {
    height: 80vh; /* Matches the 80vh we used for images */
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #000; /* Fallback color */
}

/* Make video behave like 'object-fit: cover' */
.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the video fills the area perfectly */
    filter: brightness(0.7); /* Darkens video slightly so white text is readable */
}

/* Ensure caption stays on top of video */
.carousel-caption {
    z-index: 10;
    background: transparent !important; /* Remove background if you want it cleaner */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Adds readability over moving video */
}


.quote-box {
    padding: 30px 20px;
    background: linear-gradient(135deg, #ffce1b, #405185);
    color: #fff;
    border-radius: 15px;
    min-height: 450px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Image */
.quote-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 15px;
}

/* Cursor effect */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .quote-box {
        min-height: 260px;
        padding: 20px;
    }
}
/* Card Container Styles */
.content-card, .sidebar-card {
    border-radius: 12px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Sophisticated Soft Shadow */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Sidebar List Styling */
.professional-list .list-group-item {
    font-size: 0.95rem;
    color: #444;
    transition: all 0.2s ease-in-out;
}

.professional-list .list-group-item:hover {
    background-color: #f8f9fa !important;
    color: #405185; /* Theme Primary Color */
    padding-left: 30px !important; /* Slight slide effect */
}

/* Section Heading styling */
.section-heading {
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.page-title {
    font-weight: 800;
    color: #2c3e50;
    font-size:18px;
}

.page-entry-content {
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}