/* ==========================================================================
   Clarabelen Custom Newspaper / TagDiv Cloud Library Styles
   Matches:
   - Header Template - Makeup Shop (ID 9161)
   - Inicio Clarabelen Homepage (ID 9156)
   - Footer - World Matters (ID 9170)
   - Category / Tag / Search Lifestyle PRO Templates (IDs 9179, 9183, 9186)
   - PinPress Boards Responsive Grid
   ========================================================================== */

:root {
  --cb-primary: #38a6c1;
  --cb-red: #f22626;
  --cb-red-hover: #f94545;
  --cb-pink: #db4e5a;
  --cb-teal: #219caf;
  --wm-black: #111111;
  --wm-white: #ffffff;
  --wm-med-grey: #b5b5b5;
  --wm-primary: #38a6c1;
}

/* Header - Makeup Shop (ID 9161) */
.cb-header-desktop {
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 999;
}

.cb-header-logo-row {
  padding: 28px 0;
  text-align: center;
  background: #ffffff;
}

.cb-header-logo-row a {
  display: inline-block;
}

.cb-header-logo-row img {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.cb-header-nav-bar {
  background-color: #000000;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cb-header-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  position: relative;
}

/* Main Navigation Menu in Black Bar */
.cb-main-nav {
  flex: 1 1 auto;
}

.cb-main-nav .sf-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.cb-main-nav .sf-menu > li {
  position: relative;
  float: none;
  margin: 0;
}

.cb-main-nav .sf-menu > li > a {
  display: block;
  padding: 0 12px;
  line-height: 48px;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.cb-main-nav .sf-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: var(--cb-red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.cb-main-nav .sf-menu > li:hover > a::after,
.cb-main-nav .sf-menu > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* Submenus */
.cb-main-nav .sf-menu ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 1005;
}

.cb-main-nav .sf-menu li:hover > ul {
  display: block;
}

.cb-main-nav .sf-menu ul ul {
  top: 0;
  left: 100%;
  margin-top: -10px;
}

.cb-main-nav .sf-menu ul li {
  position: relative;
  float: none;
  width: 100%;
}

.cb-main-nav .sf-menu ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 20px;
  color: #111111 !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  background: transparent;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.cb-main-nav .sf-menu ul li:hover > a {
  color: var(--cb-red) !important;
  background-color: #f9f9f9;
}

.cb-main-nav .sf-menu .td-icon-menu-down {
  font-size: 9px;
  margin-left: 5px;
  opacity: 0.8;
}

.cb-main-nav .sf-menu ul .td-icon-menu-right {
  font-size: 9px;
  margin-left: 10px;
  opacity: 0.6;
}

/* Header Right Socials + Search */
.cb-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cb-header-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cb-header-socials a {
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  padding: 6px;
  transition: color 0.2s ease;
}

.cb-header-socials a:hover {
  color: var(--cb-red-hover);
}

.cb-header-right .header-search-wrap {
  position: relative;
}

.cb-header-right #td-header-search-button,
.cb-header-right #td-header-search-button-mob {
  color: #ffffff;
  font-size: 16px;
  padding: 8px;
  display: inline-block;
}

.cb-header-right #td-header-search-button:hover {
  color: var(--cb-red-hover);
}

/* Mobile Header Toggle */
#td-top-mobile-toggle {
  display: none;
}

#td-top-mobile-toggle a {
  color: #ffffff;
  font-size: 24px;
  padding: 8px 12px;
  display: inline-block;
}

@media (max-width: 1018px) {
  .cb-main-nav {
    display: none;
  }
  #td-top-mobile-toggle {
    display: block;
  }
  .cb-header-logo-row {
    padding: 16px 12px;
  }
  .cb-header-logo-row img {
    max-width: 340px;
  }
}

/* Block Title Template 9 (#38a6c1 accent line) */
.cb-block-title {
  position: relative;
  margin-bottom: 24px;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 8px;
}

.cb-block-title span,
.cb-block-title h4 {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  text-transform: uppercase;
  color: #111111;
  margin: 0;
  position: relative;
}

.cb-block-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--cb-primary);
}

/* ==========================================================================
   Homepage Sections (Inicio Clarabelen - ID 9156)
   ========================================================================== */

.cb-home-section {
  margin-bottom: 44px;
}

