/* ================================================================
   Blogger Partner — Frontend CSS v4.0.0
   ================================================================ */

/* ── RESET / BASE ─────────────────────────────────────────────── */
.bp-carousel-wrapper,
.bp-gallery-wrapper,
.bp-accordion-wrapper,
.bp-hotspot-wrapper,
.bp-timeline,
.bp-ba-container {
    box-sizing: border-box;
}

*, *::before, *::after { box-sizing: inherit; }

/* ================================================================
   MEDIA CAROUSEL
   ================================================================ */
.bp-carousel-wrapper { position: relative; }

.bp-carousel-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-carousel-slide img,
.bp-carousel-slide video,
.bp-carousel-slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bp-carousel-slide iframe { border: 0; }

/* Overlay styles */
.bp-slide-overlay { position: absolute; inset: 0; pointer-events: none; }
.bp-overlay-none  { display: none; }
.bp-overlay-bottom { background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%); }
.bp-overlay-full   { background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 100%); }
.bp-overlay-color  { /* color set by control */ }

/* Caption */
.bp-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    z-index: 2;
}

.bp-slide-title {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    text-decoration: none;
    line-height: 1.3;
}

.bp-slide-desc {
    margin: 0;
    font-size: .95rem;
    color: rgba(255,255,255,.85);
    line-height: 1.5;
}

/* Arrows */
.bp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,.4);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s, transform .2s;
    color: #fff;
}

.bp-arrow:hover { background: rgba(0,0,0,.7); }
.bp-arrow-prev  { left: 14px; }
.bp-arrow-next  { right: 14px; }
.bp-arrow svg   { width: 22px; height: 22px; stroke: currentColor; fill: none; }

/* Video cover / play button */
.bp-video-cover {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.bp-video-cover img { width: 100%; height: 100%; object-fit: cover; }

.bp-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: 0;
    border: 0;
    cursor: pointer;
    transition: transform .2s;
}
.bp-play-btn:hover { transform: translate(-50%,-50%) scale(1.12); }
.bp-play-btn svg   { width: 72px; height: 72px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }

/* ================================================================
   ADVANCED GALLERY
   ================================================================ */
.bp-gallery-wrapper {}

/* Filters */
.bp-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    align-items: center;
}

.bp-filter-btn {
    padding: 7px 18px;
    border: 1px solid #ddd;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: .9rem;
    transition: background .2s, color .2s, border-color .2s;
    line-height: 1.4;
}
.bp-filter-btn:hover  { background: #eee; }
.bp-filter-btn.active { background: #000; color: #fff; border-color: #000; }

/* Grid */
.bp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bp-layout-masonry { align-items: start; }

/* Items */
.bp-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

.bp-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.bp-gallery-item a {
    display: block;
    text-decoration: none;
}

/* Hover effects */
.bp-effect-zoom:hover img           { transform: scale(1.08); }
.bp-effect-slide .bp-gallery-overlay{ transform: translateY(100%); transition: transform .35s ease; }
.bp-effect-slide:hover .bp-gallery-overlay { transform: translateY(0); }
.bp-effect-fade .bp-gallery-overlay { opacity: 0; transition: opacity .3s; }
.bp-effect-fade:hover .bp-gallery-overlay  { opacity: 1; }

/* Flip effect */
.bp-effect-flip { perspective: 800px; }
.bp-effect-flip .bp-gallery-inner {
    transform-style: preserve-3d;
    transition: transform .5s ease;
    position: relative;
}
.bp-effect-flip:hover .bp-gallery-inner { transform: rotateY(180deg); }
.bp-effect-flip .bp-gallery-overlay {
    backface-visibility: hidden;
    transform: rotateY(180deg);
    position: absolute;
    inset: 0;
    opacity: 1;
}

/* Overlay */
.bp-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .3s;
}

.bp-effect-zoom .bp-gallery-overlay,
.bp-effect-none .bp-gallery-overlay { opacity: 0; }
.bp-effect-zoom:hover .bp-gallery-overlay,
.bp-effect-none:hover .bp-gallery-overlay { opacity: 1; }

.bp-overlay-inner { text-align: center; color: #fff; }
.bp-lb-icon svg   { stroke: #fff; width: 32px; height: 32px; }
.bp-overlay-caption {
    display: block;
    margin-top: 8px;
    font-size: .85rem;
    color: rgba(255,255,255,.9);
}

/* Hide filtered items */
.bp-gallery-item.bp-hidden {
    display: none;
}

/* ── LIGHTBOX ──────────────────────────────────────────────────── */
.bp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-lightbox[hidden] { display: none !important; }

.bp-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.92);
    cursor: zoom-out;
}

.bp-lb-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bp-lb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.bp-lb-caption {
    color: rgba(255,255,255,.8);
    margin-top: 12px;
    font-size: .9rem;
    text-align: center;
}

.bp-lb-close,
.bp-lb-prev,
.bp-lb-next {
    position: absolute;
    z-index: 2;
    background: rgba(255,255,255,.15);
    border: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background .2s;
}
.bp-lb-close:hover,
.bp-lb-prev:hover,
.bp-lb-next:hover { background: rgba(255,255,255,.3); }

.bp-lb-close { top: 16px; right: 16px; }
.bp-lb-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.bp-lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.bp-lb-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    z-index: 2;
}

