/* ==========================================================================
   Melal Expo – overrides on top of the Industrie (red-engineering) theme
   ========================================================================== */

:root {
    --rs-theme-orange: #E30613;
    --melal-max-logo-height: 44px;
}

body {
    font-family: YekanBakhFaNum-Regular, sans-serif;
    overflow-x: hidden;
}

/* Persian headings need more vertical room than the latin defaults */
h1.rs-banner-title,
h1.rs-breadcrumb-title,
.rs-section-title,
.rs-footer-widget-title,
.rs-contact-form-title,
.rs-footer-widget-description {
    line-height: 1.5 !important;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.rs-header-two .rs-header-logo img {
    max-height: var(--melal-max-logo-height);
    width: auto;
}

.rs-header-two .main-menu > ul > li > a {
    font-size: 15px;
    padding: 34px 13px;
}

.rs-header-two .rs-header-call h6 {
    font-size: 15px;
}

.rs-header-auth {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--rs-white);
}

.rs-header-auth a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rs-white);
    font-size: 14px;
    line-height: 1;
    transition: color .3s linear;
}

.rs-header-auth a i {
    font-size: 18px;
}

.rs-header-auth a:hover {
    color: var(--rs-theme-red);
}

@media only screen and (max-width: 1366px) {
    .rs-header-auth a span {
        display: none;
    }

    .rs-header-auth a i {
        font-size: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .rs-header-auth {
        gap: 12px;
    }
}

/* Offcanvas */
.offcanvas-logo img {
    max-height: 40px;
    width: auto;
}

.offcanvas-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    color: var(--rs-theme-red);
    font-size: 18px;
}

.offcanvas-contact-text a,
.offcanvas-contact-text {
    font-size: 14px;
    line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.rs-breadcrumb-one {
    position: relative;
    overflow: hidden;
}

.rs-breadcrumb-one .rs-breadcrumb-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 11, 11, .88) 0%, rgba(11, 11, 11, .72) 45%, rgba(227, 6, 19, .55) 100%);
}

.rs-breadcrumb-one .rs-breadcrumb-content-wrapper {
    position: relative;
    z-index: 1;
}

.rs-breadcrumb-menu ul li,
.rs-breadcrumb-menu ul li a {
    color: rgba(255, 255, 255, .82);
}

/* --------------------------------------------------------------------------
   Buttons – keep Persian labels aligned
   -------------------------------------------------------------------------- */
.rs-btn {
    gap: 8px;
}

/* Phone numbers read left-to-right even inside RTL copy */
a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: isolate;
}

/* --------------------------------------------------------------------------
   Hero / banner
   -------------------------------------------------------------------------- */
.melal-hero .swiper-slide {
    height: auto;
}

.rs-banner-area .rs-banner-bg-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, .82) 0%, rgba(10, 10, 10, .55) 55%, rgba(227, 6, 19, .35) 100%);
}

.rs-banner-two .rs-banner-content {
    position: relative;
    z-index: 2;
}

.rs-banner-two .rs-banner-title {
    line-height: 1.45 !important;
}

.rs-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-bottom: 18px;
    color: var(--rs-white);
    font-size: 15px;
}

.rs-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rs-banner-meta i {
    color: var(--rs-theme-red);
    font-size: 18px;
}

.rs-banner-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.rs-banner-btn .rs-btn.has-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .55);
    color: var(--rs-white);
}

.rs-banner-btn .rs-btn.has-outline-light:hover {
    background: var(--rs-theme-red);
    border-color: var(--rs-theme-red);
    color: var(--rs-white);
}

.melal-hero .rs-banner-two .rs-banner-bg-thumb {
    z-index: 0;
}

.melal-hero .rs-banner-two .rs-banner-bg-thumb::after {
    z-index: 1;
}

.melal-hero .rs-banner-two .rs-banner-content {
    position: relative;
    z-index: 3;
}

.melal-hero .swiper-slide {
    position: relative;
}

.melal-hero .rs-swiper-nav {
    position: absolute;
    inset-inline-end: 40px;
    bottom: 45px;
    z-index: 6;
    display: flex;
    gap: 10px;
}

