/* ============================================================
   EPHESUS GUIDE — MAGPLUS-INSPIRED REDESIGN
   Clean Black/White • Magazine Layout • Bold Typography
   ============================================================ */

/* ----- 1. CSS Custom Properties ----- */
:root {
  --mp-black: #333333;
  --mp-dark: #222222;
  --mp-text: #333333;
  --mp-text-light: #999999;
  --mp-text-muted: #aaaaaa;
  --mp-white: #ffffff;
  --mp-bg: #ffffff;
  --mp-light-gray: #f7f7f7;
  --mp-border: #eeeeee;
  --mp-border-dark: #dddddd;
  --mp-accent-green: #59b759;
  --mp-accent-orange: #f39c12;
  --mp-accent-gray: #888888;
  --mp-accent-red: #e74c3c;
  --mp-accent-blue: #3498db;
  --mp-font: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mp-font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --mp-transition: 0.25s ease;
  --mp-container: 1200px;
}

/* ----- 2. Global Overrides ----- */
body {
  background: var(--mp-bg) !important;
  color: var(--mp-text) !important;
  font-family: var(--mp-font) !important;
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--mp-text); text-decoration: none; }
a:hover { color: var(--mp-black); text-decoration: none; }

::selection {
  background: var(--mp-black);
  color: var(--mp-white);
}

.container {
  max-width: var(--mp-container) !important;
}

img { max-width: 100%; height: auto; }

/* ----- 3. Top Bar ----- */
.mp-topbar {
  background: var(--mp-dark);
  padding: 0;
  font-size: 13px;
  line-height: 1;
  border-bottom: 1px solid #444;
}

.mp-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.mp-topbar__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}

.mp-topbar__links li a {
  color: #ccc;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 400;
  transition: color var(--mp-transition);
  text-decoration: none;
}

.mp-topbar__links li a:hover {
  color: var(--mp-white);
}

.mp-topbar__social {
  display: flex;
  align-items: center;
  gap: 0;
}

.mp-topbar__social a {
  color: #ccc;
  padding: 0 10px;
  font-size: 14px;
  transition: color var(--mp-transition);
}

.mp-topbar__social a:hover {
  color: var(--mp-white);
}

/* ----- 4. Site Header (Logo + Ad) ----- */
.mp-header {
  background: var(--mp-white);
  padding: 25px 0;
  border-bottom: 1px solid var(--mp-border);
}

.mp-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-header__logo {
  flex-shrink: 0;
}

.mp-header__logo img {
  max-height: 55px;
  width: auto;
}

.mp-header__logo h1 {
  font-family: var(--mp-font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--mp-black);
  margin: 0;
  letter-spacing: -0.5px;
}

.mp-header__logo h1 span {
  font-weight: 300;
}

.mp-header__ad {
  flex-shrink: 0;
}

/* ----- 5. Main Navigation (Sticky) ----- */
.mp-nav {
  background: var(--mp-white);
  border-bottom: 1px solid var(--mp-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none;
  transition: box-shadow var(--mp-transition);
}

.mp-nav.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.mp-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.mp-nav__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.mp-nav__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--mp-black);
  display: block;
  transition: var(--mp-transition);
}

.mp-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.mp-nav__menu > li {
  position: relative;
}

.mp-nav__menu > li > a {
  display: block;
  padding: 15px 18px;
  font-family: var(--mp-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--mp-text);
  text-transform: capitalize;
  letter-spacing: 0.3px;
  transition: color var(--mp-transition);
  white-space: nowrap;
}

.mp-nav__menu > li > a:hover {
  color: var(--mp-accent-orange);
}

/* Dropdown */
.mp-nav__menu > li > .dropdown-menu {
  border: 1px solid var(--mp-border) !important;
  border-radius: 0 !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
  padding: 8px 0 !important;
  min-width: 200px;
  margin-top: 0 !important;
}

.mp-nav__menu .dropdown-item {
  font-size: 13px !important;
  padding: 8px 20px !important;
  color: var(--mp-text) !important;
  border-bottom: none !important;
  transition: all var(--mp-transition) !important;
}

