.post-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Optional: tighten content width for readability */
.blog-post {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.post-meta {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 24px;
}

.post-content {
  font-size: 17px;
  line-height: 1.75;
}

/* ===============================
   GLOBAL SITE STYLES
   BryanAndrus.com
   =============================== */

:root {
    --primary: #0b7285;
    --secondary: #74c0fc;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* ===============================
   HEADER / FOOTER
   =============================== */

.site-header {
    background: linear-gradient(135deg, #0b7285, #1c7ed6);
    padding: 10px 0;
}

.site-header nav {
    max-width: 700px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-left: 20px;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

/* ===============================
   CONTACT PAGE
   =============================== */

.contact-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.contact-card {
    background: #ffffff;
    max-width: 420px;   /* FINAL SHRUNK SIZE */
    width: 100%;
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
}

.contact-card h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--gray);
    margin-bottom: 30px;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 18px;
    font-size: 1rem;
}

.contact-card button {
    width: 100%;
    background: linear-gradient(135deg, #0b7285, #1c7ed6);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ===============================
   PRODUCT IMAGES
   =============================== */

.product-thumb {
    width: 70px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ===============================
   UTILITIES
   =============================== */

.text-center {
    text-align: center;
}

/* Base button style */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.25s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

/* Force white text on all primary/homepage buttons */
.btn-primary,
.home-intro .btn,
.home-unified-section a.btn,
.home-unified-section a.btn:link,
.home-unified-section a.btn:visited,
.home-unified-section a.btn:active {
    color: #ffffff !important;   /* Fixes the blue text */
    text-decoration: none !important; /* Removes the underline */
    background-color: var(--primary);
}

/* Target the button link specifically */
    .product-info-gear .btn, 
    .product-info-gear .btn:visited, 
    .product-info-gear .btn:active, 
    .product-info-gear .btn:hover {
    color: #ffffff; /* !important;    Forces text to stay white */
    text-decoration: none;       /* Removes the underline seen in your image */
    max-width: 420px;
    margin: 0 auto;
}

/* Specific Gear Button color */
.product-card-gear a.btn,
.product-card-gear a.btn:visited {
    background-color: #ff9900 !important;
    color: #ffffff !important;
    align-self: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0.9;
    color: #ffffff !important;
}

/* ================================
   Subtle UI Animations (Global)
   ================================ */

/* Page fade-in */
body {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover lift */
.btn {
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Card hover effect */
.card,
.admin-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Product thumbnail hover */
.product-thumb {
    transition: transform 0.3s ease;
}

.product-thumb:hover {
    transform: scale(1.05);
}

/* Admin sidebar nav hover indicator */
.admin-nav a {
    position: relative;
    transition: color 0.2s ease;
}

.admin-nav a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 4px;
    height: 0;
    background: #2bb0ed;
    transition: height 0.2s ease, top 0.2s ease;
}

.admin-nav a:hover::before {
    height: 60%;
    top: 20%;
}

/* Form focus glow */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2bb0ed;
    box-shadow: 0 0 0 3px rgba(43,176,237,0.15);
    transition: box-shadow 0.2s ease;
}
/* ==================================================
   CONTACT PAGE – FINAL ALIGNMENT & UX FIX
   (Add ONCE – master stylesheet)
================================================== */

.page-wrapper {
    display: flex;
    justify-content: center;
    padding: 4rem 1rem;
}

.contact-section {
    width: 100%;
    max-width: 520px; /* Half-page width */
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    animation: fadeUp 0.45s ease-in-out;
}

.contact-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-intro {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30,136,229,0.15);
}

.contact-form button {
    margin-top: 1rem;
    padding: 0.8rem;
    font-size: 1rem;
}

/* Subtle animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile optimization */
@media (max-width: 300px) {
    .contact-section {
        padding: 2rem 1.5rem;
    }
}

/* ==================================================
   HERO LANDING SECTION – BOLD TRAVEL STYLE
================================================== */

.hero {
    position: relative;
    height: 58vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 40, 70, 0.65),
        rgba(0, 40, 70, 0.85)
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 2rem;
    text-align: center;
    color: #fff;
    animation: fadeUp 0.6s ease;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Buttons */
.hero .btn-primary {
    background: #1e88e5;
    color: #fff;
    padding: 0.85rem 1.6rem;
}

.hero .btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 0.8rem 1.6rem;
}

.hero .btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 5rem 0;
    }
}
/* ==================================================
   HOME INTRO SECTION (POST-HERO)
================================================== */

.home-intro {
    background: #f7fafc;
    padding: 4.5rem 1.5rem;
    text-align: center;
}

.home-intro .container {
    max-width: 900px;
    margin: 0 auto;
}

.home-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.home-intro p {
    font-size: 1.05rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.intro-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
/* =========================================
   LEGAL PAGES (TERMS + PRIVACY)
========================================= */

.page-wrapper .content-block {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    background: transparent;
    box-shadow: none;
}

.page-wrapper .contact-section {
    max-width: 1200px;
    padding: 3rem 2rem;
}

.page-wrapper h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.page-wrapper h2 {
    margin-top: 2.2rem;
    font-size: 1.35rem;
}

.page-wrapper p,
.page-wrapper li {
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-wrapper ul {
    padding-left: 1.4rem;
}

/* Mobile refinement */
@media (max-width: 768px) {
    .page-wrapper .content-block {
        padding: 1.8rem;
    }

    .page-wrapper h1 {
        font-size: 2.1rem;
    }
}
/* =========================================
   CONTACT PAGE – CENTERED & CLEAN
========================================= */

.contact-page {
    padding: 4rem 1.5rem;
}

.contact-container {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}

.contact-intro {
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    opacity: 0.9;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}

.contact-form .form-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    display: block;
    margin: 1.8rem auto 0;
    padding: 0.75rem 2.4rem;
}


/* =========================================
   reCAPTCHA – CONTACT FORM POLISH
========================================= */

.g-recaptcha {
    margin: 1.5rem auto;
    display: flex;
    justify-content: center;
}
.contact-error {
    animation: shake 0.3s ease;
}

/* =========================================
   Product page changes
========================================= */


@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

.page-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.product-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.affiliate-disclosure {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin: 20px 0 40px;
}

.product-card .btn {
  margin-top: 10px;
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 999px;
}

.product-card .btn {
  background: #ff9900;
  color: #111;
}

.product-card .btn:hover {
  background: #ffb347;
}

.product-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* CENTER PRODUCTS PAGE */
.products-page {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 60px 20px;
}

/* CENTER TITLE & INTRO */
.products-page .page-title,
.products-page .page-intro {
  text-align: center;
}

/* CENTER GRID CONTENT */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  justify-content: center;
  margin-top: 40px;
}

/* KEEP CARDS NEAT */
.product-card {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================
   GALLERY CATEGORY FILTERS
========================= */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 40px;
}

.filter-pill {
    padding: 8px 16px;
    border-radius: 999px;
    background: #f1f3f6;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all .2s ease;
}

.filter-pill:hover {
    background: #dde7ef;
}

.filter-pill.active {
    background: #0b5ed7;
    color: #fff;
}

/* =========================
   GALLERY CAPTIONS
========================= */

.gallery-caption {
    padding: 10px 6px 0;
    text-align: left;
}

.gallery-caption strong {
    display: block;
    font-size: 0.9rem;
    color: #111;
    margin-bottom: 4px;
}

.gallery-caption p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}



