/* ==========================================
   Huang & Associates, P.C. - Main Stylesheet
   Law Firm Website - Professional & Authoritative
   ========================================== */

/* CSS Variables */
:root {
    --primary-color: #1a3a5c;
    --primary-dark: #0f2440;
    --primary-light: #2a5a8c;
    --accent-color: #c9a84c;
    --accent-hover: #dbbf6a;
    --dark-color: #111827;
    --text-color: #374151;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e5e7eb;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--accent-color);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left a,
.top-bar-left span {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.top-bar-left a:hover {
    color: var(--accent-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn {
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
    font-family: var(--font-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .firm-name {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text .firm-sub {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu a {
    padding: 20px 16px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    display: block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="none" stroke="rgba(201,168,76,0.1)" stroke-width="2"/><circle cx="100" cy="100" r="60" fill="none" stroke="rgba(201,168,76,0.08)" stroke-width="2"/></svg>') no-repeat center;
    background-size: contain;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h1 .accent {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-dark {
    background: var(--primary-color);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* ==========================================
   PRACTICE AREA CARDS
   ========================================== */
.practice-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.practice-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.practice-card .card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.practice-card h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.practice-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.practice-card .card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.practice-card .card-link:hover {
    color: var(--primary-color);
}

/* ==========================================
   WHY CHOOSE US
   ========================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-item {
    text-align: center;
    padding: 30px 20px;
}

.why-item .icon-circle {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.why-item:hover .icon-circle {
    background: var(--accent-color);
    color: var(--white);
}

.why-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.why-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.lawyer-intro {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding: 2rem 2.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.lawyer-intro-photo {
    flex-shrink: 0;
}

.lawyer-intro-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.lawyer-intro-text h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.lawyer-intro-text .lawyer-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.lawyer-intro-text p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .lawyer-intro {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .lawyer-intro-photo img {
        width: 140px;
        height: 140px;
    }
}

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
    background: var(--primary-color);
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    color: var(--white);
}

.stat-item .stat-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ==========================================
   CTA BANNER
   ========================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-banner .cta-phones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.cta-banner .cta-phones a {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.cta-banner .cta-phones a:hover {
    color: var(--white);
}

/* ==========================================
   TEAM / ABOUT
   ========================================== */
.team-member {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.team-member:nth-child(even) {
    direction: ltr;
}

.team-photo {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.team-info h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-info .team-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.team-info .team-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.team-info .team-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.team-info p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.team-info .languages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.team-info .lang-tag {
    background: var(--light-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

/* ==========================================
   PRACTICES PAGE
   ========================================== */
.practice-section {
    margin-bottom: 50px;
}

.practice-section h2 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
    margin-bottom: 25px;
}

.practice-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.practice-list li {
    padding: 12px 15px;
    padding-left: 30px;
    position: relative;
    background: var(--light-bg);
    border-radius: 4px;
    font-size: 0.95rem;
}

.practice-list li::before {
    content: '\2713';
    position: absolute;
    left: 10px;
    color: var(--accent-color);
    font-weight: bold;
}

.bank-clients {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.bank-clients .bank-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ==========================================
   ARTICLES PAGE
   ========================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.article-card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card .article-category {
    display: inline-block;
    padding: 3px 12px;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-card h3 a:hover {
    color: var(--accent-color);
}

.article-card .article-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==========================================
   NEWS TIMELINE
   ========================================== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-year {
    position: relative;
    margin-bottom: 10px;
    padding-left: 70px;
}

.timeline-year h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--accent-color);
    color: var(--white);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-item .timeline-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}

.timeline-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.timeline-item a:hover {
    color: var(--accent-color);
}

/* ==========================================
   BLOG
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card .blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-card .blog-body {
    padding: 25px;
}

.blog-card .blog-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(201, 168, 76, 0.15);
    color: var(--accent-color);
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card h3 a:hover {
    color: var(--accent-color);
}

.blog-card .blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card .read-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-card .read-more:hover {
    color: var(--primary-color);
}

/* Blog Post (Single) */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-header h1 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 15px;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.blog-post-img {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-post-img img {
    width: 100%;
    height: auto;
}

.blog-post-toc {
    background: var(--light-bg);
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-color);
}

.blog-post-toc h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.blog-post-toc ol {
    list-style: decimal;
    padding-left: 20px;
}

.blog-post-toc li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.blog-post-toc a {
    color: var(--text-color);
}

.blog-post-toc a:hover {
    color: var(--accent-color);
}

.blog-post-content h2 {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 35px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

.blog-post-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 25px 0 12px;
}

.blog-post-content p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 18px;
    padding-left: 25px;
}

.blog-post-content ul {
    list-style: disc;
}

.blog-post-content ol {
    list-style: decimal;
}

.blog-post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-post-content blockquote {
    background: var(--light-bg);
    border-left: 4px solid var(--accent-color);
    padding: 20px 25px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-color);
}

.blog-post-content .info-box {
    background: rgba(26, 58, 92, 0.05);
    border: 1px solid rgba(26, 58, 92, 0.15);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.blog-post-content .info-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.blog-post-content .highlight-box {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.blog-post-cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 35px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.blog-post-cta h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.blog-post-cta p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.blog-post-cta a {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.blog-post-cta a:hover {
    color: var(--white);
}

/* ==========================================
   ARTICLE DETAIL PAGE
   ========================================== */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail h1 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.3;
}

.article-detail h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.article-detail h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 25px 0 10px;
}

.article-detail p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-detail ul,
.article-detail ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.article-detail ul {
    list-style: disc;
}

.article-detail ol {
    list-style: decimal;
}

.article-detail li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-detail table th,
.article-detail table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-detail table th {
    background: var(--primary-color);
    color: var(--white);
}

.article-detail table tr:nth-child(even) {
    background: var(--light-bg);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.contact-info-card h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-info-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-info-card .info-item .info-icon {
    width: 40px;
    height: 40px;
    background: rgba(201, 168, 76, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-info-card .info-item p {
    line-height: 1.6;
}

.contact-info-card .info-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-info-card .info-item a:hover {
    color: var(--accent-color);
}

.contact-form {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group textarea {
    height: 140px;
    resize: vertical;
}

.contact-map {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ==========================================
   PAGE HEADER (Sub pages)
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-primary);
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.85;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.75;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

/* ==========================================
   FAQ ACCORDION
   ========================================== */
.faq-categories {
    margin-top: 2rem;
}

.faq-category {
    margin-bottom: 2.5rem;
}

.faq-category h2 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 1.1rem 1.25rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-body);
    line-height: 1.5;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question i {
    font-size: 0.85rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question {
    background: var(--light-bg);
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer-inner p {
    margin-bottom: 0.5rem;
}

.faq-answer-inner ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
}

.faq-answer-inner ul li {
    margin-bottom: 0.3rem;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-family: var(--font-primary);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-partner {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-partner a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-partner a:hover {
    color: var(--white);
}

/* ==========================================
   FEATURED ARTICLES
   ========================================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-card-icon {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.featured-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card-body h3 {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

.featured-card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
}

.featured-card-body .read-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.featured-card-body .read-more:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   COMMUNITY SECTION
   ========================================== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.community-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.community-item .comm-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.community-item h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.community-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .practice-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .top-bar-left {
        justify-content: center;
        gap: 10px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .practice-cards {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-member {
        grid-template-columns: 1fr;
    }

    .practice-list {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .blog-post-header h1 {
        font-size: 1.7rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   OFFICE HOURS
   ========================================== */
.office-hours table {
    width: 100%;
    border-collapse: collapse;
}

.office-hours td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.office-hours td:first-child {
    font-weight: 600;
    width: 120px;
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.back-to-top.visible {
    display: flex;
}
