/* =========================================
   Panels Resellers Slider Styles (Dark Theme + New Layout)
========================================= */

.nextai-panels-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: transparent;
}

.panels-header {
    text-align: center;
    margin-bottom: 50px;
}

.panels-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.panels-title span {
    color: #8b3dff;
}

.panels-subtitle {
    font-size: 16px;
    color: #a0a0b0;
}

/* Slider Container */
.panels-slider {
    padding-bottom: 50px !important;
}

/* Panel Card */
.panel-card {
    background: #141326;
    border-radius: 20px;
    padding: 40px 25px 30px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.panel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 61, 255, 0.15);
    border-color: rgba(139, 61, 255, 0.3);
}

/* Panel Logo Link Wrapper */
.panel-logo-link {
    display: block;
    text-decoration: none;
    margin-bottom: 25px;
    width: 100%;
}

/* Big Square Logo Container (User Solution) */
.panel-logo {
    width: 200px;
    height: 200px;
    border-radius: 23px;
    background-color: transparent;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 15px;
    /* From user screenshot */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-position: center;
    /* From user screenshot */
}

.panel-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Changed back to contain to work better with padding */
    display: block;
}

.panel-card:hover .panel-logo {
    transform: scale(1.03);
    border-color: rgba(139, 61, 255, 0.5);
}

/* Rating Stars */
.panel-rating {
    color: #8b3dff;
    font-size: 18px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

/* Hot Deal Badge */
.panel-hot-deal {
    color: #ff4757;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Title */
.panel-card h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* Credits Subtitle */
.panel-credits {
    font-size: 14px;
    font-weight: 700;
    color: #d0d0e0;
    margin-bottom: 20px;
}

/* Description */
.panel-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #a0a0b0;
    margin-bottom: 30px;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    flex-grow: 1;
}

.panel-desc p {
    margin: 0;
    color: #a0a0b0;
}

/* Footer / CTA Area */
.panel-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: auto;
    width: 100%;
}

.panel-btn-primary {
    display: inline-block;
    background: #0066FF;
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease;
    border: none;
}

.panel-btn-primary:hover {
    background: #0055cc;
    color: #fff;
    text-decoration: none;
}

.panel-btn-secondary {
    display: inline-flex;
    align-items: center;
    color: #0066FF;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.panel-btn-secondary:after {
    content: "›";
    font-size: 20px;
    margin-left: 5px;
    margin-top: -2px;
}

.panel-btn-secondary:hover {
    color: #0055cc;
    text-decoration: none;
}

.panels-footer {
    margin-top: 50px;
}

.panel-btn-large {
    display: inline-block;
    background: #0066FF;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
    border: none;
}

.panel-btn-large:hover {
    background: #0055cc;
    color: #fff;
    text-decoration: none;
}

.panel-features {
    display: none;
}

.swiper-pagination-bullet {
    background: #6c5a94;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #8b3dff;
    opacity: 1;
}

/* ==================
   TABLET (max-width: 991px)
================== */
@media (max-width: 991px) {
    .nextai-panels-section {
        padding: 40px 15px;
    }

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

    .panel-logo {
        width: 160px;
        height: 160px;
        border-radius: 28px;
    }

    .panel-card h3 {
        font-size: 22px;
    }

    .panel-card-footer {
        flex-direction: column;
        gap: 12px;
    }

    .panel-btn-primary,
    .panel-btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ==================
   MOBILE (max-width: 575px)
================== */
@media (max-width: 575px) {
    .nextai-panels-section {
        padding: 30px 12px;
    }

    .panels-header {
        margin-bottom: 30px;
    }

    .panels-title {
        font-size: 24px;
    }

    .panels-subtitle {
        font-size: 14px;
    }

    .panel-card {
        padding: 30px 20px 25px;
    }

    .panel-logo-link {
        margin-bottom: 18px;
    }

    .panel-logo {
        width: 130px;
        height: 130px;
        border-radius: 24px;
        margin: 0 auto;
    }

    .panel-card h3 {
        font-size: 20px;
    }

    .panel-credits {
        font-size: 13px;
    }

    .panel-desc {
        font-size: 14px;
    }

    .panel-btn-large {
        padding: 13px 30px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }

    .panels-footer {
        margin-top: 30px;
    }

    /* Archive grid - 1 col on mobile */
    .nextai-panels-grid-view .panels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================================
   Grid Layout overrides (for [panels_grid])
========================================= */
.nextai-panels-grid-view .panels-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    padding: 20px 0;
}

@media (min-width: 640px) {
    .nextai-panels-grid-view .panels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .nextai-panels-grid-view .panels-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* Force Full Width on the Panels Page */
body.page-panels .site-main .container .row {
    flex-wrap: nowrap;
}

body.page-panels .site-main .col-lg-8,
body.page-panels .site-main .col-md-8,
body.page-panels .site-main .col-12 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
}

/* BLANK CANVAS MODE: Hide everything else specifically on the Panels page */
body.page-panels header,
body.page-panels .site-header,
body.page-panels footer,
body.page-panels .site-footer,
body.page-panels .elementor-location-header,
body.page-panels .elementor-location-footer,
body.page-panels .page-title-area,
body.page-panels .page-header,
body.page-panels .breadcumb-area,
body.page-panels .sidebar,
body.page-panels aside,
body.page-panels .widget-area,
body.page-panels .col-lg-4,
body.page-panels .col-md-4 {
    display: none !important;
}

/* Adjust top padding since header is missing */
body.page-panels .site-main,
body.page-panels .site-content {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}