:root {
  --bg-mint: #E8F3ED;
  --bg-white: #FFFFFF;
  --forest-green: #1A3B32;
  --text-slate: #4A5568;
  --accent-teal: #38B2AC;
  --shadow-light: 0 4px 6px rgba(26, 59, 50, 0.05);
  --shadow-medium: 0 10px 25px rgba(26, 59, 50, 0.08);
  --radius-card: 16px;
  --radius-pill: 50px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-mint);
  color: var(--text-slate);
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

/* Dashboard Sidebar */
.dashboard-sidebar {
  width: 280px;
  background-color: var(--forest-green);
  color: var(--bg-white);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  letter-spacing: 1px;
}

.brand span {
  color: var(--accent-teal);
}

.tab-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 15px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

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

.tab-btn.active {
  background-color: var(--accent-teal);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(56, 178, 172, 0.4);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
}
.legal-links a:hover {
  color: var(--accent-teal);
}

/* Dashboard Content Area */
.dashboard-content {
  margin-left: 280px;
  flex: 1;
  padding: 50px;
  max-width: 1200px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-content.active {
  display: block;
}

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

/* Typography & Layout elements */
h1, h2 {
  color: var(--forest-green);
  margin-bottom: 20px;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }

.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-medium);
  margin-bottom: 30px;
}

/* About Tab */
.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  text-align: justify;
}

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

.article-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-body {
  padding: 30px;
}

.article-body h3 {
  color: var(--forest-green);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.article-body p {
  font-size: 0.95rem;
  text-align: justify;
}

/* Forms */
.form-card {
  max-width: 600px;
}

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

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid transparent;
  background-color: var(--bg-mint);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-slate);
  transition: border-color 0.3s, background-color 0.3s;
}

textarea.form-control {
  border-radius: var(--radius-card);
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-teal);
  background-color: var(--bg-white);
}

.btn-submit {
  background-color: var(--forest-green);
  color: var(--bg-white);
  border: none;
  padding: 15px 35px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

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

.btn-submit:active {
  transform: scale(0.98);
}

/* Legal Pages (Overrides) */
.legal-page .dashboard-sidebar {
  display: flex;
}
.legal-page .dashboard-content {
  max-width: 1000px;
}

.legal-card h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  border-bottom: 1px solid var(--bg-mint);
  padding-bottom: 15px;
}

.legal-card ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.legal-card li {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    width: 220px;
  }
  .dashboard-content {
    margin-left: 220px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .dashboard-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px;
  }
  .tab-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .tab-btn {
    padding: 10px 15px;
  }
  .dashboard-content {
    margin-left: 0;
    padding: 20px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
