html {
    scroll-behavior: auto !important;
}

:root {
    --primary: #a46080;
    --secondary: #010101;
    --light-pink: #fff5fa;
    --dark-pink: #7a415e;
    --gray: #666;
    --light: #ffffff;
}

/* ==================================
   Overrides for MPH Section Headings
   ================================== */
.mph-head {
    color: var(--primary) !important;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

/* .mph-head::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #f68c28; 
    border-radius: 2px;
} */

/* ==================================
   Alumni Cards Overrides 
   ================================== */
.mph-sect-3 {
    background-color: var(--light-pink) !important;
    /* padding: 60px 0; */
}

.alunmi_box {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    /* very soft shadow */
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff !important;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.alunmi_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.alunmi_box img.alm-img {
    border-bottom: 0;
    width: 100%;
    height: 310px;
    /* Taller image to reduce empty bottom space ratio */
    object-fit: cover;
    /* Cover prevents ugly grey sidebars */
    object-position: top center;
    /* keeps faces perfectly in view */
    background-color: #fcfcfc;
    padding-top: 0;
}

.alunmi_text_box {
    padding: 0;
    text-align: center;
    background: #ffffff !important;
    flex-grow: 1;
    /* Expand to fill bottom gracefully */
    display: flex;
    flex-direction: column;
}

.alunmi_text_box a {
    padding: 22px 15px;
    /* Neatly spaced vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: #ffffff !important;
    height: 100%;
}

.alunmi_text_box h3 {
    color: var(--primary) !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.alunmi_text_box span {
    display: block;
    color: #6c757d !important;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 4px;
}

.alunmi_text_box .arrow_icon {
    display: none !important;
}

/* ==================================
   Faculty Tab Navigation
   ================================== */
.faculty-tab-section {
    background: #ffffff;
    border-bottom: 1px solid rgba(164, 96, 128, 0.12);
    padding: 30px 0 0;
}

.faculty-nav-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 2px solid rgba(164, 96, 128, 0.15);
    margin-bottom: 0 !important;
}

.faculty-nav-tabs .nav-item {
    margin-bottom: -2px;
}

.faculty-tab-link {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555 !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    letter-spacing: 0.3px;
    transition: color 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.faculty-tab-link:hover {
    color: var(--primary) !important;
    border-bottom-color: rgba(164, 96, 128, 0.35);
}

.faculty-tab-link.active {
    color: var(--primary) !important;
    border-bottom: 3px solid var(--primary);
    font-weight: 700;
}

/* ==================================
   Premium Faculty Card Styles
   ================================== */
.faculty-secttion,
.faculty-secttion.bg-black,
.mph-sect-42,
section.Program-section-4.mph-sect-42,
section.Program-section-4.faculty-secttion {
    background-color: #ffffff !important;
    padding: 20px 0;
}

.faculty-secttion .mph-head {
    color: var(--primary) !important;
}

/* Card link wrapper */
.faculty-card-link {
    display: block;
    text-decoration: none !important;
    height: 100%;
}

/* Main card container */
.faculty-premium-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(164, 96, 128, 0.1);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.faculty-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(164, 96, 128, 0.2);
    border-color: rgba(164, 96, 128, 0.25);
}

/* Image area */
.faculty-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--light-pink);
}

.faculty-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.faculty-premium-card:hover .faculty-img-wrapper img {
    transform: scale(1.06);
}

/* Subtle gradient overlay at bottom of image */
.faculty-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(164, 96, 128, 0.12) 0%, transparent 100%);
    pointer-events: none;
}

/* Card body */
.faculty-card-body {
    padding: 20px 18px 18px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Faculty name */
.faculty-name {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0;
    line-height: 1.35;
    width: 100%;
}

/* Thin divider below name */
.faculty-divider {
    width: 36px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), #f68c28);
    border-radius: 2px;
    margin: 10px auto 12px;
    flex-shrink: 0;
}