@media only screen and (max-width: 767px) {
    .melal-hero .rs-swiper-nav {
        inset-inline-end: 20px;
        bottom: 25px;
    }
}

.melal-cta-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.melal-cta-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--rs-white);
    font-size: 15px;
    line-height: 2;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.melal-cta-list li:first-child {
    border-top: 0;
}

.melal-cta-list i {
    color: var(--rs-theme-red);
    font-size: 18px;
    margin-top: 4px;
}

.melal-cta-list a,
.melal-cta-list span {
    color: var(--rs-white);
}

/* --------------------------------------------------------------------------
   Section helpers
   -------------------------------------------------------------------------- */
.rs-section-subtitle {
    line-height: 2;
}

.rs-section-title-wrapper .descrip {
    margin-top: 15px;
}

.melal-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 45px;
}

/* --------------------------------------------------------------------------
   Home: counters
   -------------------------------------------------------------------------- */
.rs-counter-area .rs-counter-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rs-counter-number-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 76px;
}

.melal-counter-number {
    font-family: "Morabba", sans-serif;
    font-size: clamp(40px, 4.4vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--rs-white);
    letter-spacing: 1px;
}

.rs-counter-area .rs-counter-title {
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Home: exhibition slider cards (long Persian titles need a fixed frame)
   -------------------------------------------------------------------------- */
.rs-portfolio-one .rs-portfolio-item {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.rs-portfolio-one .rs-portfolio-thumb img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.rs-portfolio-one .rs-portfolio-content {
    position: absolute;
    inset: 0;
    bottom: 0;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(180deg, rgba(12, 12, 12, .55) 0%, rgba(12, 12, 12, 0) 42%, rgba(12, 12, 12, .82) 100%);
}

.rs-portfolio-one .rs-portfolio-tag a {
    background: var(--rs-theme-red);
    font-size: 13px;
    font-weight: 600;
}

.rs-portfolio-one .rs-portfolio-title {
    font-size: 19px;
    line-height: 1.85;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rs-portfolio-one .rs-portfolio-btn .rs-btn {
    width: 46px;
    height: 46px;
}

@media only screen and (max-width: 767px) {
    .rs-portfolio-one .rs-portfolio-thumb img {
        height: 300px;
    }

    .rs-portfolio-one .rs-portfolio-title {
        font-size: 17px;
    }
}

/* --------------------------------------------------------------------------
   Event cards
   -------------------------------------------------------------------------- */
.melal-event-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--rs-white);
    border: 1px solid rgba(31, 31, 31, .08);
    overflow: hidden;
    transition: box-shadow .35s ease, transform .35s ease;
}

.melal-event-card:hover {
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
    transform: translateY(-4px);
}

.melal-event-thumb {
    position: relative;
    overflow: hidden;
    /*aspect-ratio: 4 / 3;*/
    background: #f2f2f2;
}

.melal-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.melal-event-card:hover .melal-event-thumb img {
    transform: scale(1.06);
}

.melal-event-badge {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    background: var(--rs-theme-red);
    color: var(--rs-white);
    font-size: 13px;
    padding: 6px 14px;
    line-height: 1;
    z-index: 2;
}

.melal-event-badge.is-past {
    background: #1f1f1f;
}

.melal-event-content {
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.melal-event-title {
    font-size: 20px;
    line-height: 1.8 !important;
    margin-bottom: 14px;
}

.melal-event-title a {
    color: var(--rs-black);
}

.melal-event-title a:hover {
    color: var(--rs-theme-red);
}

.melal-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: #6d6d6d;
    font-size: 14px;
    margin-bottom: 18px;
}

.melal-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.melal-event-meta i {
    color: var(--rs-theme-red);
}

.melal-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(31, 31, 31, .08);
    padding-top: 16px;
    margin-top: auto;
}

.melal-event-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--rs-theme-red);
}

.melal-event-link i {
    transition: transform .3s ease;
}

.melal-event-link:hover i {
    transform: translateX(-4px);
}

.melal-event-tour img {
    width: 62px;
    border-radius: 4px;
    display: block;
}

.melal-city-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

@media only screen and (min-width: 1200px) {
    .melal-city-filter {
        justify-content: flex-end;
    }
}

