/* =========================================================
   Breadcrumb Page
========================================================= */
/* Breadcrumb Section */
.edu-breadcrumb-section {
    background: var(--bs-tertiary-bg);
}

/* Breadcrumb */
.edu-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    margin-bottom: 0;
    list-style: none;
    background-color: var(--bs-card-bg);
    border-radius: var(--bs-card-border-radius-lg);
    border: 1px solid var(--bs-card-border-color);
    box-shadow: var(--bs-card-box-shadow);
    transition: all .35s ease;
}

/* Breadcrumb items */
.edu-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 .5rem;
    color: var(--bs-secondary-color);
}

.edu-breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: var(--bs-body-color);
    position: relative;
    padding-bottom: 2px;
    transition: color .3s ease;
}

/* Hover gradient underline */
.edu-breadcrumb .breadcrumb-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
    border-radius: 3px;
}

.edu-breadcrumb .breadcrumb-item a:hover {
    color: var(--bs-primary);
}

.edu-breadcrumb .breadcrumb-item a:hover::after {
    transform: scaleX(1);
}

/* Active breadcrumb */
.edu-breadcrumb .breadcrumb-item.active {
    color: var(--bs-secondary-color);
    font-weight: 600;
}


/* Hide breadcrumb on small & medium screens */
@media (max-width: 991.98px) {
    .edu-breadcrumb-section {
        display: none;
    }
}

/* Optional: Desktop breadcrumb styling */
@media (min-width: 992px) {
    .edu-breadcrumb-section .breadcrumb-item a {
        text-decoration: none;
        color: var(--bs-primary);
        font-weight: 500;
    }

    .edu-breadcrumb-section .breadcrumb-item.active {
        color: var(--bs-secondary);
        font-weight: 600;
    }
}


/* =========================================================
   DOCUMENT & MEDIA SHOWCASE (NAMESPACE SAFE)
========================================================= */
.edu-doc-media {
    background: var(--bs-tertiary-bg);
}

/* Media frame */
.edu-media-frame {
    height: 420px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-media-object,
.edu-media-frame iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
}

/* Description */
.edu-media-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--bs-body-color);
}

/* PDF iframe */
.edu-media-pdf iframe {
    width: 100%;
    height: 620px;
    border: none;
    background: var(--bs-card-bg);
}

/* Mobile PDF card */
.edu-media-pdf-card .card {
    border-radius: var(--bs-card-border-radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.edu-media-pdf-card .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bs-box-shadow);
}

.pdf-icon {
    font-size: 2rem;
}

/* Carousel arrows */
.edu-media-slider .carousel-control-prev-icon,
.edu-media-slider .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 768px) {
    .edu-media-frame {
        height: 260px;
    }
}




/* =========================================================
   Contact us
========================================================= */
.edu-contact-section {
    background: var(--bs-tertiary-bg);
}

/* ======================================================
   BASE CONTACT CARD (shared)
====================================================== */
.edu-contact-card {
    background: var(--bs-card-bg);
    border-radius: var(--bs-card-border-radius);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Gradient accent line (same pattern as grid cards) */
.edu-contact-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.edu-contact-card:hover::before {
    transform: scaleX(1);
}

/* Hover lift */
.edu-contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bs-box-shadow-lg);
}

/* Icons */
.contact-icon {
    font-size: 1.25rem;
}

/* Department cards */
.edu-dept-card h6 {
    color: var(--bs-heading-color);
}

/* Full-width map */
.edu-contact-map-full iframe {
    width: 100%;
    height: 380px;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .edu-contact-map-full iframe {
        height: 260px;
    }
}


/* =========================================================
   Department Page
========================================================= */

.edu-department-section { background: var(--bs-secondary-bg); }
.dept-sidebar { top: 90px; }

/* ================= DEPT CARD SYSTEM ================= */
.dept-card {
    position: relative;
    border-radius: var(--bs-border-radius-lg);
    background: transparent;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}
.dept-card-inner {
    padding: 1.5rem;
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--bs-card-border-color);
    background: transparent;
    overflow: hidden;
}
.dept-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    border-top-left-radius: var(--bs-border-radius-lg);
    border-top-right-radius: var(--bs-border-radius-lg);
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.dept-card:hover::before { transform: scaleX(1); }
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--bs-box-shadow-lg); }

/* Sidebar titles */
.dept-sidebar-title { font-weight: 600; margin-bottom: .75rem; }
/* Links */
.dept-link-list { list-style: none; padding: 0; margin: 0; }
.dept-link-list a { text-decoration: none; color: var(--bs-body-color); padding: .35rem 0; display: inline-block; }
.dept-link-list a:hover { color: var(--bs-primary); }

/* HOD Image */
.dept-hod-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }

/* Tabs */
.dept-tabs .nav-link { font-weight: 600; padding: .6rem 1.4rem; border-radius: 30px; }

/* Media */
.dept-media-frame { width: 100%; height: 420px; border: none; border-radius: var(--bs-border-radius-lg); }
/* Carousel controls rounded */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    border-radius: 50%;
    background-color: rgba(0,0,0,0.35);
}

.edu-faculty-name-link {
    text-decoration: none;
    color: var(--bs-heading-color);
    transition: color 0.3s, text-decoration 0.3s;
}

.edu-faculty-name-link:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}


/* Responsive */
@media (max-width: 768px) {
    .dept-sidebar { position: static; }
    .dept-media-frame { height: 260px; }
}



/* =========================================================
   Faculty Profile
========================================================= */

.fpv-section { padding: 0; }

