/* ============================================================
   Tower360 blog styles — sourced directly from HubSpot
   News_Blog_2024.css and Tower360_August2019-style.css
   ============================================================ */

:root {
  --t360-blue: #0053f5;
  --t360-blue-light: #2199fc;
  --t360-green: #1bc965;
  --t360-green-dark: #00ae4a;
  --ink: #0f1c3b;
  --body: #212529;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --footer-bg: #f1f3f8;
  --footer-border: #cddbf1;
  --card-border: #e4e4e3;
  --gradient: linear-gradient(286deg, #0053f5, #2199fc);
  --gradient-hover: linear-gradient(103deg, #1bc965, #00ae4a);
  --container: 1230px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { line-height: 1.15; scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--t360-blue); text-decoration: none; }
a:hover, a:focus { color: var(--t360-blue-light); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: 32px; font-weight: 600; line-height: 1.38; }
h2 { font-size: 32px; font-weight: 700; line-height: 1.38; color: var(--ink); }

.container, .wrapper {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header (header_2024) — WHITE background ───────────── */

.site-header {
  background: #ffffff;
  padding: .5rem 1rem;
  border-bottom: 1px solid #f0f0f3;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-header .logo img {
  height: 40px;
  width: auto;
  display: block;
}
.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.primary-nav > ul > li { position: relative; }
.primary-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a:hover { color: var(--t360-blue); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--t360-blue); }
.primary-nav .chev { font-size: 10px; line-height: 1; }
.primary-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 0;
  min-width: 220px;
  list-style: none;
  margin: 8px 0 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 200;
}
.primary-nav li:hover > .submenu { display: block; }
.primary-nav .submenu li { width: 100%; }
.primary-nav .submenu a {
  display: block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
}
.primary-nav .submenu a:hover { background: var(--bg-soft); }

.btn-style {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: var(--gradient);
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background-image .15s ease-in-out, color .15s ease-in-out;
  white-space: nowrap;
}
.btn-style:hover { background-image: var(--gradient-hover); color: #ffffff !important; }
.nav-button { margin-left: 0; }

/* ─── Hero / Banner_v2 — blue gradient with white H1 ────── */

.resources-hero {
  background: var(--gradient);
  padding: 80px 0 110px;
  color: #ffffff;
}
.resources-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
  text-align: left;
}

/* ─── Cards grid (Blog Listing 2024) ─────────────────────── */

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 80px;
}
.post-card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.post-card:hover {
  border-color: var(--t360-blue);
  box-shadow: 0 2px 11px 0 rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}