/* BLOG PAGE */

.blog-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-search {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.blog-search input {
    width: 320px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.blog-list {
    display: grid;
    gap: 35px;
}

.blog-card {
    padding: 30px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.blog-card h2 {
    margin-bottom: 8px;
}

.blog-card h2 a {
    color: #0b3c5d;
    text-decoration: none;
}

.blog-card h2 a:hover {
    text-decoration: underline;
}

.blog-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
}

.blog-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Optional: tighten content width for readability 
.blog-post {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 60px;
}
*/

.post-meta {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 24px;
}

.post-content {
  font-size: 17px;
  line-height: 1.75;
}


.read-more {
    font-weight: 600;
    color: #0b3c5d;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Blog Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a {
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 500;
}

.pagination a.active {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
}

.pagination a:hover {
    background: #f0f9ff;
}

.gallery-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform .3s ease;
}

.gallery-item img:hover {
    transform: scale(1.04);
}

/* =========================
   PREMIUM LIGHTBOX NAV
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    text-align: center;
    max-width: 90%;
}

.lightbox-content img {
    max-height: 75vh;
    max-width: 100%;
    border-radius: 6px;
}

#lightbox-caption {
    margin-top: 14px;
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.5;
}

#lightbox-caption strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
}

#lightbox-counter {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    padding: 12px;
    cursor: pointer;
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}


/* =========================
   LIGHTBOX LOADING SPINNER
========================= */

.lightbox-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 2;
}