/* 1. Big Grid FL 3 (Hero 3-tile grid) */
.cb-big-grid-3 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 6px;
  margin-top: 24px;
  margin-bottom: 44px;
}

.cb-big-grid-item {
  position: relative;
  overflow: hidden;
  background-color: #222;
  display: block;
}

.cb-big-grid-3 .cb-big-grid-item:first-child {
  grid-row: 1 / span 2;
}

.cb-big-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cb-big-grid-item:hover img {
  transform: scale(1.04);
}

.cb-big-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
}

.cb-big-grid-cat {
  display: inline-block;
  align-self: flex-start;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cb-big-grid-item:hover .cb-big-grid-cat {
  background-color: var(--cb-primary);
}

.cb-big-grid-title {
  margin: 0 0 6px 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
}

.cb-big-grid-3 .cb-big-grid-item:first-child .cb-big-grid-title {
  font-size: 24px;
}

.cb-big-grid-title a {
  color: #ffffff !important;
  text-decoration: none;
}

.cb-big-grid-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

/* 2. Carnaval Flex Block 4 (2 overlay cards + 4 horizontal cards) */
.cb-flex4-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.cb-flex4-top .cb-big-grid-item {
  height: 230px;
}

.cb-flex4-top .cb-big-grid-title {
  font-size: 18px;
  text-transform: none;
}

.cb-horiz-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cb-horiz-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.cb-horiz-thumb {
  flex: 0 0 32%;
  max-width: 32%;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.cb-horiz-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cb-horiz-card:hover .cb-horiz-thumb img {
  transform: scale(1.03);
}

.cb-horiz-body {
  flex: 1 1 auto;
}

.cb-horiz-title {
  margin: 0 0 6px 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.cb-horiz-title a {
  color: #111111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cb-horiz-card:hover .cb-horiz-title a {
  color: var(--cb-primary);
}

.cb-horiz-meta {
  font-size: 11px;
  color: #767676;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cb-horiz-cat {
  background-color: #222222;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  text-decoration: none;
  text-transform: uppercase;
}

.cb-horiz-cat:hover {
  background-color: var(--cb-primary);
}

.cb-horiz-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: #555555;
  margin: 0;
}

/* 3. Big Grid 4 (Parties / Celebraciones 4-tile grid) */
.cb-big-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.cb-big-grid-4 .cb-big-grid-item {
  height: 270px;
}

.cb-big-grid-4 .cb-big-grid-title {
  font-size: 17px;
  text-transform: none;
}

/* 4. Trending 3-Column Grid */
.cb-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cb-card-grid .cb-card-thumb {
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
}

.cb-card-grid .cb-card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cb-card-grid:hover .cb-card-thumb img {
  transform: scale(1.03);
}

.cb-card-grid .cb-card-cat {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #222222;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  text-transform: uppercase;
  text-decoration: none;
}

.cb-card-grid:hover .cb-card-cat {
  background-color: var(--cb-primary);
}

.cb-card-grid .cb-card-title {
  margin: 0 0 6px 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.cb-card-grid .cb-card-title a {
  color: #111111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cb-card-grid:hover .cb-card-title a {
  color: var(--cb-primary);
}

/* 5. Sidebar Widgets (Search, Social Counter, Most Recent) */
.cb-sidebar-widget {
  margin-bottom: 36px;
}

.cb-search-form {
  display: flex;
  border: 1px solid #e1e1e1;
}

.cb-search-form input[type="text"] {
  flex: 1 1 auto;
  border: none !important;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}

.cb-search-form button {
  background-color: #222222;
  color: #ffffff;
  border: none;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cb-search-form button:hover {
  background-color: var(--cb-primary);
}

.cb-social-counter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cb-social-counter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

.cb-social-counter-item:hover {
  opacity: 0.9;
}

.cb-social-counter-item.facebook {
  background-color: #516eab;
}

.cb-social-counter-item.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.cb-social-counter-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cb-social-counter-left i {
  font-size: 18px;
}

.cb-social-counter-action {
  font-size: 11px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 2px;
}

.cb-recent-dashed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cb-recent-dashed-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #e5e5e5;
  margin: 0;
}

.cb-recent-dashed-list li:first-child {
  padding-top: 0;
}

.cb-recent-dashed-list li a {
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cb-recent-dashed-list li a:hover {
  color: var(--cb-primary);
}

/* ==========================================================================
   Footer - World Matters (ID 9170)
   ========================================================================== */

.cb-footer-wrap {
  background-color: var(--wm-black);
  color: var(--wm-med-grey);
  margin-top: 60px;
}

.cb-footer-main {
  padding: 60px 0 40px;
}

.cb-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.cb-footer-brand img {
  max-width: 280px;
  height: auto;
  display: block;
  margin-bottom: 14px;
}

.cb-footer-caption {
  font-size: 20px;
  line-height: 1.3;
  color: #eaeaea;
  font-weight: 600;
  margin-bottom: 24px;
}

.cb-footer-socials {
  display: flex;
  gap: 14px;
}

.cb-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cb-footer-socials a:hover {
  background-color: var(--cb-primary);
}

.cb-footer-recent-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--wm-med-grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 18px 0;
}

.cb-footer-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: wm-counter;
}

.cb-footer-recent-list li {
  counter-increment: wm-counter;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.cb-footer-recent-list li::before {
  content: "0" counter(wm-counter) ".";
  font-size: 12px;
  font-weight: 700;
  color: var(--cb-primary);
  flex-shrink: 0;
}

.cb-footer-recent-list li a {
  color: var(--wm-med-grey);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cb-footer-recent-list li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.cb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 26px 0 40px;
  text-align: right;
  font-size: 13px;
  color: var(--wm-med-grey);
}

/* ==========================================================================
   Category / Tag / Archive Lifestyle PRO Header
   ========================================================================== */

.cb-archive-header {
  text-align: center;
  padding: 36px 0 24px;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 36px;
}

.cb-archive-header h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  margin: 10px 0 16px;
  color: #111111;
}

.cb-sibling-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.cb-sibling-cats a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cb-pink);
  text-decoration: none;
  padding: 4px 10px;
  background: #fdf2f3;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.cb-sibling-cats a:hover {
  color: #ffffff;
  background: var(--cb-teal);
}

