/*
Theme Name:        Backpacker International Theme
Theme URI:         https://backpackerinternational.com
Description:       A premium, modern WordPress Block Theme for travel blog communities and WooCommerce e-commerce. Fully compatible with Elementor Page Builder.
Version:           1.0.0
Author:            Backpacker International Team & AI Coder
Author URI:        https://backpackerinternational.com
Tags:              full-site-editing, block-themes, custom-colors, custom-typography, ecommerce, travel
Text Domain:       backpacker-international-theme
Tested up to:      7.0
Requires at least: 6.4
Requires PHP:      7.4
License:           GNU General Public License v2.0 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
*/

/*
This is a Block Theme. Style overrides are primarily configured in theme.json.
However, you can add custom style overrides in this file if needed.
*/


@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap'); :root { --primary: #82AF7C; --secondary: #22BF98; --title: #111111; --para: #777777; --bg-soft: #FAF7F6; --white: #FFFFFF; } .bp-home * { box-sizing: border-box; margin: 0; padding: 0; } .bp-home { font-family: 'Work Sans', sans-serif; color: var(--para); line-height: 1.6; } .bp-home h1,.bp-home h2,.bp-home h3,.bp-home h4,.bp-home h5,.bp-home h6 { font-family: 'Playfair Display', serif; color: var(--title); font-weight: 400; } .bp-home a { color: var(--title); text-decoration: none; transition: color 0.3s ease; } .bp-home a:hover { color: var(--primary); } .bp-home img { max-width: 100%; height: auto; } .bp-hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; padding: 0 0 20px; } .bp-hero-slide { position: relative; border-radius: 16px; overflow: hidden; height: 520px; background-size: cover; background-position: center; } .bp-hero-slide::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 70%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); } .bp-hero-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px; z-index: 2; } .bp-hero-info .bp-tag { display: inline-block; background: var(--primary); color: #fff; padding: 4px 16px; border-radius: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-right: 10px; } .bp-hero-info .bp-date { color: rgba(255,255,255,0.7); font-size: 13px; } .bp-hero-info h2 { color: #fff; font-size: 32px; line-height: 1.3; margin-top: 16px; font-family: 'Playfair Display', serif; } .bp-hero-info h2 a { color: #fff; } .bp-hero-info h2 a:hover { color: var(--primary); } .bp-side-cards { display: flex; flex-direction: column; gap: 20px; } .bp-side-card { background: var(--white); border-radius: 16px; overflow: hidden; flex: 1; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 24px; position: relative; } .bp-side-card .bp-sc-tag { color: var(--secondary); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; } .bp-side-card .bp-sc-date { color: var(--para); font-size: 12px; margin-left: 12px; } .bp-side-card h3 { font-size: 20px; line-height: 1.4; margin: 12px 0 16px; font-family: 'Playfair Display', serif; } .bp-side-card .bp-sc-img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; } .bp-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } .bp-section { padding: 80px 0; } .bp-section-title { font-size: 42px; text-align: center; margin-bottom: 40px; font-family: 'Playfair Display', serif; font-weight: 400; } .bp-dest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; text-align: center; } .bp-dest-card { transition: transform 0.3s ease; } .bp-dest-card:hover { transform: translateY(-8px); } .bp-dest-card img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 16px; display: block; border-radius: 50%; background: var(--bg-soft); padding: 10px; } .bp-dest-card h4 { font-size: 20px; font-family: 'Playfair Display', serif; font-weight: 400; } .bp-split { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; } .bp-split h2 { flex: 1; min-width: 280px; font-size: 42px; line-height: 1.2; } .bp-split p { flex: 1; min-width: 280px; font-size: 16px; color: var(--para); line-height: 1.8; } .bp-travel-slider { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 0 30px; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .bp-travel-slider::-webkit-scrollbar { display: none; } .bp-travel-card { flex: 0 0 320px; scroll-snap-align: start; position: relative; border-radius: 16px; overflow: hidden; height: 420px; background-size: cover; background-position: center; } .bp-travel-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); } .bp-travel-card .bp-tc-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; z-index: 2; } .bp-travel-card .bp-tc-tag { display: inline-block; background: rgba(255,255,255,0.15); color: #fff; padding: 4px 14px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-right: 8px; backdrop-filter: blur(4px); } .bp-travel-card .bp-tc-date { color: rgba(255,255,255,0.6); font-size: 12px; } .bp-travel-card h3 { color: #fff; font-size: 20px; margin-top: 14px; line-height: 1.35; font-family: 'Playfair Display', serif; } .bp-travel-card h3 a { color: #fff; } .bp-travel-card h3 a:hover { color: var(--primary); } .bp-main-sidebar { display: grid; grid-template-columns: 3fr 1fr; gap: 40px; } .bp-sidebar-widget { background: var(--white); border-radius: 16px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 24px; } .bp-sidebar-widget .bp-author-img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 16px; } .bp-sidebar-widget h3 { font-size: 22px; margin-bottom: 12px; font-family: 'Playfair Display', serif; } .bp-tp-item { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; } .bp-tp-item:last-child { margin-bottom: 0; } .bp-tp-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; flex-shrink: 0; } .bp-tp-item h6 { font-size: 15px; line-height: 1.4; margin-bottom: 4px; font-family: 'Playfair Display', serif; font-weight: 400; } .bp-tp-item span { font-size: 12px; color: var(--para); } .bp-featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; } .bp-fg-card { background: var(--white); overflow: hidden; border: 1px solid #f0f0f0; transition: box-shadow 0.3s ease; } .bp-fg-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); z-index: 2; } .bp-fg-info { padding: 24px; } .bp-fg-info .bp-fg-tag { color: var(--secondary); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; } .bp-fg-info .bp-fg-date { color: var(--para); font-size: 12px; margin-left: 10px; } .bp-fg-info h3 { font-size: 20px; line-height: 1.35; margin: 12px 0 0; font-family: 'Playfair Display', serif; font-weight: 400; } .bp-fg-card .bp-fg-img { width: 100%; height: 220px; object-fit: cover; display: block; } .bp-newsletter { background: var(--bg-soft); text-align: center; padding: 80px 24px; } .bp-newsletter h2 { font-size: 36px; margin-bottom: 16px; font-family: 'Playfair Display', serif; } .bp-newsletter p { color: var(--para); margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; } .bp-nl-form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; } .bp-nl-form input { flex: 1; padding: 14px 20px; border: 1px solid #ddd; border-radius: 6px 0 0 6px; font-family: 'Work Sans', sans-serif; font-size: 15px; outline: none; } .bp-nl-form input:focus { border-color: var(--primary); } .bp-nl-form button { padding: 14px 28px; background: var(--primary); color: #fff; border: none; border-radius: 0 6px 6px 0; font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.3s; } .bp-nl-form button:hover { background: var(--secondary); } .bp-colla-banner { display: flex; align-items: center; gap: 40px; background: linear-gradient(135deg, #f8faf7, #edf5eb); border-radius: 20px; padding: 50px; flex-wrap: wrap; } .bp-colla-banner img { width: 160px; height: 160px; object-fit: contain; border-radius: 16px; } .bp-colla-info { flex: 1; min-width: 280px; } .bp-colla-info h3 { font-size: 28px; margin-bottom: 10px; } .bp-colla-info p { font-size: 15px; color: var(--para); line-height: 1.7; margin-bottom: 20px; } .bp-colla-features { display: flex; gap: 20px; flex-wrap: wrap; } .bp-colla-feat { display: flex; align-items: center; gap: 8px; background: #fff; padding: 10px 18px; border-radius: 50px; font-size: 13px; font-weight: 500; color: var(--title); box-shadow: 0 2px 8px rgba(0,0,0,0.05); } .bp-insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; } .bp-insta-item { position: relative; overflow: hidden; aspect-ratio: 1; } .bp-insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; } .bp-insta-item:hover img { transform: scale(1.1); } .bp-footer { background: var(--white); padding: 60px 0 30px; border-top: 1px solid #f0f0f0; } .bp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } .bp-footer h4 { font-size: 18px; margin-bottom: 20px; font-family: 'Playfair Display', serif; } .bp-footer ul { list-style: none; } .bp-footer li { margin-bottom: 10px; } .bp-footer li a { color: var(--para); font-size: 14px; } .bp-footer li a:hover { color: var(--primary); } .bp-footer-bottom { text-align: center; padding-top: 24px; margin-top: 40px; border-top: 1px solid #f0f0f0; font-size: 13px; color: var(--para); } .bp-btn { display: inline-block; padding: 12px 32px; border: 1px solid var(--title); color: var(--title); font-size: 14px; font-weight: 500; transition: all 0.3s; letter-spacing: 1px; } .bp-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; } @media (max-width: 991px) { .bp-hero-grid { grid-template-columns: 1fr; } .bp-hero-slide { height: 400px; } .bp-side-cards { flex-direction: row; } .bp-main-sidebar { grid-template-columns: 1fr; } .bp-featured-grid { grid-template-columns: repeat(2, 1fr); } .bp-footer-grid { grid-template-columns: 1fr 1fr; } .bp-split h2 { font-size: 32px; } } @media (max-width: 767px) { .bp-hero-slide { height: 320px; } .bp-hero-info h2 { font-size: 22px; } .bp-side-cards { flex-direction: column; } .bp-featured-grid { grid-template-columns: 1fr; } .bp-section-title { font-size: 28px; } .bp-footer-grid { grid-template-columns: 1fr; } .bp-insta-grid { grid-template-columns: repeat(3, 1fr); } .bp-colla-banner { padding: 30px; } .bp-dest-grid { grid-template-columns: repeat(3, 1fr); } } #site-header { display: none !important; } .bp-sticky-header { position: sticky; top: 0; left: 0; right: 0; z-index: 9999; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02); transition: all 0.3s ease; } .bp-header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; } .bp-logo a { display: flex; align-items: center; gap: 12px; font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--title); } .bp-logo-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; } .bp-logo-text { font-family: 'Playfair Display', serif; font-weight: 700; } .bp-nav { display: flex; gap: 30px; } .bp-nav-link { font-family: 'Work Sans', sans-serif; font-size: 15px; font-weight: 500; color: var(--para); position: relative; padding: 6px 0; } .bp-nav-link:hover, .bp-nav-link.active { color: var(--primary); } .bp-nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; } .bp-nav-link:hover::after, .bp-nav-link.active::after { width: 100%; } .bp-header-actions { display: flex; align-items: center; } .bp-header-btn { display: inline-block; padding: 8px 20px; background: var(--primary); color: #ffffff !important; border-radius: 6px; font-family: 'Work Sans', sans-serif; font-size: 14px; font-weight: 600; box-shadow: 0 4px 10px rgba(130, 175, 124, 0.2); transition: all 0.3s ease; } .bp-header-btn:hover { background: var(--secondary); box-shadow: 0 4px 12px rgba(34, 191, 152, 0.3); } @media (max-width: 767px) { .bp-header-container { flex-direction: column; gap: 10px; padding: 10px 15px; align-items: center; } .bp-nav { gap: 15px; width: 100%; justify-content: center; overflow-x: auto; padding-bottom: 5px; } .bp-nav-link { font-size: 13px; white-space: nowrap; } .bp-header-actions { display: none; } }
/* Gutenberg Query Loop CSS Overrides to preserve design */
.bp-home .wp-block-query {
    margin: 0;
    padding: 0;
}
.bp-home .wp-block-post-template {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.bp-home .wp-block-post-template li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.bp-hero-grid > .wp-block-query {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.bp-hero-grid > .wp-block-query > .wp-block-post-template {
    height: 100%;
}
.bp-hero-grid > .wp-block-query > .wp-block-post-template > li {
    height: 100%;
}
.bp-side-cards > .wp-block-query {
    height: 100%;
}
.bp-side-cards > .wp-block-query > .wp-block-post-template {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}
.bp-side-cards > .wp-block-query > .wp-block-post-template > li {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bp-travel-slider {
    display: block !important;
}
.bp-travel-slider > .wp-block-post-template {
    display: flex;
    gap: 20px;
    width: 100%;
}
.bp-travel-slider > .wp-block-post-template > li {
    flex: 0 0 320px;
    width: 320px;
    height: 420px;
}
.bp-featured-grid {
    display: block !important;
}
.bp-featured-grid > .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
@media (max-width: 991px) {
    .bp-featured-grid > .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .bp-featured-grid > .wp-block-post-template {
        grid-template-columns: 1fr;
    }
}
.bp-insta-grid {
    display: block !important;
}
.bp-insta-grid > .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}
@media (max-width: 767px) {
    .bp-insta-grid > .wp-block-post-template {
        grid-template-columns: repeat(3, 1fr);
    }
}
.bp-insta-item .wp-block-post-featured-image,
.bp-insta-item .wp-block-post-featured-image a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}
.bp-insta-item .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.bp-insta-item:hover .wp-block-post-featured-image img {
    transform: scale(1.1);
}


/* Category badge link fixes */
.bp-home .bp-tag a,
.bp-home .bp-sc-tag a,
.bp-home .bp-tc-tag a,
.bp-home .bp-fg-tag a {
    color: inherit !important;
    text-decoration: none !important;
}