﻿/* =========================================================
   ModemWorld Lite — HamidCMS theme
   Faithful to modemworld.ir:
   white header | teal #028690 CTAs | sections #f5f5f5
   footer #161616 | Vazirmatn | pill social buttons bottom corners
   icon-over-label menu | LTR post grid | bouncing WA + Telegram
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --mwl-primary: #028690;
    --mwl-primary-dark: #026e77;
    --mwl-accent: #028690;
    --mwl-section: #f5f5f5;
    --mwl-footer: #161616;
    --mwl-text: #222222;
    --mwl-muted: #69727d;
    --mwl-border: #e7e9ec;
    --mwl-wa: #25d366;
    --mwl-tg: #0088cc;
    --mwl-menu-hover: #028690;
    --mwl-divider: #54595f;
}

/* Vazirmatn typography for text elements */
body, input, textarea, button, select, h1, h2, h3, h4, h5, h6, p, a, div, td, th, li {
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

/* Guard icon fonts: ensure icons are never forced to use Vazirmatn */
.bi, [class^="bi-"], [class*=" bi-"], i.bi {
    font-family: "bootstrap-icons" !important;
    font-style: normal !important;
    font-weight: normal !important;
    display: inline-block;
    line-height: 1;
}

.fa, .fas, .far, .fal, .fab, [class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-style: normal !important;
    font-weight: 900 !important;
    display: inline-block;
    line-height: 1;
}

body.mwl-body {
    color: var(--mwl-text);
    background: #fff;
    font-size: 15px;
}

a { color: var(--mwl-primary); }
a:hover { color: var(--mwl-primary-dark); }

/* ---------- Header (white, like the original) ---------- */
.mwl-header { background: #fff; border-bottom: 1px solid var(--mwl-border); box-shadow: 0 1px 4px rgba(8, 20, 32, .04); z-index: 1030; }

.mwl-topbar { background: #fff; color: #555; font-size: .8rem; border-bottom: 1px solid var(--mwl-border); }
.mwl-topbar a { color: #555; }
.mwl-topbar a:hover { color: var(--mwl-primary); }

.mwl-navbar { background: #fff; }
.mwl-navbar .nav-link { color: #343a40; font-weight: 500; padding-inline: .9rem; }
.mwl-navbar .nav-link:hover,
.mwl-navbar .nav-link:focus,
.mwl-navbar .nav-link.active { color: var(--mwl-primary); }

/* ---------- Main menu: icon above label (like the original .mw-menu) ---------- */
.mwl-navbar .mwl-menu { align-items: stretch; gap: 2px; }
.mwl-navbar .mwl-menu .mwl-mi { position: relative; display: flex; }
.mwl-navbar .mwl-menu .mwl-mi > .nav-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; min-width: 96px; padding: 7px 18px; border-radius: 0;
    color: #343a40; font-size: 14px; font-weight: 600;
    border-bottom: 3px solid transparent; background: transparent;
    transition: color .2s ease, border-color .2s ease;
}
.mwl-navbar .mwl-menu .mwl-mi > .nav-link:hover,
.mwl-navbar .mwl-menu .mwl-mi > .nav-link:focus,
.mwl-navbar .mwl-menu .mwl-mi > .nav-link.active,
.mwl-navbar .mwl-menu .mwl-mi.show > .nav-link {
    color: var(--mwl-menu-hover);
    border-bottom-color: var(--mwl-menu-hover);
}
.mwl-navbar .mwl-menu .mwl-mi-ic { display: flex; align-items: center; justify-content: center; height: 26px; }
.mwl-navbar .mwl-menu .mwl-mi-ic i { font-size: 1.4rem; line-height: 1; }
.mwl-navbar .mwl-menu .mwl-mi-tx { font-size: 14px; font-weight: 600; white-space: nowrap; }
.mwl-navbar .mwl-menu .mwl-mi-ar {
    position: absolute; bottom: 6px; inset-inline-end: 6px;
    font-size: 13px; line-height: 1; color: #9aa4ae;
}
.mwl-navbar .mwl-menu .dropdown-toggle::after { display: none; }
.mwl-navbar .mwl-menu .dropdown-menu {
    margin-top: 0; border: 1px solid var(--mwl-border); border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 35, 55, .14); padding: 8px; min-width: 240px;
}
.mwl-navbar .mwl-menu .dropdown-item { border-radius: 9px; font-size: 14px; font-weight: 500; padding: 11px 16px; text-align: start; }
.mwl-navbar .mwl-menu .dropdown-item:hover,
.mwl-navbar .mwl-menu .dropdown-item:focus { background: rgba(2, 134, 144, 0.08); color: var(--mwl-menu-hover); }

/* Stacked (mobile) menu: icon beside the label */
@media (max-width: 991.98px) {
    .mwl-navbar .mwl-menu .mwl-mi > .nav-link {
        flex-direction: row; justify-content: flex-start; align-items: center;
        gap: 10px; min-width: 0; padding: 10px 12px; border-bottom: 0;
    }
    .mwl-navbar .mwl-menu .mwl-mi-ic { height: auto; }
    .mwl-navbar .mwl-menu .mwl-mi-ic i { font-size: 1.15rem; }
    .mwl-navbar .mwl-menu .mwl-mi-ar { position: static; margin-inline-start: auto; }
    .mwl-navbar .mwl-menu .dropdown-menu { border: 0; box-shadow: none; padding-inline: 1rem; }
}

.mwl-brand-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--mwl-primary); color: #fff; font-size: 1.3rem;
}
.mwl-navbar .navbar-brand {
    color: var(--mwl-text) !important;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
}
.mwl-navbar .mwl-brand-left {
    margin-inline-start: auto;
}
.mwl-logo,
.mwl-header .custom-logo,
.mwl-header img[alt*="logo" i] {
    max-height: 52px;
    max-width: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 991.98px) {
    .mwl-navbar .navbar-collapse {
        width: 100%;
        margin-top: .6rem;
    }
}

@media (max-width: 576px) {
    .mwl-logo,
    .mwl-header .custom-logo,
    .mwl-header img[alt*="logo" i] {
        max-height: 42px;
        max-width: 190px;
    }
}

.mwl-toggler { border-color: var(--mwl-border); }

.mwl-btn-phone {
    background: var(--mwl-primary); color: #fff !important;
    font-weight: 700; border-radius: 50px; padding: .45rem 1.1rem; font-size: .9rem;
}
.mwl-btn-phone:hover { background: var(--mwl-primary-dark); }

/* ---------- Full-width hero image (top of home) ----------
   Like the original: full-bleed, edge to edge, natural aspect ratio,
   never cropped and never letterboxed. */
.mwl-hero { line-height: 0; background: #fff; }
.mwl-hero img {
    width: 100%;
    height: auto;
    display: block;
}
.mwl-hero-intro {
    background: #fdfefe;
    border-bottom: 1px solid var(--mwl-divider);
    color: var(--mwl-text);
}
.mwl-hero-intro h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2b3940;
    margin: 0;
}

/* ---------- Floating WhatsApp / Telegram (pill buttons) ----------
   Like the original: WhatsApp at the bottom-LEFT, Telegram at the
   bottom-RIGHT — and BOTH bounce with the same mwp-bounce animation. */
.mwl-float-wrap {
    position: fixed; z-index: 300; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: space-between; align-items: flex-end;
        padding: 14px; pointer-events: none;
    direction: ltr; /* keep WA bottom-left / TG bottom-right even in RTL */
}
.mwl-float {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 50px; padding: 10px 20px;
    font-weight: 700; font-size: 13px; color: #fff !important;
    text-decoration: none !important; border: 0; line-height: 1;
    white-space: nowrap; pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .18);
}
.mwl-float i { font-size: 1.15rem; }
.mwl-float-wa,
.mwl-float-tg {
    animation: mwp-bounce 1s infinite;   /* both buttons bounce, like the original */
}
.mwl-float-wa {
    background: var(--mwl-wa);
    box-shadow: 0 4px 15px rgba(37, 211, 102, .4);
}
.mwl-float-wa:hover { background: #128c7e; }
.mwl-float-tg {
    background: var(--mwl-tg);
    box-shadow: 0 4px 15px rgba(0, 136, 204, .4);
}
.mwl-float-tg:hover { background: #006699; }

/* Same curve as the original site */
@keyframes mwp-bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); }
    50%      { transform: translateY(0);    animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}
@media (max-width: 768px) {
    .mwl-float { padding: 10px 14px; }
    .mwl-float span { display: none; } /* icon-only on small screens */
}

/* ---------- Home: advantages ---------- */
.mwl-intro-title { font-weight: 700; color: var(--mwl-text); }
.mwl-features .mwl-feature { text-align: center; padding: 1.25rem .75rem; }
.mwl-features .mwl-feature i {
    font-size: 1.9rem; color: var(--mwl-primary); display: block; margin-bottom: .5rem;
}
.mwl-features .mwl-feature h6 { font-weight: 700; }
.mwl-features .mwl-feature p { font-size: .85rem; color: var(--mwl-muted); margin: 0; }

/* ---------- Gray sections (#f5f5f5 like the original) ---------- */
.mwl-section { background: var(--mwl-section); }

/* Section headings (original: centered divider — line, text, line) */
.mwl-section-title {
    display: flex; align-items: center; justify-content: center; gap: 1.1rem;
    font-weight: 600; color: #000; text-align: center;
    font-size: 15px; letter-spacing: -.1px;
}
.mwl-section-title::before,
.mwl-section-title::after {
    content: ""; flex: 0 0 auto; width: min(150px, 14vw);
    border-top: 1px solid var(--mwl-divider);
}


/* ---------- Post cards (like the original mwp-posts-grid) ----------
   The grid flows left-to-right (direction:ltr) exactly like the original,
   while the card text stays right-aligned (RTL).
   white card | 1px #eee border | 16px radius | 160px cover image
   date 12px #999 | title 15px/600 #333 | excerpt 13px #666
   full-width teal مشاهده button | 4 per row on desktop */
.mwl-posts-grid { display: flex; flex-wrap: wrap; margin: 0 -10px; direction: ltr; }
.mwl-post-col { padding: 10px; box-sizing: border-box; flex: 0 0 25%; max-width: 25%; }
@media (max-width: 991px) { .mwl-post-col { flex: 0 0 50%; max-width: 50%; } }
@media (max-width: 575px) { .mwl-post-col { flex: 0 0 100%; max-width: 100%; } }

.mwl-card {
    background: #fff; border: 1px solid #eee; border-radius: 16px; overflow: hidden;
    height: 100%; display: flex; flex-direction: column;
    direction: rtl; text-align: right;
    transition: transform .2s ease, box-shadow .2s ease;
}
.mwl-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(8, 20, 32, .1); }
.mwl-card-img {
    width: 100%; height: 160px; object-fit: cover; display: block; border-radius: 0;
}
.mwl-card-placeholder {
    height: 160px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--mwl-primary) 0%, var(--mwl-accent) 100%);
    color: rgba(255, 255, 255, .9); font-size: 2.6rem;
}
.mwl-card-date { font-size: 12px; color: #999; }
.mwl-card-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.mwl-card-title a { color: #333; text-decoration: none; font-weight: 600; }
.mwl-card-title a:hover { color: var(--mwl-primary); }
.mwl-card-text { color: #666; font-size: 13px; line-height: 1.6; flex-grow: 1; }

/* Filled teal CTA — full-width and centered, like the original "مشاهده" button */
.mwl-btn-view {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    align-self: stretch; text-align: center;
    background: var(--mwl-primary); color: #fff !important;
    border-radius: 8px; padding: 8px 20px;
    font-size: 13px; font-weight: 600; text-decoration: none !important;
    border: 0; transition: background .15s ease;
}
.mwl-btn-view:hover { background: var(--mwl-primary-dark); }

/* ---------- Inner pages ---------- */
.mwl-page-hero {
    background: linear-gradient(135deg, var(--mwl-primary-dark) 0%, var(--mwl-primary) 100%);
    color: #fff; padding: 2.75rem 0 2.25rem;
}
.mwl-page-hero .breadcrumb-item a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.mwl-page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .55); }
.mwl-page-hero .breadcrumb-item.active { color: #fff; }

.mwl-content {
    background: #fff; border: 1px solid var(--mwl-border); border-radius: 10px;
    padding: 2rem; box-shadow: 0 4px 14px rgba(8, 20, 32, .05);
}
@media (min-width: 768px) { .mwl-content { padding: 2.5rem; } }

.mwl-summary {
    border-inline-start: 4px solid var(--mwl-primary);
    background: var(--mwl-section); border-radius: 8px; padding: 1rem 1.25rem;
    color: var(--mwl-muted);
}

.mwl-content img,
.mwl-entry-content img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.mwl-content h1, .mwl-content h2, .mwl-content h3,
.mwl-entry-content h1, .mwl-entry-content h2, .mwl-entry-content h3 {
    font-weight: 700;
    color: var(--mwl-text);
}
.mwl-content h2 { margin-top: 1.75rem; border-bottom: 2px solid var(--mwl-section); padding-bottom: .35rem; }
.mwl-entry-content { line-height: 1.8; }
.mwl-home-container { max-width: 1240px; }

.mwl-tag {
    display: inline-block; padding: .25rem .75rem; border: 1px solid var(--mwl-border);
    border-radius: 50px; font-size: .8rem; color: var(--mwl-muted); text-decoration: none;
}
.mwl-tag:hover { border-color: var(--mwl-primary); color: var(--mwl-primary); }

/* ---------- Sidebar ---------- */
.mwl-widget {
    background: #fff; border: 1px solid var(--mwl-border); border-radius: 10px;
    padding: 1.25rem; margin-bottom: 1.5rem; box-shadow: 0 4px 14px rgba(8, 20, 32, .05);
}
.mwl-widget-title {
    font-weight: 700; font-size: .95rem; color: var(--mwl-text);
    padding-bottom: .6rem; margin-bottom: .9rem; border-bottom: 2px solid var(--mwl-section);
}
.mwl-widget ul { list-style: none; margin: 0; padding: 0; }
.mwl-widget li + li { border-top: 1px dashed var(--mwl-border); }
.mwl-widget li { padding: .55rem 0; }
.mwl-widget li a { color: var(--mwl-text); text-decoration: none; font-weight: 500; font-size: .9rem; }
.mwl-widget li a:hover { color: var(--mwl-primary); }
.mwl-widget .badge-count {
    background: var(--mwl-section); color: var(--mwl-text);
    border-radius: 50px; padding: .1rem .6rem; font-size: .75rem;
}

/* ---------- Pagination ---------- */
.mwl-pagination .page-link {
    color: var(--mwl-primary); border-radius: 8px; margin: 0 .15rem; border: 1px solid var(--mwl-border);
}
.mwl-pagination .page-item.active .page-link {
    background: var(--mwl-primary); border-color: var(--mwl-primary); color: #fff;
}

/* ---------- Footer (#161616 like the original) ---------- */
.mwl-footer { background: var(--mwl-footer); color: #fff; }
.mwl-footer-title {
    font-weight: 700; font-size: 1rem; margin-bottom: 1rem; color: #fff;
    padding-bottom: .5rem; border-bottom: 2px solid var(--mwl-primary); display: inline-block;
}
.mwl-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.mwl-footer a:hover { color: #fff; }
.mwl-footer-links li { padding: .3rem 0; }
.mwl-footer-links i { font-size: .7rem; opacity: .7; }
.mwl-footer-bottom { background: rgba(0, 0, 0, .35); font-size: .8rem; }

/* ---------- Misc ---------- */
::selection { background: var(--mwl-primary); color: #fff; }


/* =========================================================
   ModemWorld Live Parity Homepage Styles
   ========================================================= */

/* Hero Banner */
.mwl-hero {
    width: 100%;
    line-height: 0;
    background: #fff;
    overflow: hidden;
    position: relative;
}
.mwl-hero-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Centered Divider with horizontal lines */
.mwl-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.5rem auto;
}
.mwl-divider-line {
    flex: 0 0 auto;
    width: min(150px, 15vw);
    border-top: 1px solid #54595f;
}
.mwl-divider-text {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
}

/* Intro Text */
.mwl-intro-text {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* Advantages Grid */
.mwl-advantage-card {
    padding: 1.25rem .75rem;
}
.mwl-advantage-icon {
    font-size: 2.4rem;
    color: var(--mwl-primary);
    background: transparent !important;
    line-height: 1;
}
.mwl-advantage-icon i {
    font-family: "bootstrap-icons" !important;
    font-style: normal !important;
    font-size: 2.4rem !important;
    line-height: 1 !important;
    color: var(--mwl-primary) !important;
    background: transparent !important;
}
.mwl-advantage-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}
.mwl-advantage-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

/* Center Modem Section (#f5f5f5) */
.mwl-modem-section {
    background-color: #f5f5f5;
}
.mwl-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mwl-check-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}
.mwl-check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--mwl-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.mwl-check-icon i {
    font-family: "bootstrap-icons" !important;
    font-style: normal !important;
    font-size: 13px !important;
    line-height: 1 !important;
    color: #fff !important;
    background: transparent !important;
}
.mwl-modem-img-wrap {
    text-align: center;
    margin: 1rem auto;
}
.mwl-modem-img {
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08));
}

/* Services Cards Section (#ffffff) */
.mwl-services-section {
    background-color: #fff;
}
.mwl-services-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}
.mwl-service-card {
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(8, 20, 32, .06);
    padding: 2.25rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.mwl-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(8, 20, 32, .12);
}
.mwl-service-icon {
    font-size: 3rem;
    color: var(--mwl-primary);
    background: transparent !important;
    background-color: transparent !important;
    width: auto;
    height: auto;
    border-radius: 0;
    line-height: 1;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mwl-service-icon i {
    font-family: "bootstrap-icons" !important;
    font-style: normal !important;
    font-size: 3rem !important;
    line-height: 1 !important;
    color: var(--mwl-primary) !important;
    background: transparent !important;
    background-color: transparent !important;
}
.mwl-service-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
.mwl-service-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

/* Latest Posts Section (#f5f5f5) */
.mwl-posts-section {
    background-color: #f5f5f5;
}
.mwp-posts-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    direction: ltr; /* keep left-to-right flex direction like modemworld.ir */
}
.mwp-post-col {
    padding: 10px;
    box-sizing: border-box;
    flex: 0 0 25% !important;
    max-width: 25% !important;
}
@media (max-width: 991px) {
    .mwp-post-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}
