/* 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: var(--brand-red);
    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: var(--brand-ink-muted);
    background: #fff;
    cursor: pointer;
    transition: all 0.25s;
}

.gallery-tabs .nav-link:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.gallery-tabs .nav-link.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    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: var(--brand-ink);
}

.post-card h3 a:hover {
    color: var(--brand-red);
}

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

.post-card p {
    color: var(--brand-ink-muted);
    margin-bottom: 14px;
}

.post-card .read-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--brand-red);
}

.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;
}

/* Compact author box above and below a blog post. */

.author-byline {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: #f7f7f7;
    border-left: 4px solid var(--brand-red);
    border-radius: 10px;
}

.author-byline-top {
    margin-bottom: 26px;
}

.author-byline-bottom {
    margin-top: 40px;
}

.author-byline-photo {
    flex: 0 0 72px;
}

.author-byline-photo img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
}

.author-byline-body {
    min-width: 0;
}

.author-byline-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-ink-muted);
}

.author-byline-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-ink);
}

.author-byline-name:hover {
    color: var(--brand-red);
}

.author-byline-summary {
    margin: 4px 0 0;
    font-style: italic;
    color: var(--brand-ink-muted);
    line-height: 1.6;
}

/* Full author profile card on the author page. */

.author-profile {
    padding: 32px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.author-profile-head {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-bottom: 8px;
}

.author-profile-photo {
    width: 160px;
    height: 160px;
    flex: 0 0 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.12);
}

.author-profile-intro {
    flex: 1 1 auto;
    min-width: 0;
}

.author-profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-ink);
    margin-bottom: 4px;
}

.author-posts {
    margin-top: 56px;
}

.author-profile-designation {
    color: var(--brand-ink-muted);
    margin-bottom: 12px;
}

.author-profile-summary {
    margin: 0;
    padding: 14px 18px;
    border-left: 4px solid var(--brand-red);
    background: #f7f7f7;
    font-style: italic;
    color: var(--brand-ink-muted);
    line-height: 1.7;
}

.author-profile-section {
    margin-top: 28px;
}

.author-profile-section h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-ink);
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--brand-red);
}

.author-profile-section p {
    color: #4d5266;
    line-height: 1.8;
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .author-profile {
        padding: 22px 18px;
    }

    .author-profile-head {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .author-profile-summary {
        text-align: left;
    }

    .author-profile-name {
        font-size: 26px;
    }

    .author-byline {
        align-items: flex-start;
        gap: 14px;
    }

    .author-byline-photo {
        flex-basis: 56px;
    }

    .author-byline-photo img {
        width: 56px;
        height: 56px;
    }
}

/* ---------------------------------------------------------------
   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: var(--brand-ink-muted) !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: var(--brand-red) !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: var(--brand-red);
}

@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: var(--brand-ink);
    }

    .contact-box-inner p {
        color: var(--brand-ink-muted);
    }
}

/* ---------------------------------------------------------------
   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: var(--brand-red);
    border-color: var(--brand-red);
}

.pagination-wrap .page-link {
    color: var(--brand-red);
}

/* Section eyebrows echo the logo: white type on a red disc-like pill, with a
   short red rule under the heading. */
.section-title p {
    display: inline-block;
    background: var(--brand-red);
    color: var(--brand-white);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.15em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title h3 {
    color: var(--brand-ink);
}

.section-title h3::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 16px;
    background: var(--brand-red);
    border-radius: 2px;
}

.section-title.text-center h3::after {
    margin-left: auto;
    margin-right: auto;
}
