/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d7a;
    --secondary-color: #2c6a9f;
    --accent-color: #d4a574;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Consultation Bar */
.consultation-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 15px 0;
    text-align: center;
}

.consultation-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.consultation-bar p {
    margin: 0;
    font-size: 16px;
}

.consultation-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
}

.btn-call {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-call:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

/* Main Content */
main {
    padding: 40px 0;
    min-height: calc(100vh - 400px);
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

h2 {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.4em;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    font-size: 17px;
    text-align: justify;
}

/* Q&A Section */
.qa-section {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.qa-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.qa-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.qa-question {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.qa-answer {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Article List */
.article-list {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.article-list h2 {
    margin-bottom: 30px;
}

.article-card {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.article-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.article-card a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

.footer-section p,
.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}

/* Mobile Sticky Footer */
.mobile-sticky-footer {
    display: none;
}

/* Mobile Header - Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 5px;
}

.mobile-header-whatsapp {
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.sidebar nav ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar nav ul li {
    padding: 0;
}

.sidebar nav ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--bg-light);
    transition: background-color 0.3s;
}

.sidebar nav ul li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
}

.sidebar-overlay.active {
    display: block;
}

/* Lawyer Profile Section */
.lawyer-profile {
    background-color: var(--bg-light);
    padding: 40px 0;
    margin-bottom: 40px;
}

.lawyer-profile-content {
    max-width: 900px;
    margin: 0 auto;
}

.lawyer-profile h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: none;
    padding-bottom: 0;
}

.lawyer-profile ul {
    list-style: none;
    padding-left: 0;
}

.lawyer-profile li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.lawyer-profile li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Services Section */
.services-section {
    padding: 40px 0;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.service-item {
    background-color: var(--bg-light);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.service-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.service-item p {
    margin-bottom: 20px;
}

.service-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .mobile-sticky-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 15px;
        justify-content: space-around;
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }

    .mobile-sticky-footer .btn {
        flex: 1;
        max-width: 150px;
        justify-content: center;
    }

    body {
        padding-bottom: 80px;
    }

    /* Mobile Header */
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-header-whatsapp {
        display: block;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }

    .header-content nav {
        display: none;
    }

    .header-content .logo {
        flex: 1;
        text-align: center;
    }

    .header-content .logo img {
        height: 50px;
    }

    .mobile-header-whatsapp .btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .consultation-bar-content {
        flex-direction: column;
        gap: 15px;
    }

    .consultation-buttons {
        width: 100%;
        justify-content: center;
    }

    .service-buttons {
        flex-direction: column;
    }

    .service-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .consultation-bar,
    .mobile-sticky-footer,
    nav,
    footer {
        display: none;
    }
}
