* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

/* @font-face {
  font-family: 'Monteserat';
  src: url(Montserrat/static/Montserrat-Regular.ttf);
} */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


.header-body {
    position: relative;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Base parallax background - will be overridden by slide-specific backgrounds */
.header-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    will-change: transform;
    transition: all 1s ease-in-out;
}

/* Slide-specific background images */
.header-body[data-current-slide="1"]::before {
    background-image: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.3) 60%, 
        rgba(0, 0, 0, 0.7) 100%
    ), url(background/building.jpeg);
}

.header-body[data-current-slide="2"]::before {
    background-image: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.651) 0%, 
        rgba(0, 0, 0, 0.425) 60%, 
        rgba(0, 0, 0, 0.411) 100%
    ), url(background/public-advocates.jpg); /* Add your second background image */
}

.header-body[data-current-slide="3"]::before {
    background-image: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.781) 0%, 
        rgba(0, 0, 0, 0.493) 60%, 
        rgba(0, 0, 0, 0.849) 100%
    ), url(background/AbstractArchitecture1.webp); /* Add your third background image */
}

/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.slide.prev {
    transform: translateX(-100px);
}

/* Slide Content */
.slide-content {
    text-align: center;
    max-width: 800px;
    padding: 0 40px;
    z-index: 2;
}

/* .slide-content > div {
    margin-bottom: 30px;
} */

.header-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.205);
    font-family: "Montserrat", sans-serif;
    letter-spacing: 2px;
    margin: 0;
    /* margin-bottom: 20px; */
    animation: fadeInUp 1s ease-out;
}

/* Navigation Dots */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.nav-dot.active {
    background-color: white;
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

/* Navigation Arrows */
.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 3;
}