.melal-city-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    font-size: 14px;
    line-height: 1;
    color: var(--rs-black);
    border: 1px solid rgba(31, 31, 31, .14);
    background: var(--rs-white);
    transition: color .3s ease, background .3s ease, border-color .3s ease;
}

.melal-city-chip:hover,
.melal-city-chip.active {
    color: var(--rs-white);
    background: var(--rs-theme-red);
    border-color: var(--rs-theme-red);
}

/* --------------------------------------------------------------------------
   Service cards / detail
   -------------------------------------------------------------------------- */
.melal-service-price {
    position: absolute;
    bottom: 16px;
    inset-inline-start: 16px;
    z-index: 2;
    display: inline-block;
    background: var(--rs-theme-red);
    color: var(--rs-white);
    font-size: 13px;
    line-height: 1;
    padding: 8px 14px;
}

.melal-service-cart-form {
    margin: 0;
    line-height: 0;
}

.melal-service-cart-btn {
    border: 0;
    cursor: pointer;
}

.melal-service-cart-btn .icon-box i {
    color: var(--rs-black);
}

.melal-service-cart-btn:hover .icon-box i {
    color: var(--rs-theme-red);
}

.rs-services-details-thumb img,
.melal-service-detail-thumb img {
    width: 100%;
    height: auto;
}

.rs-services-details-wrapper .melal-richtext p {
    margin-bottom: 18px;
}

.melal-service-detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: #4b4b4b;
    font-size: 16px;
}

.melal-service-detail-price strong {
    color: var(--rs-theme-red);
    font-size: 20px;
}

.sidebar-widget .melal-cta-list li {
    color: #4b4b4b;
    border-top-color: rgba(31, 31, 31, .08);
}

.sidebar-widget .melal-cta-list a,
.sidebar-widget .melal-cta-list span {
    color: #4b4b4b;
}

.sidebar-widget .melal-cta-list i {
    color: var(--rs-theme-red);
}

/* Event detail */
.melal-event-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.melal-poster-box img,
.melal-gallery-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.melal-gallery-thumb {
    overflow: hidden;
}

.melal-gallery-thumb img {
    transition: transform .5s ease;
}

.melal-gallery-thumb:hover img {
    transform: scale(1.05);
}

.melal-tour-box .rs-btn {
    width: 100%;
    justify-content: space-between;
}

.rs-portfolio-details-thumb {
    position: relative;
}

.rs-portfolio-details-thumb .melal-event-badge {
    top: 20px;
    inset-inline-start: 20px;
}

/* FAQ */
.melal-faq-group + .melal-faq-group {
    margin-top: 40px;
}

.melal-faq-group-title {
    font-size: 22px;
    line-height: 1.6 !important;
    margin-bottom: 18px;
    color: var(--rs-black);
    padding-inline-start: 14px;
    border-inline-start: 3px solid var(--rs-theme-red);
}

.melal-faq-number {
    display: inline-block;
    min-width: 32px;
    color: var(--rs-theme-red);
    font-weight: 700;
    margin-inline-end: 4px;
}

.rs-accordion-one .accordion-body.melal-richtext {
    line-height: 2;
}

.rs-accordion-one .accordion-body.melal-richtext p:last-child {
    margin-bottom: 0;
}

.melal-faq-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.rs-btn.has-outline-dark {
    background: transparent;
    border: 1px solid rgba(31, 31, 31, .35);
    color: var(--rs-black);
}

.rs-btn.has-outline-dark:hover {
    background: var(--rs-theme-red);
    border-color: var(--rs-theme-red);
    color: var(--rs-white);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.rs-footer-logo {
    margin-bottom: 22px;
}

.rs-footer-logo img {
    max-width: 165px;
    height: auto;
}

.rs-footer-two .rs-footer-widget-description {
    font-size: 15px;
    line-height: 2;
}

.rs-footer-two .rs-footer-widget-title {
    margin-bottom: 22px;
}

.rs-footer-widget-address a,
.rs-footer-widget-email a {
    line-height: 2;
}

.rs-footer-widget-number span {
    line-height: 2;
}

.rs-footer-widget-social {
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.melal-contact-panel {
    background: #fff;
    border-top: 4px solid var(--rs-theme-red);
    border-radius: 4px;
    padding: 42px 46px;
    box-shadow: 0 24px 60px rgba(15, 26, 44, .18);
}

.melal-contact-panel .rs-section-title {
    margin-bottom: 0;
}

.melal-contact-panel .rs-section-title-wrapper .descrip {
    margin-bottom: 0;
}

.melal-contact-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 16px;
}

.melal-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.melal-contact-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(227, 6, 19, .08);
    color: var(--rs-theme-red);
    font-size: 20px;
    line-height: 1;
}

