/* ========== CSS Variables ========== */
:root {
  --primary: #1B3A5C;
  --secondary: #2C5282;
  --accent: #C9A84C;
  --bg: #F7FAFC;
  --text: #2D3748;
  --text-light: #718096;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(27,58,92,0.1);
  --shadow-hover: 0 8px 30px rgba(27,58,92,0.18);
  --transition: all 0.3s ease;
  --container: 1200px;
  --gutter: 24px;
}

/* ========== Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans SC', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ========== Navigation ========== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--primary); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 70px; box-shadow: var(--shadow); }
.nav-logo { font-size: 22px; font-weight: 700; color: var(--white); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 15px; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { background: var(--accent); color: var(--primary); padding: 10px 24px; border-radius: 4px; font-weight: 500; font-size: 14px; transition: var(--transition); }
.nav-cta:hover { background: #e0bc5a; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: var(--transition); }
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--primary); padding: 20px; z-index: 999; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: rgba(255,255,255,0.85); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 15px; }
.mobile-menu .mobile-cta { background: var(--accent); color: var(--primary); text-align: center; border-radius: 4px; margin-top: 16px; border: none; padding: 12px; display: block; }

/* ========== Page Banner ========== */
.page-banner { height: 320px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 70px; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.page-banner .banner-content { position: relative; z-index: 1; }
.page-banner h1 { font-size: 42px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.page-banner h1 span { color: var(--accent); }
.page-banner p { font-size: 16px; color: rgba(255,255,255,0.75); max-width: 500px; margin: 0 auto; }
.page-banner .breadcrumb { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.6); }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.page-banner .breadcrumb a:hover { color: var(--accent); }

/* ========== Section Title ========== */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; color: var(--primary); margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 16px; }
.section-title .line { width: 60px; height: 3px; background: var(--accent); margin: 16px auto 0; }

