/* =====================================================
   CUSTOM.CSS — hamid_j6_v1
   Final clean overrides only
   Loaded LAST
   ===================================================== */


/* =====================================================
   1) ROOT VARIABLES + GLOBAL BASE
   ===================================================== */

:root {
    --cassiopeia-font-family-base: 'IRANSans', sans-serif;
    --cassiopeia-font-family-headings: 'IRANSans', sans-serif;

    --hamid-section-gap: 18px;
    --hamid-module-gap: 20px;
}

body,
button,
input,
textarea,
select,
option,
.com-content,
.com-contact,
.com-users {
    font-family: 'IRANSans', sans-serif;
}

body {
    direction: rtl;
    background: var(--hamid-bg);
}


/* =====================================================
   2) GLOBAL MODULE STYLE
   ===================================================== */

.hamid-section,
.module-position-wrapper {
    width: 100%;
    margin-block-end: var(--hamid-section-gap);
}

.hamid-section:last-child,
.module-position-wrapper:last-child {
    margin-block-end: 0;
}

.hamid-position,
.module-position {
    display: flex;
    flex-direction: column;
    gap: var(--hamid-module-gap);

    min-width: 0;
    max-width: 100%;
}

.hamid-position > .module,
.hamid-position > .moduletable,
.module-position > .module,
.module-position > .moduletable {
    width: 100%;
    margin: 0;
}

.hamid-position .module,
.hamid-position .moduletable,
.module-position .module,
.module-position .moduletable {
    background: var(--hamid-surface);
    border: 1px solid var(--hamid-border);
    border-radius: var(--hamid-radius);
    overflow: hidden;
}


/* =====================================================
   3) MODULE TITLES
   ===================================================== */

.hamid-position .module > h3,
.hamid-position .moduletable > h3,
.hamid-position .module .module-title,
.hamid-position .moduletable .module-title,
.module-position .module > h3,
.module-position .moduletable > h3,
.module-position .module .module-title,
.module-position .moduletable .module-title {
    display: block;
    margin: 0;
    padding: 10px 14px;

    background: var(--hamid-title-bg);
    color: var(--hamid-title-color);

    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;

    border-block-end: 2px solid var(--hamid-border-soft);
}

.hamid-position .module > h3::before,
.hamid-position .moduletable > h3::before,
.hamid-position .module .module-title::before,
.hamid-position .moduletable .module-title::before,
.module-position .module > h3::before,
.module-position .moduletable > h3::before,
.module-position .module .module-title::before,
.module-position .moduletable .module-title::before {
    content: "";
    display: inline-block;

    width: 4px;
    height: 18px;

    margin-inline-end: 8px;
    vertical-align: middle;

    border-radius: 4px;
    background: var(--hamid-primary);
}


/* =====================================================
   4) MODULE CONTENT
   ===================================================== */

.hamid-position .module > :not(h3),
.hamid-position .moduletable > :not(h3),
.module-position .module > :not(h3),
.module-position .moduletable > :not(h3) {
    padding: 14px;
}


/* =====================================================
   5) SLIDESHOW-1 CLEANUP
   ===================================================== */

.hamid-section-slideshow-1 {
    padding-block: 0 !important;
}

.hamid-section-slideshow-1 .container-fluid,
.slideshow-1-wrapper .container-fluid {
    padding-inline: 0;
}

.hamid-section-slideshow-1 .row,
.slideshow-1-wrapper .row {
    margin-inline: 0;
}

.hamid-pos-slideshow-1,
.slideshow-1-position {
    padding: 0;
}

