/* Home.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper{
    flex: 1 0 auto
}

.header {
    display: flex;
    align-items: center;
    background: white;
    color: white;
    padding: 20px;
    font-size: 24px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 25px;
    border-radius: 8px;
}
    
    .header img {
      height: 80px;
      margin-right: 20px;
    }
    
    .header-title {
      flex-grow: 1;
      text-align: center;
      min-width: 100px;
    }

.nav {
    display: flex;
    align-items: center; /* Ensure all items are vertically centered */
    gap: 15px;
    flex-wrap: wrap;
}
    
    .nav a {
      text-decoration: none;
      color: #8311b8;
      font-size: 18px;
      padding: 5px 10px;
      transition: all 0.3s;
    }

    .nav-area {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .nav a:hover {
      text-decoration: underline;
      background-color: #f3e6f8;
      border-radius: 4px;
    }

.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #ffffff; /* White background for contrast */
    min-width: 200px; /* Slightly wider for better readability */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Softer shadow for depth */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Ensures border-radius applies to content */
    z-index: 1000; /* Ensure it stays above other content */
    padding: 5px 0; /* Internal padding for items */
}

/* Individual dropdown item styling */
.dropdown-content a {
    color: #8311b8; /* Consistent purple color */
    padding: 12px 20px; /* Increased padding for touch targets */
    display: block;
    text-decoration: none; /* Remove underline */
    font-size: 16px; /* Slightly larger text */
    font-weight: 500; /* Medium weight for readability */
    transition: all 0.3s ease; /* Smooth transition for hover */
}

/* Hover effect for dropdown items */
.dropdown-content a:hover {
    background-color: #f3e6f8; /* Lighter purple shade for hover */
    color: #620d8a; /* Darker purple on hover for contrast */
    transform: translateX(5px); /* Subtle slide effect */
}

/* Active dropdown state */
.dropdown.active .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.3s ease-out; /* Smooth slide-down animation */
}

/* Animation for dropdown appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure dropdown trigger aligns with other nav items */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dropdown-content {
        min-width: 150px; /* Slightly narrower on mobile */
        left: 0; /* Align to the left on small screens */
        right: 0; /* Full width if needed */
        margin: 0 auto; /* Center if full width */
    }

    .dropdown-content a {
        padding: 10px 15px; /* Reduced padding for smaller screens */
        font-size: 14px; /* Smaller text on mobile */
    }
}

.content {
    padding: 20px;
    flex-grow: 1;
}

