/*
Theme Name: Haobby Custom (BeTheme Clone) - FINAL REPLICA
Version: 3.6
Author: Hermes Agent (Refined)
Description: Exact visual reconstruction of haobby.com (BeTheme 20.0)
*/

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    background-color: #fcfcfc;
}

body {
    background-color: transparent;
    color: #848289;
    font-family: Arial, Arial, Tahoma, sans-serif;
    font-size: 14px;
    line-height: 21px;
    margin: 0;
    padding: 0 10px 0 250px;
    /* Essential for Fixed Sidebar */
    overflow-x: hidden;
}

a {
    color: #ff006c;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff006c;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: Arial, Arial, Tahoma, sans-serif;
    color: #35303f;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

/* ==========================================================================
   2. CREATIVE HEADER (THE SIDEBAR)
   ========================================================================== */
#Header_creative {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    box-shadow: none;
    border-right: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.creative-social {
    padding: 5px 20px 15px;
    text-align: center;
    margin-top: auto;
}

.creative-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    text-align: center;
}

.creative-social ul li {
    display: inline-block;
    margin: 0 6px 2px 0;
    padding: 0;
}

.creative-social ul li a {
    display: inline;
    color: #bbbbbb;
    font-size: 15px;
    background: none;
    border-radius: 0;
    width: auto;
    height: auto;
}

.creative-social ul li a:hover {
    color: #ff006c;
    background: none;
}

/* BeTheme icon font (safe static asset copied from online reference) */
@font-face {
    font-family: 'mfn-icons';
    src: url('fonts/mfn-icons.woff') format('woff'),
         url('fonts/mfn-icons.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

.creative-social ul li a i {
    font-style: normal;
}

.creative-social ul li a i::before {
    font-family: 'mfn-icons';
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.icon-facebook::before { content: '\f30c'; }
.icon-gplus::before    { content: '\f0d5'; }
.icon-twitter::before  { content: '\f309'; }
.icon-vimeo::before    { content: '\f306'; }
.icon-play::before     { content: '\e8f9'; }
.icon-flickr::before   { content: '\f303'; }

/* Portfolio overlay icons (mfn-icons) */
.more-links i::before {
    font-family: 'mfn-icons';
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}
.icon-search::before { content: '\e91b'; }
.icon-link::before   { content: '\e8c2'; }

/* Single-product / related icons (mfn-icons) */
.single-portfolio i::before,
.section-post-header i::before,
.section-post-related i::before,
.fixed-nav .arrow i::before {
    font-family: 'mfn-icons';
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}
.icon-heart-empty-fa::before { content: '\e898'; }
.icon-heart-fa::before       { content: '\e899'; }
.icon-layout::before         { content: '\e8b1'; }
.icon-left-open::before      { content: '\e8b7'; }
.icon-right-open::before     { content: '\e915'; }
.icon-left-open-big::before  { content: '\e8b8'; }
.icon-right-open-big::before { content: '\e916'; }
.icon-down-dir::before       { content: '\e866'; }
.icon-up-open::before        { content: '\e945'; }
.icon-down-open::before      { content: '\e867'; }
.icon-user::before           { content: '\e94b'; }
.icon-clock::before          { content: '\e843'; }

.creative-wrapper {
    flex-grow: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.logo {
    text-align: center;
    padding: 82px 0 50px;
    margin-bottom: 0;
}

.logo img {
    max-width: 194px;
    width: 194px;
    height: auto;
}

/* Hide search bar in sidebar to match online (online collapses it to 0x0) */
.search_wrapper,
.top_bar_right,
#search_button {
    display: none !important;
}

/* Navigation */
#menu {
    margin-top: 0;
}

#menu ul {
    list-style: none;
    padding: 0;
}

#menu ul li {
    border-bottom: none;
}

#menu ul li a {
    display: block;
    padding: 0;
    height: 52px;
    color: #716c7b;
    font-weight: 400;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 3px;
    text-align: center;
    line-height: 60px;
    font-family: Arial, Arial, Tahoma, sans-serif;
}

