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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f8fa;
  color: #2c3e50;
  line-height: 1.6;
}

/* HEADER */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Menu Toggle (mobile) */
.menu-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #2c3e50;
}

/* NAVIGATION */
.main-menu {
  display: none;
  flex-direction: column;
  margin-top: 1rem;
}

.main-menu a {
  padding: 0.6rem;
  color: #1a73e8;
  font-weight: 500;
  transition: background 0.3s ease;
  text-decoration: none;
}

.main-menu a:hover {
  background-color: #f0f0f0;
}

.main-menu.show {
  display: flex;
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .main-menu {
    display: flex !important;
    flex-direction: row;
    margin-top: 0;
    gap: 1.2rem;
  }

  .menu-toggle {
    display: none;
  }
}

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

/* ARTICLE CARD */
.article-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.article-card h1,
.article-card h2 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.2rem;
  
}
.meta a {
  text-decoration: none;
}

.intro {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* IMAGE */
.article-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  display: block;
  margin: 1rem auto;
}

/* CTA Buttons */
.cta-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.cta-buttons .button {
  display: block;
  background: #007bff;
  color: white;
  padding: 0.9rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: background 0.3s;
  text-decoration: none;
}

.cta-buttons .button:hover {
  background: #0056b3;
}

/* Search Style Buttons */
.search-style-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-style-buttons .button {
  background-color: #e3f2fd;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid #bbdefb;
  transition: background-color 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.search-style-buttons .button:hover {
  background-color: #cbe3fc;
  cursor: pointer;
}

/* FAQ Section Styles */
#faq {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#faq h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

#faq details {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#faq details:hover {
    border-color: #007BFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#faq summary {
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

#faq summary::-webkit-details-marker {
    display: none;
}

#faq summary::after {
    content: '➕';
    float: right;
    transition: transform 0.3s ease;
}

#faq details[open] summary::after {
    content: '➖';
    transform: rotate(180deg);
}

#faq p {
    margin: 10px 0 0;
    line-height: 1.5;
    color: #555;
}

/* Sponsored Ads Grid */
.sponsored-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}


.ad-box {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 10px;
  background-color: #fefefe;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.ad-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.ad-box p {
  font-size: 0.95rem;
  margin-top: 0.8rem;
  color: #2d2d2d;
  font-weight: 500;
}

/* SPINNER */
.spinner {
  margin: 1rem auto;
  width: 32px;
  height: 32px;
  border: 3px solid #ccc;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* LEGAL PAGE */
.legal-page {
  padding: 20px;
}

.legal-page h1,
.legal-page h2 {
  margin-bottom: 16px;
  color: #007acc;
}

.legal-page p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.6;
}

.meta a.category {
  background: #e3f2fd;
  padding: 2px 8px;
  border-radius: 5px;
  color: #007acc;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.meta a.category:hover {
  background: #d0e7fc;
}

.legal-page ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.legal-page ul li {
  list-style: disc;
  font-size: 15px;
  line-height: 1.5;
}

/* ATTORNEY SECTION */
.attorney-section {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  margin: 30px 0;
  border-left: 5px solid #8e44ad;
}

.attorney-section h2 {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.attorney-section p {
  margin-bottom: 16px;
  color: #444;
  font-size: 1rem;
}

/* FOOTER */
.site-footer {
  background: #f0f0f0;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ddd;
  margin-top: 3rem;
}

/* ABOUT PAGE */
.about-page {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  max-width: 850px;
  margin: 2rem auto;
}

.about-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #007acc;
  text-align: center;
}

.about-page p {
  font-size: 1rem;
  margin-bottom: 1.4rem;
  color: #333;
  line-height: 1.7;
}
/* SUPPORT FOR ABOUT PAGE HEADER IF STRUCTURE IS DIFFERENT */
header:not(.site-header) {
  background-color: #ffffff;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 2rem;
  text-align: center;
}

header h1 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

header nav a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

header nav a:hover {
  background-color: #f0f0f0;
}


/* Reuse footer and header from existing styles */


.footer-links a {
  margin: 0 0.6rem;
  color: #1a73e8;
  text-decoration: none;
}

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

/* TERMS PAGE STYLING */
.terms-page {
  max-width: 850px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.terms-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  border-bottom: 2px solid #007acc;
  padding-bottom: 0.5rem;
}

.terms-page h2 {
  font-size: 1.4rem;
  color: #007acc;
  margin-top: 1.8rem;
  margin-bottom: 1rem;
}

.terms-page p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #444;
}

.term-footer {
  background-color: #f8f8f8;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  border-top: 1px solid #ddd;
  margin-top: 3rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

.keyword-section {
  background-color: #f9f9f9;
  padding: 20px;
  margin-top: 30px;
  border-radius: 8px;
}

.keyword-section h2 {
  margin-bottom: 10px;
  color: #333;
}

.keyword-section ul {
  list-style: disc;
  padding-left: 20px;
}

.keyword-section li {
  line-height: 1.6;
  font-size: 16px;
  color: #444;
}

.sponsored-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Privacy Section Styling Only */

.privacy-section {
  background-color: #fff;
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: Arial, sans-serif;
}

.privacy-title {
  font-size: 26px;
  color: #003366;
  margin-bottom: 20px;
  border-bottom: 2px solid #003366;
  padding-bottom: 10px;
}

.privacy-text {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}


/* Bidvertiser Ad Container */
.ad-container {
    margin: 20px 0;
}

/* Make ad images responsive */
.ad-container img {
    max-width: 100% !important;
    height: auto !important;
}

/* Desktop: 4 ads per row */
@media (min-width: 992px) {
    .ad-container>div {
        width: 25% !important;
        display: inline-block !important;
        vertical-align: top !important;
    }
}

/* Tablet: 2 ads per row */
@media (min-width: 600px) and (max-width: 991px) {
    .ad-container>div {
        width: 50% !important;
        display: inline-block !important;
        vertical-align: top !important;
    }
}

/* Mobile: 1 ad per row */
@media (max-width: 599px) {
    .ad-container>div {
        width: 100% !important;
        display: block !important;
    }
}


/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  .cta-buttons {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .header-content {
    flex-direction: column;
    gap: 10px;
  }
  .main-menu a {
    padding: 0.8rem;
    text-align: center;
  }
  .cta-buttons {
    grid-template-columns: 1fr;
  }
  .sponsored-ads-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  .article-card {
    padding: 1.2rem;
  }
  .attorney-section {
    padding: 20px;
  }
  .ad-box {
    padding: 0.8rem;
  }
  .legal-page {
    padding: 16px;
  }
}