.melal-contact-list strong {
    display: block;
    font-size: 14px;
    line-height: 1.7;
    color: var(--rs-black);
}

.melal-contact-value {
    display: block;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
}

.melal-contact-alt-phone {
    display: block;
    font-size: 13px;
    opacity: .75;
}

.melal-contact-list span {
    display: block;
    font-size: 14px;
    line-height: 1.9;
    color: #5a5a5a;
}

.melal-contact-panel .rs-contact-social-wrapper {
    padding-top: 22px;
    border-top: 1px solid rgba(31, 31, 31, .1);
}

@media only screen and (max-width: 767px) {
    .melal-contact-panel {
        padding: 28px 24px;
    }
}

@media only screen and (max-width: 991px) {
    /* the theme pulls the dark contact card up by 40px, which collides with the panel once stacked */
    .rs-contact-five .rs-contact-wrapper {
        margin-bottom: 0;
        padding-top: 0;
    }

    /* the absolutely positioned photo is taller than the card padding on small screens,
       so it used to cover the "دفترهای ما" heading – put it back into the flow */
    .rs-contact-five .rs-contact-thumb {
        position: static;
        margin: -30px -30px 0;
    }

    .rs-contact-five .rs-contact-thumb img {
        display: block;
        width: 100%;
        height: auto;
    }

    .rs-contact-five .rs-contact-shape {
        margin-top: 18px;
    }

    .rs-contact-five .rs-contact-title {
        margin-top: 10px;
    }
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */
.rs-google-map iframe {
    width: 100%;
    height: 480px;
    min-height: 0;
    border: 0;
    display: block;
}

@media only screen and (max-width: 767px) {
    .rs-google-map iframe {
        height: 340px;
    }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.melal-empty {
    padding: 60px 20px;
    text-align: center;
    color: #6d6d6d;
    border: 1px dashed rgba(31, 31, 31, .15);
}

.melal-richtext {
    line-height: 2.1;
    color: #4b4b4b;
}

.melal-richtext h2,
.melal-richtext h3,
.melal-richtext h4 {
    color: var(--rs-black);
    margin-top: 26px;
    margin-bottom: 14px;
}

.melal-richtext ul {
    list-style: disc;
    padding-inline-start: 24px;
}

.melal-richtext img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Forms (visitor registration / careers)
   -------------------------------------------------------------------------- */
.melal-form-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.melal-form-thumb img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
}

.melal-form-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 31, 31, 0) 45%, rgba(31, 31, 31, .45) 100%);
    pointer-events: none;
}

.melal-form-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(31, 31, 31, .08);
    border-top: 4px solid var(--rs-theme-red);
    border-radius: 4px;
    padding: 45px;
    box-shadow: 0 20px 60px rgba(31, 31, 31, .06);
}

.melal-form-title {
    font-size: 26px;
    line-height: 1.6 !important;
    margin-bottom: 12px;
    color: var(--rs-black);
}

.melal-form-descrip {
    color: var(--rs-text-primary);
    line-height: 1.9;
    margin-bottom: 28px;
}

.melal-form-descrip a {
    color: var(--rs-theme-red);
    text-decoration: underline;
}

.melal-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--rs-black);
    margin-bottom: 10px;
    line-height: 1.7;
}

.melal-form-label span {
    color: var(--rs-theme-red);
}

