/*******************************/
/******* Section Header ********/
/*******************************/
.section-header {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 45px;
}

.section-header h2 {
    margin: 0;
    position: relative;
    font-size: 50px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 1;
}


@media (max-width: 767.98px) {
    .section-header h2 {
        font-size: 30px;
    }
}

/* Page Header with Image Background */
.page-head {
    position: relative;
    margin-bottom: 45px;
    padding: 90px 0;
    text-align: center;
    background: #d4af37;
    overflow: hidden;
}

.page-head.service-header {
    background-image: url('../assets/images/banner/ban8.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.page-head h2 {
    position: relative;
    color: #f5f5f0;
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 5px;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-head h2::after {
    position: absolute;
    content: "";
    width: 100px;
    height: 2px;
    left: calc(50% - 50px);
    bottom: 0;
    background: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.page-head a {
    position: relative;
    padding: 0 12px;
    font-size: 22px;
    color: #f5f5f0;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.page-head a:hover {
    color: #d4af37;
}

.page-head a::after {
    position: absolute;
    content: "/";
    width: 8px;
    height: 8px;
    top: -2px;
    right: -7px;
    text-align: center;
    color: #d4af37;
}

.page-head a:last-child::after {
    display: none;
}


/* =============================================
   FEATURE TOP BAR
   ============================================= */
.feature-top {
    position: relative;
    background: #2c3e50;
    margin-bottom: 45px;
}

.feature-top .col-md-3 {
    border-right: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

@media (max-width: 575.98px) {
    .feature-top .col-md-3:nth-child(1n) {
        border-right: none;
    }
    
    .feature-top .col-md-3:last-child {
        border-bottom: none;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .feature-top .col-md-3:nth-child(2n) {
        border-right: none;
    }
    
    .feature-top .col-md-3:nth-child(3n),
    .feature-top .col-md-3:nth-child(4n) {
        border-bottom: none;
    }
}

@media (min-width: 768px) {
    .feature-top .col-md-3 {
        border-bottom: none;
    }
    
    .feature-top .col-md-3:nth-child(4n) {
        border-right: none;
    }
}

.feature-top .feature-item {
    padding: 30px 0;
    text-align: center;
}

.feature-top .feature-item i {
    color: #d4af37;
    font-size: 35px;
    margin-bottom: 10px;
}

.feature-top .feature-item h3 {
    color: #f5f5f0;
    font-size: 30px;
    font-weight: 600;
}

.feature-top .feature-item p {
    color: #f5f5f0;
    margin: 0;
    font-size: 18px;
}


/* =============================================
   SERVICES HERO
   ============================================= */
.services-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2332 100%);
    color: #f5f5f0;
}

.services-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #f5f5f0;
    margin-bottom: 20px;
}

.services-hero .hero-subtitle {
    font-size: 20px;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 900;
    color: #d4af37;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 16px;
    color: #ddd;
    margin: 0;
}

.hero-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}


/* =============================================
   PRACTICE AREAS DETAILED
   ============================================= */
.practice-areas-detailed {
    position: relative;
    padding: 60px 0;
    background: #f5f5f0;
    /* FIX: Prevent horizontal overflow from bleeding out on all screen sizes */
    overflow-x: hidden;
}

.practice-detail-item {
    margin-bottom: 80px;
    padding: 40px 0;
}

.practice-detail-item:last-child {
    margin-bottom: 0;
}

/* FIX: Desktop only - negative margins only apply on screens wide enough to handle them */
@media (min-width: 992px) {
    .practice-detail-item:nth-child(even) {
        background: rgba(201, 169, 97, 0.03);
        padding: 60px 0;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Tablet - keep the tint background but remove negative margins */
@media (min-width: 768px) and (max-width: 991.98px) {
    .practice-detail-item:nth-child(even) {
        background: rgba(201, 169, 97, 0.03);
        padding: 50px 0;
        margin-left: 0;
        margin-right: 0;
    }
}

.practice-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.practice-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(201, 169, 97, 0.35);
}

.practice-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.practice-image:hover img {
    transform: scale(1.08);
}

.practice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(26, 35, 50, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.practice-image:hover .practice-overlay {
    opacity: 1;
}

.practice-overlay i {
    font-size: 80px;
    color: #c9a961;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.practice-content {
    padding: 20px 40px;
}

.practice-detail-item.reverse .practice-content {
    padding: 20px 40px 20px 20px;
}

.practice-content h3 {
    font-size: 36px;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.practice-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c9a961 0%, #d4af37 100%);
    border-radius: 2px;
}

.practice-intro {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    font-weight: 400;
}

.practice-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 20px;
    margin-top: 10px;
}

.practice-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.practice-list li {
    padding: 12px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    display: flex;
    align-items: flex-start;
}

.practice-list li i {
    color: #d4af37;
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 12px;
    margin-top: 4px;
    filter: drop-shadow(0 2px 4px rgba(201, 169, 97, 0.3));
}

.practice-list li span {
    flex: 1;
}

.practice-list li strong {
    color: #d4af37;
    font-weight: 700;
}

.practice-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a961 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
    border: 2px solid transparent;
}

.practice-btn:hover {
    background: transparent;
    color: #d4af37;
    border-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5);
}


