/* Warm & Sophisticated Color Palette */
:root {
    --primary-navy: #1a2332;
    --accent-gold: #d4a574;
    --pure-white: #FFFFFF;
    --warm-gray: #f8f7f5;
    --light-beige: #faf9f7;
    --text-main: #2c3340;
    --text-secondary: #6b7280;
    --border-subtle: #e8e6e3;
    --font-header: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--warm-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Header with Three Sections ========== */
.main-header {
    background: var(--pure-white);
    padding: 12px 0;
    border: 1px solid var(--border-subtle);
    border-radius: 16px; /* Rounded corners for floating effect */
    position: sticky;
    top: 12px; /* Space from top */
    margin: 12px 24px 0 24px; /* Space from top and sides */
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Container - Left Side */
.logo-container {
    padding-left: 24px;
    flex-shrink: 0;
    min-width: 200px; /* Ensures consistent width */
}

.logo {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 6px;
    transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }

.logo-primary {
    color: var(--primary-navy);
    letter-spacing: 0.5px;
}

.logo-accent {
    color: var(--accent-gold);
    font-weight: 400;
    font-style: italic;
}

/* Navigation Container - Centered */
.nav-container {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    justify-content: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* Prevent wrapping */
    transition: all 0.3s ease;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-link:hover {
    background: var(--light-beige);
    color: var(--primary-navy);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.08));
    color: var(--accent-gold);
}

.nav-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.nav-text {
    font-weight: 600;
}

/* Actions Container - Right Side */
.actions-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 24px;
    flex-shrink: 0;
    min-width: 200px; /* Match logo container for balance */
    justify-content: flex-end;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #c9985e);
    color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-avatar:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
    transform: scale(1.05);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--pure-white);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #c9985e);
    color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.user-menu-info {
    flex: 1;
}

