/* ROOT COLORS */
:root {
  --green-dark: #004d33;
  --green: #007a4d;
  --beige: #fdf8ee;
  --gold: #d4b15b;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
}

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

body {
  font-family: 'Roboto', sans-serif;
  background: var(--beige);
  color: var(--text-dark);
  line-height: 1.6;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
}

/* HEADER */
header {
  background: var(--green-dark);
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
header img.accounting_questions_logo {
    max-width:300px;
    height:auto;
}
header .logo {
    float:right;
    text-align: right;X
}
.logo h1 {
  color: var(--gold);
  font-size: 2.2rem;
  margin: 0;
}

.logo p {
  color: #cdecd2;
  margin-top: 0.3rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

nav a {
  color: #e2ffe6;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.3rem 0;
  opacity: 0.85;
  transition: 0.2s;
}

nav a:hover,
nav a.active {
  opacity: 1;
}

nav a.active::after,
nav a:hover::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gold);
  position: absolute;
  bottom: -4px;
  left: 0;
}

/* MAIN CONTENT */
main {
  padding: 2rem 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.main-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* SIDEBAR */
.sidebar {
  margin-top: 2rem;
}

.sidebar > div {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
  color: var(--green-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--beige);
}

.sidebar h4 {
  color: var(--green);
  margin-bottom: 0.5rem;
}

.sidebar ul {
  list-style: none;
  padding-left: 0.5rem;
}

.sidebar li {
  margin-bottom: 0.8rem;
}

.sidebar a {
  color: var(--text-dark);
  text-decoration: none;
}

.sidebar a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* BUTTONS */
.button {
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  transition: 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: var(--text-light);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.button.primary:hover {
  background: var(--green-dark);
  color: var(--text-light);
}


.button.secondary {
  background: #fff;
  color: var(--text-dark);
  border: 2px solid #ccc;
}

.button.secondary:hover {
  background: #f2f2f2;
}

/* CALCULATOR STYLES */
.calculator-article h1 {
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

.article-section {
  margin-bottom: 2rem;
}

.article-section h2 {
  color: var(--green);
  margin-bottom: 1rem;
}

.calculator-block {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border: 1px solid #eee;
}

.calculator-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.calculator-results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #f0f0f0;
}

.result-item span:first-child {
  font-weight: 500;
}

.result-item span:last-child {
  font-weight: 700;
  color: var(--green-dark);
}

/* TABLES */
.table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  background: var(--green-dark);
  color: var(--text-light);
  padding: 0.8rem;
  text-align: left;
}

.comparison-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #eee;
}

.comparison-table tr:nth-child(even) {
  background: #f9f9f9;
}

/* EXPERT QUOTES */
.expert-quote {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
}

.expert-quote img {
  max-width: 120px;
  border-radius: 50%;
  margin-bottom: 1rem;
  align-self: center;
}

.expert-quote blockquote {
  font-style: italic;
  margin: 1rem 0;
  position: relative;
}

.expert-quote blockquote p {
  font-size: 1.1rem;
}

.expert-quote cite {
  font-weight: 700;
  color: var(--green-dark);
  font-style: normal;
  display: block;
  margin-top: 0.5rem;
}

.expert-quote p {
  margin-top: 0.5rem;
}

.image-attribution {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.5rem;
  align-self: center;
}

/* CHECKLIST */
.checklist {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid var(--green);
}

.checklist h3 {
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.checklist ul {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  margin-bottom: 0.8rem;
  padding-left: 2rem;
  position: relative;
}

.checklist li:before {
  content: "✓";
  color: var(--green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* FOOTER */
footer {
  background: var(--green-dark);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

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

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

.footer-section ul {
  list-style: none;
  padding: 0;
}

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

.footer-section a {
  color: #cdecd2;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  color: #cdecd2;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .calculator-form {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Q&A STYLES */
.qa-article h1 {
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

.qa-article .article-meta {
  color: #777;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.qa-article h2 {
  color: var(--green);
  margin: 2rem 0 1rem;
}

.qa-article h3 {
  color: var(--green-dark);
  margin: 1.5rem 0 1rem;
}

.qa-article p {
  margin-bottom: 1.2rem;
}

.qa-article ul, .qa-article ol {
  margin: 1.2rem 0;
  padding-left: 1.5rem;
}

.qa-article li {
  margin-bottom: 0.5rem;
}

.qa-article .highlight-box {
  background: #f0f7f4;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid var(--green);
}

.qa-article .highlight-box h3 {
  margin-top: 0;
}

/* RELATED CONTENT */
.related-content {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.related-content h3 {
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: #f9f9f9;
  padding: 1.2rem;
  border-radius: 8px;
  transition: transform 0.2s;
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-card h4 {
  margin-bottom: 0.8rem;
}

.related-card a {
  color: var(--green-dark);
  text-decoration: none;
}

.related-card a:hover {
  text-decoration: underline;
}

.related-card p {
  font-size: 0.9rem;
  color: #555;
}