.mp-nav__menu .dropdown-item:hover {
  background: var(--mp-light-gray) !important;
  color: var(--mp-black) !important;
  padding-left: 25px !important;
}

.mp-nav__search {
  flex-shrink: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--mp-text);
  font-size: 16px;
  transition: color var(--mp-transition);
  background: none;
  border: none;
}

.mp-nav__search:hover {
  color: var(--mp-accent-orange);
}

/* Language dropdown in nav */
.mp-nav__lang {
  position: relative;
  margin-left: 10px;
}

.mp-nav__lang > a {
  font-family: var(--mp-font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--mp-text);
  padding: 6px 12px;
  border: 1px solid var(--mp-border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ----- 6. Hero Section (3-column grid) ----- */
.mp-hero {
  padding: 20px 0 0;
}

.mp-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  grid-template-rows: auto;
  gap: 4px;
}

.mp-hero__item {
  position: relative;
  overflow: hidden;
  background: var(--mp-black);
}

.mp-hero__item a {
  display: block;
  height: 100%;
}

.mp-hero__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.mp-hero__item:hover img {
  transform: scale(1.05);
  opacity: 0.75;
}

.mp-hero__item--left {
  grid-row: 1 / 3;
  min-height: 450px;
}

.mp-hero__item--center {
  grid-row: 1 / 3;
  min-height: 450px;
}

.mp-hero__item--right-top,
.mp-hero__item--right-bottom {
  min-height: 223px;
}

.mp-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  z-index: 2;
}

.mp-hero__category {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--mp-font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mp-white);
  margin-bottom: 8px;
  border-radius: 2px;
}

.mp-hero__category--green { background: var(--mp-accent-green); }
.mp-hero__category--orange { background: var(--mp-accent-orange); }
.mp-hero__category--gray { background: var(--mp-accent-gray); }
.mp-hero__category--red { background: var(--mp-accent-red); }
.mp-hero__category--blue { background: var(--mp-accent-blue); }
.mp-hero__category--default { background: var(--mp-black); }

.mp-hero__title {
  font-family: var(--mp-font-heading);
  font-weight: 700;
  color: var(--mp-white);
  margin: 0 0 6px;
  line-height: 1.3;
}

.mp-hero__item--center .mp-hero__title {
  font-size: 1.6rem;
}

.mp-hero__item--left .mp-hero__title {
  font-size: 1.15rem;
}

.mp-hero__item--right-top .mp-hero__title,
.mp-hero__item--right-bottom .mp-hero__title {
  font-size: 1rem;
}

.mp-hero__title a {
  color: var(--mp-white) !important;
  text-decoration: none;
}

.mp-hero__meta {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.mp-hero__meta span {
  color: rgba(255,255,255,0.7);
}

/* ----- 7. Content + Sidebar Layout ----- */
.mp-content-area {
  padding: 35px 0;
}

.mp-content-area .row {
  display: flex;
  flex-wrap: wrap;
}

/* Main content column */
.mp-main {
  flex: 0 0 66.666%;
  max-width: 66.666%;
  padding-right: 25px;
}

/* Sidebar */
.mp-sidebar {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding-left: 25px;
  border-left: 1px solid var(--mp-border);
}

/* ----- 8. Section Headers (Colored accent) ----- */
.mp-section-title {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--mp-border);
  padding-bottom: 0;
}

.mp-section-title__text {
  font-family: var(--mp-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--mp-white);
  padding: 8px 18px;
  margin: 0;
  margin-bottom: -2px;
  display: inline-block;
  line-height: 1;
}

.mp-section-title__text a {
  color: var(--mp-white) !important;
  text-decoration: none;
}

.mp-section-title--green .mp-section-title__text { background: var(--mp-accent-green); }
.mp-section-title--orange .mp-section-title__text { background: var(--mp-accent-orange); }
.mp-section-title--gray .mp-section-title__text { background: var(--mp-accent-gray); }
.mp-section-title--red .mp-section-title__text { background: var(--mp-accent-red); }
.mp-section-title--blue .mp-section-title__text { background: var(--mp-accent-blue); }
.mp-section-title--default .mp-section-title__text { background: var(--mp-black); }

/* ----- 9. Featured Post (Large card) ----- */
.mp-featured-post {
  margin-bottom: 25px;
}

