/* Custom Styles for Index1.html (Buy/Sell Portal) */

.content1 {
    text-align: center;
    padding: 100px 5% 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.content1 h2 {
    font-size: 42px;
    color: #000000;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.content1 pre {
    font-size: 18px;
    color: var(--text-muted);
    font-family: inherit;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Restyled Slider with correct dimensions and smooth loop */
.silder {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    display: flex;
}

/* Gradient masks for smooth fade at slider edges */
.silder::before,
.silder::after {
    content: '';
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.silder::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.silder::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.silding {
    display: flex;
    width: max-content;
    gap: 32px;
    padding: 0 16px;
    /* We will duplicate the inner items in the HTML to loop exactly half the width */
    animation: scroll 40s linear infinite;
}

.silding:hover {
    animation-play-state: paused;
}

.item3 {
    width: 420px;
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--border);
    transition: var(--transition);
    background: var(--surface);
}

.item3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.item3:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.4);
}

.item3:hover img {
    transform: scale(1.08);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    /* Gap is 32px, half gap is 16px */
    100% {
        transform: translateX(calc(-50% - 16px));
    }
}

/* Responsive Guides Section */
.guides-section {
    width: 90%;
    max-width: 1400px;
    margin: 120px auto;
    padding: 0;
}

.guides-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 56px;
    color: #000000;
    text-align: center;
    letter-spacing: -1px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.guide-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 36px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.2);
}

.guide-icon {
    min-width: 64px;
    height: 64px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: var(--accent);
    transition: var(--transition);
}

.guide-card:hover .guide-icon {
    background: var(--accent);
    color: #0b0f19;
    transform: scale(1.1) rotate(5deg);
}

.guide-content {
    flex: 1;
}

.guide-content a {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.guide-card:hover .guide-content a {
    color: var(--accent);
}

.guide-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsiveness adjustments */
@media (max-width: 768px) {

    .silder::before,
    .silder::after {
        width: 50px;
    }

    .item3 {
        width: 300px;
        height: 200px;
    }

    .guides-title {
        font-size: 28px;
    }

    .content1 h2 {
        font-size: 32px;
    }
}