#menu ul li a:hover, 
#menu ul li.current-menu-item a,
#menu ul li.current_page_item a {
    color: #ff006c;
}

/* Homepage HOME highlight */
.home #menu ul li:first-child a {
    color: #ff006c;
}

/* ==========================================================================
   3. HERO SECTION (RECONSTRUCTED)
   ========================================================================== */
.section.mcb-section {
    position: relative;
    width: 100%;
    min-height: 677px; /* The exact BeTheme hero height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Products/category listing: masthead-only Subheader + filter section size to content */
.page-template-template-portfolio .section.mcb-section,
.category .section.mcb-section {
    min-height: 0;
}
.page-template-template-portfolio #Subheader,
.category #Subheader { margin-bottom: 0; }

/* No dark overlay — text is dark, banner provides visual interest */
.mcb-section::before {
    display: none;
}

.mcb-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1220px; /* BeTheme default (>=1490px) */
    margin: 0 auto;
    padding: 0;
}

/* BeTheme responsive content-width breakpoints (match haobby.com exactly) */
@media only screen and (min-width: 1240px) and (max-width: 1489px) {
    .mcb-wrap { max-width: 940px; }
}
@media only screen and (min-width: 960px) and (max-width: 1239px) {
    .mcb-wrap { max-width: 940px; }
}
@media only screen and (min-width: 768px) and (max-width: 959px) {
    .mcb-wrap { max-width: 708px; }
}
@media only screen and (max-width: 767px) {
    .mcb-wrap { max-width: 700px; }
}

/* BeTheme no_line spacers are invisible — kill browser default hr border */
#Subheader hr.no_line,
.mcb-section hr.no_line {
    height: 0;
    border: 0 !important;
    background: none;
    box-shadow: none;
}

/* Hero content inset — BeTheme gives the content column a ~9px side margin,
   so the heading + red-banner text are inset from the banner's left edge (online: h2/h3 left=379, banner left=370) */
#Subheader .column_attr {
    padding-left: 9px;
    padding-right: 9px;
}

.mcb-section h2 {
    color: #35303f !important;
    font-size: 42px !important;
    font-weight: 400;
    line-height: 42px;
    margin-bottom: 15px;
}

.mcb-section h3 {
    color: #ffffff !important;
    font-size: 30px !important;
    font-weight: 400;
    line-height: 1.05;
    /* Match online exactly: BeTheme declares font-family:bfonts (Bradley Hand ITC).
       The webfont 403s on both sites, so it falls back identically — declare the same family. */
    font-family: bfonts;
}

/* ==========================================================================
   4. PORTFOLIO GRID (THE "FEEL" FIX)
   ========================================================================== */
.section.portfolio-section {
    padding: 80px 0;
    background: #ffffff;
}

#Filters {
    margin-bottom: 50px;
    text-align: center;
}

#Filters ul.categories {
    display: inline-block;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#Filters ul.categories li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

#Filters ul.categories li a {
    display: inline-block;
    position: relative;
    padding: 14px 25px;
    background: none;
    color: #858585;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
}

#Filters ul.categories li.current-cat a,
#Filters ul.categories li a:hover {
    background: none;
    color: #ff006c;
}

/* Active-category underline — 2px pink bar under the selected filter (matches online ::after) */
#Filters ul.categories li.current-cat a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #ff006c;
}

ul.portfolio_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 2%;
    justify-content: center;
    padding: 0;
    list-style: none;
}

