/* ==========================================================================
   BEEJACK.COM — MOBILE REDESIGN v2
   No display:flex on table rows. Tables stay as tables.
   ========================================================================== */

@media screen and (max-width: 768px) {

/* ===== FOUNDATIONS ===================================================== */
html, body { max-width: 100vw !important; overflow-x: hidden !important; }
*, *::before, *::after { box-sizing: border-box; }
body { font-size: 16px !important; line-height: 1.5 !important; color: #222 !important; -webkit-text-size-adjust: 100%; }

/* ===== LAYOUT — single column ========================================= */
body .container-12, body .container-16 { width: 100% !important; padding: 0 !important; }
body .grid-1, body .grid-2, body .grid-3, body .grid-4, body .grid-5,
body .grid-6, body .grid-7, body .grid-8, body .grid-9, body .grid-10,
body .grid-11, body .grid-12,
body .container-12 .grid-6, body .container-12 .grid-12 {
  width: 100% !important; float: none !important;
  margin-left: 0 !important; margin-right: 0 !important; position: static !important;
}
body .column { width: 100% !important; float: none !important; position: static !important; }
body .alpha, body .omega { margin-left: 0 !important; margin-right: 0 !important; }
body [class*="push-"], body [class*="pull-"] { left: auto !important; right: auto !important; position: static !important; }

body #page-wrap, body #page, body #main, body #main-content {
  width: 100% !important; float: none !important; padding: 0 16px !important; margin: 0 !important;
}
body #sidebar-left, body #sidebar-right, body .not-front #sidebar-right {
  width: 100% !important; float: none !important; clear: both !important;
  position: static !important; margin: 24px 0 0 !important; padding: 0 16px !important;
}

/* ===== HEADER ========================================================== */
body #header-wrap {
  height: auto !important; background: #1a5276 !important; background-image: none !important;
  padding: 0 !important; margin-bottom: 0 !important;
}
body #site-header {
  width: 100% !important; height: auto !important; overflow: visible !important;
  position: static !important; padding: 16px 16px 0 !important; text-align: center;
}
body #branding { float: none !important; margin: 0 !important; text-align: center; width: 100% !important; }
body #branding a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
body #branding img { max-width: 160px; height: auto; }
body #site-name { display: none !important; }
body #locale-block { display: none !important; }
body #block-block-11 { display: none !important; }

/* --- Pill buttons ------------------------------------------------------ */
body #site-menu { width: 100% !important; float: none !important; padding: 12px 16px 16px !important; overflow: visible !important; }
body ul.main-menu {
  position: static !important; display: flex !important; gap: 8px;
  width: 100% !important; height: auto !important; padding: 0 !important; margin: 0 !important; list-style: none;
}
body ul.main-menu li { flex: 1 1 0%; float: none !important; display: block; height: auto !important; margin: 0 !important; }
body ul.main-menu li a {
  display: flex !important; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 4px !important;
  background: rgba(255,255,255,0.15) !important; background-image: none !important;
  border: 1px solid rgba(255,255,255,0.3) !important; border-radius: 8px !important;
  width: auto !important; height: auto !important;
  font-size: 11px !important; font-weight: 700 !important; color: #fff !important;
  text-decoration: none !important; text-align: center; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.2 !important;
}

/* --- Secondary nav ----------------------------------------------------- */
body #site-subheader {
  width: 100% !important; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: #f0f4f7 !important; border-bottom: 1px solid #d0d8df;
}
body #site-subheader .menu { display: flex; flex-wrap: nowrap; padding: 0; margin: 0; list-style: none; white-space: nowrap; }
body #site-subheader .menu li { float: none !important; display: block; height: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; }
body #site-subheader .menu li a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; font-size: 14px; white-space: nowrap; color: #23628e; text-decoration: none; }

/* ===== CASINO TABLE — horizontal scroll, native table layout =========== */
body #block-countryorder-0 {
  margin: 16px 0 24px; overflow: visible;
}
body #block-countryorder-0 #title-wrap,
body #title-wrap {
  width: 100% !important; height: auto !important;
  background: #23628e !important; background-image: none !important;
  border-radius: 8px 8px 0 0; margin: 0 !important; padding: 0 !important;
}
body #block-countryorder-0 #title-wrap h2,
body #title-wrap h2 {
  width: 100% !important; height: auto !important;
  background: none !important; background-image: none !important;
  color: #fff !important; font-size: 16px !important; font-weight: 700;
  padding: 12px 16px !important; margin: 0;
}
body #block-countryorder-0 .content {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid #e8ecef; border-top: none;
  border-radius: 0 0 8px 8px; background: #fff;
}

