* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
    background-color: #1E305E;
}

/* Hero Section */
.about-us-hero {
    background-image: url('images/Legal-services-hero-image.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-us-hero-content {
    max-width: 800px;
    height: 200px;
    width: 50%;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 1rem;
}

.hero-wrapper h2 {
    color: #CD9D49;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-wrapper h1 {
    color: #1E305E;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.scroll-down {
    position: absolute;
    bottom: 3rem; /* Increased bottom offset for better positioning */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    animation: subtle-bounce 2.5s infinite ease-in-out;
}

.scroll-down img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.scroll-down:hover img {
    transform: scale(1.1);
}

@keyframes subtle-bounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-8px) translateX(-50%);
    }
}

/* About Section */
.about-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 4%;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.about-introduction h2 {
    font-size: 2.8rem;
    color: #1E305E;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.about-section h2 {
    color: #1E305E;
}

.about-introduction p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 1.5rem;
}

/* Mission and Vision */
.mission-vision {
    margin-top: 4rem;
    padding: 3rem;
    background-color: #F2E4CD;
    border-radius: 1rem;
    text-align: center;
}

.mission-vision h2 {
    font-size: 2.5rem;
    color: #1E305E;
    margin-bottom: 1.5rem;
}

.mission-vision-columns {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.mission,
.vision {
    flex: 1;
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mission:hover,
.vision:hover {
    transform: translateY(-5px);
}

.mission-image,
.vision-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.mission h3,
.vision h3 {
    color: #CD9D49;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.mission-text,
.vision-text {
    font-size: 1rem;
    line-height: 1.7;
    padding: 1rem;
    border-radius: 0.5rem;
}

.mission-text {
    background-color: rgba(30, 48, 94, 0.95);
    color: #CD9D49;
}

.vision-text {
    background-color: rgba(204, 155, 55, 0.95);
    color: #1E305E;
}

/* Our Values */
.our-values {
    padding: 3rem 1rem;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.our-values h2 {
    text-align: center;
    font-size: 2.4rem;
    color: #1E305E;
    margin-bottom: 2rem;
    font-weight: 700;
}

.value-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e3d7c1;
    border-radius: 0.5rem;
    background-color: #F2E4CD;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.value-toggle {
    background: none;
    border: none;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1E305E;
    cursor: pointer;
}

.value-toggle:hover,
.value-toggle:focus {
    background-color: #CD9D49;
    color: #fff;
    outline: none;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.value-content {
    padding: 1rem 1.5rem;
    background-color: #fff;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    display: block;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.value-content[hidden] {
    display: none;
}


.contact-footer {
    color: #1E305E;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    width: 392px;
    line-height: 4em;
    margin: 0 2em;
    font-weight: 700;
}


/* Responsive Design */

/* Small Devices (320px - 768px) */
@media (min-width: 320px) and (max-width: 768px) {
    body {
        background-color: #1E305E;
        overflow-x: hidden;
    }

    .about-us-hero {
        background-image: url('images/Legal-services-hero-image_002.png');
        min-height: 70vh;
        padding-top: 80px;
    }

    .about-us-hero-content {
        width: 95%;
        padding: 1.5rem;
    }

    .hero-wrapper h2 {
        font-size: 1.8rem;
    }

    .hero-wrapper h1 {
        font-size: 2.8rem;
    }

    .scroll-down {
        display: none; /* Hidden on mobile for cleaner UI */
    }

    .about-section {
        padding: 3rem 5%;
    }

    .about-introduction h2 {
        font-size: 2rem;
    }

    .about-introduction p {
        font-size: 1rem;
    }

    .mission-vision {
        padding: 2rem;
    }

    .mission-vision h2 {
        font-size: 2rem;
    }

    .mission-vision-columns {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mission,
    .vision {
        padding: 1rem;
    }

    .mission-image,
    .vision-image {
        max-width: 100%;
    }

    .mission h3,
    .vision h3 {
        font-size: 1.5rem;
    }

    .our-values {
        padding: 2rem;
    }

    .our-values h2 {
        font-size: 2rem;
    }

    .value-toggle {
        font-size: 1.1rem;
    }

    .value-content {
        font-size: 0.9rem;
    }

    

}

/* Medium Devices (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {

    .about-us-hero {
        background-image: url('images/about-background.png');
        min-height: 80vh;
    }

    .about-us-hero-content {
        width: 85%;
        padding: 2rem;
    }

    .hero-wrapper h2 {
        font-size: 2rem;
    }

    .hero-wrapper h1 {
        font-size: 3.2rem;
    }

    .scroll-down {
        bottom: 2.5rem; /* Adjusted for tablet */
    }

    .about-section {
        padding: 4rem 3%;
    }

    .about-introduction h2 {
        font-size: 2.4rem;
    }

    .mission-vision-columns {
        gap: 1.5rem;
    }

    .mission-image,
    .vision-image {
        max-width: 90%;
    }

    .mission h3,
    .vision h3 {
        font-size: 1.6rem;
    }
}

@media (min-width: 1440px) {
  body {
    height: auto; /* Let content define page height */
    background-color: #fff; /* Override full-page blue if content is short */
  }

  .about-us-hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center center;
  }

  .about-us-hero-content {
    width: 40%;
    padding: 4rem;
  }

  .hero-wrapper h2 {
    font-size: 3rem;
  }

  .hero-wrapper h1 {
    font-size: 4.5rem;
  }

  .about-section {
    max-width: 1400px;
    padding: 6rem 6%;
  }

  .about-introduction p {
    font-size: 1.2rem;
    line-height: 1.9;
  }

  .mission-vision {
    padding: 4rem;
  }

  .mission-vision-columns {
    gap: 3rem;
  }

  .mission,
  .vision {
    padding: 2rem;
  }

  .mission-text,
  .vision-text {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .our-values {
    max-width: 1000px;
    padding: 4rem 3rem;
  }

  .value-toggle {
    font-size: 1.4rem;
  }

  .value-content {
    font-size: 1.1rem;
  }
}

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