.lightbox.loading .lightbox-spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg) translate(-50%, -50%); }
}


/* =========================
   LIGHTBOX DESCRIPTION
========================= */

#lightbox-caption {
    max-width: 700px;
    margin: 16px auto 0;
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.5;
}

#lightbox-caption strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 6px;
}

/* =========================
   LAZY LOAD FADE-IN
========================= */

.lazy-fade {
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.lazy-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}



/* ===============================
   GALLERY
=============================== */

/* Container for the Home Gallery Section */
.gallery-page-home, 
.gear-page {
    display: block; /* Ensure they are block-level */
    margin: 0 auto 60px; /* This creates the GAP between the boxes */
    background: #ffffff;
    border-radius: 24px;
    /* ... rest of your styles ... */
    padding: 40px 20px;              /* Internal spacing */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* Soft lift effect */
    max-width: 1100px;               /* Keeps the layout focused */
    margin: 0 auto;                  /* Centers the box */
    text-align: center;
}

/* Ensure the grid inside centers correctly */
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    justify-content: center;
}

/* Mobile adjustments for the padding */
@media (max-width: 768px) {
    .gallery-page-home {
        padding: 40px 20px;
        border-radius: 16px; /* Slightly smaller radius for mobile */
    }
}
.gallery-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.gallery-thumb {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* Ensure thumbs are visible */
.gallery-thumb.lazy-fade {
    opacity: 1;
    transform: none;
}

.gallery-caption {
    padding: 14px 16px;
}

.gallery-caption strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.gallery-caption p {
    font-size: 0.85rem;
    color: #64748b;
}



/* ===============================
   MOBILE TWEAKS
=============================== */

@media (max-width: 640px) {
    .gallery-grid {
        gap: 16px;
    }

    .gallery-thumb {
        height: 200px;
    }
}


/* =========================
   HOMEPAGE FEATURED THUMBNAILS
========================= */

.home-featured-gallery .featured-gallery-grid {
    max-width: 900px; /* tighter layout */
}

.home-featured-gallery .gallery-thumb {
    height: 140px;        /* thumbnail height */
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Slightly smaller on mobile */
@media (max-width: 768px) {
    .home-featured-gallery .gallery-thumb {
        height: 110px;
    }
}

/* =========================
   HEADER LOGO SIZE
========================= */

.site-logo img {
    height: 128px;   /* smaller, refined */
    width: auto;
    display: block;
}

/* ===============================
   ACTIVE NAV LINK
=============================== */

.site-nav a.active {
    position: relative;
    opacity: 1;
}

/* subtle underline */
.site-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
}

/* CTA active state */
.site-nav .nav-cta.active {
    background: rgba(255,255,255,0.35);
}

/* ===============================
   BLOG POST CONTENT (TinyMCE)
=============================== */

.post-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 1.2em;
}

.post-content h2,
.post-content h3 {
    margin: 2.2em 0 1em;
    line-height: 1.3;
}

