/* ===========================================
   DivestWorld - Professional Minimal Design
   Colors: Apple/Stripe/BlackRock Style
   =========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Primary Colors */
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --header-dark: #0A1F44;
    --primary-blue: #1F5FBF;
    --primary-hover: #1A4F9F;
    
    /* Text Colors */
    --text-dark: #111827;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    
    /* Border & Shadow */
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p { color: var(--text-gray); }

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Plain link hover — scoped so it doesn't override buttons.
   Uses :not() to exclude any anchor with a class starting with btn,
   plus common UI element classes that style their own hover state. */
a:not([class*="btn"]):not(.nav-link):not(.mobile-nav-link):not(.tab-btn):not(.category-card):not(.pricing-card):not(.feature-card):not(.footer-col a):hover {
    color: var(--primary-hover);
}

/* Container */
.container {
    max-width:1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm { max-width: 960px; }
.container-lg { max-width: 1440px; }

/* ===========================================
   HEADER
   =========================================== */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--header-dark);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-gray);
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition-normal);
}

.main-nav a:hover {
    color: var(--text-dark);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: var(--header-dark);
    color: white;
}

.btn-secondary:hover {
    background: #0D2A5A;
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-medium);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(31, 95, 191, 0.05);
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-blue);  /* explicit, beats global a:hover cascade */
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-xl { padding: 20px 40px; font-size: 18px; }
.btn-block { width: 100%; }

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    background: linear-gradient(135deg, var(--header-dark) 0%, #0D2A5A 50%, #1A3F6F 100%);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect fill="url(%23grid)" width="100" height="100"/></svg>');
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

/* Search Box */
.hero-search {
    background: white;
    border-radius: var(--radius-xl);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 700px;
    margin: 0 auto;
}

.search-category {
    display: flex;
    gap: 4px;
}

.search-category button {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.search-category button.active,
.search-category button:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.search-divider {
    width: 1px;
    height: 32px;
    background: var(--border-light);
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
}

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

.search-btn {
    padding: 16px 28px;
    border-radius: var(--radius-lg);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

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

.hero-stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.hero-stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: 4px;
}

/* ===========================================
   CATEGORIES SECTION
   =========================================== */
.categories {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    background: white;
    border-color: var(--primary-blue);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    background: var(--primary-blue);
    color: white;
}

.category-card h4 {
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
}

.category-count {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 12px;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* ===========================================
   FEATURED LISTINGS
   =========================================== */
.featured-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.featured-header h2 {
    margin-bottom: 0;
}




/* ===========================================
   WHY CHOOSE US
   =========================================== */
.why-choose {
    padding: 100px 0;
    background: var(--header-dark);
    color: white;
}

.why-choose h2 {
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.why-card {
    text-align: center;
    padding: 32px 24px;
}

.why-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: var(--primary-blue);
}

.why-card h4 {
    color: white;
    margin-bottom: 12px;
}

.why-card p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue), #1A4F9F);
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
    background: var(--header-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-blue);
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 24px;
}

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

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.6);
}

/* ===========================================
   FORMS
   =========================================== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-fast);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(31, 95, 191, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%236B7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 44px;
}

/* ===========================================
   CARDS & BADGES
   =========================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary { background: rgba(31, 95, 191, 0.1); color: var(--primary-blue); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* ===========================================
   ALERTS
   =========================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success { background: rgba(16, 185, 129, 0.1); color: #065F46; border: 1px solid rgba(16, 185, 129, 0.2); }
.alert-error { background: rgba(239, 68, 68, 0.1); color: #991B1B; border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #92400E; border: 1px solid rgba(245, 158, 11, 0.2); }

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   FILTERS SIDEBAR
   =========================================== */
.filter-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
}

.filter-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h4 {
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-gray);
}

.filter-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
}

.filter-option:hover {
    color: var(--text-dark);
}

/* ===== PRICE RANGE FINAL FIX ===== */
.price-range {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-top: 5px;
}

.price-range span {
    text-align: center;
    font-weight: 600;
    color: #6B7280;
    font-size: 14px;
}

.price-range input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.price-range input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(31, 95, 191, 0.1);
}


