body {
    margin: 0%;
    padding: 0%;
}

body {
    background-color: #e2e0e0;
    margin-left: 5px;
    margin-right: 5px;
    /* This prevents the horizontal scrollbar from appearing */
    width: calc(100% - 10px);
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

/* Layout map:
    1) Header + hero + responsive behavior (top of file)
    2) Navigation component rules
    3) Footer, services, about, mentor sections
    4) Utility and state-specific overrides near the end */

/* Main container stacking */
main {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header: Three-row stack with no overlaps */
.site-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #020912;
    border-radius: 5px;
    position: relative;
    z-index: 30;
}

/* Row 1: Logo and Tagline (horizontal) */
.header-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

/* Tagsection - Row 1 Left Side */
.tagsection {
    background-color: #0F0E47;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    flex: 1;
}

/* Logo Section - Row 1 Right Side */
.logo-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 8rem;
    padding: 0 20px;
    margin-top: 0;
    margin-bottom: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    transition: all 0.4s ease-in-out;
    position: relative;
    z-index: 15;
    border-bottom: 0;
}

.logo-section.logo-scrolled {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    border-bottom: 0;
}

.logo-image {
    height: 6.5rem;
    width: 6.5rem;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    border: 3px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.logo-section.logo-scrolled .logo-image {
    border-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.15);
}

#tag {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    width: 15rem;
    margin-left: 20px;
}

.main_tagline {

    justify-content: center;
    align-items: center;
    color: #CFB53B;
    margin-left: 1rem;
}

#prblack {
    color: black;

}

#pr_description {
    color: #CFB53B;
    font-size: 1.1rem;
    font-weight: 500;
}

#tagline {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Noto Sans Devanagari', sans-serif;
    text-align: left;
    width: 100%;
    border-left: 3px solid white;
    margin-left: 30px;
    padding-left: 20px;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-row {
    text-align: center;
}

#description {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    border-radius: 3rem;
    padding: 20px;

}

#pr_name_1 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-blue);
    align-items: center;


}

#pr_discription_1 {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;

    :hover {
        background-color: var(--secondary-gray);
        color: #000080;
    }
}

/* Hero Carousel - Row 3: Starts below entire header */
.hero-carousel {
    border-radius: 5px;
    width: 100%;
    height: 42rem;
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 0;
    display: block;
    overflow: hidden;
    /* Adaptive blend: fades image alpha into page background for any image */
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 76%,
            rgba(0, 0, 0, 0.78) 86%,
            rgba(0, 0, 0, 0.38) 93%,
            rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 76%,
            rgba(0, 0, 0, 0.78) 86%,
            rgba(0, 0, 0, 0.38) 93%,
            rgba(0, 0, 0, 0) 100%);

}

.hero-carousel::after {
    /* Top-only soft highlight; bottom blending is controlled by mask-image above */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.25) 10%,
            rgba(255, 255, 255, 0) 18%);
    pointer-events: none;
    z-index: 2;
}

.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    width: 500%;
    height: 100%;
    transform: translateX(0);
    animation: slide 35s infinite linear normal both;
    will-change: transform;
}

