/* No Google Fonts import needed — using system Tahoma */

/* ══════════════════════════════════════════════════════════════
   WHITE AURAE — DESIGN SYSTEM
   ══════════════════════════════════════════════════════════════ */

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

/* ── Universal font override — Tahoma everywhere ─────────────────────────── */
* {
    font-family: Tahoma, 'Arial Hebrew', Arial, sans-serif !important;
}


body {
    background-color: #EFF3EE !important;
    color: #2D3748 !important;
    font-family: Tahoma, 'Arial Hebrew', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    direction: rtl;
}

/* ══ LOGO ZONE — unshrinkable steel wall ════════════════════ */
#logo-zone {
    flex: 0 0 520px !important;
    min-width: 520px !important;
    max-width: 520px !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

#wa-logo-anchor {
    display: block !important;
    width: 520px !important;
    min-width: 520px !important;
    height: 130px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background-image: url('/static/Logo.png') !important;
    background-size: 1183px 663px !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Actual img element is visually hidden but kept for SEO / accessibility */
#wa-logo-img {
    display: none !important;
}

/* ── Floating Pill Navbar — inside flex row ───────────────── */
#bento-navbar {
    /* flex:1 is set inline; don't fight it with max-width/margin:auto */
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

.nav-pill-btn {
    background: rgba(255,255,255,0.92) !important;
    color: #4A5568 !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 999px !important;
    padding: 10px 22px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    font-family: 'Assistant', sans-serif !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.nav-pill-btn:hover {
    background: rgba(132,159,134,0.12) !important;
    color: #3A6B3E !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(132,159,134,0.18) !important;
}

.nav-pill-btn.active {
    background: #849F86 !important;
    color: #ffffff !important;
    border-color: #849F86 !important;
    box-shadow: 0 4px 14px rgba(132,159,134,0.30) !important;
}

/* ── Two-Tier Header ──────────────────────────────────────── */
header#hero-section {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 20px 0 0 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
}

/* ══ BENTO SEARCH ════════════════════════════════════════════ */
.bento-search-wrap {
    width: 100%;
    max-width: 620px;
}

.bento-search-inner {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.09);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 6px 6px 6px 20px;
    gap: 8px;
}

.bento-search-inner input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-family: 'Assistant', sans-serif;
    font-size: 1rem;
    color: #2D3748;
    outline: none;
    padding: 6px 0 !important;
    min-width: 0;
    direction: rtl;
}

.bento-search-inner button {
    background: #849F86 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 8px 22px !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: none !important;
    white-space: nowrap;
    transform: none !important;
}

.bento-search-inner button:hover {
    background: #6C8B6F !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ══ CATEGORY TABS ═══════════════════════════════════════════ */
#archive-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tab-btn {
    background: rgba(255,255,255,0.85) !important;
    color: #4A5568 !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 999px !important;
    padding: 7px 18px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    font-family: Tahoma, Arial, sans-serif !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    white-space: nowrap;
    transform: none !important;
}

.tab-btn:hover {
    background: rgba(132,159,134,0.12) !important;
    color: #3A6B3E !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(132,159,134,0.15) !important;
}

.tab-btn.active {
    background: #849F86 !important;
    color: #ffffff !important;
    border-color: #849F86 !important;
    box-shadow: 0 4px 12px rgba(132,159,134,0.30) !important;
}

.tab-btn::after { display: none !important; }

/* ══ SPA VIEWS ═══════════════════════════════════════════════ */
.spa-view {
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hidden { display: none !important; }

/* ══ ARTICLE BENTO GRID ══════════════════════════════════════ */
#archive-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
    padding: 0 20px 40px 20px;
}

.article-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #fff;
    display: flex;
    flex-direction: column;
    animation: cardIn 0.45s ease both;
}

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

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.16);
}

.card-hero-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.article-card:hover .card-hero-image {
    transform: scale(1.04);
}

.aura-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2D3748;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.02em;
}

.aura-badge__score { color: #849F86; }

.card-star-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,0.88) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13) !important;
    font-size: 1rem !important;
    transform: none !important;
    line-height: 1 !important;
    direction: ltr;
    overflow: visible;
    flex-shrink: 0;
}

.card-star-btn:hover {
    background: rgba(255,255,255,1) !important;
    transform: scale(1.12) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18) !important;
}

.card-star-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    overflow: visible;
    pointer-events: none;
    flex-shrink: 0;
}

.card-body {
    padding: 18px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card-category-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #849F86;
    opacity: 0.85;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1A202C;
    line-height: 1.4;
    margin: 0;
}

.card-summary {
    font-size: 0.88rem;
    color: #4A5568;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.card-date {
    font-size: 0.75rem;
    color: #A0AEC0;
}

.card-teaser {
    padding: 16px 18px 14px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    min-height: 0;
    overflow: visible;
}

.card-hook {
    font-size: 0.93rem;
    font-weight: 400;
    color: #2D3748;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    display: block;
}