.melal-form-card .rs-contact-input input,
.melal-form-card .rs-contact-input textarea,
.melal-form-card .rs-contact-input select {
    width: 100%;
    height: 54px;
    padding: 0 20px;
    color: var(--rs-black);
    background: #f7f7f7;
    border: 1px solid rgba(31, 31, 31, .12);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    outline: 0;
}

.melal-form-card .rs-contact-input textarea {
    height: 130px;
    padding: 16px 20px;
    resize: vertical;
}

.melal-form-card .rs-contact-input select {
    -webkit-appearance: none;
    appearance: none;
    padding-inline-end: 44px;
    padding-inline-start: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23E30613' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    background-size: 13px;
    cursor: pointer;
}

.melal-form-card .rs-contact-input input::placeholder,
.melal-form-card .rs-contact-input textarea::placeholder {
    color: rgba(30, 30, 30, .4);
}

.melal-form-card .rs-contact-input input:focus,
.melal-form-card .rs-contact-input textarea:focus,
.melal-form-card .rs-contact-input select:focus {
    border-color: var(--rs-theme-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, .08);
}

.melal-form-card .rs-contact-input .text-danger {
    display: inline-block;
    font-size: 13px;
    margin-top: 6px;
}

.melal-check-field {
    border-top: 1px dashed rgba(31, 31, 31, .12);
    padding-top: 22px;
}

.melal-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.melal-check-chip {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.melal-check-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.melal-check-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid rgba(31, 31, 31, .15);
    border-radius: 100px;
    background: #f7f7f7;
    color: var(--rs-black);
    font-size: 14px;
    line-height: 1.6;
    transition: all .25s ease;
}

.melal-check-chip:hover span {
    border-color: var(--rs-theme-red);
    color: var(--rs-theme-red);
}

.melal-check-chip input:checked + span {
    background: var(--rs-theme-red);
    border-color: var(--rs-theme-red);
    color: #fff;
}

.melal-check-chip input:focus-visible + span {
    outline: 2px dashed var(--rs-theme-red);
    outline-offset: 2px;
}

.melal-form-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rs-text-primary);
}

.melal-form-note i {
    color: var(--rs-theme-red);
    font-size: 18px;
}

.melal-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.melal-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 2;
    color: var(--rs-text-primary);
    margin-bottom: 12px;
}

.melal-check-list li i {
    color: var(--rs-theme-red);
    font-size: 20px;
    line-height: 1.9;
}

.melal-contact-box {
    background: #f7f7f7;
    border-top: 3px solid var(--rs-theme-red);
    border-radius: 4px;
    padding: 30px;
}

.melal-contact-box h5 {
    font-size: 20px;
    margin-bottom: 20px;
}

.melal-contact-box .melal-cta-list li {
    color: #4b4b4b;
    border-top-color: rgba(31, 31, 31, .08);
}

.melal-contact-box .melal-cta-list li:first-child {
    padding-top: 0;
}

.melal-contact-box .melal-cta-list a,
.melal-contact-box .melal-cta-list span {
    color: #4b4b4b;
}

.melal-contact-box .melal-cta-list a:hover {
    color: var(--rs-theme-red);
}

.melal-contact-box .melal-cta-list i {
    color: var(--rs-theme-red);
}

/* --------------------------------------------------------------------------
   Legal pages (terms / agreement)
   -------------------------------------------------------------------------- */
.melal-legal-card {
    background: #fff;
    border: 1px solid rgba(31, 31, 31, .08);
    border-top: 4px solid var(--rs-theme-red);
    border-radius: 4px;
    padding: 45px;
    box-shadow: 0 20px 60px rgba(31, 31, 31, .05);
}

.melal-legal-title {
    font-size: 24px;
    line-height: 1.6 !important;
    margin-bottom: 26px;
}

.melal-legal-list {
    list-style: none;
    counter-reset: melal-legal;
    padding: 0;
    margin: 0;
}

.melal-legal-list li {
    counter-increment: melal-legal;
    position: relative;
    padding-inline-start: 48px;
    margin-bottom: 18px;
    line-height: 2.1;
    color: #4b4b4b;
}

.melal-legal-list li::before {
    content: counter(melal-legal);
    position: absolute;
    inset-inline-start: 0;
    top: 5px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 6, 19, .08);
    color: var(--rs-theme-red);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.melal-legal-list li:last-child {
    margin-bottom: 0;
}

