.mauthLogo{
    width:70px;height:70px;
}

.configHeaderIcon1{
    display:none;
}

.configHeaderIcon2{
    display:block;
}

@media (max-width:767px){
    .mauthLogo{
        width:60px;height:60px;
    }

    .configHeaderIcon1{
        display:block;
    }

    .configHeaderIcon2{
        display:none;
    }
}

.navbar-nav a:hover{
    color:mediumseagreen !important;
    font-size:20px !important;
    font-weight:bold !important;

    i{
        color:mediumseagreen !important;
    }
}

.carousel-item img{
    height:700px;
}

@media (max-width:767px){
    .carousel-item img{
        height:350px;
    }
}

.sliderTextBg{
    max-width:900px;
    background-color:rgb(0,0,0);
    background-color:rgb(60,179,113,0.5);
    border-radius:10px;

    h1{
        text-shadow:0.6px 0.6px 0.6px red;
    }
}

@media (max-width:767px){
    .sliderTextBg{
        border-radius:0px;
    }
}

.headerTopCard{
    border-radius:20px 0px 0px 20px;
}

.headerBottomCard{
    border-radius:0px 20px 20px 0px;
}

@media (max-width:1024px){

    .headerTopCard{
        border-radius:0px;
    }

    .headerBottomCard{
        border-radius:0px 0px 20px 20px;
    }
}

.headerCardBtn:hover{
    color:mediumseagreen;
    font-size:16px;
    font-weight:bold;
}

/* Professional Academic Styling for About Section */
    .cmd-academic-wrap {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }
    
    .cmd-degree-badge {
        background-color: #ffffff;
        color: #dc3545; /* Red accent for the degrees */
        border: 1px solid #dee2e6;
        font-size: 10px;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        text-transform: uppercase;
    }

    .cmd-profile-card {
        border-top: 4px solid #dc3545; /* Signature Red Line */
        transition: 0.3s;
    }

    .cmd-profile-card:hover {
        transform: translateY(-5px);
    }


