/* HelloFromJapan — additions on top of the purchased theme. */

/* ---------------------------------------------------------------
   Spacing clean-up: the theme stacks a lot of dead vertical space
   between blocks. Section padding itself is admin-controlled in
   /theme.css; these are the fixed offsets it does not cover.
   --------------------------------------------------------------- */

.section.pb-60 {
    padding-bottom: 40px;
}

.features-section .box-wrap {
    margin-top: 18px;
}

.features-section .info-box {
    margin-bottom: 18px;
}

.features-section .btn.mt-5 {
    margin-top: 24px !important;
}

.how-works-block {
    margin-top: 6px;
}

.how-works-box img {
    max-width: 190px;
}

.counter-box {
    padding: 12px 0;
}

.footer {
    padding-top: 56px;
}

.footer .foot_desc {
    margin-top: 22px !important;
    padding-top: 22px !important;
}

.footer_menu_list li {
    margin-bottom: 7px;
}

.faq-accordion-panel .question-card {
    margin-bottom: 12px;
}

/* ---------------------------------------------------------------
   Header: the logo is now roughly double the theme's original
   36px, so the nav bar needs the extra height and tighter link
   spacing to keep everything on one line.
   --------------------------------------------------------------- */

.custom-nav {
    padding-top: 10px;
    padding-bottom: 10px;
}

.custom-nav .navbar-nav .nav-link {
    white-space: nowrap;
    padding-left: 11px;
    padding-right: 11px;
}

.custom-nav .navbar-brand.brand-logo {
    padding-top: 0;
    padding-bottom: 0;
}

.contact_btn {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.contact_btn .btn-sm {
    white-space: nowrap;
    padding: 9px 18px;
    line-height: 1;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .custom-nav .navbar-nav .nav-link {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .custom-nav .navbar-nav .nav-link {
        white-space: normal;
    }
}

/* ---------------------------------------------------------------
   Page header for the inner (blog / gallery) pages
   --------------------------------------------------------------- */

.page-header {
    padding: 150px 0 70px;
    background: #8a3eaf;
    position: relative;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.page-breadcrumb {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.page-breadcrumb a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .page-header {
        padding: 120px 0 50px;
    }

    .page-header h1 {
        font-size: 27px;
    }
}

/* ---------------------------------------------------------------
   Success gallery tabs
   --------------------------------------------------------------- */

.gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.gallery-tabs .nav-link {
    border: 1px solid #e3e6ef;
    border-radius: 40px;
    padding: 10px 26px;
    font-weight: 600;
    color: #55596b;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s;
}

.gallery-tabs .nav-link:hover {
    border-color: #8a3eaf;
    color: #8a3eaf;
}

.gallery-tabs .nav-link.active {
    background: #8a3eaf;
    border-color: #8a3eaf;
    color: #fff;
}

.gallery-tabs .nav-link .count {
    display: inline-block;
    margin-left: 7px;
    font-size: 12px;
    opacity: 0.75;
}

.success-card {
    position: relative;
    display: block;
    background: #f4f5fa;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    padding-top: 100%;
    cursor: pointer;
}

.success-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.success-card:hover img {
    transform: scale(1.06);
}

.success-card .no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c6cad8;
    font-size: 40px;
    cursor: default;
}

.success-card .zoom-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 10, 30, 0);
    color: #fff;
    font-size: 26px;
    opacity: 0;
    transition: all 0.25s;
}

.success-card:hover .zoom-hint {
    background: rgba(20, 10, 30, 0.35);
    opacity: 1;
}

/* ---------------------------------------------------------------
   Blog
   --------------------------------------------------------------- */

.post-card {
    background: #fff;
    border: 1px solid #ebedf4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}

.post-card:hover {
    box-shadow: 0 12px 30px rgba(30, 20, 50, 0.12);
    transform: translateY(-3px);
}

.post-card .thumb {
    display: block;
    position: relative;
    padding-top: 60%;
    background: #f4f5fa;
    overflow: hidden;
}

.post-card .thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .body {
    padding: 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.post-card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.post-card h3 a {
    color: #202336;
}

.post-card h3 a:hover {
    color: #8a3eaf;
}

.post-card .post-meta {
    font-size: 12.5px;
    color: #8b90a3;
    margin-bottom: 10px;
}

.post-card p {
    color: #6b7085;
    margin-bottom: 14px;
}

.post-card .read-more {
    margin-top: auto;
    font-weight: 600;
    color: #8a3eaf;
}

.post-body {
    font-size: 16px;
    line-height: 1.8;
    color: #4d5266;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    font-weight: 700;
    margin: 28px 0 12px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 18px 0;
}

.post-body ul,
.post-body ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.post-featured-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 26px;
}

/* ---------------------------------------------------------------
   Home success-gallery teaser + latest posts strip
   --------------------------------------------------------------- */

.success-strip .success-card {
    margin-bottom: 0;
}

/* Nav arrows sit clear of the four visible cards on desktop and tuck
   back over the edges once the container runs full width. */
.success-slider .owl-nav {
    margin-top: 0;
}

.success-slider .owl-nav button.owl-prev,
.success-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff !important;
    color: #55596b !important;
    font-size: 24px !important;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(30, 20, 50, 0.15);
    transition: all 0.25s;
}

.success-slider .owl-nav button.owl-prev {
    left: -21px;
}

.success-slider .owl-nav button.owl-next {
    right: -21px;
}

.success-slider .owl-nav button.owl-prev:hover,
.success-slider .owl-nav button.owl-next:hover {
    background: #8a3eaf !important;
    color: #fff !important;
}

.success-slider .owl-nav button.disabled {
    opacity: 0.35;
    cursor: default;
}

.success-slider .owl-dots {
    text-align: center;
    margin-top: 26px;
}

.success-slider .owl-dot span {
    display: block;
    width: 9px;
    height: 9px;
    margin: 0 5px;
    border-radius: 50%;
    background: #d8dae6;
    transition: all 0.25s;
}

.success-slider .owl-dot.active span {
    width: 24px;
    border-radius: 9px;
    background: #8a3eaf;
}

@media (max-width: 1199px) {
    .success-slider .owl-nav button.owl-prev {
        left: 4px;
    }

    .success-slider .owl-nav button.owl-next {
        right: 4px;
    }
}

/* ---------------------------------------------------------------
   Contact: the theme's background-image panel sits nicely beside
   the form on desktop, but below lg it stacks above the form as a
   ~300-500px image block before any of the form is visible. Drop
   the image/overlay there and keep just the heading + copy as a
   compact intro instead.
   --------------------------------------------------------------- */

@media (max-width: 991px) {
    .contact-bg {
        background-image: none;
    }

    .contact-box-inner {
        background-color: transparent;
        min-height: auto;
        padding: 0;
        text-align: center;
        display: block;
    }

    .contact-box-inner h3 {
        color: #202336;
    }

    .contact-box-inner p {
        color: #6b7085;
    }
}

/* ---------------------------------------------------------------
   Misc
   --------------------------------------------------------------- */

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 84px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    z-index: 1000;
}

.floating-whatsapp:hover {
    color: #fff;
    background: #1fb959;
}

.form-feedback {
    margin-bottom: 18px;
}

.pagination-wrap {
    margin-top: 14px;
}

.pagination-wrap .pagination {
    justify-content: center;
}

.pagination-wrap .page-item.active .page-link {
    background: #8a3eaf;
    border-color: #8a3eaf;
}

.pagination-wrap .page-link {
    color: #8a3eaf;
}
