/* ==========================================================================
   Newsoft Infotech - overrides on top of the base theme (style.css)
   Loaded after style.css, so plain specificity wins.
   ========================================================================== */

/* --------------------------------------------------------------- Mega menu

   The base theme gives .megamenu `position:absolute; left:0; width:100%`, but
   nothing up the nav chain is positioned, so the panel resolved against the
   narrow <li> and every Bootstrap column collapsed to ~25% of ~150px. We give
   the header container an explicit positioning context, take the mega <li>
   out of the running as a containing block, and pin the panel edge-to-edge.
   ------------------------------------------------------------------------- */

@media only screen and (min-width: 992px) {

    .main-header .header-upper > .container {
        position: relative;
    }

    .main-menu .navbar-collapse > ul.navigation > li.has-mega {
        position: static;
    }

    .main-header .main-menu .navbar-collapse li.has-mega .megamenu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        padding: 30px 0 18px;
        border-radius: 0 0 14px 14px;
    }

    .main-header .main-menu .navbar-collapse li.has-mega .megamenu > .container {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }

    /* Own the column layout outright - a grid cannot collapse the way the
       float/flex columns did, whatever width the panel ends up at. */
    .main-header .main-menu .navbar-collapse li.has-mega .megamenu .row {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px 28px;
        margin: 0;
    }

    .main-header .main-menu .navbar-collapse li.has-mega .megamenu .row > div {
        width: auto;
        max-width: none;
        flex: none;
        padding: 0;
    }
}

.main-menu .navbar-collapse li .megamenu {
    padding: 35px 0 20px;
    border-radius: 0 0 12px 12px;
}

.main-menu .navbar-collapse li .megamenu .megamenu-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #5931f6;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(89, 49, 246, .18);
}

.main-menu .navbar-collapse li .megamenu ul {
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
}

.main-menu .navbar-collapse li .megamenu ul li {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
}

.main-menu .navbar-collapse li .megamenu ul li a {
    display: block;
    padding: 7px 0;
    font-size: 15px;
    line-height: 1.45;
    color: #444;
    background: transparent;
    transition: color .25s ease, padding-left .25s ease;
}

.main-menu .navbar-collapse li .megamenu ul li a:hover,
.main-menu .navbar-collapse li .megamenu ul li.current > a {
    color: #5931f6;
    padding-left: 7px;
    background: transparent;
}

/* Give each mega column breathing room on tablet-width screens. */
@media only screen and (min-width: 992px) {
    .main-menu .navbar-collapse li .megamenu .row > [class*="col-"] {
        padding-bottom: 10px;
    }
}

/* Mobile: the panel is inline, so columns stack and need vertical rhythm. */
@media only screen and (max-width: 991px) {
    .main-menu .navbar-collapse li .megamenu {
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    /* The theme's mobile drawer is light, so these stay dark on white. */
    .main-menu .navbar-collapse li .megamenu .megamenu-title {
        margin: 14px 0 2px;
        padding: 0 15px 6px;
        font-size: 12px;
        color: #5931f6;
        border-bottom: 1px solid rgba(89, 49, 246, .18);
    }

    .main-menu .navbar-collapse li .megamenu ul li a {
        color: #101010;
        padding: 10px 15px;
    }

    .main-menu .navbar-collapse li .megamenu ul li a:hover,
    .main-menu .navbar-collapse li .megamenu ul li.current > a {
        color: #5931f6;
        padding-left: 20px;
    }

    /* Keep the panel inside the drawer instead of running off-screen. */
    .main-menu .navbar-collapse li .megamenu > .container,
    .main-menu .navbar-collapse li .megamenu > .container > .row {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-menu .navbar-collapse li .megamenu > .container > .row > div {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0;
    }
}

/* The theme appends one .dropdown-btn per dropdown; keep it clear of the panel. */
.main-menu .navbar-collapse li.dropdown .dropdown-btn {
    z-index: 5;
}

/* ------------------------------------------------------- Text logo (brand) */

.main-header .logo a,
.main-header .mobile-logo a,
.main-footer .footer-logo a {
    display: inline-block;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    text-decoration: none;
}

.main-header .logo a,
.main-header .mobile-logo a {
    font-size: 28px;
    color: #fff;
}

.main-header.header-black .logo a,
.main-header .logo a.logo-dark {
    color: #101010;
}

.main-footer .footer-logo a {
    font-size: 26px;
    color: #fff;
}

@media only screen and (max-width: 575px) {

    .main-header .logo a,
    .main-header .mobile-logo a {
        font-size: 22px;
    }
}

/* --------------------------------------------------- Local landing content */

.local-highlights .highlight-card {
    height: 100%;
    padding: 28px 26px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.local-highlights .highlight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(89, 49, 246, .35);
    box-shadow: 0 18px 40px rgba(41, 14, 147, .10);
}

.local-highlights .highlight-card h5 {
    margin-bottom: 10px;
}

.local-highlights .highlight-card p {
    margin-bottom: 0;
    font-size: 15px;
}

/* Course / module table used on the Himatnagar training pages. */
.course-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.course-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    margin: 10px 0 5px;
}

.course-table th,
.course-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    font-size: 15px;
    vertical-align: top;
}

.course-table thead th {
    background: #f5f3ff;
    color: #290e93;
    font-weight: 700;
    white-space: nowrap;
}

.course-table tbody tr:hover {
    background: #fafafa;
}

/* --------------------------------------------------------------- FAQ block */

.faq-block .faq-item {
    padding: 22px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.faq-block .faq-item:last-child {
    border-bottom: none;
}

.faq-block .faq-item h5 {
    margin-bottom: 10px;
}

.faq-block .faq-item p:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------- Sticky call button */

.mobile-call-bar {
    display: none;
}

@media only screen and (max-width: 767px) {
    .mobile-call-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
        display: flex;
        box-shadow: 0 -2px 14px rgba(0, 0, 0, .14);
    }

    .mobile-call-bar a {
        flex: 1;
        padding: 14px 8px;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        color: #fff;
        text-decoration: none;
    }

    .mobile-call-bar a.call {
        background: #5931f6;
    }

    .mobile-call-bar a.whatsapp {
        background: #1faa53;
    }

    /* Keep the theme's scroll-top button clear of the bar. */
    .scroll-top {
        bottom: 75px;
    }

    body {
        padding-bottom: 52px;
    }
}
