/* Femina 2.0 — World Vision theme overrides */

:root {
  --femina-red: #941b39;
  --femina-red-dark: #7a1530;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  scrollbar-width: thin;
  scrollbar-color: #6c757d #ececec;
}

/* Visible scrollbars */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.navbar-collapse::-webkit-scrollbar,
.home-hot-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.navbar-collapse::-webkit-scrollbar-track,
.home-hot-list::-webkit-scrollbar-track {
  background: #ececec;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.navbar-collapse::-webkit-scrollbar-thumb,
.home-hot-list::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 8px;
  border: 2px solid #ececec;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.navbar-collapse::-webkit-scrollbar-thumb:hover,
.home-hot-list::-webkit-scrollbar-thumb:hover {
  background: #495057;
}

/* Header search panel */
#header .navbar {
  position: relative;
  display: flex;
  flex-direction: column;
}

.header-search-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 120;
  background: #fff;
  border-bottom: 1px solid #dbdbdb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 14px 0;
}

.header-search-panel.is-open {
  display: block;
}

@media (max-width: 999px) {
  .header-search-panel {
    position: relative;
    top: auto;
    order: 2;
    border-top: 1px solid #dbdbdb;
    box-shadow: none;
  }

  .navbar-top {
    order: 1;
  }

  .navbar-bottom-menu {
    order: 3;
  }
}

.navbar-bottom-menu {
  position: relative;
  width: 100%;
}

.navbar-bottom-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.navbar-bottom-inner .navbar-collapse {
  flex: 1;
  min-width: 0;
}

.navbar-search-sticky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background: #fff;
  color: #000;
  cursor: pointer;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 108;
  align-self: center;
}

.navbar-search-sticky i {
  font-size: 18px;
  line-height: 1;
}

.navbar-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.navbar-mobile-actions .navbar-search-sticky {
  width: 40px;
  height: 40px;
  position: relative;
  top: auto;
  right: auto;
  margin-left: 0;
}

@media (min-width: 1000px) {
  .navbar-bottom-menu .navbar-toggler {
    display: none !important;
  }

  .navbar-bottom-inner {
    padding-right: 50px;
  }

  .navbar-search-sticky {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .navbar-bottom-inner .navbar-nav {
    width: 100%;
    padding-right: 44px !important;
    justify-content: space-between !important;
  }

  .navbar-bottom-inner .navbar-nav .nav-item {
    padding-right: 10px !important;
    padding-left: 0 !important;
  }

  .navbar-bottom-inner .navbar-nav .nav-item .nav-link {
    padding: 14px 0 !important;
    font-size: 16px !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .navbar-bottom-inner .navbar-nav .nav-item:last-child {
    padding-left: 6px !important;
    padding-right: 0 !important;
  }

  #header .container,
  .navbar-bottom-menu,
  .navbar-bottom-inner,
  .navbar-bottom-inner .navbar-collapse {
    overflow: visible;
  }

  .nav-item-l1 {
    position: static;
  }

  .nav-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 110;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  }

  .nav-item-l1:hover > .nav-dropdown,
  .nav-item-l1:focus-within > .nav-dropdown {
    display: block !important;
  }

  .nav-item-has-dropdown:hover > .nav-link,
  .nav-item-has-dropdown:focus-within > .nav-link,
  .nav-item-has-dropdown.is-dropdown-open > .nav-link {
    color: var(--femina-red);
    position: relative;
  }

  .nav-item-has-dropdown:hover > .nav-link::after,
  .nav-item-has-dropdown:focus-within > .nav-link::after,
  .nav-item-has-dropdown.is-dropdown-open > .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--femina-red);
  }

  .nav-item-has-dropdown:hover > .nav-link::before,
  .nav-item-has-dropdown:focus-within > .nav-link::before,
  .nav-item-has-dropdown.is-dropdown-open > .nav-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #e6e6e6;
    z-index: 111;
  }

  .nav-level-2-link,
  .nav-level-2-link:hover,
  .nav-level-2-link:focus,
  .nav-level-3-link,
  .nav-level-3-link:hover,
  .nav-level-3-link:focus {
    text-decoration: none !important;
  }

  .nav-level-2-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    background: #e6e6e6;
    padding: 0 12px;
    border-bottom: 1px solid #d5d5d5;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  }

  .nav-level-2-link {
    display: inline-flex;
    align-items: center;
    padding: 11px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
  }

  .nav-level-2-link:hover,
  .nav-level-2-link.is-active {
    color: #111;
    background: rgba(255, 255, 255, 0.45);
  }

  .nav-level-3-wrap {
    display: none;
    background: #fff;
    padding: 18px 20px 22px;
  }

  .nav-level-3-wrap.has-active-panel {
    display: block;
  }

  .nav-level-3-panel {
    display: none;
    align-items: flex-start;
    gap: 28px;
  }

  .nav-level-3-panel.is-active {
    display: flex;
  }

  .nav-level-3-title {
    flex-shrink: 0;
    min-width: 150px;
    padding: 10px 18px;
    background: var(--femina-red-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.35;
    text-align: center;
  }

  .nav-level-3-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 36px;
    flex: 1;
    min-width: 0;
  }

  .nav-level-3-link {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    color: #222;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .nav-level-3-link:hover {
    color: var(--femina-red);
  }
}