/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .listings-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .main-nav { display: none; }
    
    .hero { padding: 60px 0 80px; }
    .hero h1 { font-size: 2rem; }
    .hero-search { flex-direction: column; padding: 16px; }
    .search-category { flex-wrap: wrap; justify-content: center; }
    .search-divider { display: none; }
    .hero-stats { gap: 30px; }
    .hero-stat-value { font-size: 1.8rem; }
    
    .categories-grid { grid-template-columns: 1fr; }
    .listings-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .steps-grid::before { display: none; }
    .why-grid { grid-template-columns: 1fr; }
    
    .cta-buttons { flex-direction: column; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ===========================================
   PAGE SPECIFIC
   =========================================== */
.page-header-section {
    background:#0f2b52;
    padding: 60px 0;
    text-align: center;
}

.page-header-section h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-header-section p {
    color: rgba(255,255,255,1);
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
}

.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

.page-content {
    padding: 60px 0;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

/* ===========================================
   SELL PAGE COMPLETE FIX (FINAL)
   Matches Buy Page Layout + Responsive
   =========================================== */

/* Container spacing fix */
.page-content .container {
    padding-left: 24px;
    padding-right: 24px;
}

/* Card spacing */
.card {
    margin-bottom: 24px;
}

/* Benefits Section */
.sell-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.sell-benefits i {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.sell-benefits h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.sell-benefits p {
    font-size: 14px;
    line-height: 1.5;
}

/* Card Text */
.card h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.card p {
    font-size: 15px;
}

/* Steps */
.step {
    text-align: center;
}

.step h3 {
    font-size: 16px;
    margin-top: 10px;
}

.step p {
    font-size: 14px;
}

.step-number {
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 16px;
}

/* Pricing */
.pricing-card {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: #fff;
}

.pricing-card h3 {
    font-size: 18px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0;
}

/* ===========================================
   TABLET
   =========================================== */
@media (max-width: 1024px) {
    .sell-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .page-content {
        padding: 30px 0;
    }

    .page-content .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .card {
        padding: 18px;
        border-radius: 12px;
    }

    .sell-benefits {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card h2 {
        font-size: 22px;
    }

    .sell-benefits h3 {
        font-size: 16px;
    }

    .sell-benefits p {
        font-size: 13px;
    }

    .step h3 {
        font-size: 15px;
    }

    .step p {
        font-size: 13px;
    }

    .btn-lg {
        width: 100%;
    }

    .pricing-card {
        margin-bottom: 16px;
    }
}
/* ===========================================
   HOW TO SELL GRID FIX
   =========================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    text-align: center;
}

/* Line between steps (Desktop only) */
.steps-grid .step {
    position: relative;
}

.steps-grid .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    right: -10px;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.step-number {
    position: relative;
    z-index: 1;
}

/* Tablet */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .steps-grid .step::after {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
/* ===========================================
   HOW TO SELL - FINAL DESKTOP + MOBILE FIX
   =========================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
    text-align: center;
    align-items: start;
}

/* Horizontal line between steps */
.steps-grid .step {
    position: relative;
}

.steps-grid .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    right: -10px;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
}

/* Tablet */
@media (max-width: 1100px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid .step::after {
        display: none;
    }
}

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

/* ===========================================
   PRICING GRID (FINAL)
   =========================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.pricing-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #fff;
    transition: 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Highlight Featured Plan */
.pricing-card:nth-child(2) {
    border: 2px solid var(--primary-blue);
    transform: scale(1.05);
}

.price {
    font-size: 26px;
    font-weight: bold;
    margin: 10px 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
/* ===========================================
   STARTUP FUNDING PAGE DESIGN FIX
   =========================================== */

/* Header Tabs */
.header-tabs {
    margin-top: 15px;
}

.header-tabs a {
    display: inline-block;
    margin-right: 20px;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    background: #f3f4f6;
    font-size: 14px;
}

.header-tabs a.active {
    background: var(--primary-blue);
    color: #fff;
}

/* Raise Funding Section */
.raise-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
    margin-bottom: 30px;
}

.raise-benefits i {
    font-size: 26px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.raise-cta {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

/* Startup Cards */
.startup-card .funding-progress {
    margin: 12px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-blue);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .raise-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .header-tabs a {
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }
}
/* ===========================================
   STARTUP FUNDING PROFESSIONAL LAYOUT
   =========================================== */

.listings-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

/* Startup Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.startup-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}

.startup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Tablet */
@media (max-width: 1024px) {
    .listings-layout {
        grid-template-columns: 1fr;
    }

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

/* Mobile */
@media (max-width: 768px) {
    .listings-layout {
        grid-template-columns: 1fr;
    }
}
/* ===========================================
  

/* ===========================================
   STARTUP RAISE FUNDING - GLOBAL UI
   =========================================== */

.raise-funding {
    background: #f8fafc;
    padding: 60px 0;
}

.raise-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.raise-benefits .benefit {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    transition: 0.3s;
}

.raise-benefits .benefit:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.raise-benefits i {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 12px;
    background: #eef2ff;
    padding: 15px;
    border-radius: 50%;
}

.raise-benefits h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.raise-benefits p {
    font-size: 14px;
    color: var(--text-gray);
}

/* CTA Box */
.raise-cta {
    text-align: center;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    max-width: 700px;
    margin: auto;
}

.raise-cta h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.raise-cta .btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Tabs */
.header-tabs {
    margin-top: 20px;
}

.header-tabs a {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-dark);
    background: #eef2ff;
    font-size: 14px;
}

.header-tabs a.active {
    background: var(--primary-blue);
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .raise-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .raise-cta h2 {
        font-size: 24px;
    }
}
/* Startup Tabs Toggle */
.header-tabs {
    margin-top: 20px;
}

.header-tabs a {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
    background: #eef2ff;
    color: var(--text-dark);
    transition: 0.3s;
    font-weight: 500;
}

.header-tabs a.active {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.header-tabs a:hover {
    background: var(--primary-blue);
    color: #fff;
}
/* ===========================================
   REGISTER PAGE - WORLD CLASS UI
   =========================================== */

.auth-section {
    padding: 70px 0;
    background: #f8fafc;
}

.auth-wrapper-wide {
    max-width: 900px;
    margin: auto;
}

.auth-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.auth-header h1 {
    font-size: 34px;
    margin-bottom: 5px;
}

.auth-header p {
    color: #6b7280;
    margin-bottom: 25px;
}

/* Role Cards */
.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.role-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: 0.3s;
    background: #fff;
}

.role-card:hover {
    border-color: #2563eb;
    background: #f1f5ff;
}

.role-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.role-card input {
    display: none;
}

.role-label {
    font-weight: 600;
    display: block;
}

.role-desc {
    font-size: 13px;
    color: #6b7280;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus {
    border-color: #2563eb;
    outline: none;
}

/* Button */
.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
    border-radius: 8px;
}

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

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

    .auth-card {
        padding: 25px;
    }

    .auth-header h1 {
        font-size: 26px;
    }
}
/* Password Eye Icon Fix */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon input {
    width: 100%;
    height: 45px;
    padding-left: 40px;
    padding-right: 45px;
    box-sizing: border-box;
}

/* LEFT ICON */
.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* EYE ICON */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

/* ===============================
   LISTING DETAIL - PROFESSIONAL UI
   =============================== */

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: #f4f6f9;
}

.container {
    max-width: 1600x;
    margin: auto;
    padding: 0 20px;
}

.listing-detail {
    padding: 30px 0 60px;
}

.listing-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* LEFT SIDE */
.listing-main {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* TITLE */
.listing-header h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

.listing-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* IMAGE */
.gallery-main img {
    width: 100%;
    border-radius: 10px;
    margin-top: 15px;
}

/* SECTION */
.listing-section {
    margin-top: 35px;
}

.listing-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* METRICS */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.metric-card {
    background: #f8f9fb;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
}

.metric-label {
    font-size: 13px;
    color: #777;
}

.metric-value {
    font-size: 20px;
    font-weight: 600;
    margin-top: 5px;
    color: #111;
}

/* DESCRIPTION */
.description-content {
    line-height: 1.7;
    color: #333;
}

/* RIGHT SIDEBAR */
.listing-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* PRICE CARD */
.price-card {
    text-align: center;
    background: #f8fbff;
    border: 1px solid #e3edff;
}

.price-label {
    color: #666;
    font-size: 14px;
}

.price-value {
    font-size: 34px;
    font-weight: 700;
    color: #1f5fbf;
    margin-top: 5px;
}

/* OWNER */
.owner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owner-avatar {
    width: 50px;
    height: 50px;
    background: #1f5fbf;
    color: white;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* BUTTONS */
.btn {
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: 0.2s;
}

.btn-primary {
    background: #1f5fbf;
    color: white;
}

.btn-primary:hover {
    background: #174a96;
}

.btn-outline {
    border: 1px solid #ddd;
    color: #333;
    background: #fff;
}

.btn-outline:hover {
    background: #f5f5f5;
}

.btn-block {
    width: 100%;
    margin-bottom: 12px;
}

/* SHARE */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #f1f3f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

/* BUY PAGE GRID */
.listings-page {
    /* Phase 3 grid hotfix v4 (root cause fix):
       Was display:grid with 280px+1fr columns, which forced the inner
       .container into a 280px first column (collapsing .bb-layout to ~204px).
       Each listing page (.bb-layout, .fr-layout, .sf-layout) defines its
       OWN sidebar+content grid internally, so this outer grid was redundant
       AND broken. Setting display:block lets the inner grids size correctly. */
    display: block;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}



/* ===========================================
   LOGIN PAGE - PROFESSIONAL UI (FINAL)
   =========================================== */

/* ===========================================
   LOGIN PAGE - FINAL PROFESSIONAL POLISH
   =========================================== */

/* Left Side Styling */
.auth-left h1 {
    font-size: 44px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.auth-left p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 25px;
}

/* Feature list */
.auth-left ul {
    margin-top: 20px;
}

.auth-left ul li {
    font-size: 15px;
    margin-bottom: 14px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Circle check icon */
.auth-left ul li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #1f5fbf;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* Login card header */
.auth-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.auth-card p {
    font-size: 14px;
    color: #64748b;
}

/* Inputs more premium */
.form-group input {
    padding: 14px 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f9fafb;
}

.form-group input:focus {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Login button premium */
.btn-login {
    margin-top: 10px;
    border-radius: 10px;
    font-size: 16px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(31, 95, 191, 0.25);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(31, 95, 191, 0.35);
}

/* Card spacing */
.auth-card {
    padding: 40px;
}

/* Divider line */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider:not(:empty)::before {
    margin-right: 10px;
}

.auth-divider:not(:empty)::after {
    margin-left: 10px;
}

/* Existing CSS above */

/* =========================
   AUTH PROFESSIONAL LAYOUT
   ========================= */

.auth-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
}

.auth-left h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f172a;
}

.auth-left p {
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 16px;
}

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

.auth-left ul li {
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-left ul li::before {
    content: "✓";
    background: #1f5fbf;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.auth-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #1f5fbf;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

.btn-login:hover {
    background: #174a96;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
}

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

    .auth-left {
        text-align: center;
    }
}
/* =========================================
   DIVESTWORLD PROFESSIONAL LISTING LAYOUT
   ========================================= */

.listing-wrapper {
    display: flex;
    gap: 30px;
}

/* Left Filter Sidebar */
.filter-sidebar {
    width: 280px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    height: fit-content;
}

/* Right Content Area */
.listing-content {
    flex: 1;
}

/* Page Title */
.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
}

.page-subtitle {
    color: #64748b;
    margin-bottom: 20px;
}

/* Result Count */
.result-count {
    color: #64748b;
    margin-bottom: 20px;
}

/* Empty State Professional */
.empty-state {
    background: #ffffff;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    padding: 80px 20px;
    text-align: center;
    margin-top: 20px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.empty-state p {
    color: #64748b;
    font-size: 16px;
}

/* Light page background */
.page-section {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
}
/* =========================
   EMPTY STATE - MODERN CARD
   ========================= */

.no-results-box {
    background: #f3f4f6;
    border-radius: 16px;
    padding: 60px 30px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid #e5e7eb;
}

.no-results-icon {
    font-size: 60px;
    color: #c7cdd6;
    margin-bottom: 20px;
}

.no-results-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.no-results-box p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

.no-results-box .btn {
    width: 320px;
    max-width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .no-results-box {
        padding: 40px 20px;
    }

    .no-results-box h2 {
        font-size: 22px;
    }

    .no-results-icon {
        font-size: 45px;
    }

    .no-results-box .btn {
        width: 100%;
    }
}


/* =========================================
   STARTUP HERO HEADER
   ========================================= */

.startup-hero {
    background: #0f2a52;
    padding: 90px 0;
    text-align: center;
}

.startup-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.startup-hero p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

/* Tabs */
.startup-hero .header-tabs {
    margin-top: 15px;
}

.startup-hero .header-tabs a {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 25px;
    margin: 5px;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.startup-hero .header-tabs a.active,
.startup-hero .header-tabs a:hover {
    background: #2563eb;
}

/* Breadcrumb */
.startup-hero .breadcrumb {
    margin-top: 15px;
    font-size: 14px;
    color: #cbd5e1;
}

.startup-hero .breadcrumb a {
    color: #e2e8f0;
    text-decoration: none;
}

.startup-hero .breadcrumb span {
    margin: 0 6px;
    color: #94a3b8;
}

/* =========================================
   LEARN PAGE
   ========================================= */

.learn-page {
    padding: 60px 0;
}

.learn-section {
    margin-bottom: 50px;
}

.learn-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.learn-section p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
}

.learn-list {
    padding-left: 20px;
    color: #6b7280;
    line-height: 1.8;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.service-card i {
    font-size: 32px;
    color: #2f5fb3;
    margin-bottom: 10px;
}
/* =========================================
   CTA SECTION - FRESH FINAL
   ========================================= */

.cta-section {
    background: linear-gradient(135deg, #2f5fb3, #1f4fa3);
    padding: 90px 20px;
    text-align: center;
    color: #ffffff;
}

.cta-section h2 {
    font-size: 40px;
    margin-bottom: 10px;
    color: #ffffff;
}

.cta-section p {
    font-size: 18px;
    color: #e5e7eb;
    margin-bottom: 35px;
}

/* Buttons Layout */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Button 1 */
.cta-btn-primary {
    background: #ffffff;
    color: #1f4fa3 !important;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    min-width: 240px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

/* Button 2 */
.cta-btn-secondary {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid #ffffff;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    min-width: 240px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

/* Hover */
.cta-btn-primary:hover {
    background: #f1f5f9;
}

.cta-btn-secondary:hover {
    background: #ffffff;
    color: #1f4fa3 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        max-width: 320px;
    }
}
/* =========================================
   CTA SECTION - FINAL FIXED
   ========================================= */

.cta-section {
    background: linear-gradient(135deg, #2f5fb3, #1f4fa3);
    padding: 90px 20px;
    text-align: center;
    color: #ffffff;
}

.cta-section h2 {
    font-size: 40px;
    margin-bottom: 10px;
    color: #ffffff;
}

.cta-section p {
    font-size: 18px;
    color: #e5e7eb;
    margin-bottom: 35px;
}

/* Buttons Layout */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Button 1 - White Button */
.cta-btn-primary {
    background: #ffffff;
    color: #1f4fa3;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    min-width: 240px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
    border: 2px solid #ffffff;
}

.cta-btn-primary:hover {
    background: #f1f5f9;
}

/* Button 2 - Outline Button (BLUE TEXT) */
.cta-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    min-width: 240px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

/* Hover = White background + Blue text */
.cta-btn-secondary:hover {
    background: #ffffff;
    color: #1f4fa3;
}

/* Mobile */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        max-width: 320px;
    }
}
/* ===== CTA BUTTON COLOR FIX ===== */

.cta-section .cta-btn-primary {
    background: #ffffff;
    color: #1f4fa3 !important;
    border: 2px solid #ffffff;
}

.cta-section .cta-btn-secondary {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid #ffffff;
}

.cta-section .cta-btn-secondary:hover {
    background: #ffffff;
    color: #1f4fa3 !important;
}
/* ===== CTA BUTTONS FINAL SAME STYLE ===== */

.cta-buttons a {
    background: #e5e7eb;
    color: #1f4fa3;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    min-width: 220px;
    text-align: center;
    font-size: 16px;
    border: none;
    transition: 0.2s ease;
}

/* Hover */
.cta-buttons a:hover {
    background: #dbeafe;
    color: #1f4fa3;
}

/* Click */
.cta-buttons a:active {
    background: #c7d7fe;
    color: #1f4fa3;
}

/* After Click (Focus) */
.cta-buttons a:focus {
    background: #e5e7eb;
    color: #1f4fa3;
    outline: none;
}



/* =========================================
   ABOUT PAGE
   ========================================= */

.about-page {
    padding: 60px 20px;
    background: #f5f7fb;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: auto;
    margin-bottom: 50px;
}

.about-intro h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.about-intro p {
    font-size: 16px;
    color: #6c7a89;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.stat {
    background: #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat h3 {
    font-size: 32px;
    color: #2f5fb3;
    margin-bottom: 5px;
}

/* Values */
.about-values {
    text-align: center;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.value-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.value-card i {
    font-size: 32px;
    color: #2f5fb3;
    margin-bottom: 15px;
}

.value-card h3 {
    margin-bottom: 10px;
}

/* Contact CTA */
.about-contact {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 50px;
    text-align: center;
    border-radius: 12px;
}

.about-contact p {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* =========================================
   CONTACT PAGE - PROFESSIONAL UI
   ========================================= */

.contact-page {
    padding: 70px 20px;
    background: #f5f7fb;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* Contact Info */
.contact-info h2 {
    margin-bottom: 10px;
}

.contact-subtitle {
    color: #6c7a89;
    margin-bottom: 25px;
    font-size: 14px;
}

.info-card {
    display: flex;
    gap: 15px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.info-card .icon {
    width: 45px;
    height: 45px;
    background: #eaf0fb;
    color: #2f5fb3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.info-card h4 {
    margin-bottom: 5px;
}

.info-card a {
    color: #2f5fb3;
    text-decoration: none;
}

/* Contact Form */
.contact-form-wrapper {
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2f5fb3;
    outline: none;
}

/* Button */
.contact-form .btn {
    margin-top: 10px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-message i {
    font-size: 42px;
    color: green;
    margin-bottom: 10px;
}

/* Map Section */
.contact-map {
    padding: 70px 20px;
    background: #ffffff;
    text-align: center;
}

.contact-map h2 {
    margin-bottom: 25px;
}

/* CTA Section */
.contact-cta {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    text-align: center;
    padding: 70px 20px;
}

.contact-cta h2 {
    margin-bottom: 10px;
}

.contact-cta p {
    margin-bottom: 20px;
    color: rgba(255,255,255,0.85);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-form-wrapper {
        padding: 25px;
    }
}
<?php
/* =========================================
   SELL PAGE
   ========================================= */

.sell-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    text-align: center;
}

.benefit i {
    font-size: 32px;
    color: #2f5fb3;
    margin-bottom: 10px;
}

/* Steps */
.sell-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

.sell-steps::before {
    content: "";
    position: absolute;
    top: 55px;
    left: 8%;
    width: 84%;
    height: 3px;
    background: #e0e6ef;
    z-index: 0;
}

.step-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    width: 23%;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-height: 180px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #2f5fb3;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #e0e6ef;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.pricing-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.pricing-card.featured {
    border: 2px solid #2f5fb3;
    transform: scale(1.05);
}

.price {
    font-size: 32px;
    font-weight: bold;
    margin: 15px 0;
    color: #2f5fb3;
}

/* Responsive */
@media (max-width: 992px) {
    .sell-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .sell-steps {
        flex-direction: column;
    }

    .sell-steps::before {
        display: none;
    }

    .step-card {
        width: 100%;
        margin-bottom: 20px;
    }

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


/* =========================================
   CTA SECTION - FINAL PROFESSIONAL
   ========================================= */

.hiw-cta {
    background: linear-gradient(135deg, #2f5fb3, #1f4fa3);
    color: #ffffff;
    padding: 80px 20px;
    border-radius: 16px;
    text-align: center;
    margin-top: 60px;
}

.hiw-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff;
}

.hiw-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

/* CTA Button */
.hiw-cta .btn-primary {
    background: #ffffff;
    color: #2f5fb3;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
}

.hiw-cta .btn-primary:hover {
    background: #e9efff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =========================================
   PAGE HEADER (Same as Buy Business)
   ========================================= */

.page-header {
    background: linear-gradient(135deg, #2f5fb3, #1f4fa3);
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-header p {
    font-size: 18px;
    color: #ffffff;
    margin: 0;
}

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, #2f5fd0, #1c3faa);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* HOW IT WORKS - HORIZONTAL MODERN UI */
.how-it-works {
    padding: 80px 0;
    background:#f5f7fb;
}

.hiw-section {
    margin-bottom: 80px;
}

.hiw-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 35px;
    color: #1f2d3d;
    font-weight: 700;
}

/* HORIZONTAL STEPS */
.steps-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 25px;
    flex-wrap: wrap;
    position: relative;
}

/* STEP CARD */
.step-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 14px;
    text-align: center;
    flex: 1;
    min-width: 230px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;

    opacity: 0;
    transform: translateY(40px);
    animation: stepFade 0.6s ease forwards;
}

.step-card:nth-child(2) { animation-delay: 0.15s; }
.step-card:nth-child(3) { animation-delay: 0.30s; }
.step-card:nth-child(4) { animation-delay: 0.45s; }

/* HOVER EFFECT */
.step-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* NUMBER CIRCLE */
.step-circle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #2f5fd0, #1c3faa);
    color: #fff;
    border-radius: 50%;
    line-height: 65px;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 18px;
}

/* TEXT */
.step-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: #1f2d3d;
}

.step-card p {
    font-size: 14px;
    color: #6c757d;
}

/* CONNECTING LINE */
.steps-horizontal::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 8%;
    width: 84%;
    height: 4px;
    background: #dfe6f1;
    z-index: 0;
}

/* CTA */
.hiw-cta {
    text-align: center;
    margin-top: 20px;
}

.hiw-cta h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.hiw-cta p {
    margin-bottom: 20px;
    color: #6c757d;
}

/* ANIMATION */
@keyframes stepFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .steps-horizontal::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .steps-horizontal {
        flex-direction: column;
    }
}
.container {
    max-width: 1200px;
    margin: auto;
    width: 90%;
}
/* UNIVERSAL DARK HERO HEADER */
.hero-dark {
    background: #163a5f; /* Solid dark blue like your image */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.hero-dark h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-dark p {
    font-size: 17px;
    color: #cbd5e1;
}

/* Breadcrumb */
.hero-dark .breadcrumb {
    font-size: 14px;
    margin-top: 8px;
    color: #cbd5e1;
}

.hero-dark .breadcrumb a {
    color: #e2e8f0;
    text-decoration: none;
}

/* Fix spacing under header */
.hero-dark + section {
    margin-top: 40px;
}
.legal-page {
    padding: 60px 0;
    background: #f8f9fc;
}

.legal-content {
    max-width: 900px;
    margin: auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.legal-content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #1f2b3a;
    font-size: 18px;
    font-weight: 600;
}

.legal-content p {
    color: #555;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content ul li {
    margin-bottom: 10px;
    color: #444;
}
/* Franchise Grid */
.franchise-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
}

.franchise-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: #fff;
    padding: 18px;
    transition: 0.3s;
}

.franchise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.listings-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

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

.listing-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.listing-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing-card-content {
    padding: 18px;
}

.listing-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.listing-card-buttons {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.listing-card-buttons .btn {
    flex: 1;
    text-align: center;
}

@media (max-width: 1024px) {
    .listings-layout {
        grid-template-columns: 1fr;
    }
}
.price-box {
    margin: 15px 0;
}

.old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 18px;
}

.new-price {
    font-size: 34px;
    font-weight: 700;
    color: #1f5fbf;
}

.price-note {
    font-size: 13px;
    color: #6b7280;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-features li {
    margin-bottom: 8px;
    font-size: 14px;
}

.pricing-card.featured {
    border: 2px solid #1f5fbf;
    transform: scale(1.05);
}