/* ================================================================
   ACCORDION / TABS
   ================================================================ */

/* Accordion */
.bp-acc-items { display: flex; flex-direction: column; }

.bp-acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f5f5f5;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: background .2s, color .2s;
}

.bp-acc-header.bp-icon-right { justify-content: space-between; }
.bp-acc-title { flex: 1; }

.bp-acc-toggle-icon {
    flex-shrink: 0;
    transition: transform .3s;
}
.bp-acc-item.is-open .bp-acc-toggle-icon { transform: rotate(180deg); }
.bp-icon-open  { display: none; }
.bp-icon-closed { display: block; }
.bp-acc-item.is-open .bp-icon-open    { display: block; }
.bp-acc-item.is-open .bp-icon-closed  { display: none; }

.bp-acc-body {
    overflow: hidden;
    transition: height .3s ease;
}
.bp-acc-body[hidden] { display: none; }
.bp-acc-body-inner { padding: 20px; }

/* Tabs top */
.bp-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0;
    border-bottom: 2px solid #eee;
}

.bp-tab-btn {
    padding: 10px 20px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 500;
    color: #666;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
    display: flex;
    align-items: center;
    gap: 7px;
}
.bp-tab-btn:hover  { color: #000; }
.bp-tab-btn.is-open { color: #000; border-bottom-color: #000; font-weight: 700; }

/* Tabs left/right */
.bp-mode-tabs.bp-tab-left  .bp-tabs-nav,
.bp-mode-tabs.bp-tab-right .bp-tabs-nav {
    flex-direction: column;
    border-bottom: 0;
    gap: 2px;
}
.bp-mode-tabs.bp-tab-left .bp-tab-btn,
.bp-mode-tabs.bp-tab-right .bp-tab-btn {
    border-bottom: 0;
    border-right: 2px solid transparent;
    margin-bottom: 0;
    text-align: left;
}
.bp-mode-tabs.bp-tab-left .bp-tab-btn.is-open,
.bp-mode-tabs.bp-tab-right .bp-tab-btn.is-open { border-right-color: #000; }

.bp-mode-tabs.bp-tab-left,
.bp-mode-tabs.bp-tab-right {
    display: flex;
    gap: 20px;
}
.bp-mode-tabs.bp-tab-right { flex-direction: row-reverse; }
.bp-mode-tabs.bp-tab-left  .bp-tabs-nav,
.bp-mode-tabs.bp-tab-right .bp-tabs-nav { flex-shrink: 0; width: 200px; }
.bp-mode-tabs.bp-tab-left  .bp-acc-items,
.bp-mode-tabs.bp-tab-right .bp-acc-items { flex: 1; }

/* Tab panels: show/hide */
.bp-mode-tabs .bp-acc-item { display: none; }
.bp-mode-tabs .bp-acc-item.is-open { display: block; }

/* ================================================================
   IMAGE HOTSPOT
   ================================================================ */
.bp-hotspot-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.bp-hotspot-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bp-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.bp-hotspot-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #e74c3c;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.bp-hotspot-btn:hover { transform: scale(1.15); }

/* Pulse ring */
.bp-pulse .bp-hotspot-btn::before,
.bp-pulse .bp-hotspot-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    opacity: .5;
    animation: bp-pulse 2s ease-out infinite;
}
.bp-pulse .bp-hotspot-btn::after { animation-delay: 1s; }

@keyframes bp-pulse {
    0%   { transform: scale(1); opacity: .5; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Tooltip */
.bp-tooltip {
    position: absolute;
    z-index: 100;
    width: 220px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    transition: opacity .25s, transform .25s;
    opacity: 0;
    pointer-events: none;
}
.bp-tooltip.is-visible { opacity: 1; pointer-events: auto; }
.bp-tooltip[hidden]    { display: none; }

/* Tooltip positions */
.bp-tooltip-top    { bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); }
.bp-tooltip-bottom { top:    calc(100% + 12px); left: 50%; transform: translateX(-50%); }
.bp-tooltip-left   { right:  calc(100% + 12px); top: 50%;  transform: translateY(-50%); }
.bp-tooltip-right  { left:   calc(100% + 12px); top: 50%;  transform: translateY(-50%); }

.bp-tooltip-title {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 5px;
    color: #fff;
}
.bp-tooltip-content { font-size: .85rem; line-height: 1.5; }
.bp-tooltip-img     { margin-bottom: 10px; border-radius: 4px; overflow: hidden; }
.bp-tooltip-img img { width: 100%; height: auto; display: block; }
.bp-tooltip-link {
    display: inline-block;
    margin-top: 8px;
    font-size: .82rem;
    color: #70b8ff;
    text-decoration: none;
}
.bp-tooltip-link:hover { text-decoration: underline; }

/* ================================================================
   TIMELINE
   ================================================================ */
.bp-timeline { position: relative; }

/* Vertical layouts */
.bp-tl-layout-vertical-center .bp-tl-track,
.bp-tl-layout-vertical-left   .bp-tl-track,
.bp-tl-layout-vertical-right  .bp-tl-track {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    display: flex;
    flex-direction: column;
}

.bp-tl-layout-vertical-center .bp-tl-track { left: 50%; transform: translateX(-50%); }
.bp-tl-layout-vertical-left   .bp-tl-track { left: 24px; }
.bp-tl-layout-vertical-right  .bp-tl-track { right: 24px; }

.bp-tl-line {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 2px;
}
.bp-tl-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: #3498db;
    border-radius: 2px;
    transition: height .4s ease;
}

.bp-tl-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px 0;
}

.bp-tl-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    gap: 20px;
}

