/* wpr-safemode */
/* Available Programs Archive Page Styles */

/* Subtle Background Gradient */
.section-1 {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 50%, #f8faff 100%);
    padding: 40px 0;
}

.box-1 {
    width: 100%;
    max-width: 581px;
    text-align: center;
    background-color: #ffffff;
    border: solid 1px #CCCCCC;
    border-radius: 16px;
    padding: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.box-1:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(80, 142, 255, 0.25), 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #508EFF;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 10;
}

.box-1:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 0 0 3px rgba(80, 142, 255, 0.3), 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #508EFF;
    outline: none;
}

/* YouTube Video Styles for Archive */
.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
    line-height: 0; /* Remove any line-height gaps */
    font-size: 0; /* Remove any font-size gaps */
    background: transparent; /* Ensure no background color */
}

.video-thumbnail-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(80, 142, 255, 0.3);
}

.video-thumbnail {
    width: 100%;
    height: auto !important;
    display: block;
    border-radius: 8px;
    vertical-align: top; /* Remove bottom gap */
    max-width: 100%;
    object-fit: contain; /* Use contain instead of cover */
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.video-thumbnail-wrapper:hover .play-button-overlay {
    background: rgba(80, 142, 255, 0.9);
}

.play-button-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

/* Inline Video Player Styles */
.video-player-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading skeleton for lazy load */
.video-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tooltip-feedback {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.seprator {
    height: 40px;
    background: #535353;
    width: 1px;
}

.img-sec {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo_image_one, .logo_image_two {
    width: 40%;
}

.logo_image_one img, .logo_image_two img {
    max-width: 100%;
    height: auto;
}

.container_available_program {
    max-width: 1204px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.heading-1 .heading-title {
    margin: 0;
    color: #508EFF;
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 20px;
    display: block;
    line-height: 100%;
    padding: 21px 16px 8px 16px;
    text-decoration: none;
}

.heading-2 .certificate-title {
    font-family: 'Roboto', sans-serif;
    color: #000000;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
    line-height: 100%;
    margin: 0;
    padding: 8px 0px 6px 0px;
    text-decoration: none;
}

.heading-2 .certificate-title i {
    color: #508EFF;
    font-size: 20px;
    margin-right: 8px;
}

.heading-3 .school-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #000000;
    opacity: 0.7;
    padding: 6px 16px 21px 16px;
    margin: 0;
}

.heading-4 .discount-info {
    border-radius: 8px;
    background-color: #508EFF1A;
    padding: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 150%;
    border: 1px solid #508EFF33;
    text-align: center;
}

.heading-4 .discount-info i {
    color: #508EFF;
    font-size: 14px;
    margin: 0 4px;
}

.span-code {
    font-size: 16px;
    background-color: #508EFF;
    font-weight: 600;
    color: #ffffff;
    border: 1px dashed #98BDFF;
    border-radius: 5px;
    padding: 3px 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.span-code:hover {
    background-color: #3a7de0;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(58, 125, 224, 0.3);
}

.span-amount, .span-date {
    font-weight: 600;
    margin: 0;
}

.heading-5 .late-discount {
    line-height: 150%;
    padding: 6px 16px 17px 16px;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-size: 16px;
    font-weight: 400;
    color: #4D4D4D;
}

.span-late-discount {
    font-weight: 600;
}

.button {
    margin: 16px 0;
    text-align: center;
}

.button .learn-more-btn {
    font-family: Raleway, sans-serif;
    line-height: 20px;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 28px;
    color: #ffffff;
    background: #508EFF;
    border: solid 2px #508EFF;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(80, 142, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button .learn-more-btn i {
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.button .learn-more-btn:hover {
    background-color: #3a7de0;
    border-color: #3a7de0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(80, 142, 255, 0.4);
    color: #ffffff;
}

.button .learn-more-btn:hover i {
    transform: translateX(4px);
}

.parent-div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px; /* A single gap property is cleaner */
}

/* Styles for the mobile slider functionality */
.mobile-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.mobile-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.prev-arrow,
.next-arrow {
    background-color: #508EFF;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.prev-arrow:hover:not(:disabled),
.next-arrow:hover:not(:disabled) {
    background-color: #3a7de0;
    transform: scale(1.1);
}

.prev-arrow:disabled,
.next-arrow:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Pagination Dots */
.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #508EFF;
    width: 24px;
    border-radius: 4px;
}

/* Mobile Counter */
.mobile-counter {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0 16px;
}

/* --- Key Change for 2-column Desktop Layout --- */
/* By default, set the width for a 2-column layout */
.box-1 {
   flex-basis: calc(50% - 8px); /* 50% width minus half the gap */
}

/* Media query for mobile devices */
@media only screen and (max-width: 767px) {
    .container_available_program {
        padding: 0;
    }

    .parent-div {
        display: block;
        position: relative;
        width: 100%;
    }

    .box-1 {
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        max-width: 100%;
        margin: 0 auto;
        /* Revert flex-basis for mobile view */
        flex-basis: auto;
    }

    .box-1.active {
        display: block;
        opacity: 1;
    }

    .mobile-nav {
        display: flex;
    }

    /* Responsive text adjustments */
    h2.certificate-title {
        font-size: 20px !important;
        line-height: 26px !important;
    }

    h2.school-name {
        font-size: 16px !important;
        line-height: 20px !important;
    }

    h2.discount-info {
        font-size: 16px !important;
        line-height: 24px !important;
    }

    h2.late-discount {
        font-size: 16px !important;
        line-height: 24px !important;
    }

    .box-1 {
        padding: 24px 16px;
    }

    .heading-title {
        font-size: 18px !important;
    }
    
    .button .learn-more-btn {
        font-size: 16px;
        padding: 12px 24px;
    }
}

/* Touch swipe indicator */
.swipe-hint {
    display: none;
}

@media only screen and (max-width: 767px) {
    .swipe-hint {
        display: block;
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: #999;
        font-style: italic;
        opacity: 0;
        animation: fadeInOut 3s ease-in-out;
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Coupon Image Styles */
.coupon-image-wrapper {
    position: relative;
    display: inline-block;
    margin: 15px auto;
    cursor: pointer;
    transition: transform 0.2s ease;
    max-width: 240px;
    width: 100%;
}

.coupon-code-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.coupon-image-wrapper:hover .coupon-code-image {
    box-shadow: 0 4px 16px rgba(80, 142, 255, 0.3);
}

.coupon-overlay {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(80, 142, 255, 0.95);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.coupon-image-wrapper:hover .coupon-overlay {
    opacity: 1;
    bottom: -30px;
}

.copy-icon {
    font-size: 14px;
}

.copy-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-image-wrapper.copied .coupon-overlay {
    background: #4CAF50;
    opacity: 1;
    bottom: -30px;
}

.coupon-image-wrapper.copied .copy-text {
    content: "Copied!";
}

.coupon-cta-text {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.heading-4 {
    text-align: center;
}

/* Late enrollment text styling */
.late-enrollment-text {
    font-style: italic;
    color: #4D4D4D;
    margin: 10px 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.late-enrollment-text .span-late-discount {
    font-weight: 600;
    color: #508EFF;
    font-style: normal;
}

/* Mobile styles for coupon image */
@media only screen and (max-width: 767px) {
    .coupon-image-wrapper {
        max-width: 190px;
    }
    
    .coupon-overlay {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .copy-icon {
        font-size: 12px;
    }
    
    .coupon-cta-text {
        font-size: 14px;
    }
    
    .late-enrollment-text {
        font-size: 13px;
    }
}

/* Card Loading Skeleton Animation */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    min-height: 20px;
}

.skeleton-card {
    width: 100%;
    max-width: 581px;
    background-color: #ffffff;
    border: solid 1px #CCCCCC;
    border-radius: 16px;
    padding: 16px;
    box-sizing: border-box;
}

.skeleton-card .skeleton-logo {
    height: 60px;
    margin-bottom: 20px;
}

.skeleton-card .skeleton-title {
    height: 24px;
    width: 70%;
    margin: 0 auto 12px;
}

.skeleton-card .skeleton-subtitle {
    height: 20px;
    width: 50%;
    margin: 0 auto 16px;
}

.skeleton-card .skeleton-button {
    height: 48px;
    width: 150px;
    margin: 20px auto;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Coupon Section Styling */
.coupon-section {
    position: relative;
    margin: 20px auto;
    padding: 15px;
    background: white;
    border: 2px dashed #508EFF;
    border-radius: 8px;
    text-align: center;
    max-width: 280px;
}

.coupon-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #508EFF;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-instruction {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Coupon edges effect */
.coupon-section::before,
.coupon-section::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #f8faff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.coupon-section::before { 
    left: -11px;
    border: 2px dashed #508EFF;
    border-right: none;
}

.coupon-section::after { 
    right: -11px;
    border: 2px dashed #508EFF;
    border-left: none;
}

/* Desktop-only floating coupon widget */
@media (min-width: 1200px) {
    .floating-coupon-desktop {
        position: fixed;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background: white;
        border: 2px solid #508EFF;
        border-radius: 12px;
        padding: 20px;
        width: 180px;
        box-shadow: 0 8px 30px rgba(80, 142, 255, 0.2);
        z-index: 999;
        animation: slideIn 0.5s ease-out;
    }
    
    .floating-header {
        font-size: 12px;
        font-weight: 700;
        color: #508EFF;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .pulse-dot {
        width: 8px;
        height: 8px;
        background: #508EFF;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
    
    .floating-code {
        background: #f0f7ff;
        border: 2px dashed #508EFF;
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .code-text {
        font-size: 20px;
        font-weight: 700;
        color: #508EFF;
        letter-spacing: 2px;
        font-family: 'Courier New', monospace;
    }
    
    .copy-floating-btn {
        background: #508EFF;
        color: white;
        border: none;
        padding: 8px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .copy-floating-btn:hover {
        background: #3a7de0;
        transform: scale(1.05);
    }
    
    .copy-floating-btn.copied {
        background: #4CAF50;
    }
    
    .floating-savings {
        font-size: 14px;
        color: #333;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .floating-savings strong {
        color: #508EFF;
        font-size: 16px;
    }
    
    .floating-expire {
        font-size: 11px;
        color: #999;
        text-align: center;
        font-style: italic;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            right: -200px;
        }
        to {
            opacity: 1;
            right: 20px;
        }
    }
}

/* Hide floating widget on mobile/tablet */
@media (max-width: 1199px) {
    .floating-coupon-desktop {
        display: none;
    }
}