@media (max-width: 999px) {
  .navbar-bottom-menu > .navbar-toggler {
    display: none !important;
  }

  .nav-dropdown {
    display: none !important;
  }
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

.header-search-form input[type="text"] {
  flex: 1;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
}

.header-search-form input[type="text"]:focus {
  border-color: #888;
}

.header-search-form button {
  border: none;
  background: #000;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.header-search-form .header-search-close {
  background: #f0f0f0;
  color: #333;
}

.nav-search-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (max-width: 999px) {
  .navbar-bottom-menu .navbar-nav .nav-item-search {
    display: none !important;
  }
}

.search-page-form {
  max-width: 560px;
}

.search-page-form .search-container {
  width: 100%;
}

/* Brand logo */
.femina-anniversary-text {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 11px;
  font-weight: 700;
  color: var(--femina-red-dark);
  letter-spacing: 0.1em;
}

.femina-anniversary-text sup {
  font-family: "Montserrat", sans-serif;
  font-size: 0.58em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: super;
  top: -0.2em;
  color: var(--femina-red);
}

.navbar-brand img {
  max-height: 42px;
  width: auto;
  max-width: 180px;
}

@media (min-width: 992px) {
  .navbar-brand-desktop .navbar-brand img {
    max-height: 52px;
    max-width: 210px;
  }

  .navbar-top {
    padding: 35px 0 !important;
    position: relative;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
  }

  .navbar-top .navbar-left {
    flex: 1 1 0;
    min-width: 0;
  }

  .navbar-brand-desktop {
    flex: 0 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-top > .d-flex.d-none.d-lg-flex {
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-end;
  }
}

/* Mobile header: logo left, hamburger right */
.navbar-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 1;
}

.navbar-brand-mobile {
  flex-shrink: 0;
  text-align: left;
}

.navbar-brand-mobile img {
  max-height: 48px;
  max-width: 170px;
  width: auto;
}

.navbar-toggler-mobile {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  #header .navbar-top {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 12px 16px !important;
    position: sticky;
    top: 0;
    z-index: 120;
    background: #fff;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left;
    box-sizing: border-box;
  }

  .navbar-top > .navbar-left,
  .navbar-top > .navbar-brand-desktop,
  .navbar-top > .d-flex.d-none.d-lg-flex {
    display: none !important;
  }

  .navbar-mobile-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0 4px 0 0;
  }

  .navbar-brand-mobile {
    margin-right: 0;
    flex: 0 1 auto;
    text-align: left;
  }

  .navbar-brand-mobile .navbar-brand {
    display: block;
    text-align: left;
  }

  .navbar-mobile-actions {
    flex-shrink: 0;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.layer-open .navbar-top {
    z-index: 90;
  }

  body.layer-open .navbar-mobile-bar {
    z-index: 1;
  }

  .navbar-bottom-menu .navbar-toggler-desktop {
    display: none !important;
  }

  .navbar-bottom-menu {
    position: static;
  }
}

/* thumb-title hover — Femina dark red (category badge) */
.image-hover:hover .thumb-title {
  background: var(--femina-red) !important;
}