/* ==========================================================================
   PinPress Boards Styling
   ========================================================================== */

#pinpress_pins_container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0;
}

.pinpress_column {
  flex: 1 1 calc(33.333% - 14px);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pinpress_pin_item {
  width: 100% !important;
  box-sizing: border-box;
  border: 1px solid #e0e0e0 !important;
  border-radius: 4px;
  padding: 10px !important;
  margin: 0 !important;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pinpress_pin_item:hover {
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.pinpress_pin_title {
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 8px;
  text-align: center;
  color: #111111;
}

.pinpress_pin_item a {
  text-decoration: none !important;
  color: #111111;
}

.pinpress_pin_item a:hover .pinpress_pin_title {
  color: var(--cb-primary);
}

.pinpress_pin_item img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 0 auto 8px auto !important;
  display: block;
}

.pinpress_pin_desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #555555;
  margin-top: 6px;
}

.pinpress_pin_desc p {
  margin: 0 0 6px 0 !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}

#pinpress_more_pins_container {
  width: 100%;
  text-align: center;
  margin: 18px 0;
}

.pinpress-load-more-btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--cb-primary);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
}

.pinpress-load-more-btn:hover {
  background-color: #222222;
}

/* Video embed wrapper */
.td-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 20px 0;
}

.td-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Image gallery & Timeline templates */
.cb-image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.cb-image-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid #eee;
}

.cb-image-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.cb-image-gallery-item:hover img {
  transform: scale(1.06);
}

.archive_year {
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--cb-primary);
  display: inline-block;
}

.archives_list {
  list-style: none;
  padding-left: 0;
}

.archives_list li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.archives_list .date {
  color: #888;
  font-size: 12px;
  min-width: 110px;
}

.archives_list .linked {
  flex: 1 1 auto;
  font-weight: 600;
}

.archives_list .comments {
  font-size: 12px;
  color: #888;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .cb-big-grid-3 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .cb-big-grid-3 .cb-big-grid-item {
    height: 240px;
  }
  .cb-big-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .cb-grid-3col {
    grid-template-columns: 1fr 1fr;
  }
  .cb-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cb-flex4-top,
  .cb-big-grid-4,
  .cb-grid-3col {
    grid-template-columns: 1fr;
  }
  .cb-horiz-card {
    flex-direction: column;
  }
  .cb-horiz-thumb {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .pinpress_column {
    flex: 1 1 100%;
  }
}