ul.portfolio_grid li {
    width: auto !important;
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* Card defaults — visible by default, overlay appears on hover */
.portfolio-item-content {
    position: relative;
    width: 100%;
    background: #fff;
}

.portfolio-item-content .portfolio-item-bg {
    display: block;
    position: relative;
}

/* Hover overlay — matches online BeTheme .hover-desc.bg-dark */
.portfolio-item-content .more {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(221, 51, 51, 0.8);
    color: #fff;
    opacity: 0;
    display: block;
    transition: 0.3s ease-in-out;
    z-index: 2;
    padding: 10% 10% 50px;
    box-sizing: border-box;
    text-align: left;
}

.portfolio-item-content:hover .more {
    opacity: 1;
}

.portfolio-item-content .more .more-inner {
    height: 100%;
    overflow: hidden;
    color: #fff;
}

.portfolio-item-content .more .entry-title {
    font-family: Arial, Arial, Tahoma, sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 32px;
    color: #fff;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}

.portfolio-item-content .more .entry-title .link {
    color: #fff;
}

.portfolio-item-content .more .entry-title::after {
    content: "";
    display: block;
    margin: 15px 0;
    width: 20px;
    height: 3px;
    background: #fff;
}

.portfolio-item-content .more .more-links {
    position: absolute;
    left: 0;
    bottom: 18px;
    width: 100%;
    padding: 0 7% 0 8%;
    box-sizing: border-box;
}

.portfolio-item-content .more .more-links .zoom,
.portfolio-item-content .more .more-links .mlink {
    color: #fff;
    font-size: 25px;
    line-height: 21px;
}

.portfolio-item-content .more .more-links .mlink {
    float: right;
}

/* Image frame */
.image_frame {
    display: block;
}

.image_frame .image_wrapper {
    position: relative;
    overflow: hidden;
}

.image_frame .image_wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   4b. HERO SLIDESHOW (Slider Revolution-style: Ken Burns + blockfromleft caption)
   ========================================================================== */
.hero-slideshow .slide { overflow: hidden; }
.hero-slideshow .slide-img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1);
    transform-origin: center center;
}
/* Ken Burns slow zoom while the slide is showing */
.hero-slideshow .slide-img.kenburns {
    animation: haobby-kenburns 6s ease-out both;
}
@keyframes haobby-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* Caption anchored right, vertically centered (matches online) */
.hero-slideshow .slide-caption {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    text-align: right;
    line-height: 1.2;
    max-width: 460px;
    pointer-events: none;
    display: inline-block;
    padding: 6px 4px;
    overflow: hidden;
}
/* The white block that sweeps in from the left, then wipes back out */
.hero-slideshow .slide-caption .cap-block {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 1;
}
/* The caption text, revealed after the block passes */
.hero-slideshow .slide-caption .cap-text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    opacity: 0;
}
/* blockfromleft: block scales in from left (origin left), then out to the right;
   text fades in as the block clears it. Easing approximates Power3.easeInOut. */
.hero-slideshow .slide-caption.reveal .cap-block {
    animation: haobby-blockfromleft 1.2s cubic-bezier(0.77,0,0.175,1) 1.6s both;
}
.hero-slideshow .slide-caption.reveal .cap-text {
    animation: haobby-caption-in 0.01s linear 2.2s both;
}
@keyframes haobby-blockfromleft {
    0%   { transform: scaleX(0); transform-origin: left center; }
    50%  { transform: scaleX(1); transform-origin: left center; }
    50.1%{ transform: scaleX(1); transform-origin: right center; }
    100% { transform: scaleX(0); transform-origin: right center; }
}
@keyframes haobby-caption-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
/* Sticky footer: when page content is shorter than the viewport, the footer
   sits flush at the bottom of the screen; when content is taller, it flows
   naturally below the content at the end of the page. */
#Wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#Content {
    flex: 1 0 auto;
}
#Footer {
    flex-shrink: 0;
}

#Footer {
    background: #ececec;
    padding: 40px 0 42px;
    text-align: center;
    color: #817f86;
    border-top: 0;
    font-size: 14px;
    line-height: 21px;
    font-family: Arial, Arial, Tahoma, sans-serif;
}

#Footer .copyright {
    margin: 0 0 12px;
    color: #817f86;
}

#Footer .copyright a {
    color: #817f86;
    text-decoration: none;
}

#Footer .copyright a:hover {
    color: #ff006c;
}

#Footer #back_to_top {
    display: none;
}

#Footer ul.social {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

#Footer ul.social li {
    display: inline-block;
    margin: 0 6px 0 0;
    vertical-align: middle;
}

#Footer ul.social li a {
    color: #65666c;
    font-size: 15px;
    line-height: 15px;
    text-decoration: none;
}

#Footer ul.social li a:hover {
    color: #ff006c;
}