/* Education line */
.faculty-education {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px;
    flex-grow: 1;
    width: 100%;
    /* Ensure no legacy orange/yellow highlight leaks in */
    background: transparent !important;
    background-color: transparent !important;
}

/* Email chip badge */
.faculty-email-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(164, 96, 128, 0.08) !important;
    background-color: rgba(164, 96, 128, 0.08) !important;
    border: 1px solid rgba(164, 96, 128, 0.2);
    border-radius: 30px;
    padding: 5px 14px 5px 10px;
    margin: 0 0 12px;
    max-width: 100%;
    overflow: hidden;
    /* Nuke any legacy yellow/orange from old stylesheets */
    color: var(--primary) !important;
    text-decoration: none !important;
}

.faculty-email-chip * {
    background: transparent !important;
    background-color: transparent !important;
}

.faculty-email-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary) !important;
    color: #ffffff !important;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.faculty-email-text {
    font-size: 0.78rem;
    color: var(--primary) !important;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    background: transparent !important;
    background-color: transparent !important;
}

/* View Profile CTA */
.faculty-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 7px 20px;
    border-radius: 30px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faculty-premium-card:hover .faculty-view-btn {
    background-color: var(--primary);
    color: #ffffff;
}

/* Bottom gradient accent strip */
.faculty-card-accent {
    height: 4px;
    background: linear-gradient(to right, var(--primary), #f68c28);
    flex-shrink: 0;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .faculty-tab-link {
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .faculty-premium-card {
        border-radius: 12px;
    }

    .faculty-card-body {
        padding: 16px 14px 14px;
    }
}

.block-view-more a {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 1.15rem;
    /* Increased size to make it bigger */
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.block-view-more a:hover {
    color: var(--dark-pink) !important;
}

.block-view-more span.vm-dwn {
    margin-left: 5px;
    font-weight: 700;
}

/* ==================================
   Video Gallery Overrides 
   ================================== */
.conference-section-2 {
    /* padding: 60px 0; */
    background-color: var(--light) !important;
}

.testimonia-pos img.w-100 {
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonia-pos:hover img.w-100 {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(164, 96, 128, 0.25);
}

/* ==================================
   Alumni Speaks Overrides 
   ================================== */
.mph_st-sp.bg-red2 {
    background-color: var(--primary) !important;
    padding: 0 0 60px !important;
    border-top: 5px solid #f68c28;
    /* Adding highlight accent */
}

.mph_st-sp .mph-head {
    color: var(--light) !important;
}

.mph_st-sp .mph-head::after {
    background-color: var(--light);
}

.student-speak {
    text-align: center;
}

.student-speak img {
    border-radius: 50%;
    border: 5px solid var(--light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    width: 140px !important;
    height: 140px !important;
    object-fit: cover;
    margin: 0 auto;
}

.testi-bottom {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.testi-details.color-white {
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    font-weight: 300;
}

.testi-name.color-white {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 20px !important;
    margin-bottom: 5px !important;
}

.testi-occu.color-white {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ==================================
   CMS Styles Implementation
   From references in MPH-JHU
   ================================== */
.border {
    border: 2px solid var(--primary) !important;
}

.bottomBorder {
    border-bottom: 1px solid #d7d6ff !important;
}

.circleBorder {
    border-radius: 50px;
}

.secondaryTextColor {
    color: var(--secondary) !important;
    position: relative;
    z-index: 10;
}

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

.grayColorText {
    color: var(--gray) !important;
}

/* Card Wrappers from custom page */
.objectiveCardWrap {
    background: var(--light);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    text-wrap: balance;
    transition: all 0.2s ease-in-out;
}

.objectiveCardWrap:hover {
    background: var(--primary);
    color: var(--light);
}

.whySection .container,
.bordered-box {
    border-radius: 24px;
    border: 2px solid var(--primary);
    background: var(--light-pink);
    padding: 30px;
    position: relative;
}

/* Highlights */
.line2HighlightText,
.lineHighlightText {
    position: relative;
    z-index: 5;
    display: inline-block;
}

.line2HighlightText::after,
.lineHighlightText::after {
    content: "";
    /* using CSS drawn line if image URL isn't resolved */
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(246, 140, 40, 0.4);
    border-radius: 5px;
    z-index: -1;
}

/* Utilities */
.slightUpper {
    margin-top: -40px;
}

.sectionpad {
    padding: 70px 0;
}

.sectionTitle {
    color: var(--primary);
    text-align: left;
    font-weight: 700;
    position: relative;
}

/* ==================================
   Modernised Refreeze White Background Sections
   ================================== */
.feature-card {
    border-radius: 16px !important;
    border: 1px solid rgba(164, 96, 128, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    border-top: 5px solid var(--primary) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(164, 96, 128, 0.15) !important;
}

.feature-card .icon-wrap {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--secondary);
    font-size: 1.5rem;
}

.border-box-wrap {
    border: 1px dashed rgba(164, 96, 128, 0.3);
    border-radius: 20px;
    padding: 40px 20px;
    background: #fafafa;
}

.custom-pills .nav-link {
    border-radius: 30px;
    color: var(--text-gray);
    font-weight: 600;
    margin: 0 5px;
    padding: 10px 30px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.custom-pills .nav-link.active {
    background-color: var(--primary);
    color: white;
}

.custom-pills .nav-link:not(.active):hover {
    border-color: var(--primary);
    color: var(--primary);
}

.glass-pane {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(164, 96, 128, 0.1);
    text-align: center;
}

.glass-pane p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Override align-items-center inside highlight section to force stretching */
.mph-modern-highlights-section .row.align-items-center {
    align-items: stretch !important;
}

.highlight-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(164, 96, 128, 0.1);
    transition: all 0.3s ease;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.highlight-card:hover {
    box-shadow: 0 15px 35px rgba(164, 96, 128, 0.15);
    border-color: var(--primary);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: rgba(164, 96, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.highlight-card h4 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.highlight-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

.duration-card {
    background: linear-gradient(135deg, var(--primary) 0%, #7a415e 100%);
    color: white;
    border-bottom: 4px solid #f68c28;
}

.border-left-theme {
    border-left: 5px solid var(--primary);
}

.border-right-theme {
    border-right: 5px solid var(--primary);
}

.inst-logo-wrap {
    display: inline-block;
}

.custom-link-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    /* changed from dashed to solid for cleaner look */
}

.custom-link-list li:last-child {
    border-bottom: none;
}

.custom-link-list li a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.15rem;
    /* Increased font size */
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.custom-link-list li a:hover {
    color: var(--primary);
    padding-left: 8px;
    /* Slightly larger hover indent */
}

/* Custom Buttons for Faculty Links */
.btn-primary-custom {
    background-color: var(--primary) !important;
    color: white !important;
    border: 2px solid var(--primary) !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    text-align: center;
}

.btn-primary-custom:hover {
    background-color: transparent !important;
    color: var(--primary) !important;
}

.btn-outline-custom {
    background-color: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    text-align: center;
}

.btn-outline-custom:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

#__eechatIcon {
    background-color: var(--primary) !important;
}

#__npfdivChatMain .chatHeader {
    background-color: var(--primary) !important;
}

.phone-call {
    background: var(--primary) !important;
    color: #fff !important;
    top: 228px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid var(--primary) !important;
}

.phone-call-div-height {
    height: 54px !important;
}

.phone-call:hover {
    background-color: #fff5fa !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}

/* ==================================
   Header Modern Theme Overrides
   ================================== */
/* Top bar */
.top-header {
    background-color: var(--primary) !important;
    padding: 8px 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-header-ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 !important;
    padding: 0;
}

.top-header-ul li {
    list-style: none;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.top-header-ul li a {
    color: var(--light) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.top-header-ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Specific styling for Apply Now and Contact */
.top-header-ul li.apply-now-btn a,
.top-header-ul li a[href*="applications.iihmr.edu.in"] {
    background-color: #f68c28 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 10px rgba(246, 140, 40, 0.4);
}

.top-header-ul li.apply-now-btn a:hover,
.top-header-ul li a[href*="applications.iihmr.edu.in"]:hover {
    background-color: #e57c17 !important;
    transform: translateY(-1px);
}

.top-header-ul li a.color-li {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    padding: 6px 15px !important;
}

/* Main Navbar adjustments */
.mph-header {
    background-color: #ffffff !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 2px solid var(--primary);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.mph-header .main-menu>ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

div.main-menu>ul>li.drop-down_menu.about-menu {
    border-bottom: unset;
}

/* Navigation Links */
.mph-header .main-menu>ul>li>a.mm-arr,
.mph-header .main-menu>ul>li>a {
    color: var(--secondary) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 15px 20px !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    background: transparent !important;
}

/* Hover effect on nav links */
.mph-header .main-menu>ul>li>a.mm-arr:hover,
.mph-header .main-menu>ul>li>a:hover,
.mph-header .main-menu>ul>li:hover>a {
    color: var(--primary) !important;
}



/* Sub Menu Fix overrides */
.mph-header .main-menu .mm-pos ul.overlay-ul {
    display: block !important;
}

.mph-header .main-menu .mm-pos ul.overlay-ul li {
    display: block !important;
    margin-bottom: 15px;
}

.mph-header .main-menu .mm-pos ul.overlay-ul li a {
    text-transform: none;
    font-size: 1rem !important;
    font-weight: 500 !important;
    padding: 5px 0 !important;
    color: var(--secondary) !important;
    position: relative;
    display: inline-block;
}

.mph-header .main-menu .mm-pos ul.overlay-ul li a:hover {
    color: var(--primary) !important;
    padding-left: 5px !important;
}

/* Logo specific */
.wed-logo img {
    max-height: 66px;
    transition: transform 0.3s ease;
}

.wed-logo img:hover {
    transform: scale(1.02);
}

/* ==================================
   Footer Modern Theme Overrides
   ================================== */
.footer {
    background-color: var(--primary) !important;
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--dark-pink) 100%) !important;
    color: var(--light) !important;
    padding-top: 60px;
    border-top: 5px solid #f68c28;
}

.footer .footer-heading {
    color: var(--light) !important;
    margin-bottom: 25px;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

/* Add a nice underline effect to footer headings */
.footer .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #f68c28;
    border-radius: 2px;
}

.footer .footer-heading span {
    color: var(--light) !important;
}

.footer ul {
    list-style: none;
    padding: 0;
}

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

.footer ul li a,
.footer p,
.footer p a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem;
    opacity: 1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.footer ul li a:hover,
.footer p a:hover {
    color: #f68c28 !important;
    padding-left: 5px !important;
}

/* Subscribe Section */
.footer .subscribe-sec {
    margin: 20px 0;
}

.footer .subscribe-sec input[type="text"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light) !important;
    border-radius: 30px;
    padding: 10px 20px;
    width: 100%;
    outline: none;
    transition: border 0.3s;
}

.footer .subscribe-sec input[type="text"]:focus {
    border-color: #f68c28;
}

.footer .subscribe-sec input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Social Icons */
.footer .social.icon {
    margin-top: 30px;
}

.footer .social.icon ul li {
    display: inline-block;
    margin-right: 12px;
}

.footer .social.icon ul li.social-text {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--light);
}

.footer .social.icon ul li a i {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer .social.icon ul li a:hover i {
    background: #f68c28;
    transform: translateY(-3px);
}

/* Footer Bottom (Copyright) */
.footer-Btm {
    background-color: rgba(0, 0, 0, 0.2) !important;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer .footer-Btm p,
.footer-Btm .copyright-div2 p {
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0;
    font-size: 0.9rem;
}

.footer .footer-Btm p a,
.footer-Btm .copyright-div2 p a {
    color: #f68c28 !important;
    font-weight: 600;
}

.footer .footer-Btm p a:hover,
.footer-Btm .copyright-div2 p a:hover {
    color: var(--light) !important;
    padding-left: 0 !important;
}

/* ==================================
   Alumni Premium Card Styles
   ================================== */
.alumni-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(164, 96, 128, 0.15) !important;
}

.alumni-premium-card:hover .alumni-img-wrapper img {
    transform: scale(1.15) !important;
    transition: transform 0.4s ease;
}

.alumni-img-wrapper img {
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .alumni-premium-card {
        padding: 25px 15px;
    }

    .alumni-img-wrapper {
        width: 140px !important;
        height: 140px !important;
    }
}

/* ==================================
   Alumni Inline Styles Moved to CSS
   ================================== */
.alumni-section-wrapper {
    background-color: #faf7fa;
}

.alumni-section-wrapper .mph-head {
    color: #a46080;
    font-weight: 800;
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
}

.alumni-section-wrapper .mph-head .title-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #a46080;
    border-radius: 2px;
}

.alumni-premium-card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(164, 96, 128, 0.05);
    padding: 35px 25px 30px;
    border: 1px solid rgba(164, 96, 128, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.alumni-premium-card a.alumni-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.alumni-img-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.alumni-img-wrapper img.alumni-portrait {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    transform: scale(1.1);
}

.alumni-info {
    width: 100%;
}

.alumni-info .alumni-name {
    color: #a46080;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.alumni-info .alumni-cohort {
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 500;
}

.btn-alumni-view-all {
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #a46080;
    color: #a46080;
    transition: all 0.3s ease;
}

.btn-alumni-view-all:hover {
    background-color: #a46080 !important;
    color: white !important;
}

.m-stiky .trigger_popup_fricc1 {
    background: #a46080 !important;
    color: #fff !important;
    top: 228px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.m-stiky .trigger_popup_fricc1:hover {
    background-color: #fff5fa !important;
    color: #a46080 !important;
    border: 1px solid #a0597a;
}

/* Read More Button for Tabs */
.read-more-btn::before {
    content: "Read More";
}

.collapse.show~.read-more-wrapper .read-more-btn::before {
    content: "Read Less";
}

/* ==================================
   Alumni Details Page Styles
   ================================== */
.alumni-detail-profile-wrapper {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(164, 96, 128, 0.05);
}

.alumni-detail-image {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
}

.alumni-description-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

.alumni-description-content h1,
.alumni-description-content h2,
.alumni-description-content h3,
.alumni-description-content h4 {
    color: #a46080;
    font-weight: 700;
}

.alumni-detail-title {
    color: #a46080;
    font-size: 1.4rem;
    font-weight: 800;
}

.desc-col-wrapper {
    padding-left: 3rem;
}

@media (max-width: 768px) {
    .desc-col-wrapper {
        padding-left: 15px;
        margin-top: 35px;
    }

    .alumni-detail-profile-wrapper {
        padding: 30px 20px;
    }
}

/* ==================================
   Mobile Hamburger Menu Fix
   ================================== */
@media (max-width: 991px) {

    /* Header row: logo left, hamburger right — single line */
    header.mph-header .container-fluid>.row {
        flex-wrap: nowrap !important;
    }

    header.mph-header .col-md-12.p-0 {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }

    /* Logo - stays left, constrained width */
    header.mph-header .wed-logo {
        flex-shrink: 0;
        max-width: 65%;
    }

    header.mph-header .wed-logo img {
        max-height: 50px;
        width: auto;
    }

    /* Main menu - push to right edge */
    header.mph-header .main-menu {
        flex-shrink: 0;
        margin-left: auto;
    }

    header.mph-header .main-menu>ul {
        display: flex !important;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* Hide desktop dropdown nav items */
    header.mph-header .main-menu>ul>li.display-ll {
        display: none !important;
    }

    /* Show the mobile hamburger list item */
    header.mph-header .main-menu>ul>li.mobile_nav.only_mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        list-style: none;
    }

    /* Hamburger icon — rendered by Font Awesome inside the <a> */
    a.mobile_nav_icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0;
        text-decoration: none !important;
    }

    a.mobile_nav_icon:hover i {
        color: #7a415e !important;
    }

    /* Hide hamburger bars when menu is open */
    a.mobile_nav_icon.open i.fa-bars {
        display: none !important;
    }

    /* Mobile dropdown panel */
    header.mph-header {
        position: relative !important;
        overflow: visible !important;
    }

    #navbarResponsive2 {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 99999;
        background-color: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-top: 3px solid #a46080;
    }

    #navbarResponsive2.menuopened {
        display: block !important;
    }

    .menu-sidebar ul.list-unstyled {
        padding: 10px 20px;
        margin: 0;
    }

    .menu-sidebar ul li {
        padding: 10px 0;
        border-bottom: 1px solid rgba(164, 96, 128, 0.1);
        list-style: none;
    }

    .menu-sidebar ul li:last-child {
        border-bottom: none;
    }

    .menu-sidebar ul li a {
        color: #333 !important;
        font-size: 0.95rem;
        font-weight: 600;
        text-decoration: none !important;
        display: block;
        transition: color 0.2s, padding-left 0.2s;
    }

    .menu-sidebar ul li a:hover {
        color: #a46080 !important;
        padding-left: 6px;
    }
}

/* ==================================
   Video Gallery — Cinematic Frame UI
   ================================== */
/* .video-gallery-section {
    background-color: #f8f5fa;
} */

.video-section-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.section-title-bar {
    width: 50px;
    height: 3px;
    background: #a46080;
    border-radius: 2px;
    margin: 0 auto 30px;
}

/* Card wrapper */
.video-frame-card {
    display: block;
    text-decoration: none !important;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s ease;
    background: #111;
}

.video-frame-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(164, 96, 128, 0.25);
}

/* Inner container (keeps aspect ratio) */
.video-frame-inner {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

/* Thumbnail image */
.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(0.85);
}

.video-frame-card:hover .video-thumb {
    transform: scale(1.06);
    filter: brightness(0.65);
}

/* Dark cinematic gradient overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    transition: background 0.4s ease;
}

.video-frame-card:hover .video-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Play button circle */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-play-btn i {
    color: #a46080;
    font-size: 22px;
    margin-left: 4px; /* optical center for play triangle */
}

.video-frame-card:hover .video-play-btn {
    transform: translate(-50%, -55%) scale(1.12);
    background: #a46080;
    box-shadow: 0 6px 30px rgba(164, 96, 128, 0.5);
}

.video-frame-card:hover .video-play-btn i {
    color: #ffffff;
}

/* Bottom label bar */
.video-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.video-label-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.video-label-icon i {
    color: #ff0000;
    font-size: 1.4rem;
}

/* Maroon frame accent strip at bottom of card */
.video-frame-accent {
    height: 4px;
    background: linear-gradient(to right, #a46080, #f68c28);
    border-radius: 0 0 16px 16px;
}

/* Responsive */
@media (max-width: 576px) {
    .video-play-btn {
        width: 48px;
        height: 48px;
    }
    .video-play-btn i {
        font-size: 18px;
    }
}

/* ==================================
   Colorbox Lightbox — Premium Theme
   ================================== */

/* Dark frosted overlay */
#colorbox,
#cboxOverlay,
#cboxWrapper {
    z-index: 99999;
}

#cboxOverlay {
    background: rgba(10, 5, 15, 0.88) !important;
}

#cboxLoadingOverlay,
#cboxLoadingGraphic {
    pointer-events: none !important;
}


/* Main lightbox window */
#colorbox {
    border-radius: 18px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(164, 96, 128, 0.25) !important;
}

#cboxWrapper {
    border-radius: 18px !important;
}

#cboxContent {
    background: #1a0e14 !important;
    border-radius: 18px;
    clip-path: inset(0 round 18px);
    padding: 0 !important;
}



/* Loading graphic */
#cboxLoadingOverlay {
    background: #1a0e14 !important;
    border-radius: 18px;
}