.footer {
    background-color: #620d8a;
    color: #ffffff;
    padding: 40px 20px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    flex: 1;
    min-width: 220px;
    margin: 20px;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

.footer-column p,
.footer-column li,
.footer-column a {
    color: #d1d5db;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.6;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.social-icons {
    margin: 10px 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #7e24aa;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background: white;
    transform: translateY(-3px);
}

.social-icons i {
    font-size: 1rem;
    color: white;
}

.social-icons a:hover i {
    color: #7e24aa;
}

.profile-dropdown {
    display: flex;
    align-items: center; /* Align profile dropdown with other nav items */
    position: relative;
    margin-left: 15px;
}

.profile-dropdown button {
    background-color: #620d8a;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px; /* Adjusted padding for consistency */
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-menu {
    position: absolute;
    right: 0;
    top: 35px;
    background-color: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    margin-right: 8px;
}

.container {
    max-width: 500px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    margin-top: 50px;
}

.container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.container input, .container button {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
}

.container button {
    background-color: #8311b8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.container button:hover {
    background-color: #620d8a;
}

.container a {
    text-decoration: none;
    color: #620d8a;
}

.tab-container {
    max-width: 600px;
    margin: auto;
    margin-top: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}

.tab-buttons {
    display: flex;
    justify-content: space-around;
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    color: #555;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    border-bottom: 3px solid #620d8a;
    color: #620d8a;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content h2 {
    margin-bottom: 15px;
}

input, select, button {
    display: block;
    width: 90%;
    padding: 10px;
    margin: 10px auto;
}


.profile-dropdown button {
    background-color: #620d8a; 
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

.profile-dropdown button:hover {
    background-color: #8311b8; 
    transform: scale(1.05); 
}

.profile-dropdown button:focus {
    outline: none;
    box-shadow: 0 0 5px #8311b8;
}

.profile-menu {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
}

.profile-menu a {
    display: block;
    color: #620d8a;
    text-decoration: none;
    padding: 8px 10px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.profile-menu a:hover {
    background-color: #f2f2f2;
    color: #8311b8;
}

.primary-button {
    background-color: #8311b8; 
    color: white;
    border: none;
    border-radius: 5px; 
    padding: 10px 20px; 
    font-size: 16px; 
    cursor: pointer; 
    transition: background-color 0.3s ease, transform 0.2s ease; 
}

.primary-button:hover {
    background-color: #620d8a; 
    transform: scale(1.05); 
}

.primary-button:focus {
    outline: none;
    box-shadow: 0 0 5px #8311b8; 
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.primary-button {
    background-color: #8311b8;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.primary-button:hover {
    background-color: #620d8a;
}

/* Hero Section Styling */
.hero {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    height: 60vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.about-us {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-content {
    flex: 1;
    padding-right: 20px;
}

.text-content h1 {
    color: #1a1a1a;
    font-size: 2em;
    margin-bottom: 20px;
}

.text-content p {
    color: #4a4a4a;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.image-content {
    flex: 1;
}

.image-content img {
    max-width: 100%;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .text-content {
        padding-right: 0;
        margin-bottom: 20px;
    }
    .image-content img {
        max-width: 100%;
    }
    
    .header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .text-content h1 {
        font-size: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }
}

.vision-mission {
max-width: 1200px;
margin: 50px auto;
padding: 20px;
}

.vision-mission-content {
display: flex;
justify-content: space-between;
align-items: stretch;
gap: 20px;
}

.vision, .mission {
flex: 1;
padding: 20px;
background-color: white;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vision h2, .mission h2 {
color: #1a1a1a;
font-size: 1.8em;
margin-bottom: 15px;
}

.vision p, .mission p {
color: #4a4a4a;
font-size: 1em;
line-height: 1.6;
}

@media (max-width: 768px) {
.vision-mission-content {
flex-direction: column;
text-align: center;
}

.vision, .mission {
margin-bottom: 20px;
}
}


.practice-areas {
background-color: #9d9d9d;
color: #ffffff;
padding: 40px 20px;
text-align: center;
}

.practice-areas h2 {
font-size: 2.5em;
margin-bottom: 10px;
color: #000000;
}

.practice-areas h2::after {
content: "";
display: block;
width: 50px;
height: 2px;
background-color: #8311b8;
margin: 10px auto;
}

.practice-description {
font-size: 1.1em;
color: #000000;
margin-bottom: 30px;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}

.practice-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
max-width: 1200px;
margin: 0 auto;
}

.practice-card {
background-color: #ffffff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: left;
padding: 15px;
}

.practice-card img {
width: 100%;
height: 150px;
object-fit: cover;
}

.practice-card h3 {
color: #1a1a1a;
font-size: 1.5em;
margin: 10px 0;
}

.practice-card p {
color: #4a4a4a;
font-size: 0.9em;
margin-bottom: 10px;
}

.learn-more {
color: #8311b8;
text-decoration: none;
font-size: 0.9em;
}

.learn-more:hover {
text-decoration: underline;
}


.why-choose-us {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 2.5em;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.choose-us-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.choose-us-card {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.choose-us-card h3 {
    color: #8311b8;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.choose-us-card p {
    color: #4a4a4a;
    font-size: 1em;
    line-height: 1.6;
}


/* Core Values Section */
.core-values-section {
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.core-values-section h2 {
    font-size: 2em;
    color: #4b006e;
    text-align: center;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.value-item {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.value-item h3 {
    font-size: 1.2em;
    color: #620d8a;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 1em;
    color: #4a4a4a;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .core-values-section {
        padding: 15px 10px;
    }

    .values-grid {
        grid-template-columns: 1fr; /* Stack items vertically on mobile */
    }

    .value-item {
        padding: 10px;
    }

    .core-values-section h2 {
        font-size: 1.5em;
    }
}