.position-relative.image-hover:hover .thumb-title {
  background: var(--femina-red) !important;
}

/* Article title under thumbnail */
.position-relative.image-hover:hover + h5 a,
.position-relative.image-hover:hover + .font-weight-bold a,
.position-relative.image-hover:hover + h1 a,
.position-relative.image-hover:hover + h2 a,
.position-relative.image-hover:hover + h3 a,
.position-relative.image-hover:hover + h4 a {
  color: var(--femina-red) !important;
}

a.text-dark:hover,
.home-hot-list-item h5 a:hover,
.article-grid-card h5 a:hover,
.article-grid-card h1 a:hover,
.banner-top-thumb-title a:hover,
.most-viewed-item h5 a:hover,
.most-viewed-news h5 a:hover,
.horoscope-sidebar-article h5 a:hover {
  color: var(--femina-red) !important;
  text-decoration: none !important;
}

.container-scroller .container a.text-dark:hover,
.container-scroller .container h1 a:hover,
.container-scroller .container h2 a:hover,
.container-scroller .container h3 a:hover,
.container-scroller .container h4 a:hover,
.container-scroller .container h5 a:hover {
  text-decoration: none !important;
}

.footer-logo {
  max-height: 36px;
  width: auto;
  max-width: 160px;
}

/* Article meta (date + views) */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  font-weight: 400;
  color: #555;
  margin-top: 8px;
}

.article-meta-separator {
  color: #999;
  padding: 0 2px;
}

@media (max-width: 575px) {
  .article-meta {
    flex-direction: row;
    flex-wrap: nowrap;
    row-gap: 0;
  }

  .article-meta-separator {
    display: inline;
  }
}

/* Article — You may also like */
.article-related-heading {
  font-size: 1.35rem;
  margin-top: 0.5rem;
}

.article-related-title {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.article-related-title a:hover {
  color: var(--femina-red) !important;
}

.article-related-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f0f0f0;
}

.article-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article detail typography */
.news-post-wrapper-sm h1.text-center {
  font-weight: 600;
}

.article-lead-image {
  width: 100%;
}

.article-lead-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.news-post-wrapper-sm .btn.btn-dark {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 8px 18px;
}

.news-post-wrapper-sm.article-body,
.news-post-wrapper-sm.article-body p,
.news-post-wrapper-sm.article-body li,
.news-post-wrapper-sm.article-body td {
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: #222;
}

.news-post-wrapper-sm.article-body strong,
.news-post-wrapper-sm.article-body b {
  font-weight: 600;
}

.news-post-wrapper-sm.article-body img {
  max-width: 100%;
  height: auto;
}

.news-post-wrapper-sm.article-body h1,
.news-post-wrapper-sm.article-body h2,
.news-post-wrapper-sm.article-body h3,
.news-post-wrapper-sm.article-body h4 {
  font-weight: 600;
  line-height: 1.35;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.news-post-wrapper-sm.article-body [style*="font-size"] {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 21, 49, 0.45);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.layer-open {
  overflow: hidden;
}

body.layer-open .mobile-nav-overlay {
  display: block;
  opacity: 1;
  z-index: 125;
}

/* Mobile sidebar menu */
@media (max-width: 999px) {
  .navbar-collapse {
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 130 !important;
    top: 0 !important;
    height: 100% !important;
  }

  .navbar-collapse .navbar-nav {
    width: 100%;
    align-items: stretch !important;
  }

  .navbar-collapse .navbar-nav > .nav-item {
    width: 100%;
    border-bottom: 1px solid #e8e8e8;
    padding-right: 0 !important;
  }

  .navbar-collapse .navbar-nav > .nav-item-close {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 8px;
    margin-bottom: 4px;
  }

  .navbar-collapse .navbar-nav > .nav-item .nav-link {
    padding: 14px 12px !important;
    font-weight: 600;
    font-size: 15px;
    display: block;
    width: 100%;
  }

  .nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
  }

  .nav-submenu-item {
    border-top: 1px solid #ececec;
  }

  .nav-submenu-item a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 400;
    color: #444;
    text-decoration: none;
  }

  .nav-submenu-item a:hover {
    color: #000;
    background: #f3f3f3;
  }

  .nav-submenu-l3 {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f3f3f3;
  }

  .nav-submenu-l3 li a {
    display: block;
    padding: 10px 28px 10px 36px;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
  }

  .nav-submenu-l3 li a:hover {
    color: #000;
    background: #ebebeb;
    text-decoration: none !important;
  }

  .nav-submenu-item a,
  .nav-submenu-item a:hover,
  .nav-submenu-l3 li a {
    text-decoration: none !important;
  }

  .navbar-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: static !important;
    width: 36px;
    height: 36px;
    margin-left: auto;
    margin-right: 4px;
    margin-top: 4px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
  }

  .navbar-close:hover {
    background: #ececec;
  }
}

