/*
=================================================================
--- GLOBAL STYLES & THEME VARIABLES ---
=================================================================
*/

:root {
    --border-radius: 12px;
    --primary-color: #00aaff;
    --primary-hover: #00c6ff;
    
    --bg-glass: rgba(18, 18, 30, 0.65);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --error-color: #ff4757;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #05050a; 
    color: var(--text-primary);
    margin: 0;
    overflow-x: hidden;
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    background-color: #0c0c16;
    background-attachment: fixed;
}

.container {
    max-width: 1300px; 
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

i { margin-right: 8px; }

.hidden { display: none !important; }

/*
=================================================================
--- HEADER & NAVIGATION STYLES ---
=================================================================
*/
header {
    background-color: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.animated-border {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, #9d00ff, #ff00c1, #00fff2, #ff8c00, #9d00ff);
    background-size: 300% 100%;
    animation: animated-gradient 8s linear infinite;
}
@keyframes animated-gradient {
    0% { background-position: 150% 0; }
    100% { background-position: -150% 0; }
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 20px 0 30px 0; 
}
.logo-link { height: 40px; display: flex; align-items: center; }
.logo-image { height: 100%; width: auto; }
.desktop-nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.desktop-nav a { text-decoration: none; color: var(--text-secondary); font-weight: 500; transition: color 0.2s, text-shadow 0.2s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary-color); text-shadow: 0 0 5px var(--primary-color); }
.nav-controls { display: flex; align-items: center; gap: 15px; margin-left: auto; }
#auth-container { display: flex; align-items: center; gap: 10px; }
.btn-login { background-color: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); padding: 8px 16px; border-radius: var(--border-radius); text-decoration: none; font-weight: 500; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; font-size: 1rem; }
.btn-login:hover { background-color: var(--primary-color); color: #fff; box-shadow: 0 0 15px var(--primary-color); }

/* --- NEW USER PROFILE DROPDOWN --- */
.profile-dropdown-container { position: relative; }
.btn-user-profile {
    background: none; border: 2px solid var(--border-color);
    width: 42px; height: 42px; border-radius: 50%;
    padding: 0; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: border-color 0.2s ease;
}
.btn-user-profile:hover { border-color: var(--primary-color); }
.btn-user-profile img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.user-dropdown {
    display: none; position: absolute; top: calc(100% + 10px); right: 0;
    background: var(--bg-glass); backdrop-filter: blur(10px);
    border: 1px solid var(--border-color); border-radius: var(--border-radius);
    list-style: none; margin: 0; padding: 10px; min-width: 220px;
    z-index: 101; box-shadow: var(--card-shadow);
}
.user-dropdown li a {
    color: var(--text-primary); text-decoration: none; display: flex;
    align-items: center; padding: 12px 10px; border-radius: 8px;
    font-weight: 500; transition: background-color 0.2s, color 0.2s;
}
.user-dropdown li a:hover { background-color: var(--primary-color); color: #fff; }
.user-dropdown li:last-child { border-top: 1px solid var(--border-color); margin-top: 5px; padding-top: 5px; }

/* --- NAVIGATION SEARCH BUTTON --- */
#nav-search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}
#nav-search-btn i {
    margin-right: 0;
}
#nav-search-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}


/* --- MOBILE MENU --- */
.mobile-menu-toggle { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; display: none; z-index: 1001; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav-panel { position: fixed; top: 0; right: -300px; width: 280px; height: 100%; background-color: #1a1a2e; padding: 20px; box-sizing: border-box; z-index: 999; box-shadow: -5px 0 15px rgba(0,0,0,0.2); transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex; flex-direction: column; }
.mobile-nav-panel.open { right: 0; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.close-menu-btn { background: none; border: none; font-size: 1.8rem; color: var(--text-secondary); cursor: pointer; }
.mobile-nav-panel ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav-panel li { margin-bottom: 25px; }
.mobile-nav-panel a { color: var(--text-primary); text-decoration: none; font-size: 1.1rem; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.mobile-nav-panel a.active { color: var(--primary-color); }
#mobile-auth-item a { background-color: var(--primary-color); color: #fff; padding: 10px 15px; border-radius: var(--border-radius); justify-content: center; }

/*
=================================================================
--- SEARCH OVERLAY STYLES ---
=================================================================
*/
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 12, 22, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1010;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

#search-overlay.active {
    display: block;
    opacity: 1;
}

#search-overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
#search-overlay-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.search-overlay-content {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 40px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.search-overlay-input-container {
    position: relative;
    margin-bottom: 40px;
}
.search-overlay-input-container i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.5rem;
}

#overlay-search-input {
    width: 100%;
    padding: 20px 20px 20px 70px;
    font-size: 1.5rem;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#overlay-search-input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.search-overlay-results {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px; /* for scrollbar */
}
/* Custom scrollbar for overlay */
.search-overlay-results::-webkit-scrollbar {
    width: 8px;
}
.search-overlay-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.search-overlay-results::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.search-results-section {
    margin-bottom: 40px;
}
.search-results-section .section-header h2 {
    font-size: 1.5rem; /* smaller header in overlay */
    padding-bottom: 5px;
}
.search-results-section .item-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* slightly smaller cards in overlay */
}