.melal-legal-card.melal-richtext > h3 {
    font-size: 20px;
    margin-top: 34px;
    padding-inline-start: 14px;
    border-inline-start: 3px solid var(--rs-theme-red);
}

.melal-legal-card.melal-richtext > h3:first-child {
    margin-top: 0;
}

.melal-legal-card.melal-richtext > ul {
    list-style: none;
    padding: 0;
}

.melal-legal-card.melal-richtext > ul li {
    position: relative;
    padding-inline-start: 26px;
    margin-bottom: 10px;
    line-height: 2.1;
    color: #4b4b4b;
}

.melal-legal-card.melal-richtext > ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: 4px;
    top: 15px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rs-theme-red);
}

.melal-legal-note {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    padding: 22px 24px;
    background: rgba(227, 6, 19, .05);
    border-inline-start: 4px solid var(--rs-theme-red);
    border-radius: 4px;
    line-height: 2;
    color: #4b4b4b;
}

.melal-legal-note i {
    font-size: 22px;
    color: var(--rs-theme-red);
    line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Invoice (print layout)
   -------------------------------------------------------------------------- */
.melal-print-body {
    background: #eef0f3;
    padding-bottom: 40px;
}

.melal-invoice-toolbar {
    padding: 24px 0;
}

.melal-invoice-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.melal-invoice-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.melal-invoice-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 15px;
}

.melal-invoice {
    background: #fff;
    border-top: 6px solid var(--rs-theme-red);
    padding: 50px;
    box-shadow: 0 24px 70px rgba(31, 31, 31, .1);
}

.melal-invoice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 28px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(31, 31, 31, .1);
}

.melal-invoice-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.melal-invoice-brand img {
    max-width: 130px;
    height: auto;
}

.melal-invoice-brand strong {
    display: block;
    font-size: 19px;
    color: var(--rs-black);
    margin-bottom: 4px;
}

.melal-invoice-brand span {
    font-size: 13px;
    color: var(--rs-text-primary);
}

.melal-invoice-head-meta h1 {
    font-size: 26px;
    line-height: 1.5 !important;
    margin: 8px 0 14px;
}

.melal-invoice-type {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(227, 6, 19, .08);
    color: var(--rs-theme-red);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}

.melal-invoice-head-meta ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--rs-text-primary);
}

.melal-invoice-head-meta ul strong {
    color: var(--rs-black);
}

.melal-invoice-parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.melal-invoice-party {
    background: #f7f7f7;
    border: 1px solid rgba(31, 31, 31, .08);
    border-radius: 4px;
    padding: 24px 26px;
}

.melal-invoice-party h3 {
    font-size: 17px;
    margin-bottom: 16px;
    color: var(--rs-black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.melal-invoice-party h3 i {
    color: var(--rs-theme-red);
}

.melal-invoice-party ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 2;
    color: #4b4b4b;
}

.melal-invoice-party ul span {
    color: var(--rs-black);
    font-weight: 600;
}

.melal-invoice-table {
    margin-bottom: 0;
    border-color: rgba(31, 31, 31, .12);
}

.melal-invoice-table th,
.melal-invoice-table td {
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
    border-color: rgba(31, 31, 31, .12);
    white-space: nowrap;
}

.melal-invoice-table th {
    background: #f7f7f7;
    color: var(--rs-black);
    font-weight: 700;
    padding: 14px 10px;
}

.melal-invoice-table td {
    padding: 16px 10px;
    color: #4b4b4b;
}

.melal-invoice-table .melal-invoice-desc {
    text-align: start;
    white-space: normal;
    min-width: 220px;
}

.melal-invoice-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 32px;
}

.melal-invoice-bank {
    flex: 1 1 420px;
}

.melal-invoice-bank h3 {
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.melal-invoice-bank h3 i {
    color: var(--rs-theme-red);
}

.melal-invoice-bank p {
    font-size: 14px;
    line-height: 2;
    color: #4b4b4b;
    margin-bottom: 14px;
}

.melal-invoice-bank ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 2.1;
    color: #4b4b4b;
}

