/* ========================================
   CLEAN STYLES - TAILWIND COMPATIBLE
   ======================================== */

/* Import Libre Baskerville font */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
/* Import Gotham Regular font (using Inter as fallback since Gotham requires license) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* CSS Variables for consistency */
:root {
    --primary-color: #65bc7b;
    --text-color: #747474;
    --title-font: 'Libre Baskerville', serif;
    --body-font: 'Inter', sans-serif;
    /* Gotham Regular alternative */
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
}

/* ========================================
   FULL SCREEN VERTICAL SLIDER
   ======================================== */

/* Full Screen Vertical Slider base HTML structure */
html.fsvs {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

html.fsvs #wrapper,
html.fsvs body {
    height: 100%;
}

html.fsvs #fsvs-body {
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    height: 100vh;
    width: 100%;
}

html.fsvs #fsvs-body>* {
    height: 100%;
    width: 100%;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000px;
}

/* Slider Images */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(100%);
}

/* Mobile viewport fix */
@media (max-width: 768px) {
    .slide {
        height: 100vh;
        height: 100svh;
        /* Small viewport height for mobile browsers */
    }
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

/* Enhanced pagination with exact WordPress styling */
html.fsvs #fsvs-pagination {
    margin: 0;
    padding: 8px 4px;
    position: fixed;
    height: auto;
    right: 30px;
    top: 50%;
    z-index: 999;
    width: 25px;
    transform: translateY(-50%);
    transition: right 0.3s ease;
}

html.fsvs #fsvs-pagination:hover {
    right: 20px;
}

html.fsvs #fsvs-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

html.fsvs #fsvs-pagination li {
    list-style: none;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    margin: 0 0 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

html.fsvs #fsvs-pagination li>span {

    width: 18px;
    height: 18px;
    display: block;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    transform: scale(0.8);
}

html.fsvs #fsvs-pagination li>span>span {
    display: none;
}

html.fsvs #fsvs-pagination li.active>span,
html.fsvs #fsvs-pagination li:hover>span {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Loading states and animations */
.fusion-wrapper {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fusion-wrapper.loaded,
body.loaded .fusion-wrapper {
    opacity: 1;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.width-100 {
    width: 100% !important;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    html.fsvs #fsvs-pagination {
        right: 15px;
        width: 20px;
    }

    html.fsvs #fsvs-pagination li {
        width: 15px;
        height: 15px;
        margin-bottom: 6px;
    }

    html.fsvs #fsvs-pagination li>span {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    html.fsvs #fsvs-pagination {
        right: 10px;
        width: 18px;
    }

    html.fsvs #fsvs-pagination li {
        width: 12px;
        height: 12px;
        margin-bottom: 5px;
    }

    html.fsvs #fsvs-pagination li>span {
        width: 12px;
        height: 12px;
    }
}

/* ========================================
   NON-HOMEPAGE PAGES
   ======================================== */

/* For pages without full screen slider */
body:not(.home) {
    min-height: 100vh;
}

body:not(.home) header {
    background: transparent;
    backdrop-filter: none;
}

body:not(.home) header a {
    color: #000 !important;
}

body:not(.home) header .text-white {
    color: #000 !important;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    html.fsvs #fsvs-pagination {
        display: none;
    }

    header {
        position: static !important;
        background: #fff !important;
    }

    header a {
        color: #000 !important;
    }
}

/* Hide pagination when not present */
#fsvs-pagination:empty {
    display: none !important;
}

/* Mobile Menu Blur Effect */
#mobile-menu {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    padding: 16px !important;
    margin-top: 8px !important;
}

/* Enhanced text visibility for mobile menu items */
#mobile-menu a {
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;

    padding: 12px 16px !important;
    margin: 4px 0 !important;
    display: block !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
}

#mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Homepage specific mobile menu - exactly like stories page */
body.home #mobile-menu {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 16px !important;
    margin-top: 16px !important;
}

/* Homepage mobile menu items - exactly like stories page */
body.home #mobile-menu a {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    display: block !important;
    color: #000000 !important;
    font-weight: normal !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.05em !important;
}

/* Homepage mobile menu hover effects - exactly like stories page */
body.home #mobile-menu a:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    text-shadow: none !important;
    opacity: 0.7 !important;
}

/* ========================================
   FONT FAMILY CONFIGURATION
   ======================================== */

/* Default body font for all elements */
*:not(.fas):not(.fab):not(.far):not(.fal):not(.fat):not(.fad):not([class*="fa-"]),
*::before:not(.fas):not(.fab):not(.far):not(.fal):not(.fat):not(.fad):not([class*="fa-"]),
*::after:not(.fas):not(.fab):not(.far):not(.fal):not(.fat):not(.fad):not([class*="fa-"]) {
    font-family: var(--body-font) !important;
}

/* Logo - uses title font */
header a[href="index.html"],
header a[href="../index.html"] {
    font-family: var(--title-font) !important;
    font-weight: 550 !important;
}

/* All headings and titles use Libre Baskerville */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--title-font) !important;
}

/* Navigation items use body font */
nav a,
.navigation a,
#mobile-menu a {
    font-family: var(--body-font) !important;
}

/* Homepage image captions use body font */
.slider-caption p,
.slide .slider-caption p,
.absolute.bottom-8.left-8 p {
    font-family: var(--body-font) !important;
}

/* Paragraphs and body text use Gotham Regular (Inter) */
p,
span:not(.logo):not(h1 span):not(h2 span):not(h3 span):not(h4 span):not(h5 span):not(h6 span),
div:not(.logo):not([class*="title"]),
li,
td,
th,
label {
    font-family: var(--body-font) !important;
}

/* Specific classes that should use title font */
.font-raleway,
.story-title,
.page-title,
.section-title {
    font-family: var(--title-font) !important;
}

/* Tailwind text classes for navigation and captions */
.text-white:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.font-raleway),
.text-xs,
.text-sm {
    font-family: var(--body-font) !important;
}

/* Ensure Font Awesome icons use correct fonts */
.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.far,
.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

/* Font Awesome icon display fix */
[class*="fa-"] {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

/* Body and HTML fallback */
html,
body,
input,
textarea,
select,
button {
    font-family: var(--body-font) !important;
}

/* Logo styling with Libre Baskerville */
header a[href="index.html"],
header a[href="../index.html"] {
    font-family: var(--title-font) !important;
    font-weight: 550 !important;
}

/* Logo font size - 2rem for desktop */
@media (min-width: 768px) {

    header a[href="index.html"],
    header a[href="../index.html"] {
        font-size: 2rem !important;
    }
}

/* Mobile logo font weight */
@media (max-width: 767px) {

    header a[href="index.html"],
    header a[href="../index.html"] {
        font-weight: 550 !important;
    }
}

/* Global border-radius removal */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

/* Remove border-radius from all common elements */
div,
span,
button,
input,
textarea,
select,
img,
.rounded,
.rounded-sm,
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl,
.rounded-full,
[class*="rounded"] {
    border-radius: 0 !important;
}

/* Custom spacing for last row images on medium+ screens */
@media (min-width: 768px) {
    img.last-row-spacing {
        margin-top: 2rem;
    }
}

/* Custom spacing for mobile devices (less than 768px) */
@media (max-width: 767px) {
    img.vertical-row-second-img {
        margin-top: 2rem;
    }

    img.fourth-row-first-img {
        margin-top: 50px;
    }

    /* Homepage copyright text right padding on mobile */
    .home-copyright-mobile {
        padding-right: 5px;
    }
}