/* =============================================
   CTA SECTION
   ============================================= */
.services-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #d4af37 0%, #c9a961 100%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn.primary {
    background: #2c3e50;
    color: #f5f5f0;
    border: 2px solid #2c3e50;
}

.cta-btn.primary:hover {
    background: transparent;
    color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(44, 62, 80, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.cta-btn.secondary:hover {
    background: #2c3e50;
    color: #f5f5f0;
    transform: translateY(-3px);
}


/* =============================================
   HOW WE WORK
   ============================================= */
.how-we-work {
    padding: 80px 0;
    background: #f5f5f0;
}

.process-step {
    position: relative;
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(201, 169, 97, 0.3);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c9a961 0%, #d4af37 100%);
    color: #2c3e50;
    font-size: 20px;
    font-weight: 900;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.4);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2332 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #d4af37 0%, #c9a961 100%);
}

.step-icon i {
    font-size: 36px;
    color: #d4af37;
    transition: color 0.3s ease;
}

.process-step:hover .step-icon i {
    color: #2c3e50;
}

.process-step h4 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.process-step p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}


/* =============================================
   RESPONSIVE - TABLET (768px - 991px)
   ============================================= */
@media (max-width: 992px) {
    .services-hero h1 {
        font-size: 38px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .hero-image img {
        height: 350px;
    }
    
    .process-step {
        margin-bottom: 30px;
    }
    
    .cta-content h2 {
        font-size: 36px;
    }

    /* FIX: Reset content padding for tablet */
    .practice-content {
        padding: 30px 20px;
    }
    
    .practice-detail-item.reverse .practice-content {
        padding: 30px 20px;
    }
    
    .practice-content h3 {
        font-size: 32px;
    }
    
    .practice-image img {
        height: 400px;
    }
}


/* =============================================
   RESPONSIVE - MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {
    .services-hero {
        padding: 60px 0;
    }
    
    .services-hero h1 {
        font-size: 32px;
    }
    
    .services-hero .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 25px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .hero-image img {
        height: 300px;
    }
    
    .services-cta {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 30px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-btn {
        justify-content: center;
    }
    
    .how-we-work {
        padding: 60px 0;
    }
    
    .practice-areas-detailed {
        padding: 40px 0;
    }
    
    .practice-detail-item {
        margin-bottom: 50px;
        padding: 30px 0;
    }

    /* FIX: Kill the negative margins on mobile - this was the main cause of the left offset */
    .practice-detail-item:nth-child(even) {
        background: rgba(201, 169, 97, 0.03);
        padding: 40px 0;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* FIX: Remove horizontal padding that was pushing content off center */
    .practice-content {
        padding: 25px 0 0 0;
    }

    .practice-detail-item.reverse .practice-content {
        padding: 25px 0 0 0;
    }
    
    .practice-content h3 {
        font-size: 28px;
    }
    
    .practice-content h4 {
        font-size: 20px;
    }
    
    .practice-intro {
        font-size: 16px;
    }
    
    .practice-image img {
        height: 350px;
    }
    
    .practice-overlay i {
        font-size: 60px;
    }
    
    .practice-btn {
        width: 100%;
        text-align: center;
        padding: 14px 30px;
    }
}


/* =============================================
   RESPONSIVE - SMALL MOBILE (max 576px)
   ============================================= */
@media (max-width: 576px) {
    .services-hero h1 {
        font-size: 28px;
    }
    
    .stat-item h3 {
        font-size: 32px;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
    
    .cta-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .practice-image img {
        height: 300px;
    }
    
    .practice-content h3 {
        font-size: 24px;
    }
    
    .practice-list li {
        font-size: 15px;
    }

    /* FIX: Ensure zero padding on smallest screens too */
    .practice-content,
    .practice-detail-item.reverse .practice-content {
        padding: 20px 0 0 0;
    }
}