/* Article keyword / search tags */
@keyframes femina-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.image-hover:not(.is-img-loaded),
.banner-top-thumb-link:not(.is-img-loaded),
.carousel-image:not(.is-img-loaded),
.horoscope-most-viewed-thumb:not(.is-img-loaded),
.article-related-thumb:not(.is-img-loaded),
.article-lead-image:not(.is-img-loaded) {
  position: relative;
  background: #ececec;
  overflow: hidden;
}

.image-hover:not(.is-img-loaded)::before,
.banner-top-thumb-link:not(.is-img-loaded)::before,
.carousel-image:not(.is-img-loaded)::before,
.horoscope-most-viewed-thumb:not(.is-img-loaded)::before,
.article-related-thumb:not(.is-img-loaded)::before,
.article-lead-image:not(.is-img-loaded)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ececec 0%, #f7f7f7 50%, #ececec 100%);
  background-size: 200% 100%;
  animation: femina-skeleton-shimmer 1.4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.image-hover:not(.is-img-loaded) img,
.banner-top-thumb-link:not(.is-img-loaded) img,
.carousel-image:not(.is-img-loaded) img,
.horoscope-most-viewed-thumb:not(.is-img-loaded) img,
.article-related-thumb:not(.is-img-loaded) img,
.article-lead-image:not(.is-img-loaded) img {
  opacity: 0;
}

.image-hover.is-img-loaded img,
.banner-top-thumb-link.is-img-loaded img,
.carousel-image.is-img-loaded img,
.horoscope-most-viewed-thumb.is-img-loaded img,
.article-related-thumb.is-img-loaded img,
.article-lead-image.is-img-loaded img {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.image-hover.is-img-loaded:hover img {
  transform: scale(1.25);
}

.image-hover.is-img-loaded .thumb-title {
  transition: transform 0.4s ease, background 0.2s ease;
}

.image-hover.is-img-loaded::before,
.banner-top-thumb-link.is-img-loaded::before,
.carousel-image.is-img-loaded::before,
.horoscope-most-viewed-thumb.is-img-loaded::before,
.article-related-thumb.is-img-loaded::before,
.article-lead-image.is-img-loaded::before {
  opacity: 0;
  visibility: hidden;
  animation: none;
}

.article-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #000;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.article-tag:hover {
  background: #222;
  color: #fff !important;
}

/* Reset tag-like links inside CMS content */
.news-post-wrapper-sm.article-body p a[style],
.news-post-wrapper-sm.article-body div a[style],
.news-post-wrapper-sm.article-body p a[href*="search"],
.news-post-wrapper-sm.article-body p a[href*="?q="] {
  display: inline-flex !important;
  align-items: center;
  position: static !important;
  float: none !important;
  margin: 0 8px 8px 0 !important;
  padding: 8px 14px !important;
  background: #000 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  white-space: normal !important;
  max-width: 100%;
}

.news-post-wrapper-sm.article-body p:has(a[href*="search"]),
.news-post-wrapper-sm.article-body p:has(a[href*="?q="]) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Image not found placeholder */
img.img-not-found,
img.femina-img.img-not-found {
  object-fit: contain;
  background: #f0f0f0;
  min-height: 180px;
}

.banner-top-thumb.img-not-found {
  min-height: 42px;
  width: 82px;
}

#main-banner-carousel .carousel-image img.img-not-found {
  min-height: 280px;
}

/* Main banner carousel gradient overlay */
#main-banner-carousel .carousel-content-wrapper .carousel-image {
  position: relative;
  overflow: hidden;
}

#main-banner-carousel .carousel-content-wrapper .carousel-image img {
  width: 100%;
  display: block;
}

