/* Global Resets and Base Styles */
:root {
    --primary-color: #003366; /* Dark Blue */
    --secondary-color: #005ea2; /* Medium Blue */
    --accent-color: #d4aa00; /* Gold/Yellow */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --text-color-medium: #555555;
    --background-color-light: #f4f7f9;
    --background-color-main: #ffffff;
    --border-color: #dde3e7;
    --font-family-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --default-spacing: 1rem;
    --container-max-width: 1200px;
    --header-height: 80px; /* Approximate height for main nav area */
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.7;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    color: var(--text-color-dark);
    background-color: var(--background-color-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img, svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color-medium);
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-color);
    color: var(--text-color-dark);
    padding: 10px 15px;
    z-index: 99999;
    transition: top 0.3s ease-in-out;
    border-bottom-right-radius: 4px;
}

.skip-link:focus {
    top: 0;
}

/* Header Styles */
header {
    background-color: var(--background-color-main);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 0.5rem var(--default-spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.top-bar .contact-info span {
    margin-right: 1rem;
}
.top-bar .contact-info i, .top-bar .social-links i {
    color: var(--accent-color);
    margin-right: 0.3rem;
}

.top-bar-right { /* New wrapper for social links and PILON button */
    display: flex;
    align-items: center;
    gap: 1rem; /* Controls space between social links block and PILON button */
}

.top-bar .social-links a {
    color: var(--text-color-light);
    margin-left: 0.8rem; /* Space between individual social icons */
    font-size: 1rem;
}
.top-bar .social-links a:hover {
    color: var(--accent-color);
}

/* Styles for the container of the PILON button */
.floating-button-container {
    /* Default state: in flow within .top-bar-right */
    /* No specific positioning needed here for the in-flow state. */
}

/* Class added by JavaScript when scrolled */
.floating-button-container.is-floating {
    position: fixed;
    top: 50%;
    right: 20px; 
    transform: translateY(-50%);
    z-index: 1050; 
}


.consultant-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.6rem 1rem; /* Slightly larger padding */
    border-radius: 50px; /* Pill shape */
    font-weight: 700; /* Bolder */
    text-transform: uppercase;
    font-size: 0.85rem; /* Slightly larger font */
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle base shadow */
    transition: background-color 0.3s ease, 
                box-shadow 0.3s ease-out, 
                transform 0.3s ease-out;
}
.consultant-btn:hover {
    background-color: #c09800; /* Darken accent */
    color: var(--primary-color);
    text-decoration: none;
    transform: scale(1.05); /* Standard hover scale */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Enhanced shadow on hover */
}

/* Glowing state for the consultant button */
.consultant-btn.glowing {
    box-shadow: 0 0 10px 2px var(--accent-color), /* Inner glow */
                0 0 20px 5px rgba(212, 170, 0, 0.5), /* Outer softer glow */
                0 2px 5px rgba(0,0,0,0.2); /* Keep base shadow for depth */
    transform: scale(1.1); /* Slightly enlarge the button when glowing */
    background-color: #eeb400; /* Slightly brighter accent when glowing */
}

.consultant-btn.glowing:hover {
    background-color: #c09800; /* Consistent hover background */
    transform: scale(1.15); /* Further enlarge on hover when glowing */
    box-shadow: 0 0 15px 4px var(--accent-color),
                0 0 30px 8px rgba(212, 170, 0, 0.6),
                0 4px 10px rgba(0,0,0,0.3); /* More intense glow on hover */
}

.main-navigation {
    background-color: var(--background-color-main);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items:flex-start;
    padding: 0.5rem var(--default-spacing);
    max-width: var(--container-max-width);
    margin: 0 auto;
    min-height: var(--header-height);
    text-wrap: normal;
}

.nav-logo{
    position: relative;
    margin-left: auto;
}
.logo img {
  max-height: 80px;
    
}

.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li {
    position: relative;
}
.nav-links a {
    display: block;
    padding: 1rem;
    color: var(--text-color-dark);
    font-weight: 500;
    text-decoration: none;
}
.nav-links a:hover, .nav-links a:focus, .nav-links li:hover > a {
    color: var(--primary-color);
    background-color: var(--background-color-light);
}
.nav-links .fas.fa-search {
    color: var(--primary-color);
}

/* Style for the active navigation link */
.nav-links li.active-nav > a {
    background-color: var(--background-color-light);
    color: var(--primary-color);
    font-weight: 700; /* Make it bolder */
}
.nav-links li.active-nav > a:hover,
.nav-links li.active-nav > a:focus {
    /* Keep active styles on hover/focus, or slightly adjust if needed */
    background-color: var(--background-color-light);
    color: var(--primary-color);
}


/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--background-color-main);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-top: 3px solid var(--accent-color);
    z-index: 1001;
}
.dropdown-menu li a {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    font-size: 0.9rem;
}
.dropdown-menu li a:hover, .dropdown-menu li a:focus {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.dropdown:hover .dropdown-menu,
.dropdown .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block;
}