@media (max-width: 575px) {
    .mwp-post-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
.mwp-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
    transition: transform .2s ease, box-shadow .2s ease;
}
.mwp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(8, 20, 32, .1);
}
.mwp-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.mwp-card-placeholder {
    width: 100%;
    height: 160px;
    background: #f0f4f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa4ae;
    font-size: 2.5rem;
}
.mwp-card-body {
    padding: 15px;
    text-align: right;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mwp-card-date {
    font-size: 12px;
    color: #999;
    margin: 0 0 6px;
}
.mwp-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}
.mwp-card-title a {
    color: #333;
    text-decoration: none;
    transition: color .2s ease;
}
.mwp-card-title a:hover {
    color: var(--mwl-primary);
}
.mwp-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
}
.mwp-card-btn {
    display: inline-block;
    background: var(--mwl-primary);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    align-self: stretch;
    transition: background .2s ease;
}
.mwp-card-btn:hover {
    background: var(--mwl-primary-dark);
}
/* ===================================================
   MODEMWORLD TEAL BRAND MENU & POST CARDS ENHANCEMENT
   =================================================== */
:root {
    --mwl-accent: #028690 !important;
    --mwl-menu-hover: #028690 !important;
}

.mwl-navbar .mwl-menu .mwl-mi > .nav-link:hover,
.mwl-navbar .mwl-menu .mwl-mi > .nav-link:focus,
.mwl-navbar .mwl-menu .mwl-mi > .nav-link.active,
.mwl-navbar .mwl-menu .mwl-mi.show > .nav-link {
    color: #028690 !important;
    border-bottom-color: #028690 !important;
}

