/* TripVault Blog Stylesheet — Static HTML */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700&family=DM+Sans:wght@400;500&display=swap');

/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables */
:root {
  --navy: #0D2137;
  --orange: #E8581A;
  --teal: #1A7A6E;
  --body-text: #333333;
  --bg: #F8F8F8;
}

/* Base Typography */
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--body-text);
  background-color: var(--bg);
}

/* Headings */
h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.75em;
}

h1 {
  font-weight: 700;
  font-size: 2.5rem;
}

h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-top: 1.5em;
}

h3 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 1.5em;
}

/* Links */
a {
  color: var(--teal);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Navigation */
nav {
  background-color: var(--navy);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--orange);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--teal);
  font-weight: 500;
}

nav a:hover {
  color: white;
}

/* Article Layout */
article {
  max-width: 740px;
  margin: 3rem auto;
  padding: 0 24px;
  background-color: white;
  border-radius: 12px;
  padding: 2.5rem;
}

article p {
  margin-bottom: 1.25em;
}

article ul, article ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25em;
}

article li {
  margin-bottom: 0.5em;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Budget Table */
.budget-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.budget-table thead {
  background-color: var(--navy);
  color: white;
}

.budget-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.budget-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
}

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

.budget-table tfoot tr {
  background-color: var(--orange);
  color: white;
  font-weight: 600;
}

.budget-table tfoot td {
  border-bottom: none;
}

/* Affiliate CTA Button */
.affiliate-cta {
  display: inline-block;
  background-color: var(--teal);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.affiliate-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 122, 110, 0.3);
  opacity: 1;
}

/* App CTA Block */
.app-cta {
  background-color: var(--navy);
  color: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
}

.app-cta h3 {
  color: white;
  margin-bottom: 1rem;
}

.app-cta p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.app-cta-button {
  display: inline-block;
  background-color: var(--orange);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 88, 26, 0.3);
  opacity: 1;
}

/* Article Card (for homepage) */
.article-card {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 1.5rem;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.article-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.article-card .meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.article-card p {
  margin-bottom: 1rem;
}

.article-card a {
  color: var(--navy);
  font-weight: 500;
}

/* Blog Index */
.blog-index {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 24px;
}

.blog-index h1 {
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background-color: var(--navy);
  color: white;
  padding: 40px 24px;
  margin-top: 4rem;
}

footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

footer a {
  color: var(--teal);
}

footer a:hover {
  color: white;
}

footer .footer-links {
  display: flex;
  gap: 2rem;
}

.footer-disclaimer {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

/* Article Meta */
.article-meta {
  color: #666;
  font-size: 14px;
  margin: -16px 0 32px 0;
}

/* FAQ Section */
.faq-section {
  margin: 48px 0;
  padding: 32px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid #E8581A;
}

.faq-section h2 {
  margin-bottom: 24px;
}

.faq-item {
  margin-bottom: 24px;
}

.faq-item h3 {
  font-size: 17px;
  color: #0D2137;
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
  color: #333;
}

/* Mobile Responsive — 768px breakpoint */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  nav {
    padding: 12px 16px;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  article {
    margin: 1.5rem auto;
    padding: 1.5rem;
  }

  .budget-table {
    font-size: 0.875rem;
  }

  .budget-table th,
  .budget-table td {
    padding: 8px 12px;
  }

  .app-cta {
    padding: 24px;
  }

  .affiliate-cta,
  .app-cta-button {
    display: block;
    width: 100%;
    text-align: center;
  }

  footer .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  footer .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .blog-index {
    padding: 0 16px;
  }
}