/* ========== Buttons ========== */
.btn-primary { background: var(--accent); color: var(--primary); padding: 14px 36px; border-radius: 4px; font-weight: 500; font-size: 16px; border: none; cursor: pointer; transition: var(--transition); display: inline-block; }
.btn-primary:hover { background: #e0bc5a; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--primary); padding: 13px 36px; border-radius: 4px; font-weight: 500; font-size: 16px; border: 1px solid var(--primary); cursor: pointer; transition: var(--transition); display: inline-block; }
.btn-secondary:hover { background: var(--primary); color: var(--white); }

/* ========== Cards Grid ========== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }

/* ========== Placeholder Image ========== */
.placeholder-img { background: #CBD5E0; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 13px; }

/* ========== Tags ========== */
.tag { display: inline-block; background: var(--primary); color: var(--white); font-size: 11px; padding: 3px 10px; border-radius: 2px; }
.tag-outline { display: inline-block; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; padding: 3px 10px; border-radius: 2px; }

/* ========== Content Block ========== */
.content-block { padding: 70px 0; }
.content-block.bg-white { background: var(--white); }
.content-block .intro { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.content-block .intro h2 { font-size: 32px; color: var(--primary); margin-bottom: 16px; }
.content-block .intro p { color: var(--text-light); font-size: 16px; line-height: 1.8; }

/* ========== Text + Image Row ========== */
.text-image-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.text-image-row.reverse { direction: rtl; }
.text-image-row.reverse > * { direction: ltr; }
.text-image-row h3 { font-size: 26px; color: var(--primary); margin-bottom: 16px; }
.text-image-row p { color: var(--text-light); font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.text-image-row .img-wrap { border-radius: 8px; overflow: hidden; height: 280px; }
.text-image-row .img-wrap .placeholder-img { height: 100%; }

/* ========== Timeline ========== */
.timeline { position: relative; max-width: 700px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: translateX(-50%); }
.timeline-item { display: flex; gap: 30px; margin-bottom: 40px; align-items: flex-start; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; direction: rtl; }
.timeline-item:nth-child(even) > * { direction: ltr; }
.timeline-item .year { flex: 0 0 100px; text-align: right; font-size: 20px; font-weight: 700; color: var(--primary); padding-top: 4px; }
.timeline-item:nth-child(even) .year { text-align: left; }
.timeline-item .dot { width: 14px; height: 14px; background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: 6px; position: relative; left: 50%; transform: translateX(-50%); }
.timeline-item:nth-child(even) .dot { left: auto; right: 50%; transform: translateX(50%); }
.timeline-item .content { flex: 1; background: var(--white); padding: 20px 24px; border-radius: 8px; box-shadow: var(--shadow); }
.timeline-item .content h4 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.timeline-item .content p { font-size: 14px; color: var(--text-light); }

/* ========== Honor Cards ========== */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.honor-card { background: var(--white); padding: 28px 20px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.honor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.honor-card .num { font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.honor-card h4 { font-size: 15px; color: var(--primary); margin-bottom: 6px; }
.honor-card p { font-size: 13px; color: var(--text-light); }

/* ========== Team Cards ========== */
.team-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.team-card .team-photo, .team-card img.team-photo { height: 260px; background: #CBD5E0; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 13px; }
.team-card img.team-photo { width: 100%; height: 260px; object-fit: cover; object-position: center top; }
.team-card .team-info { padding: 24px; text-align: center; }
.team-card .team-info h3 { font-size: 18px; color: var(--primary); margin-bottom: 4px; }
.team-card .team-info .title { font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.team-card .team-info p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* Partner large card */
.partner-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 300px 1fr; transition: var(--transition); }
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.partner-card .partner-photo:not(img) { background: #CBD5E0; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 13px; min-height: 320px; }
.partner-card img.partner-photo { width: 100%; height: 320px; object-fit: cover; object-position: center top; border-radius: 0; }
.partner-card .partner-info { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.partner-card .partner-info h3 { font-size: 24px; color: var(--primary); margin-bottom: 4px; }
.partner-card .partner-info .title { font-size: 14px; color: var(--accent); margin-bottom: 16px; font-weight: 500; }
.partner-card .partner-info p { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.partner-card .partner-info .tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ========== Article Cards ========== */
.article-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.article-card .article-img { height: 180px; background: #CBD5E0; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 13px; }
.article-card .article-body { padding: 24px; }
.article-card .article-body .tag { display: inline-block; background: var(--primary); color: var(--white); font-size: 11px; padding: 3px 10px; border-radius: 2px; margin-bottom: 12px; }
.article-card .article-body h3 { font-size: 17px; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.article-card .article-body p { font-size: 13px; color: var(--text-light); margin-bottom: 16px; line-height: 1.7; }
.article-card .article-body .date { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 12px; }
.article-card .article-body .date span { display: flex; align-items: center; gap: 4px; }

/* ========== Tab Navigation ========== */
.tab-nav { display: flex; gap: 4px; margin-bottom: 40px; border-bottom: 2px solid #E2E8F0; flex-wrap: wrap; }
.tab-nav button { padding: 12px 24px; background: none; border: none; font-family: 'Noto Sans SC', sans-serif; font-size: 15px; color: var(--text-light); cursor: pointer; transition: var(--transition); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-nav button:hover { color: var(--primary); }
.tab-nav button.active { color: var(--primary); border-bottom-color: var(--accent); font-weight: 500; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Sidebar nav */
.sidebar-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.side-nav { background: var(--white); border-radius: 8px; padding: 20px 0; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 90px; }
.side-nav a { display: block; padding: 12px 24px; font-size: 15px; color: var(--text); transition: var(--transition); border-left: 3px solid transparent; }
.side-nav a:hover { color: var(--primary); background: var(--bg); }
.side-nav a.active { color: var(--primary); border-left-color: var(--accent); background: var(--bg); font-weight: 500; }
.side-nav h3 { padding: 12px 24px 4px; font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* ========== Practice Area Detail Card ========== */
.practice-detail-card { background: var(--white); border-radius: 12px; padding: 40px; box-shadow: var(--shadow); }
.practice-detail-card .pd-header { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #E2E8F0; }
.practice-detail-card .pd-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.practice-detail-card .pd-icon + div h2 { font-size: 24px; color: var(--primary); margin-bottom: 4px; }
.practice-detail-card .pd-icon + div p { font-size: 14px; color: var(--text-light); }
.practice-detail-card .pd-body p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 20px; }
.practice-detail-card .pd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.practice-detail-card .pd-list li { font-size: 14px; color: var(--text); padding: 10px 16px; background: var(--bg); border-radius: 4px; display: flex; align-items: center; gap: 10px; }
.practice-detail-card .pd-list li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ========== Contact Page ========== */
.contact-layout { display: grid; grid-template-columns: 1fr 400px; gap: 50px; }
.contact-info-card { background: var(--white); border-radius: 12px; padding: 36px; box-shadow: var(--shadow); height: fit-content; }
.contact-info-card h3 { font-size: 20px; color: var(--primary); margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-info-item .icon { width: 44px; height: 44px; background: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; border: 1px solid #E2E8F0; }
.contact-info-item h4 { font-size: 14px; color: var(--primary); margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.contact-map { height: 220px; background: #CBD5E0; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 14px; margin-top: 24px; }

/* Contact Form (shared) */
.contact-form-wrap { background: var(--white); border-radius: 12px; padding: 40px; box-shadow: var(--shadow); }
.contact-form-wrap h3 { font-size: 20px; color: var(--primary); margin-bottom: 8px; }
.contact-form-wrap > p { font-size: 14px; color: var(--text-light); margin-bottom: 28px; }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 18px; border: 1px solid #E2E8F0; border-radius: 4px; background: var(--bg); color: var(--text); font-family: 'Noto Sans SC', sans-serif; font-size: 15px; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); background: var(--white); }
.form-group textarea { height: 120px; resize: vertical; }
.form-group label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.form-group label em { color: #E53E3E; font-style: normal; }
.form-submit { padding: 16px; background: var(--accent); color: var(--primary); border: none; border-radius: 4px; font-size: 16px; font-weight: 600; font-family: 'Noto Sans SC', sans-serif; cursor: pointer; transition: var(--transition); width: 100%; }
.form-submit:hover { background: #e0bc5a; transform: translateY(-2px); }
.form-success { display: none; text-align: center; padding: 40px; }
.form-success.show { display: block; }
.form-success h3 { font-size: 22px; color: var(--primary); margin-bottom: 10px; }
.form-success p { font-size: 15px; color: var(--text-light); }

/* Filter bar */
.filter-bar { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-bar button { padding: 8px 20px; background: var(--white); border: 1px solid #E2E8F0; border-radius: 4px; font-family: 'Noto Sans SC', sans-serif; font-size: 14px; color: var(--text); cursor: pointer; transition: var(--transition); }
.filter-bar button:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar button.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ========== Footer ========== */
.footer { background: #0f2340; padding: 60px 0 30px; color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 22px; color: var(--white); margin-bottom: 16px; }
.footer-brand h3 span { color: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ========== Tablet 1024px ========== */
@media (max-width: 1024px) {
  :root { --container: 900px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 42px; }
  .hero { height: 70vh; }
  .page-banner h1 { font-size: 36px; }
}

/* ========== Responsive (tablet/mobile) ========== */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .page-banner h1 { font-size: 28px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .text-image-row { grid-template-columns: 1fr; }
  .text-image-row.reverse { direction: ltr; }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; direction: ltr; gap: 10px; }
  .timeline-item .year, .timeline-item:nth-child(even) .year { text-align: left; flex: none; }
  .timeline-item .dot, .timeline-item:nth-child(even) .dot { display: none; }
  .timeline-item .content, .timeline-item:nth-child(even) .content { width: calc(100% - 40px); margin-left: 40px; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .side-nav a { padding: 10px 16px; }
  .partner-card { grid-template-columns: 1fr; }
  .partner-card .partner-photo:not(img) { min-height: 240px; }
.partner-card img.partner-photo { width: 100%; height: 320px; object-fit: cover; object-position: center top; border-radius: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .practice-detail-card .pd-list { grid-template-columns: 1fr; }
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
  .page-banner { height: 260px; }
  .page-banner h1 { font-size: 24px; }
  .grid-3, .grid-4, .honor-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 26px; }
  .partner-card .partner-info { padding: 24px; }
  .contact-form-wrap, .practice-detail-card { padding: 24px; }
  .tab-nav { gap: 0; }
  .tab-nav button { padding: 10px 14px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Partner photo */
.partner-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #C9A84C;
  flex-shrink: 0;
}

/* Hero gradient overlay */
.hero {
  background-repeat: no-repeat;
  background-position: center;
}
