* {
  box-sizing: border-box;
  max-width: 100%;
}
/* === GLOBAL MOBILE OVERFLOW FIX === */
html {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f4f6f9 0%, #e9ecef 100%);
  margin: 0;
  color: #212529;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

/* NAVBAR */
.main-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* BRAND */
.brand-wrap {
  display: flex;
  flex-direction: column;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0d6efd;
}

.brand-title {
  margin: 0;
}

.subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* MENU */
.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #212529;
}

.nav-links a:hover {
  color: #0d6efd;
}

/* TOGGLE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    color: black;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    padding: 8px 0;
  }
}

/* CONTENT */
.container{max-width:1100px;margin:auto;padding:10px 15px 15px}
h1{font-size:1.8rem;margin-bottom:4px}

.preview-grid{margin-top:24px;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.card{background:#fff;border-radius:14px;padding:16px;box-shadow:0 6px 20px rgba(0,0,0,.05)}
.icon{font-size:34px;margin-bottom:6px}
.browse-btn{padding:10px 16px;border-radius:8px;background:#0d6efd;color:#fff;text-decoration:none;display:inline-block}
.browse-btn:hover{background:#0b5ed7}
.ad-box {
  height: 90px;
  max-width: 728px;
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  text-align: center;
  line-height: 90px;
  border-radius: 12px;
  color: #6c757d;
  font-size: 14px;
  border: 2px dashed #ced4da;
  font-weight: 500;
  margin: 5px auto; 
  aspect-ratio: 728 / 90;
}
/* Force ad iframe to scale */
.ad-box iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
  .ad-box {
    max-width: 100%;
    aspect-ratio: 320 / 50;   /* common mobile banner ratio */
  }
}
.site-footer {
  background: #0f172a;
  color: #cbd5f5;
  margin-top: 0px;
  padding: 15px 20px 30px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  line-height: 1.6;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  color: #cbd5f5;
  text-decoration: none;
  margin-bottom: 8px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: #94a3b8;
}
.footer-bottom a {
  color: #38bdf8;
  text-decoration: none;
  margin: 0 6px;
  font-weight: 500;
}

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

/* Mobile */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #e5e7eb;
  padding: 14px 20px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -5px 20px rgba(0,0,0,.25);
}

.cookie-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
}

.cookie-content a {
  color: #38bdf8;
  text-decoration: none;
}

.cookie-content button {
  background: #38bdf8;
  border: none;
  color: #020617;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-content button:hover {
  opacity: 0.9;
}

@media (max-width: 700px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
/* Header Brand Area */
/* Brand wrapper */
.brand-wrap {
  display: flex;
  flex-direction: column;
}

/* Brand title (logo row) */
.brand-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* 🔥 Force left alignment */
}

/* Logo */
.site-logo {
  height: 42px;
  width: auto;
  display: block;
  margin: 0;                    /* 🔥 Remove weird spacing */
  padding: 0;
  transition: all 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.05);
}

/* Tablet */
@media (max-width: 992px) {
  .site-logo { height: 38px; }
}

/* Mobile */
@media (max-width: 600px) {
  .site-logo { height: 32px; }
}

/* Small phones */
@media (max-width: 400px) {
  .site-logo { height: 28px; }
}