/* Active sub-link in dropdown */
.dropdown-menu li a.active-sub-link {
    background-color: var(--accent-color);
    color: var(--primary-color) !important; /* Ensure it overrides hover if needed */
    font-weight: 600;
}


/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Welcome Pop-up */
.welcome-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background-color-main);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 2000;
    width: 90%;
    max-width: 500px;
    text-align: center;
}
.welcome-popup h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.popup-content p {
    margin-bottom: 1.5rem;
}
.popup-btn, .close-popup {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.popup-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    margin-right: 0.5rem;
}
.popup-btn:hover {
    background-color: #c09800;
}
.close-popup {
    background-color: var(--border-color);
    color: var(--text-color-dark);
}
.close-popup:hover {
    background-color: #c5ced3;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust as needed */
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    background-color: var(--primary-color); /* Fallback */
}
.slides {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 33, 66, 0.4);  /*Dark blue overlay */
    z-index: 1;
}
.slide-content {
    position: relative;
    z-index: 2;
    color: var(--text-color-light);
    padding: 2rem;
    max-width: 800px;
}
.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color-light);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.slide-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.slide-indicators button.indicator {
    background-color: rgba(255,255,255,0.5);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}
.slide-indicators button.indicator.active, .slide-indicators button.indicator:hover {
    background-color: var(--text-color-light);
}

/* Services Section / Flip Cards */
.services {
    padding: 3rem var(--default-spacing);
    background-color: var(--background-color-light);
}
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    min-height: 280px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.7s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: 8px;
}
.flip-card-front {
    background-color: var(--background-color-main);
    color: var(--text-color-dark);
}
.flip-card-front i {
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.flip-card-front h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.flip-card-back {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: rotateY(180deg);
}
.flip-card-back h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.flip-card-back p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 3rem var(--default-spacing);
    background-color: var(--background-color-main);
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}
.about-text h2 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.signature {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.signature-img {
    max-width: 150px; /* Adjust as needed */
    margin-right: 1rem;
    border-radius: 4px;
}
.signature-text h3 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}
.signature-text p {
    color: var(--text-color-medium);
    font-style: italic;
    margin-bottom: 0;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Legal Practices Section */
.legal-practices {
    padding: 3rem var(--default-spacing);
    background-color: var(--background-color-light);
}
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-header .subtitle {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.divider {
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}
.practices-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}
.practice-card {
    background-color: var(--background-color-main);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}
.practice-image {
    position: relative;
    height: 200px; /* Fixed height for images */
    overflow: hidden;
}
.practice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.practice-card:hover .practice-image img {
    transform: scale(1.05);
}
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 33, 66, 0.7), transparent);
}
.practice-content {
    padding: 1.5rem;
}
.practice-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
.practice-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 50px; /* Ensure some consistency in text height */
}
.learn-more {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}
.learn-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}
.learn-more:hover i {
    transform: translateX(5px);
}

/* Consultation & Alerts Section */
.consultation-alerts-section {
    display: grid;
    grid-template-columns: 1fr; /* Stacked by default */
    background-color: var(--background-color-main);
}
.consultation-section {
    padding: 3rem var(--default-spacing);
    background-color: var(--secondary-color); /* Placeholder, could be an image */
    background-image: url('image/consultation-bg.jpg'); /* Example, provide image */
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--text-color-light);
}
.consultation-section .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.85); /* Darker blue overlay */
    z-index: 1;
}
.consultation-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.consultation-content h2 {
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}
.consultation-content p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}
.consultation-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.consultation-form input, .consultation-form select, .consultation-form textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: rgba(255,255,255,0.9);
    color: var(--text-color-dark);
}
.consultation-form input::placeholder, .consultation-form textarea::placeholder {
    color: var(--text-color-medium);
}
.consultation-form textarea {
    min-height: 100px;
    resize: vertical;
}
.consultation-form .submit-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.consultation-form .submit-btn:hover {
    background-color: #c09800;
}

