/*
Theme Name: Como Investir
Theme URI: https://comoinvestir.com
Author: Como Investir
Description: Tema profissional para blog de finanças e investimentos
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: comoinvestir
*/

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  color: #222;
  background: #f5f5f5;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================
   HEADER — BRANCO, LOGO VERDE/AZUL
======================================== */
#masthead {
  background: #ffffff;
  border-bottom: 3px solid #1a7a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

/* LOGO */
.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-title {
  font-size: 21px;
  font-weight: 800;
  color: #1a7a1a;
  letter-spacing: -0.3px;
  line-height: 1;
}

.site-title span {
  color: #0a3d8f;
}

.site-description { display: none; }

/* ========================================
   NAVEGAÇÃO HORIZONTAL
======================================== */
#site-navigation {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-menu li a {
  display: block;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  color: #0a3d8f;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  background: #0a3d8f;
  color: #ffffff;
}

/* Menu mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #0a3d8f;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  color: #0a3d8f;
  font-size: 18px;
  margin-left: auto;
}

/* ========================================
   LAYOUT PRINCIPAL
======================================== */
#content {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

/* ========================================
   BARRA DE PESQUISA
======================================== */
.search-bar {
  background: #1a1a1a;
}

.search-bar form {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  height: 54px;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  color: #ccc;
  font-size: 15px;
  padding: 0 24px;
  outline: none;
}

.search-bar input::placeholder { color: #777; }

.search-bar button {
  background: #2a2a2a;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 0 32px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background .2s;
}

.search-bar button:hover { background: #1a7a1a; }

/* ========================================
   HERO SECTION — 3 COLUNAS
======================================== */
.hero-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.9fr;
  gap: 12px;
  height: 480px;
}

/* Card grande (esquerda) */
.hero-main {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.hero-main img,
.hero-center img,
.hero-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}

.hero-main:hover img,
.hero-center:hover img { transform: scale(1.03); }
.hero-small:hover img  { transform: scale(1.04); }

.hero-main .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.hero-badge {
  display: inline-block;
  background: #1a7a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  width: fit-content;
}

.hero-main h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-main h2 a,
.hero-center h2 a,
.hero-small h3 a {
  color: #fff;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #ccc;
}

.hero-meta .author-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .author-info img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-bookmark {
  margin-left: auto;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
}

/* Card médio (centro) */
.hero-center {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.hero-center .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.80) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.hero-center h2 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}

/* Cards empilhados (direita) */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-small {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
  cursor: pointer;
}

.hero-small .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.hero-small h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ========================================
   GRID DE POSTS
======================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card .card-body {
  padding: 15px;
}

.post-card .cat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a7a1a;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.post-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin-bottom: 8px;
}

.post-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .card-meta {
  font-size: 11px;
  color: #999;
  margin-top: 10px;
}

/* ========================================
   SIDEBAR
======================================== */
#secondary {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.widget {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a7a1a;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f5e9;
  margin-bottom: 15px;
}

/* Categorias na sidebar */
.widget_categories ul {
  list-style: none;
}

.widget_categories ul li {
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.widget_categories ul li:last-child {
  border-bottom: none;
}

.widget_categories ul li a {
  color: #333;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget_categories ul li a:hover {
  color: #1a7a1a;
}

/* Posts recentes */
.widget_recent_entries ul {
  list-style: none;
}

.widget_recent_entries ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  line-height: 1.4;
}

.widget_recent_entries ul li:last-child {
  border-bottom: none;
}

.widget_recent_entries ul li a {
  color: #222;
  font-weight: 500;
}

.widget_recent_entries ul li a:hover {
  color: #1a7a1a;
}

/* ========================================
   PAGINAÇÃO
======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 30px 0;
}

.pagination a, .pagination span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  transition: all 0.2s;
}

.pagination a:hover, .pagination .current {
  background: #1a7a1a;
  color: #fff;
  border-color: #1a7a1a;
}

/* ========================================
   SINGLE POST
======================================== */
.single-post-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 35px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.single-post-wrap .post-header {
  margin-bottom: 25px;
}

.single-post-wrap .post-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a7a1a;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.single-post-wrap h1 {
  font-size: 30px;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
  margin-bottom: 12px;
}

.single-post-wrap .post-meta {
  font-size: 12px;
  color: #999;
}

.single-post-wrap .post-thumbnail {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.single-post-wrap .post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.single-post-wrap .post-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 28px 0 12px;
}