/* ---- Close Button ---- */
#cboxClose {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    background: linear-gradient(135deg, #a46080, #7a415e) !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 0 !important;
    box-shadow: 0 4px 14px rgba(164, 96, 128, 0.55) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    z-index: 10 !important;
    text-indent: -9999px !important;
}

#cboxClose::before {
    content: '\00d7';
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 300;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
}

#cboxClose:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 6px 20px rgba(164, 96, 128, 0.75) !important;
}

/* ---- Prev / Next Arrows ---- */
#cboxPrevious,
#cboxNext {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    background: rgba(164, 96, 128, 0.20) !important;
    border: 2px solid rgba(164, 96, 128, 0.5) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 0 !important;

    transition: background 0.3s ease, transform 0.3s ease !important;
    z-index: 10 !important;
    text-indent: -9999px !important;
}

#cboxPrevious {
    left: 14px !important;
}

#cboxNext {
    right: 14px !important;
}

#cboxPrevious::before,
#cboxNext::before {
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
}

#cboxPrevious::before {
    content: '\2039';
}

#cboxNext::before {
    content: '\203a';
}

#cboxPrevious:hover,
#cboxNext:hover {
    background: linear-gradient(135deg, #a46080, #7a415e) !important;
    border-color: #a46080 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(164, 96, 128, 0.45) !important;
}