.mp-featured-post__image {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
}

.mp-featured-post__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.mp-featured-post:hover .mp-featured-post__image img {
  transform: scale(1.03);
}

.mp-featured-post__category {
  display: inline-block;
  font-family: var(--mp-font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mp-text-light);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.mp-featured-post__title {
  font-family: var(--mp-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mp-black);
  line-height: 1.35;
  margin: 0 0 8px;
}

.mp-featured-post__title a {
  color: var(--mp-black);
  text-decoration: none;
  transition: color var(--mp-transition);
}

.mp-featured-post__title a:hover {
  color: var(--mp-accent-orange);
}

.mp-featured-post__meta {
  font-size: 12px;
  color: var(--mp-text-muted);
}

.mp-featured-post__excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-top: 10px;
}

.mp-featured-post__stats {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--mp-text-muted);
}

/* ----- 10. Post List (Thumbnail + Text) ----- */
.mp-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-post-list__item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--mp-border);
  align-items: flex-start;
}

.mp-post-list__item:last-child {
  border-bottom: none;
}

.mp-post-list__thumb {
  flex-shrink: 0;
  width: 100px;
  height: 75px;
  overflow: hidden;
}

.mp-post-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mp-post-list__item:hover .mp-post-list__thumb img {
  transform: scale(1.05);
}

.mp-post-list__content {
  flex: 1;
  min-width: 0;
}

.mp-post-list__title {
  font-family: var(--mp-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--mp-black);
  line-height: 1.4;
  margin: 0 0 5px;
}

.mp-post-list__title a {
  color: var(--mp-black);
  text-decoration: none;
  transition: color var(--mp-transition);
}

.mp-post-list__title a:hover {
  color: var(--mp-accent-orange);
}

.mp-post-list__meta {
  font-size: 12px;
  color: var(--mp-text-muted);
}

.mp-post-list__excerpt {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
  margin-top: 4px;
}

/* ----- 11. Sidebar Widgets ----- */
.mp-widget {
  margin-bottom: 30px;
}

.mp-widget__title {
  font-family: var(--mp-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--mp-black);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--mp-border);
  position: relative;
}

.mp-widget__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--mp-black);
}

/* Sidebar Popular Posts (2-col grid) */
.mp-popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mp-popular-grid__item {
  position: relative;
}

.mp-popular-grid__image {
  overflow: hidden;
  margin-bottom: 10px;
  aspect-ratio: 4/3;
}

.mp-popular-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mp-popular-grid__item:hover .mp-popular-grid__image img {
  transform: scale(1.05);
}

.mp-popular-grid__title {
  font-family: var(--mp-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--mp-black);
  line-height: 1.4;
  margin: 0 0 4px;
}

.mp-popular-grid__title a {
  color: var(--mp-black);
  text-decoration: none;
  transition: color var(--mp-transition);
}

.mp-popular-grid__title a:hover {
  color: var(--mp-accent-orange);
}

.mp-popular-grid__meta {
  font-size: 11px;
  color: var(--mp-text-muted);
}

/* Sidebar small post list */
.mp-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-sidebar-list__item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mp-border);
  align-items: center;
}

.mp-sidebar-list__item:last-child {
  border-bottom: none;
}

.mp-sidebar-list__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  overflow: hidden;
}

.mp-sidebar-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-sidebar-list__title {
  font-family: var(--mp-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--mp-black);
  line-height: 1.3;
  margin: 0 0 3px;
}

.mp-sidebar-list__title a {
  color: var(--mp-black);
  text-decoration: none;
}

.mp-sidebar-list__title a:hover {
  color: var(--mp-accent-orange);
}

.mp-sidebar-list__meta {
  font-size: 11px;
  color: var(--mp-text-muted);
}

/* Tags in sidebar */
.mp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mp-tags a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--mp-text-light);
  border: 1px solid var(--mp-border-dark);
  background: var(--mp-white);
  transition: all var(--mp-transition);
  text-decoration: none;
}

.mp-tags a:hover {
  background: var(--mp-black);
  border-color: var(--mp-black);
  color: var(--mp-white);
}