/* Table stays a table — just clean it up */
body table.tableorder7 {
  width: 100% !important; min-width: 500px;
  background-image: none !important; border-collapse: collapse; border-spacing: 0;
}
body table.tableorder7 thead th {
  background: #f0f4f7; color: #23628e; font-size: 12px; font-weight: 700;
  padding: 8px 6px; border-bottom: 2px solid #d0d8df; text-align: left;
  white-space: nowrap;
}
body table.tableorder7 tbody tr { border-bottom: 1px solid #f0f0f0; }
body table.tableorder7 tbody td {
  padding: 10px 6px; vertical-align: middle; font-size: 14px;
  border: none !important; background: none !important;
}
/* Row number column — smaller */
body table.tableorder7 td:nth-child(1) { width: 24px; color: #999; font-size: 12px; text-align: center; }
/* Casino logo */
body table.tableorder7 td:nth-child(2) img { width: 50px; height: auto; border-radius: 4px; display: block; }
/* Casino name */
body table.tableorder7 .field-title { color: #1a5276; font-weight: 600; font-size: 14px; text-decoration: none; }
/* Hide broken star ratings */
body .fivestar-widget-static { display: none !important; }
body table.tableorder7 td:nth-child(4) { display: none; }
/* Bonus + Match */
body table.tableorder7 td:nth-child(5) { font-weight: 700; color: #1a5276; white-space: nowrap; }
body table.tableorder7 td:nth-child(6) { color: #666; font-size: 13px; }
/* Get Bonus button */
body .casino-get-bonus-linko {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 12px;
  background: #23628e !important; color: #fff !important; border-radius: 6px;
  font-size: 12px; font-weight: 600; text-decoration: none; border: none;
  white-space: nowrap;
}
/* Read Review link */
body table.tableorder7 td:nth-child(7) a:not(.casino-get-bonus-linko) {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 6px 8px;
  color: #23628e; font-size: 12px; text-decoration: none; white-space: nowrap;
}
body .sticky-header { display: none !important; }

/* More Casinos */
body .more-link a {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px; margin-top: 8px;
  background: #f0f4f7; color: #23628e; border-radius: 8px;
  font-weight: 600; font-size: 14px; text-decoration: none;
}

/* ===== ARTICLE NODES — card layout ===================================== */
body .casino-review-block4 {
  float: none !important; width: 100% !important;
  margin: 0 0 16px !important; clear: both;
}
/* Hide duplicate casino tables in subsequent nodes */
body.front .node ~ .node .casino-review-block4 { display: none !important; }

body .node {
  background: #fff !important;
  border-radius: 10px;
  padding: 16px !important;
  margin-bottom: 16px !important;
  border: 1px solid #e8ecef;
  overflow: visible !important;
}
body .node h2 { margin: 0 0 8px !important; }
body .node h2 a { font-size: 18px; line-height: 1.3; color: #1a5276; text-decoration: none; }
body .node .terms { display: none; }
body .node .submitted { display: none; }
body .node .content { width: 100% !important; float: none !important; clear: both; }
body .node .content p { font-size: 15px; line-height: 1.6; color: #444; margin: 0 0 12px; word-wrap: break-word; }
body .node .links { margin-top: 8px; }
body .node .links ul { padding: 0; margin: 0; list-style: none; }
body .node .links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 10px 20px;
  background: #f0f4f7; color: #23628e; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid #d0d8df;
}

/* ===== tableorder56 (inside article nodes) ============================= */
body #title-56 { width: 100% !important; background: none !important; }
body #title-56 h2 {
  width: 100% !important; height: auto !important;
  background: #23628e !important; background-image: none !important;
  color: #fff !important; font-size: 14px !important; font-weight: 700;
  padding: 10px 16px !important; margin: 0; border-radius: 8px 8px 0 0;
}
body .casino-review-block4 { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body table.tableorder56 {
  width: 100% !important; min-width: 380px;
  border-collapse: collapse; background: #fff;
}
body table.tableorder56 thead th {
  background: #f0f4f7; color: #23628e; font-size: 12px; font-weight: 700;
  padding: 8px 6px; border-bottom: 2px solid #d0d8df;
}
body table.tableorder56 tbody tr { border-bottom: 1px solid #f0f0f0; }
body table.tableorder56 tbody td {
  padding: 8px 6px; vertical-align: middle; font-size: 13px;
  border: none !important; background: none !important;
}
body table.tableorder56 td:nth-child(1) { width: 20px; color: #999; font-size: 12px; }
body table.tableorder56 td:nth-child(2) img { width: 40px; height: auto; border-radius: 4px; }
body table.tableorder56 td:nth-child(3) { font-weight: 700; color: #1a5276; }

/* ===== LINKS GRID (block-block-23) ===================================== */
body #block-block-23 { margin-top: 24px; }
body #block-block-23 #title-wrap { margin-bottom: 12px; }
body #block-block-23 table, body #block-block-23 tbody,
body #block-block-23 tr, body #block-block-23 td {
  display: block !important; width: 100% !important;
}
body #block-block-23 td { padding: 0 !important; }
body #block-block-23 td a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 0;
  font-size: 15px; color: #23628e; text-decoration: none;
}
body #block-block-23 p { font-size: 15px; line-height: 1.8; color: #444; }
body #block-block-23 .content > p a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0;
}

/* ===== SIDEBAR CASINO REVIEWS ========================================== */
body .sidebar .block, body #sidebar-right .block { width: 100% !important; margin-bottom: 15px; }
body .view-casinos-reviews-focused .views-row {
  width: 100% !important; float: none !important; position: static !important;
  padding: 16px !important; padding-left: 16px !important; margin-bottom: 12px;
  background: #fff; border: 1px solid #e8ecef; border-radius: 10px; overflow: visible !important;
}
body .view-casinos-reviews-focused .views-row .views-field-field-big-image-fid,
body .view-casinos-reviews-focused .views-row .views-field-nothing,
body .view-casinos-reviews-focused .views-row .views-field-field-raiting-rating {
  position: static !important; width: auto !important; left: auto !important;
}
body .view-casinos-reviews-focused .views-row .views-field-field-big-image-fid img {
  width: 80px; height: auto; border-radius: 8px; float: left; margin: 0 12px 8px 0;
}
body .view-casinos-reviews-focused .views-field-field-visit-url-1 a {
  font-size: 16px; font-weight: 700; color: #1a5276; text-decoration: none;
}
body .view-casinos-reviews-focused .views-field-nothing a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; margin-top: 8px;
  background: #23628e; color: #fff; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
body .view-casinos-reviews-focused .views-field-field-short-review-value {
  clear: both; font-size: 14px; line-height: 1.5; color: #555; margin-top: 8px;
}

/* ===== HIDE ON MOBILE ================================================== */
body #block-block-25 { display: none !important; }
body #block-block-26 { display: none !important; }
body #block-block-24 { display: none !important; }
body #block-block-10 { display: none !important; }
body [id^="block-quicktabs"] { display: none !important; }
body #block-views-uc_products-block_1 { display: none !important; }
body .block-ad { display: none !important; }
body #ad-menu { display: none !important; }
body #page-top, body #page-bot { display: none; }
body .sticky-header { display: none !important; }

/* ===== FOOTER ========================================================== */
body #footer-wrap { clear: both; }
body #footer {
  width: 100% !important; height: auto !important; overflow: visible !important;
  background: #1a5276 !important; background-image: none !important;
  text-align: center; padding: 20px 16px !important;
}
body #footer-bot { height: 0 !important; background: none !important; }
body #footer-region .block { width: 100% !important; float: none !important; }
body #footer p { color: #ccc !important; font-size: 13px; white-space: normal !important; word-wrap: break-word; }
body #footer p a { color: #fff !important; }
body #footer ul.menu { display: flex; flex-wrap: wrap; justify-content: center; padding: 0; margin: 0 0 12px; list-style: none; }
body #footer ul.menu li { float: none !important; padding: 0; }
body #footer ul.menu li a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; color: #fff !important; font-size: 14px; text-decoration: none; }

/* ===== IMAGES + MISC =================================================== */
body img { max-width: 100%; height: auto; }
body .view-general-articles-block_2 { width: 100% !important; }
body .no-sidebars #main { width: 100% !important; }
body #block-menu-secondary-links ul.menu { width: 100% !important; }
body .webform-client-form { width: 100% !important; }
body .webform-client-form .form-text { width: 100% !important; }
body .resizable-textarea, body .resizable-textarea .form-textarea { width: 100% !important; }
}

/* ===== NARROW ========================================================== */
@media screen and (max-width: 480px) {
  body #branding img { max-width: 130px; }
  body ul.main-menu li a { font-size: 10px !important; letter-spacing: 0; }
  body .node h2 a { font-size: 16px; }
}
