﻿/* Breadcrumb Area */
.breadcrumb-area {
    position: relative;
    display: block;
    overflow: hidden;
    margin-top: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0 60px;
    z-index: 10;
    color: #fff;
    text-align: center;
}

    .breadcrumb-area::before {
        position: absolute;
        inset: 0;
        background: #000;
        opacity: 0.55;
        content: "";
        z-index: -1;
    }

    .breadcrumb-area::after {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 250px;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 100%);
        opacity: 0.3;
        content: "";
        z-index: -1;
    }

    .breadcrumb-area .title h2 {
        color: #fff;
        font-size: 3rem;
        font-weight: 700;
        text-transform: capitalize;
        margin-bottom: 10px;
    }

.breadcrumb-menu ul {
    background: #fff;
    padding: 10px 20px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 5px;
    list-style: none;
    margin: 0;
}

    .breadcrumb-menu ul li {
        display: inline-block;
        margin-right: 20px;
        padding-right: 20px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        position: relative;
        color: #333;
    }

        .breadcrumb-menu ul li::before {
            content: "";
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            width: 1px;
            background: #e8e8e8;
        }

        .breadcrumb-menu ul li:last-child {
            margin-right: 0;
            padding-right: 0;
        }

            .breadcrumb-menu ul li:last-child::before {
                display: none;
            }

        .breadcrumb-menu ul li a {
            color: #333;
            text-decoration: none;
        }

        .breadcrumb-menu ul li.active {
            color: #999;
        }

/* Service Section */
.service-style5-area {
    padding: 80px 0 40px;
}

.service-style5_top_title {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

    .service-style5_top_title .sec-title,
    .service-style5_top_title .text {
        flex: 1 1 100%;
    }

    .service-style5_top_title .text {
        padding-left: 0;
        border-left: none;
    }

/* Service Card */
.single-service-style5 {
    background: #fff;
    border: 2px solid #e9ebf4;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
    position: relative;
    text-align: center;
    height: 100%;
}

    .single-service-style5:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    }

    .single-service-style5 .icon-holder {
        font-size: 80px;
        margin-bottom: 20px;
    }

        .single-service-style5 .icon-holder svg {
            width: 64px;
            height: 64px;
            fill: #2739a7;
            margin-bottom: 15px;
        }

    .single-service-style5 .title-holder h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
        color: #222;
    }

    .single-service-style5 .title-holder p {
        font-size: 0.95rem;
        color: #666;
        margin: 0;
    }

    .single-service-style5 .readmore-button {
        padding-top: 25px;
    }

        .single-service-style5 .readmore-button a {
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            display: inline-block;
            margin-top: 15px;
            padding: 8px 18px;
            border-radius: 30px;
            border: 2px solid #2739a7;
            color: #2739a7;
            text-decoration: none;
            transition: all 0.3s ease;
        }

            .single-service-style5 .readmore-button a:hover {
                background: #2739a7;
                color: #fff;
            }

/* Hover Overlay */
.service-page2 .single-service-style5 .overlay-bg {
    position: absolute;
    inset: -1px;
    background: #2739a7;
    transform: perspective(400px) rotateX(-90deg);
    transform-origin: top;
    transition: transform 0.5s;
    z-index: 0;
    border-radius: 10px;
}

.service-page2 .single-service-style5:hover .overlay-bg {
    transform: perspective(400px) rotateX(0deg);
}

/* Container */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .service-style5_top_title {
        flex-wrap: nowrap;
    }

        .service-style5_top_title .text {
            padding-left: 80px;
            border-left: 1px solid #cfd3e4;
        }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Responsive Tweaks */
@media (max-width: 767px) {
    .breadcrumb-area {
        padding: 80px 0 40px;
    }

        .breadcrumb-area .title h2 {
            font-size: 2rem;
        }

    .breadcrumb-menu ul {
        padding: 10px 15px;
        flex-direction: column;
        align-items: center;
    }

        .breadcrumb-menu ul li {
            font-size: 11px;
            margin-right: 0;
            padding-right: 0;
        }

            .breadcrumb-menu ul li::before {
                display: none;
            }

    .single-service-style5 {
        padding: 20px;
    }

        .single-service-style5 .icon-holder {
            font-size: 60px;
        }

            .single-service-style5 .icon-holder svg {
                width: 48px;
                height: 48px;
            }

        .single-service-style5 .title-holder h3 {
            font-size: 1.1rem;
        }

        .single-service-style5 .title-holder p {
            font-size: 0.9rem;
        }

        .single-service-style5 .readmore-button a {
            padding: 6px 14px;
            font-size: 0.75rem;
        }

    .service-style5_top_title .text {
        padding-left: 0;
        border-left: none;
    }

    /* Mobile Dropdown Styles */
    .dropdown-menu {
        width: 2% !important;
        padding: 0.1rem 0;
    }

    .dropdown-item {
        padding: 0.1rem 0.50rem;
        font-size: 0.7rem;
    }

    .dropdown-submenu .dropdown-menu {
        width: 2%;
    }

    .dropdown-menu.sub-dropdown {
        box-shadow: none;
    }
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .glass-effect:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 38px rgba(0, 0, 0, 0.15);
    }


/* ===============================
   Responsive Dropdown Enhancements
   =============================== */

@media (max-width: 767px) {
    /* Ensure dropdown menu spans full width on mobile */
    .navbar .dropdown-menu {
        width: 100% !important;
        position: static !important;
        float: none;
        background-color: #fff;
        border: none;
        box-shadow: none;
        padding: 0.5rem 1rem;
    }

        .navbar .dropdown-menu.sub-dropdown {
            width: 100%;
            margin-left: 1rem;
            padding-left: 1rem;
            border-left: 2px solid #eee;
        }

    /* Dropdown items spacing */
    .navbar .dropdown-item {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    /* Submenu toggle fix */
    .dropdown-submenu > .dropdown-toggle::after {
        float: right;
        margin-top: 6px;
    }

    /* Hide submenus initially */
    .dropdown-submenu > .dropdown-menu {
        display: none;
    }

    /* Show submenus when parent is active */
    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }

    /* Reset padding in submenus */
    .dropdown-submenu .dropdown-item {
        padding-left: 1rem;
    }
}

/* Optional: Smooth hover effects for larger screens */
@media (min-width: 768px) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}