/* ---- Counter Pill (e.g. "2 of 9") ---- */
#cboxCurrent {
    position: absolute !important;
    bottom: 14px !important;
    right: 16px !important;
    background: linear-gradient(135deg, #a46080, #f68c28) !important;
    color: #fff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 3px 12px rgba(164, 96, 128, 0.5) !important;
    line-height: 1.6 !important;
    z-index: 10 !important;
}

/* ---- Title ---- */
#cboxTitle {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    padding: 8px 60px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    letter-spacing: 0.3px !important;
    pointer-events: none !important;
}

/* Iframe / inline content background */
#cboxLoadedContent {
    background: #1a0e14 !important;
}

/* ========================================
   Clean Premium Page Header (CMS Pages)
   ======================================== */
.premium-page-header {
    background: linear-gradient(135deg, rgba(164, 96, 128, 0.95) 0%, rgba(122, 65, 94, 0.98) 100%);
    padding: 60px 0;
    border-bottom: 4px solid #f68c28;
}

/* Page Title (Left Aligned on Desktop) */
.premium-page-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Breadcrumb Styling (Right Aligned on Desktop) */
.premium-breadcrumb-nav .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}
.premium-breadcrumb-nav .breadcrumb-item {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.premium-breadcrumb-nav .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.premium-breadcrumb-nav .breadcrumb-item a:hover {
    color: #f68c28;
}

.premium-breadcrumb-nav .breadcrumb-item.active {
    color: #ffffff;
    font-weight: 700;
}

.premium-breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: "\203A";
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 12px;
}