.single-post-wrap .post-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 10px;
}

.single-post-wrap .post-content p {
  margin-bottom: 18px;
}

.single-post-wrap .post-content ul,
.single-post-wrap .post-content ol {
  margin: 15px 0 15px 25px;
}

.single-post-wrap .post-content li {
  margin-bottom: 6px;
}

/* ========================================
   FOOTER — 3 COLUNAS (REFERÊNCIA)
======================================== */
#colophon {
  background: #f4f4f4;
  border-top: 3px solid #ddd;
  margin-top: 50px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

/* Coluna 1 — Logo + empresa */
.footer-col-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-text {
  font-size: 19px;
  font-weight: 800;
  color: #1a7a1a;
}

.footer-logo-text strong { color: #0a3d8f; }

.footer-col-brand p {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

.footer-col-brand a {
  color: #1a7a1a;
  font-weight: 600;
}

/* Coluna 2 — Páginas Obrigatórias */
.footer-col-pages h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a7a1a;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
}

.footer-col-pages ul {
  list-style: none;
}

.footer-col-pages ul li {
  padding: 6px 0;
  border-bottom: 1px solid #e8e8e8;
}

.footer-col-pages ul li:last-child { border-bottom: none; }

.footer-col-pages ul li a {
  font-size: 13px;
  color: #444;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-col-pages ul li a:hover { color: #1a7a1a; }

/* Coluna 3 — Contato */
.footer-col-contact h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a7a1a;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
}

.footer-col-contact p {
  font-size: 13px;
  color: #555;
  line-height: 1.9;
}

.footer-col-contact a {
  color: #0a3d8f;
  font-weight: 600;
}

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

/* Barra inferior */
.footer-bottom {
  background: #e8e8e8;
  border-top: 1px solid #d0d0d0;
  text-align: center;
  padding: 14px 24px;
  font-size: 12px;
  color: #666;
}


/* ========================================
   MEGA-MENU
======================================== */
.nav-menu > li { position: static; }

.mega-menu {
  display: none;
  position: fixed;
  left: 0; right: 0;
  top: 67px;
  background: #1a6e1a;
  padding: 24px 0 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 998;
  animation: fadeDown .18s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-menu > li:hover .mega-menu { display: block; }

.mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mega-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.mega-header h2 { font-size: 18px; font-weight: 700; color: #fff; }

.mega-header a.ver-mais {
  font-size: 13px; color: #a8e6a8; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.mega-header a.ver-mais:hover { color: #fff; }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 0.7fr;
  gap: 16px;
  align-items: start;
}

.mega-card img {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: 6px; margin-bottom: 10px;
  transition: opacity .2s;
}
.mega-card:hover img { opacity: .85; }
.mega-card h3, .mega-card h3 a { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; }
.mega-card h3 a:hover { text-decoration: underline; }
.mega-card .meta { font-size: 11px; color: #a8e6a8; margin-top: 5px; }

.mega-card-side {
  border-left: 1px solid rgba(255,255,255,.2);
  padding-left: 16px;
}
.mega-card-side h3, .mega-card-side h3 a { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 8px; }
.mega-card-side h3 a:hover { text-decoration: underline; }
.mega-card-side .meta { font-size: 11px; color: #a8e6a8; }


.footer-col-cats h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; color: #1a7a1a; letter-spacing: 0.5px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #ddd; }
.footer-col-cats .cat-links { display: flex; flex-direction: column; gap: 0; }
.footer-col-cats .cat-links a { display: block; padding: 6px 0; border-bottom: 1px solid #e8e8e8; font-size: 13px; color: #444; font-weight: 500; }
.footer-col-cats .cat-links a:last-child { border-bottom: none; }
.footer-col-cats .cat-links a:hover { color: #1a7a1a; }

/* ========================================
   CAMADAS DE CATEGORIA — 3 POR LINHA
======================================== */
.cat-section { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

.cat-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #e0e0e0; }
.cat-section-title { font-size: 20px; font-weight: 800; color: #111; }
.cat-section-more { font-size: 13px; font-weight: 600; color: #1a7a1a; }
.cat-section-more:hover { text-decoration: underline; }

.cat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.cat-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }

.cat-card-img { position: relative; overflow: hidden; height: 220px; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.cat-card:hover .cat-card-img img { transform: scale(1.04); }
.cat-card-badge { position: absolute; bottom: 14px; left: 14px; background: #1a7a1a; color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; padding: 5px 12px; border-radius: 4px; }

.cat-card-body { padding: 16px 18px 18px; }
.cat-card-body h3 { font-size: 17px; font-weight: 800; color: #111; line-height: 1.3; margin-bottom: 14px; }
.cat-card-body h3 a { color: #111; }
.cat-card-body h3 a:hover { color: #1a7a1a; }

.cat-card-footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #666; }
.cat-card-footer .author { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.cat-card-footer .author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.cat-card-footer .sep { color: #ccc; }
.cat-card-footer .read-time { display: flex; align-items: center; gap: 4px; }
.cat-card-footer .bookmark { margin-left: auto; color: #bbb; font-size: 16px; cursor: pointer; }
.cat-card-footer .bookmark:hover { color: #1a7a1a; }

/* ========================================
   RESPONSIVO
======================================== */
@media (max-width: 900px) {
  #content {
    grid-template-columns: 1fr;
  }
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    gap: 2px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li a {
    padding: 10px 15px;
    width: 100%;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    height: 60px;
  }
}

/* ========================================
   CAMADA 2
======================================== */
.layer2 {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.85fr;
  gap: 24px;
}

.l2-cat-title { font-size: 17px; font-weight: 800; color: #111; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e0e0e0; }

.l2-card { position: relative; border-radius: 10px; overflow: hidden; height: 420px; cursor: pointer; }
.l2-card img { width:100%; height:100%; object-fit:cover; transition: transform .4s; display:block; }
.l2-card:hover img { transform: scale(1.03); }
.l2-card .l2-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.1) 55%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.l2-badge { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: #aaa; margin-bottom: 6px; }
.l2-num { position: absolute; right: 16px; bottom: 80px; font-size: 72px; font-weight: 900; color: rgba(255,255,255,.12); line-height: 1; pointer-events: none; }
.l2-card h3 { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 10px; }
.l2-card h3 a { color: #fff; }
.l2-card p { font-size: 12px; color: #bbb; line-height: 1.5; margin-bottom: 12px; }
.l2-tag { display: inline-flex; align-items: center; gap: 5px; background: rgba(26,122,26,.85); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; width: fit-content; }
.l2-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #aaa; }
.l2-meta img { width:24px; height:24px; border-radius:50%; object-fit:cover; }

.l2-list { display: flex; flex-direction: column; gap: 0; padding-top: 38px; }
.l2-list-item { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid #e8e8e8; }
.l2-list-item:first-child { border-top: 1px solid #e8e8e8; }
.l2-list-text h4 { font-size: 15px; font-weight: 700; color: #111; line-height: 1.35; margin-bottom: 6px; }
.l2-list-text h4 a { color: #111; }
.l2-list-text h4 a:hover { color: #1a7a1a; }
.l2-read { font-size: 11px; color: #888; }
.l2-list-item img { width:120px; height:80px; object-fit:cover; border-radius:6px; }

.l2-widgets { display: flex; flex-direction: column; gap: 20px; padding-top: 38px; }

.weather-widget, .social-widget { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.weather-title { background: #1a7a1a; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 4px; margin-bottom: 14px; display: inline-block; }
.weather-main { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.weather-icon { font-size: 40px; }
.weather-temp { font-size: 48px; font-weight: 900; color: #111; line-height: 1; }
.weather-temp sup { font-size: 18px; font-weight: 600; color: #555; }
.weather-city { font-size: 22px; font-weight: 800; color: #111; margin-bottom: 2px; }
.weather-desc { font-size: 12px; color: #888; margin-bottom: 8px; }
.weather-details { font-size: 11px; color: #555; display: flex; flex-direction:column; gap:2px; margin-bottom:14px; }
.weather-forecast { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; text-align: center; }
.weather-day { font-size: 10px; color: #888; }
.weather-day-icon { font-size: 16px; }
.weather-day-temp { font-size: 11px; font-weight: 700; color: #333; }

.social-title { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 16px; }
.social-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; text-align: center; }
.social-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.social-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; transition: transform .2s; }
.social-icon:hover { transform: scale(1.08); }
.social-icon.fb { background: #1877f2; }
.social-icon.yt { background: #ff0000; }
.social-icon.wa { background: #25d366; }
.social-count { font-size: 14px; font-weight: 800; color: #111; }
.social-label { font-size: 11px; color: #888; }

@media (max-width: 900px) { .layer2 { grid-template-columns: 1fr; } }
