/* =========================================
   DECARNO LAW - COMPLETE FULLY RESPONSIVE STYLE.CSS
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

/* --- Global Styles --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #fcfcfc;
    color: #333;
    overflow-x: hidden;
}

/* Prevent horizontal scroll globally */
a {
    text-decoration: none;
}

/* --- Top Bar --- */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.top-socials a {
    color: #888;
    transition: 0.3s;
}

.top-socials a:hover {
    color: #e60000;
}

.top-links a {
    color: #444;
}


/* =========================================
   MOBILE OFFCANVAS MENU STYLES
   ========================================= */
#mobileMenuOffcanvas .accordion-button {
    font-size: 16px;
    color: #222;
    padding: 16px 20px;
    background-color: #fff;
    box-shadow: none;
}

#mobileMenuOffcanvas .accordion-button:not(.collapsed) {
    color: #e60000;
    /* Decarno Red */
    background-color: #f8f9fa;
}

#mobileMenuOffcanvas .accordion-button::after {
    background-size: 1rem;
    /* Adjust arrow size */
}

#mobileMenuOffcanvas .list-group-item {
    font-size: 14px;
    color: #555;
    background-color: #fafafa;
    border-radius: 0;
}

#mobileMenuOffcanvas .list-group-item:hover {
    color: #e60000;
    background-color: #f1f1f1;
}

#mobileMenuOffcanvas .list-group-item.px-3.py-3 {
    font-size: 16px;
    color: #222;
    background-color: #fff;
}

#mobileMenuOffcanvas .btn-close-custom {
    background: none;
    border: none;
    font-size: 24px;
    color: #111;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}


/* --- Navbar & Base Menu --- */
.nav-link {
    font-size: 15px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #e60000 !important;
}

/* Increased Logo Size */
.navbar-brand img {
    height: 70px;
    max-height: 80px;
    padding: 5px 0;
    width: auto;
}

/* =========================================
   FIXES: HOVER, SLIDER CARDS, & SLANT ARROWS
   ========================================= */

/* 1. Nav Dropdown Hover Fix (Desktop Only) */
.navbar .nav-item.has-megamenu {
    position: static;
}

@media (min-width: 992px) {
    .navbar .megamenu {
        top: 100%;
        margin-top: 0px;
        border-top: 2px solid transparent;
        padding-top: 15px;
        display: none;
        animation: none;
    }

    .has-megamenu:hover .megamenu {
        display: block;
    }
}

/* 2. Top Rated Lawyers - Exact Card Styling */
.lawyer-slide-wrapper {
    text-align: left;
}

.lawyer-category-text {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.lawyer-pro-card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
    padding: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.lawyer-img-wrap {
    width: 85px;
    height: 105px;
    flex-shrink: 0;
}

.lawyer-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.lawyer-details h6 {
    font-size: 15px;
    color: #111;
    margin-bottom: 4px;
}

.lawyer-details .ratings {
    font-size: 12px;
    margin-bottom: 6px;
}

.lawyer-details .ratings i {
    color: #f5b041;
}

.lawyer-details .info-list {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.lawyer-details .info-list i {
    width: 15px;
    text-align: center;
    color: #999;
}

.btn-view-more-card {
    border: 1px solid #ddd;
    border-radius: 30px;
    color: #666;
    font-size: 13px;
    padding: 8px 0;
    margin-top: 15px;
    transition: 0.3s;
    display: block;
    text-align: center;
}

.btn-view-more-card:hover {
    background: #f9f9f9;
    color: #111;
}

/* 3. How Decarno Law Can Help You - Slanted Design */
.how-it-works-bg {
    background-color: #fff;
    padding: 60px 0;
}

.step-box {
    position: relative;
    padding-right: 40px;
    text-align: left;
}

.step-icon-wrap {
    margin-bottom: 15px;
}

.step-icon-wrap i {
    font-size: 40px;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.step-num {
    font-size: 20px;
    font-weight: 800;
    position: absolute;
    right: 0px;
    bottom: 20px;
}

/* Desktop Only: Slanted Separators */
@media (min-width: 992px) {
    .step-col {
        position: relative;
    }

    .step-col:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -10px;
        top: 20px;
        height: 100px;
        width: 4px;
        transform: skewX(-25deg);
        z-index: 5;
    }

    .step-col:nth-child(1) .step-icon-wrap i,
    .step-col:nth-child(1) .step-num {
        color: #e60000;
    }

    .step-col:nth-child(1)::after {
        background-color: #e60000;
    }

    .step-col:nth-child(2) .step-icon-wrap i,
    .step-col:nth-child(2) .step-num {
        color: #000;
    }

    .step-col:nth-child(2)::after {
        background-color: #000;
    }

    .step-col:nth-child(3) .step-icon-wrap i {
        color: #555;
    }

    .step-col:nth-child(3) .step-num {
        color: #666;
    }
}

/* --- Mega Menu --- */
.nav-item.has-megamenu {
    position: relative;
}

@media (min-width: 992px) {
    .megamenu {
        width: 100%;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 0;
        display: none;
        position: absolute;
        border-radius: 0 0 12px 12px;
        padding: 5px 0;
        z-index: 1001;
    }

    .has-megamenu::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 25px;
        background: transparent;
        z-index: 999;
    }

    .has-megamenu:hover .megamenu {
        display: block;
        animation: fadeIn 0.2s ease-in;
    }
}

.compact-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px !important;
}

