/* Legal Services Page Specific Styles */
:root {
    --primary-color: #283848; /* Dark blue-gray */
    --secondary-color: #d9a442; /* Gold/amber */
    --text-color: #333;
    --light-color: #f8f9fa;
}

/* Main Wrapper */
.main-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 30px;
    overflow: visible;
    max-width: 100%;
    background-color: white;
    min-height: auto;
    padding: 150px 20px 30px; /* Keeps this for proper spacing */
    z-index: 1;
    margin-top: 0; /* Reset any margin top */
}

/* Legal Header Section */
.legal-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0; /* Remove padding to match legal.php */
}

.legal-header-left {
    flex: 1;
    max-width: 60%;
    padding-right: 40px;
}

.legal-header-left h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Helvetica Neue', Helvetica;
    margin-left: 0; /* Remove negative margin */
    position: relative;
    padding-bottom: 15px;
    text-align:start;
    display: inline-block; /* Ensure the underline matches text width */
}

.legal-header-left h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.legal-header-left p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica;
    max-width: 90%;
    margin-left: 0; /* Remove negative margin */
}

.legal-header-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px; /* Reduced from original size */
    height: auto;
}

/* Content Image */
.legal-content-image {
    width: 100%;
    max-height: 800px; /* Reduced height for content images */
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.legal-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/* Services Action Row */
.services-action-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Services Header Row */
.services-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.services-header-row h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Helvetica Neue', Helvetica;
    position: relative;
    padding-left: 20px;
}

.services-header-row h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background-color: var(--secondary-color);
}

.specialties {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.specialties:hover {
    color: #555;
}

/* Service Cards */
.services-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.services-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--secondary-color);
    transition: height 0.3s ease;
    z-index: -1;
}

.services-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.services-card:hover::before {
    height: 100%;
}

.services-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Helvetica Neue', Helvetica;
    transition: color 0.3s ease;
}

.services-card:hover h3 {
    color: var(--secondary-color);
}

.services-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica;
}

/* Legal Services Banner */

.legal-services-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.legal-services-banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.legal-services-banner h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Helvetica Neue', Helvetica,;
}

.legal-services-banner p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: 'Helvetica Neue', Helvetica,;
}

/* Legal Services Icon */
.legal-services-icon {
    max-width: 80px; /* Reduce image size */
    height: auto;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .legal-services-banner {
        height: 350px;
        padding: 0 30px;
    }

    .legal-services-banner h1 {
        font-size: 36px;
    }

    .legal-services-banner p {
        font-size: 16px;
    }

    .services-card h3 {
        font-size: 22px;
    }

    .services-card p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 20px 15px 20px;
    }

    .services-header-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 25px;
    }

    .services-header-row h2 {
        font-size: 24px;
    }

    .legal-header-section {
        flex-direction: column;
        align-items: flex-start;
        padding-top: -30px;
    }

    .legal-header-left {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
        text-align: left;
    }

    .legal-header-right {
        margin-top: 20px;
        justify-content: center;
    }

    .legal-header-left h1 {
        font-size: 28px;
        text-align:start;
    }

    .legal-header-left p {
        font-size: 13px;
        max-width: 100%;
    }

    .legal-content-image {
        height: 300px;
    }

    .legal-services-banner {
        height: 300px;
        padding: 0 20px;
    }

    .legal-services-banner h1 {
        font-size: 32px;
    }

    .legal-services-banner p {
        font-size: 15px;
    }

    .services-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .services-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .services-card p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .main-wrapper {
        padding: 15px 10px 15px;
    }

    .services-header-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    .services-header-row h2 {
        font-size: 20px;
    }

    .legal-header-left h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .legal-header-left p {
        font-size: 12px;
        line-height: 1.4;
    }

    .legal-header-right {
        width: 100px;
    }

    .legal-services-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .services-action-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .legal-content-image {
        height: 200px;
    }

    .legal-services-banner {
        height: 250px;
        padding: 0 15px;
    }

    .legal-services-banner h1 {
        font-size: 28px;
    }

    .legal-services-banner p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .services-card {
        padding: 20px;
    }

    .services-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .services-card p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .services-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .services-header-row h2 {
        margin-bottom: 10px;
    }

    .services-header-row .btn {
        align-self: flex-start;
    }
}

/* Services Cards Section Styles */
.services-cards-section {
    padding: 60px 0;
    background-color: var(--light-color);
    width: 100%;
    overflow: hidden;
    display: block;
    visibility: visible;
    position: relative;
    z-index: 1;
}

.services-cards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 56, 72, 0.05) 0%, rgba(217, 164, 66, 0.02) 100%);
    z-index: 0;
}

.services-cards-section.bg-light {
    background-color: #f0f0f0;
}

.services-cards-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-cards-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: relative;
}

/* Responsive styles for services cards section */
@media (max-width: 768px) {
    .services-cards-section {
        padding: 40px 0;
    }

    .services-cards-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .services-cards-section {
        padding: 30px 0;
    }

    .services-cards-section h2 {
        font-size: 24px;
    }
}