/* Header styles for transparent to solid transition */
.react-header {
    position: fixed !important;
    width: 100% !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
    background-color: transparent !important;
}

.react-menus>li>a {
    padding: 20px 34px 34px 34px;
}

body,
html {

    line-height: 1;
}

.react-inner-menus .react-menus>.has-sub>a:before {
    content: "\33";
    position: absolute;
    font-family: "ElegantIcons";
    display: block;
    top: 29%;
    right: 14px;
    opacity: 0.5;
}

.react-inner-menus .react-menus>.has-sub.menu-active>a:before {
    content: "\32";
    position: absolute;
    font-family: "ElegantIcons";
    display: block;
    top: 29%;
    right: 14px;
    opacity: 0.5;
}

/* header logo */

.logo-container {
    width: 100%;
    text-align: center;
    height: 85px;
}

.logo {
    display: inline-flex;
}

.logo-text {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 75px;
    width: auto;
    margin: 4px;
}

.university-title {
    margin: auto auto !important;
    text-align: left;
    padding-left: 5px;
    letter-spacing: 2px;
}

/* Default styles */
.medical-text {
    font-weight: bold;
    font-size: 1.4rem;
    color: white;
    letter-spacing: 0.5px;
}

.university-text {
    font-weight: bold;
    font-size: 1.05rem;
    color: white !important;
    margin-top: 2px;
    text-align: center;
    letter-spacing: 8px;
    line-height: 1.6;
}

/* Change to white when parent has .react-sticky */
.react-sticky .medical-text {
    color: #582c83;
}

.react-sticky .university-text {
    color: #000000 !important;
}


.react-header .menu-part {
    background-color: transparent !important;
    transition: all 0.3s ease !important;
}

.react-header .logo {
    padding: 0 0 !important;
}

/* Sticky header (when scrolled) */
.react-header.react-sticky {
    background-color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.react-header.react-sticky .menu-part {
    background-color: #ffffff !important;
}

/* Text color adjustments for better visibility */
.react-header:not(.react-sticky) .react-main-menu ul.react-menus>li>a {
    color: #ffffff !important;
}

.react-header:not(.react-sticky) .react-main-menu ul.react-menus li a:hover {
    color: #00f7a5 !important;
}

.react-header:not(.react-sticky) .topbar-contact ul li a,
.react-header:not(.react-sticky) .topbar-contact ul li svg,
.react-header:not(.react-sticky) .toolbar-sl-share ul li a {
    color: #ffffff !important;
}

/* For mobile - adjust menu toggle button */
.react-header:not(.react-sticky) .menu-toggle button#menu-btn .icon-bar {
    background-color: #ffffff !important;
}

/* Topbar css  */

.topbar-area {
    background-color: #48255f;
    padding: 10px 0;
    color: #ffffff;
    border-bottom: 1px solid #ffc107;
}

.react-header .topbar-area.style1 {
    background-color: #48255f;
}

.topbar-area .container {
    display: flex;
    justify-content: center;
}

.topbar-contact ul,
.social-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.topbar-contact ul li {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.topbar-contact ul li svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    color: #ffc107;
}

.topbar-contact ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.topbar-contact ul li a:hover {
    color: #ffc107;
}

.social-links {
    justify-content: flex-end;
}

.social-links li {
    margin-left: 15px;
}

.social-links li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links li a:hover {
    color: #ffc107;
}

.social-links svg {
    width: 16px;
    height: 16px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .text-right {
        text-align: left;
        margin-top: 10px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .social-links li {
        margin-left: 0;
        margin-right: 15px;
    }

    .university-text {

        text-align: left;
    }
}

@media (max-width: 576px) {
    .topbar-contact ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-contact ul li {
        margin-bottom: 8px;
    }
}

/* owl buttons  */

.home-sliders .owl-nav [class*="owl-"].owl-prev:hover {
    background: transparent;
    color: white !important;
}

.home-sliders .owl-nav [class*="owl-"]:before {
    color: rgba(255, 255, 255, 0.48) !important;
}

.home-sliders .owl-nav [class*="owl-"]:hover:before {
    color: rgba(255, 255, 255, 0.48) !important;
}

.home-sliders .owl-nav [class*="owl-"].owl-next:hover {
    background: transparent;
    color: white !important;
}

/* Button styles for top navigation */
.top-buttons {
    background-color: #48255f;
    padding: 10px 0;
    text-align: right;
}

.nav-button {
    display: inline-block;
    padding: 4px 18px;
    background-color: #ffc107;
    color: #0a2050;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #fff;
    color: #0a2050;
}

#backscrollUp.home {
    background: #eeeeee;
    border-radius: 50%;
}

