/* =========================================================
   GLOBAL VARIABLES
========================================================= */
:root {
    --header-height: 114px;
}

/* Header height adjustments */
@media (max-width: 991px) {
    :root { --header-height: 90px; }
}
@media (max-width: 767px) {
    :root { --header-height: 80px; }
}
@media (max-width: 575px) {
    :root { --header-height: 70px; }
}

/* =========================================================
   BODY OFFSET
========================================================= */
.revx-carousel-wrapper {
    margin-top: var(--header-height);
}

  /* Top Bar Styles */
        .ram-top-bar {
            background: linear-gradient(135deg, #4b387f 0%, #6b4fa0 100%);
            color: #fff;
            font-size: 14px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1001;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .ram-top-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .ram-top-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: 44px;
        }

        .ram-top-left ul {
            display: flex;
            list-style: none;
            gap: 30px;
            margin: 0;
            flex-wrap: wrap;
        }

        .ram-top-left li {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 0;
        }

        .ram-top-left i {
            font-size: 13px;
            opacity: 0.9;
        }

        .ram-top-left a {
            color: #fff;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .ram-top-left a:hover {
            color: #ffd700;
            transform: translateX(3px);
        }

        .ram-top-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ram-follow-text {
            font-weight: 600;
            font-size: 13px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .ram-social-list {
            display: flex;
            list-style: none;
            gap: 8px;
            margin: 0;
        }

        .ram-social-link {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.15);
            color: #fff;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 13px;
            backdrop-filter: blur(10px);
        }

        .ram-social-link:hover {
            background: #fff;
            color: #4b387f;
            transform: translateY(-3px) scale(1.1);
            box-shadow: 0 5px 15px rgba(255,255,255,0.3);
        }

        /* Navigation Styles */
        .ram-nav {
            background: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: fixed;
            top: 44px;
            left: 0;
            right: 0;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .ram-nav.sticky {
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }

        .ram-nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
           padding: 10px 20px;
        }

        .ram-logo img {
            height: 80px;
            width: auto;
            max-width: 200px;
            transition: transform 0.3s ease;
        }

        .ram-logo:hover img {
            transform: scale(1.05);
        }

        .ram-menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #333;
            transition: color 0.3s ease;
            z-index: 1100;
        }

        .ram-menu-toggle:hover {
            color: #4b387f;
        }

        .ram-navbar {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .ram-nav-list {
            display: flex;
            list-style: none;
            gap: 25px;
            margin: 0;
        }

        .ram-nav-item {
            position: relative;
        }

        .ram-nav-item > a {
            text-decoration: none;
            color: #333;
            font-weight: 700;
            padding: 8px 0;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: color 0.3s ease;
            position: relative;
            font-size: 15px;
        }

        .ram-nav-item > a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, #4b387f, #6b4fa0);
            transition: width 0.3s ease;
            border-radius: 2px;
        }

        .ram-nav-item > a:hover {
            color: #4b387f;
        }

        .ram-nav-item > a:hover::after {
            width: 100%;
        }

        .ram-nav-item i {
            font-size: 10px;
            transition: transform 0.3s ease;
        }

        .ram-nav-item:hover > a i {
            transform: rotate(180deg);
        }

        .ram-sub-menu {
            position: absolute;
            top: 100%;
            left: -155px;
            background: #fff;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            list-style: none;
            min-width: 439px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            padding: 0;
            margin-top: 10px;
            border-radius: 8px;
            border-top: 3px solid #4b387f;
        }

        .ram-nav-item:hover .ram-sub-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .ram-sub-menu li {
            padding: 0;
        }

        .ram-sub-menu a {
            display: block;
            padding: 12px 25px;
            color: #333;
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 600;
            position: relative;
            font-size: 14px;
            text-transform: uppercase;
        }

        .ram-sub-menu a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: #4b387f;
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .ram-sub-menu a:hover {
            color: #4b387f;
            padding-left: 35px;
            background: rgba(75, 56, 127, 0.05);
        }

        .ram-sub-menu a:hover::before {
            transform: scaleY(1);
        }

        .ram-quote-btn {
            background: linear-gradient(135deg, #4b387f 0%, #6b4fa0 100%);
            color: #fff;
            padding: 12px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(75, 56, 127, 0.3);
            position: relative;
            overflow: hidden;
            font-size: 14px;
            letter-spacing: 0.5px;
            border: none;
            cursor: pointer;
        }

        .ram-quote-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s ease;
        }

        .ram-quote-btn:hover::before {
            left: 100%;
        }

        .ram-quote-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(75, 56, 127, 0.5);
        }

