/* MULSHI GROUP OF INSTITUTES (MGI) - CUSTOM OVERRIDES & LAYOUT FIXES */

/* 1. Global Viewport & Strict Overflow-X Elimination */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

/* 2. Container & Row Containment */
.container {
    max-width: 1200px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.row {
    margin-left: -15px !important;
    margin-right: -15px !important;
    box-sizing: border-box !important;
}

/* Reset negative margins when container and row are on same node */
.container.row, article.container.row, div.container.row, section.container.row {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    width: 100% !important;
}

/* 3. Section Bounding */
#siteheader,
.top-section,
.banner-section,
.world-class-program,
.icon-text-sec,
.ranking_section,
.international-immersion-section,
.world-class-section,
.experience_section,
.contact_section,
.fooer_section,
footer,
article,
section {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* 4. Top Header Bar */
.top-section {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.top-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-section .logo {
    width: auto;
    float: none;
}

.top-section .top-hed {
    width: auto;
    float: none;
    font-size: 24px;
    font-weight: 800;
    color: #03649f;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 5. Banner Section & Carousel */
.banner-section {
    width: 100% !important;
    max-width: 100vw !important;
    background: #00aae6;
    position: relative;
    overflow: hidden !important;
}

.banner-section::after {
    content: "";
    display: table;
    clear: both;
}

@media (min-width: 992px) {
    .banner-section .wrapper {
        width: 70% !important;
        float: left !important;
    }
    .banner-section .input_section {
        width: 30% !important;
        float: right !important;
    }
}

@media (max-width: 991px) {
    .banner-section .wrapper {
        width: 100% !important;
        float: none !important;
    }
    .banner-section .input_section {
        width: 100% !important;
        float: none !important;
    }
}

.carousel {
    position: relative;
    width: 100%;
    padding-top: 47.19%; /* Ratio 906 / 1920 */
    min-height: 280px;
    background: #03649f;
    overflow: hidden;
}

@media (max-width: 768px) {
    .carousel {
        padding-top: 56.25%;
        min-height: 220px;
    }
}

.carousel .inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 1;
}

.carousel .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel .slider-col,
.carousel .slider-pic {
    width: 100%;
    height: 100%;
}

.carousel .slider-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel .slider-mobile {
    display: none;
}

/* Carousel Navigation Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 18px;
    line-height: 1;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
    user-select: none;
}

.arrow:hover {
    background: #fe5900;
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.arrow-left {
    left: 18px;
}

.arrow-right {
    right: 18px;
}

/* Carousel Indicators */
.indicators {
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 9;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.indicators li {
    display: inline-block;
    width: 11px;
    height: 11px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin: 0;
}

.indicators li.active {
    background: #fe5900;
    width: 26px;
    border-radius: 6px;
    opacity: 1;
}

/* 6. World Class PGDM Programs Section */
.world-class-program {
    background: #fff;
    padding: 50px 0 !important;
    margin: 0 !important;
}

.world-class-program h2.title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.world-class-program h2.title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #fe5900;
    margin: 10px auto 0;
}

.world-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    box-sizing: border-box;
}

.left-wor, .right-wor {
    flex: 1 1 320px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.left-wor ul, .right-wor ul {
    padding-left: 20px;
    margin: 0;
}

.left-wor ul li, .right-wor ul li {
    font-size: 15px;
    line-height: 28px;
    color: #334155;
    margin-bottom: 6px;
}

.entrepreneurship {
    width: 100% !important;
    display: flex;
    flex-wrap: wrap;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 25px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.entrepreneurship-content {
    flex: 1 1 450px;
    padding: 30px;
    box-sizing: border-box;
}

.entrepreneurship-content h2.title {
    text-align: left;
    font-size: 24px;
    margin-bottom: 15px;
}

.entrepreneurship-content h2.title::after {
    margin: 8px 0 0;
}

.entrepreneurship-content p {
    font-size: 14.5px;
    line-height: 24px;
    color: #475569;
    margin-bottom: 12px;
}

.entrepreneurship-content a {
    display: inline-block;
    color: #03649f;
    font-weight: 700;
    text-decoration: none;
    margin-top: 8px;
}

.entrepreneurship-pic {
    flex: 1 1 350px;
    max-width: 100%;
}

.entrepreneurship-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 7. The MGI Advantage Section */
.icon-text-sec {
    width: 100% !important;
    background: #f8fafc !important;
    padding: 50px 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
}

.icon-text-sec .container {
    max-width: 1000px !important;
}

.icon-text-sec h2.title {
    font-size: 30px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.icon-text-sec h2.title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #fe5900;
    margin: 10px auto 0;
}

.icon-text-sec ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.icon-text-sec ul li {
    width: 100% !important;
    min-height: 72px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: #fff !important;
    border-radius: 10px !important;
    padding: 12px 22px !important;
    margin: 0 0 16px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    border: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
}

.icon-text-sec ul li span {
    width: 60px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 18px !important;
    float: none !important;
}

.icon-text-sec ul li span img {
    max-width: 44px !important;
    max-height: 44px !important;
    height: auto !important;
}

.icon-text-sec ul li p {
    flex-grow: 1 !important;
    width: auto !important;
    float: none !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: #1f2937 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-weight: 500 !important;
}

.icon-text-sec .star {
    margin: 0 !important;
    padding: 0 !important;
}

/* 8. Recognition, Life, Alumni & Video Sections */
.ranking_section, .experience_section {
    padding: 50px 0 !important;
    background: #fff;
    width: 100% !important;
    overflow-x: hidden !important;
}

.ranking_section h2.title, .experience_section h2.title {
    font-size: 30px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.ranking_section h2.title::after, .experience_section h2.title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #fe5900;
    margin: 10px auto 0;
}

.international-immersion {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.international-immersion img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

ul.three_column {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

ul.three_column li {
    padding: 15px;
    box-sizing: border-box;
}

/* Experience & Testimonial Box */
.experience_section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.experience_section ul li.video-col {
    flex: 1 1 500px;
}

.experience_section ul li.video-col iframe {
    width: 100%;
    height: 340px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.experience_section ul li.testimonial_box {
    flex: 1 1 400px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.experience_section ul li.testimonial_box img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fe5900;
    flex-shrink: 0;
}

/* 9. Contact Us Section */
.contact_section {
    background: #f1f5f9;
}

.contact_section .info-box {
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
    border: 1px solid #e2e8f0;
}

.contact_section .info-box img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.contact_section .info-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}

.contact_section .info-box p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 22px;
}

/* 10. Footer Section */
.fooer_section {
    background: #0f172a;
    padding: 30px 0;
    color: #94a3b8;
}

.fooer_section .copyright {
    color: #cbd5e1;
}

.fooer_section .social-icons a {
    display: inline-block;
    margin: 0 6px;
    transition: transform 0.2s;
}

.fooer_section .social-icons a:hover {
    transform: translateY(-2px);
}

.fooer_section .social-icons img {
    width: 32px;
    height: 32px;
}

/* Mobile Sticky Apply Bar */
.sticky-mobile-apply {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fe5900;
    color: #fff !important;
    text-align: center;
    padding: 13px 15px;
    font-size: 16px;
    font-weight: 700;
    z-index: 9999;
    text-decoration: none !important;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .sticky-mobile-apply {
        display: block;
    }
    body {
        padding-bottom: 52px !important;
    }
    .world-class-program h2.title,
    .icon-text-sec h2.title,
    .ranking_section h2.title,
    .experience_section h2.title {
        font-size: 24px;
    }
    .experience_section ul li.testimonial_box {
        flex-direction: column;
        text-align: center;
    }
}
