:root {
  --color-white: #FFFFFF;
  --color-ice: #F8FAFC;
  --color-graphite: #1E293B;
  --color-slate: #334155;
  --color-blue: #3B82F6;
  --color-border: #E2E8F0;
  --radius-main: 24px;
  --radius-small: 12px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-ice);
  color: var(--color-slate);
  line-height: 1.7;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: var(--color-blue);
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Header Area */
.site-header {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-graphite);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.author-name {
  font-size: 1.1rem;
  color: var(--color-blue);
  font-weight: 500;
}

/* Tabbed Navigation */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-slate);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.tab-btn:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.tab-btn.active {
  background-color: var(--color-graphite);
  color: var(--color-white);
  border-color: var(--color-graphite);
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
}

/* Main Content Container */
.main-container {
  flex-grow: 1;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px 80px;
}

/* Tab Content Sections */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

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

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

/* Content Cards */
.content-card {
  background-color: var(--color-white);
  border-radius: var(--radius-main);
  padding: 50px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
}

.content-card h1, .content-card h2 {
  color: var(--color-graphite);
  margin-bottom: 25px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.content-card p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  text-align: justify;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-small);
  margin-bottom: 30px;
  object-fit: cover;
  max-height: 350px;
}

/* Article List in Tab */
.article-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.article-item h3 {
  font-size: 1.5rem;
  color: var(--color-graphite);
  margin-bottom: 15px;
}

/* Contact Form inside Card */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background-color: var(--color-ice);
  color: var(--color-slate);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

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

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background-color: var(--color-blue);
  color: var(--color-white);
  border: none;
  padding: 15px 30px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-submit:hover {
  background-color: #2563EB;
  transform: translateY(-2px);
}

/* Footer Area */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-slate);
  border-top: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.footer-info {
  margin-bottom: 20px;
}

.footer-info p {
  margin-bottom: 5px;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 0.9rem;
  font-weight: 500;
}

.disclaimer-text {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Legal Pages Styling (Single Column Default) */
.legal-card {
  background-color: var(--color-white);
  border-radius: var(--radius-main);
  padding: 50px;
  box-shadow: var(--shadow-soft);
}

.legal-card h1 {
  font-size: 2.2rem;
  color: var(--color-graphite);
  margin-bottom: 10px;
  text-align: center;
}

.legal-card h2 {
  font-size: 1.4rem;
  color: var(--color-blue);
  margin-top: 40px;
  margin-bottom: 15px;
}

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

.back-btn {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .content-card, .legal-card {
    padding: 30px 20px;
  }
  .site-header {
    padding: 40px 20px 20px;
  }
  .tabs-nav {
    gap: 10px;
  }
  .tab-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}