#Footer ul.social li a i {
    font-style: normal;
}

#Footer ul.social li a i::before {
    font-family: 'mfn-icons';
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

/* ==========================================================================
   6. SINGLE PORTFOLIO (PRODUCT DETAIL)
   ========================================================================== */
/* Content block matches online: 940px inset centered inside the 1180 section */
.single-portfolio #Content .section .section_wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
}
.single-portfolio .section-post-header .section_wrapper,
.single-portfolio .section-post-related .section_wrapper {
    max-width: 940px;
    margin: 0 120px;
}

/* Post-header meta bar */
.single-portfolio .section-post-header {
    padding: 30px 0 10px;
}
.single-portfolio .section-post-header .post-nav {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.single-portfolio .section-post-header .next-prev-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    float: left;
}
.single-portfolio .section-post-header .next-prev-nav li {
    display: inline-block;
}
.single-portfolio .section-post-header .next-prev-nav .button {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    color: #a8a8a8;
    text-decoration: none;
}
.single-portfolio .section-post-header .list-nav {
    float: right;
    color: #ff006c;
    font-size: 14px;
    text-decoration: none;
}
.single-portfolio .section-post-header .list-nav i {
    margin-right: 6px;
}
.single-portfolio .post-header .post-meta {
    overflow: hidden;
}
.single-portfolio .button-love {
    float: left;
    padding-right: 20px;
}
.single-portfolio .button-love .mfn-love {
    position: relative;
    display: inline-block;
    padding-left: 28px;
    height: 21px;
    color: #ff006c;
    font-size: 17px;
    text-decoration: none;
}
.single-portfolio .button-love .icons-wrapper {
    position: static;
}
.single-portfolio .button-love .icons-wrapper i {
    position: absolute;
    top: 0;
    left: 0;
    height: 21px;
    font-size: 18px;
    line-height: 21px;
}
.single-portfolio .button-love .icon-heart-empty-fa {
    opacity: 1;
}
.single-portfolio .button-love .icon-heart-fa {
    opacity: 0;
}
.single-portfolio .button-love .label {
    color: #a8a8a8;
    margin-left: 5px;
}
.single-portfolio .author-date {
    float: left;
    color: #a8a8a8;
    font-size: 14px;
    line-height: 21px;
}
.single-portfolio .author-date .author,
.single-portfolio .author-date .date {
    margin-right: 10px;
}
.single-portfolio .author-date a {
    color: #a8a8a8;
    text-decoration: none;
}
.single-portfolio .post-header .category {
    float: right;
    position: relative;
    color: #a8a8a8;
    font-size: 14px;
}
.single-portfolio .post-header .cat-btn {
    cursor: pointer;
}
.single-portfolio .post-header .category .cat-wrapper {
    position: absolute;
    right: 0;
    top: 100%;
    padding-top: 8px;
    display: none;
    z-index: 21;
}
.single-portfolio .post-header .category:hover .cat-wrapper {
    display: block;
}
.single-portfolio .post-header .category .cat-wrapper ul {
    padding: 7px;
    min-width: 70px;
    background: #f9f9f9;
    list-style: none;
    margin: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.single-portfolio .post-header .category .cat-wrapper ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.single-portfolio .post-header .category .cat-wrapper ul li:last-child {
    border-bottom: 0;
}
.single-portfolio .post-header .category .cat-wrapper ul li a {
    display: block;
    text-align: center;
    padding: 1px 5px;
    color: #8b8b8b;
    text-decoration: none;
}
.single-portfolio .post-header .category .cat-wrapper ul li a:hover {
    color: #5f5f5f;
    background: rgba(255, 255, 255, 0.8);
}

/* Product image + spec columns */
.single-portfolio .mcb-wrap-inner {
    overflow: hidden;
    padding-top: 20px;
}
.single-portfolio .column.two-third {
    float: left;
    width: 64.4%;
    margin: 0 0 40px;
}
.single-portfolio .column.one-third {
    float: right;
    width: 31.3%;
    margin: 0 0 40px;
}
.single-portfolio .column_image .image_frame.has_border {
    border: 8px solid #f8f8f8;
    display: block;
    line-height: 0;
    text-align: center;
    margin: 0;
}
.single-portfolio .column_image .image_frame img {
    display: block;
    width: 100%;
    height: auto;
}
.single-portfolio .column_attr h5 {
    color: #35303f;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    margin: 0 0 5px;
}

/* Related posts */
.single-portfolio .section-post-related {
    padding: 30px 0 0;
}
.single-portfolio .section-post-related h4 {
    color: #35303f;
    font-size: 22px;
    font-weight: 400;
    line-height: 26px;
    margin: 0 0 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 30px;
}
.single-portfolio .section-related-ul {
    overflow: hidden;
}
.single-portfolio .section-related-ul.col-3 .post-related {
    float: left;
    width: 30.6%;
    margin: 0 4% 20px 0;
}
.single-portfolio .section-related-ul.col-3 .post-related:nth-child(3n) {
    margin-right: 0;
}
.single-portfolio .post-related .image_frame {
    border: 8px solid #f8f8f8;
    display: block;
    line-height: 0;
    margin: 0 0 12px;
}
.single-portfolio .post-related .image_wrapper {
    position: relative;
    overflow: hidden;
}
.single-portfolio .post-related .image_wrapper img {
    display: block;
    width: 100%;
    height: auto;
}
.single-portfolio .post-related .date_label {
    color: #a8a8a8;
    font-size: 13px;
    margin-bottom: 6px;
}
.single-portfolio .post-related .desc h4 {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 10px;
}
.single-portfolio .post-related .desc h4 a {
    color: #35303f;
    text-decoration: none;
}
.single-portfolio .post-related .hr_color {
    border: 0;
    height: 1px;
    background: #ff006c;
    width: 40%;
    margin: 0 0 15px 30px;
}
.single-portfolio .post-related .button {
    display: inline-block;
    padding: 0;
    border: 0;
    color: #838383;
    font-size: 13px;
    text-decoration: none;
}
.single-portfolio .post-related .button .button_icon {
    display: inline-block;
    background: #ececec;
    padding: 8px 10px;
    border-radius: 3px 0 0 3px;
    color: #838383;
}
.single-portfolio .post-related .button .button_label {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ececec;
    border-left: 0;
    border-radius: 0 3px 3px 0;
    color: #838383;
}

/* ==========================================================================
   FIXED PREV/NEXT PORTFOLIO NAV ARROWS (.fixed-nav) — matches BeTheme online
   Body-level, fixed to viewport edges; desc panel slides out on hover.
   ========================================================================== */
#Content .fixed-nav { display: none; }
.fixed-nav {
    position: fixed;
    bottom: 40px;
    height: 80px;
    z-index: 90;
    text-decoration: none;
}
.fixed-nav.fixed-nav-prev { left: 0; margin-left: 250px; }
.fixed-nav.fixed-nav-next { right: 0; }
.fixed-nav .arrow {
    display: block;
    width: 35px;
    height: 80px;
    font-size: 15px;
    position: relative;
    z-index: 92;
    color: #fff;
    line-height: 80px;
    text-align: center;
    background: #ff006c;
}
.fixed-nav .photo {
    height: 80px;
    width: 80px;
    position: relative;
    z-index: 92;
    overflow: hidden;
    line-height: 0;
    background-color: #000;
}
.fixed-nav .photo img { width: 80px; height: 80px; display: block; }
.fixed-nav .desc {
    width: 190px;
    padding: 6px 15px;
    min-height: 68px;
    background: #fff;
    z-index: 91;
    box-sizing: border-box;
}
.fixed-nav .desc h6 {
    margin: 0 0 3px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: #35303f;
}
.fixed-nav .desc .date { color: #a8a8a8; font-size: 12px; }
.fixed-nav .desc i { display: inline-block; margin-right: 2px; }
.fixed-nav-prev .arrow,
.fixed-nav-prev .photo,
.fixed-nav-prev .desc { float: left; }
.fixed-nav-prev .desc { margin-left: -335px; }
.fixed-nav-prev:hover .desc { margin-left: 0; }
.fixed-nav-next .arrow,
.fixed-nav-next .photo,
.fixed-nav-next .desc { float: right; }
.fixed-nav-next .desc { margin-right: -335px; }
.fixed-nav-next:hover .desc { margin-right: 0; }
.fixed-nav .photo,
.fixed-nav .desc { transition: 0.3s ease-in-out; }
.fixed-nav.fixed-nav-next { margin-right: 10px; }

/* Match online: below 1430px only the arrow tab shows; photo slides out on
   hover. Below 768px the fixed nav is hidden entirely. */
@media only screen and (max-width: 1430px) {
    .fixed-nav-prev .photo { position: static; margin-left: -115px; }
    .fixed-nav-prev:hover .photo { margin-left: 0; }
    .fixed-nav-next .photo { position: static; margin-right: -115px; }
    .fixed-nav-next:hover .photo { margin-right: 0; }
}
@media only screen and (max-width: 767px) {
    .fixed-nav { display: none !important; }
}

/* Hero Slideshow Animation */
@keyframes heroFade {
    0%, 20% { opacity: 1; }
    25%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

/* ==========================================================================
   PRODUCTS PAGE (/products/) — filter dropdown + 3-col list-style grid + pager
   ========================================================================== */
/* --- Filter bar --- */
#Filters.isotope-filters { margin-bottom: 0; }
#Filters .filters_buttons {
    list-style: none;
    margin: 0;
    padding: 15px 0;
    text-align: center;
    overflow: hidden;
}
#Filters .filters_buttons li {
    display: list-item;
    float: left;
    list-style: none;
    line-height: 20px;
}
#Filters .filters_buttons li.label { color: #a8a8a8; font-size: 14px; font-weight: 400; margin-right: 15px; }
#Filters .filters_buttons li.categories a.open,
#Filters .filters_buttons li.reset a.close {
    color: #ff006c;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
}
#Filters .filters_buttons li.categories a.open i { margin: 0 6px; }
#Filters .filters_buttons li.reset { float: right; }
#Filters .filters_buttons li.reset a.close i { margin-right: 4px; }