/* Sticky Tabs */
.fpv-tabs-wrapper {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Tabs */
.fpv-tabs { gap: 6px; }

.fpv-tab {
    background: transparent;
    border: none;
    text-align: left;
    padding: .65rem 1rem;
    border-radius: 8px;
    color: var(--bs-body-color);
    font-weight: 500;
    position: relative;
    transition: .25s ease;
}

/* Gradient bar */
.fpv-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--bs-primary), var(--bs-info));
    opacity: 0;
    transition: .25s ease;
}

/* Hover + Active */
.fpv-tab:hover,
.fpv-tab.active {
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    font-weight: 600;
}

.fpv-tab:hover::before,
.fpv-tab.active::before {
    opacity: 1;
}

/* Accent Cards */
.fpv-accent-card {
    margin-top: 1.25rem;
    padding: 2rem;
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--bs-card-border-color);
    position: relative;
    overflow: hidden; /* IMPORTANT */
    background: transparent;
    transition: transform .25s ease, box-shadow .25s ease;
}


.fpv-accent-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bs-box-shadow-lg);
}

/* Gradient top line */
.fpv-accent-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    border-radius: 0 0 8px 8px; /* CURVED CORNERS */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    z-index: 1;
}

.fpv-accent-card:hover::before {
    transform: scaleX(1);
}

/* Profile Image */
.fpv-profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bs-border-color);
}

/* External Links */
.fpv-link-btn {
    padding: .45rem 1.1rem;
    border-radius: 30px;
    border: 1px solid rgba(var(--bs-primary-rgb), .4);
    color: var(--bs-primary);
    font-size: .85rem;
    text-decoration: none;
    transition: .25s ease;
}

.fpv-link-btn:hover {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    color: #fff;
    border-color: transparent;
}



/* =========================================================
   Activities Section
========================================================= */
.edu-events-section {
    background-color: var(--bs-secondary-bg);
}

/* Card */
.edu-event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bs-card-bg);
    border-radius: var(--bs-card-border-radius);
    color: var(--bs-body-color);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: var(--bs-card-box-shadow);
}

/* Accent Line */
.edu-event-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
    z-index: 2;
}

.edu-event-card:hover::before {
    transform: scaleX(1);
}

/* Hover */
.edu-event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bs-box-shadow-lg);
}

/* Image */
.edu-event-img {
    position: relative;
    overflow: hidden;
}

.edu-event-img img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform .4s ease;
}

.edu-event-card:hover img {
    transform: scale(1.08);
}

/* Date Badge */
.edu-event-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    color: #fff;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--bs-border-radius-sm);
    font-weight: 500;
}

/* Body */
.edu-event-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title */
.edu-event-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bs-heading-color);
    margin-bottom: .4rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Venue */
.edu-event-venue {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.edu-event-venue i {
    color: var(--bs-primary);
    margin-right: 0.35rem;
}




/* =========================================================
   University Rankers SECTION
========================================================= */
/* ================= UNIRANK STYLES ================= */
.unirank-section {
    background-color: #f9f9f9;
}

.unirank-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1c1c;
}

.unirank-header p {
    color: #666;
    font-size: 1rem;
}

.unirank-select {
    max-width: 250px;
    border-radius: 50px;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
}

.unirank-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

/* Hover effect: lift and shadow */
.unirank-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Gradient line pseudo-element */
.unirank-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%; /* Start outside the card */
    width: 100%;
    height: 4px; /* thickness of the line */
    background: linear-gradient(90deg, #ff7e5f, #feb47b); /* gradient colors */
    transition: left 0.5s ease;
    border-radius: 0 0 15px 15px; /* round edges to match card */
}

/* Slide gradient in on hover */
.unirank-card:hover::after {
    left: 0;
}


.unirank-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.unirank-card:hover img {
    transform: scale(1.1);
}

.unirank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: gold;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.rank-1 .unirank-badge { background: #ffd700; }  /* Gold */
.rank-2 .unirank-badge { background: #c0c0c0; }  /* Silver */
.rank-3 .unirank-badge { background: #cd7f32; }  /* Bronze */

.unirank-course {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.unirank-score {
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.unirank-year {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    background-color: #eee;
    color: #333;
}




/* =========================================================
   Images / Video Gallery
========================================================= */

.edu-gallery-section {
    background: var(--bs-secondary-bg);
}

/* Tabs */
.edu-gallery-tabs .nav-link {
    border-radius: 50px;
    padding: 8px 20px;
    color: var(--bs-secondary-color);
    transition: .3s;
}

.edu-gallery-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    color: #fff;
}

/* Card */
.edu-gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--bs-box-shadow);
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
}

.edu-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bs-box-shadow-lg);
}

.edu-gallery-card img,
.edu-gallery-card video {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Overlay */
.edu-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,110,253,.75), rgba(13,202,240,.75));
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 20px;
    opacity: 0;
    transition: .3s;
}

.edu-gallery-overlay h6 {
    margin: 0;
    font-weight: 600;
}

.edu-gallery-overlay i {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 26px;
}

.edu-gallery-overlay i,
.gallery-nav i {
    font-size: 1.5rem;
    line-height: 1;
}

.edu-gallery-card:hover .edu-gallery-overlay {
    opacity: 1;
}

/* Filter animation */
.edu-gallery-item.hide {
    display: none;
}

/* Media inside modal */
.gallery-media {
    max-width: 100%;
    max-height: calc(100vh - 80px); /* prevents overlapping header */
    object-fit: contain;
}

/* Modal header always visible */
.modal-header {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.8),
        rgba(0,0,0,.3),
        transparent
    );
}

/* Navigation buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;

    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.gallery-nav.prev { left: 20px; }
.gallery-nav.next { right: 20px; }

.gallery-nav:hover {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
}

/* Mobile refinement */
@media (max-width: 768px) {
    .gallery-nav {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .gallery-media {
        max-height: calc(100vh - 70px);
    }
}