.hamid-pos-slideshow-1 .module,
.hamid-pos-slideshow-1 .moduletable,
.slideshow-1-position .module,
.slideshow-1-position .moduletable {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.hamid-pos-slideshow-1 .module > :not(h3),
.hamid-pos-slideshow-1 .moduletable > :not(h3),
.slideshow-1-position .module > :not(h3),
.slideshow-1-position .moduletable > :not(h3) {
    padding: 0;
}

.hamid-pos-slideshow-1 h3,
.hamid-pos-slideshow-1 .module-title,
.slideshow-1-position h3,
.slideshow-1-position .module-title {
    display: none !important;
}


/* =====================================================
   6) HEADER TOOLS + LOGO
   ===================================================== */

.hamid-section-header-tools,
.header-tools-wrapper {
    position: relative !important;
    background: #ffffff;
    padding-top: 14px !important;
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
}

.hamid-section-header-tools .hamid-container,
.header-tools-wrapper .hamid-container {
    position: relative !important;
}

.hamid-section-header-tools .hamid-header-tools-row,
.header-tools-row,
.hamid-header-tools-row {
    position: relative !important;
    align-items: center;
}

.hamid-section-header-tools .module,
.hamid-section-header-tools .moduletable,
.header-tools-wrapper .module,
.header-tools-wrapper .moduletable {
    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
}

.hamid-section-header-tools .module-title,
.hamid-section-header-tools h3,
.header-tools-wrapper .module-title,
.header-tools-wrapper h3 {
    display: none !important;
}

.hamid-section-header-tools .module > :not(h3),
.hamid-section-header-tools .moduletable > :not(h3),
.header-tools-wrapper .module > :not(h3),
.header-tools-wrapper .moduletable > :not(h3) {
    padding: 0;
}


/* Desktop Header Logo */
@media (min-width: 992px) {

    .hamid-section-header-tools .hamid-header-tools-row {
        min-height: 90px !important;
    }

    .logo-position,
    .header-logo-col,
    .hamid-pos-logo {
        position: absolute !important;
        top: 50% !important;
        right: 0 !important;
        left: auto !important;

        transform: translateY(-50%) !important;

        width: auto !important;
        max-width: 420px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        text-align: right !important;
        z-index: 10 !important;
    }

    .hamid-pos-logo img,
    .logo-position img,
    .header-logo-col img {
        display: block !important;
        width: auto;
        max-width: 420px !important;
        max-height: 95px !important;
        height: auto !important;

        margin: 0 !important;
        float: none !important;
    }
}


/* Mobile Header Logo */
@media (max-width: 991.98px) {

    .hamid-section-header-tools,
    .header-tools-wrapper {
        padding-top: 22px !important;
        padding-bottom: 10px !important;
    }

    .hamid-section-header-tools .hamid-header-tools-row,
    .header-tools-row,
    .hamid-header-tools-row {
        min-height: 0 !important;
        align-items: center !important;
    }

    .logo-position,
    .header-logo-col,
    .hamid-pos-logo {
        position: static !important;
        transform: none !important;

        width: 100% !important;
        max-width: 100% !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .hamid-pos-logo p,
    .logo-position p,
    .header-logo-col p {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        text-align: center !important;
    }

    .hamid-pos-logo a,
    .logo-position a,
    .header-logo-col a {
        display: block !important;
        line-height: 0 !important;
    }

    .hamid-pos-logo img,
    .logo-position img,
    .header-logo-col img {
        display: block !important;
        max-width: 90% !important;
        max-height: none !important;
        height: auto !important;

        margin: 0 auto !important;
        float: none !important;
    }
}


/* =====================================================
   7) COMPONENT AREA
   ===================================================== */

.component-position,
.hamid-component,
.hamid-pos-component {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.hamid-pos-component {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0 !important;
}

.hamid-pos-component .blog-featured > .page-header {
    display: none !important;
}

.hamid-section-main,
.main-wrapper,
.hamid-section-component,
.component-wrapper {
    margin-block-end: 0 !important;
    padding-bottom: 0 !important;
}

.hamid-section-main-top {
    margin-block-end: 18px !important;
}

.hamid-section-main-bottom {
    margin-block-start: 18px !important;
}


/* =====================================================
   8) POSITION-0 CUSTOM STYLE
   ===================================================== */

.hamid-pos-position-0 .module,
.hamid-pos-position-0 .moduletable {
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    overflow: hidden;
}

.hamid-pos-position-0 .module-title,
.hamid-pos-position-0 .moduletable > h3,
.hamid-pos-position-0 .module > h3 {
    margin: 0;
    padding: 14px 18px;

    background: #cf0000 !important;
    color: #ffffff !important;

    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.7;
}

.hamid-pos-position-0 .module-title::before,
.hamid-pos-position-0 .moduletable > h3::before,
.hamid-pos-position-0 .module > h3::before {
    background: #ffffff;
}

.hamid-pos-position-0 .module > :not(h3),
.hamid-pos-position-0 .moduletable > :not(h3) {
    padding: 16px 18px;
    background: #f8f9fb;
}

.hamid-pos-position-0 a {
    color: #0d6efd;
    text-decoration: none;
}

.hamid-pos-position-0 a:hover {
    color: #0a58ca;
}

.hamid-pos-position-0 table {
    width: 100%;
    border-collapse: collapse;
}

.hamid-pos-position-0 th,
.hamid-pos-position-0 td {
    padding: 10px 12px;
    border: 1px solid #d9dde3;
}

.hamid-pos-position-0 th {
    background: #e9f2f2;
    font-weight: 700;
}

@media (max-width: 767.98px) {

    .hamid-pos-position-0 .module-title,
    .hamid-pos-position-0 .moduletable > h3,
    .hamid-pos-position-0 .module > h3 {
        font-size: 1rem;
        padding: 12px 14px;
    }

    .hamid-pos-position-0 .module > :not(h3),
    .hamid-pos-position-0 .moduletable > :not(h3) {
        padding: 12px 14px;
    }
}


/* =====================================================
   9) FOOTER
   ===================================================== */

.hamid-section-footer {
    padding-block: 20px !important;
    background: #111;
}

.hamid-section-footer-widgets {
    margin-block-end: 18px;
}

.hamid-pos-footer {
    padding: 0;
}

.hamid-pos-footer .module,
.hamid-pos-footer .moduletable {
    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;

    color: #bbb;
    text-align: center;
}

.hamid-pos-footer .module > :not(h3),
.hamid-pos-footer .moduletable > :not(h3) {
    padding: 0;
}

.hamid-pos-footer h3,
.hamid-pos-footer .module-title {
    display: none !important;
}

.hamid-pos-footer p,
.hamid-pos-footer div {
    margin: 0;
    color: #bbb;

    font-size: 14px;
    line-height: 1.8;
}


/* =====================================================
   10) HEADER FLAGS — Mobile
   ===================================================== */

@media (max-width: 991.98px) {

    .header-slot-3-col,
    .slot-3-position,
    .hamid-pos-slot-3 {
        position: absolute !important;
        top: 10px !important;
        left: 12px !important;

        width: auto !important;
        max-width: none !important;

        display: flex !important;
        align-items: center !important;
        gap: 6px !important;

        margin: 0 !important;
        padding: 0 !important;

        z-index: 30 !important;
    }

    .header-slot-3-col img,
    .slot-3-position img,
    .hamid-pos-slot-3 img {
        display: block !important;
        width: 22px !important;
        height: auto !important;
    }
}