/* FORCE LOGO PURITY - NO BORDER, NO OUTLINE, NO BOX (v=1793505412) */
.ush_image_1,
.ush_image_1 a,
.ush_image_1 a.w-image-h,
.ush_image_1 img,
header .w-image,
header .w-image a,
header .w-image img,
img[src*="logo-spaintheforgotten"] {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: none !important;
}

/* ==========================================================================
   Spain The Forgotten - Modern 2026 UI & Visual Upgrade
   Elevating Galleries, Events, News & Global Components
   ========================================================================== */

:root {
    --stf-primary: #8b1e22;
    --stf-primary-light: #ab252a;
    --stf-primary-dark: #681417;
    --stf-gold: #c69234;
    --stf-gold-light: #dfaa4a;
    --stf-dark: #1b1e23;
    --stf-text: #2d3748;
    --stf-text-muted: #64748b;
    --stf-bg-subtle: #f8fafc;
    --stf-card-bg: #ffffff;
    --stf-card-border: rgba(0, 0, 0, 0.07);
    --stf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --stf-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
    --stf-shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
    --stf-radius: 12px;
    --stf-radius-lg: 16px;
    --stf-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --------------------------------------------------------------------------
   1. Typography & Global Polish
   -------------------------------------------------------------------------- */
body {
    color: var(--stf-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--stf-dark);
    letter-spacing: -0.015em;
    font-weight: 700;
}

/* Page Top Titles & Headers */
.l-titlebar h1, 
div[style*="max-width:1140px"] h1,
.l-main h1 {
    font-size: 2.3rem !important;
    font-weight: 800 !important;
    color: var(--stf-dark) !important;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 24px !important;
}

.l-titlebar h1::after,
div[style*="max-width:1140px"] h1::after,
.l-main h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--stf-primary), var(--stf-gold));
    border-radius: 2px;
}

/* Section Headings */
.l-section h2, .l-section h3 {
    margin-top: 15px;
    margin-bottom: 20px;
    position: relative;
}

/* --------------------------------------------------------------------------
   2. Modern Gallery Grid & Cards (gallery.php & events.php)
   -------------------------------------------------------------------------- */
.w-grid.type_grid {
    --gap: 26px !important;
    margin-top: 30px;
    margin-bottom: 50px;
}

#us_grid_1 .w-grid-list,
.w-grid-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
    gap: 26px !important;
    width: 100% !important;
}

.w-grid.cols_2 .w-grid-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

.w-grid.cols_3 .w-grid-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

/* Individual Grid Card */
#us_grid_1 .w-grid-item,
.w-grid-item {
    width: 100% !important;
    margin: 0 !important;
    transition: var(--stf-transition);
}