.arrow {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.arrow i {
    font-size: 18px;
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-body {
        height: 70vh;
        padding: 0 30px;
    }
    
    .header-body::before {
        background-attachment: scroll;
    }
    
    .slide-content {
        padding: 0 20px;
    }
    
    .header-title {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .slider-arrows {
        display: none;
    }
    
    .slider-nav {
        bottom: 20px;
    }

    .services {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .service-content,
    .services-video {
        width: 100%;
        padding: 0;
    }
    
    .services-video {
        order: 2;
    }
    
    .service-content {
        order: 1;
    }
    
    .services-video video {
        max-width: 100%;
        height: auto;
    }

    /* Fix: Mobile services header - should be in max-width media query */
    .services h1 {
        font-size: 2em !important; /* Added !important to override */
        font-weight: 600;
        padding: 20px 0px;
    }

    section {
        padding: 20px 0;
    }
    
    /* Add other mobile-specific styles here */
    .card-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 16px;
        scroll-snap-type: x mandatory;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        justify-content: flex-start;
        margin-right: 20px;
    }
    
    .news-card {
        min-width: 65vw;
        max-width: 65vw;
        flex: 0 0 auto;
        scroll-snap-align: start;
        margin-bottom: 0;
    }
    
    section {
        padding: 20px 0px 20px 20px;
    }
}

/* @media (max-width: 480px) {
    .header-body {
        height: 70vh;
    }
    
    .slide-content {
        padding: 0 15px;
    }
    
    .header-title {
        font-size: 2rem;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }
} */

/* Ensure content after header has proper background */
.article {
    position: relative;
    z-index: 1;
    background-color: #f5f5f5;
    padding: 30px 20px;
    font-family: "Roboto", sans-serif;
}

h3 {
    padding: 20px 0px;
    font-size: 35px;
}

.article-context {
    font-size: 22px;
    line-height: 1.8;
    padding: 5px 0px;
}

.more-than-law-firm {
    display: flex;
    gap: 40px;
    padding: 40px 20px;
    background-color: #fff;
}

.more-than-law-firm > div {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#firm-image {
    border-radius: 20px;
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .more-than-law-firm {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .more-than-law-firm > div {
        width: 100%;
    }

    #firm-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .article-context {
        font-size: 20px;
        line-height: 1.4;
    }
}

.learn-more {
    padding: 20px 0px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 800;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background 0.2s;
}

.learn-more:hover {
    color: #34373F;
}

.learn-more i {
    color: #F39200;
    margin-left: 6px;
    font-size: 13px;
}

.services {
    background-color: #34373F;
    color: white;
    display: flex;
    padding: 20px;
}

.service-content {
    flex: 1 1 0;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-video {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

section{
    background-color: #fff;
}

.services-video video {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .services {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .service-content,
    .services-video {
        width: 100%;
        padding: 0;
    }
    .services-video {
        order: 2;
    }
    .service-content {
        order: 1;
    }
    .services-video video {
        max-width: 100%;
        height: auto;
    }

    

    section {
        padding: 20px 0;
    }
} 

.services h1 {
    font-size: 4.5em;
    font-weight: 600;
    padding: 20px 0px;
}

@media (min-width: 768px) {
    .article {
        padding: 30px 60px;
    }

    .more-than-law-firm {
        padding: 30px 60px;
    }

    .services {
        padding: 30px 60px;
    }

    section {
        padding: 30px 60px;
    }

    
}

.news-card {
    background-color: #ecececa4;
    border-radius: 16px;
    padding: 0 0 24px 0;
    margin-bottom: 32px;
    max-width: 320px;   /* Reduced from 400px */
    min-width: 220px;   /* Reduced from 300px */
    overflow: hidden;
    height: 460px;
    font-family: "Montserrat", sans-serif;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: block;
}

.news-card-head {
    font-size: 1.25em;
    font-weight: 700;
    color: #222;
    padding: 20px 20px 0 20px;
    line-height: 1.3;
}

.news-date {
    color: #737374;
    font-size: 0.9em;
    padding: 12px 20px 0 20px;
    font-weight: 500;
}

.news-card .learn-more {
    display: block;
    padding: 18px 20px 0 20px;
    color: #222;
    font-size: 1em;
    font-weight: 700;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    margin-top: auto;
}

.news-card .learn-more i {
    color: #F39200;
    margin-left: 6px;
    font-size: 15px;
}

.card-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    overflow-x: visible;
}

@media (max-width: 768px) {
    .card-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 16px;
        scroll-snap-type: x mandatory;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        justify-content: flex-start;
        margin-right: 20px;
    }
    .news-card {
        min-width: 65vw;   /* Reduced from 80vw */
        max-width: 65vw;   /* Reduced from 80vw */
        flex: 0 0 auto;
        scroll-snap-align: start;
        margin-bottom: 0;
    }
    section {
        padding: 20px 0px 20px 20px;
    }
}

@media (max-width: 1415px) {
    .card-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 16px;
        scroll-snap-type: x mandatory;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        justify-content: flex-start;
        margin-right: 20px;
    }
    .news-card {
        min-width: 320px;
        max-width: 320px;
        flex: 0 0 320px;
        scroll-snap-align: start;
        margin-bottom: 0;
    }
    section {
        padding: 20px 0px 20px 20px;
    }
}
@media (min-width: 1416px) {
    .card-container {
        justify-content: center;
        overflow: hidden;
        flex-wrap: nowrap;
        gap: 20px;
        padding-bottom: 0;
        overflow-x: visible;
    }
    .news-card {
        min-width: 320px;
        max-width: 320px;
        margin-bottom: 32px;
    }
}

section > h3 {
    padding-left: 0;
    margin-left: 0;
}

@media (min-width: 769px) {
    section > h3 {
        /* Match the left padding/margin of .card-container or .news-card */
        padding-left: 60px;
        margin-bottom: 24px;
    }
    .card-container {
        padding-left: 60px;
    }
}

/* Add styles to hide video controls in Safari */
.services-video video::-webkit-media-controls,
.services-video video::-webkit-media-controls-panel,
.services-video video::-webkit-media-controls-play-button,
.services-video video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
}