#main-banner-carousel .carousel-content-wrapper .carousel-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

#main-banner-carousel .carousel-content-wrapper .carousel-content {
  z-index: 2;
}

#main-banner-carousel .carousel-content-wrapper .carousel-content h1,
#main-banner-carousel .carousel-content-wrapper .carousel-content h1 a,
#main-banner-carousel .carousel-content-wrapper .carousel-content h5 {
  color: #fff !important;
}

#main-banner-carousel .carousel-content-wrapper .carousel-content h1 a:hover {
  color: #f0f0f0 !important;
}

@media (max-width: 999px) {
  #main-banner-carousel .carousel-content-wrapper .carousel-content h5 {
    display: none !important;
  }
}

/* Banner top thumbs */
.banner-top-thumb-list {
  gap: 12px;
}

.banner-top-thumb-item {
  flex: 1 1 0;
  min-width: 0;
  gap: 10px;
}

.banner-top-thumb-link {
  display: block;
  flex-shrink: 0;
}

.banner-top-thumb-title {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.banner-top-thumb-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hot list beside carousel */
.home-hot-list {
  border-top: 1px solid #ececec;
}

.home-hot-list-item {
  padding: 14px 0;
  border-bottom: 1px solid #ececec;
}

.home-hot-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.home-hot-list-meta .meta-sep {
  color: #bbb;
}

.home-hot-list-meta a {
  text-decoration: none;
  color: var(--femina-red);
}

.home-hot-list-meta a:hover {
  color: var(--femina-red-dark) !important;
}

@media (min-width: 992px) {
  .home-hot-list {
    border-top: none;
    padding-left: 8px;
  }

  .home-hot-list-item:first-child {
    padding-top: 0;
  }
}

@media (max-width: 991px) {
  .home-hero-row {
    margin-bottom: 8px;
  }

  .home-hot-list {
    margin-top: 20px;
  }

  #main-banner-carousel .owl-dots {
    padding: 8px 0 !important;
  }
}

/* Banner top thumbs — mobile */
@media (max-width: 991px) {
  .banner-top-thumb-wrap {
    margin-bottom: 24px;
    padding: 16px 0;
  }

  .banner-top-thumb-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .banner-top-thumb-item {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
  }

  .banner-top-thumb-item:last-child {
    border-bottom: none;
  }

  .banner-top-thumb-title {
    font-size: 14px;
  }

  .banner-top-thumb {
    width: 82px;
    height: 42px;
    object-fit: cover;
  }
}