.carousel-slide img {
    /* Keep each image fixed to one slide width while the strip translates */
    width: 20%;
    height: 100%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

@keyframes slide {

    /* 0% to 14.2857% = 5 seconds (Image 1 Hold) */
    0%,
    14.2857% {
        transform: translateX(0);
    }

    /* 14.2857% to 20% = 2 seconds (Slide to Image 2) */
    14.2857%,
    20% {
        transform: translateX(-20%);
    }

    /* 20% to 34.2857% = 5 seconds (Image 2 Hold) */
    20%,
    34.2857% {
        transform: translateX(-20%);
    }

    /* 34.2857% to 40% = 2 seconds (Slide to Image 3) */
    34.2857%,
    40% {
        transform: translateX(-40%);
    }

    /* 40% to 54.2857% = 5 seconds (Image 3 Hold) */
    40%,
    54.2857% {
        transform: translateX(-40%);
    }

    /* 54.2857% to 60% = 2 seconds (Slide to Image 4) */
    54.2857%,
    60% {
        transform: translateX(-60%);
    }

    /* 60% to 74.2857% = 5 seconds (Image 4 Hold) */
    60%,
    74.2857% {
        transform: translateX(-60%);
    }

    /* 74.2857% to 80% = 2 seconds (Slide to Clone) */
    74.2857%,
    80% {
        transform: translateX(-80%);
    }

    /* 80% to 94.2857% = 5 seconds (Clone Hold - identical to first image!) */
    80%,
    94.2857% {
        transform: translateX(-80%);
    }

    /* Hold clone until the final frame, then jump instantly */
    99.999% {
        transform: translateX(-80%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Mobile-first adjustments: compact header/nav and preserve carousel readability */
    .nav {
        height: auto;
        padding: 10px;
    }

    /* Mobile Tag Section */
    .tagsection {
        height: 2.5rem;
        padding: 0 10px;
    }

    #tag {
        font-size: 1rem;
        width: 12rem;
        margin-left: 10px;
    }

    #tagline {
        font-size: 0.95rem;
        margin-left: 15px;
        padding-left: 15px;
    }

    /* Mobile Logo Section */
    .logo-section {
        margin-top: 0;
        margin-bottom: 0;
        padding: 0.75rem 10px;
        height: auto;
        justify-content: center;
        background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    }

    .logo-image {
        height: 3.5rem;
        width: 3.5rem;
        border: 2px solid #ffffff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
        object-fit: contain;
        padding: 0.3rem;
    }

    .logo-section.logo-scrolled .logo-image {
        border-color: rgba(255, 255, 255, 0.8);
        background-color: rgba(255, 255, 255, 0.15);
    }

    body {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .header-row-1 {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-carousel {
        height: 24rem;
    }

    #tag {
        width: auto;
    }

    #tagline {
        width: auto;
    }


    @media (max-width: 480px) {
        .hero-carousel {
            height: 18rem;
        }

        .tagsection {
            height: auto;
            padding: 8px 10px;
            flex-wrap: wrap;
        }

        #tag {
            font-size: 0.9rem;
            margin-left: 0;
        }

        #tagline {
            font-size: 0.85rem;
            margin-left: 0;
            padding-left: 10px;
        }
    }

    .top-row {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .login-btn {
        margin-top: 10px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    #pr_name_1 {
        font-size: 1.1rem;
    }

    #pr_discription_1 {
        font-size: 0.8rem;
    }

    #description {
        padding: 15px;
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-carousel {
        position: relative;
        height: 36rem;
        margin-top: 0;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to bottom,
                rgba(0, 0, 0, 1) 0%,
                rgba(0, 0, 0, 1) 74%,
                rgba(0, 0, 0, 0.78) 85%,
                rgba(0, 0, 0, 0.36) 93%,
                rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom,
                rgba(0, 0, 0, 1) 0%,
                rgba(0, 0, 0, 1) 74%,
                rgba(0, 0, 0, 0.78) 85%,
                rgba(0, 0, 0, 0.36) 93%,
                rgba(0, 0, 0, 0) 100%);
    }

    /* One single overlay to handle both top and bottom blending */
    .hero-carousel::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        /* Keep only a soft top highlight; lower blend is handled by mask */
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.9) 0%,
                rgba(255, 255, 255, 0.22) 10%,
                rgba(255, 255, 255, 0) 18%);

        pointer-events: none;
        /* Crucial so users can still interact with the carousel */
        z-index: 2;
        /* Ensures it sits on top of the images */
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-slide {
        width: 500%;
        transform: translateX(0);
        animation: slideMobile 35s infinite linear normal both;
    }

    @keyframes slideMobile {

        /* 0% to 14.2857% = 5 seconds (Image 1 Hold) */
        0%,
        14.2857% {
            transform: translateX(0);
        }

        /* 14.2857% to 20% = 2 seconds (Slide to Image 2) */
        14.2857%,
        20% {
            transform: translateX(-100%);
        }

        /* 20% to 34.2857% = 5 seconds (Image 2 Hold) */
        20%,
        34.2857% {
            transform: translateX(-100%);
        }

        /* 34.2857% to 40% = 2 seconds (Slide to Image 3) */
        34.2857%,
        40% {
            transform: translateX(-200%);
        }

        /* 40% to 54.2857% = 5 seconds (Image 3 Hold) */
        40%,
        54.2857% {
            transform: translateX(-200%);
        }

        /* 54.2857% to 60% = 2 seconds (Slide to Image 4) */
        54.2857%,
        60% {
            transform: translateX(-300%);
        }

        /* 60% to 74.2857% = 5 seconds (Image 4 Hold) */
        60%,
        74.2857% {
            transform: translateX(-300%);
        }

        /* 74.2857% to 80% = 2 seconds (Slide to Clone) */
        74.2857%,
        80% {
            transform: translateX(-400%);
        }

        /* 80% to 94.2857% = 5 seconds (Clone Hold - identical to first image!) */
        80%,
        94.2857% {
            transform: translateX(-400%);
        }

        /* Hold clone until the final frame, then jump instantly */
        99.999% {
            transform: translateX(-400%);
        }

        100% {
            transform: translateX(0);
        }
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav {
        height: 4rem;
        padding: 8px 15px;
    }

    #pr_name_1 {
        font-size: 1.2rem;
    }

    #pr_discription_1 {
        font-size: 0.85rem;
    }

    .login-btn {
        padding: 9px 18px;
        font-size: 0.95rem;
    }
}

