:root {
    --law-practice-tx-dark: #002e2c;
    --law-practice-tx-gold: #c69533;
    --law-practice-tx-body: #555555;
}
*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: "poppins", sans-serif;
  box-sizing: border-box;
}
.law-practice-tx-section {
    padding: 100px 0;
    background-color: #fff;
    font-family: 'poppins', sans-serif;
    overflow: hidden;
    padding-top: 200px;
}

.law-practice-tx-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* --- Signature Typography --- */
.law-practice-tx-main-title {
    font-size: clamp(40px, 8vw, 100px);
    color: var(--law-practice-tx-dark);
    line-height: 0.9;
    margin-bottom: 200px;
    text-transform: uppercase;
    position: relative;
    font-weight: 400;
}
.law-practice-tx-top{
  position: relative;
  left: 370px;
}

/* The vertical line stretching through the 'T' */
.law-practice-tx-stretch {
    position: relative;
    display: inline-block;
}

.law-practice-tx-stretch::after {
    content: '';
    position: absolute;
    top: 10px; /* Stretches up */
    left: 50%;
    width: 10px;
    height: 200px; /* Stretches down */
    background-color: var(--law-practice-tx-dark);
    transform: translateX(-50%);
    z-index: 1;
}
.law-practice-tx-stretch-i {
    position: relative;
    display: inline-block;
}

.law-practice-tx-stretch-i::after {
    content: '';
    position: absolute;
    top: -140px; /* Stretches up */
    left: 50%;
    width: 10px;
    height: 200px; /* Stretches down */
    background-color: var(--law-practice-tx-dark);
    transform: translateX(-50%);
    z-index: 1;
}

/* --- Grid Layout --- */
.law-practice-tx-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.law-practice-tx-description {
    font-size: 20px;
    line-height: 1.8;
    color: var(--law-practice-tx-gold);
    margin-bottom: 20px;
}

/* --- Asymmetric Gallery --- */
.law-practice-tx-gallery {
    
}

.law-practice-tx-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.law-practice-tx-img-small { grid-column: 1 / 2; grid-row: 1 / 2; height: 250px; }
.law-practice-tx-img-large { grid-column: 2 / 3; grid-row: 1 / 3; height: 515px; }
.law-practice-tx-img-bottom { grid-column: 1 / 2; grid-row: 2 / 3; height: 250px; }
.law-practice-tx-text-box{
    padding: 10px;
}
/* --- RESPONSIVE 786px (Tablet) --- */
@media (max-width: 786px) {
    .law-practice-tx-grid {
        grid-template-columns: 1fr;
    }
    
    .law-practice-tx-stretch::after {
        height: 210px;
        top: 4px;
    }

    .law-practice-tx-gallery {
        margin-top: 40px;
    }
    .law-practice-tx-top {
    position: relative;
    left: 230px;
}
}

/* --- RESPONSIVE 425px (Mobile) --- */
@media (max-width: 425px) {
    .law-practice-tx-main-title {
        font-size: 36px;
    }
.law-practice-tx-description {
    font-size: 16px;
}
.law-practice-tx-section {
    padding-bottom:   0px;
}
    .law-practice-tx-stretch::after {
        width: 4px;
        height: 160px;
    }
        .law-practice-tx-top {
        position: relative;
        left: 140px;
    }

    .law-practice-tx-gallery {
        grid-template-columns: 1fr;
    }

    .law-practice-tx-img-small, 
    .law-practice-tx-img-large, 
    .law-practice-tx-img-bottom {
        grid-column: 1 / 2;
        grid-row: auto;
        height: 200px;
    }
}
:root {
    --law-final-dark: #002329;
    --law-final-light-bg: #ffffff;
    --law-final-white: #dddddd;
}

.law-final-services-section {
    width: 100%;
    background-color: var(--law-final-white);
    font-family: 'poppins', sans-serif;
}

