/* Main CSS Styles for Compensation Website */

/* Professional Law Office Color Palette 2025 */
:root {
    /* Primary Colors - Professional Blues */
    --law-primary: #1a365d;        /* Deep navy blue - trust & authority */
    --law-primary-light: #2b4a6b;  /* Lighter navy */
    --law-primary-dark: #0f1f2e;   /* Darker navy */
    
    /* Secondary Colors - Professional Grays */
    --law-secondary: #718096;      /* Professional gray */
    --law-light-gray: #f7fafc;     /* Light background */
    --law-medium-gray: #e2e8f0;    /* Medium gray */
    --law-dark-gray: #4a5568;      /* Dark text gray */
    
    /* Accent Colors */
    --law-gold: #d69e2e;           /* Professional gold accent */
    --law-gold-light: #f6e05e;     /* Light gold */
    --law-success: #38a169;        /* Success green */
    --law-warning: #d69e2e;        /* Warning amber */
    
    /* Text Colors */
    --text-primary: #2d3748;       /* Primary text */
    --text-secondary: #4a5568;     /* Secondary text */
    --text-light: #718096;         /* Light text */
    --text-white: #ffffff;         /* White text */
    
    /* Shadows & Borders */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--law-light-gray);
    direction: rtl;
    padding-top: 90px; /* Space for fixed header */
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--law-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--law-primary-light);
}

/* External Links Styling - Make them more visible */
a[target="_blank"] {
    color: #0066cc;
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 204, 0.3);
    text-underline-offset: 2px;
    font-weight: 500;
    position: relative;
}

a[target="_blank"]:hover {
    color: #0052a3;
    text-decoration-color: rgba(0, 82, 163, 0.6);
    transform: translateY(-1px);
}

/* External link icon indicator */
a[target="_blank"]::after {
    content: "↗";
    font-size: 0.8em;
    margin-right: 2px;
    opacity: 0.7;
    vertical-align: super;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

p {
    margin-bottom: 20px;
}

ul, ol {
    margin-bottom: 20px;
    padding-right: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Professional Header Styles */
header {
    background: linear-gradient(135deg, var(--law-primary), var(--law-primary-light));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

/* Sticky Header States */
header.scrolled {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-xl);
}

header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
}

/* Navigation Container */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Professional Navigation */
.professional-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    padding: 0.75rem 0;
}

/* Brand Section */
.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-2px);
    color: var(--text-white);
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--law-gold), var(--law-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.brand-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--law-gold-light);
}

.nav-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

.nav-text {
    font-size: 0.95rem;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle .dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-right: 4px;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--law-medium-gray);
    padding: 1rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.dropdown-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Multi-column dropdown for services */
.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--law-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--law-medium-gray);
}

.dropdown-link {
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: block;
}

.dropdown-link:hover {
    background: var(--law-light-gray);
    color: var(--law-primary);
    transform: translateX(-4px);
}

/* CTA Button */
.nav-cta {
    margin-right: 1rem;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--law-gold), var(--law-gold-light));
    color: var(--law-primary);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--law-gold-light), var(--law-gold));
    color: var(--law-primary-dark);
}

.cta-icon {
    font-size: 1.1rem;
}