.discription {
    background-color: #57B9FF;
    height: 12rem;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar {
    /* Main nav row: second line of header stack */
    background-color: #ffffff;
    height: 3rem;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    /* Keeps the 3 main sections spread out */
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

/* [Behavior] Keep center navigation links aligned */
.nav-links {
    /* Later declaration intentionally refines alignment and vertical centering */
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    /* [Behavior] Center the middle links cluster */
    justify-content: center;
}

/* [Section] Right-side navigation actions container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
    /* [Behavior] Push role buttons to the far right */
}

/* [Note] Ensure search placeholder remains readable */
.search-bar input::placeholder {
    color: #555 !important;
    /* [Behavior] Darker gray improves placeholder contrast */
    opacity: 1;
}

.main-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    /* [Behavior] Vertically center link items */
    justify-content: center;
    /* [Behavior] Center the full links group */
    gap: 20px;
    /* [Behavior] Space between Home, About, Services */
    list-style: none;
    margin: 0;
    padding: 0;
    height: 2.5rem;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-action {
    display: flex;
    align-items: center;
}

.nav-links li,
.nav-group {
    display: flex;
    align-items: center;
    height: 100%;
    /* Makes sure they all take up the same height */
}

/* 3. The Links themselves */
.nav-item,
.main-link,
.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    padding: 10px 0;
    /* Consistent vertical padding */
}

/* The box itself */

/* 1. The Parent Container */
.nav-group {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    /* Creates a small padding "bridge" */
}

/* 2. The Yellow Menu */
.tertiary-menu {
    position: absolute;
    top: 90%;
    /* Moves it slightly closer to the link */
    left: 0;

    display: flex;
    flex-direction: column;
    background-color: #fff9c4;
    min-width: 180px;
    padding: 10px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);

    /* State: Hidden */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    z-index: 9999;
}

/* THE MAGIC FIX: The Invisible Bridge */
/* This invisible box fills the gap so the mouse stays "on" the menu */
.tertiary-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    /* Reaches up to touch the main link */
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
    /* You can't see it, but it's there! */
}

/* 3. The Hover Trigger */
.nav-group:hover .tertiary-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    top: 100%;
    /* Slides smoothly into position */
}