#Filters i::before {
    font-family: 'mfn-icons';
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}
.icon-docs::before   { content: '\e85f'; }
.icon-cancel::before { content: '\e82a'; }

/* Category dropdown list — hidden until toggled open */
#Filters .filters_wrapper { display: none; text-align: center; padding: 0; margin: 0; }
#Filters.open .filters_wrapper { display: block; }
#Filters .filters_wrapper ul.categories {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;
    text-align: center;
}
#Filters .filters_wrapper ul.categories li { display: inline-block; float: none; margin: 0; padding: 0; }
#Filters .filters_wrapper ul.categories li a {
    display: inline-block;
    color: #ff006c;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 14px 25px;
    text-decoration: none;
}
#Filters .filters_wrapper ul.categories li.close a { color: #858585; letter-spacing: 0; }

/* --- 3-column list-style grid --- */
ul.portfolio_group.products_list_style {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 2%;
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.portfolio_group.products_list_style li.portfolio-item {
    position: relative;
    width: auto !important;
    background: #fff;
    overflow: visible;
}
ul.portfolio_group.products_list_style .image_frame {
    border: 8px solid #f8f8f8;
    background: transparent;
    box-shadow: none;
    margin: 0;
}
ul.portfolio_group.products_list_style .image_frame .image_wrapper { position: relative; overflow: hidden; }
ul.portfolio_group.products_list_style .image_frame img { display: block; width: 100%; height: auto; }
ul.portfolio_group.products_list_style .image_frame .mask {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0); z-index: 1; transition: background .3s;
}
ul.portfolio_group.products_list_style .image_links {
    position: absolute; top: 50%; left: 0; width: 100%;
    transform: translateY(-50%); text-align: center;
    opacity: 0; transition: opacity .3s; z-index: 2;
}
ul.portfolio_group.products_list_style .image_wrapper:hover .image_links { opacity: 1; }
ul.portfolio_group.products_list_style .image_wrapper:hover .mask { background: rgba(0,0,0,0.35); }
ul.portfolio_group.products_list_style .image_links a { color: #fff; font-size: 22px; margin: 0 6px; text-decoration: none; }
ul.portfolio_group.products_list_style .image_links i::before {
    font-family: 'mfn-icons'; font-style: normal; font-weight: normal; display: inline-block; line-height: 1;
}

ul.portfolio_group.products_list_style .desc { padding: 20px; background: #fff; text-align: left; }
ul.portfolio_group.products_list_style .desc .title_wrapper { position: relative; padding: 0 43px 0 0; }
ul.portfolio_group.products_list_style .desc h5.entry-title {
    margin: 0;
    font: 400 16px/22px Arial, Arial, Tahoma, sans-serif;
    text-transform: none;
}
ul.portfolio_group.products_list_style .desc h5.entry-title a { color: #35303f; text-decoration: none; }
ul.portfolio_group.products_list_style .button-love {
    position: absolute;
    top: 0;
    right: 0;
}
ul.portfolio_group.products_list_style .button-love .mfn-love {
    position: relative;
    display: inline-block;
    padding-left: 24px;
    height: 21px;
    color: #ff006c;
    font-size: 14px;
    text-decoration: none;
}
ul.portfolio_group.products_list_style .button-love .icons-wrapper i {
    position: absolute; top: 0; left: 0; height: 21px; font-size: 16px; line-height: 21px;
}
ul.portfolio_group.products_list_style .button-love i::before {
    font-family: 'mfn-icons'; font-style: normal; font-weight: normal; display: inline-block; line-height: 1;
}
ul.portfolio_group.products_list_style .button-love .icon-heart-empty-fa { opacity: 1; }
ul.portfolio_group.products_list_style .button-love .icon-heart-fa { opacity: 0; }
ul.portfolio_group.products_list_style .button-love .label { color: #a8a8a8; font-size: 14px; font-weight: 400; margin-left: 5px; }

/* --- Pager --- */
.pager_wrapper { margin-top: 30px; }
.pager { text-align: center; border-top: 0; padding: 0; overflow: visible; }
.pager .pages { display: inline-block; text-align: center; }
.pager .pages a,
.pager .pages span {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    margin: 0 1px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    color: #a8a8a8;
    background: transparent;
}
.pager .pages a:hover { color: #ff006c; }
.pager .pages span.current,
.pager .pages a.active {
    color: #fff;
    background: #ff006c;
}
.pager .next_page {
    color: #ff006c;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    margin-left: 12px;
    vertical-align: middle;
}
.pager .next_page i { margin-left: 5px; }
.pager .next_page i::before {
    font-family: 'mfn-icons'; font-style: normal; font-weight: normal; display: inline-block; line-height: 1;
}

/* ==========================================================================
   CONTENT PAGES (About / Team / Testimonials / Contact)
   ========================================================================== */
/* Pink full-width banner heading (Team, Testimonials) */
.content-banner { background-color: #ff006c; padding: 80px 0 10px; min-height: 0; }
.content-banner h2 { color: #fff !important; font-size: 42px !important; font-weight: 400; text-align: center; }

/* BeTheme column alignment helpers (used by content-page column_attr) */
.column_attr.align_center { text-align: center; }
.column_attr.align_left { text-align: left; }
.column_attr.align_right { text-align: right; }

/* --- About page --- */
.page-id-2212 .section.mcb-section { min-height: 0; }
.page-id-2212 .column_attr h2 { color: #35303f !important; font-style: italic; }
.page-id-2212 .column_attr h3 { color: #fff !important; }
.page-id-2212 .column_attr { color: #848289; }
.button.button_size_2.button_theme {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    color: #ff006c;
    background: transparent;
    border: 2px solid #ff006c;
    border-radius: 3px;
    padding: 11px 21px;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    line-height: 1;
    transition: all .2s;
}
.button.button_size_2.button_theme:hover { background: #ff006c; color: #fff; }
.button.button_size_2 .button_label { color: inherit; }

/* --- Team page --- */
.page-id-2620 .section.mcb-section { min-height: 0; }
.team-slideshow {
    position: relative;
    width: 100%;
    max-width: 1196px;
    margin: 0 auto;
    overflow: hidden;
}
.team-slides { list-style: none; margin: 0; padding: 0; position: relative; }
.team-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity .8s ease;
    z-index: 1;
}
.team-slide.active { position: relative; opacity: 1; z-index: 2; }
.team-slide img { display: block; width: 100%; height: auto; }
.team-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    text-decoration: none;
    opacity: 0;
    transition: opacity .3s;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.team-slideshow:hover .team-arrow { opacity: 1; }
.team-prev { left: 20px; }
.team-next { right: 20px; }
.team-arrow i::before {
    font-family: 'mfn-icons'; font-style: normal; font-weight: normal; display: inline-block; line-height: 1;
}

/* --- Testimonials page --- */
.page-id-2286 .section.mcb-section { min-height: 0; }
/* Constrain content to the centered 1220px wrap (matches online inset) */
.testimonials-section .section_wrapper {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 0 50px;
    overflow: hidden;
}
.testimonials-section .wrap { width: 789px; max-width: 100%; margin: 0 0 40px 0; float: left; clear: both; }
.testimonials-section .wrap.testimonial-right { float: right; }
.testimonials-section h4 { color: #35303f !important; font-size: 22px !important; font-weight: 400; margin-bottom: 15px; }
.testimonials-section p.big { font-size: 16px; line-height: 28px; color: #848289; margin: 0; }
.testimonials-section p.quote-left { border-left: 1px solid #d9d9d9; padding-left: 35px; }
.testimonials-section p.quote-right { border-right: 1px solid #d9d9d9; padding-right: 35px; text-align: right; }
.testimonials-section .align_right h4 { text-align: right; }

/* --- Contact page --- */
/* Online: contact section is FULL-SCREEN (100vh) and the footer is HIDDEN. */
.page-id-2216 #Footer { display: none; }
.page-id-2216 .section.mcb-section { min-height: 0; }
.page-id-2216 .section.mcb-section.contact-section { min-height: 100vh; }
/* Online = BeTheme "highlight-right": full-cover photo + a white panel on the
   right half (::after), with the contact text sitting on top of that panel. */
.contact-section {
    position: relative;
    min-height: 100vh;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    padding: 0 !important;
    overflow: hidden;
}
.contact-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    z-index: 1;
}
.contact-section .section_wrapper { position: relative; z-index: 2; }
.contact-section .wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 40px 0;
}
.contact-section .mcb-wrap-inner { width: 100%; }
.contact-section .contact-info {
    width: 50%;
    float: right;
    box-sizing: border-box;
    padding: 0 60px 0 54px;
    margin: 0;
}
.contact-section h3 {
    color: #35303f !important;
    font-family: Arial, Arial, Tahoma, sans-serif !important;
    font-size: 30px !important;
    font-weight: 400;
    line-height: 32px;
    margin: 0 0 30px;
}
.contact-section h4 { color: #35303f; font-size: 22px; font-weight: 400; line-height: 26px; margin: 0 0 15px; }
.contact-section h4.themecolor,
.contact-section h4.themecolor a,
.contact-section .themecolor { color: #ff006c; }
.contact-section h4.themecolor a { text-decoration: none; }
.contact-section p.big { font-size: 16px; line-height: 28px; color: #848289; margin: 0 0 15px; }
.contact-block { margin-bottom: 40px; }
.contact-block:last-child { margin-bottom: 0; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    body { padding-left: 0; }
    #Header_creative { position: relative; width: 100%; height: auto; }
    ul.portfolio_grid { grid-template-columns: repeat(2, 274px); }
    ul.portfolio_group.products_list_style { grid-template-columns: repeat(2, 1fr); }
    .contact-section { background: none !important; }
    .contact-section .contact-info { width: 100%; float: none; }
    .testimonials-section .wrap { max-width: 100%; float: none; }
}

@media (max-width: 600px) {
    ul.portfolio_grid { grid-template-columns: 1fr; }
    ul.portfolio_group.products_list_style { grid-template-columns: 1fr; }
}