.card-read-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: #849F86;
    margin-top: 4px;
    transition: color 0.2s;
}

.article-card:hover .card-read-more {
    color: #3A6B3E;
}

.card-meta {
    padding: 8px 18px 12px;
    font-size: 0.76rem;
    color: #A0AEC0;
    border-top: 1px solid rgba(0,0,0,0.05);
}


/* ══ ARTICLE READER MODAL ════════════════════════════════════ */
#article-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#article-modal {
    background: #ffffff;
    border-radius: 24px;
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 72px rgba(0,0,0,0.22);
    position: relative;
    padding: 0;
}

.article-modal-hero {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
    display: block;
}

.article-modal-body {
    padding: 32px 36px 36px 36px;
}

.article-modal-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #849F86;
    margin-bottom: 10px;
}

.article-modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1A202C;
    line-height: 1.35;
    margin: 0 0 18px 0;
}

.article-modal-meta {
    font-size: 0.8rem;
    color: #A0AEC0;
    margin-bottom: 22px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.article-modal-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #2D3748;
    white-space: pre-wrap;
}

.article-modal-close {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    background: rgba(255,255,255,0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #4A5568 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12) !important;
    z-index: 10;
    transform: none !important;
}

.article-modal-close:hover {
    background: rgba(255,255,255,1) !important;
    color: #1A202C !important;
    transform: none !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.16) !important;
}

/* ══ AUTH / LOGIN / REGISTER MODALS ══════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.50);
    backdrop-filter: blur(5px);
    z-index: 8500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 72px rgba(0,0,0,0.18);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A202C;
    margin: 0;
    text-align: center;
}

.modal-box p {
    font-size: 0.88rem;
    color: #718096;
    text-align: center;
    margin: 0;
}

.modal-box input[type="text"],
.modal-box input[type="email"],
.modal-box input[type="password"] {
    width: 100%;
    background: #F7FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px;
    color: #2D3748 !important;
    padding: 12px 16px !important;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-box input:focus {
    border-color: #849F86 !important;
    box-shadow: 0 0 0 3px rgba(132,159,134,0.20) !important;
}

.primary-btn {
    background: #849F86 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 13px 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: Tahoma, Arial, sans-serif !important;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
    transform: none !important;
    box-shadow: 0 4px 14px rgba(132,159,134,0.25) !important;
}

.primary-btn:hover {
    background: #6C8B6F !important;
    transform: none !important;
    box-shadow: 0 6px 18px rgba(132,159,134,0.32) !important;
}

.secondary-link {
    text-align: center;
    font-size: 0.85rem;
    color: #849F86;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

.modal-close-btn {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    cursor: pointer;
    color: #A0AEC0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transform: none !important;
}

.modal-close-btn:hover {
    color: #4A5568 !important;
    background: #F7FAFC !important;
    transform: none !important;
    box-shadow: none !important;
}

.error-msg {
    color: #E53E3E;
    font-size: 0.85rem;
    text-align: center;
    min-height: 18px;
}

/* Password toggle wrapper */
.pw-wrapper {
    position: relative;
    width: 100%;
}

.pw-wrapper input {
    width: 100%;
    padding-right: 44px !important;
}

.pw-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    color: #A0AEC0 !important;
    display: flex !important;
    align-items: center !important;
    width: 22px !important;
    height: 22px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.pw-toggle:hover {
    color: #4A5568 !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pw-toggle svg { width: 18px; height: 18px; }

/* SSO Buttons */
.sso-divider {
    text-align: center;
    font-size: 0.8rem;
    color: #A0AEC0;
    position: relative;
    padding: 4px 0;
}

.sso-divider::before,
.sso-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #E2E8F0;
}
.sso-divider::before { left: 0; }
.sso-divider::after { right: 0; }

.sso-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    background: #F7FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 11px 16px !important;
    font-family: 'Assistant', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #2D3748 !important;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-shadow: none !important;
    transform: none !important;
    width: 100%;
}

.sso-btn:hover {
    background: #EDF2F7 !important;
    border-color: #CBD5E0 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ══ SKELETON LOADER ═════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, #EDF2F7 25%, #E2E8F0 50%, #EDF2F7 75%);
    background-size: 200% 100%;
    animation: skeletonLoad 1.5s infinite;
    border-radius: 8px;
    height: 20px;
    margin-bottom: 0.5rem;
}

.skeleton.title { width: 30%; height: 24px; margin-bottom: 1rem; }
.skeleton.text-full { width: 100%; }
.skeleton.text-short { width: 80%; }

@keyframes skeletonLoad {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ══ COMMUNITY VIEW ══════════════════════════════════════════ */
#globe-container {
    width: 100%;
    max-width: 760px;
    aspect-ratio: 1;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    box-shadow: none !important;
}

#community-chat-panel {
    width: 100%;
    max-width: 760px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
    max-height: 420px;
}

.chat-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #849F86;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.chat-msg-bubble {
    background: #F7FAFC;
    border-radius: 14px 14px 14px 4px;
    padding: 10px 14px;
    max-width: 78%;
}