/* =========================
   SECTION BACKGROUND
========================= */
.dept-section {
    background: linear-gradient(to bottom, #f3fbf6, #ffffff);
    overflow-x: hidden; /* prevents right-side scroll bug */
}

/* =========================
   ROW SAFETY FIX
========================= */
.dept-section .row {
    margin-left: 0;
    margin-right: 0;
}

/* =========================
   CARD BASE
========================= */
.dept-card {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden; /* CRITICAL FIX (prevents page overflow) */
    background: #fff;
    position: relative;

    border: 1px solid rgba(60,179,113,0.15);
    border-bottom: 2px solid mediumseagreen;

    box-shadow: 0 5px 20px rgba(0,0,0,0.06);

    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

/* =========================
   CARD HOVER (SAFE)
========================= */
.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(60,179,113,0.18);
}

/* =========================
   IMAGE CONTAINER
========================= */
.dept-img {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* =========================
   IMAGE FIX (NO OVERFLOW)
========================= */
.dept-img img {
    width: 100%;
    max-width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;

    transition: transform 0.5s ease;
}

/* image zoom ONLY inside container */
.dept-card:hover .dept-img img {
    transform: scale(1.08);
}

/* =========================
   IMAGE OVERLAY
========================= */
.dept-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
    opacity: 0;
    transition: 0.4s ease;
}

.dept-card:hover .dept-img::after {
    opacity: 1;
}

/* =========================
   TITLE
========================= */
.dept-title {
    font-weight: 600;
    font-size: 15px;
    color: #14532d;
    min-height: 40px;
}

/* =========================
   BUTTON
========================= */
.dept-btn {
    border-radius: 50px;
    font-size: 13px;
    padding: 6px 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* button arrow animation */
.dept-btn i {
    transition: transform 0.3s ease;
}

.dept-card:hover .dept-btn i {
    transform: translateX(4px);
}

/* =========================
   TABS
========================= */
.nav-pills .nav-link {
    border-radius: 30px;
    padding: 10px 25px;
    margin: 0 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: mediumseagreen;
    box-shadow: 0 4px 12px rgba(60,179,113,0.35);
}

/* =========================
   GLOBAL SAFETY FIX
========================= */
body {
    overflow-x: hidden; /* FINAL FIX for right scroll bug */
}

/* =========================
   WOW / ANIMATION SAFETY
========================= */
.wow {
    will-change: transform;
}

@media (max-width:767px){
    .offerBtn{
        display:none;
    }
}

@media (min-width:768px){
    .serviceCardImageHeight{
        height:350px;
    }

    .serviceCardHeight{
        height:190px;
    }

    .serviceLeftImage1, .serviceLeftImage2{
        max-width:400px;
    }
}

@media (max-width:767px){
    .serviceLeftImage2{
        display:none;
    }
}

.testimony-btn {
    border-radius: 50px;
    font-weight: 600;
    color: mediumseagreen;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Hover effect */
.testimony-btn:hover {
    background: mediumseagreen;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(60,179,113,0.4);
}

/* Icon animation */
.testimony-btn i {
    transition: 0.3s;
}

.testimony-btn:hover i {
    transform: rotate(-15deg) scale(1.2);
}

.form-control:focus {
    border-color: mediumseagreen;
    box-shadow: 0 0 0 0.25rem rgba(60,179,113,0.25);
}

 /* Styling for the Academic Title Badges */
    .academic-titles {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: 8px;
        flex-wrap: wrap;
    }
    
    .badge-academic {
        background-color: #e9ecef;
        color: #14532d; /* Professional Green */
        font-size: 11px;
        font-weight: 700;
        padding: 3px 10px;
        border-radius: 50px;
        border: 1px solid #3cb371;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .team-item:hover .badge-academic {
        background-color: #dc3545; /* Turns red on hover to match your theme */
        color: white;
        border-color: #dc3545;
        transition: 0.3s;
    }

    /* --- NEWSLETTER SECTION STYLE --- */
    .mauth-newsletter-container {
        position: relative;
        z-index: 10;
        margin-top: -60px; /* Overlap effect */
    }

    .mauth-newsletter-card {
        background: linear-gradient(rgba(60, 179, 113, 0.95), rgba(20, 83, 45, 0.95)), url('img/cer4.jpg');
        background-attachment: fixed;
        background-position: center;
        background-size: cover;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        /* FIX 1: Prevent any inner elements from leaking out */
        overflow: hidden; 
    }

    .newsletter-form-group {
        position: relative;
        max-width: 600px;
        margin: 0 auto;
    }

    .newsletter-input-field {
        width: 100%;
        padding: 18px 30px;
        border-radius: 50px;
        border: 2px solid transparent;
        outline: none;
        font-size: 16px;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .newsletter-input-field:focus {
        border-color: #dc3545;
    }

    .btn-mauth-subscribe {
        position: absolute;
        right: 6px;
        top: 6px;
        bottom: 6px;
        background: #dc3545;
        color: white;
        border: none;
        padding: 0 35px;
        border-radius: 50px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .btn-mauth-subscribe:hover {
        background: #212529;
        color: white;
        transform: scale(1.02);
    }

    /* Mobile Responsive Fix */
    @media (max-width: 767px) {
        .mauth-newsletter-container {
            margin-top: 20px;
        }
        .btn-mauth-subscribe {
            position: relative;
            width: 100%;
            margin-top: 15px;
            padding: 15px;
            justify-content: center;
            top: auto;
            right: auto;
        }
        .newsletter-input-field {
            border-radius: 15px;
            text-align: center;
        }
    }

    .faq-section {
        background-color: #f8f9fa;
        border-radius: 30px;
    }

    /* Accordion Item Styling */
    .mauth-faq .accordion-item {
        border: none;
        margin-bottom: 15px;
        border-radius: 12px !important;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .mauth-faq .accordion-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(60, 179, 113, 0.1);
    }

    /* Button Styling */
    .mauth-faq .accordion-button {
        padding: 20px 25px;
        font-weight: 600;
        font-size: 17px;
        color: #14532d;
        background-color: #ffffff;
        border: none;
    }

    .mauth-faq .accordion-button:not(.collapsed) {
        color: #3cb371; /* Medium Sea Green */
        background-color: #f0fff4;
        box-shadow: none;
    }

    /* Red indicator icon */
    .mauth-faq .accordion-button::after {
        background-size: 1.25rem;
        transition: transform 0.3s ease;
    }

    .mauth-faq .accordion-button i {
        color: #dc3545; /* Red Icon accent */
        margin-right: 15px;
        font-size: 1.1rem;
    }

    /* Content Styling */
    .mauth-faq .accordion-body {
        padding: 20px 25px 25px;
        color: #555;
        line-height: 1.7;
        background-color: #f0fff4;
        border-top: 1px solid rgba(60, 179, 113, 0.1);
    }

    .faq-highlight {
        border-left: 4px solid #dc3545;
    }

    /* Premium Input Styling */
    .inner-form-input {
        background: #f8f9fa !important;
        border: 2px solid #eeeeee !important;
        border-radius: 12px !important;
        transition: all 0.3s ease !important;
    }

    .inner-form-input:focus {
        background: #ffffff !important;
        border-color: #22c55e !important; /* Success Green */
        box-shadow: 0 8px 20px rgba(34, 197, 94, 0.1) !important;
        transform: translateY(-2px);
    }

    /* Icon Styling inside input group */
    .input-icon-box {
        border: 2px solid #eeeeee !important;
        border-right: none !important;
        border-radius: 12px 0 0 12px !important;
        background: #f8f9fa !important;
        color: #6c757d !important;
    }

    .inner-form-input:focus + .input-icon-box,
    .input-group:focus-within .input-icon-box {
        border-color: #22c55e !important;
        color: #22c55e !important;
    }

    /* Professional Button */
    .btn-mauth-send {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .btn-mauth-send:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        color: #22c55e;
    }

.topMgtText{
    font-size:35px;
}
@media(max-width:767px){
    .topMgtText{
        font-size:30px;
    }
}

.hover-elevate:hover {
        transform: translateY(-7px);
        box-shadow: 0 1rem 3rem rgba(25, 135, 84, 0.12) !important;
    }
    .hover-elevate:hover .transition-zoom {
        transform: scale(1.05);
    }
    .transition-zoom {
        transition: transform 0.5s ease;
    }
    

/* Container set to flex/wrap by default on larger screens */
.cmd-academic-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Individual badge styling baseline */
.cmd-degree-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    /* Add your background/color styles here if not already defined elsewhere */
}

/* Mobile Responsive Grid for Small Screens */
@media (max-width: 576px) {
    .cmd-academic-wrap {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Creates 3 neat columns on mobile */
        gap: 6px;
        width: 100%;
    }

    .cmd-degree-badge {
        text-align: center;
        padding: 6px 4px;
        font-size: 0.75rem; /* Slightly smaller text to prevent text wrapping breaking the layout */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Safely cuts off if text is unusually long */
    }
}

/* Add this inside your main stylesheet or a <style> block on the page */
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}
.hover-card:hover .zoom-img {
    transform: scale(1.08);
}
    