/*
=================================================================
--- AUTHENTICATION FORM STYLES (for login.html/register.html) ---
=================================================================
*/
.auth-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
}
.auth-form-container {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--card-shadow);
    text-align: center;
}
.auth-form-container h1 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2rem;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    box-sizing: border-box;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}
.btn-auth {
    width: 100%;
    background: var(--primary-color);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-auth:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px var(--primary-hover);
}
.auth-switch-link {
    margin-top: 25px;
    color: var(--text-secondary);
}
.auth-switch-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.auth-switch-link a:hover {
    text-decoration: underline;
}
.error-message {
    color: var(--error-color);
    background-color: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--error-color);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none; /* Hidden by default */
}


/*
=================================================================
--- HOMEPAGE & OTHER CONTENT PAGES ---
=================================================================
*/
main { 
    padding-top: 0; 
    padding-bottom: 60px; 
}

/* --- NEW WELCOME SECTION --- */
.welcome-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 60px 20px;
    text-align: center;
    overflow: hidden;
    background-color: #0c0c16; /* Fallback */
    background-image:
        radial-gradient(ellipse 80% 80% at 50% -20%, rgba(0, 170, 255, 0.3), rgba(255, 255, 255, 0)),
        url('https://www.transparenttextures.com/patterns/dark-matter.png');
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.welcome-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(157, 0, 255, 0.25) 0%, rgba(157, 0, 255, 0) 70%);
    transform: translate(-50%, -50%);
    animation: pulseGlow 10s infinite ease-in-out;
    z-index: 0;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
}

.welcome-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
}

.welcome-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out forwards;
}

.welcome-content h1 .highlight {
    background: linear-gradient(90deg, var(--primary-color), #ff00c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.welcome-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.welcome-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-action.primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.3);
}

.btn-action.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.4);
}