.chat-msg-bubble.own {
    background: #849F86;
    color: #fff;
    border-radius: 14px 14px 4px 14px;
    margin-left: auto;
}

.chat-msg-name {
    font-size: 0.73rem;
    font-weight: 700;
    color: #849F86;
    margin-bottom: 3px;
}

.chat-msg-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-msg-time {
    font-size: 0.68rem;
    color: #A0AEC0;
    margin-top: 4px;
    text-align: right;
}

#chat-input-row {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
    align-items: center;
}

#chat-input {
    flex: 1;
    background: #F7FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 999px;
    padding: 10px 18px !important;
    font-family: 'Assistant', sans-serif;
    font-size: 0.95rem;
    outline: none;
    color: #2D3748 !important;
}

#chat-send-btn {
    background: #849F86 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    font-size: 1.1rem !important;
    flex-shrink: 0;
    transition: background 0.2s ease !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(132,159,134,0.25) !important;
}

#chat-send-btn:hover {
    background: #6C8B6F !important;
    transform: none !important;
}

/* ══ ADMIN TOOLS ═════════════════════════════════════════════ */
#admin-tools {
    width: 100%;
    max-width: 1280px;
    background: rgba(255,248,220,0.95);
    border: 1px solid #ffd700;
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

#admin-tools button {
    background: #ffd700 !important;
    color: #744210 !important;
    border-radius: 999px !important;
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

#admin-tools button:hover {
    background: #f6c200 !important;
    transform: none !important;
}

/* ══ FOOTER ══════════════════════════════════════════════════ */
footer {
    width: 100%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(0,0,0,0.07);
    margin-top: 60px;
    padding: 40px 0 20px 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4A5568;
    margin: 0 0 14px 0;
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: #718096;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: #849F86; }

.footer-col p {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.footer-newsletter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-newsletter input {
    flex: 1;
    min-width: 140px;
    background: #F7FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 999px;
    padding: 9px 16px !important;
    font-family: 'Assistant', sans-serif;
    font-size: 0.88rem;
    outline: none;
    color: #2D3748 !important;
}

.footer-newsletter button {
    background: #849F86 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 9px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transform: none !important;
    box-shadow: none !important;
    white-space: nowrap;
}

.footer-newsletter button:hover {
    background: #6C8B6F !important;
    transform: none !important;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}

.footer-social-icon:hover {
    background: #EDF2F7;
    border-color: #CBD5E0;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 32px 0 32px;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    font-size: 0.78rem;
    color: #A0AEC0;
    line-height: 1.8;
}

/* ══ FOOTER MODALS ═══════════════════════════════════════════ */
#footer-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.48);
    backdrop-filter: blur(4px);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#footer-modal-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 580px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 72px rgba(0,0,0,0.18);
    position: relative;
}

#footer-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1A202C;
    margin: 0 0 18px 0;
}

#footer-modal-content {
    font-size: 0.92rem;
    line-height: 1.85;
    color: #4A5568;
}

#footer-modal-close {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    cursor: pointer;
    color: #A0AEC0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transform: none !important;
}

#footer-modal-close:hover {
    color: #1A202C !important;
    background: #F7FAFC !important;
    transform: none !important;
}

/* ══ RESULT BOX ══════════════════════════════════════════════ */
#result-box {
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
}

/* ══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 900px) {
    #logo-zone {
        flex: 0 0 200px !important;
        min-width: 200px !important;
        max-width: 200px !important;
    }
    #wa-logo-anchor {
        width: 200px !important;
        min-width: 200px !important;
        height: 60px !important;
        background-size: 455px 255px !important;
    }
    #archive-feed {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
        padding: 0 12px 32px 12px;
    }
}

@media (max-width: 600px) {
    body { padding: 0; }
    #logo-zone {
        flex: 0 0 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
    }
    #wa-logo-anchor {
        width: 160px !important;
        min-width: 160px !important;
        height: 50px !important;
        background-size: 364px 204px !important;
    }
    #archive-feed {
        grid-template-columns: 1fr;
        padding: 0 10px 24px 10px;
    }
    .bento-search-wrap { max-width: 100%; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ══ REINFORCEMENT: header layout lock ══════════════════════ */
header#hero-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

/* ─── LOGO ZONE: absolute steel wall — cannot shrink ─── */
#logo-zone {
    flex: 0 0 520px !important;
    min-width: 520px !important;
    max-width: 520px !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow: visible !important;
}

#wa-logo-anchor {
    display: block !important;
    width: 520px !important;
    min-width: 520px !important;
    height: 130px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background-image: url('/static/Logo.png') !important;
    background-size: 1183px 663px !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Logo img — hidden, bg used instead */
#wa-logo-img,
header img[alt*="White Aurae"] {
    display: none !important;
}

/* Only hide orphan SVGs that aren't part of the logo */
header svg:not(#wa-logo-img svg) { display: none !important; }