.mwl-navbar .mwl-menu .dropdown-item:hover,
.mwl-navbar .mwl-menu .dropdown-item:focus {
    background: rgba(2, 134, 144, 0.08) !important;
    color: #028690 !important;
}

.btn-outline-primary {
    --bs-btn-color: #028690 !important;
    --bs-btn-border-color: #028690 !important;
    --bs-btn-hover-color: #ffffff !important;
    --bs-btn-hover-bg: #028690 !important;
    --bs-btn-hover-border-color: #028690 !important;
    --bs-btn-active-bg: #01626a !important;
    --bs-btn-active-border-color: #01626a !important;
}

.mwl-card,
.mwl-posts-grid .mwl-card {
    background: #ffffff;
    border: 1px solid #e9ecef !important;
    border-radius: 18px !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(8, 20, 32, 0.04) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mwl-card:hover,
.mwl-posts-grid .mwl-card:hover {
    transform: translateY(-6px);
    border-color: #028690 !important;
    box-shadow: 0 16px 36px rgba(2, 134, 144, 0.16) !important;
}

.mwl-card-img,
.mwl-posts-grid .mwl-card-img {
    height: 195px !important;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.mwl-card:hover .mwl-card-img,
.mwl-posts-grid .mwl-card:hover .mwl-card-img {
    transform: scale(1.07);
}

.mwl-card .card-body,
.mwl-posts-grid .mwl-card .card-body {
    padding: 1.25rem !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mwl-card .badge,
.mwl-posts-grid .mwl-card .badge {
    background: rgba(2, 134, 144, 0.08) !important;
    color: #028690 !important;
    border: 1px solid rgba(2, 134, 144, 0.16) !important;
    font-weight: 600;
    font-size: 0.76rem !important;
    padding: 0.3rem 0.75rem !important;
    border-radius: 50px !important;
    margin-bottom: 0.75rem !important;
}

.mwl-card .card-title,
.mwl-posts-grid .mwl-card .card-title,
.mwl-card-title {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    line-height: 1.55;
    margin-bottom: 0.65rem !important;
}

.mwl-card .card-title a,
.mwl-posts-grid .mwl-card .card-title a,
.mwl-card-title a {
    color: #1a252c !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.mwl-card .card-title a:hover,
.mwl-posts-grid .mwl-card .card-title a:hover,
.mwl-card-title a:hover {
    color: #028690 !important;
}

.mwl-card .card-text,
.mwl-posts-grid .mwl-card .card-text,
.mwl-card-text {
    font-size: 0.84rem !important;
    color: #64748b !important;
    line-height: 1.7;
    margin-bottom: 1.25rem !important;
}

.mwl-card .btn-outline-primary,
.mwl-posts-grid .mwl-card .btn-outline-primary,
.mwl-card .btn,
.mwl-posts-grid .mwl-card .btn,
.mwl-btn-view {
    background: #028690 !important;
    border: 1px solid #028690 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 0.65rem 1rem !important;
    box-shadow: 0 4px 12px rgba(2, 134, 144, 0.2) !important;
    transition: all 0.25s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto !important;
    text-decoration: none !important;
}

.mwl-card .btn-outline-primary:hover,
.mwl-posts-grid .mwl-card .btn-outline-primary:hover,
.mwl-card .btn:hover,
.mwl-posts-grid .mwl-card .btn:hover,
.mwl-btn-view:hover {
    background: #01626a !important;
    border-color: #01626a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(2, 134, 144, 0.3) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Modern Comments Section Styling (مودم‌ورلد)
   ========================================================================== */
.comments-section {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 2px dashed #e2e8f0 !important;
}

.comments-section > h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem !important;
}

.comments-section > h4 .bi-chat-dots {
    color: var(--mwl-primary) !important;
    background: rgba(2, 134, 144, 0.1);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.25rem;
}

/* Individual Comment Items */
.comments-list .comment-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    margin-bottom: 1rem !important;
    position: relative;
}

.comments-list .comment-item:hover {
    border-color: rgba(2, 134, 144, 0.35) !important;
    box-shadow: 0 8px 25px rgba(2, 134, 144, 0.08) !important;
    transform: translateY(-2px);
}

/* Author Header Inside Comment */
.comments-list .comment-item .bi-person-circle {
    font-size: 1.5rem !important;
    color: var(--mwl-primary) !important;
    opacity: 0.9;
}

.comments-list .comment-item .fw-bold.text-dark {
    font-size: 0.98rem;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.comments-list .comment-item small.text-muted {
    font-size: 0.78rem;
    color: #64748b !important;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

/* Reply Button */
.comments-list .comment-item .btn-reply-comment {
    background: rgba(2, 134, 144, 0.08) !important;
    color: var(--mwl-primary) !important;
    border: 1px solid rgba(2, 134, 144, 0.2) !important;
    border-radius: 20px !important;
    padding: 4px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comments-list .comment-item .btn-reply-comment:hover {
    background: var(--mwl-primary) !important;
    color: #ffffff !important;
    border-color: var(--mwl-primary) !important;
    box-shadow: 0 2px 8px rgba(2, 134, 144, 0.25);
    transform: scale(1.03);
}

/* Comment Body Text */
.comments-list .comment-body {
    color: #334155 !important;
    font-size: 0.94rem !important;
    line-height: 1.9 !important;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #f1f5f9;
}

/* Admin / Staff Reply Highlights */
.comments-list .comment-item.border-primary {
    border: 2px solid var(--mwl-primary) !important;
    background: linear-gradient(180deg, #f0fdf9 0%, #ffffff 100%) !important;
}

.comments-list .comment-item .badge.bg-primary {
    background: linear-gradient(135deg, var(--mwl-primary) 0%, var(--mwl-primary-dark) 100%) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(2, 134, 144, 0.25);
}

/* Nested Comments Hierarchy */
.comments-list .comment-replies {
    margin-top: 1rem;
}

.comments-list .comment-item.ms-3,
.comments-list .comment-item.ms-md-4 {
    border-inline-start: 4px solid var(--mwl-primary) !important;
    background: #f8fafc !important;
    border-radius: 14px !important;
}

/* Empty Comments Placeholder */
.comments-section > p.text-muted {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    color: #64748b !important;
    font-size: 0.92rem;
}

/* Comment Submission Form Card */
#commentForm {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
    padding: 2rem !important;
    position: relative;
    overflow: hidden;
}

#commentForm::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mwl-primary), #00b4d8);
}

#commentForm h5 {
    font-size: 1.22rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 1.25rem !important;
}

#replyingToAlert {
    background: #f0fdf9 !important;
    border: 1px solid rgba(2, 134, 144, 0.3) !important;
    color: var(--mwl-primary-dark) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
}

#cancelReplyBtn {
    border-radius: 8px !important;
    border: 1px solid var(--mwl-primary) !important;
    color: var(--mwl-primary) !important;
    font-size: 0.8rem !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

#cancelReplyBtn:hover {
    background: var(--mwl-primary) !important;
    color: #ffffff !important;
}

#commentForm .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 0.4rem;
}

#commentForm .form-control {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.92rem !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease !important;
}

#commentForm .form-control:focus {
    background-color: #ffffff !important;
    border-color: var(--mwl-primary) !important;
    box-shadow: 0 0 0 4px rgba(2, 134, 144, 0.15) !important;
    outline: none !important;
}

#commentForm button[type="submit"] {
    background: linear-gradient(135deg, var(--mwl-primary) 0%, var(--mwl-primary-dark) 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    padding: 0.75rem 2.2rem !important;
    box-shadow: 0 4px 16px rgba(2, 134, 144, 0.25) !important;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#commentForm button[type="submit"]:hover {
    box-shadow: 0 8px 24px rgba(2, 134, 144, 0.38) !important;
    transform: translateY(-2px);
}

/* Post Author Box Accent */
.mwl-content .card.bg-light.rounded-3 {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
}

.mwl-content .card.bg-light.rounded-3 .bg-primary {
    background: linear-gradient(135deg, var(--mwl-primary) 0%, var(--mwl-primary-dark) 100%) !important;
}