.btn-action.secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-action.secondary:hover {
    background-color: var(--text-primary);
    color: #0c0c16;
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/*
=================================================================
--- GENERIC SLIDER & SECTION STYLES ---
=================================================================
*/
.item-section, .trending-section, .sponsor-section { margin-top: 50px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 10px; }
.section-header h2 { font-size: 2rem; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 10px; margin: 0; }
.view-all-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.view-all-link:hover { color: var(--primary-color); }
.mobile-view-all { display: none; } /* Hide mobile link by default */

.slider-container { position: relative; }
.slider-wrapper { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; user-select: none; cursor: grab; }
.slider-wrapper:active { cursor: grabbing; }
.slider-wrapper::-webkit-scrollbar { display: none; }
.slider-grid { display: flex; gap: 20px; padding-bottom: 10px; }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); background-color: var(--bg-glass);
    border: 1px solid var(--border-color); color: var(--text-primary); width: 40px; height: 40px;
    border-radius: 50%; font-size: 1rem; cursor: pointer; z-index: 10; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s ease;
}
.slider-arrow:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.slider-arrow.prev-arrow { left: -10px; }
.slider-arrow.next-arrow { right: -10px; }
.slider-arrow i { margin: 0; }
/* Grid container for non-slider pages (like airdrops.html) */
.item-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
/*
=================================================================
--- UNIFIED CARD STYLES (For Homepage, airdrops.html & campaigns.html) ---
=================================================================
*/
/* Base card style applied to all card classes */
.project-card, .airdrop-card-new, .campaign-card-v2 {
    flex-shrink: 0;
    height: 220px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    color: var(--text-primary);
    text-decoration: none !important; /* Ensure link styles don't override */
    display: block;
    transition: transform 0.3s ease;
    box-shadow: var(--card-shadow);
    background-color: #11111a;
    border: none;
}
/* Sizing for cards inside sliders on homepage */
.slider-grid .project-card,
.slider-grid .airdrop-card-new,
.slider-grid .campaign-card-v2 {
    flex-basis: calc(25% - 15px);
}

