/* Mobile, PWA and SEO layout enhancements — nesfejahan.com */

.header-spacer {
    height: 120px;
}

@media (min-width: 480px) {
    .header-spacer { height: 160px; }
}

@media (min-width: 768px) {
    .header-spacer { height: 200px; }
}

@media (min-width: 992px) {
    .header-spacer { height: 280px; }
}

/* موبایل: یک پله بزرگ‌تر از Text_Responsive (که فونت را کوچک می‌کند) */
@media (max-width: 767px) {
    body,
    .basic-content,
    #main-content,
    .txt-box,
    .txt-box p,
    .post-desc,
    .info-description,
    .info-description-body p {
        font-size: 16px !important;
        line-height: 1.85 !important;
    }

    h1 { font-size: 22px !important; }
    h2, h2.page-header, .page-header { font-size: 20px !important; }
    h3, h3.page-header { font-size: 18px !important; }
    h4 { font-size: 15px !important; }

    .nav-top .navbar-nav a.dropdown-toggle {
        font-size: 15px !important;
    }

    #siteMainNav.in .navbar-nav > li > a {
        font-size: 15px !important;
        padding: 12px 15px !important;
    }

    .products {
        display: block !important;
    }

    .back1, .back2, .back3 {
        background-attachment: scroll !important;
        min-height: 220px;
    }

    .home-hero-carousel .carousel-inner,
    .home-hero-carousel .carousel-inner > .item {
        min-height: 200px;
    }

    .news-section-wrap,
    #news {
        max-height: none !important;
        overflow: visible !important;
    }

    .items h4 {
        font-size: 14px;
        line-height: 1.5;
    }

    .post-desc {
        width: 100% !important;
        float: none;
    }

    .info-detail-img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 15px;
        float: none !important;
    }
}

@media (max-width: 767px) {
    .mega-dropdown-menu {
        padding: 10px 5px !important;
    }

    .mega-dropdown-menu .col-sm-3,
    .mega-dropdown-menu .col-sm-4 {
        width: 100%;
        float: none;
    }

    .mega-dropdown-menu .carousel,
    .mega-dropdown-menu .carousel-inner {
        display: none;
    }

    .mega-dropdown-menu .dropdown-header h3 {
        font-size: 16px;
        margin: 8px 0;
    }

    img.top-logo {
        max-height: 80px !important;
    }
}

.seo-breadcrumb {
    background: #f8f9fa;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 13px;
    border-right: 3px solid #01A8A8;
}

.seo-breadcrumb a {
    color: #01A8A8;
}

.seo-breadcrumb a:hover {
    color: #039894;
    text-decoration: underline;
}

.seo-intro-banner {
    background: linear-gradient(135deg, #01A8A8 0%, #039894 100%);
    color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-align: center;
}

@media (max-width: 767px) {
    .seo-intro-banner {
        padding: 14px 12px;
        margin-bottom: 15px;
        border-radius: 4px;
    }

    .seo-intro-banner h1 {
        font-size: 24px !important;
        margin-bottom: 6px;
    }

    .seo-intro-banner p {
        font-size: 15px;
        line-height: 1.75;
    }

    nav.site-main-navbar .navbar-brand {
        font-size: 12px !important;
    }
}

.seo-intro-banner h1 {
    font-family: 'IranNastaliq', tahoma;
    font-size: 28px;
    margin: 0 0 10px;
    color: #fff;
}

@media (min-width: 768px) {
    .seo-intro-banner h1 { font-size: 42px; }
}

.seo-intro-banner p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

.items {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 15px;
}

.items:hover {
    transform: translateY(-3px);
}

.items img {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.info-page-title {
    font-family: 'IranNastaliq', tahoma;
    color: #692a00;
    border-bottom: 2px solid #01A8A8;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.glories-list {
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 767px) {
    .glories-list {
        max-height: 200px;
        margin-bottom: 15px;
    }
}

.pwa-install-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #01A8A8;
    color: #fff;
    padding: 12px 15px;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.pwa-install-bar.show {
    display: block;
}

.pwa-install-bar button {
    background: #fff;
    color: #01A8A8;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: bold;
}

@media (max-width: 767px) {
    .footer-section h4 {
        font-size: 16px;
    }

    .copyr-link p {
        font-size: 12px;
        line-height: 1.6;
    }

    #back-top.back-to-top {
        left: 16px;
        bottom: 80px;
        width: 44px;
        height: 44px;
    }

    #back-top.back-to-top .glyphicon {
        line-height: 44px;
        font-size: 18px;
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #01A8A8;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}