.w-grid-item-h {
    background: var(--stf-card-bg) !important;
    border-radius: var(--stf-radius) !important;
    border: 1px solid var(--stf-card-border) !important;
    box-shadow: var(--stf-shadow-sm) !important;
    overflow: hidden !important;
    transition: var(--stf-transition) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Card Hover Elevation */
.w-grid-item:hover .w-grid-item-h {
    transform: translateY(-6px) !important;
    box-shadow: var(--stf-shadow-lg) !important;
    border-color: rgba(139, 30, 34, 0.25) !important;
}

/* Card Image Container with smooth zoom */
.w-grid-item .post_image {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.w-grid-item .post_image img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.3s ease !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.w-grid-item:hover .post_image img {
    transform: scale(1.06) !important;
    filter: brightness(1.02);
}

/* Subtle zoom overlay hint */
.w-grid-item .post_image::after {
    content: "🔍";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 44px;
    height: 44px;
    background: rgba(27, 30, 35, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: var(--stf-transition);
    pointer-events: none;
    z-index: 2;
}

.w-grid-item:hover .post_image::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Card Text / Title Styling */
.layout_gallery_with_titles_below .usg_vwrapper_1 {
    padding: 16px 18px 20px 18px !important;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.layout_gallery_with_titles_below .usg_post_title_1 {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: var(--stf-dark) !important;
    transition: color 0.2s ease;
}

.w-grid-item:hover .usg_post_title_1 {
    color: var(--stf-primary) !important;
}

/* --------------------------------------------------------------------------
   3. Modern Events Page Visuals (events.php)
   -------------------------------------------------------------------------- */
/* Section Dividers */
.w-separator.size_medium.with_line {
    margin: 45px 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, rgba(139, 30, 34, 0.25), transparent) !important;
    border: none !important;
}

.w-separator.with_line .w-separator-h {
    display: none !important;
}

/* Event Column Highlights */
.vc_column-inner {
    transition: var(--stf-transition);
}

/* Event Titles & Dates */
.events-date-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 30, 34, 0.08);
    color: var(--stf-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   4. Modern News, Media & Press Visuals (news.php)
   -------------------------------------------------------------------------- */
/* Video Theater Showcase */
.w-video.has_iframe {
    border-radius: var(--stf-radius-lg) !important;
    overflow: hidden !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22) !important;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #000000;
    transition: var(--stf-transition);
}

.w-video.has_iframe:hover {
    box-shadow: 0 20px 50px rgba(139, 30, 34, 0.3) !important;
}

/* Video Section Wrapper */
.video-showcase-box {
    background: linear-gradient(135deg, #1a1e24 0%, #2a181b 100%);
    border-radius: var(--stf-radius-lg);
    padding: 30px;
    color: #ffffff;
    box-shadow: var(--stf-shadow-lg);
    margin: 30px 0;
}

.video-showcase-box h4 {
    color: #ffffff !important;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   HEADER & LOGO RESET: Clean branding, NO borders, NO contours, NO boxes
   -------------------------------------------------------------------------- */
.ush_image_1,
.ush_image_1 .w-image-h,
.ush_image_1 img,
.l-header .w-image,
.l-header .w-image .w-image-h,
.l-header .w-image img,
.l-footer img,
img[src*="logo-spaintheforgotten"] {
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
    transform: none !important;
}

.ush_image_1:hover,
.ush_image_1 .w-image-h:hover,
.ush_image_1 img:hover,
.l-header .w-image:hover,
.l-header .w-image .w-image-h:hover,
.l-header .w-image img:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Standalone Image Links in Articles / Media (excluding header logo) */
div.l-section .w-image:not(.ush_image_1) {
    transition: var(--stf-transition);
}

div.l-section .w-image:not(.ush_image_1) .w-image-h {
    display: block;
    border-radius: var(--stf-radius);
    overflow: hidden;
    box-shadow: var(--stf-shadow-sm);
    transition: var(--stf-transition);
    border: 1px solid var(--stf-card-border);
}

div.l-section .w-image:not(.ush_image_1) .w-image-h:hover {
    transform: translateY(-4px);
    box-shadow: var(--stf-shadow-md);
    border-color: rgba(139, 30, 34, 0.3);
}

div.l-section .w-image:not(.ush_image_1) img {
    border-radius: var(--stf-radius);
    transition: transform 0.4s ease;
}

div.l-section .w-image:not(.ush_image_1):hover img {
    transform: scale(1.03);
}

/* Editorial & Goodreads Testimonial Card */
.stf-review-card {
    background: #ffffff;
    border-radius: var(--stf-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--stf-shadow-md);
    padding: 35px 40px;
    margin: 35px 0;
    position: relative;
    overflow: hidden;
}

.stf-review-card::before {
    content: "“";
    position: absolute;
    top: -15px;
    left: 25px;
    font-size: 110px;
    font-family: Georgia, serif;
    color: rgba(139, 30, 34, 0.08);
    line-height: 1;
    pointer-events: none;
}

.stf-review-card .review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.stf-review-card .reviewer-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stf-review-card .reviewer-avatar {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--stf-primary), var(--stf-primary-light));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.stf-review-card .reviewer-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--stf-dark);
}

.stf-review-card .reviewer-title {
    font-size: 0.85rem;
    color: var(--stf-text-muted);
}

.stf-review-card .review-stars {
    color: #eab308;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.stf-review-card .review-body {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #334155;
    font-style: normal;
}

.stf-review-card .review-body p {
    margin-bottom: 16px;
}

.stf-review-card .review-body p:last-child {
    margin-bottom: 0;
}

/* Articles & Fat Gallery Polish */
.fat-gallery-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 26px !important;
    margin: 25px 0 !important;
}