.project-card:hover, .airdrop-card-new:hover, .campaign-card-v2:hover {
    transform: translateY(-5px);
}
.project-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.project-card:hover .project-card-bg,
.airdrop-card-new:hover .project-card-bg,
.campaign-card-v2:hover .project-card-bg {
    transform: scale(1.1);
}
.project-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.card-info-box-wrapper {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}
.card-info-box {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px;
    text-align: center;
    border-radius: calc(var(--border-radius) - 4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.card-info-box h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-info-box p {
    margin: 4px 0 0 0;
    font-size: 1rem;
    color: var(--text-secondary);
}
.card-info-box .live-time {
    color: var(--primary-color);
    font-weight: 500;
}
.project-tag {
    position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px;
    font-size: 0.75rem; font-weight: bold; color: #fff; z-index: 3;
}
.tag-airdrop { background-color: #ff8c00; }
.tag-campaign { background-color: #9d00ff; }
.tag-live { background-color: var(--primary-color); }
.tag-ended { background-color: #7f8c8d; }

.no-results-message { color: var(--text-primary); padding: 40px; text-align: center; font-size: 1.2rem; background: var(--bg-glass); border-radius: var(--border-radius); width: 100%; }

/*
=================================================================
--- FOOTER STYLES ---
=================================================================
*/
footer { background-color: var(--bg-glass); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 50px 0 20px 0; color: var(--text-secondary); margin-top: 80px; position: relative; }
.animated-border-top { position: absolute; top: 0; left: 0; height: 1px; width: 100%; background: linear-gradient(90deg, #9d00ff, #ff00c1, #00fff2, #ff8c00, #9d00ff); background-size: 300% 100%; animation: animated-gradient 8s linear infinite reverse; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; } 
.footer-about, .footer-links, .footer-social { flex: 1; min-width: 250px; text-align: center; }
footer h3, footer h4 { color: var(--text-primary); margin-bottom: 20px; font-weight: 600; }
.footer-about { text-align: left;}
.footer-about p { line-height: 1.7; font-size: 1rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }
.footer-social a { color: var(--text-secondary); font-size: 1.5rem; margin: 0 10px; transition: color 0.2s, transform 0.2s; }
.footer-social a:hover { color: var(--primary-color); transform: scale(1.2); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 20px; font-size: 0.9rem; }

/*
=================================================================
--- RESPONSIVENESS MEDIA QUERIES ---
=================================================================
*/
@media (max-width: 1350px) { 
    .slider-grid .project-card, .slider-grid .airdrop-card-new, .slider-grid .campaign-card-v2 { 
        flex-basis: calc(33.333% - 14px);
    }
}

@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .desktop-view-all { display: none; }
    .mobile-view-all { display: inline; }

    .slider-grid .project-card, .slider-grid .airdrop-card-new, .slider-grid .campaign-card-v2 {
        flex-basis: calc(50% - 10px);
    }

    .slider-container { padding: 0; }
    .slider-arrow { display: none !important; } /* Hide arrows on tablets and below */

    .footer-about { text-align: center; }
    
    .welcome-content h1 {
        font-size: 3rem;
    }
    
    .btn-action {
        padding: 12px 22px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .welcome-actions {
        flex-direction: column; 
        gap: 15px;
        align-items: center; 
    }
    .btn-action {
        width: 100%;
        max-width: 340px; 
    }
    #overlay-search-input { font-size: 1.2rem; padding: 15px 15px 15px 50px;}
    .search-overlay-input-container i { font-size: 1.2rem; left: 15px; }
    #search-overlay-close { right: 20px; top: 20px; font-size: 2rem;}
    .search-overlay-content { padding: 60px 20px 20px 20px; }
}

@media (min-width: 993px) {
    #nav-search-btn {
        margin-right: 15px;
    }
}

@media (max-width: 576px) {
    .nav-controls { gap: 8px; }

    nav {
        padding: 20px 0;
    }

    .welcome-section {
        min-height: auto;
        padding: 40px 15px;
    }
    .welcome-bg-glow {
        width: 150%; 
    }
    .welcome-content h1 {
        font-size: 2.2rem;
    }
    .welcome-content .subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    /* --- FIX: Stacking and sizing buttons for mobile --- */
    .welcome-actions {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        align-items: center; /* Center the stack of buttons */
    }

    .btn-action {
        width: 100%; /* Make buttons take full available width */
        max-width: 320px; /* Set a max-width to look good */
        box-sizing: border-box; /* Ensures padding is included in width calculation */
        font-size: 1rem; /* Smaller font for smaller buttons */
        padding: 12px 20px; /* Adjusted padding for smaller size */
    }
    
    .project-card, .airdrop-card-new, .campaign-card-v2 {
        height: auto;
        aspect-ratio: 1 / 1;
    }
    
    .slider-grid .project-card, .slider-grid .airdrop-card-new, .slider-grid .campaign-card-v2 {
        flex-basis: 85%;
    }
    .slider-wrapper {
        padding-left: 5%; 
    }
}

/*
=================================================================
--- SPONSOR SECTION STYLES (Corrected and Refined) ---
=================================================================
*/
.sponsor-section {
    position: relative;
    margin: 50px auto;
    max-width: 900px;
    width: 100%;
}

.sponsor-section .slider-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.sponsor-section .slider-grid {
    display: flex;
    justify-content: flex-start; /* Default for slider */
    gap: 0;
    padding-bottom: 0;
}

.sponsor-card {
    position: relative;
    width: 900px;
    height: 500px;
    flex-shrink: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    background-color: #11111a;
    transition: transform 0.3s ease;
}
.sponsor-card:hover {
    transform: scale(1.02);
}

.sponsor-banner-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.sponsor-card:hover .sponsor-banner-bg {
    transform: scale(1.1);
}

.sponsor-project-logo {
    position: absolute;
    left: 50%;
    bottom: 100px; 
    transform: translate(-50%, 50%);
    width: 120px;
    height: 120px;
    background: var(--bg-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border-color);
    padding: 0; /* Remove padding */
    box-sizing: border-box;
    z-index: 4;
    overflow: hidden; /* To ensure image respects border-radius */
}
.sponsor-project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the circle completely */
}

.sponsor-tags {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-wrap: wrap; /* Allow tags to wrap on smaller screens */
    gap: 8px;
    z-index: 3;
}

.sponsor-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}
/* Ensure sponsor tags have backgrounds */
.sponsor-tag.tag-new { background-color: rgba(0, 170, 255, 0.7); }
.sponsor-tag.tag-hot { background-color: rgba(255, 71, 87, 0.7); }
.sponsor-tag.tag-campaign { background-color: rgba(157, 0, 255, 0.7); }
.sponsor-tag.tag-airdrop { background-color: rgba(255, 140, 0, 0.7); }
.sponsor-tag.tag-featured { background-color: rgba(46, 204, 113, 0.7); }

.sponsor-info-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    padding: 15px 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
}

.sponsor-info-overlay .info-item {
    text-align: center;
}
.sponsor-info-overlay .project-name {
    text-align: left;
    flex-grow: 1;
}
.sponsor-info-overlay .project-name h4 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}
.sponsor-info-overlay .project-pool,
.sponsor-info-overlay .project-end-date {
    border-left: 1px solid var(--border-color);
    padding-left: 30px;
    margin-left: 30px;
}
.sponsor-info-overlay .info-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 5px;
}
.sponsor-info-overlay .info-item p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.sponsor-section .slider-arrow {
    display: flex !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.sponsor-section .prev-arrow { left: -50px; }
.sponsor-section .next-arrow { right: -50px; }


/* Responsive Styles for Sponsor Section */
@media (max-width: 992px) {
    .sponsor-section .slider-wrapper {
        width: 100vw;
        margin-left: calc((100% - 100vw) / 2); /* Center the full-width wrapper */
    }
    .sponsor-card {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 0;
    }
    .sponsor-section .prev-arrow { left: 15px; }
    .sponsor-section .next-arrow { right: 15px; }
}

@media (max-width: 768px) {
    .sponsor-section .slider-wrapper {
        margin-left: 0; /* Reset for smaller breakpoints */
    }
    .sponsor-card {
        aspect-ratio: 1 / 1;
        border-radius: var(--border-radius); /* Add radius back for tablet */
    }
    .sponsor-section .prev-arrow { left: 10px; }
    .sponsor-section .next-arrow { right: 10px; }
}

/* FINAL MOBILE SPONSOR CARD ADJUSTMENTS */
@media (max-width: 576px) {
    .sponsor-section .slider-wrapper {
        padding-left: 0; /* Remove inherited padding */
        width: 90%; /* Match the card width */
        margin: 0 auto; /* Center the wrapper */
    }

    .sponsor-section .slider-grid {
        justify-content: flex-start; /* Let slider logic handle position */
    }

    .sponsor-card {
        width: 100%; /* Card takes full width of the wrapper */
        aspect-ratio: 9 / 12;
        border-radius: var(--border-radius);
    }
    .sponsor-banner-bg {
        height: 60%; 
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    .sponsor-project-logo {
        top: 60%; 
        bottom: auto;
        transform: translate(-50%, -50%);
        width: 80px; height: 80px;
    }
    .sponsor-info-overlay {
        position: absolute;
        top: 60%;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40%;
        background: #191924;
        width: 100%;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        flex-direction: column;
        justify-content: center; /* Vertically center the text block */
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 15px;
        padding-top: 45px; /* Space for logo */
        border: none;
        backdrop-filter: none;
    }
    
    .sponsor-info-overlay .info-item {
      text-align: center;
      width: 100%;
    }

    .sponsor-info-overlay .project-pool > span,
    .sponsor-info-overlay .project-end-date > span {
        display: none;
    }

    .sponsor-info-overlay .info-item p {
        font-size: 1rem;
        line-height: 1.4;
    }
    .sponsor-info-overlay .project-name h4 { 
        font-size: 1.4rem; 
        margin-bottom: 0; /* Remove extra margin to tighten the layout */
    }
    
    .sponsor-info-overlay .project-pool,
    .sponsor-info-overlay .project-end-date {
        border: none;
        padding: 0;
        margin: 0;
    }

    .sponsor-info-overlay .project-pool p::before {
        content: 'Pool: ';
        color: var(--text-secondary);
        font-weight: 500;
    }
    .sponsor-info-overlay .project-end-date p::before {
        content: 'Ends in: ';
        color: var(--text-secondary);
        font-weight: 500;
    }
}

/*
=================================================================
--- FORM BUTTON IMPROVEMENTS ---
=================================================================
*/
.btn-publish-hero {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.25);
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-publish-hero:hover, .btn-publish-hero:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.4);
    background: linear-gradient(90deg, var(--primary-hover), var(--primary-color));
    outline: none;
}