/* =========================================================
   MOBILE NAV
========================================================= */
@media (max-width: 991px) {
    .ram-menu-toggle {
        display: block;
    }

    .ram-navbar {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #fff;
        flex-direction: column;
        padding: 20px;
        transition: 0.3s;
        overflow-y: auto;
    }

    .ram-navbar.active {
        left: 0;
    }

    .ram-nav-list {
        flex-direction: column;
        width: 100%;
    }

    .ram-sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .ram-nav-item.active .ram-sub-menu {
        display: block;
    }
}

/* =========================================================
   MOBILE CONTACT
========================================================= */
.ram-mobile-contact {
    display: none;
}

@media (max-width: 991px) {
    .ram-mobile-contact {
        display: block;
        margin-top: 20px;
    }
}

/* =========================================================
   CAROUSEL (FIXED & CLEAN)
========================================================= */
.revx-carousel-wrapper {
    width: 100%;
    height: calc(90vh - var(--header-height));
    background: #000;
    position: relative;
    overflow: hidden;
}

.revx-carousel-container,
.revx-slide-item,
.revx-image-layer-wrapper,
.revx-image-layer {
    position: absolute;
    inset: 0;
}

.revx-slide-item {
    opacity: 0;
    transition: opacity 1s ease;
}

.revx-slide-item.revx-active {
    opacity: 1;
    z-index: 2;
}

.revx-layer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1.5s ease;
}

.revx-slide-item.revx-active .revx-layer-image {
    transform: scale(1);
}

/* DOTS */
.revx-nav-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.revx-dot-item {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid #fff;
}

.revx-active-dot {
    background: #fff;
    transform: scale(1.3);
}

/* MOBILE CAROUSEL HEIGHT */
@media (max-width: 767px) {
    .revx-carousel-wrapper { height: 55vh; }
}
@media (max-width: 575px) {
    .revx-carousel-wrapper { height: 45vh; }
}
@media (max-width: 375px) {
    .revx-carousel-wrapper { height: 40vh; }
}


/* =========================================================
   MOBILE HEADER & BANNER ALIGNMENT FIX
========================================================= */
@media (max-width: 600px) {
    .sss{
        margin-top: 0px;
    }

    /* Hide top bar completely */
    .ram-top-bar {
        display: none !important;
    }

    /* Reset header height variable for mobile */
    :root {
        --header-height: 70px;
    }

    /* Remove unwanted body gap */
    body {
        padding-top: var(--header-height);
    }

    /* Fix navbar position */
    .ram-nav {
        top: 0;
        height: var(--header-height);
    }

    .ram-nav-container {
        padding: 5px 15px;
    }

    /* Logo scaling */
    .ram-logo img {
        height: 55px;
        max-width: 150px;
    }

    /* Mobile navbar panel */
    .ram-navbar {
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
    }

    /* ==============================
       BANNER / CAROUSEL FIX
    ============================== */

    .revx-carousel-wrapper {
            height: 19vh;
    min-height: 155px;
    }

    .revx-slide-item,
    .revx-image-layer-wrapper {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .revx-image-layer img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-height: 100%;
    }

    /* Prevent zoom cropping on mobile */
    .revx-layer-image {
        transform: scale(1);
    }

    /* Dot spacing */
    .revx-nav-dots {
        bottom: 15px;
    }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 375px) {

    :root {
        --header-height: 65px;
    }

    .ram-logo img {
        height: 50px;
    }

    .revx-carousel-wrapper {
        height: 40vh;
        min-height: 230px;
    }
}
/* =========================================================
   MOBILE DROPDOWN – 600px ONLY
========================================================= */
@media (max-width: 600px) {
     .revx-carousel-wrapper{
        margin-top: 0px;
    }

    /* Disable hover dropdown on mobile */
    .ram-nav-item:hover .ram-sub-menu {
        display: none;
    }

    /* Full-width nav items */
    .ram-nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .ram-nav-item > a {
        width: 100%;
    
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Arrow animation */
    .ram-nav-item i {
        transition: transform 0.3s ease;
    }

    .ram-nav-item.active > a i {
        transform: rotate(180deg);
    }

    /* Submenu reset */
    .ram-sub-menu {
        position: static;
        min-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        display: none;
        background: #f7f7f7;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
    }

    /* Show submenu on tap */
    .ram-nav-item.active .ram-sub-menu {
        display: block;
        animation: ramSlideDown 0.3s ease;
    }

    /* Submenu links */
    .ram-sub-menu a {
        padding: 12px 22px;
        font-size: 14px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}

/* Smooth slide animation */
@keyframes ramSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