/* 4. Menu Links */
.tertiary-menu a {
    color: #000000 !important;
    text-decoration: none;
    padding: 10px;
    display: block;
    width: 100%;
}

.tertiary-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.nav-action .judge-btn,
.nav-action .lawyer-btn {
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-left: 15px;
    font-size: 1.15rem;
    font-weight: 700;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.judge-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.lawyer-btn {
    background: linear-gradient(135deg, #7B68EE 0%, #6A5ACD 100%);
}

.judge-btn:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2A5A99 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(74, 144, 226, 0.4);
}

.lawyer-btn:hover {
    background: linear-gradient(135deg, #6A5ACD 0%, #5A4AB5 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(123, 104, 238, 0.4);
}

/* [Behavior] On scroll, lock navbar to fixed blue for clear sticky state */
.nav-scrolled {
    background-color: #05090a !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.4s ease-in-out;
}

/* 2. Change Link Colors to White on Scroll */
.nav-scrolled .nav-links a,
.nav-scrolled .logo,
.nav-scrolled .nav-item,
.nav-scrolled .nav-link,
.nav-scrolled .main-link,
.nav-scrolled .nav-links .lang-btn {
    color: #FFFFFF !important;
}

/* 3. Adjust Buttons so they still pop against Blue */
.nav-scrolled .judge-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    /* White gradient buttons on Blue background */
    color: #4A90E2;
    /* Blue text on the buttons */
    border: 2px solid #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.nav-scrolled .lawyer-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    /* White gradient buttons on Blue background */
    color: #7B68EE;
    /* Purple text on the buttons */
    border: 2px solid #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.nav-scrolled .judge-btn:hover {
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.nav-scrolled .lawyer-btn:hover {
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.nav-scrolled .lang-btn {
    background: #ffffff;
    /* [Behavior] Keep strong contrast on blue navbar */
    color: #007BFF;
    border: 1px solid #ffffff;
}

/* 4. Keep dropdown menu text black when scrolled */
.nav-scrolled .tertiary-menu a {
    color: #000000 !important;
}

/* 1. The Container (The gray box) */
.search-bar {
    display: none;
    align-items: center;
    width: 100%;
    /* Takes up all space allowed by nav-actions */
    max-width: 400px;
    /* Set this to how wide you want the bar to be */
    background: #f1f3f4;
    border-radius: 20px;
    padding: 8px 15px;
    /* Vertical and Horizontal internal spacing */
}

/* 2. THE FIX: The Input itself */
.search-bar input {
    width: 100%;
    /* Makes the input fill the container */
    border: none;
    /* Removes the default ugly border */
    background: transparent;
    /* Makes it blend into the gray background */
    outline: none;
    /* Removes the blue glow when clicked */

    /* 3. The Placeholder alignment */
    font-size: 0.95rem;
    /* Adjust to match your navbar text size */
    color: #333;
    /* Color of the text you type */
}

/* 4. Styling the placeholder specifically */
.search-bar input::placeholder {
    color: #757575;
    /* Modern gray color */
    font-family: inherit;
    /* Ensures it matches your site font */
    vertical-align: middle;
}

.search-container input::placeholder {
    color: #888;
    /* Makes it a lighter gray */
    font-style: italic;
    /* Makes it stand out as a hint */
    font-size: 0.9rem;
    /* Slightly smaller than the typing text */
    opacity: 1;
    /* Ensures the color isn't faded by default */

}

/* When the user clicks the search box, fade the placeholder */
.search-container input:focus::placeholder {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.nav-actions {
    display: flex;
    flex-grow: 1;
    /* This makes it stretch to fill the navbar */
    justify-content: flex-end;
    /* Keeps buttons on the right */
    align-items: center;
    gap: 20px;
    margin-left: 40px;
    /* Margin to keep it away from 'Services' */
}

.search-container {
    display: flex;
    flex-grow: 1;
    /* This makes it stretch to fill the navbar */
    justify-content: flex-end;
    /* Keeps the search bar on the right */
    align-items: center;
    flex-grow: 0.8;
    /* Tells the search bar to take 80% of the action area */
    max-width: 500px;
    /* Set this higher (e.g., 500px) so it has room to grow */
    background: #f1f3f4;
    border-radius: 20px;
    padding: 5px 15px;
}

.search-container input {
    width: 100%;
    /* Makes the input field fill the whole gray bar */
    border: none;
    background: transparent;
    outline: none;
}

/* Apply these styles to BOTH the Language and Login buttons */
.lang-btn,
.login-btn {
    /* Colors: Matching Gradient */
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;

    /* Sizing & Shape (Identical for both) */
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    height: 55px;
    /* Fixed height ensures perfect alignment */

    /* Typography */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    /* Interaction */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.1);
}

/* Style lang-btn when it's in nav-links */
.nav-links .lang-btn {
    background: transparent;
    color: #000000;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    height: auto;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: none;
}

.nav-links .lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

/* Hover effects for both */
.lang-btn:hover,
.login-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.2);
}

/* Aligning the parent container */
.nav-actions {
    display: flex;
    align-items: center;
    /* This is the secret for vertical alignment */
    gap: 15px;
}

.login-btn {
    /* Colors: Deep Blue to match your legal/tech theme */
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;

    /* Sizing & Shape */
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    /* Fully rounded "pill" shape */

    /* Typography */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;

    /* Interaction & Animation */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);

    /* Keeps it aligned in your nav-actions flexbox */
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

/* Hover Effect: It grows and glows slightly */
.login-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    /* Lifts up */
    box-shadow: 0 7px 14px rgba(0, 123, 255, 0.3);
}