@media (max-width: 575px) {
  .navbar-brand img {
    max-height: 48px;
    max-width: 150px;
  }

  .navbar-brand-mobile img {
    max-width: 150px;
  }

  .navbar-mobile-bar {
    padding-right: 4px;
  }

  .news-post-wrapper-sm h1.text-center {
    font-size: 22px;
  }

  .editors-news h1.font-weight-600,
  .world-news .font-weight-bold {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .news-post-wrapper-sm h1.text-center {
    font-size: 26px;
    line-height: 1.3;
  }

  .news-post-wrapper-sm.article-body {
    font-size: 15px;
    line-height: 1.7;
  }

  .section-title {
    font-size: 22px;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .footer-horizontal-menu {
    justify-content: center;
    margin-bottom: 12px;
  }

  .footer-social {
    width: 100%;
    justify-content: center !important;
    margin-top: 16px;
  }

  .error-wrap .search-container {
    max-width: 100%;
  }
}

/* Static pages — contact, privacy, terms */
.contact-section-title,
.title-mainfooter {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--femina-red);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.contact-wrap .form-control {
  border-radius: 0;
  border-color: #ddd;
}

.contact-wrap .btn-dark {
  background: #333;
  border-color: #333;
  border-radius: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.5rem;
}

.contact-wrap {
  background: #f5f5f5;
  padding: 2.5rem 2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.contact-wrap .form-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
}

.contact-wrap .form-group label {
  flex: 0 0 100px;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #333;
}

.contact-wrap .form-group .form-control,
.contact-wrap .form-group select.form-control {
  flex: 1;
  min-width: 0;
  height: auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.contact-wrap .form-group .form-control.textarea {
  height: 120px;
}

.contact-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-box-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.contact-social {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #333;
  color: #fff;
  font-size: 14px;
}

.contact-social li a:hover {
  background: var(--femina-red);
  color: #fff;
}

.contact-info-box {
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  padding: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-info-box p {
  margin-bottom: 0.5rem;
}

.static-page-content {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
}

.static-page-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #222;
}

.static-page-content ul {
  padding-left: 1.25rem;
}

.static-page-wrap {
  padding: 2rem 0 3rem;
}

.static-page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--femina-red);
  margin-bottom: 1.5rem;
}

/* Footer — digital magazine & subscribe */
.footer-extra-row {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}

.footer-brand-row {
  padding-top: 0.5rem;
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

.footer-app-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.footer-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}

.footer-app-badge {
  height: 50px;
  width: auto;
  display: inline-block;
}

.link-footer,
.link-footer2 {
  color: #555;
  text-decoration: none;
}

.link-footer:hover,
.link-footer2:hover {
  color: var(--femina-red);
}

.footer-subscribe-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-subscribe-item i {
  color: var(--femina-red);
  margin-top: 3px;
  width: 16px;
  flex-shrink: 0;
}

.footer-subscribe-item a {
  color: #555;
}

.footer-subscribe-item a:hover {
  color: var(--femina-red);
}

.footer .title-mainfooter {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 991px) {
  .footer .title-mainfooter {
    margin-top: 1.5rem;
  }
}

/* World news — modules sidebar */
.world-news-header {
  margin-bottom: 1.25rem;
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  right: auto;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
}

.most-viewed-news .image-hover,
.editors-news .image-hover {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f0f0f0;
}

.most-viewed-news .image-hover > a,
.editors-news .image-hover > a {
  display: block;
  height: 100%;
}

.most-viewed-news .image-hover img,
.editors-news .image-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

.home-modules-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 0;
}

.home-module-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--femina-red);
  border-radius: 999px;
  background: #fff;
  color: var(--femina-red);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

a.home-module-link:hover {
  background: var(--femina-red);
  color: #fff;
  text-decoration: none;
}

.home-module-icon {
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.home-module-slot--polling {
  min-height: 0;
}

.home-modules-mobile .home-modules-sidebar {
  flex-direction: row;
  flex-wrap: wrap;
}

.home-modules-mobile .home-module-link {
  flex: 1 1 auto;
  min-width: 160px;
}

/* Footer nav menu headers */
footer .footer-vertical-nav li.menu-title {
  color: var(--femina-red);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  cursor: default;
  pointer-events: none;
}

footer .footer-vertical-nav li.menu-title a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.most-viewed-meta {
  margin-top: 0.35rem;
}

.most-viewed-news .most-viewed-item h5 a:hover {
  color: var(--femina-red) !important;
}

.footer-bottom {
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-copyright {
  text-align: right;
}

.footer-page-load-row {
  margin-top: 0;
}

.footer-page-load {
  text-align: center;
  font-size: 10px;
  font-weight: 400;
  color: #e8e8e8;
  padding: 10px 0 2px;
  letter-spacing: 0.02em;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  opacity: 0.45;
}

@media (max-width: 991px) {
  .footer-copyright {
    width: 100%;
    text-align: center;
  }
}

.category-pagination-row {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.femina-pagination .page-link {
  color: #333;
  border-color: #ddd;
  min-width: 38px;
  text-align: center;
}

.femina-pagination .page-item.active .page-link {
  background: var(--femina-red);
  border-color: var(--femina-red);
  color: #fff;
}

.femina-pagination .page-link:hover {
  color: var(--femina-red);
  background: #fafafa;
}

.femina-pagination .page-item.disabled .page-link {
  color: #bbb;
  background: #fff;
}

/* Category page */
.category-page-desc {
  padding-bottom: 2.75rem;
  margin-bottom: 0;
}

.category-mobile-grid .image-hover {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f0f0f0;
}

.category-mobile-grid .image-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
}

.category-mobile-grid .thumb-title {
  padding: 6px 10px;
  font-size: 9px;
}

.category-mobile-title {
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 991px) {
  .footer-brand-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
  }

  .footer-brand-row .footer-logo {
    max-width: 150px;
    height: auto;
  }

  .footer-brand-row .footer-social {
    justify-content: center !important;
    width: 100%;
  }

  .footer-brand-row .social-media {
    justify-content: center;
  }

  .category-pagination-row {
    overflow: hidden;
  }

  .femina-pagination {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 8px;
  }

  .femina-pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0;
  }

  .femina-pagination .page-item {
    margin: 0;
  }

  .femina-pagination .page-link {
    min-width: 34px;
    padding: 0.4rem 0.55rem;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 4px;
  }
}

