/* ══════════════════════════════════════
   CRITICAL FIXES
   ══════════════════════════════════════ */

/* Ensure body has no white-space issues */
body { overflow-x: hidden; }

/* Make sure hero fills viewport height if no content pushes it */
.hero-section { min-height: auto; }

/* Fix for Tailwind CDN not loading styles properly on some servers */
.hero-section,
.section,
.section-alt,
.cta-section,
.testimonials-section {
    position: relative;
}

/* Iconify icons — ensure they render */
.iconify { display: inline-block; vertical-align: middle; }

/* WordPress admin bar offset */
body.admin-bar .site-header { inset-block-start: 32px; }
@media (max-width: 782px) {
    body.admin-bar .site-header { inset-block-start: 46px; }
}

/* Fix: image placeholders visible when no images uploaded */
.hero-image-frame img,
.about-image-wrap img {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    min-height: 200px;
}

/* Search form styling */
.search-form { display: flex; gap: 0.5rem; }
.search-form .search-field {
    flex: 1; padding: 0.5rem 0.75rem; border: 1px solid #e5e7eb;
    border-radius: 0.375rem; font-size: 0.8125rem; outline: none;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
}
.search-form .search-field:focus { border-color: #2563eb; }
.search-form .search-submit {
    background: #2563eb; color: #fff; border: none; padding: 0.5rem 1rem;
    border-radius: 0.375rem; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
}
.search-form .search-submit:hover { background: #1d4ed8; }

/* Pagination */
.nav-links { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.nav-links a, .nav-links span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
    font-size: 0.8125rem; font-weight: 600; transition: all 0.2s;
}
.nav-links a { background: #fff; color: #374151; border: 1px solid #e5e7eb; }
.nav-links a:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.nav-links span.current { background: #2563eb; color: #fff; }

/* WordPress caption */
.wp-caption { margin: 1.5rem 0; max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: #6b7280; text-align: center; margin-top: 0.5rem; }

/* WordPress gallery */
.gallery { display: grid; gap: 0.5rem; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item img { border-radius: 0.5rem; width: 100%; }