/* Active Effect: Looks like it's being pressed */
.login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2);
}

.sec-box {

    height: 20rem;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sec-box-1 {
    background-color: #fff;
    height: 20rem;
    width: calc(100% - 4rem);
    /* Adjusts for the 2rem margin on both sides */
    border-radius: 10px;
    display: flex;
    justify-content: center;
    margin: 2rem;

    /* The Base Shadow */
    box-shadow: 0 4px 10px rgba(146, 146, 232, 0.15);

    /* This makes the hover look smooth, not "snappy" */
    transition: all 0.3s ease;
}

/* THE FIX: This must be a separate block */
.sec-box-1:hover {
    /* Stronger violet shadow and a slight lift */
    box-shadow: 0 12px 24px rgba(146, 146, 232, 0.3);
    transform: translateY(-5px);
    cursor: pointer;
}

#sec-1 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    border-radius: 3rem;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sec-2 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    border-radius: 3rem;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sec-3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    border-radius: 3rem;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

/* The Main Wrapper */
.hero-split-container {
    display: flex;
    flex-direction: row;
    /* Side-by-side layout */
    align-items: center;
    /* Vertically centers video and text */
    justify-content: center;
    width: 100%;
    min-height: 85vh;
    /* Takes up most of the screen height */
    padding: 4rem 8%;
    /* Large side padding for a "wide" feel */
    gap: 4rem;
    /* Space between video and text */

    /* Use a rich gradient to give the section depth */
    background: linear-gradient(145deg, #57B9FF 0%, #2c8ed6 100%);

    /* Add a very subtle "inner glow" to make the section feel 3D */
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.05);

    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    /* Ensures nothing "pokes out" of the rounded corners */
    overflow: hidden;
    position: relative;
    border-radius: 1rem;
    margin-top: 4rem;
}

/* 1. The Left Side (Video) */
.video-section {
    flex: 1.2;
    /* Gives the video slightly more room than text */
    display: flex;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    /* Prevents video from becoming too massive */
    padding-bottom: 56.25%;
    /* Forces 16:9 Aspect Ratio */
    height: 0;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    background: #000;
    /* Background for while video loads */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
    /* Matches the wrapper */
}

/* 2. The Right Side (Description) */
.discription-section {
    flex: 0.8;
    /* Slightly narrower than the video side */
    background-color: #fff;
    color: #333;
    text-align: left;
    border-radius: 5rem;
    height: 20rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    /* Adds a subtle shadow for depth */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);


}

