
/* ==================================================
   MONBAST.COM - HOMEPAGE DESIGN
   Responsive Desktop / Tablet / Mobile
================================================== */

.homepage {
    overflow-x: hidden;
    background: #f8f9fc;
}

/* HEADER */

.homepage .homepage-header {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 55px !important;
    overflow: hidden;
}

.homepage .homepage-header-wrapper {
    position: relative;
    z-index: 2;
    height: auto !important;
    min-height: 0 !important;
    padding: 20px 15px 25px;
}

.homepage .header-title {
    max-width: 900px;
    margin: 35px auto 18px;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.3;
    font-weight: 800;
    text-align: center;
}

.homepage .header-text {
    max-width: 760px;
    margin: 15px auto;
    text-align: center;
    line-height: 1.7;
}

/* EMAIL GENERATOR */

.homepage .homepage-mail-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 30px auto 20px;
}

.homepage .mail-selection {
    width: 100%;
    margin-bottom: 0 !important;
}

.homepage .mail-select {
    width: 100%;
}

.homepage .mail-input {
    display: flex;
    width: 100%;
    min-width: 0;
}

.homepage .mail-input input {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.homepage .mail-input-copy {
    flex-shrink: 0;
}

.homepage .mail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

.homepage .mail-action {
    min-height: 46px;
    margin: 0 !important;
    border-radius: 10px;
    transition: all .2s ease;
}

.homepage .mail-action:hover:not(:disabled) {
    transform: translateY(-2px);
}

/* STATISTICS */

.homepage .header-counters {
    width: 100%;
    max-width: 850px;
    margin: 25px auto 0;
}

.homepage .header-counter {
    min-height: 95px;
    border-radius: 15px;
}

/* ADVERTISEMENTS */

.homepage .homepage-ad {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 22px auto;
    text-align: center;
    clear: both;
    overflow: hidden;
}

.homepage .homepage-ad ins {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.homepage .homepage-ad iframe {
    max-width: 100%;
}

.homepage .homepage-ad-header {
    max-width: 970px;
    margin: 20px auto;
}

.homepage .homepage-ad-top {
    margin-top: 10px;
    margin-bottom: 25px;
}

.homepage .homepage-ad-bottom {
    margin-top: 25px;
    margin-bottom: 25px;
}

/* MAILBOX */

.homepage .homepage-mailbox-section {
    padding-top: 30px !important;
    padding-bottom: 30px;
}

.homepage .mailbox-container {
    display: block;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.homepage .mail-content {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.homepage .mailbox {
    width: 100%;
    min-height: 400px;
    border-radius: 18px;
}

.homepage .mailbox-body {
    min-height: 320px;
}

.homepage .mailbox-body .empty {
    text-align: center;
}

/* PAGE CONTENT */

.homepage .homepage-content-section {
    padding-top: 45px;
    padding-bottom: 45px;
}

.homepage .homepage-content-section .section-inner {
    width: 100%;
}

/* SHAPE DIVIDER */

.homepage .custom-shape-divider-bottom-1696181426 {
    max-height: 120px;
}

/* MOBILE */

@media (max-width: 767px) {

    .homepage .homepage-header {
        padding-top: 10px !important;
        padding-bottom: 35px !important;
    }

    .homepage .homepage-header-wrapper {
        padding: 10px 12px 20px;
    }

    .homepage .header-title {
        margin-top: 20px;
        margin-bottom: 12px;
        font-size: 30px;
        line-height: 1.35;
    }

    .homepage .header-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .homepage .homepage-mail-wrapper {
        margin-top: 22px;
    }

    .homepage .mail-input {
        width: 100%;
    }

    .homepage .mail-input input {
        font-size: 14px;
    }

    .homepage .mail-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .homepage .mail-action {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 8px 3px;
        font-size: 12px;
    }

    .homepage .mail-action i {
        font-size: 13px;
    }

    .homepage .mail-action-text {
        display: inline-block;
        font-size: 11px;
        white-space: nowrap;
    }

    .homepage .header-counters {
        margin-top: 20px !important;
    }

    .homepage .header-counter {
        min-height: 80px;
    }

    .homepage .homepage-mailbox-section {
        padding-top: 15px !important;
        padding-bottom: 20px;
    }

    .homepage .mailbox {
        min-height: 350px;
        border-radius: 14px;
    }

    .homepage .mailbox-body {
        min-height: 300px;
    }

    .homepage .mailbox-body .empty h2 {
        font-size: 22px;
    }

    .homepage .mailbox-body .empty p {
        font-size: 14px;
    }

    .homepage .homepage-ad {
        margin: 15px auto;
    }

    .homepage .homepage-content-section {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .homepage .custom-shape-divider-bottom-1696181426 {
        max-height: 60px;
    }

}

/* SMALL MOBILE */

@media (max-width: 380px) {

    .homepage .header-title {
        font-size: 26px;
    }

    .homepage .mail-action {
        padding: 7px 2px;
    }

    .homepage .mail-action-text {
        font-size: 10px;
    }

}

/* RTL SUPPORT */

[dir="rtl"] .homepage .mail-actions {
    direction: rtl;
}

[dir="rtl"] .homepage .mailbox-header {
    direction: rtl;
}

/* DESKTOP */

@media (min-width: 1200px) {

    .homepage .homepage-header-wrapper {
        padding-top: 30px;
    }

    .homepage .homepage-mail-wrapper {
        margin-top: 35px;
    }

}

/* =====================================
   MONBAST MOBILE FINAL FIX
===================================== */

@media (max-width: 767px) {

    /* Email input */
    .homepage .mail-input {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .homepage .mail-input #mainEmail {
        display: block !important;
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        font-size: 14px !important;
        padding: 10px 12px !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    .homepage .mail-input-copy {
        flex: 0 0 65px !important;
        width: 65px !important;
        min-width: 65px !important;
    }

    /* Email action buttons */
    .homepage .mail-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .homepage .mail-actions .mail-action {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: row !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 52px !important;
        padding: 8px !important;
        margin: 0 !important;
        gap: 8px !important;
        border-radius: 12px !important;
    }

    .homepage .mail-actions .mail-action i {
        font-size: 16px !important;
        flex-shrink: 0 !important;
    }

    .homepage .mail-actions .mail-action-text {
        display: inline-block !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    /* Reduce excessive vertical spacing */
    .homepage .homepage-mail-wrapper {
        margin-top: 20px !important;
        margin-bottom: 15px !important;
    }

    .homepage .homepage-header {
        padding-bottom: 35px !important;
    }

}

/* MonBast Homepage Ads Layout */

.homepage .homepage-ad {
    width: 100%;
    max-width: 970px;
    margin: 25px auto;
    padding: 0 10px;
    text-align: center;
    overflow: hidden;
    clear: both;
}

.homepage .homepage-ad ins {
    max-width: 100%;
    margin: auto;
}

.homepage .homepage-header {
    padding-bottom: 35px !important;
}

.homepage .homepage-mailbox-section {
    padding-top: 25px !important;
}

.homepage .homepage-ad iframe {
    max-width: 100%;
}

@media (max-width: 767px) {
    .homepage .homepage-ad {
        margin: 18px auto;
        padding: 0 5px;
    }

    .homepage .homepage-header {
        padding-bottom: 25px !important;
    }
}

/* =====================================
   MONBAST - COMPACT EMAIL BOX
===================================== */

@media (max-width: 767px) {

    /* Reduce email box size */
    .homepage .homepage-mail-wrapper {
        max-width: 620px !important;
        margin: 15px auto !important;
        padding: 15px !important;
    }

    .homepage .mail-selection {
        margin-bottom: 0 !important;
    }

    /* Email input */
    .homepage .mail-input {
        height: 58px !important;
    }

    .homepage .mail-input input {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }

    .homepage .mail-input-copy {
        width: 58px !important;
        min-width: 58px !important;
        height: 58px !important;
    }

    /* Five horizontal buttons */
    .homepage .mail-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        overflow-x: auto !important;
    }

    .homepage .mail-actions .mail-action {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 5px 2px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 3px !important;
        border-radius: 10px !important;
    }

    .homepage .mail-actions .mail-action i {
        font-size: 15px !important;
        margin: 0 !important;
    }

    .homepage .mail-actions .mail-action-text {
        display: block !important;
        font-size: 9px !important;
        white-space: nowrap !important;
    }

    /* Reduce header height */
    .homepage .homepage-header-wrapper {
        padding-bottom: 10px !important;
    }

    .homepage .homepage-header {
        padding-bottom: 25px !important;
    }
}

/* Extra small phones */
@media (max-width: 380px) {

    .homepage .mail-actions {
        gap: 4px !important;
    }

    .homepage .mail-actions .mail-action-text {
        font-size: 8px !important;
    }

}

/* =================================
   MONBAST - SMALL EMAIL FRAME
================================= */

@media (max-width: 767px) {

    /* Outer email frame */
    .homepage .homepage-mail-wrapper {
        width: calc(100% - 30px) !important;
        max-width: 550px !important;
        margin: 15px auto !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
    }

    /* Remove extra spacing */
    .homepage .mail-selection {
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    /* Email input */
    .homepage .mail-input {
        height: 54px !important;
    }

    .homepage .mail-input input {
        height: 54px !important;
    }

    .homepage .mail-input-copy {
        height: 54px !important;
    }

    /* Buttons */
    .homepage .mail-actions {
        margin-top: 8px !important;
        gap: 5px !important;
    }

    .homepage .mail-actions .mail-action {
        height: 43px !important;
        min-height: 43px !important;
        padding: 4px 2px !important;
        border-radius: 9px !important;
        gap: 2px !important;
    }

    .homepage .mail-actions .mail-action i {
        font-size: 14px !important;
    }

    .homepage .mail-actions .mail-action-text {
        font-size: 9px !important;
    }
}