@media (max-width: 991px) {
    .premium-page-header {
        padding: 40px 0;
        text-align: center;
    }
    .premium-page-title {
        font-size: 1.8rem;
    }
    .premium-breadcrumb-nav .breadcrumb-item {
        font-size: 0.8rem;
    }
}
/* ==================================
   Premium Table UI Theme
   ================================== */
.table-scholarship {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin-bottom: 2.5rem !important;
    border: 1px solid rgba(164, 96, 128, 0.15) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04) !important;
    background: #fff;
}

.table-scholarship thead th,
.table-scholarship thead td {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.88rem !important;
    letter-spacing: 1.2px !important;
    padding: 20px 25px !important;
    border: none !important;
    vertical-align: middle !important;
}

/* Secondary header row support */
.table-scholarship thead tr:nth-child(2) td,
.table-scholarship thead tr:nth-child(2) th {
    background-color: var(--dark-pink) !important;
    font-size: 0.82rem !important;
    padding: 12px 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.table-scholarship tbody td {
    padding: 18px 25px !important;
    border: none !important;
    border-bottom: 1px solid rgba(164, 96, 128, 0.08) !important;
    vertical-align: middle !important;
    color: #444 !important;
    font-size: 0.98rem !important;
    line-height: 1.6;
}

/* Course Schedule Section Headers (tbody spanning columns) */
.table-scholarship tbody td[colspan="8"],
.table-scholarship tbody td[colspan="7"] {
    background-color: #f8f3f6 !important; /* slightly darker than light-pink */
    color: var(--primary) !important;
    font-weight: 800 !important;
    text-transform: none !important;
    padding: 15px 25px !important;
    border-left: 5px solid var(--primary) !important;
    font-size: 1.1rem !important;
}

/* Forced override for inline span colors in headers */
.table-scholarship thead td span {
    color: #ffffff !important;
}

/* Alternating background matching theme */
.table-scholarship tbody tr:nth-child(even) {
    background-color: var(--light-pink) !important;
}

/* Hover enrichment */
.table-scholarship tbody tr:hover {
    background-color: rgba(164, 96, 128, 0.05) !important;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-scholarship tbody tr:last-child td {
    border-bottom: none !important;
}

/* Links inside table cells */
.table-scholarship tbody td a {
    color: var(--primary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    display: inline-block;
    position: relative;
}

.table-scholarship tbody td a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.table-scholarship tbody td a:hover {
    color: var(--dark-pink) !important;
}

.table-scholarship tbody td a:hover::after {
    width: 100%;
}

/* Alignment for numeric columns (e.g. Credits, Term) */
.table-scholarship td:nth-child(3),
.table-scholarship th:nth-child(3),
.table-scholarship td:nth-child(4),
.table-scholarship th:nth-child(4) {
    text-align: center !important;
    width: auto;
    min-width: 80px;
}

/* BSPH Course No. column */
.table-scholarship td:first-child {
    font-weight: 600;
    color: var(--primary);
}

/* Location / Session Year column */
.table-scholarship td:nth-child(5) {
    font-weight: 600;
    color: var(--secondary);
}

/* Paragraph override inside table */
.table-scholarship td p {
    margin-bottom: 0 !important;
    color: inherit !important;
}

/* Responsive Container for Tables */
.table-premium-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 12px;
}

/* Mobile Breakpoint Optimization */
@media (max-width: 768px) {
    .table-scholarship thead th, 
    .table-scholarship tbody td {
        padding: 15px !important;
        font-size: 0.85rem !important;
    }
    .table-scholarship td:nth-child(2),
    .table-scholarship th:nth-child(2) {
        width: 80px;
    }
}

/* CMS Page Generic Table Styling */
.Program-section-4 table,
.Program-section-5-2 table {
    width: 100% !important;
    margin: 20px 0 !important;
    border-collapse: collapse !important;
}

.Program-section-4 table thead th,
.Program-section-5-2 table thead th {
    background-color: var(--primary) !important;
    color: #fff !important;
    padding: 15px !important;
    text-align: left;
}

.Program-section-4 table tbody td,
.Program-section-5-2 table tbody td {
    padding: 15px !important;
    border-bottom: 1px solid rgba(164, 96, 128, 0.1) !important;
}

.Program-section-4 table tbody tr:nth-child(even),
.Program-section-5-2 table tbody tr:nth-child(even) {
    background-color: var(--light-pink) !important;
}
