/* -------------------------------------------------
   MAIN.CSS — Y-CONNECT PLATFORM STYLES
   Consolidated from all pages (Global, SME, Success, Investor)
   Author: Y-Connect
   Version: 1.0 - CLEANED
---------------------------------------------------*/

/* -------------------------------------------------
   GLOBAL BASE STYLES
---------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --success: #10b981;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

body {
    background-color: #f1f5f9;
    color: var(--secondary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -------------------------------------------------
   HEADER + NAVIGATION (UPDATED FOR RESPONSIVENESS)
---------------------------------------------------*/
header {
    background-color: white;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    color: var(--accent);
}

.logo a {
    text-decoration: none;
    color: var(--secondary);
}

/* New: Wrapper for nav links and auth buttons for mobile control */
.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 0.5rem;
}

/* -------------------------------------------------
   AUTH BUTTON STYLING (SMALL, PILL-SHAPED)
---------------------------------------------------*/
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Reduced gap for smaller buttons */
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    /* Smaller padding */
    border-radius: 10px;
    /* Pill-like shape */
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.auth-btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.auth-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: none;
    box-shadow: none;
}

.auth-btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.auth-buttons.logged-in a {
    padding: 0.6rem 1rem;
}

.auth-buttons.logged-in .auth-btn i {
    margin-right: 0.5rem;
}

/* Livewire Logout Button Styling */
.auth-buttons button[type="submit"] {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.auth-buttons button[type="submit"]:hover {
    background-color: var(--primary-dark);
}


/* -------------------------------------------------
   BUTTONS (General Content Buttons - Larger size)
---------------------------------------------------*/
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

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

.btn-light:hover {
    background-color: var(--light-gray);
}

/* -------------------------------------------------
   BREADCRUMB
---------------------------------------------------*/
.breadcrumb {
    padding: 1.5rem 0;
    background-color: white;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------
   HERO / SEARCH (INVESTOR/GLOBAL)
---------------------------------------------------*/
/* Hero Section (Investor/Global) */
.hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Using a minimal data URI for a subtle graphic */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%232563eb" opacity="0.05"><polygon points="1000,100 1000,0 0,100"></polygon></svg>');
    background-size: cover;
}

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

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Search Section (Investor/Global) */
.search-section {
    background-color: white;
    padding: 3rem 0;
    margin: -3rem 0 3rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-control {
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.search-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    grid-column: 1 / -1;
}

.search-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* -------------------------------------------------
   SME PAGE STYLES
---------------------------------------------------*/
/* SME HEADER + DETAILS PAGE */
.sme-header {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    padding: 3rem 0;
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.sme-header-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.sme-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.sme-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sme-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.sme-tagline {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.sme-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.meta-item i {
    color: var(--primary);
}

.sme-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Funding Section */
.funding-section {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.funding-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.funding-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.funding-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.funding-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray);
}

.funding-actions {
    display: flex;
    gap: 1rem;
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-card {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.content-card h2 {
    margin-bottom: 1rem;
}

.content-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Team Grid (SME Detail) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

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

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 0.75rem;
    border: 2px solid #eee;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #555;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.member-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.member-role {
    color: #777;
    font-size: 0.9rem;
}


/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background-color: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
}

/* -------------------------------------------------
   SUCCESS STORIES PAGE STYLES
---------------------------------------------------*/
.success-hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.success-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.success-hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.success-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.filter-section {
    background-color: white;
    padding: 2rem 0;
    margin: -2rem 0 3rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background-color: var(--light);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background-color: var(--primary);
    color: white;
}

/* Story Cards */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.story-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.story-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Featured Story */
.featured-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Testimonials (Success Page) */
.testimonial-card {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

/* CTA Section (Success Page) */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-radius: 16px;
    margin: 4rem 0;
}

/* -------------------------------------------------
   INVESTOR PAGE STYLES
---------------------------------------------------*/

/* Investor Benefits */
.benefits-section {
    margin: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.benefit-card p {
    color: var(--gray);
}

/* SME Listings */
.sme-listings {
    margin-bottom: 4rem;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.sme-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
}

.sme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.card-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.card-content p {
    color: var(--gray);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.funding-tag {
    display: inline-block;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Investor Testimonials */
.testimonials-section {
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Testimonial Card (Investor Page - kept the more detailed one) */
.testimonial-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content p {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--light-gray);
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    line-height: 1;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--secondary);
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* How It Works */
.process-section {
    margin-bottom: 4rem;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 3rem 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: var(--light-gray);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.step p {
    color: var(--gray);
    max-width: 250px;
    margin: 0 auto;
}

/* -------------------------------------------------
   FOOTER
---------------------------------------------------*/
footer {
    background-color: var(--secondary);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* -------------------------------------------------
   RESPONSIVE DESIGN (FINAL VERSION)
---------------------------------------------------*/
@media (max-width: 992px) {

    /* Button resizing for general mobile screens */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .navbar {
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }

    .menu-toggle {
        display: block;
        /* Show the toggle button */
        order: 2;
    }

    .logo {
        order: 1;
    }

    .nav-content {
        display: none;
        /* Hide the content wrapper by default */
        flex-direction: column;
        width: 100%;
        order: 3;
        gap: 1.5rem;
        padding-bottom: 0.5rem;
        align-items: stretch;
    }

    /* Show the menu when the 'active' class is toggled on the navbar */
    .navbar.active .nav-content {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        padding-top: 1rem;
        border-top: 1px solid var(--light-gray);
    }

    .nav-links a {
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a::after {
        display: none;
        /* Hide desktop underline effect on mobile */
    }

    .auth-buttons {
        justify-content: center;
        padding-bottom: 1rem;
    }

    .auth-btn,
    .auth-buttons button[type="submit"] {
        flex: 1;
        max-width: 48%;
    }

    /* General Layout Adjustments */
    .content-layout {
        grid-template-columns: 1fr;
    }

    .funding-details {
        grid-template-columns: 1fr;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

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

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Investor/Global Page Adjustments */
    .hero h1 {
        font-size: 2.2rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .listings-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

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

@media (max-width: 576px) {

    /* Stack buttons on very small screens */
    .auth-buttons {
        flex-direction: column;
    }

    .auth-btn,
    .auth-buttons button[type="submit"] {
        max-width: 100%;
    }
}