/* Scroll to top — mobile */
.scroll-to-top {
  display: none;
  position: fixed;
  left: 12px;
  bottom: 16px;
  z-index: 999;
  width: 36px;
  height: 36px;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 0;
}

.scroll-to-top i {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 991px) {
  .scroll-to-top {
    display: inline-flex;
  }
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #fff;
  color: var(--femina-red);
  border-color: #ccc;
}

/* Cookie consent bar */
.cookie-consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #222;
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent-bar.is-visible {
  transform: translateY(0);
}

.cookie-consent-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #eee;
}

.cookie-consent-text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: #f5c6d0;
}

.cookie-consent-btn {
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 0;
}

.cookie-consent-accept {
  background: var(--femina-red);
  color: #fff;
}

.cookie-consent-accept:hover {
  background: var(--femina-red-dark);
}

@media (max-width: 767px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions {
    text-align: right;
  }
}

.horoscope-page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 2.25rem;
  text-transform: lowercase;
  color: #222;
  margin-top: 1.5rem;
}

.horoscope-profile {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 1.5rem;
}

.horoscope-profile-photo {
  max-width: 180px;
  border-radius: 50%;
}

.horoscope-profile-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.horoscope-profile-role {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--femina-red);
  margin-bottom: 1rem;
}

.horoscope-profile-bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.horoscope-profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1rem;
}

.horoscope-profile-social a {
  font-size: 0.85rem;
  color: #555;
}

.horoscope-profile-social a:hover {
  color: var(--femina-red);
}

.horoscope-more-videos {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--femina-red);
  border-bottom: 1px solid var(--femina-red);
}

.horoscope-sign-card {
  border: 1px solid #e8e8e8;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: #fff;
}

.horoscope-sign-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}

.horoscope-sign-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.horoscope-sign-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.horoscope-sign-date {
  font-size: 0.75rem;
  color: #999;
}

.horoscope-sign-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

.horoscope-sign-body p {
  margin-bottom: 0.5rem;
}

.horoscope-sidebar-box {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 1.25rem;
}

.horoscope-sidebar-title {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.25rem;
  text-transform: lowercase;
  color: var(--femina-red);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.horoscope-poll-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.horoscope-poll-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.horoscope-poll-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
  border: 1px solid #333;
  padding: 0.4rem 1rem;
}

.horoscope-poll-link:hover {
  background: var(--femina-red);
  border-color: var(--femina-red);
  color: #fff;
}

.horoscope-sidebar-article h5 a:hover {
  color: var(--femina-red) !important;
}

.horoscope-most-viewed-item + .horoscope-most-viewed-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ececec;
}

.horoscope-most-viewed-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none !important;
}

.horoscope-most-viewed-link:hover {
  text-decoration: none !important;
}

.horoscope-most-viewed-thumb {
  flex: 0 0 88px;
  width: 88px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.horoscope-most-viewed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.horoscope-most-viewed-body {
  flex: 1;
  min-width: 0;
}

.horoscope-most-viewed-body h5 {
  font-size: 0.95rem;
  line-height: 1.4;
}

.horoscope-most-viewed-link:hover .horoscope-most-viewed-body h5 span {
  color: var(--femina-red) !important;
}

.category-recipes-subnav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  background: #e6e6e6;
  border-top: 1px solid #d5d5d5;
  border-bottom: 1px solid #d5d5d5;
}

.category-recipes-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.category-recipes-subnav-link:hover,
.category-recipes-subnav-link:focus {
  color: #111;
  background: rgba(255, 255, 255, 0.45);
  text-decoration: none !important;
}

.category-recipes-subnav-link.is-active {
  color: #111;
  background: #fff;
  box-shadow: inset 0 -3px 0 var(--femina-red);
}
