/*
 * IMPORTANT: For editing rules and coding guidelines, see AI_documents/Rules/Rules_for_the_AI.txt
 * For project overview and details, see AI_documents/Project_Overview_Doc.txt
 * 
 * Production Directory: http://ainspire.ai/css/whitepaper_scroller_new.css
 * Development Directory: http://localhost:8000/css/whitepaper_scroller_new.css
 * 
 * Used in Whitepaper Scroller located on home page 
 * /templates/whitepaper_scroller2.php
 */ 

/* Scrollable Whitepapers Section */
.whitepapers-section {
    padding: 80px 20px 40px;
    position: relative;
    z-index: 1;
    background: #000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(16, 18, 74, 1) 45%, rgba(0, 0, 0, 1) 100%);
}

.whitepaper-overlay {
    border-radius: 8px;
    /* Add transition to the overlay itself */
    transition: transform 0.5s ease;
}

/* Different gradient overlays for different card classes */
.whitepaper-overlay.card-1 {
        background: linear-gradient(135deg, rgb(2 20 35) 0%, rgb(1 15 30) 50%, rgb(3 25 62) 100%);
    /*background: radial-gradient(color(srgb 0.88 0.28 0.28 / 0.61), color(srgb 0.98 0.39 0.39 / 0.52));*/
}

.whitepaper-overlay.card-2 {
        background: radial-gradient(color(srgb 0.04 0.18 0.29), color(srgb 0.03 0.15 0.33));
}

.whitepaper-overlay.card-3 {
    background: radial-gradient(#ffffff00, #4575b9a6);
}

.whitepaper-overlay.card-4 {
    background: radial-gradient(#ffffff00, #4598b891);
}

/* Apply the hover effect directly to the overlay */
.whitepaper-overlay:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Also, tell the child card to move when the parent overlay is hovered */
.whitepaper-overlay:hover .whitepapers-service-card {
    /* This rule is now removed to avoid double translation */
    /* transform: translateY(-8px); */
}

.whitepapers-section-title {
    text-align: center;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shimmer-overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 3;
}

.whitepaper-overlay:hover .shimmer-overlay2 {
    transform: translateX(100%);
}

.whitepapers-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.whitepapers-scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 20px;
    /* Removed these to show a scrollbar */
    /* scrollbar-width: none; */ 
    /* -ms-overflow-style: none; */
}

/* These new rules make the scrollbar visible and style it */
.whitepapers-scroll-wrapper::-webkit-scrollbar {
    height: 8px; /* Set the height of the scrollbar */
    background-color: #000; /* Set the track color to black */
}

.whitepapers-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #3b82f657; /* Purple thumb with transparency */
    border-radius: 4px; /* Rounded corners */
    transition: background-color 0.3s ease;
}

.whitepapers-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #3b82f6; /* A more solid blue on hover */
}

.whitepapers-service-card {
    background: radial-gradient(#ffffff00, #f9646429);
    position: relative; 
    min-width: 380px;
    width: 280px;
    height: 630px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s ease;
    flex-shrink: 0;
}

.whitepaper_title_card1 { 
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transition: all 0.6s ease;
}

.whitepapers-card-top-content {
    height: 40%;
    position: relative;
    z-index: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(0deg, rgb(255 255 255 / 13%) 0%, rgb(0 0 0 / 71%) 100%);
}

.whitepapers-card-bottom-image-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    overflow: hidden;
}

.whitepapers-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(0px) brightness(0.7);
    filter: saturate(0.5);
}

.whitepaper-overlay:hover .whitepapers-card-background {
    transform: scale(1.15) translate(-2.5%, -2.5%);
    filter: blur(3px) brightness(0.3);
    filter: grayscale(1);
}

.whitepapers-card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Default overlay for readability */
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: left;
}

.whitepaper-overlay:hover .whitepapers-card-image-overlay {
    opacity: 1;
}

.whitepapers-card-label {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 20px;
}

.whitepapers-card-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transition: all 0.6s ease;
}

.whitepapers-card-subtitle {
    color: #aeaeae;
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.whitepapers-card-description {
    color: #fff;
    font-size: 17.5px;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 20px;
    width:90%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    
}

.whitepapers-expand-button {
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition-delay: 0.1s;
    border: 1px solid #3b82f6;
    padding: 5px;
    border-radius: 20px;
    background: #3b82f64d;
}

.tags_whitepapers { 
    display: flex;
    gap: 5px;
}
 

.whitepapers-expand-button:after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.whitepapers-expand-button:hover:after {
    transform: translateX(5px);
}

/* Navigation Arrows */
.whitepapers-scroll-nav {
    height: 200PX!important;
    border-radius: 20px;
    background: rgb(59 130 246 / 40%);
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    border: none;
    color: white;
    width: 50px;
    height: 50px; 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 5;
}

.whitepapers-scroll-nav:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-50%) scale(1.1);
}

.whitepapers-scroll-nav.whitepapers-prev {
    left: 10px;
}

.whitepapers-scroll-nav.whitepapers-next {
    right: 10px;
}

/* Progress Dots */
.whitepapers-scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.whitepapers-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.whitepapers-indicator-dot.active,
.whitepapers-indicator-dot:hover {
    background: #3b82f6;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .whitepapers-service-card {
        min-width: 260px;
        width: 260px;
        height: 400px;
    }
    
    .whitepapers-scroll-wrapper {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .whitepapers-scroll-nav {
        display: none;
    }
    
    .whitepapers-card-title {
        font-size: 20px;
    }
}