.user-menu-name {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.user-menu-email {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.user-menu-items {
    padding: 0.5rem;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.user-menu-item:hover {
    background: var(--warm-gray);
    color: var(--primary-navy);
}

.user-menu-item i {
    font-size: 1.125rem;
}

.user-menu-logout {
    color: #ef4444;
}

.user-menu-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.user-menu-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.5rem 0;
}

.btn-icon-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: transparent;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.125rem;
}

.btn-icon-header:hover {
    background: var(--warm-gray);
    color: var(--primary-navy);
    border-color: var(--border-subtle);
}

.btn-header.btn-cta {
    background: linear-gradient(135deg, var(--accent-gold), #c9985e);
    color: var(--pure-white);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

.btn-header.btn-cta:hover {
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.4);
    transform: translateY(-1px);
}

/* Header Button Styles */
.btn-header {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-header.btn-search {
    background: transparent;
    color: var(--primary-navy);
    border: 1.5px solid var(--border-subtle);
}

.btn-header.btn-search:hover {
    background: var(--light-beige);
    border-color: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-1px);
}

.btn-header.btn-cta {
    background: linear-gradient(135deg, var(--accent-gold), #c9985e);
    color: var(--pure-white);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
    border: 1.5px solid transparent;
}

.btn-header.btn-cta:hover {
    background: linear-gradient(135deg, #c9985e, var(--accent-gold));
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.4);
    transform: translateY(-2px);
}

/* ========== Header Search Bar ========== */
.header-search {
    flex: 0 1 320px;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--warm-gray);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.search-form:focus-within {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(26, 35, 50, 0.06);
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-main);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.search-btn:hover {
    color: var(--primary-navy);
}

/* Preferences icon button */
.btn-pref {
    color: var(--text-secondary);
    background: transparent;
    padding: 8px;
    display: flex;
    align-items: center;
    border-radius: 50%;
}

.btn-pref:hover {
    color: var(--primary-navy);
    background: var(--warm-gray);
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a3548 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
    font-family: var(--font-header);
    font-size: 52px;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 16px;
    line-height: 1.2;
    max-width: 700px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    font-weight: 300;
    line-height: 1.6;
}

/* ========== Main Content ========== */
.main-wrapper { min-height: calc(100vh - 400px); }

.content-section {
    background: var(--warm-gray);
    padding: 20px 0; /* Reduced from 60px to 20px */
}

/* ========== News Page Styles ========== */
.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h2 {
    font-family: var(--font-header);
    font-size: 42px;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.news-subheading {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
}

.news-section { margin-bottom: 60px; }

.source-title {
    font-family: var(--font-header);
    font-size: 28px;
    color: var(--primary-navy);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-gold);
    display: inline-block;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

/* News Card with Image */
.news-card {
    background: var(--pure-white);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--warm-gray);
    flex-shrink: 0;
}

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

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.news-badge {
    background: var(--primary-navy);
    color: var(--pure-white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

.news-title {
    font-family: var(--font-header);
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 12px 0;
    color: var(--primary-navy);
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover { color: var(--accent-gold); }

.news-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.news-read-more {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    margin-top: auto;
}

.news-read-more:hover {
    color: var(--primary-navy);
    transform: translateX(4px);
}

.no-news {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    font-size: 18px;
}

/* ========== Tab Switcher ========== */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    border: 2px solid var(--primary-navy);
    background: var(--pure-white);
    color: var(--primary-navy);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover { background: var(--warm-gray); }

.tab-btn.active {
    background: var(--primary-navy);
    color: var(--pure-white);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* View All */
.view-all-wrap {
    text-align: center;
    margin: 40px 0 20px;
}

.btn-view-all {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent-gold);
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== Button Styles ========== */
.btn-primary {
    background: var(--accent-gold);
    color: var(--pure-white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: var(--pure-white);
}

.btn-full {
    width: 100%;
    display: block;
    text-align: center;
    padding: 14px 24px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 4px;
}

/* ========== Trust Bar ========== */
.trust-bar {
    background: var(--pure-white);
    padding: 32px 0;
    border-top: 1px solid var(--border-subtle);
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.trust-icon {
    font-size: 16px;
    color: var(--accent-gold);
}

/* ========== Footer ========== */
.main-footer {
    background: var(--primary-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    color: var(--pure-white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul { list-style: none; }

.footer-column ul li { margin-bottom: 10px; }

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover { color: var(--accent-gold); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== Flash Messages ========== */
.flash-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px 0;
}

.flash-msg {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.flash-icon { font-size: 16px; font-weight: 700; }

.flash-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.flash-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ========== Auth Page Styles ========== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 60px 20px;
}

.auth-card {
    background: var(--pure-white);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.auth-heading {
    font-family: var(--font-header);
    font-size: 32px;
    color: var(--primary-navy);
    text-align: center;
    margin: 0 0 8px;
}

.auth-subtext {
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 30px;
    font-size: 15px;
}

.auth-form .form-group { margin-bottom: 20px; }

.auth-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 15px;
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(26, 35, 50, 0.08);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-navy);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover { color: var(--accent-gold); }

/* ========== Modal ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 35, 50, 0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
}

.modal-overlay.active { display: flex; }

.modal-card {
    background: var(--pure-white);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-icon { font-size: 48px; margin-bottom: 20px; }

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--warm-gray);
    color: var(--text-main);
}

.modal-heading {
    font-family: var(--font-header);
    font-size: 28px;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.modal-subtext {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-modal {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-modal-primary {
    background: var(--primary-navy);
    color: var(--pure-white);
}

.btn-modal-primary:hover {
    background: #151b27;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-modal-secondary {
    background: transparent;
    color: var(--primary-navy);
    border-color: var(--border-subtle);
}

.btn-modal-secondary:hover {
    border-color: var(--primary-navy);
    background: var(--warm-gray);
}

.modal-dismiss {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-dismiss:hover { color: var(--accent-gold); }

/* ========== Login Prompt Banner ========== */
.login-prompt {
    position: relative;
    margin-top: -40px;
    padding-top: 80px;
    background: linear-gradient(to bottom, rgba(248,247,245,0) 0%, var(--warm-gray) 40%);
}

.login-prompt-inner {
    text-align: center;
    padding: 50px 30px;
    background: var(--pure-white);
    border-radius: 12px;
    border: 2px dashed var(--accent-gold);
    max-width: 600px;
    margin: 0 auto 40px;
    box-shadow: var(--shadow-md);
}

.login-prompt-inner h3 {
    font-family: var(--font-header);
    font-size: 28px;
    color: var(--primary-navy);
    margin: 0 0 10px;
}

.login-prompt-inner p {
    color: var(--text-secondary);
    margin: 0 0 24px;
    font-size: 16px;
}

.login-prompt-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== Search Page ========== */
.search-page {
    padding: 20px 0;
}

.search-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-page-header h2 {
    font-family: var(--font-header);
    font-size: 38px;
    color: var(--primary-navy);
    margin-bottom: 24px;
}

.search-form-large {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    gap: 12px;
}

.search-input-large {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--text-main);
    transition: border-color 0.2s;
}

.search-input-large:focus {
    outline: none;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(26, 35, 50, 0.06);
}

.search-results-info {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 30px;
}

/* News category tag */
.news-tag {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.tag-world {
    background: #e0f2fe;
    color: #0369a1;
}

.tag-business {
    background: #fef3c7;
    color: #92400e;
}

/* ========== Preferences Page ========== */
.pref-page {
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

.pref-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    margin-top: 0; /* Ensure no extra top margin */
}

.pref-header h2 {
    font-family: var(--font-header);
    font-size: 38px;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.pref-actions {
    margin-top: 18px; /* Add this - increase the top margin (currently it's probably around 20-30px) */
    padding-top: 18px;/* Optional: add padding for even more space */
    border-top: 2px solid var(--border-subtle); /* Optional: add a separator line */
}

.pref-subtext {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Guest Preferences Banner */
.guest-pref-banner {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c9985e 100%);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.25);
}

.guest-pref-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.guest-pref-banner .banner-content > i {
    font-size: 2rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.guest-pref-banner .banner-text strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.guest-pref-banner .banner-text p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

.guest-pref-banner .banner-text a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.guest-pref-banner .banner-text a:hover {
    opacity: 0.85;
}

/* Guest Counter */
.guest-counter {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.guest-counter.limit-reached {
    border-color: #f59e0b;
    background: #fffbeb;
}

.counter-text {
    font-size: 0.95rem;
    color: #475569;
    white-space: nowrap;
}

.counter-text strong {
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 700;
}

.counter-bar {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.counter-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 10px;
}

/* Limit Modal for Preferences */
.limit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.limit-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.limit-modal-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a3548 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.limit-modal-header i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.limit-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.limit-modal-body {
    padding: 2rem;
}

.limit-modal-body p {
    margin-bottom: 1rem;
    color: #374151;
}

.limit-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.limit-modal-body li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2937;
}

.limit-modal-body li i {
    color: #10b981;
    font-size: 1.25rem;
}

.limit-modal-footer {
    padding: 1.5rem 2rem;
    background: #f9fafb;
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-gold);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guest-counter {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .counter-text {
        text-align: center;
    }
    
    .limit-modal-footer {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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


/* Clear All button */
.btn-clear-all {
    margin-top: 16px;
    padding: 10px 24px;
    background: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-all:hover {
    background: #dc2626;
    color: var(--pure-white);
}

.pref-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid var(--border-subtle);
    border-radius: 50px;
    background: var(--pure-white);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    user-select: none;
    position: relative;
    gap: 8px;
}

.pref-chip input {
    display: none;
}

.pref-chip:hover {
    border-color: var(--accent-gold);
    background: var(--warm-gray);
}

.pref-chip.active,
.pref-chip:has(input:checked) {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--pure-white);
    padding-right: 36px;
}

/* Delete button on active chips */
.chip-delete {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.chip-delete:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

/* ========== Feed Page ========== */
.feed-page {
    padding: 20px 0;
}

.feed-header {
    margin-bottom: 32px;
}

.feed-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.feed-header-top h2 {
    font-family: var(--font-header);
    font-size: 38px;
    color: var(--primary-navy);
}

.active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pref-tag {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.tag-sector {
    background: #ede9fe;
    color: #5b21b6;
}

.tag-index {
    background: #e0f2fe;
    color: #0369a1;
}

.tag-commodity {
    background: #fef3c7;
    color: #92400e;
}

.feed-count {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

/* ========== News Card Modal System ========== */

/* Make news cards clickable */
.news-card {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-gold);
}

.news-card:active {
    transform: translateY(-2px);
}

/* Modal Overlay */
.article-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.article-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Content Container */
.article-modal-content {
    background: var(--pure-white);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    animation: modalSlideIn 0.3s ease forwards;
}

.article-modal-overlay.active .article-modal-content {
    transform: scale(1) translateY(0);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--warm-gray);
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1;
}

.modal-close-btn:hover {
    background: var(--primary-navy);
    color: var(--pure-white);
    transform: rotate(90deg);
}

/* Modal Header */
.article-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 2px solid var(--border-subtle);
}

.article-modal-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-modal-publisher {
    background: var(--accent-gold);
    color: var(--pure-white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-modal-date {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.article-modal-title {
    font-family: var(--font-header);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.3;
    margin: 0;
}

/* Modal Body */
.article-modal-body {
    padding: 30px;
}

.article-modal-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

.article-modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 24px;
}

/* Modal Footer */
.article-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.article-modal-read-btn {
    flex: 1;
    padding: 14px 24px;
    background: var(--accent-gold);
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.article-modal-read-btn:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-modal-share-btn {
    padding: 14px 20px;
    background: var(--warm-gray);
    color: var(--text-main);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.article-modal-share-btn:hover {
    background: var(--border-subtle);
}

/* ========== Article Detail Page ========== */

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

.breadcrumb .separator {
    color: var(--border-subtle);
}

.breadcrumb .current {
    color: var(--text-main);
    font-weight: 500;
}

.article-detail {
    background: var(--pure-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.article-detail-header {
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article-badge {
    background: var(--accent-gold);
    color: var(--pure-white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-category {
    background: var(--warm-gray);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-date {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.article-detail-title {
    font-family: var(--font-header);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.3;
    margin: 0;
}

.article-detail-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-detail-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.article-detail-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-main);
}

.article-detail-description {
    margin-bottom: 30px;
    white-space: pre-line;
}

.article-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 2px solid var(--border-subtle);
}

.btn-read-full {
    flex: 1;
    min-width: 200px;
    padding: 14px 24px;
    background: var(--accent-gold);
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-read-full:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-share {
    padding: 14px 24px;
    background: var(--warm-gray);
    color: var(--text-main);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.btn-share:hover {
    background: var(--border-subtle);
}

.btn-back {
    padding: 14px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-back:hover {
    border-color: var(--primary-navy);
    color: var(--primary-navy);
}

.related-articles {
    margin-top: 60px;
}

.related-articles h3 {
    font-family: var(--font-header);
    font-size: 28px;
    color: var(--primary-navy);
    margin-bottom: 24px;
}

/* ========== Active Nav Link ========== */
.nav-link.active {
    color: var(--primary-navy);
    background: var(--warm-gray);
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* ========== Hero CTAs ========== */
.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 16px 36px;
    background: var(--accent-gold);
    color: var(--pure-white);
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(212, 165, 116, 0.4);
}

.btn-hero-primary:hover {
    background: #c9985e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.5);
}

.btn-hero-secondary {
    padding: 16px 36px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ========== Hero Features Strip ========== */
.hero-features {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
}

.hero-feature-icon {
    font-size: 20px;
}

/* ========== Hamburger Menu ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Tooltip for icon buttons ========== */
.btn-pref {
    position: relative;
}

.btn-pref::after {
    content: 'Preferences';
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-navy);
    color: var(--pure-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.btn-pref:hover::after {
    opacity: 1;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .main-header .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-search {
        order: 4;
        flex: 1 1 100%;
    }

    .hero-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--pure-white);
        z-index: 1000;
        padding: 80px 24px 24px;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 16px 20px;
        font-size: 18px;
        border-bottom: 1px solid var(--border-subtle);
        border-radius: 0;
    }

    .nav-link.active {
        background: var(--warm-gray);
        border-left: 4px solid var(--accent-gold);
    }

    .nav-link.active::after {
        display: none;
    }

    .header-search {
        order: 4;
        flex: 1 1 100%;
    }

    .header-actions {
        gap: 8px;
    }

    .user-name {
        display: none;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-features {
        flex-direction: column;
        gap: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        text-align: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-header h2 {
        font-size: 30px;
    }

    .tab-container {
        flex-direction: column;
        align-items: stretch;
    }

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

    .trust-items {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .login-prompt-inner {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .news-header h2 {
        font-size: 26px;
    }

    .source-title {
        font-size: 22px;
    }
}

/* Enhanced Navigation - Jony Ive Philosophy */

.header-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu ul {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-link:hover {
    background: var(--light-beige);
    color: var(--primary-navy);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.08));
    color: var(--accent-gold);
}

.nav-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.nav-text {
    font-weight: 600;
}

/* Actions Container - Right Side */
.actions-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 24px;
    flex-shrink: 0;
    min-width: 200px; /* Match logo container for balance */
    justify-content: flex-end;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Remove the old .main-header .container rule since we're not using it anymore */

/* Mobile responsive */
@media (max-width: 968px) {
    .nav-link {
        padding: 0.625rem 0.75rem;
        justify-content: center;
        min-width: 40px;
    }
    
    .nav-icon {
        margin: 0; /* Center the icon */
    }
    
    .logo-container {
        min-width: 150px; /* Reduce logo space */
    }
    
    .actions-container {
        min-width: 150px; /* Reduce actions space */
    }
}

/* Mobile - Hide navigation, show hamburger */
@media (max-width: 768px) {
    .nav-container {
        display: none; /* Hide navigation on small mobile */
    }
    
    .hamburger {
        display: flex; /* Show hamburger menu */
    }
}

/* Tablet responsive - Make navigation compact but keep it visible */
@media (max-width: 1100px) {
    .main-header {
        margin: 12px 16px 0 16px;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        gap: 0.4rem;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    .logo-container {
        min-width: 160px;
        padding-left: 20px;
    }
    
    .actions-container {
        min-width: 160px;
        padding-right: 20px;
    }
}

@media (max-width: 968px) {
    .main-header {
        margin: 12px 12px 0 12px;
    }
    
    .nav-link {
        padding: 0.5rem 0.65rem;
        font-size: 0.8125rem;
        gap: 0.35rem;
    }
    
    .nav-icon {
        font-size: 0.95rem;
    }
    
    .logo-container {
        min-width: 140px;
        padding-left: 16px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .actions-container {
        min-width: 140px;
        padding-right: 16px;
    }
}

/* Only hide navigation on mobile phones (< 768px) */
@media (max-width: 767px) {
    .main-header {
        padding: 10px 0;
        margin: 8px 12px 0 12px;
        border-radius: 12px;
    }
    
    .nav-container {
        display: none; /* Hide navigation on small mobile */
    }
    
    .hamburger {
        display: flex; /* Show hamburger menu */
    }
    
    .logo-container {
        padding-left: 12px;
        min-width: auto;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .actions-container {
        padding-right: 12px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .main-header {
        margin: 8px 8px 0 8px;
    }
    
    .logo {
        font-size: 15px;
    }
}

/* Show only icons on medium screens */
@media (max-width: 968px) {
    .nav-text {
        display: none; /* Hide text, show only icons */
    }
    
    .nav-link {
        padding: 0.625rem 0.75rem;
        justify-content: center;
        min-width: 40px;
    }
    
    .nav-icon {
        margin: 0; /* Center the icon */
    }
}

/* Hide navigation only on mobile */
@media (max-width: 767px) {
    .nav-container {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

/* Guest Feed Banner */
.guest-feed-banner {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a3548 100%);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(26, 35, 50, 0.25);
}

.guest-feed-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.guest-feed-banner .banner-content > i {
    font-size: 2rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.guest-feed-banner .banner-text strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.guest-feed-banner .banner-text p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

.guest-feed-banner .banner-text a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.guest-feed-banner .banner-text a:hover {
    opacity: 0.85;
}

/* Feed Count Upgrade Hint */
.feed-count .upgrade-hint {
    color: #6366f1;
    font-weight: 500;
}

.feed-count .upgrade-hint a {
    color: #4f46e5;
    text-decoration: underline;
    font-weight: 600;
}

.feed-count .upgrade-hint a:hover {
    color: #4338ca;
}

/* Guest Info Tag */
.guest-info-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.guest-info-tag i {
    font-size: 14px;
}

.tag-source {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Guest CTA Card */
.guest-cta-card {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a3548 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin: 3rem 0 2rem;
    box-shadow: 0 20px 60px rgba(26, 35, 50, 0.35);
    position: relative;
    overflow: hidden;
}

.guest-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.guest-cta-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.cta-content {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-icon {
    flex-shrink: 0;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    width: 120px;
    height: 120px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-text {
    flex: 1;
    color: white;
}

.cta-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: white;
}

.cta-text > p {
    font-size: 1.125rem;
    margin: 0 0 2rem 0;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1rem;
}

.cta-feature i {
    font-size: 1.25rem;
    color: #86efac;
    flex-shrink: 0;
}

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

.btn-signup-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #667eea;
    padding: 1.125rem 2.5rem;
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-signup-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    background: #f9fafb;
}

.btn-signup-large i {
    font-size: 1.25rem;
}

.cta-login-prompt {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.cta-login-prompt a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.cta-login-prompt a:hover {
    opacity: 0.85;
}

/* Button Styles for Guest CTAs */
.btn-primary.btn-sm {
    background: var(--accent-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: none;
}

.btn-primary.btn-sm:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-outline.btn-sm {
    border: 1.5px solid var(--primary-navy);
    color: var(--primary-navy);
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-outline.btn-sm:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .guest-cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cta-icon {
        width: 100px;
        height: 100px;
        font-size: 4rem;
    }
    
    .cta-text h3 {
        font-size: 1.5rem;
    }
    
    .cta-text > p {
        font-size: 1rem;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
    }
    
    .btn-signup-large {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .feed-header-top {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .feed-header-top > div {
        width: 100%;
        justify-content: space-between;
    }
}

/* Guest Navigation Transitions */
.nav-menu ul {
    transition: all 0.3s ease;
}

.guest-nav-default,
.guest-nav-expanded {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Smooth expansion animation */
.nav-expanded {
    animation: navExpand 0.3s ease-out;
}

@keyframes navExpand {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

/* Hover effect for News toggle button */
#newsToggle {
    position: relative;
}

#newsToggle::after {
    content: ' ▾';
    font-size: 0.75em;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.nav-expanded #newsToggle::after {
    transform: rotate(180deg);
}

/* Mobile responsiveness for expanded nav */
@media (max-width: 768px) {
    .guest-nav-expanded {
        width: 100%;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .guest-nav-expanded .nav-link {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
}

/* Fading Gradient CTA */
.guest-cta-fade {
    position: relative;
    margin: -12rem 0 2rem; /* Negative margin to pull it up and overlap */
    padding: 12rem 0 3rem; /* Extra top padding to account for overlap */
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 15%,
        rgba(102, 126, 234, 0.03) 25%,
        rgba(102, 126, 234, 0.08) 40%,
        rgba(102, 126, 234, 0.12) 55%,
        rgba(102, 126, 234, 0.08) 70%,
        rgba(102, 126, 234, 0.03) 85%,
        rgba(102, 126, 234, 0) 100%
    );
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    z-index: 10; /* Ensure it's above the news cards */
}

.guest-cta-fade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(102, 126, 234, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.cta-fade-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.95); /* Add semi-transparent background */
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

/* Rest of the CSS remains the same */
.cta-fade-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cta-fade-header i {
    font-size: 3rem;
    color: #667eea;
    opacity: 0.8;
}

.cta-fade-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c9985e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-fade-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 2rem 0;
}

.cta-fade-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.fade-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.fade-feature:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.fade-feature i {
    color: #667eea;
    font-size: 1.1rem;
}

.cta-fade-actions {
    margin-top: 2.5rem;
}

.btn-fade-signup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-gold);
    color: white;
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.3);
}

.btn-fade-signup:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 35, 50, 0.4);
}

.btn-fade-signup i {
    font-size: 1.25rem;
}

.cta-fade-login {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cta-fade-login a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cta-fade-login a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .guest-cta-fade {
        margin: -4rem 0 2rem;
        padding: 6rem 0 2rem;
    }
    
    .cta-fade-content {
        padding: 2rem 1.5rem;
    }
    
    .cta-fade-header h3 {
        font-size: 1.5rem;
    }
    
    .cta-fade-description {
        font-size: 1rem;
    }
    
    .cta-fade-features {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .fade-feature {
        width: 100%;
        justify-content: center;
    }
    
    .btn-fade-signup {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

/* ========================================
   Elegant Overlapping CTA - Brand Colors
   ======================================== */

.guest-cta-elegant {
    position: relative;
    margin: -10rem 0 2rem;
    padding: 0;
    z-index: 10;
}

/* Sophisticated gradient backdrop */
.cta-elegant-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 8%,
        rgba(255, 255, 255, 0.85) 15%,
        rgba(248, 247, 245, 0.95) 25%,
        var(--warm-gray) 40%,
        var(--warm-gray) 100%
    );
    pointer-events: none;
}

.cta-elegant-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 14rem 2rem 4rem;
    z-index: 1;
}

.cta-elegant-content {
    background: var(--pure-white);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 3.5rem 3rem;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(26, 35, 50, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle accent line */
.cta-accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), #c9985e);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.cta-elegant-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-elegant-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 3rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Refined feature grid */
.cta-elegant-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 0 0 3rem 0;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--light-beige);
    transition: all 0.3s ease;
}

.cta-feature-item:hover {
    background: rgba(212, 165, 116, 0.08);
    transform: translateX(4px);
}

.feature-checkmark {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold);
    color: var(--pure-white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Elegant primary button */
.cta-elegant-actions {
    margin-top: 2.5rem;
}

.btn-elegant-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent-gold), #c9985e);
    color: var(--pure-white);
    padding: 1.125rem 3rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(212, 165, 116, 0.25),
        0 1px 3px rgba(212, 165, 116, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-elegant-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #c9985e, var(--accent-gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-elegant-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(212, 165, 116, 0.35),
        0 2px 8px rgba(212, 165, 116, 0.2);
}

.btn-elegant-primary:hover::before {
    opacity: 1;
}

.btn-elegant-primary:active {
    transform: translateY(0);
}

.btn-arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

.btn-elegant-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-elegant-primary > * {
    position: relative;
    z-index: 1;
}

.cta-elegant-signin {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cta-elegant-signin a {
    color: var(--primary-navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.cta-elegant-signin a:hover {
    color: var(--accent-gold);
    border-bottom-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guest-cta-elegant {
        margin: -6rem 0 2rem;
    }
    
    .cta-elegant-container {
        padding: 10rem 1.5rem 3rem;
    }
    
    .cta-elegant-content {
        padding: 2.5rem 1.75rem;
    }
    
    .cta-elegant-title {
        font-size: 1.875rem;
    }
    
    .cta-elegant-subtitle {
        font-size: 1rem;
    }
    
    .cta-elegant-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-feature-item {
        justify-content: flex-start;
    }
    
    .btn-elegant-primary {
        width: 100%;
        justify-content: center;
        padding: 1.125rem 2rem;
    }
}

@media (max-width: 480px) {
    .cta-elegant-title {
        font-size: 1.5rem;
    }
    
    .cta-elegant-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
}