.post-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 5s cubic-bezier(.4, 0, .2, 1);
}
.post-card:hover .post-card__image img { transform: scale(1.08); }
.post-card__body { padding: 22px 24px 26px; }
.post-card__body h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 10px;
  transition: color .2s;
}
.post-card:hover .post-card__body h2 { color: var(--t360-blue); }
.post-card__body p {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Category chip (production blog overlay style) ─────── */

.category-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.18), 0 0 2px 0 rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
}
.category-chip--white { background: rgba(255, 255, 255, 0.95); color: var(--ink); }
.category-chip--blue { background: var(--t360-blue); color: #ffffff; }
.category-chip--purple { background: #7c3aed; color: #ffffff; }
.category-chip--green { background: var(--t360-green); color: #ffffff; }
.category-chip--amber { background: #f59e0b; color: #ffffff; }

/* ─── Single post page ───────────────────────────────────── */

.post {
  max-width: 820px;
  padding-top: 56px;
  padding-bottom: 80px;
}
.post .category-chip {
  position: static;
  box-shadow: none;
  margin-bottom: 16px;
  background: #eef4ff;
  color: var(--t360-blue);
  backdrop-filter: none;
}
.post h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 8px 0 12px;
}
.post time { display: block; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.post-hero { margin: 0 0 36px; border-radius: 8px; overflow: hidden; }
.post-hero img { width: 100%; height: auto; display: block; }
.post-body { font-size: 16px; line-height: 1.6; color: var(--body); }
.post-body p { margin: 18px 0; }
.post-body h2 { font-size: 28px; font-weight: 700; color: var(--ink); margin: 40px 0 12px; }
.post-body h3 { font-size: 22px; margin: 32px 0 10px; }
.post-body h4 { font-size: 18px; margin: 24px 0 8px; }
.post-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--t360-blue);
  font-style: italic;
  color: #334155;
}
.post-body figure { margin: 32px 0; }
.post-body figure img { max-width: 100%; height: auto; border-radius: 8px; }
.post-body figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
.post-body a { color: var(--t360-blue); text-decoration: underline; }

.callout {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--t360-blue);
  background: #eef4ff;
  border-radius: 8px;
}
.callout--tip { background: #ecfdf5; border-color: var(--t360-green); }
.callout--warning { background: #fffbeb; border-color: #f59e0b; }
.callout--stat { background: var(--ink); color: #ffffff; border-color: var(--ink); text-align: center; }
.callout h4 { margin: 0 0 8px; font-size: 16px; color: inherit; }
.callout p { margin: 0; }

.cta-wrapper { text-align: center; margin: 36px 0; }
.cta {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  background-image: var(--gradient);
  color: #ffffff;
  transition: background-image .15s;
}
.cta:hover { background-image: var(--gradient-hover); color: #ffffff; text-decoration: none; }
.cta--secondary { background: transparent; background-image: none; color: var(--t360-blue); border: 2px solid var(--t360-blue); }

.video-embed { margin: 32px 0; aspect-ratio: 16 / 9; }
.video-embed iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }

.post-author {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}
.post-author img { width: 56px; height: 56px; border-radius: 999px; }
.post-author strong { color: var(--ink); }
.post-author span { display: block; color: var(--muted); font-size: 13px; }

/* ─── Footer (footer_2024) ───────────────────────────────── */

.site-footer {
  background: var(--footer-bg);
  color: var(--ink);
  padding: 60px 0 32px;
  margin-top: 0;
}
.footer_2024-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}
.site-footer h4 {
  font-family: 'Montserrat', sans-serif;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; }
.site-footer ul a {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: normal;
  text-decoration: none;
  transition: color .15s;
}
.site-footer ul a:hover { color: var(--t360-blue); text-decoration: none; }

.max_fbottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 24px 0;
  margin-top: 30px;
  border-top: 2px solid var(--footer-border);
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-bottom-left .footer-logo img { height: 36px; width: auto; display: block; }
.footer-bottom-left .max_copyright {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.socials {
  display: flex;
  gap: 20px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--t360-blue-light);
  transition: color .15s;
  text-decoration: none;
}
.socials a:hover { color: var(--t360-green-dark); }
.max_privacy {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}
.max_privacy a { color: var(--ink); text-decoration: none; }
.max_privacy a:hover { color: var(--t360-blue); }

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 999px) {
  .resources-hero { padding: 60px 0 80px; }
  .resources-hero h1 { font-size: 32px; }
  .primary-nav ul { gap: 18px; }
  .footer_2024-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .max_fbottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .site-header .container { flex-wrap: wrap; }
  .primary-nav { width: 100%; }
  .primary-nav ul { flex-wrap: wrap; gap: 14px; }
  .primary-nav .submenu { position: static; box-shadow: none; border: none; margin-left: 16px; }
  .resources-hero h1 { font-size: 26px; }
  .post h1 { font-size: 32px; }
  .footer_2024-grid { grid-template-columns: 1fr; }
}

/* ─── Language switcher + header actions ────────────────── */

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none !important;
  letter-spacing: 0.04em;
  padding: 6px 4px;
}
.lang-switch span {
  opacity: 0.45;
  transition: opacity .15s, color .15s;
}
.lang-switch span.active {
  opacity: 1;
  color: var(--t360-blue);
}
.lang-switch .sep {
  opacity: 0.3;
  font-weight: 400;
}
.lang-switch:hover span:not(.active) {
  opacity: 0.75;
}

@media (max-width: 640px) {
  .header-actions { width: 100%; justify-content: space-between; margin-top: 8px; }
}

.post-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a2a5e, #0053f5);
  background-image: linear-gradient(135deg, #0a2a5e, #0053f5),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06) 0%, transparent 50%);
}