.melal-invoice-bank ul span {
    font-weight: 700;
    color: var(--rs-black);
}

.melal-invoice-total {
    flex: 0 0 300px;
    background: var(--rs-black);
    color: #fff;
    border-radius: 4px;
    padding: 26px 30px;
    text-align: center;
}

.melal-invoice-total span {
    display: block;
    font-size: 14px;
    opacity: .8;
    margin-bottom: 8px;
}

.melal-invoice-total strong {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
}

.melal-invoice-notes {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px dashed rgba(31, 31, 31, .15);
    font-size: 13px;
    line-height: 2;
    color: var(--rs-text-primary);
}

.melal-invoice-notes p {
    margin-bottom: 8px;
}

.melal-invoice-notes .is-warning {
    color: #b0000a;
    font-weight: 600;
}

.melal-invoice-foot {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    padding-top: 24px;
}

.melal-invoice-sign {
    flex: 1 1 200px;
    text-align: center;
    font-size: 13px;
    color: var(--rs-text-primary);
}

.melal-invoice-sign span {
    display: block;
    padding-top: 70px;
    border-top: 1px dashed rgba(31, 31, 31, .2);
}

@media only screen and (max-width: 991px) {
    .melal-form-card,
    .melal-legal-card {
        padding: 30px;
    }

    .melal-invoice {
        padding: 30px;
    }

    .melal-invoice-parties {
        grid-template-columns: 1fr;
    }

    .melal-invoice-total {
        flex: 1 1 100%;
    }
}

@media only screen and (max-width: 575px) {
    .melal-form-card,
    .melal-legal-card,
    .melal-invoice {
        padding: 22px;
    }

    .melal-invoice-head-meta h1 {
        font-size: 21px;
    }
}

/* Template reveals `.rs-image` via JS; keep static markup visible even if the
   scroll-reveal script is not triggered (RTL layout, short pages, print). */
.rs-image,
.rs-contact-three .rs-contact-thumb {
    visibility: visible !important;
    opacity: 1 !important;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 8mm 10mm;
    }

    .no-print {
        display: none !important;
    }

    .melal-print-body {
        background: #fff;
        padding: 0;
    }

    .melal-invoice-wrap {
        max-width: 100%;
        padding: 0;
    }

    .melal-invoice {
        box-shadow: none;
        padding: 0;
        border-top-width: 4px;
    }

    .melal-invoice-head-meta h1 {
        font-size: 16px;
        margin: 4px 0 6px;
    }

    .melal-invoice-brand img {
        max-width: 78px;
    }

    .melal-invoice-head {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .melal-invoice-parties {
        gap: 12px;
        margin-bottom: 10px;
    }

    .melal-invoice-party {
        padding: 10px 14px;
    }

    .melal-invoice-party h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .melal-invoice-party ul {
        font-size: 10.5px;
        line-height: 1.5;
    }

    .melal-invoice-table {
        table-layout: fixed;
        width: 100%;
        font-size: 9.5px;
    }

    .melal-invoice-table th, .melal-invoice-table td {
        white-space: normal;
        word-break: break-word;
        padding: 4px 3px;
    }

    .melal-invoice-table .melal-invoice-desc {
        min-width: 0;
    }

    .melal-invoice-table th {
        background: #f2f2f2 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .table-responsive {
        overflow: visible !important;
    }

    .melal-invoice-bottom {
        margin-top: 10px;
        gap: 14px;
    }

    .melal-invoice-bank h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .melal-invoice-bank p {
        font-size: 10px;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .melal-invoice-bank ul {
        font-size: 10px;
        line-height: 1.5;
    }

    .melal-invoice-total {
        flex: 0 0 185px;
        padding: 10px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .melal-invoice-total strong {
        font-size: 17px;
    }

    .melal-invoice-notes {
        margin-top: 8px;
        padding-top: 8px;
        font-size: 10px;
        line-height: 1.5;
    }

    .melal-invoice-foot {
        margin-top: 10px;
        padding-top: 8px;
    }

    .melal-invoice-sign {
        font-size: 11px;
    }

    .melal-invoice-sign span {
        padding-top: 16px;
    }
}