.mega-list li a {
    font-size: 13px;
    padding: 2px 0;
    color: #666;
    display: block;
    transition: 0.2s;
    line-height: 1.4;
}

.mega-list li a:hover {
    color: #e60000;
    padding-left: 5px;
}

.view-more-btn {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    color: #777;
    border-color: #ddd;
    margin-top: 3px;
    display: inline-block;
}

.view-more-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.compact-col {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* --- Hero Section --- */
.hero-section {
    background: #000;
    padding: 80px 0 150px 0;
    color: #fff;
}

.hero-title {
    font-weight: 800;
    font-size: 48px;
    letter-spacing: -1px;
}

.consultation-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    margin-left: auto;
}

.off-badge {
    background: #e60000;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* --- Search Bar --- */
.search-container {
    margin-top: -65px;
    z-index: 1000;
    position: relative;
}

.search-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.search-input-group {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.search-input-group i {
    color: #999;
    padding-left: 15px;
}

.search-input-group input {
    border: none;
    padding: 15px 10px;
    font-size: 15px;
    width: 100%;
}

.search-input-group input:focus {
    outline: none;
}

/* --- Swiper Global Fixes --- */
.swiper {
    width: 100%;
    padding-bottom: 40px !important;
}

.swiper-slide {
    height: auto;
}

.swiper-pagination-bullet-active {
    background-color: #555 !important;
}

/* --- Services Section --- */
.service-card {
    border-radius: 12px;
    background-color: #fcfcfc;
    border: 1px solid #eaeaea !important;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #e60000 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(230, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Lawyers Section --- */
.lawyer-card {
    border-radius: 12px;
    background-color: #fcfcfc;
    border: 1px solid #f0f0f0 !important;
}

.lawyer-img-box {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.lawyer-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 18px;
    z-index: 5;
}

/* --- FAQ Section --- */
.faq-preview-section {
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
}

.faq-card {
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border-color: #e60000;
}

.faq-q {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.faq-a {
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.faq-arrow-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: rgba(230, 0, 0, 0.08);
    color: #e60000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    text-decoration: none;
}

.faq-card:hover .faq-arrow-btn {
    background-color: #e60000;
    color: #fff;
}

/* --- Why Choose Us --- */
.choose-card {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: 0.3s ease;
}

.choose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: #e60000;
}

.choose-icon i {
    font-size: 32px;
    color: #e60000;
}

.choose-content ul li {
    font-size: 13.5px;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.choose-content ul li i {
    color: #999;
    font-size: 16px;
    margin-right: 10px;
    margin-top: 3px;
}

/* --- Testimonials Section --- */
.testimonial-media-card {
    min-height: 220px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.testimonial-media-card:hover {
    transform: translateY(-5px);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 45px;
    opacity: 0;
    transition: 0.3s ease;
}

.testimonial-media-card:hover .play-overlay {
    opacity: 1;
}

.testimonial-text-card {
    background-color: #eef0f6;
    transition: transform 0.3s ease;
}

/* --- Trust & Stats Section --- */
.trust-section {
    background-color: #f7f8f9;
}

.trust-card {
    background-color: #fdfdfd;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.trust-card h5 {
    font-size: 17px;
}

.trust-card p {
    color: #6c757d;
    font-size: 14px;
}

/* --- Specific Pages --- */
.sidebar-widget {
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.about-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.feature-box {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: #e60000 !important;
}

.font-italic {
    font-style: italic;
}

.icon-circle-light {
    width: 50px;
    height: 50px;
    background-color: rgba(230, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

/* --- Footer --- */
.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #a0a5b0;
    font-size: 13.5px;
    transition: 0.2s;
    display: inline-block;
}

.footer-list a:hover {
    color: #fff;
    padding-left: 5px;
}

.hover-white:hover {
    color: #fff !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =========================================================================
   MOBILE RESPONSIVENESS (Ye mobile par sab kuch fix karega)
   ========================================================================= */

@media (max-width: 991px) {

    /* Tablet & Mobile Adjustments */
    .hero-title {
        font-size: 36px;
    }

    .search-container {
        margin-top: -30px;
    }

    .search-card {
        padding: 20px;
    }

    .search-card .col-md-5,
    .search-card .col-md-2 {
        margin-bottom: 10px;
    }

    /* Navbar collapse handling */
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1050;
    }

    .megamenu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        display: block !important;
        padding: 0 !important;
    }

    .compact-title {
        margin-top: 15px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 5px;
    }
}

@media (max-width: 767px) {
    /* Mobile Phone Adjustments */

    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .top-socials {
        display: none;
    }

    /* Hide socials to save space */
    .top-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px !important;
        font-size: 12px;
    }

    /* Hero Section */
    .hero-section {
        padding: 50px 0 100px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 16px !important;
    }

    .hero-section .d-flex {
        flex-direction: column;
        gap: 15px;
    }

    .hero-section button {
        width: 100%;
    }


/* =========================================
   PREMIUM MNC PROCESS SECTION (100% Fixed)
   ========================================= */
.premium-process-section {
    background-color: #f4f6f9; /* Premium soft grayish blue background */
}

/* The actual white card for each step */
.mnc-step-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

/* Hover Effect: Lifts up and gets a soft red glow */
.mnc-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(230, 0, 0, 0.08); 
    border-color: rgba(230, 0, 0, 0.1);
}

/* The giant transparent number in the background */
.mnc-step-watermark {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 140px;
    font-weight: 900;
    color: rgba(0,0,0,0.03); /* Barely visible grey */
    line-height: 1;
    z-index: -1;
    transition: all 0.4s ease;
}

.mnc-step-card:hover .mnc-step-watermark {
    color: rgba(230, 0, 0, 0.05); /* Turns slightly red on hover */
    transform: scale(1.05);
}

/* The Circular Icon Holder */
.mnc-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(230,0,0,0.08), rgba(230,0,0,0.02));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mnc-icon-wrapper i {
    font-size: 32px;
    color: #222;
    transition: all 0.3s ease;
}

.mnc-step-card:hover .mnc-icon-wrapper i {
    color: #e60000;
    transform: scale(1.1);
}

/* Dark Button Hover */
.custom-hover-btn {
    transition: 0.3s ease;
}
.custom-hover-btn:hover {
    background-color: #e60000 !important;
    border-color: #e60000 !important;
    transform: translateY(-2px);
}


    /* Footer Mobile Accordion */
    .footer-heading {
        cursor: pointer;
        padding: 10px 0;
        border-bottom: 1px solid #222;
        margin-bottom: 0 !important;
    }

    .footer-heading i {
        transition: transform 0.3s;
    }

    .footer-heading[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    .footer-list {
        padding-top: 15px;
    }

    .collapse:not(.show) {
        display: none;
    }

    /* General Spacing fixes */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    /* Stats & Trust */
    .trust-card {
        padding: 20px !important;
    }

    /* Lawyer Cards & Testimonials */
    .lawyer-pro-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lawyer-img-wrap {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .lawyer-details .info-list div {
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 5px;
    }
}