.fat-gallery-item {
    background: #ffffff !important;
    border-radius: var(--stf-radius) !important;
    border: 1px solid var(--stf-card-border) !important;
    box-shadow: var(--stf-shadow-sm) !important;
    overflow: hidden !important;
    transition: var(--stf-transition) !important;
    position: relative !important;
    height: auto !important;
    width: 100% !important;
}

.fat-gallery-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--stf-shadow-lg) !important;
    border-color: rgba(139, 30, 34, 0.25) !important;
}

.fat-gallery-item .fat-gallery-thumb,
.fat-gallery-item .fat-gallery-image {
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.fat-gallery-item img {
    transition: transform 0.4s ease !important;
    width: 100% !important;
    display: block;
}

.fat-gallery-item:hover img {
    transform: scale(1.05) !important;
}

.fat-gallery-item .fat-gallery-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--stf-dark) !important;
    padding: 14px 16px 8px !important;
    line-height: 1.4 !important;
}

.fat-gallery-item .fat-gallery-excerpt {
    font-size: 0.88rem !important;
    color: var(--stf-text-muted) !important;
    padding: 0 16px 16px !important;
    line-height: 1.5 !important;
}

/* --------------------------------------------------------------------------
   5. Interactive 3D FlipBook / PDF Viewer Card Polish
   -------------------------------------------------------------------------- */
.fb3d-viewport {
    border-radius: var(--stf-radius);
    box-shadow: var(--stf-shadow-lg);
    border: 1px solid var(--stf-card-border);
}

/* --------------------------------------------------------------------------
   6. Modern Navigation & Header Details
   -------------------------------------------------------------------------- */
.l-header {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.l-header.shadow_thin {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.w-nav-anchor {
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.w-nav-item.current-menu-item > .w-nav-anchor,
.w-nav-anchor:hover {
    color: var(--stf-primary) !important;
}

/* --------------------------------------------------------------------------
   7. Buttons Polish
   -------------------------------------------------------------------------- */
.w-btn, 
button[type="submit"], 
input[type="submit"],
.btn-primary {
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    transition: var(--stf-transition) !important;
    box-shadow: var(--stf-shadow-sm) !important;
}

.w-btn:hover, 
button[type="submit"]:hover, 
input[type="submit"]:hover,
.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--stf-shadow-md) !important;
}

/* --------------------------------------------------------------------------
   8. Responsive Fine-Tuning
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .w-grid.type_grid {
        --gap: 16px !important;
    }
    .w-grid-list {
        gap: 16px !important;
    }
    .stf-review-card {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .l-titlebar h1, 
    div[style*="max-width:1140px"] h1,
    .l-main h1 {
        font-size: 1.7rem !important;
    }
    .w-grid-item {
        width: 100% !important;
    }
    .stf-review-card .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* --------------------------------------------------------------------------
   Breadcrumb & Back to Home Navigation Bar
   -------------------------------------------------------------------------- */
.stf-breadcrumb-bar {
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 14px 24px;
    margin-bottom: 30px;
    width: 100%;
}

.stf-breadcrumb-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.stf-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: #ffffff;
    border: 1px solid rgba(139, 30, 34, 0.25);
    color: var(--stf-primary) !important;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--stf-transition);
}

.stf-back-btn:hover {
    background: var(--stf-primary);
    color: #ffffff !important;
    border-color: var(--stf-primary);
    transform: translateX(-4px);
    box-shadow: 0 4px 14px rgba(139, 30, 34, 0.2);
}

.stf-breadcrumb-nav {
    font-size: 0.88rem;
    color: var(--stf-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stf-breadcrumb-nav a {
    color: var(--stf-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.stf-breadcrumb-nav a:hover {
    color: var(--stf-primary-dark);
    text-decoration: underline;
}

.stf-breadcrumb-nav .sep {
    color: #94a3b8;
    font-size: 0.8rem;
}

.stf-breadcrumb-nav .current {
    color: var(--stf-dark);
    font-weight: 700;
}