#main_discription h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;

    .discription-section h2 {
        color: #333;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

#main_discription p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    /* Softer white for easier reading */
}

/* 3. Mobile Responsiveness (Crucial) */
@media (max-width: 1024px) {
    .hero-split-container {
        flex-direction: column;
        /* Stacks vertically on tablets/phones */
        padding: 4rem 5%;
        text-align: center;
        gap: 2rem;
    }

    .discription-section {
        text-align: center;
    }
}

/* =========================================
   NP-FOOTER: The Main Container
   ========================================= */
.np-footer {
    width: 100%;
    margin-top: 4rem;
    /* Adds space above the footer */
    font-family: 'Open Sans', sans-serif;
    /* Recommended for readability */
}

/* =========================================
   1. PRIMARY (TOP) SECTION: Adapting Brown Area
   ========================================= */
.footer-primary-links {
    background-color: #4B0082;
    /* Our Deep Scrolled Violet */
    padding: 3rem 8%;
    color: #ffffff;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    /* Important for responsiveness */
}

.footer-col {
    flex: 1;
    min-width: 200px;
    /* Prevents column squishing */
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    /* Space for the dot */
}

/* Adding the dot/bullet from the image via CSS */
.footer-col li::before {
    content: "•";
    color: rgba(255, 255, 255, 0.6);
    /* Soft white dot */
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.footer-col a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    opacity: 0.9;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 4th Column (App Download) specific style */
.footer-app-download .app-card {
    background-color: rgba(255, 255, 255, 0.1);
    /* Slight transparency */
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.footer-logo {
    height: 40px;
    /* Match the Supreme Court logo scale */
}

.download-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: bold;
}

.app-stores {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0.5rem;
}

.app-stores img {
    height: 35px;
    /* Proportional app store icons */
    transition: transform 0.2s ease;
}

.app-stores img:hover {
    transform: translateY(-3px);
}

/* =========================================
   2. SECONDARY (BOTTOM) SECTION: Adapting Black Area
   ========================================= */
.footer-secondary-info {
    background-color: #ffffff;
    /* We use white instead of black */
    color: #4B0082;
    /* Violet text for contrast */
    padding: 2rem 8%;
    text-align: center;
    border-top: 1px solid #ddd;
}

.policy-links {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.policy-links a {
    color: #4B0082;
    text-decoration: none;
    margin: 0 10px;
}

.copyright-text p {
    font-size: 0.9rem;
    margin: 0.3rem 0;
    opacity: 0.8;
}

/* Partnership Logos section */
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.partner-logos img {
    height: 30px;
    /* Scaled down for the partner area */
    opacity: 0.8;
}

.mherm-badge {
    background-color: #57B9FF;
    /* Brand Blue */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
}

/* ==========================================================================
   LOGIN / PORTAL SELECTION STYLES
   ========================================================================== */

.portal-selection-container {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfdfd;
    /* Clean white background to contrast the footer */
    padding: 3rem 5%;
}

.selection-box {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.selection-box h1 {
    color: #4B0082;
    /* Your Deep Violet */
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.selection-box p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3.5rem;
}

/* Flexbox for Portal Buttons */
.portal-actions {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.portal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Icons styling (If you're using FontAwesome) */
.icon-circle {
    width: 80px;
    height: 80px;
    background: #f0f0ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #4B0082;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* The Portal Buttons */
.btn-portal {
    width: 260px;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px rgba(146, 146, 232, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.judge-btn {
    background-color: #4B0082;
    /* Violet */
    color: white;
}

.lawyer-btn {
    background-color: #57B9FF;
    /* Brand Blue */
    color: white;
}

/* Interactive Hover Effects */
.btn-portal:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(146, 146, 232, 0.4);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .portal-actions {
        gap: 2rem;
    }

    .selection-box h1 {
        font-size: 2rem;
    }
}

/* --- Portal Section Colors --- */
.portal-selection-container {
    padding: 100px 8%;
    /* Extra top padding so it doesn't hide under Nav */
    background: #f4f7f6;
    min-height: 80vh;
}

.judge-btn {
    background: #2E3192;
    color: white;
}

.lawyer-btn {
    background: #57B9FF;
    color: white;
}

/* --- Footer Colors (The "Decision") --- */
.np-footer {
    background: #ffffff;
}

.footer-primary-links {
    background-color: #1a1c4d;
    /* Darker Midnight Indigo */
    color: #e0e0e0;
    padding: 4rem 8%;
}

.footer-secondary-info {
    background: #f8f9fa;
    color: #1a1c4d;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #ddd;
}

.footer-col a {
    color: #b0b0b0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #57B9FF;
}

.app-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.services-section {
    margin-top: -3rem;
    padding: 1.5rem 1rem 2.5rem;
    background: linear-gradient(180deg, rgba(87, 185, 255, 0.08) 0%, rgba(255, 255, 255, 0.8) 100%);
    position: relative;
    z-index: 8;
}

.services-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.section-topic-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.section-topic-btn {
    border: 1px solid rgba(57, 120, 194, 0.35);
    background: #ffffff;
    color: #133d6d;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.2s ease;
}

.section-topic-btn:hover {
    transform: translateY(-2px);
}

.section-topic-btn.is-active {
    background: #1f5fa5;
    color: #ffffff;
    border-color: #1f5fa5;
}

.section-content-panel {
    margin-top: 1.1rem;
    background: #ffffff;
    border: 1px solid rgba(57, 120, 194, 0.28);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 18px rgba(24, 73, 122, 0.1);
}

.section-content-title {
    color: #123a6b;
    font-size: 1.06rem;
    margin-bottom: 0.45rem;
}

.section-content-text {
    color: #2e3f58;
    line-height: 1.65;
    font-size: 0.95rem;
}

.services-heading {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #0d1b3d;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: serviceFadeUp 0.7s ease both;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.service-card {
    background: linear-gradient(145deg, #ffffff 0%, #f5fbff 100%);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 10px 26px rgba(24, 73, 122, 0.12);
    transform: translateY(14px);
    opacity: 0;
    animation: serviceFadeUp 0.6s ease forwards;
    transition: transform 0.28s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:nth-child(2) {
    animation-delay: 0.12s;
}

.service-card:nth-child(3) {
    animation-delay: 0.24s;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(66, 153, 225, 0.55);
    box-shadow: 0 16px 34px rgba(66, 153, 225, 0.35);
}

.service-title {
    font-size: 1.2rem;
    color: #123a6b;
    margin-bottom: 0.6rem;
}

.service-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2e3f58;
}

@keyframes serviceFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

@media (min-width: 700px) {
    .services-section {
        margin-top: -4rem;
        padding: 2rem 1.25rem 3rem;
    }

    .section-topic-controls {
        margin-bottom: 1.25rem;
    }

    .section-topic-btn {
        font-size: 0.94rem;
        padding: 0.58rem 1rem;
    }

    .section-content-panel {
        padding: 1.2rem 1.25rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .services-heading {
        font-size: 2.3rem;
        margin-bottom: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

.app-description-section {
    padding: 0 1rem 3rem;
}

.app-description-shell {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(160deg, #ffffff 0%, #eef7ff 100%);
    border: 1px solid rgba(58, 116, 184, 0.2);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 12px 26px rgba(21, 66, 109, 0.12);
}

.app-description-heading {
    font-size: 1.7rem;
    color: #0d1b3d;
    margin-bottom: 0.75rem;
}

.app-description-text {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #2a3d57;
    margin-bottom: 0.85rem;
}

.app-description-text:last-child {
    margin-bottom: 0;
}

@media (min-width: 700px) {
    .app-description-section {
        padding: 0 1.25rem 3.5rem;
    }

    .app-description-shell {
        padding: 1.8rem 2rem;
    }

    .app-description-heading {
        font-size: 2rem;
    }

    .app-description-text {
        font-size: 1.03rem;
    }
}

.about-us-section {
    padding: 0 1rem 3.25rem;
}

.about-us-shell {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(150deg, #f6fbff 0%, #ffffff 55%, #f0f7ff 100%);
    border: 1px solid rgba(44, 104, 176, 0.22);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 14px 28px rgba(23, 74, 126, 0.14);
}

.about-us-heading {
    font-size: 1.7rem;
    color: #0c2246;
    margin-bottom: 0.6rem;
}

.about-us-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #29405f;
    margin-bottom: 1rem;
}

.about-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.about-us-card {
    background: #ffffff;
    border: 1px solid rgba(70, 138, 214, 0.2);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 18px rgba(26, 87, 147, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-us-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(51, 129, 216, 0.24);
}

.about-us-card-title {
    font-size: 1.08rem;
    color: #143a6c;
    margin-bottom: 0.45rem;
}

.about-us-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #314b6a;
}

@media (min-width: 700px) {
    .about-us-section {
        padding: 0 1.25rem 3.7rem;
    }

    .about-us-shell {
        padding: 1.8rem 2rem;
    }

    .about-us-heading {
        font-size: 2rem;
    }

    .about-us-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

.mentor-section {
    padding: 0 1rem 3.25rem;
}

.mentor-shell {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff 0%, #edf7ff 100%);
    border: 1px solid rgba(44, 104, 176, 0.22);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 14px 28px rgba(23, 74, 126, 0.14);
}

.mentor-heading {
    font-size: 1.7rem;
    color: #0c2246;
    margin-bottom: 1rem;
    text-align: center;
}

.mentor-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    align-items: center;
}

.mentor-photo-wrap {
    margin: 0;
    display: flex;
    justify-content: center;
}

.mentor-photo {
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 26px rgba(34, 95, 161, 0.26);
}

.mentor-content {
    background: #ffffff;
    border: 1px solid rgba(70, 138, 214, 0.2);
    border-radius: 14px;
    padding: 1rem;
}

.mentor-name {
    font-size: 1.2rem;
    color: #143a6c;
    margin-bottom: 0.25rem;
}

.mentor-role {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1f5fa5;
    margin-bottom: 0.8rem;
}

.mentor-quote {
    margin: 0 0 0.95rem;
    padding: 0.75rem 0.95rem;
    border-left: 4px solid #2a78c8;
    background: linear-gradient(120deg, rgba(50, 126, 210, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 0 10px 10px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1f3f66;
}

.mentor-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #314b6a;
    margin-bottom: 0.7rem;
}

.mentor-text:last-child {
    margin-bottom: 0;
}

@media (min-width: 700px) {
    .mentor-section {
        padding: 0 1.25rem 3.7rem;
    }

    .mentor-shell {
        padding: 1.8rem 2rem;
    }

    .mentor-heading {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .mentor-layout {
        grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.55fr);
        gap: 1.4rem;
    }

    .mentor-photo {
        width: 16.5rem;
        height: 16.5rem;
    }

    .mentor-content {
        padding: 1.25rem;
    }
}

/* Navbar portal controls: modern remote-style buttons */
.navbar .nav-actions .judge-btn,
.navbar .nav-actions .lawyer-btn {
    width: auto;
    height: 2.35rem;
    min-width: 6.4rem;
    padding: 0 1rem;
    margin-left: 0;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 5px 12px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

/* Keep remote-style shape in scrolled state too */
.navbar.nav-scrolled .nav-actions .judge-btn,
.navbar.nav-scrolled .nav-actions .lawyer-btn {
    border-radius: 0.9rem;
}

/* Keep logo/nav/hero stack visually seamless with no spacer line */
.navbar {
    margin: 0;
    border: 0;
    box-shadow: none;
}

.navbar+.hero-carousel {
    margin-top: -1px;
}