#backscrollUp span:before {
    background: #ffc107 !important;
    border-radius: 50%;
}

.menu-toggle #menu-btn {
    background: #ffb606;
    border: none;
}

/* General Overlay */
.is-img-custom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.custom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Responsive Image */
img.w-100 {
    width: 100%;
    height: auto;
}

/* Default Slider Container */
.react-slider-part,
.home-sliders,
.single-slide,
.slider-img {
    position: relative !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: auto !important;
}

/* Large screens (Desktop) */
@media (min-width: 992px) {

    .react-slider-part,
    .home-sliders,
    .single-slide,
    .slider-img {
        height: 100vh !important;
        min-height: 100vh !important;
    }

    .slider-img img {
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* Small and Medium screens */
@media (max-width: 991px) {
    .slider-img {
        min-height: 400px !important;
        /* enough space for centering */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .slider-img img {
        height: auto !important;
        max-height: 100% !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        background: #000;
        /* optional */
    }
}

/* Slider Content */
.custom-slider-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1200px !important;
    padding: 0 20px !important;
    color: #fff;
    flex-wrap: wrap;
    box-sizing: border-box !important;
}

/* Text Section */
.slider-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.slider-pretitle {
    font-size: 40px;
    color: #fff;
    line-height: 1.4;
}

.slider-title {
    margin-top: 10px;
    font-size: 20px;
    color: #fff;
}

.slider-btn a {
    color: #fff !important;
    background-color: #ffb606;
    padding: 10px 20px;
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* Stats Section */
.slider-stats {
    flex: 0.6;
    min-width: 250px;
    color: #fff;
}

.slider-stats div {
    margin-bottom: 10px;
    font-size: 16px;
}

.slider-stats .icon {
    color: #ffb606 !important;
    margin-right: 5px;
}

.slider-stats .number {
    font-weight: bold;
}

/* Button Hover */
.react-btn-border:hover {
    color: #fff;
    border-color: #ffb606;
    background: #ffb606;
}

/* static banner  */

.static-banner {
    position: relative;
    width: 100%;
    height: 20vh;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer css  */

.footer-section {
    background-color: #001933;
    background-image: url("../images/cmu_image/cmu-logo.png");
    background-size: 300px auto;
    background-repeat: no-repeat;
    background-position: center;
    color: #ffffff;
    position: relative;
    padding: 0;
    border-top: 2px solid #f46004;
    width: 100%;
}

.footer-section .container {
    max-width: 1180px;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.footer-section .logo-sec .text-medical {
    font-size: 22px;
}

.footer-section .logo-sec .text-versity {
    font-size: 22px;
    text-align: left;
    letter-spacing: 4px;
}

.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #48255f;
    opacity: 95%;
    z-index: 1;
}

.footer-section .container {
    position: relative;
    z-index: 2;
}

.footer-section .medical {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    font-weight: bold;
    line-height: 1.2;
}

.footer-section .uni {
    display: inline-block;
    text-align: left;
}

.footer-main {
    padding: 40px 0;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.footer-col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 25%;
    max-width: 25%;
    margin-bottom: 30px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    font-size: 18px;
}

.footer-links a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links .row {
    display: flex;
    flex-wrap: wrap;
}

.footer-links .col-md-4 {
    display: flex;
    flex-direction: column;
}

.footer-links a:hover {
    color: #f46004;
}

.footer-links i {
    margin-right: 10px;
    color: #f46004;
}

.university-logo {
    max-width: 200px;
    height: 70px;
    margin-bottom: 15px;
    margin: auto auto;
}

.contact-info {
    margin-bottom: 0;
    text-align: left;
    padding-left: 16px;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-info i {
    width: 20px;
    margin-right: 10px;
    color: #f46004;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.06);
    width: 100%;
    position: relative;
    z-index: 2;
}

.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.footer-bottom-col {
    position: relative;
    width: 100%;
    flex: 0 0 50%;
    max-width: 50%;
}

.copyright {
    font-size: 14px;
    margin-bottom: 0;
}

.ict-cell {
    color: #f46004;
    font-weight: bold;
    text-decoration: none;
}

.login-links {
    text-align: right;
}

.login-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
    transition: color 0.3s;
    display: inline-block;
}

.login-links a:hover {
    color: #f46004;
}

/* Responsive Breakpoints - Footer Specific */
@media (max-width: 1200px) {
    .footer-section .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .footer-section .container {
        max-width: 720px;
    }

    .logo-container {
        width: 100%;
        text-align: left;
        height: 85px;
    }

    .footer-links .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .footer-section {
        background-size: 250px auto;
    }

    .footer-section .logo-sec .text-medical,
    .footer-section .logo-sec .text-versity {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .footer-section .container {
        max-width: 540px;
    }

    .footer-section {
        background-size: 200px auto;
    }

    .footer-section .logo-sec .text-medical,
    .footer-section .logo-sec .text-versity {
        font-size: 20px;
        text-align: center;
    }

    .footer-links .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .footer-bottom-col {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .login-links {
        text-align: center;
    }

    .login-links a {
        margin: 5px 8px;
    }
}

@media (max-width: 576px) {
    .footer-section .container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .footer-section {
        background-size: 300px auto !important;
        /* Smaller image size for smaller screens */
        background-position: center !important;
    }

    .footer-section .uni {
        display: flex;
        align-items: center;
        justify-content: left;
        text-align: left;
    }

    .footer-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-section {
        background-position: top left;
        background-size: 180px auto;
    }

    .footer-main {
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .footer-title {
        text-align: left;
        font-size: 16px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        height: auto;
    }

    .footer-links .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .footer-links a {
        text-align: left;
        margin-bottom: 8px;
    }

    .contact-info {
        text-align: left;
        padding-left: 0;
    }

    .contact-info p {
        text-align: left;
    }

    .university-logo {
        max-width: 160px;
        height: 60px;
        display: block;
        margin: 0;
        margin-left: -10px;
    }

    .logo-sec {
        text-align: left;
    }

    .footer-section .logo-sec .text-medical,
    .footer-section .logo-sec .text-versity {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding-top: 40px;
    }

    .footer-section {
        background-size: 150px auto;
    }

    .footer-section .logo-sec .text-medical,
    .footer-section .logo-sec .text-versity {
        font-size: 18px;
    }

    .login-links a {
        display: block;
        margin: 10px 0;
    }

    .react-menus>li>a {
        padding: 16px 34px 16px 34px;
    }
}

/* Maintain original responsive styles for other sections */
@media (max-width: 992px) {
    .custom-slider-content {
        flex-direction: column !important;
        text-align: center !important;
        margin-top: 30px;
        transform: translateY(-50%) !important;
        left: 0 !important;
    }

    .slider-text,
    .slider-stats {
        padding: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }

    .slider-pretitle {
        font-size: 25px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .slider-title {
        font-size: 16px !important;
        margin-top: 5px !important;
    }

    .slider-btn a {
        font-size: 16px !important;
        padding: 8px 16px !important;
    }

    .slider-stats {
        margin-top: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .slider-stats div {
        font-size: 15px !important;
    }

    .react-header:not(.react-sticky) .react-main-menu ul.react-menus>li>a {
        color: #000000 !important;
    }
}

@media (max-width: 768px) {

    .react-slider-part,
    .home-sliders,
    .single-slide,
    .slider-img {
        min-height: 500px !important;
    }

    .slider-pretitle {
        font-size: 16px !important;
        margin-bottom: 10px !important;
        display: block !important;
    }

    .slider-title {
        font-size: 14px !important;
    }

    .slider-btn a {
        padding: 8px 15px !important;
        font-size: 14px !important;
    }

    .slider-stats div {
        margin-bottom: 8px !important;
        font-size: 14px !important;
    }

    .vc-section .row {
        gap: 22px;
    }
}

@media (max-width: 480px) {

    .react-slider-part,
    .home-sliders,
    .single-slide,
    .slider-img {
        min-height: 450px !important;
    }

    .slider-pretitle,
    .slider-title {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .slider-stats {
        width: 100% !important;
    }

    .slider-stats div {
        display: inline-block !important;
        margin-right: 10px !important;
        font-size: 12px !important;
    }

    .custom-slider-content {
        padding: 0 10px !important;
    }

    /* Default styles */
    .medical-text {
        font-size: 1.2rem !important;
    }

    .university-text {
        font-size: 1rem !important;
        letter-spacing: 4px;
    }
}