/* Resources Page Styles */

/* Hero Section */
.resource-hero {
    padding: 120px 0 80px;
    position: relative;
}

/* Resources Title */
.resources-main-title {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.resources-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* Video Testimonial Cards */
.video-testimonial-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-testimonial-card:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9 / 12;
    border: 3px solid transparent;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.5), rgba(138, 43, 226, 0.5), rgba(0, 191, 255, 0.5)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.testimonial-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.testimonial-info {
    text-align: center;
    margin-top: 15px;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.testimonial-company {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Video hover effect */
.video-testimonial-card:hover .testimonial-video {
    transform: scale(1.05);
}

/* Testimonial Cards */
.testimonial-card {
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(90deg, #04F 0%, #E7417E 34.62%, #E27333 66.83%, #E54D6A 100%);
    padding: 3px;
    border-radius: 16px;
}

.testimonial-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 13px;
    z-index: 0;
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
    border-radius: 13px;
    display: block;
}

.testimonial-card-content {
    padding-top: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.testimonial-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom:0px;
    line-height: 1.3;
}
.testimonial-card-content .logo-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    padding: 2px;
  }
.testimonial-company-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.resource-hero:before {
    content: '';
    display: block;
    position: absolute;
    border-radius: 706px;
    background: linear-gradient(309deg, rgba(0, 194, 255, 0.30) 4.71%, #A10174 95.29%);
    filter: blur(125.88235473632812px);
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: -1;
  }
/* Video testimonial in testimonial-card */
.testimonial-image-wrapper .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonial-image-wrapper .video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.testimonial-image-wrapper .video-play-btn svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.testimonial-image-wrapper .testimonial-video {
    cursor: pointer;
}

/* Keep case-study-card wrapper styles for backward compatibility */
.case-study-image-wrapper {
    position: relative;
}

.case-study-image-wrapper .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.case-study-image-wrapper .video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.case-study-image-wrapper .video-play-btn svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.case-study-image-wrapper .testimonial-video {
    cursor: pointer;
}

.resource-hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(255, 105, 180, 0.2);
    aspect-ratio: 16 / 9;
}

.resource-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 24px;
    object-fit: cover;
}

.resource-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.resource-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.4;
}

.resource-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.resource-category {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.resource-date {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Case Studies Section */
.case-studies-section {
    position: relative;
}

.case-study-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.case-study-main-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.case-study-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* Case Study Cards */
.case-study-card {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.6) 0%, rgba(20, 20, 35, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 18px
}
.blog-title::before {
    content: '';
    display: block;
    position: absolute;
    border-radius: 706px;
    background: linear-gradient(309deg, rgba(0, 194, 255, 0.30) 4.71%, #A10174 95.29%);
    filter: blur(125.88235473632812px);
    top: 0;
    right: 1px;
    width: 47%;
    height: 100%;
    z-index: -1;
  }
.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1) 0%, rgba(106, 90, 205, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 24px;
}

.case-study-card:hover::before {
    opacity: 1;
}

.case-study-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 105, 180, 0.3);
    box-shadow: 0 30px 60px rgba(255, 105, 180, 0.2);
}

.case-study-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

.case-study-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-study-card-content {
    padding-top:18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.case-study-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.case-study-industry {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-study-metric {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.5;
    flex: 1;
}

.case-study-card .theme-btn {
    margin-top: auto;
}

.case-study-card .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
}


/* Responsive Design */
@media (max-width: 1199px) {
    .case-study-main-title {
        font-size: 42px;
    }
    
    .resources-main-title {
        font-size: 48px;
    }
    
    .resource-title {
        font-size: 42px;
    }
    
    .resource-subtitle {
        font-size: 22px;
    }
}

@media (max-width: 991px) {
    .resource-hero {
        padding: 100px 0 60px;
    }
    
    .case-studies-section {
        padding: 60px 0 80px;
    }
    
    .case-study-main-title {
        font-size: 36px;
    }
    
    .resources-main-title {
        font-size: 42px;
    }
    
    .resources-description {
        font-size: 16px;
        margin-bottom: 50px;
    }
    
    .resource-title {
        font-size: 36px;
    }
    
    .resource-subtitle {
        font-size: 20px;
    }
    
    .case-study-card-title {
        font-size: 18px;
    }
    
    .case-study-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .resource-hero {
        padding: 80px 0 40px;
    }
    
    .case-studies-section {
        padding: 50px 0 60px;
    }
    
    .case-study-main-title {
        font-size: 32px;
    }
    
    .resources-main-title {
        font-size: 36px;
    }
    
    .resources-description {
        font-size: 15px;
        margin-bottom: 40px;
    }
    
    .case-study-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .resource-title {
        font-size: 32px;
        text-align: center;
    }
    
    .resource-subtitle {
        font-size: 18px;
        text-align: center;
    }
    
    .resource-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }
    
    .video-wrapper {
        aspect-ratio: 9 / 12;
    }
    
    .testimonial-name {
        font-size: 16px;
    }
    
    .testimonial-company {
        font-size: 13px;
    }
    
    .case-study-image-wrapper {
        height: 180px;
    }
    
    .case-study-card-content {
        padding: 25px 20px;
    }
    
    .case-study-card-title {
        font-size: 17px;
    }
    
    .case-study-metric {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .resource-hero {
        padding: 60px 0 30px;
    }
    
    .resources-main-title {
        font-size: 28px;
    }
    
    .resources-description {
        font-size: 14px;
    }
    
    .resource-title {
        font-size: 28px;
    }
    
    .resource-subtitle {
        font-size: 16px;
    }
    
    .case-study-main-title {
        font-size: 28px;
    }
    
    .case-study-image-wrapper {
        height: auto;
    }
    .section.section-header-gap{
        padding-top: 20px;
    }
}