.post-content ul,
.post-content ol {
    margin: 1em 0 1.5em 1.5em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content a {
    color: #1c7ed6;
    text-decoration: underline;
}

.post-content strong {
    font-weight: 600;
}

/* ===============================
   BLOG POST HEADER (CENTERED)
=============================== */

.blog-post {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 48px;
}

.post-title {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.post-meta {
    color: #64748b;
    font-size: 0.95rem;
}

/* Content stays readable */
.post-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===============================
   BLOG POST SHARE BUTTONS
=============================== */

.post-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 32px 0 48px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #64748b;
    margin-right: 6px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform .15s ease, opacity .15s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-btn.twitter {
    background: #000; /* X */
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

/* ===============================
   FEATURE POST
=============================== */
.featured-post-card {
    max-width: 760px;
    margin: 24px auto 0;
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.featured-post-meta {
    color: #64748b;
    font-size: .9rem;
    margin-bottom: 12px;
}


/* ================================
   BLOG IMAGE HOVER OVERLAY
   ================================ */

.blog-thumb {
    position: relative;
    overflow: hidden;
}

.blog-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
}

.blog-thumb:hover .blog-thumb-overlay {
    opacity: 1;
}

.overlay-text {
    color: #fff;
    font-size: 10pt;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 20px;
    background: rgba(0,0,0,0.2);
}

/* ================================
   BLOG CATEGORY BADGE (IMAGE PILL)
   ================================ */

.blog-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 8pt;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none;
}

.category-cruises { background: #005f99; }
.category-destinations { background: #0f766e; }
.category-tips { background: #7c3aed; }


/* ================================
   BLOG CATEGORY FILTER BAR
   ================================ */

.blog-filters {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-filters a {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 8pt;
    background: #e5e7eb;
    color: #000;
}

.blog-filters a.active {
    background: #2563eb;
    color: #fff;
}

/* ================================
   BLOG PAGINATION
   ================================ */

.pagination {
    margin-top: 40px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 8pt;
    background: #e5e7eb;
    color: #000;
}

.page-btn:hover {
    background: #d1d5db;
}

.page-btn.active {
    background: #2563eb;
    color: #fff;
    cursor: default;
}

.page-btn.prev,
.page-btn.next {
    font-weight: bold;
}

/* =========================
   Blog list thumbnails
   ========================= */

.blog-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 220px;              /* controls card image height */
    overflow: hidden;
    border-radius: 12px;
    background: #f4f4f4;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* THIS is the key */
    display: block;
}

.blog-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .blog-card {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Featured blog banner
   ========================= */

.featured-post {
    margin-bottom: 40px;
}

.featured-post-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.featured-post-image {
    position: relative;
    width: 100%;
    height: 420px;              /* ← MAIN HEIGHT CONTROL */
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* critical */
    display: block;
}

.featured-post-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1),
        rgba(0,0,0,0.4)
    );
}

/* =========================
   Blur-up placeholder
   ========================= */

.featured-post-image img.blur-up {
    filter: blur(20px);
    transform: scale(1.05);          /* hides blur edges */
    transition: filter 0.6s ease, transform 0.6s ease;
}

.featured-post-image img.blur-up.loaded {
    filter: blur(0);
    transform: scale(1);
}

/* =========================
   Featured banner
   ========================= */

.featured-post {
    margin-bottom: 48px;
}

.featured-post-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.featured-post-image {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blur-up */
.featured-post-image img.blur-up {
    filter: blur(20px);
    transform: scale(1.05);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.featured-post-image img.blur-up.loaded {
    filter: blur(0);
    transform: scale(1);
}

.featured-post-content {
    padding: 10px;
}

.featured-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 14px;
    font-size: 8pt;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 16px;
    background: #2563eb;
    color: #fff;
}

.featured-post-content h2 {
    margin: 8px 0 12px;
}

.featured-cta {
    display: inline-block;
    margin-top: 14px;
    font-weight: bold;
}

/* Mobile */
@media (max-width: 768px) {
    .featured-post-inner {
        grid-template-columns: 1fr;
    }

    .featured-post-image {
        height: 260px;
    }
}

/* ===============================
   BLOG POST FEATURED IMAGE (SIZE FIX)
=============================== */

.post-featured-image {
    max-width: 860px;          /* matches blog-post width */
    margin: 0 auto 32px;       /* center + spacing */
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.post-featured-image img {
    width: 100%;
    height: 360px;             /* 🔑 CONTROLS IMAGE HEIGHT */
    object-fit: cover;         /* consistent with site */
    display: block;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .post-featured-image img {
        height: 220px;
    }
}

/* ===============================
   BLOG FEATURED IMAGE GRADIENT OVERLAY
=============================== */

.post-featured-image {
    position: relative;
}

.post-featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.45) 100%
    );
    pointer-events: none;
}

/* ===============================
   BLOG FEATURED IMAGE TITLE OVERLAY
=============================== */

.post-featured-title {
    position: absolute;
    bottom: 20px;
    left: 24px;
    right: 24px;
    z-index: 2;

    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;

    text-shadow:
        0 2px 6px rgba(0,0,0,0.6);
}

/* Mobile tuning */
@media (max-width: 768px) {
    .post-featured-title {
        font-size: 1.4rem;
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
}


/* ===============================
   BLOG POST CONTENT FIX (NO CUTOFF)
=============================== */

.blog-post {
    overflow: visible;
    height: auto;
}

.post-content {
    overflow: visible;
    height: auto;
    max-height: none;
    display: block;
}

/* Ensure figures and images don’t clip content */
.post-featured-image {
    overflow: visible;
}

.site-content,
main,
section {
    overflow: visible;
}

/* ===============================
   GLOBAL MOBILE BASELINE
=============================== */
html {
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: #f1f5f9;
    color: #0f172a;
    transition: all .2s ease;
}

.page-link:hover {
    background: #e2e8f0;
}

.page-link.active {
    background: var(--primary);
    color: #fff;
}

.page-link.prev,
.page-link.next {
    font-weight: 700;
}

/* ===============================
   TABLE OF CONTENTS
=============================== */

.post-toc {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    display: none; /* shown only if headings exist */
}

.post-toc.visible {
    display: block;
}

.post-toc .toc-title {
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark);
}

.post-toc ul {
    list-style: none;
    padding-left: 0;
}

.post-toc li {
    margin-bottom: 8px;
}

.post-toc li.toc-h3 {
    margin-left: 16px;
}

.post-toc a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.post-toc a:hover {
    text-decoration: underline;
}

/* ===============================
   Videos CSS (MINIMAL ADDITION)
=============================== */
.video-card video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

.video-meta {
    font-size: 0.85rem;
    color: #64748b;
}

/* ===============================
   MOBILE HEADER CENTERING FIX
=============================== */
@media (max-width: 768px) {

    .site-header {
        padding: 10px 0;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .site-logo {
        justify-content: center;
    }

    .site-logo img {
        height: 26px;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .site-nav a {
        font-size: 0.9rem;
    }

    /* Make Contact button obvious on mobile */
    .site-nav .nav-cta {
        background: rgba(255,255,255,0.25);
        padding: 8px 16px;
    }
}

/* ===============================
   PRODUCT DESCRIPTION COLLAPSE
=============================== */

.product-description {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* preview lines */
    -webkit-box-orient: vertical;
    transition: max-height 0.3s ease;
}

.product-description.expanded {
    -webkit-line-clamp: unset;
}

.product-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}

.product-toggle:hover {
    text-decoration: underline;
}

/* ===============================
   PRODUCT DESCRIPTION COLLAPSE
=============================== */

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;

    max-height: 4.8em; /* ≈ 3 lines */
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.product-description.expanded {
    max-height: 2000px; /* large enough to show full content */
}

/* ===============================
   STICKY & BLURRED HEADER
   =============================== 
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    /* Semi-transparent background with glass blur
    background: rgba(11, 114, 133, 0.9); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
} */

/* Shrink header slightly on scroll (triggered via JS) */
.site-header.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===============================
   SMOOTH SCROLL FADE ANIMATIONS
   =============================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for grid items */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ===============================
   HOVER ZOOM EFFECTS
   =============================== */
.hover-zoom {
    transition: transform 0.5s ease !important;
}

.gallery-item:hover .hover-zoom {
    transform: scale(1.1);
}

/* ===============================
   HERO SCROLL INDICATOR
   =============================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* =========================================
   FEATURED STORY – EDITORIAL LAYOUT
========================================= */

.featured-story-editorial {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
    text-align: left;
    position: relative;
}

.featured-story-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
}

/* Ensure interactive elements stay above overlay */
.featured-story-category-overlay,
.featured-story-link {
    position: relative;
    z-index: 2;
}

.featured-story-media {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0,0,0,0.10);
    position: relative;
}

.featured-story-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 55%,
        rgba(0, 0, 0, 0.35) 100%
    );
    pointer-events: none;
    border-radius: inherit;
}