/* ----- 12. Category Section Blocks (Home) ----- */
.mp-cat-section {
  padding: 30px 0;
  border-top: 1px solid var(--mp-border);
}

.mp-cat-section__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.mp-cat-section__left {
  /* Large featured post */
}

.mp-cat-section__right {
  /* List of posts */
}

/* ----- 13. Category Page (LifestylePro style) ----- */
.mp-category-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  height: 500px;
}

.mp-category-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-category-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.mp-category-hero__title {
  font-family: var(--mp-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--mp-white);
  margin: 0 0 8px;
  line-height: 1.2;
}

.mp-category-hero__meta {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* Category listing grid */
.mp-listing {
  padding: 35px 0;
}

.mp-listing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.mp-listing__item {
  position: relative;
}

.mp-listing__image {
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 16/10;
  background: var(--mp-light-gray);
}

.mp-listing__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mp-listing__item:hover .mp-listing__image img {
  transform: scale(1.03);
}

.mp-listing__category {
  font-family: var(--mp-font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mp-text-light);
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.mp-listing__title {
  font-family: var(--mp-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mp-black);
  line-height: 1.35;
  margin: 0 0 6px;
}

.mp-listing__title a {
  color: var(--mp-black);
  text-decoration: none;
  transition: color var(--mp-transition);
}

.mp-listing__title a:hover {
  color: var(--mp-accent-orange);
}

.mp-listing__excerpt {
  font-size: 14px;
  color: #777;
  line-height: 1.5;
  margin-bottom: 6px;
}

.mp-listing__meta {
  font-size: 12px;
  color: var(--mp-text-muted);
}

/* ----- 14. Breadcrumbs ----- */
.mp-breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--mp-text-muted);
  border-bottom: 1px solid var(--mp-border);
  margin-bottom: 0;
}

.mp-breadcrumb a {
  color: var(--mp-text-light);
  text-decoration: none;
}

.mp-breadcrumb a:hover {
  color: var(--mp-black);
}

.mp-breadcrumb span {
  color: var(--mp-text-muted);
  margin: 0 6px;
}

/* ----- 15. Pagination ----- */
.mp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 30px 0;
}

.mp-pagination a,
.mp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mp-text);
  border: 1px solid var(--mp-border-dark);
  background: var(--mp-white);
  transition: all var(--mp-transition);
  text-decoration: none;
}

.mp-pagination a:hover {
  background: var(--mp-black);
  border-color: var(--mp-black);
  color: var(--mp-white);
}

.mp-pagination .active a,
.mp-pagination .active span {
  background: var(--mp-black);
  border-color: var(--mp-black);
  color: var(--mp-white);
}

/* ----- 16. Footer ----- */
.mp-footer {
  background: var(--mp-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}

.mp-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.mp-footer__title {
  font-family: var(--mp-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--mp-white);
  text-transform: capitalize;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.mp-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-footer ul li {
  padding: 4px 0;
}

.mp-footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--mp-transition);
}

.mp-footer ul li a:hover {
  color: var(--mp-white);
}

.mp-footer__bottom {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-footer__copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.mp-footer__social {
  display: flex;
  gap: 12px;
}

.mp-footer__social a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: color var(--mp-transition);
}

.mp-footer__social a:hover {
  color: var(--mp-white);
}

/* ----- 17. Ad Units ----- */
.mp-ad {
  text-align: center;
  padding: 15px 0;
  min-height: 100px;
}

.mp-ad--sidebar {
  min-height: 250px;
  margin-bottom: 25px;
}

/* ----- 18. Floating CTA (Keep from before) ----- */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--mp-dark);
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border-top: 3px solid var(--mp-accent-orange);
}

.floating-cta.visible {
  transform: translateY(0);
}

.floating-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--mp-container);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  gap: 1rem;
}

.floating-cta__text {
  color: var(--mp-white);
  font-family: var(--mp-font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.floating-cta__text small {
  display: block;
  font-family: var(--mp-font);
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.floating-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mp-accent-green);
  color: var(--mp-white);
  font-family: var(--mp-font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.6rem 2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--mp-transition);
  white-space: nowrap;
}

.floating-cta__btn:hover {
  background: #4aa34a;
  color: var(--mp-white);
  text-decoration: none;
}

.floating-cta__btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.floating-cta__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.1rem;
}