.cta-text {
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .brand-title {
        font-size: 1.3rem;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .professional-nav {
        min-height: 60px;
    }
    
    .brand-title {
        font-size: 1.1rem;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--law-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 2rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    
    .nav-menu.mobile-active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        justify-content: flex-start;
        border-radius: 0;
    }
    
    .dropdown-content {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .dropdown-content.active {
        display: block;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .dropdown-section {
        padding: 1rem;
    }
    
    .dropdown-title {
        color: var(--law-gold-light);
        border-bottom-color: rgba(255, 255, 255, 0.2);
    }
    
    .dropdown-link {
        color: rgba(255, 255, 255, 0.8);
        padding: 0.75rem;
    }
    
    .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-white);
        transform: none;
    }
    
    .nav-cta {
        margin: 2rem 0 0 0;
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .brand-content {
        gap: 8px;
    }
    
    .brand-icon {
        font-size: 1.5rem;
    }
    
    .brand-title {
        font-size: 1rem;
    }
}

/* Page Header Styles */
.page-header {
    text-align: center;
    padding: 40px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #fff;
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* Reduced padding for mobile */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .content {
        padding: 20px 0;
    }
    
    header {
        padding: 10px 0;
    }
    
    header.scrolled {
        padding: 8px 0;
    }
    
    nav {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        left: 20px;
    }
    
    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        margin-top: 20px;
        padding: 10px 0;
    }
    
    .main-menu.mobile-active {
        display: flex;
    }
    
    .main-menu li {
        margin: 0;
        width: 100%;
    }
    
    .main-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        color: #333;
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .logo {
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }
    
    body {
        padding-top: 80px; /* Reduced padding for mobile header only */
    }
    
    header .container {
        flex-direction: column;
        padding: 10px 10px;
        min-height: auto;
    }
    
    nav {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .logo {
        text-align: center;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .cta-nav {
        margin-left: 0;
        margin-top: 10px;
        order: 999;
        width: 100%;
        text-align: center;
    }
    
    .nav-cta-button {
        padding: 10px 10px !important;
        font-size: 14px;
        width: auto;
        display: inline-block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}



.cta-button {
    display: inline-block;
    background-color: #ff9900;
    color: #fff;
    padding: 12px 12px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e68a00;
    text-decoration: none;
    color: #fff;
}

/* Hero Section Styles */
.hero, .hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: #fff;
    padding: 60px 20px;
    margin: 0 0 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
    text-align: center;
}

.hero .hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1, .hero-section h1,
.hero h2, .hero-section h2 {
    color: #fff;
}

.hero p, .hero-section p,
.hero .lead, .hero-section .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin: 0 auto 20px;
    max-width: 900px;
}

.hero .hero-cta {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .contact-info {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.stats-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 16px;
    color: #fff;
}

.stat-box h3 {
    font-size: 1.8rem;
    margin: 0 0 6px;
    color: #fff;
}

.stat-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.contact-highlight {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.contact-box {
    background: #fff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 20px 24px;
    max-width: 520px;
    text-align: center;
}

.contact-box h3 {
    margin-bottom: 10px;
    color: #0066cc;
}

.hero .cta-button,
.hero-section .cta-button {
    background-color: #ff9900;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
}

.hero .cta-button:hover,
.hero-section .cta-button:hover {
    background-color: #e68a00;
    color: #fff;
    text-decoration: none;
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .content {
        padding: 20px 0;
    }
    
    .hero, .hero-section {
        padding: 40px 16px;
        border-radius: 10px;
        margin: 0 10px;
    }
    .hero .hero-cta {
        gap: 12px;
    }
    .stat-box h3 {
        font-size: 1.5rem;
    }
}

/* Content Styles */
.content {
    display: flex;
    padding: 40px 0;
}

.main-content {
    flex: 2;
    margin-left: 40px;
}

.sidebar {
    flex: 1;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* Professional Services Header */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--law-primary);
}

.services-header h2 {
    margin: 0;
    color: var(--law-primary);
}

@media (max-width: 768px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
}

.why-us {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.reason {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
}

.reason h3 {
    color: #0066cc;
    margin-bottom: 10px;
}

.case-studies {
    margin: 40px 0;
}

.case {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.case h3 {
    color: #0066cc;
    margin-bottom: 15px;
}

.testimonials {
    margin: 40px 0;
}

.testimonial {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.testimonial:before {
    content: '"';
    font-size: 60px;
    color: #ddd;
    position: absolute;
    top: 10px;
    right: 10px;
    line-height: 1;
}

.testimonial p {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    text-align: left;
    margin-top: 10px;
}

.cta-section {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h2 {
    margin-bottom: 20px;
}

/* Contact Form Section Styles */
.contact-form-section {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.15);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.form-container {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

.submit-group {
    text-align: center;
    margin-top: 30px;
}

.submit-button {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

/* Contact Information Section */
.intro-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border-left: 4px solid #0066cc;
}

.intro-section h3 {
    color: #0066cc;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info-section {
    margin-bottom: 40px;
}

.contact-info-section h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-card-header {
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.contact-card-header h4 {
    color: #0066cc;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.contact-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.office-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #0066cc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form-section {
        padding: 25px 20px;
    }
    
    .form-container {
        padding: 25px 20px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .submit-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* Sidebar Styles */
.widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.widget h3 {
    color: #0066cc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 10px;
}

.widget .button {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.widget .button:hover {
    background-color: #004080;
    text-decoration: none;
    color: #fff;
}

.blog-post {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h4 {
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 0 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

/* Page Specific Styles */
.profile {
    display: flex;
    margin-bottom: 30px;
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-left: 30px;
}

.profile-content {
    flex: 1;
}

.team-member, 
.expertise-area, 
.approach-principle, 
.achievement, 
.social-involvement {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.contact-info {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.map-container {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.contact-form .checkbox-group {
    display: flex;
    align-items: center;
}

.contact-form .checkbox-group input {
    width: auto;
    margin-left: 10px;
}

.post-idea {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.post-idea h4 {
    color: #0066cc;
    margin-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }
    
    .main-menu li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding-right: 20px;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .content {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .main-content {
        margin-left: 0;
        margin-bottom: 40px;
    }
    
    .profile {
        flex-direction: column;
    }
    
    .profile-image {
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero h2 {
        font-size: 18px;
    }
    
    .cta-button {
        padding: 10px 20px;
    }
}


/* Breadcrumb Navigation Styles */
.breadcrumbs {
    background-color: #f8f9fa;
    padding: 10px 0;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #004080;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #6c757d;
    font-weight: normal;
}

.breadcrumb-category {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-current {
    color: #6c757d;
    font-weight: normal;
}

/* Mobile Menu Toggle Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    justify-content: space-between;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #004080;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

/* Related Articles Section */
.related-articles {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    border: 1px solid #e9ecef;
}

.related-articles h3 {
    color: #0066cc;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-article-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.related-article-card h4 {
    color: #0066cc;
    margin-bottom: 10px;
    font-size: 18px;
}

.related-article-card p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Page Navigation (Next/Previous) */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.page-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    transition: color 0.3s ease;
    max-width: 45%;
}

.page-nav-link:hover {
    color: #004080;
    text-decoration: none;
}

.page-nav-link.prev::before {
    content: "← ";
    margin-left: 8px;
}

.page-nav-link.next::after {
    content: " →";
    margin-right: 8px;
}

.page-nav-text {
    display: flex;
    flex-direction: column;
}

.page-nav-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.page-nav-title {
    font-size: 14px;
    line-height: 1.3;
}

/* Footer Navigation */
.footer-nav {
    background-color: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 60px;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-nav-section h4 {
    color: #0066cc;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-section ul li {
    margin-bottom: 8px;
}

.footer-nav-section ul li a {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav-section ul li a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .content {
        padding: 20px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-menu {
        position: fixed;
        top: 100%;
        right: 0;
        left: 0;
        background-color: #0066cc;
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .main-menu.mobile-active {
        transform: translateY(0);
    }
    
    .main-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-menu li:last-child {
        border-bottom: none;
    }
    
    .main-menu a {
        display: block;
        padding: 15px 0;
        color: #fff;
        font-size: 16px;
        border-bottom: none;
    }
    
    .dropdown-menu {
        position: static;
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        display: none;
        padding: 0;
        margin-top: 10px;
        border-radius: 5px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-menu a {
        padding: 12px 15px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .cta-nav {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-cta-button {
        background-color: #fff;
        color: #0066cc;
        padding: 12px 20px;
        border-radius: 25px;
        font-weight: 600;
        text-align: center;
        display: block;
    }
    
    .breadcrumbs {
        font-size: 12px;
        padding: 8px 15px;
        margin: 0 -20px 20px -20px;
    }
    
    .page-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .page-nav-link {
        max-width: 100%;
        text-align: center;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Tablet Specific Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .main-menu {
        gap: 20px;
    }
    
    .main-menu a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .dropdown-menu {
        min-width: 200px;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    header, .sidebar, .back-to-top, .page-navigation, .footer-nav {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0 10px;
    }
    
    .main-content {
        margin: 0;
        width: 100%;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .breadcrumbs {
        background: none;
        border: none;
        padding: 0;
        margin-bottom: 10pt;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Keyboard Navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    right: 6px;
    background: #0066cc;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Layout adjustments for pages with header title */
body.has-page-header {
    padding-top: 180px;
}

@media (max-width: 768px) {
    body.has-page-header {
        padding-top: 140px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .content {
        padding: 20px 0;
    }
}


/* Ensure the back-to-top button is positioned properly */
.back-to-top {
    bottom: 30px;
}

/* ===================================
   Exit Intent Popup Styles
   =================================== */

/* Overlay */
.exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.exit-intent-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Popup Container */
.exit-intent-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    max-height: 90vh;
    overflow-y: auto;
}

.exit-intent-popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Close Button */
.exit-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    z-index: 10;
}

.exit-popup-close:hover {
    background: var(--law-light-gray);
    color: var(--law-primary);
    transform: rotate(90deg);
}

/* Popup Content */
.exit-popup-content {
    padding: 40px 30px;
    text-align: center;
}

/* Icon */
.exit-popup-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--law-primary), var(--law-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.exit-popup-icon svg {
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(26, 54, 93, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(26, 54, 93, 0);
    }
}

/* Typography */
.exit-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--law-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.exit-popup-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--law-gold);
    margin-bottom: 15px;
}

.exit-popup-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Form */
.exit-popup-form {
    text-align: right;
}

.exit-form-group {
    margin-bottom: 15px;
}

.exit-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--law-medium-gray);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.exit-form-group input:focus {
    outline: none;
    border-color: var(--law-primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.exit-form-group input::placeholder {
    color: var(--text-light);
}

/* Checkbox */
.exit-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    text-align: right;
}

.exit-form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.exit-form-checkbox label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.5;
}

/* Submit Button */
.exit-popup-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--law-primary), var(--law-primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.exit-popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.exit-popup-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.exit-popup-footer {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.exit-popup-footer a {
    color: var(--law-primary);
    text-decoration: none;
    font-weight: 600;
}

.exit-popup-footer a:hover {
    text-decoration: underline;
}

/* Error Message */
.exit-form-error {
    background-color: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #fcc;
}

/* Success State */
.exit-popup-success {
    padding: 20px;
    text-align: center;
}

.success-checkmark {
    display: inline-block;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--law-success), #48bb78);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPulse 0.6s ease;
}

.success-checkmark svg {
    color: white;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.exit-popup-success h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--law-success);
    margin-bottom: 10px;
}

.exit-popup-success p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.exit-popup-success-close {
    margin-top: 20px;
    padding: 12px 32px;
    background: var(--law-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exit-popup-success-close:hover {
    background: var(--law-primary-light);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exit-intent-popup {
        width: 95%;
        max-height: 85vh;
    }

    .exit-popup-content {
        padding: 30px 20px;
    }

    .exit-popup-title {
        font-size: 24px;
    }

    .exit-popup-subtitle {
        font-size: 18px;
    }

    .exit-popup-description {
        font-size: 14px;
    }

    .exit-popup-icon {
        width: 60px;
        height: 60px;
    }

    .exit-popup-icon svg {
        width: 40px;
        height: 40px;
    }

    .exit-popup-submit {
        font-size: 16px;
        padding: 14px 20px;
    }
}

/* Prevent body scroll when popup is active */
body.exit-popup-active {
    overflow: hidden;
}
