/* Borsa Template Specific Styles */

/* Base layout */
body.page-template-page-borsa-php {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.page-template-page-borsa-php .site {
    background: #ffffff;
}

body.page-template-page-borsa-php .ast-container {
    max-width: 100%;
    padding: 0;
}

body.page-template-page-borsa-php .site-content {
    padding: 0;
    margin: 0;
}

/* Remove extra padding for our own header */
body.page-template-page-borsa-php .dashboard-container {
    padding-top: 0;
}

/* Carousel grid */
body.page-template-page-borsa-php .borsa-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 0;
    max-height: none;
    overflow: visible;
}

/* Card transitions */
body.page-template-page-borsa-php .borsa-card {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Fallback icon block */
body.page-template-page-borsa-php .borsa-icon-fallback {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

/* Title */
body.page-template-page-borsa-php .borsa-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
}

/* Trust score text */
body.page-template-page-borsa-php .borsa-trust-score {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

@media (max-width: 768px) {
    body.page-template-page-borsa-php .borsa-page-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    body.page-template-page-borsa-php .borsa-carousel {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    body.page-template-page-borsa-php .borsa-carousel {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
}

/* Blog section styles similar to NFT */
body.page-template-page-borsa-php .borsa-blog-section {
    padding: 24px 16px 40px 16px;
    background: #fff;
}

body.page-template-page-borsa-php .borsa-blog-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

body.page-template-page-borsa-php .borsa-blog-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px 0;
}

body.page-template-page-borsa-php .borsa-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    body.page-template-page-borsa-php .borsa-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    body.page-template-page-borsa-php .borsa-blog-grid {
        grid-template-columns: 1fr;
    }
}

body.page-template-page-borsa-php .borsa-blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

body.page-template-page-borsa-php .borsa-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.page-template-page-borsa-php .borsa-blog-thumb {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

body.page-template-page-borsa-php .borsa-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.page-template-page-borsa-php .borsa-blog-content {
    padding: 12px 12px 14px 12px;
}

body.page-template-page-borsa-php .borsa-blog-post-title {
    font-size: 16px;
    margin: 0 0 6px 0;
    color: var(--text-dark);
}

body.page-template-page-borsa-php .borsa-blog-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

body.page-template-page-borsa-php .borsa-blog-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* View all button */
body.page-template-page-borsa-php .borsa-blog-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

body.page-template-page-borsa-php .borsa-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

body.page-template-page-borsa-php .borsa-view-all-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


