@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #1e3a8a; /* Professional Dark Navy */
  --primary-hover: #172554;
  --secondary-color: #0f172a; /* Slate Black */
  --accent-color: #d97706; /* Premium Amber Gold */
  --accent-light: #f59e0b;
  --text-dark: #0f172a;
  --text-light: #475569;
  --bg-light: #f8fafc; /* Crisp Soft Slate */
  --bg-white: #ffffff;
  --border-color: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.forum-body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Top bar */
.top-bar {
  background-color: var(--secondary-color);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.top-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-link {
  color: var(--bg-light);
  text-decoration: none;
  font-weight: 600;
}

.phone-link:hover {
  color: var(--accent-light);
}

/* Header styling */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-monogram {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--primary-color);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent-color);
}

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

.logo-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
}

.header-nav .nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.nav-forum-tab {
  color: var(--primary-color);
}

.header-nav a.nav-cta {
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.header-nav a.nav-cta:hover {
  background-color: var(--accent-light);
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
  border-bottom: 4px solid var(--accent-color);
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(217, 119, 6, 0.2);
  border: 1px solid var(--accent-color);
  color: var(--accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: none;
}

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

.btn-outline {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

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

/* Main Grid & Layout */
.main-content-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

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

/* Sidebar styling */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--primary-color);
  border-bottom: 1.5px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-form .form-group {
  margin-bottom: 1rem;
}

.sidebar-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.sidebar-form input,
.sidebar-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
}

.btn-submit {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
}

.links-widget ul {
  list-style: none;
}

.links-widget li {
  margin-bottom: 0.75rem;
}

.links-widget a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Normal Articles */
.main-article {
  background-color: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.article-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--primary-color);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

/* Forum Board App Styling */
.forum-app {
  background-color: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.forum-app-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary-color);
}

.forum-intro p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Filters */
.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--bg-light);
  padding: 0.75rem;
  border-radius: var(--radius-md);
}

.filter-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-right: 0.5rem;
}

.filter-tag {
  background-color: white;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tag:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.filter-tag.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Thread list */
.thread-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thread-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background-color: var(--bg-white);
  transition: all 0.2s;
  cursor: pointer;
  gap: 1.5rem;
}

.thread-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.thread-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.thread-category-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  background-color: rgba(217, 119, 6, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.thread-title-link {
  font-size: 1.15rem;
  color: var(--secondary-color);
  font-weight: 600;
}

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

.thread-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

.thread-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  min-width: 70px;
}

.stat-count {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
}

/* Modals */
.forum-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

#forum-new-thread-form .form-group {
  margin-bottom: 1.25rem;
}

#forum-new-thread-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

#forum-new-thread-form input,
#forum-new-thread-form select,
#forum-new-thread-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

/* Thread Detail View */
.thread-detail-container {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  padding: 2rem;
  margin-bottom: 2rem;
}

.thread-detail-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.thread-detail-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

.thread-detail-desc {
  font-size: 1.05rem;
  color: #334155;
  background-color: var(--bg-light);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-color);
}

.replies-count-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.replies-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.reply-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reply-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reply-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.reply-author-meta h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.reply-role-badge {
  font-size: 0.7rem;
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary-color);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.reply-content {
  font-size: 0.95rem;
  color: #334155;
}

.add-reply-box {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
}

.add-reply-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.add-reply-box textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

/* Footer Section */
.site-footer {
  background-color: var(--secondary-color);
  color: #94a3b8;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--primary-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

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

.footer-col h4 {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: white;
}

.disclaimer-text {
  font-size: 0.8rem !important;
  color: #64748b;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.85rem;
}
