:root {
    --navy: #003366;
    --navy-dark: #002244;
    --navy-light: #004488;
    --gold: #C5A059;
    --transition: all 0.3s ease;
}

body { font-family: 'Poppins', sans-serif; overflow-x: hidden; }

/* Global Utilities */
.bg-navy { background-color: var(--navy); }
.bg-navy-dark { background-color: var(--navy-dark); }
.bg-navy-light { background-color: var(--navy-light); }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }
.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }
.section-padding { padding: 100px 0; }
.transition { transition: var(--transition); }

/* Buttons */
.btn-navy { background: var(--navy); color: white; border: none; }
.btn-navy:hover { background: var(--gold); color: white; transform: translateY(-3px); }
.btn-gold { background: var(--gold); border: none; }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: white; }

/* Navbar */
.brand-logo { width: 45px; height: 45px; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.nav-link { font-weight: 600; font-size: 14px; margin: 0 10px; color: var(--navy) !important; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--gold) !important; }

/* Hero Slider */
.hero-slider, .carousel-item { height: 80vh; min-height: 500px; background-size: cover; background-position: center; }
.hero-footer-cards { position: absolute; bottom: 0; width: 100%; z-index: 10; }
.card-feature { cursor: pointer; transition: var(--transition); }
.card-feature:hover { background: var(--gold) !important; }

/* Animations */
.animate-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.active .animate-up { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }

/* About Section Divider & Image Stack */
.title-divider { width: 100px; border-top: 1px solid #ddd; position: relative; margin-top: 25px; }
.title-divider i { position: absolute; top: -12px; left: 20px; background: #fff; padding: 0 10px; }

.image-stack { padding-bottom: 60px; }
.gavel-box { position: absolute; bottom: -30px; right: 0; width: 50%; z-index: 2; border: 1px solid #eee; }

/* Responsive */
@media (max-width: 991px) {
    .section-padding { padding: 60px 0; }
    .hero-slider, .carousel-item { height: 80vh; }
}

/* CTA Help Section Styles */
.cta-help-section {
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80'); /* Replace with gavel/laptop image if available */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect */
    position: relative;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 34, 68, 0.85); /* Dark Navy Overlay */
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.cta-help-section h2 {
    letter-spacing: 1px;
    font-size: 32px;
}

.cta-help-section p {
    font-size: 16px;
    line-height: 1.8;
}

.transition-all {
    transition: all 0.3s ease-in-out;
}

.transition-all:hover {
    background-color: var(--gold) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-help-section {
        background-attachment: scroll; /* Better performance on mobile */
    }
    .cta-help-section h2 {
        font-size: 24px;
    }
}

/* Practice Areas Specifics */
.practice-box {
    background-color: #fff;
    border-color: #f0f0f0 !important;
    position: relative;
    overflow: hidden;
}

.practice-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--gold) !important;
    transform: translateY(-5px);
}

.icon-square {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.gold-hr {
    width: 40px;
    height: 2px;
    background-color: var(--gold);
    border: none;
    opacity: 1;
    margin: 10px 0;
}

/* Practice Card Typography */
.practice-box h5 {
    font-size: 18px;
    letter-spacing: 0.5px;
}

.practice-box p {
    font-size: 13px;
    line-height: 1.6;
}

/* Adjustments for the header button link */
.btn-outline-navy {
    border: 1px solid var(--navy);
    color: var(--navy);
    font-size: 12px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-outline-navy:hover {
    background-color: var(--navy);
    color: #fff;
}



/* Results Section Styling */
.stats-visual-box {
    /* High quality Lady Justice background */
    background-image: url('https://images.unsplash.com/photo-1589216532372-1c2a367900d9?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

.stats-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark Navy Gradient to make text pop */
    background: linear-gradient(rgba(0, 15, 30, 0.92), rgba(0, 15, 30, 0.92));
    z-index: 1;
}

.border-stats {
    /* Subtle grid lines seen in your image */
    border: 1px solid rgba(255, 255, 255, 0.08); 
    transition: all 0.4s ease;
}

.border-stats:hover {
    background: rgba(197, 160, 89, 0.05); /* Slight gold glow on hover */
}

.gold-hr-short {
    width: 30px;
    height: 2px;
    background-color: #C5A059;
    border: none;
    opacity: 1;
    margin: 15px 0;
}

/* Counter Font Styling */
.counter {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
}

.z-index-2 {
    z-index: 2;
}

/* Mobile Fix */
@media (max-width: 991px) {
    .stats-visual-box {
        min-height: 400px;
    }
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Background for the Text Side */
.bg-light-custom {
    background-color: #f9f9f9; /* Subtle light gray */
    border-right: 1px solid #eee; /* Optional: very thin separator */
}

/* Ensure the wrapper has enough vertical breathing room */
.results-text-wrapper {
    position: relative;
    z-index: 2;
}

/* Enhancing the Heading contrast against the light bg */
.bg-light-custom h2 {
    color: #003366; /* Ensuring deep navy is sharp */
    letter-spacing: 1px;
}

/* Responsive adjustment: remove border on mobile stack */
@media (max-width: 991px) {
    .bg-light-custom {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* Team Section Styles */
.team-card {
    margin-bottom: 30px;
    transition: var(--transition);
}

.team-img-container {
    overflow: hidden;
    background-color: #f8f9fa;
}

.team-img-container img {
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.team-card:hover .team-img-container img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.team-info-box {
    margin-top: -20px; /* Overlap with image */
    position: relative;
    z-index: 5;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.team-name-tag {
    background: var(--navy);
    padding: 15px 10px;
    /* Angled Clip Path for the same-to-same look */
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0% 100%);
}

.text-gold-light {
    color: #eec278; /* Brighter gold for better readability on navy */
    font-size: 0.9em;
}

.team-social a {
    color: #888;
    margin: 0 8px;
    font-size: 13px;
    transition: var(--transition);
}

.team-social a:hover {
    color: var(--gold);
}

/* Hover effect on entire card */
.team-card:hover .team-name-tag {
    background: var(--gold);
}
.team-card:hover .team-name-tag h6,
.team-card:hover .text-gold-light {
    color: white !important;
}

/* Team Section Styles */
.team-card {
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.team-img-container {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.team-img-container img {
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(100%); /* Same-to-same starting state */
}

/* Description Overlay */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.9); /* Brand Navy with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    transform: translateY(100%); /* Slides from bottom */
    z-index: 2;
}

.italic { font-style: italic; }

/* Info Box & Angled Tag */
.team-info-box {
    margin-top: -30px;
    position: relative;
    z-index: 10;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.team-name-tag {
    background: #003366;
    padding: 18px 10px;
    transition: all 0.4s ease;
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0% 100%); /* Same-to-same angle */
}

.text-gold-light {
    color: #eec278;
    font-size: 0.85em;
}

/* Social Media Bar */
.team-social a {
    color: #888;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

/* ==========================================
   HOVER EFFECTS (Same-to-Same)
   ========================================== */

.team-card:hover .team-img-container img {
    transform: scale(1.1);
    filter: grayscale(0%); /* Returns to color on hover */
}

.team-card:hover .team-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.team-card:hover .team-name-tag {
    background: #C5A059; /* Turns Gold on hover */
}

.team-card:hover .team-name-tag h6,
.team-card:hover .text-gold-light {
    color: white !important;
}

.team-social a:hover {
    color: #C5A059;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .team-info-box { width: 95%; margin-top: -20px; }
    .team-name-tag { padding: 15px 5px; }
}

@media (max-width: 767px) {
    .team-overlay { transform: translateY(0); opacity: 0; } /* Simpler fade on mobile */
    .team-card:hover .team-overlay { transform: none; }
}

 /* Testimonials Background and Overlay */
.testimonials-section {
    background-image: url('../img/testimonial-bg.jpg'); /* Use the judge/gavel background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.testimonials-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88); /* Deep dark background */
    z-index: 1;
}

/* Bordered Box */
.testimonial-border-box {
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 5;
}

/* Gold Quote Icon - Pinned to Top Center */
.quote-icon-box {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #C5A059; /* Brand Gold */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    z-index: 10;
}

/* Content Text Styling */
.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* Author Avatar Fix */
.author-img {
    width: 60px !important; /* Prevents stretching */
    height: 60px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

/* Bottom Center Navigation */
.slider-nav-wrapper {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 20;
}

.customPrevBtn, .customNextBtn {
    background: #1a1a1a;
    color: #888;
    padding: 8px 15px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 12px;
}

.customPrevBtn:hover, .customNextBtn:hover {
    background: #C5A059;
    color: white;
}/* Fix for stacking items */
#legal-testimonial-slider .item {
    display: block;
    width: 100%;
}

/* Ensure the author image is centered and not broken */
.author-img {
    width: 60px !important; 
    height: 60px !important;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block !important; /* Fixes centering */
}

/* Center the author info row */
.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Color Palette */
.text-navy { color: #002d5b; }
.text-gold, .text-warning { color: #C5A059 !important; }
.bg-warning { background-color: #C5A059 !important; }

/* Custom Spacing & Hover */
.ls-2 { letter-spacing: 2px; }
.italic { font-style: italic; }
.x-small { font-size: 11px; }

.news-list-hover { transition: 0.3s ease; }
.news-list-hover:hover {
    border-color: #C5A059 !important;
    background: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Ensure Owl Carousel items don't stack */
#legal-testimonial-slider .item {
    display: block;
    width: 100%;
}

.footer-section {
    background-color: #1a1a1a !important; /* Matches reference image deep gray */
}

.bg-black {
    background-color: #111 !important;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
    font-size: 13px;
}

.footer-links a:hover {
    color: #C5A059;
    padding-left: 5px;
}

.scroll-to-top {
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix for footer inputs */
.footer-section .form-control::placeholder {
    color: #666;
    font-size: 13px;
}/* 1. Image Responsive Fix: Taki cards ke andar photos stretch na hon */
.team-img-container img, .image-stack img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 2. Testimonial Text centering fix for Owl Carousel */
#legal-testimonial-slider .item {
    padding: 0 15px; /* Mobile pe text side se touch na ho */
}

/* 3. Button Click Effect: Bootstrap 5 buttons pe focus outline hatane ke liye */
.btn:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* 4. Overlay Content Alignment: Overlay ke andar text ko center karne ke liye */
.overlay-content {
    width: 100%;
    text-align: center;
}



/* ==========================================
   ABOUT PAGE HERO (Same-to-Same Design)
   ========================================== */

.about-hero-section {
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    min-height: 250px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Darker for better text visibility */
    z-index: 1;
}

/* Breadcrumb logic to match your image */
.breadcrumb-item + .breadcrumb-item::before {
    content: "" !important; /* Standard slash hata diya */
}

.breadcrumb-item a {
    transition: 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fff !important;
}

/* Utilities used in this section */
.text-gold {
    color: #C5A059 !important;
}

.ls-1 {
    letter-spacing: 2px;
}

.z-index-2 {
    position: relative;
    z-index: 2;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .about-hero-section {
        min-height: 180px;
        background-attachment: scroll; /* Mobile smooth karne ke liye */
        text-align: center;
    }
    
    .breadcrumb {
        justify-content: center;
        margin-top: 10px;
    }
}

.text-gold { color: #c5a059 !important; }
.bg-gold { background-color: #c5a059 !important; }
.border-gold { border-color: #c5a059 !important; }
.btn-navy { background-color: #002147; color: white; transition: 0.3s; }
.btn-navy:hover { background-color: #c5a059; color: white; }
.italic-text { font-style: italic; }

/* CTA Section Custom Styles */
.btn-navy-blue {
    background-color: #0d47a1; /* Sahi navy blue shade as per image */
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-navy-blue:hover {
    background-color: #c5a059; /* Gold color on hover */
    color: white;
    transform: translateY(-3px);
}

.ls-1 {
    letter-spacing: 1px;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Background parallax effect smooth karne ke liye */
.cta-help-section {
    overflow: hidden;
}



.transition-hover {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent !important;
}

.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 3px solid #c5a059 !important;
}

.text-gold { color: #c5a059 !important; }
.text-navy { color: #002147; }
.ls-1 { letter-spacing: 1px; }

/* Color Palette */
:root {
    --gold: #c5a059;
    --navy: #002147;
}

/* Section Header Improvement */
.divider-custom {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin-top: 15px;
}

/* Practice Box Improvements */
.practice-box {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.practice-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.practice-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--navy);
    z-index: -1;
    transition: all 0.4s ease;
}

.practice-box:hover::before {
    height: 100%;
}

.practice-box:hover .text-navy, 
.practice-box:hover .text-muted, 
.practice-box:hover .practice-content h4 {
    color: #ffffff !important;
}

/* Big Ghost Number */
.bg-number {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    z-index: -1;
    transition: all 0.4s ease;
}

.practice-box:hover .bg-number {
    color: rgba(255, 255, 255, 0.05);
    transform: scale(1.1);
}

/* Discovery Link */
.btn-link-gold {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.practice-box:hover .btn-link-gold {
    color: #fff;
}.bg-navy { background-color: #002147; }
.text-gold { color: #c5a059 !important; }
.bg-gold { background-color: #c5a059 !important; }
.border-gold { border-color: #c5a059 !important; }

.icon-box-gold {
    background: #c5a059;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 4px;
}

.ls-1 { letter-spacing: 1px; }

.lh-lg { line-height: 1.8; }

/* Breadcrumb Styling */
.breadcrumb-item + .breadcrumb-item::before {
    content: "" !important;
    padding: 0 !important;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    border: 2px solid #fff;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item {
    display: block; /* Zaroori hai anchor tag ke liye */
    overflow: hidden;
    position: relative;
    border: 3px solid #fff; /* Clean gap as per SS */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Hover Overlay Design */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(197, 160, 89, 0.9); /* Gold Color Shade as per Image 7 */
    opacity: 0;
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Slide-up content on hover */
.overlay-content {
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.ls-1 { letter-spacing: 1px; }
.object-fit-cover { object-fit: cover; }

/* News Card Main Styling */
.news-card {
    border: 1px solid #f0f0f0;
    background: #fff;
    transition: all 0.4s ease;
    height: 100%;
    margin-bottom: 30px;
}

.news-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(-10px);
}

/* Image Wrapper & Date Tag (As per Image 31779f) */
.news-img-wrapper {
    position: relative;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.1);
}

.date-tag {
    background: #c5a059; /* Gold Color */
    color: #fff;
    padding: 10px 15px;
    position: absolute;
    bottom: 0;
    left: 20px;
    z-index: 5;
    text-align: center;
    font-weight: 700;
    min-width: 60px;
}

.date-tag span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    margin-top: -2px;
}

/* Content & Meta Info */
.news-content {
    padding: 25px 20px;
}

.meta-info {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.meta-info i {
    color: #c5a059;
    margin-right: 5px;
}

.news-title {
    font-size: 19px;
    font-weight: 700;
    color: #002147; /* Navy Color */
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: 0.3s;
}

.news-title:hover {
    color: #c5a059;
}

/* Read More Button Styling */
.read-more-btn {
    font-size: 13px;
    font-weight: 800;
    color: #002147;
    text-decoration: none;
    border-bottom: 2px solid #c5a059;
    padding-bottom: 3px;
    display: inline-block;
    letter-spacing: 1px;
    transition: 0.3s;
}

.read-more-btn:hover {
    color: #c5a059;
    letter-spacing: 1.5px;
}

/* Contact Page Custom Styles */
.border-light-subtle {
    border-color: #e9ecef !important;
}

.contact-form .form-control:focus {
    border-color: #c5a059;
    box-shadow: none;
    background-color: #f8f9fa;
}

.map-wrapper {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.bg-navy { background-color: #002147 !important; }
.text-navy { color: #002147 !important; }
.text-gold { color: #c5a059 !important; }
.border-gold { border-color: #c5a059 !important; }

/* Scroll to top button (Matches Image 3276a0 bottom right) */
.scroll-to-top {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #c5a059;
    color: white;
}