.floating-cta__close:hover {
  color: var(--mp-white);
}

/* ----- 19. Return to Top ----- */
#return-to-top {
  background: var(--mp-black) !important;
  color: var(--mp-white) !important;
  border-radius: 0 !important;
  border: none !important;
  bottom: 70px !important;
}

#return-to-top:hover {
  background: var(--mp-accent-orange) !important;
}

/* ----- 20. Search Bar ----- */
.mp-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.mp-search-overlay.active {
  display: flex;
}

.mp-search-overlay__inner {
  width: 90%;
  max-width: 600px;
}

.mp-search-overlay input {
  width: 100%;
  padding: 18px 25px;
  font-size: 18px;
  border: none;
  outline: none;
  font-family: var(--mp-font);
}

/* ----- 21. Category Badge Colors (Auto-assign) ----- */
.mp-badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--mp-font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mp-white);
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.mp-badge--1 { background: var(--mp-accent-green); }
.mp-badge--2 { background: var(--mp-accent-gray); }
.mp-badge--3 { background: var(--mp-accent-orange); }
.mp-badge--4 { background: var(--mp-accent-red); }
.mp-badge--5 { background: var(--mp-accent-blue); }
.mp-badge--6 { background: #9b59b6; }

/* ----- 22. Loading ----- */
.loading-container {
  background: var(--mp-white) !important;
}

/* ----- LEGACY OVERRIDES (Override old theme classes) ----- */
.bg-light { background: var(--mp-light-gray) !important; }
.bg-white { background: var(--mp-white) !important; }
.bg__footer-dark { background: var(--mp-dark) !important; }
.text-primary { color: var(--mp-accent-orange) !important; }
.text-dark { color: var(--mp-text) !important; }
.border_section {
  font-family: var(--mp-font-heading) !important;
  font-weight: 700 !important;
  color: var(--mp-black) !important;
  text-transform: capitalize !important;
  font-size: 14px !important;
  letter-spacing: 0.3px !important;
  border-bottom: 2px solid var(--mp-border) !important;
  padding-bottom: 10px !important;
  margin-bottom: 20px !important;
  display: block !important;
  position: relative;
}

.border_section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--mp-black) !important;
}

.border_section::before { display: none !important; }

.border_section a { color: var(--mp-black) !important; }
.border_section a:hover { color: var(--mp-accent-orange) !important; }

/* Navigation legacy overrides */
.navigation-wrap {
  background: var(--mp-white) !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--mp-border) !important;
}