.law-final-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* No gaps to allow the arrow overlap effect */
    gap: 0;
}

.law-final-block {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    aspect-ratio: 1 / 1;
}
.see-more-box{
  background-color: rgb(1, 22, 1);
}
/* Icon Box Style */
.law-final-icon-box {
    background-color: var(--law-final-white);
    z-index: 10;
}
.law-see-more-btn{
    color: #b59449;
    padding: 15px 30px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.law-final-icon {
    width: 80px;
    height: 80px;
    color: var(--law-final-dark);

}

.law-final-service-title {
    font-size: 22px;
    color: var(--law-final-dark);
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.3;
}

/* Text Box Style */
.law-final-text-box {
    background-color: var(--law-final-light-bg);
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

/* --- Arrow Pointers (The Triangles) --- */


/* Arrow pointing Right */
.law-final-arrow-right::after {
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    border-width: 20px 0 20px 20px;
    border-color: transparent transparent transparent var(--law-final-white);
}

/* Arrow pointing Left */
.law-final-arrow-left::after {
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    border-width: 20px 20px 20px 0;
    border-color: transparent var(--law-final-white) transparent transparent;
}

/* Arrow pointing Down */
.law-final-arrow-down::after {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 20px 20px 0 20px;
    border-color: var(--law-final-white) transparent transparent transparent;
}
.law-lk-img-icon{
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* --- RESPONSIVE 786px --- */
@media (max-width: 786px) {
    .law-final-services-grid {
        grid-template-columns: 1fr;
    }
    
    .law-final-block { min-height: auto; padding: 40px; }
    
    /* On mobile, arrows point DOWN from all icon boxes to their following text */
    .law-final-icon-box::after {
        right: auto;
        top: auto;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 20px 20px 0 20px;
        border-color: var(--law-final-white) transparent transparent transparent;
    }
}


:root {
    --law-brand-dark: #ffffff;
    --law-brand-gold: #b59449;
}

.law-see-more-wrap {
    text-align: center;

}

.law-see-more-btn {
    font-size: 40px; /* Aap apne hisaab se adjust kar sakte hain */
    font-weight: 400;
    color: var(--law-brand-dark);

    letter-spacing: 3px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

/* Common Stretch Logic */
.law-stretch-m, .law-stretch-r {
    position: relative;
    display: inline-block;
}

/* M ka stretch (Niche ki taraf) */
.law-stretch-m::after {
    content: '';
    position: absolute;
    bottom: -100px; /* Niche ki lambai */
    left: 79%;
    width: 4px; /* Line ki motai */
    height: 120px;
    background-color: var(--law-brand-dark);
    transform: translateX(-50%);
}

/* R ka stretch (Niche ki taraf) */
.law-stretch-r::after {
    content: '';
    position: absolute;
    bottom: -98px;
    left: 28%;
    width: 4px;
    height: 130px;
    background-color: var(--law-brand-dark);
    transform: translateX(-50%);
}
.law-pra-p-dis{
    color: var(--law-brand-gold);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .law-see-more-btn { font-size: 40px; }
    .law-stretch-m::after { height: 80px; bottom: -60px; }
    .law-stretch-r::after { height: 100px; bottom: -80px; }
}

@media (max-width: 425px) {
    .law-see-more-btn { font-size: 30px; letter-spacing: 2px; }
    .law-practice-tx-stretch-i::after {
    top: -110px;
    left: 50%;
    width: 4px;
    height: 120px;
}
}
/* Base style for icon boxes to position the arrow */
.law-final-icon-box {
    position: relative; /* Arrow placement ke liye zaroori hai */
}

/* Arrow common styling - Default visible */
.law-final-icon-box::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 20;
    transition: all 0.3s ease;
}

/* 1. Right Arrow (box-filter 1, 4, 7, 8) */
.law-final-arrow-right::after {
    top: 50%;
    right: -15px; /* Box ke bahar niklega */
    transform: translateY(-50%);
    border-width: 15px 0 15px 15px;

}

/* 2. Down Arrow (box-filter 2, 5, 9) */
.law-final-arrow-down::after {
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px 15px 0 15px;

}

/* 3. Left Arrow (box-filter 3, 6, 10) */
.law-final-arrow-left::after {
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
    border-width: 15px 15px 15px 0;

}

/* Hover effect: Agar aap chahte hain hover par arrow thoda glow kare ya move ho */


/* Ensure grid items don't clip the arrows */
.law-final-services-grid {
    overflow: visible;
}
/* P tag default hide rahega aur thoda niche rahega */
.law-pra-p-dis {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0px);
    transition: all 0.4s ease;
}

/* Jab parent block par filter-active class aaye tab show ho */
.law-final-block.filter-active .law-pra-p-dis {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Pointer cursor for interactivity */
.law-final-icon-box {
    cursor: pointer;
}
/* Container styling: Button ko page ke beech mein aur padding dene ke liye */
.law-pra-xt-appointment-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0; /* Section ke upar-neeche space */
    background-color: #ffffff;
    margin-bottom: 100px;
}

/* The Appointment Button */
.law-pra-xt-btn {
    display: inline-block;
    background-color: #c59d4f; /* Aapka primary golden color */
    color: #ffffff;
    padding: 18px 50px; /* Balanced rectangular shape */
    text-decoration: none;
    font-family: 'poppins', sans-serif; /* Elegant Law-style font */
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Hover Effect: Background transparent aur text golden ho jayega */
.law-pra-xt-btn:hover {
    border: none;
    background-color: #002e2c;
    color: white;
    box-shadow: 0 10px 20px rgba(197, 157, 79, 0.2);
    transform: translateY(-3px); /* Button thoda upar uthega */
}

/* Optional: Click effect */
.law-pra-xt-btn:active {
    transform: translateY(-1px);
}
/* Initially hidden content ko hide rakhein */
.law-hidden-content {
    display: none; /* Default hide */
}

/* Jab JS se class add hogi tab yeh animation chalega */
.law-hidden-content.is-visible {
    display: contents; /* Grid layout ko distrub nahi karega */
    animation: fadeInSmooth 0.8s ease forwards;
}

/* Smooth fade-in animation */
@keyframes fadeInSmooth {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* See More box ko hide karne ke liye */
.see-more-box.hide-btn {
    display: none !important;
}
@media (max-width: 1024px) {
    /* Pure container ko column flow mein set karein */
    .law-final-services-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Hidden content div ko bhi column banayein */
    .law-hidden-content.is-visible {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Har block ki width 100% karein */
    .law-final-block {
        width: 100% !important;
        aspect-ratio: auto !important; 
        padding: 40px 20px !important;
    }

    /* --- SPECIFIC ORDERING LOGIC --- */
    /* Hum har pair ko ek unique order number de rahe hain */
    
    /* 1. Employment Law Pair */
    [box-filter="box5"] { order: 5 !important; }

    /* 2. Criminal Defence Pair */
    [box-filter="box6"] { order: 6 !important; }

    /* 3. Cyber Security Pair */
    [box-filter="box7"] { order: 7 !important; }

    /* 4. See More Button hamesha last mein rahega */
    .see-more-box { 
        order: 100 !important; 
    }

    /* --- ARROW POSITION FIX --- */
    /* Mobile par arrow hamesha niche (down) point karna chahiye */
    .law-final-icon-box::after {
        top: auto !important;
        right: auto !important;
        left: 50% !important;
        bottom: -15px !important;
        transform: translateX(-50%) !important;
        border-width: 15px 15px 0 15px !important;
        border-color: #dddddd transparent transparent transparent !important;
        display: block !important;
    }

    /* Mobile par description text hamesha dikhna chahiye */
    .law-pra-p-dis {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}