/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #d6b17f;
    color: #fff;
}

.btn-primary:hover {
    background-color: #c49f6a;
    transform: translateY(-2px);
}

/* Modern CSS Icons */
.icon-phone, .icon-email, .icon-location, .icon-instagram, .icon-linkedin, .icon-facebook, .icon-whatsapp {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    vertical-align: middle;
}
.contact-item > i { margin-right: 8px; }
.icon-phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");}
.icon-email { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");}
.icon-location { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");}
.icon-facebook { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'%3E%3C/path%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'%3E%3C/path%3E%3C/svg%3E");}
.icon-instagram { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E");}
.icon-linkedin { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'%3E%3C/path%3E%3Crect x='2' y='9' width='4' height='12'%3E%3C/rect%3E%3Ccircle cx='4' cy='4' r='2'%3E%3C/circle%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'%3E%3C/path%3E%3Crect x='2' y='9' width='4' height='12'%3E%3C/rect%3E%3Ccircle cx='4' cy='4' r='2'%3E%3C/circle%3E%3C/svg%3E");}

/* Top Bar */
.top-bar {
    background-color: #18193f;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    align-items: center;
}
.contact-item a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.contact-item a:hover {
    color: #d6b17f;
}
.social-links {
    display: flex;
    gap: 10px;
}
.social-links i { font-size: 18px; }
.social-links a {
    color: #fff;
    text-decoration: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.social-links a:hover {
    background-color: #d6b17f;
}
.top-bar .language-switcher select {
    background-color: #2a2c5a;
    color: #fff;
    border: 1px solid #4a4d8c;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 14px;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo h1 {
    color: #18193f;
    font-size: 24px;
    font-weight: 700;
}


.logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Adds space between the logo and the text */
}

.logo img {
    max-height: 50px; /* Controls the size of your logo. Adjust as needed. */
    width: auto;
}

.logo h1 {
    color: #18193f;
    font-size: 24px;
    font-weight: 700;
    margin: 0; /* Important for alignment inside a flex container */
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: #d6b17f;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d6b17f;
    transition: width 0.3s ease;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #18193f 0%, #414f7e 100%);
    color: #fff;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}
.curved-lines {
    position: absolute;
    top: 20%; right: -10%;
    width: 60%; height: 60%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath d='M50 200 Q 200 50 350 200 Q 200 350 50 200' fill='none' stroke='%23d6b17f' stroke-width='2' opacity='0.3'/%3E%3Cpath d='M70 200 Q 200 70 330 200 Q 200 330 70 200' fill='none' stroke='%23d6b17f' stroke-width='2' opacity='0.3'/%3E%3Cpath d='M90 200 Q 200 90 310 200 Q 200 310 90 200' fill='none' stroke='%23d6b17f' stroke-width='2' opacity='0.3'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-tagline { font-size: 16px; letter-spacing: 2px; margin-bottom: 20px; color: #d6b17f; font-weight: 600; }
.hero-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 40px; line-height: 1.2; }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin: 40px 0; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: #d6b17f; margin-bottom: 10px; }
.stat-label { font-size: 14px; letter-spacing: 1px; line-height: 1.2; }
.hero-subtitle { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto; }

.hero-slogan {
    font-size: 1.8rem; /* A prominent size */
    font-weight: 600;
    color: #d6b17f; /* Use the brand's accent color */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 40px 0; /* Creates vertical space */
    line-height: 1.4;
}

/* About & General Content Sections */
.about { padding: 100px 0; background-color: #f8f9fa; }
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: center;
}
.about-text h2, .team-text h2 { font-size: 2.5rem; margin-bottom: 30px; line-height: 1.2; color: #18193f; }
.about-text p, .team-text p { font-size: 16px; margin-bottom: 30px; line-height: 1.7; }
.about-image img { width: 100%; height: auto; object-fit: cover; border-radius: 10px; }

/* ======== PRACTICE AREAS SECTION REWRITE ======== */
#practice-areas.practice-areas {
    position: relative;
    padding: 0;
    background-color: #18193f;
    color: #fff;
    overflow: hidden; /* Important for containing the absolute positioned element */
}
/* This div is the container for the text on the left */
#practice-areas .container {
    width: 50%; /* Take up the left half of the section */
    padding: 100px 40px;
    margin: 0; /* Override default container margin */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the text content */
    min-height: 600px; /* Give the section some height */
    position: relative;
    z-index: 2; /* Ensure text is above the background image */
}
/* This div holds the background image */
#practice-areas .practice-areas-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%; /* Take up the right half of the section */
    height: 100%;
    z-index: 1;
}
#practice-areas .practice-areas-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* A subtle opacity */
}
.practice-list { list-style: none; margin-top: 30px;}
.practice-list li { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px 0; }
.practice-list a { color: #fff; text-decoration: none; font-size: 16px; display: flex; align-items: center; transition: all 0.3s ease; }
.practice-list a::before { content: '▶'; margin-right: 15px; color: #d6b17f; font-size: 12px; }
.practice-list a:hover { color: #d6b17f; padding-left: 10px; }
/* End of Practice Areas Rewrite */

/* Team Section */
#team.team {
    padding: 100px 0;
    background-color: #f8f9fa;
}
#team .team-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
#team .team-images {
    display: flex;
    gap: 20px;
}
#team .team-image { flex: 1; }
#team .team-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}
.section-label { display: block; color: #d6b17f; font-size: 14px; font-weight: 600; letter-spacing: 2px; margin-bottom: 20px; text-transform: uppercase; }


.designer-credit p {
    font-size: 14px;
    color: #fff;
    opacity: 0.8;
    margin: 0;
}

.designer-credit a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.designer-credit a:hover {
    color: #d6b17f;
    text-decoration: underline;
}

/* Ensure footer bottom items wrap nicely on smaller screens */
.footer-bottom-content {
    flex-wrap: wrap; /* Allows items to wrap onto the next line */
    gap: 20px; /* Adds space between items when they wrap */
}


/* Insights Section */
.insights { padding: 100px 0; background: linear-gradient(135deg, #18193f 0%, #414f7e 100%); color: #fff; }
.insights-header { text-align: center; margin-bottom: 60px; }
.insights-header h2 { font-size: 2.5rem; margin: 20px 0 40px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.3; }
.insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.insight-card { background-color: rgba(255,255,255,0.05); border-radius: 10px; padding: 30px; transition: transform 0.3s ease; }
.insight-card:hover { transform: translateY(-5px); background-color: rgba(255,255,255,0.1); }
.insight-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px; background-color: #d6b17f; border-radius: 10px; margin-bottom: 20px; color: #18193f; font-weight: 700; }
.insight-date .day { font-size: 20px; line-height: 1; }
.insight-date .month { font-size: 12px; line-height: 1; text-transform: uppercase; }
.insight-card h3 { font-size: 18px; line-height: 1.4; }

/* Firm News Section */
.firm-news { padding: 100px 0; background-color: #f8f9fa; }
.firm-news .section-header { text-align: center; margin-bottom: 60px; }
.firm-news .section-header h2 { font-size: 2.5rem; color: #18193f; margin-top: 15px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.news-card { background-color: #fff; border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.news-image img { width: 100%; height: 220px; object-fit: cover; }
.news-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.news-meta { font-size: 14px; color: #777; margin-bottom: 15px; text-transform: uppercase; }
.news-meta .category { font-weight: 600; color: #d6b17f; }
.news-content h3 { font-size: 1.25rem; color: #18193f; line-height: 1.4; margin-bottom: 15px; flex-grow: 1; }
.news-content .read-more { color: #d6b17f; text-decoration: none; font-weight: 600; align-self: flex-start; }

/* Contact CTA & Footer */
.contact-cta { background-color: #d6b17f; padding: 60px 0; text-align: center; }
.contact-cta h2 { color: #18193f; font-size: 2rem; font-weight: 600; }
.footer { background-color: #18193f; color: #fff; padding: 80px 0 40px; }
.footer-content { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 40px; }
.footer-logo h3 { font-size: 24px; margin-bottom: 20px; color: #d6b17f; }
.footer-logo p { font-size: 16px; line-height: 1.6; opacity: 0.9; max-width: 350px; }
.footer-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-section h4 { font-size: 18px; margin-bottom: 20px; color: #d6b17f; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 10px; }
.footer-section a { color: #fff; text-decoration: none; opacity: 0.9; transition: all 0.3s ease; }
.footer-section a:hover { opacity: 1; color: #d6b17f; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }


.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 15px; /* Added a bit more padding */
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

/* ======== ADD THIS NEW RULE FOR PLACEHOLDERS ======== */
.contact-form input::placeholder, 
.contact-form textarea::placeholder {
    color: #999;
    opacity: 1; /* Firefox has a lower opacity by default */
}
/* Styles for Other Pages */
.page-header { background: linear-gradient(135deg, rgba(24, 25, 63, 0.9), rgba(65, 79, 126, 0.9)), url('https://images.unsplash.com/photo-1589996448606-2e65431588b3?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover; padding: 80px 0; text-align: center; color: #fff; }
.page-header h1 { font-size: 3rem; color: #d6b17f; }
.page-header p { font-size: 1.2rem; max-width: 600px; margin: 10px auto 0; opacity: 0.9; }
.content-section { padding: 100px 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.team-member { background-color: #fff; border-radius: 10px; overflow: hidden; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.team-member:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(0,0,0,0.1); }
.team-member img { width: 100%; height: 350px; object-fit: cover; }
.team-member-info { padding: 25px; }
.team-member-info h3 { color: #18193f; font-size: 1.5rem; margin-bottom: 5px; }
.team-member-info span { color: #d6b17f; font-weight: 600; }
.practice-area-card { background: #fff; border-radius: 8px; padding: 40px; margin-bottom: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.07); border-left: 5px solid #d6b17f; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: flex-start; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; margin-bottom: 20px; }
.map-container iframe { width: 100%; height: 350px; border: 0; border-radius: 8px; }
.pagination { display: flex; justify-content: center; list-style: none; margin-top: 60px; gap: 10px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 15px; border: 1px solid #e0e0e0; border-radius: 6px; text-decoration: none; color: #333; font-weight: 600; transition: all 0.3s ease; }
.pagination a:hover { background-color: #d6b17f; border-color: #d6b17f; color: #fff; }
.pagination .active span, .pagination .disabled span { background-color: #d6b17f; border-color: #d6b17f; color: #fff; }
.pagination .disabled span { background-color: #f0f0f0; color: #aaa; border-color: #e0e0e0; cursor: not-allowed; }

/* static/src/style.css */

/* ... (at the bottom, before JS Functionality Styles) ... */

/* ======== NEW TEAM CARD SOCIALS ======== */

/* We need a new WhatsApp icon */
.icon-whatsapp { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E"); }


.team-member-image { /* Added to keep image ratio and look */
    overflow: hidden;
}
.team-member-image img {
    transition: transform 0.3s ease;
}
.team-member:hover .team-member-image img { /* Slight zoom on image hover */
    transform: scale(1.05);
}

.team-member-socials {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #eef2f5;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background-color: #18193f;
    color: #fff;
    transform: translateY(-3px);
}
.social-icon i {
    font-size: 18px;
}

/* ======== OWNER PROFILE SECTION STYLES ======== */
.owner-profile-section {
    background-color: #f8f9fa; /* A light grey to make the card stand out */
}

.owner-profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr; /* Sidebar is 300px, main content takes the rest */
    gap: 40px;
    background-color: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.owner-profile-sidebar {
    background-color: #fff9e6; /* The light yellow background */
    padding: 30px;
    text-align: center;
}

.owner-image img {
    width: 100%;
    max-width: 200px; /* Control image size */
    height: auto;
    margin-bottom: 20px;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.owner-name {
    color: #18193f;
    margin-bottom: 20px;
}

.owner-contact {
    font-size: 14px;
    line-height: 1.5;
    text-align: left; /* Left align contact details as in image */
}

.owner-contact p {
    margin-bottom: 8px;
}
.owner-contact a {
    color: #333;
    text-decoration: none;
}
.owner-contact a:hover {
    text-decoration: underline;
}

.owner-profile-main h4 {
    font-weight: bold;
    color: #18193f;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.owner-profile-main p {
    line-height: 1.8;
}

/* Responsive adjustments for the owner profile */
@media (max-width: 768px) {
    .owner-profile-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}

/* JS Functionality Styles */
.header.scrolled { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
.fade-in, .fade-in-up, .about-content, .team-content, .insight-card, .news-card, .team-member, .practice-area-card, .contact-grid { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.visible { opacity: 1; transform: translateY(0); }
.fade-in-up, .about-content, .team-content, .insight-card, .news-card, .team-member, .practice-area-card, .contact-grid { transform: translateY(30px); }
.contact-popup { position: fixed; bottom: 20px; right: 20px; z-index: 1001; background-color: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); max-width: 350px; padding: 25px; border-top: 5px solid #d6b17f; opacity: 0; transform: translateY(20px); visibility: hidden; transition: all 0.5s ease-out; }
.contact-popup.show { opacity: 1; transform: translateY(0); visibility: visible; }
.popup-content h3 { color: #18193f; margin: 0 0 10px; font-size: 1.4rem; }
.popup-close { position: absolute; top: 5px; right: 10px; background: none; border: none; font-size: 24px; color: #999; cursor: pointer; }

/* static/src/style.css */

/* ... (at the bottom, before Responsive Design) ... */

/* Styling for the new team member links on the team page ONLY */
.team-member-link {
    display: block;
    text-decoration: none;
    color: inherit; /* This makes sure the link doesn't turn the text blue */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add a hover effect to the entire linked card */
a.team-member-link:hover {
    transform: translateY(-10px); /* Lifts the card up */
    box-shadow: 0 15px 25px rgba(0,0,0,0.1); /* Adds a more prominent shadow */
}

/* Responsive Design */
@media (max-width: 992px) {
    #practice-areas, #team .team-content, .about-content, .footer-content, .contact-grid { grid-template-columns: 1fr; }
    /* Responsive fix for the new practice areas layout */
    #practice-areas .container { width: 100%; padding: 80px 20px; min-height: auto; }
    #practice-areas .practice-areas-bg { position: relative; width: 100%; height: 300px; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background-color: #fff; flex-direction: column; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); text-align: center; gap: 10px; }
    .nav-menu.active { display: flex; }
    .mobile-menu-toggle { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { flex-direction: column; gap: 30px; }
    .team-images { grid-template-columns: 1fr; }
    .footer-content, .footer-sections { text-align: center; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
}


/* ... (at the very end of the file) ... */

/* Styling for Django Messages */
.messages {
    margin-bottom: 30px;
}
.message {
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Styling for Form Field Errors */
.errorlist {
    color: #721c24;
    font-size: 14px;
    list-style: none;
    padding-left: 0;
    margin-top: 5px;
}





.contact-form input:invalid, .contact-form textarea:invalid {
    border-color: #f5c6cb;
}



.about-full-width-text {
    max-width: 800px; /* Constrains the width of the text for readability */
    margin: 0 auto; /* Horizontally centers the text block in the container */
    text-align: center; /* Centers the h2, p, and button inside the block */
}

.about-full-width-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #18193f;
}

.about-full-width-text p {
    text-align: left; /* Keep the paragraph text left-aligned */
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}