/* =================================
   HOME PAGE CONTENT STYLES — home.css
   Optimized for Budli Frontend Design
================================= */

/* ── Global Variables ── */
:root {
    --primary: #c4164b;
    --secondary: #0474b4;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --border: #eaeaea;
}

/* ── Hero Widgets ── */
.widgets-wrap {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 30px;
    padding: 0 20px;
}

.widget-panel {
    flex: 1;
}

.widget-panel:first-child {
    border-right: 1px solid var(--border);
    padding-right: 30px;
}

.widget-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.widget-card {
    border-radius: 8px;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    cursor: pointer;
    aspect-ratio: 1;
    transition: filter 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.widget-card:hover {
    filter: brightness(1.08);
    transform: scale(1.02);
    text-decoration: none;
    color: white;
}

.widget-card img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 8px;
}

.widget-card span {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
}

.sell-bg {
    background: linear-gradient(135deg, #d4145a, #ed1e79);
}

.buy-bg {
    background: linear-gradient(135deg, #006699, #00a8e8);
}

/* ── Banner Slider ── */
.banner-container {
    position: relative;
    margin-bottom: 0;
}

.banner-container img {
    width: 100%;
    display: block;
}

.banner-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    display: block;
    opacity: 1;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.slider-arrow.left {
    left: 20px;
}

.slider-arrow.right {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
    border: none;
    padding: 0;
}

.dot.active {
    background: var(--secondary);
}

/* ── Info Row ── */
.info-row {
    display: flex;
    border-bottom: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
}

.info-col {
    flex: 1;
    text-align: center;
    padding: 30px 0;
    border-right: 1px solid var(--border);
    transition: background 0.2s ease;
}

.info-col:last-child {
    border: none;
}

.info-col:hover {
    background: var(--bg-light);
}

.info-col img {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
}

.info-col div {
    font-weight: 600;
    font-size: 15px;
}

/* ── Section Header ── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.section-title-wrap h2 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
    margin-top: 0;
}

.section-title-wrap p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 0;
}

.nav-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    transition: opacity 0.2s ease;
}

.arrow-btn:hover {
    opacity: 0.85;
}

.arrow-red {
    background: var(--primary);
}

.arrow-blue {
    background: var(--secondary);
}

/* ── Testimonials ── */
.testimonials {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.testi-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.testi-grid::-webkit-scrollbar {
    display: none;
}

.testi-card {
    min-width: 300px;
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: white;
}

.testi-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.quote-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.quote-icon.right {
    align-self: flex-end;
}

.testi-text {
    font-size: 14px;
    color: #555;
    margin: 15px 0;
    flex-grow: 1;
    line-height: 1.6;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.testi-user img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
    margin-top: 0;
}

.stars {
    display: flex;
    gap: 2px;
}

/* ── Videos ── */
.videos-section {
    background: var(--bg-light);
    padding: 50px 0;
}

.videos-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.videos-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.videos-grid::-webkit-scrollbar {
    display: none;
}

.video-card {
    min-width: 300px;
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
    text-decoration: none;
}

.video-card img {
    width: 100%;
    display: block;
    transition: transform 0.25s ease;
}

.video-card:hover img {
    transform: scale(1.03);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: red;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: #c00;
}

/* ── Deals ── */
.deals-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.deals-title {
    font-size: 26px;
    margin-bottom: 30px;
    font-weight: 600;
}

.deals-title span {
    color: var(--primary);
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.deals-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.deals-col a {
    display: block;
    height: 100%;
}

.deals-col img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.deals-col a:hover img {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .deals-grid {
        grid-template-columns: 1fr 1fr;
    }

    .deals-col:last-child {
        grid-column: span 2;
        flex-direction: row;
    }

    .deals-col:last-child a {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }

    .deals-col:last-child {
        grid-column: span 1;
        flex-direction: column;
    }
}

/* ── Brands ── */
.brands-section {
    background: var(--primary);
    padding: 40px 0;
    color: white;
}

.brands-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brands-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 10px;
    flex-wrap: nowrap;
}

.brands-grid::-webkit-scrollbar {
    display: none;
}

.brand-circle {
    width: 130px;
    height: 130px;
    min-width: 130px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.brand-circle:hover {
    transform: scale(1.06);
}

.brand-circle img {
    max-width: 100%;
    max-height: 100%;
}

/* ── Why Budli ── */
.why-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.why-title {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 600;
    margin-top: 0;
}

.why-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 15px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 20px;
    background: white;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.why-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.why-icon img {
    width: 40px;
}

.why-card h4 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 0;
}

.why-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ── Spotlight / Logos ── */
.logos-section {
    text-align: center;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.logos-grid img {
    height: 35px;
    filter: grayscale(30%);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.logos-grid img:hover {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* ── Awards ── */
.awards-section {
    text-align: center;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.awards-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.awards-grid img {
    height: 130px;
    transition: transform 0.2s ease;
}

.awards-grid img:hover {
    transform: scale(1.04);
}

.slider-dots-static {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

/* ── FAQ ── */
.faq-section {
    background: var(--bg-light);
    padding: 60px 20px;
}

.faq-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.faq-tab {
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 10px;
    font-size: 15px;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease;
}

.faq-tab.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.faq-tab:hover:not(.active) {
    color: var(--text-dark);
}

.faq-list {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border: none;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-dark);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    gap: 12px;
    transition: color 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question.open {
    color: var(--primary);
}

.faq-question iconify-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-question.open iconify-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    transition: max-height 0.3s ease, padding 0.25s ease;
    margin-bottom: 0;
}

.faq-answer.open {
    max-height: 300px;
    padding: 0 20px 20px;
}

/* ── Blog ── */
.blog-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.blog-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: block;
    background: white;
}

.blog-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.blog-card-img {
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    border-radius: 0;
    margin-bottom: 0;
    transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.04);
}

.blog-card h5 {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
    padding: 15px;
    margin: 0;
}

/* ── SEO ── */
.seo-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.seo-header {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    gap: 12px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    transition: color 0.2s ease;
}

.seo-header.collapsed {
    color: var(--text-dark);
}

.seo-header iconify-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.seo-header:not(.collapsed) iconify-icon {
    transform: rotate(180deg);
}

.seo-content {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
}

.seo-content.open {
    max-height: 1000px;
    padding-bottom: 15px;
}

.seo-content ul {
    padding-left: 20px;
    margin-top: 10px;
    list-style: disc;
}

.seo-content li {
    margin-bottom: 5px;
}

.seo-item+.seo-item {
    border-top: 1px solid var(--border);
}

/* ── DEPENDENCIES ── */
.dependency-notice {
    padding: 24px;
    background: #fff9f9;
    border: 1px dashed var(--primary);
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(186, 0, 73, 0.05);
}

.dependency-notice h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.dependency-notice p {
    color: var(--text-dark);
    font-size: 14px;
    margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .widgets-wrap {
        gap: 20px;
    }

    .widget-panel:first-child {
        padding-right: 20px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logos-grid {
        gap: 40px;
    }

    .awards-grid img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .widgets-wrap {
        flex-direction: column;
        margin: 20px auto;
    }

    .widget-panel:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 24px;
    }

    .widget-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
    }

    .info-row {
        flex-wrap: wrap;
    }

    .info-col {
        flex: 0 0 50%;
        border-bottom: 1px solid var(--border);
    }

    .info-col:nth-child(2) {
        border-right: none;
    }

    .info-col:nth-child(3),
    .info-col:nth-child(4) {
        border-bottom: none;
    }

    .info-col:nth-child(4) {
        border-right: none;
    }

    .deals-grid {
        grid-template-columns: 1fr;
    }

    .deals-section {
        margin: 30px auto;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-section {
        margin: 30px auto;
    }

    .why-subtitle {
        margin-bottom: 20px;
    }

    .logos-grid {
        gap: 24px;
    }

    .logos-grid img {
        height: 26px;
    }

    .awards-grid {
        gap: 24px;
    }

    .awards-grid img {
        height: 80px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-section {
        padding: 30px 20px;
    }

    .testimonials {
        margin: 30px auto;
    }

    .videos-section {
        padding: 30px 0;
    }

    .faq-section {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .widget-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .widget-card {
        aspect-ratio: auto;
        padding: 12px 6px;
        min-height: 80px;
    }

    .widget-card img {
        width: 36px;
        height: 36px;
    }

    .testi-card {
        padding: 18px;
    }

    .faq-tabs {
        gap: 16px;
    }

    .info-col {
        padding: 18px 8px;
    }

    .info-col img {
        width: 36px;
        height: 36px;
    }

    .info-col div {
        font-size: 13px;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .section-title-wrap h2,
    .deals-title,
    .why-title {
        font-size: 20px;
    }

    .widget-title {
        font-size: 17px;
    }
}