.featured-story-media img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.featured-story-content {
    max-width: 520px;
}

.featured-story-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin: 10px 0 14px;
}

.featured-story-excerpt {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 18px;
}

.featured-story-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.featured-story-link:hover {
    text-decoration: underline;
}

/* =========================================
   FEATURED STORY – CATEGORY OVERLAY PILL
========================================= */

.featured-story-category-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;

    background: rgba(11, 114, 133, 0.92);
    color: #ffffff;

    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* =========================================
   FEATURED STORY – HOVER LIFT + IMAGE ZOOM
========================================= */

/* Card lift */
.featured-story-editorial {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.featured-story-editorial:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Image zoom */
.featured-story-media {
    overflow: hidden; /* ensures zoom stays clipped */
}

.featured-story-media img {
    transition: transform 0.5s ease;
}

.featured-story-editorial:hover .featured-story-media img {
    transform: scale(1.06);
}


/* =========================================
   HOME MOMENTS – SUBTLE HOVER INTERACTION
========================================= */

.gallery-item-home {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.10);
}

/* Image zoom */
.gallery-item-home img {
    transition: transform 0.45s ease;
}

.gallery-item-home:hover img {
    transform: scale(1.04);
}


/* ==================================================
   UNIFIED HOME SECTIONS (MOMENTS & GEAR)
   This section is specific to the Homepage layout
   ================================================== */

