/* ------------------------------
   Global Base Styles
------------------------------ */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #fafafa;
  color: #222;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ------------------------------
   Layout Container
------------------------------ */

.tb-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
}

.tb-content {
  width: 100%;
  min-width: 0;
}

.tb-content * {
  max-width: 100%;
  box-sizing: border-box;
}

/* ------------------------------
   Sidebar
------------------------------ */

.tb-sidebar {
  width: 300px;
  min-width: 300px;   /* ⭐ Prevents collapse — REQUIRED for AdSense */
  padding: 1rem;
  flex-shrink: 0;     /* ⭐ Prevents grid from shrinking sidebar */
}

/* Sticky sidebar on desktop */
@media (min-width: 769px) {
  .tb-sidebar {
    position: sticky;
    top: 1rem;
  }
}

.tb-sidebar .sidebar-links a {
  display: block;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Hide sidebar on small screens */
@media (max-width: 768px) {
  .tb-sidebar {
    display: none;
  }
}

/* ------------------------------
   Header
------------------------------ */

.tb-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem;
}

.tb-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.tb-nav a {
  font-weight: bold;
}

/* ------------------------------
   Footer
------------------------------ */

.tb-footer {
  background: #333;
  color: #fff;
  padding: 2rem 1rem;
}

.tb-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  margin-left: 1rem;
  color: #fff;
}

/* ------------------------------
   Responsive Tweaks
------------------------------ */

@media (max-width: 768px) {

  /* Header nav */
  .tb-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .tb-nav a {
    margin-left: 0;
    font-size: 0.9rem;
  }

  /* Main layout — FIXED VERSION */
  .tb-main-layout {
    grid-template-columns: 1fr; /* Collapse to single column */
    padding: 1rem;
  }

  .tb-content {
    max-width: 100%;  /* Allow full width on mobile */
    margin: 0;
  }

  /* Footer */
  .tb-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    margin-top: 1rem;
  }
}

/* ------------------------------
   Hero Section
------------------------------ */

.tb-hero {
  background: linear-gradient(135deg, #f4a261, #e76f51);
  color: #fff;
  padding: 3rem 1.5rem;
}

.tb-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.tb-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.tb-hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.tb-hero-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #1b1b1b;
  color: #fff;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
}

.tb-hero-button:hover {
  background: #000;
}