.legal-alerts {
    padding: 3rem var(--default-spacing);
    background-color: var(--background-color-light);
}
.legal-alerts h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.alerts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: var(--container-max-width);
    margin: 0 auto 2rem auto;
}
.alert-card {
    background-color: var(--background-color-main);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.alert-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.alert-content {
    padding: 1.25rem;
}
.alert-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
.alert-meta {
    font-size: 0.8rem;
    color: var(--text-color-medium);
}
.alert-meta span {
    display: inline-block; /* Changed from block */
    margin-right: 1rem; /* Added for spacing */
    margin-bottom: 0.25rem;
}
.alert-meta i {
    margin-right: 0.3rem;
    color: var(--secondary-color);
}
.read-more-alerts {
    display: block;
    text-align: center;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
}
.read-more-alerts i {
    margin-left: 0.3rem;
}

/* Contact Newsletter Section */
.contact-newsletter {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 3rem 0;
}
.contact-newsletter .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.help-section h2 {
    color: var(--text-color-light);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.help-section h3 {
    color: var(--text-color-light);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.help-section h3 span {
    color: var(--accent-color);
    font-weight: 700;
}
.contact-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1rem; /* row and column gap */
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.contact-item i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}
.section-separator {
    width: 80%;
    max-width: 400px;
    height: 1px;
    background-color: rgba(255,255,255,0.3);
    margin: 2rem auto;
}
.newsletter-section h2 {
    color: var(--text-color-light);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.newsletter-form .input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
}
.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 0.85rem;
    border: none;
    font-size: 1rem;
    background-color: rgba(255,255,255,0.9);
}
.newsletter-form button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.newsletter-form button:hover {
    background-color: #c09800;
}

/* Partners Section */
.partners {
    padding: 2rem var(--default-spacing);
    background-color: var(--background-color-light);
}
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}
.partner-item img {
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.partner-item:hover img {
    opacity: 1;
}

/* Footer */
.site-footer {
    background-color: var(--text-color-dark);
    color: #a9b3bb; /* Lighter grey for text */
    padding-top: 3rem;
    font-size: 0.9rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* About/Contact | Quick Links */
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-column h3 {
    color: var(--text-color-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 0.6rem;
}
.footer-column ul li a {
    color: #a9b3bb;
}
.footer-column ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Column 1: About & Contact */
.footer-about-contact .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.footer-about-contact .footer-logo img {
    max-height: 50px;
    margin-right: 0.75rem;
    /* border-radius: 4px; Removed for circular logo */
}
.footer-about-contact .footer-logo h3 {
    color: var(--text-color-light);
    font-size: 1.2rem;
    margin: 0;
    border-bottom: none; /* Override general h3 style here */
}
.footer-about-contact .footer-description {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
}
.footer-about-contact .footer-contact-details {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.footer-about-contact .footer-contact-details a {
    color: #a9b3bb;
    display: inline-block;
    margin-top: 0.3rem;
}
.footer-about-contact .footer-contact-details a i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}
.footer-about-contact .footer-contact-details a.contact-highlight:hover {
    color: var(--accent-color);
}
.footer-about-contact .social-links a {
    color: #a9b3bb;
    margin-right: 1rem;
    font-size: 1.3rem;
}
.footer-about-contact .social-links a:hover {
    color: var(--accent-color);
}
.footer-about-contact > h3 { /* Explicitly hide if not needed for this column */
    display:none;
}

/* Footer Quick Links Styling */
.footer-quick-links ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default 3 columns for desktop */
    gap: 0.5rem 1rem; /* row-gap column-gap */
}

.footer-quick-links ul li {
    /* margin removed, handled by grid gap */
    width: auto; 
    padding-left: 0; 
    text-align: left; 
}


/* Footer Divisions (Our Department) & Law Justice Agencies */
.footer-divisions,
.footer-law-justice-agencies { 
    background-color: rgba(0,0,0,0.1); 
    padding: 2rem 0;
    border-top: 1px solid #333; /* Use a slightly lighter border if main bg is very dark */
}
.footer-divisions .container,
.footer-law-justice-agencies .container {
     width: 90%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}
.footer-divisions-title { 
    color: var(--text-color-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block; 
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.practice-areas-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.practice-column h3 { 
    color: var(--text-color-light);
    font-size: 1rem; 
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(212, 170, 0, 0.5); 
}
.practice-column ul { 
    list-style: none;
    padding: 0;
}
.practice-column ul li {
    margin-bottom: 0.5rem;
}
.practice-column ul li a {
    color: #a9b3bb;
    font-size: 0.85rem;
}
.practice-column ul li a:hover {
    color: var(--accent-color);
}


.footer-bottom {
    background-color: #1a1a1a; 
    padding: 1.5rem var(--default-spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    font-size: 0.85rem;
    max-width: var(--container-max-width); 
    margin: 0 auto; 
}
.footer-copyright p {
    margin: 0.5rem 0;
    color: #888;
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}
.footer-links li {
    margin: 0.25rem 0.75rem;
}
.footer-links a {
    color: #aaa;
}
.footer-links a:hover {
    color: var(--accent-color);
}

/* Page Hero for sub-pages */
.page-hero {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 3rem var(--default-spacing);
    text-align: center;
}

.page-hero h1 {
    color: var(--text-color-light);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero .breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.page-hero .breadcrumb a:hover {
    text-decoration: underline;
}

.page-hero .breadcrumb span {
    margin: 0 0.5rem;
}

/* Content section for sub-pages */
.page-content-section {
    padding: 2.5rem 0; /* Vertical padding */
}
.page-content-section:nth-child(odd) {
     background-color: var(--background-color-light);
}

.page-content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.page-content-section h2::after { /* Optional underline for section titles */
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .content-grid.two-cols {
        grid-template-columns: 2fr 1fr; /* Example for main content and sidebar */
    }
     .content-grid.three-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.profile-card {
    background-color: var(--background-color-main);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}
.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-color);
}
.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.profile-card .title {
    color: var(--text-color-medium);
    font-style: italic;
    margin-bottom: 1rem;
}

.list-styled {
    list-style: none;
    padding-left: 0;
}
.list-styled li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.list-styled li::before {
    content: '\\f00c'; /* FontAwesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}


/* Responsive Design */
@media (max-width: 1024px) { /* Tablet */
    .footer-main {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
        gap: 2rem;
    }
    .footer-column {
        margin-bottom: 1.5rem;
    }
    .footer-column:last-child {
        margin-bottom: 0;
    }
     .footer-column h3 { 
        display: block;
        text-align: center;
        border-bottom: none;
    }
    .footer-column h3::after { /* Centered underline for stacked column titles */
        content: '';
        display: block;
        width: 50px;
        height: 2px;
        background: var(--accent-color);
        margin: 0.5rem auto 1rem auto;
    }
    .footer-about-contact .footer-logo {
        justify-content: center;
    }
     .footer-about-contact, .footer-about-contact .footer-contact-details, .footer-about-contact .social-links {
        text-align: center;
    }
     .footer-column:not(.footer-quick-links) ul { 
        text-align: center;
    }
    .footer-column:not(.footer-quick-links) ul li { /* For lists in about/contact if any become stacked */
        display: block; /* Changed from inline-block */
        width: auto; /* Let text determine width */
        text-align: center; /* Center the text within the block */
        padding-left: 0; /* Remove specific padding */
        margin-left: auto; /* Center the block if it's not full width */
        margin-right: auto;
    }

    .footer-quick-links ul {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
        gap: 0.5rem; 
    }
    
    .practice-areas-grid { 
         grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
         gap: 1.5rem;
    }
    .practice-column{ 
        text-align:center;
    }
     .practice-column h3 {
        display: inline-block; /* Keep h3 centered if text-align:center on parent */
        border-bottom: 1px solid rgba(212, 170, 0, 0.5);
        padding-bottom: 0.3rem;
    }
    .practice-column h3::after{ /* This was for .footer-column h3, not .practice-column h3 */
        display:none; 
    }
    .practice-column ul{
        text-align:left;
        display:inline-block; 
    }
    .page-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) { /* Mobile */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .top-bar {
        flex-direction: column;
        /* gap: 0.5rem; Removed, handled by .top-bar-right gap and general item spacing */
        text-align: center;
        padding: 0.8rem var(--default-spacing);
    }
    .top-bar .contact-info { /* Ensure contact info also stacks well */
        margin-bottom: 0.5rem;
    }
    .top-bar .contact-info span { margin: 0.2rem 0.5rem; display:inline-block;}
    
    .top-bar-right { /* New wrapper on mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem; /* Space between social links and PILON button when stacked */
        width: 100%; /* Allow it to center properly */
    }
    .top-bar .social-links { 
        margin-top: 0; /* Removed as gap on parent handles it */
        display: flex; /* Ensure icons are in a row if they fit */
        justify-content: center;
        flex-wrap: wrap;
    }
    .floating-button-container:not(.is-floating) {
        margin-top: 0; /* Removed as gap on parent handles it */
        align-self: auto; /* Reset align-self as parent centers it */
    }

    .nav-container {
        position: relative; 
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--background-color-main);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding-bottom: 1rem; 
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        text-align: left;
    }
    .nav-links a {
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .nav-links li.active-nav > a {
        background-color: var(--primary-color); 
        color: var(--text-color-light);
    }
    .nav-links li.active-nav .dropdown-toggle { /* Ensure active dropdown toggle text is also light */
        color: var(--text-color-light);
    }


    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        width: 100%;
        padding-left: 1.5rem; 
        background-color: var(--background-color-light);
    }
    .dropdown-menu li a {
         padding: 0.6rem 1rem;
         font-size: 0.85rem;
    }
    .dropdown > .dropdown-toggle::after { 
        content: ' \\25BC'; 
        font-size: 0.7em;
        margin-left: 0.5em;
    }
     .dropdown > .dropdown-toggle[aria-expanded="true"]::after {
        content: ' \\25B2'; 
    }


    .mobile-menu-btn {
        display: block;
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }


    .hero-slider { height: 50vh; min-height: 350px; }
    .slide-content h2 { font-size: 1.8rem; }
    .slide-content p { font-size: 1rem; }

    .service-cards { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; text-align:center; }
    .about-image { order: -1; margin-bottom: 1.5rem;}
    .signature { justify-content: center; }
    
    .consultation-form .form-row { flex-direction: column; }
    
    .footer-main {
        grid-template-columns: 1fr; 
    }
    .footer-column:not(.footer-quick-links) ul li {
        padding-left: 0; 
        text-align: center; 
    }
    .footer-quick-links ul {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 0.3rem; 
    }


    .practice-areas-grid { 
        grid-template-columns: 1fr; 
    }
    .footer-bottom { flex-direction: column; }
    .footer-links ul { justify-content: center; }

    .page-hero h1 { font-size: 1.8rem; }
    .page-hero { padding: 2rem var(--default-spacing); }
    .page-content-section h2 { font-size: 1.6rem; }

}

@media (max-width: 480px) { /* Smaller Mobile */
    html { font-size: 15px; }
    .hero-slider { height: 45vh; min-height: 300px; }
    .slide-content h2 { font-size: 1.5rem; }
    .consultation-content h2 { font-size: 1.8rem; }
    .consultation-content p { font-size: 0.9rem; }
    .contact-newsletter .container { padding-left: var(--default-spacing); padding-right: var(--default-spacing); }
    .help-section h3 { font-size: 1.5rem; }
    .newsletter-form .input-group { flex-direction: column; }
    .newsletter-form input[type="email"], .newsletter-form button { width: 100%; border-radius: 4px; }
    .newsletter-form input[type="email"] { margin-bottom: 0.5rem; }
    
    .floating-button-container.is-floating {
        right: 10px; /* Adjust for smaller screens if too close to edge WHEN FLOATING */
    }
    .consultant-btn {
        padding: 0.5rem 0.8rem; /* Slightly smaller padding on very small screens */
        font-size: 0.75rem;
    }

}

/* Ensure FontAwesome icons are vertically aligned */
.fas, .fab {
    vertical-align: middle;
}