/* Alternating */
.bp-tl-layout-vertical-center .bp-tl-item { flex-direction: column; align-items: center; }
.bp-tl-layout-vertical-center .bp-tl-left  { flex-direction: row; padding-right: calc(50% + 30px); }
.bp-tl-layout-vertical-center .bp-tl-right { flex-direction: row-reverse; padding-left: calc(50% + 30px); }

/* Left / Right fixed */
.bp-tl-layout-vertical-left  .bp-tl-item { padding-left: 70px; }
.bp-tl-layout-vertical-right .bp-tl-item { padding-right: 70px; flex-direction: row-reverse; }

/* Point */
.bp-tl-point {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    z-index: 2;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px #3498db;
}

.bp-tl-layout-vertical-left .bp-tl-point,
.bp-tl-layout-vertical-right .bp-tl-point {
    position: absolute;
}
.bp-tl-layout-vertical-left  .bp-tl-point { left: 5px; }
.bp-tl-layout-vertical-right .bp-tl-point { right: 5px; }

/* Card */
.bp-tl-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    flex: 1;
}

.bp-tl-img { margin-bottom: 12px; border-radius: 4px; overflow: hidden; }
.bp-tl-img img { width: 100%; height: auto; display: block; }

.bp-tl-date {
    font-size: .8rem;
    font-weight: 700;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.bp-tl-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.bp-tl-title-link { text-decoration: none; }
.bp-tl-title-link:hover .bp-tl-title { text-decoration: underline; }

.bp-tl-content {
    font-size: .9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Animation on scroll */
[data-bp-animate] [data-bp-tl-item] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
[data-bp-animate] [data-bp-tl-item].bp-visible {
    opacity: 1;
    transform: none;
}

/* Horizontal */
.bp-tl-layout-horizontal .bp-tl-track { display: none; }
.bp-tl-layout-horizontal .bp-tl-items {
    flex-direction: row;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
    gap: 24px;
}
.bp-tl-layout-horizontal .bp-tl-item {
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    padding: 0;
}

/* ================================================================
   BEFORE / AFTER
   ================================================================ */
.bp-ba-container { user-select: none; }

.bp-ba-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
    border-radius: 8px;
    touch-action: none;
}

.bp-ba-before,
.bp-ba-after {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bp-ba-before img,
.bp-ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    draggable: false;
}

/* Divider line */
.bp-ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 10;
    transition: none;
}