.home-unified-section {
    background-color: #f8fafc;
    padding: 48px 20px;
    width: 100%;
    position: relative;
}

.home-unified-section:not(:last-of-type)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 60%;
    height: 1px;

    background: linear-gradient(
        to right,
        rgba(0,0,0,0),
        rgba(0,0,0,0.08),
        rgba(0,0,0,0)
    );
}

.home-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.home-section-header {
    max-width: 720px;
    margin: 0 auto 28px;
}

.home-section-header h2 {
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.home-section-header p {
    font-size: 1rem;
    color: #64748b;
}

.home-section-body {
    width: 100%;
}

/* Mobile refinement */
@media (max-width: 768px) {
    .home-section-card {
        padding: 36px 22px;
        border-radius: 18px;
    }

    .home-section-header h2 {
        font-size: 1.7rem;
    }
}

/* White Rounded Boxes for Home Features */
.gallery-page-home, 
.gear-page {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    max-width: 1100px;
    margin: 0 auto 60px; /* Creates the clean gap between boxes */
    position: relative;
}

/* The Grid Layout specifically for Homepage */
.gallery-page-grid, 
.gear-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

/* Gear Card Styling for Homepage */
.product-card-gear {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease;
    align-items: center;
    text-align: center;
}

/* ==================================================
   SHARED CARD LAYOUT (Gear + Products)
   Side-by-side with vertical divider
================================================== */

.product-card-shared {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 1px minmax(220px, 1.6fr);
    gap: 22px;
    align-items: center;
    text-align: left;
}

.product-card-shared .product-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card-shared .product-thumb-gear {
    margin: 0; /* override old centering margin for grid */
    width: 100%;
    max-width: 260px;
    max-height: 220px;
    object-fit: contain;
}

.product-card-divider {
    width: 1px;
    height: 100%;
    background: #e5e7eb;
}

.product-card-shared .product-content {
    display: flex;
    flex-direction: column;
}

.product-card-shared .product-info-gear a.btn {
    align-self: flex-start;
}

/* Mobile: stack layout, remove divider */
@media (max-width: 768px) {
    .product-card-shared {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-card-divider {
        display: none;
    }

    .product-card-shared .product-info-gear a.btn {
        align-self: center;
    }

    .product-card-shared .product-thumb-gear {
        max-width: 320px;
        margin: 0 auto;
    }
}


.product-card-gear:hover {
    transform: translateY(-5px);
}

.product-thumb-gear {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
    margin-right: auto;
}

/* ==================================================
   GLOBAL BUTTON FIXES
   Overrides blue/underlined links in your screenshots
   ================================================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.25s ease;
    text-align: center;
    text-decoration: none !important; /* Removes blue underline */
    border: none;
    cursor: pointer;
}

/* Force white text for primary buttons */
.btn-primary, 
a.btn-primary,
.home-unified-section a.btn,
.home-intro a.btn {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

/* Specific Amazon Button Styling */
.product-card-gear a.btn {
    background-color: #ff9900 !important;
    color: #ffffff !important;
    margin-top: auto;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ==================================================
   HOMEPAGE TOP PICK BADGE
   ================================================== */

.top-pick-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff !important;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    z-index: 10;
    text-transform: uppercase;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% { box-shadow: 0 0 0 0 rgba(11, 114, 133, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(11, 114, 133, 0); }
    100% { box-shadow: 0 0 0 0 rgba(11, 114, 133, 0); }
}

/* ==================================================
   MOBILE RESPONSIVENESS TWEAKS
   ================================================== */

@media (max-width: 768px) {
    .gallery-page-home, .gear-page {
        padding: 30px 20px;
        margin: 0 15px 30px; /* Prevents box hitting screen edge */
    }
}