.navbar-soft .nav-link {
  color: var(--mp-text) !important;
  font-family: var(--mp-font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: capitalize;
}

.navbar-soft .nav-link:hover {
  color: var(--mp-accent-orange) !important;
}

/* Card legacy overrides */
.card__post {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.card__post__body img {
  border-radius: 0 !important;
}

.card__post__content.bg__post-cover {
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%) !important;
}

.card__post__category {
  background: var(--mp-accent-green) !important;
  color: var(--mp-white) !important;
  border-radius: 2px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 3px 10px !important;
  letter-spacing: 0.5px !important;
}

.card__post__title h2 a,
.card__post__title h5 a {
  color: var(--mp-white) !important;
  font-family: var(--mp-font-heading) !important;
}

.card__post__title h6 a {
  color: var(--mp-black) !important;
  font-family: var(--mp-font-heading) !important;
}

.card__post__author-info span {
  font-size: 12px !important;
}

/* Article entry legacy overrides */
.article__entry {
  background: var(--mp-white) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.article__entry:hover {
  border-color: transparent !important;
  transform: none !important;
}

.article__content h5 a,
.article__content h6 a {
  color: var(--mp-black) !important;
  font-family: var(--mp-font-heading) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

.article__content h5 a:hover,
.article__content h6 a:hover {
  color: var(--mp-accent-orange) !important;
}

/* Pagination legacy */
.pagination li a,
.pagination li span {
  border: 1px solid var(--mp-border-dark) !important;
  color: var(--mp-text) !important;
  border-radius: 0 !important;
  font-weight: 600;
  font-size: 13px;
}

.pagination li a:hover {
  background: var(--mp-black) !important;
  border-color: var(--mp-black) !important;
  color: var(--mp-white) !important;
}

.pagination li.active a,
.pagination li.active span {
  background: var(--mp-black) !important;
  border-color: var(--mp-black) !important;
  color: var(--mp-white) !important;
}

/* Footer legacy */
.footer-title {
  color: var(--mp-white) !important;
  font-family: var(--mp-font-heading) !important;
  font-size: 14px !important;
  text-transform: capitalize !important;
}

.wrapper__footer .option-content a {
  color: rgba(255,255,255,0.6) !important;
  font-size: 13px;
}

.wrapper__footer .option-content a:hover {
  color: var(--mp-white) !important;
}

.btn.btn-social,
a.btn.btn-social {
  background: transparent !important;
  color: rgba(255,255,255,0.5) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 0 !important;
}

.btn.btn-social:hover,
a.btn.btn-social:hover {
  color: var(--mp-white) !important;
  border-color: var(--mp-white) !important;
  background: transparent !important;
}

.btn.btn-social i,
a.btn.btn-social i {
  color: rgba(255,255,255,0.5) !important;
}

.btn.btn-social:hover i,
a.btn.btn-social:hover i {
  color: var(--mp-white) !important;
}

/* Breadcrumbs legacy */
.breadcrumbs {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--mp-border);
  font-size: 13px;
}

.breadcrumbs a { color: var(--mp-text-light) !important; }
.breadcrumbs a:hover { color: var(--mp-black) !important; }
.breadcrumbs__item--current span { color: var(--mp-text-muted) !important; }

/* Blog tags legacy */
.blog-tags a {
  border: 1px solid var(--mp-border-dark) !important;
  color: var(--mp-text-light) !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  padding: 5px 12px !important;
  background: var(--mp-white) !important;
}

.blog-tags a:hover {
  background: var(--mp-black) !important;
  border-color: var(--mp-black) !important;
  color: var(--mp-white) !important;
}

/* Form controls */
.form-control {
  border-radius: 0 !important;
  border: 1px solid var(--mp-border-dark) !important;
}

.form-control:focus {
  border-color: var(--mp-black) !important;
  box-shadow: none !important;
}

/* Buttons */
.btn-primary {
  background: var(--mp-black) !important;
  border-color: var(--mp-black) !important;
  border-radius: 0 !important;
  font-family: var(--mp-font-heading);
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: var(--mp-accent-orange) !important;
  border-color: var(--mp-accent-orange) !important;
}

.btn-outline-primary {
  color: var(--mp-black) !important;
  border: 1px solid var(--mp-black) !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.btn-outline-primary:hover {
  background: var(--mp-black) !important;
  color: var(--mp-white) !important;
}

/* Detail page */
.article-detail__category a {
  background: var(--mp-accent-green) !important;
  color: var(--mp-white) !important;
  padding: 3px 12px !important;
  font-family: var(--mp-font-heading) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-radius: 2px !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.article-detail__body {
  color: var(--mp-text) !important;
  line-height: 1.8 !important;
}

.article-detail__body h2,
.article-detail__body h3 {
  font-family: var(--mp-font-heading) !important;
  color: var(--mp-black) !important;
}

.article-detail__body blockquote {
  border-left: 3px solid var(--mp-black) !important;
  background: var(--mp-light-gray) !important;
  padding: 15px 20px !important;
  border-radius: 0 !important;
}

/* Booking CTA */
.booking-cta {
  background: var(--mp-black) !important;
  border-radius: 0 !important;
  border: none !important;
}

.booking-cta .btn-primary {
  background: var(--mp-accent-green) !important;
  border-color: var(--mp-accent-green) !important;
}

.booking-cta .btn-primary:hover {
  background: var(--mp-white) !important;
  color: var(--mp-black) !important;
}

/* TOC */
.toc-box {
  background: var(--mp-light-gray) !important;
  border: 1px solid var(--mp-border) !important;
  border-radius: 0 !important;
}

/* Prev/Next */
.prev-next-nav a {
  background: var(--mp-light-gray) !important;
  border-radius: 0 !important;
  border: 1px solid transparent !important;
}

.prev-next-nav a:hover {
  border-color: var(--mp-black) !important;
}

/* Article share */
.article-share {
  background: var(--mp-light-gray) !important;
  border-radius: 0 !important;
}

/* Sidebar numbered list */
.wrapper__list-number .list-number span {
  background: var(--mp-black) !important;
  color: var(--mp-white) !important;
  border-radius: 0 !important;
}

/* Popular carousel */
section.bg-light {
  background: var(--mp-light-gray) !important;
  border-top: 1px solid var(--mp-border);
  border-bottom: 1px solid var(--mp-border);
}

/* Wrapper section */
.wrapper__section {
  background: var(--mp-bg) !important;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Modal sidebar */
.modal-dialog-aside .modal-content {
  border-radius: 0 !important;
}

.modal-dialog-aside .nav-link {
  color: var(--mp-text) !important;
  border-bottom: 1px solid var(--mp-border);
  padding: 0.75rem 0 !important;
}

.modal-dialog-aside .nav-link:hover {
  color: var(--mp-accent-orange) !important;
}

/* Section spacing */
section { padding: 25px 0; }

/* ----- MOBILE RESPONSIVE ----- */
@media (max-width: 991px) {
  .mp-hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .mp-hero__item--left {
    grid-row: auto;
    min-height: 300px;
  }

  .mp-hero__item--center {
    grid-row: auto;
    min-height: 300px;
  }

  .mp-hero__item--right-top,
  .mp-hero__item--right-bottom {
    min-height: 200px;
  }

  .mp-main {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 15px;
  }

  .mp-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 15px;
    border-left: none;
    border-top: 1px solid var(--mp-border);
    margin-top: 25px;
    padding-top: 25px;
  }

  .mp-cat-section__content {
    grid-template-columns: 1fr;
  }

  .mp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .mp-category-hero { height: 350px; }
  .mp-category-hero__title { font-size: 1.8rem; }
}

@media (max-width: 767px) {
  .mp-topbar { display: none; }

  .mp-header { padding: 15px 0; }
  .mp-header__logo h1 { font-size: 1.5rem; }
  .mp-header__ad { display: none; }

  .mp-nav__menu {
    display: none;
  }

  .mp-hero__grid {
    grid-template-columns: 1fr;
  }

  .mp-hero__item--left,
  .mp-hero__item--center {
    min-height: 250px;
  }

  .mp-hero__item--right-top,
  .mp-hero__item--right-bottom {
    min-height: 180px;
  }

  .mp-hero__item--center .mp-hero__title { font-size: 1.2rem; }
  .mp-hero__item--left .mp-hero__title { font-size: 1rem; }

  .mp-listing__grid {
    grid-template-columns: 1fr;
  }

  .mp-popular-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .mp-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mp-footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .mp-category-hero { height: 250px; }
  .mp-category-hero__overlay { padding: 20px; }
  .mp-category-hero__title { font-size: 1.4rem; }

  /* Floating CTA mobile */
  .floating-cta__inner {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }

  .floating-cta__text { font-size: 0.8rem; }
  .floating-cta__text small { display: none; }
  .floating-cta__btn { padding: 0.5rem 1rem; font-size: 0.75rem; }

  /* Body padding for CTA */
  body { padding-bottom: 60px; }

  /* Compact sidebar cards */
  .card__post-list .image-sm {
    max-width: 80px !important;
    min-width: 80px !important;
  }

  /* Mobile nav toggle */
  .collapse.navbar-collapse { display: none; }
}

@media (min-width: 768px) {
  body { padding-bottom: 55px; }
}

/* Category page overrides for article__entry within category template */
.article__entry .article__image {
  overflow: hidden !important;
}

.article__entry .article__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

/* Override any remaining magenta colors */
span[style*="color:#e6007f"],
a[style*="color:#e6007f"],
*[style*="background:#e6007f"],
*[style*="background-color:#e6007f"] {
  color: var(--mp-accent-orange) !important;
}

*[style*="background:#e6007f"],
*[style*="background-color:#e6007f"] {
  background: var(--mp-accent-orange) !important;
  background-color: var(--mp-accent-orange) !important;
}