.bp-ba-dir-vertical .bp-ba-divider {
    left: 0;
    right: 0;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
}

/* Handle */
.bp-ba-handle {
    position: absolute;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 11;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    transition: box-shadow .2s;
}
.bp-ba-handle:hover   { box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.bp-ba-dir-vertical .bp-ba-handle { cursor: ns-resize; }

.bp-ba-arrows { flex-shrink: 0; }

/* Labels */
.bp-ba-label {
    position: absolute;
    top: 16px;
    padding: 6px 14px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
}

.bp-ba-before .bp-ba-label-before { left: 12px; }
.bp-ba-after  .bp-ba-label-after  { right: 12px; }

.bp-ba-dir-vertical .bp-ba-label { top: auto; }
.bp-ba-dir-vertical .bp-ba-before .bp-ba-label { top: 12px; left: 50%; transform: translateX(-50%); }
.bp-ba-dir-vertical .bp-ba-after  .bp-ba-label { bottom: 12px; top: auto; left: 50%; transform: translateX(-50%); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .bp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .bp-tl-layout-vertical-center .bp-tl-left  { padding-right: 0; }
    .bp-tl-layout-vertical-center .bp-tl-right { padding-left: 0; }
    .bp-tl-layout-vertical-center .bp-tl-item  { flex-direction: column; align-items: flex-start; padding-left: 60px; }
    .bp-tl-layout-vertical-center .bp-tl-track { left: 24px; transform: none; }
    .bp-tl-layout-vertical-center .bp-tl-point { position: absolute; left: 5px; }
}

@media (max-width: 767px) {
    .bp-gallery-grid { grid-template-columns: 1fr; }
    .bp-arrow-prev   { left: 6px; }
    .bp-arrow-next   { right: 6px; }
    .bp-slide-title  { font-size: 1.1rem; }
    .bp-mode-tabs.bp-tab-left,
    .bp-mode-tabs.bp-tab-right { flex-direction: column; }
    .bp-mode-tabs.bp-tab-left  .bp-tabs-nav,
    .bp-mode-tabs.bp-tab-right .bp-tabs-nav { width: 100%; }
    .bp-lb-prev { left: 6px; }
    .bp-lb-next { right: 6px; }
    .bp-tooltip { width: 170px; }
    .bp-tl-layout-horizontal .bp-tl-items { flex-direction: column; }
}
