/* PT SSC History Banner Styles - Desktop 500px, Mobile 200px, Fully Responsive */
.ptssc-history-slider {
    width: 100%;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px; /* Desktop default height */
    max-height: 500px; /* Maximum height 500px */
    min-height: 200px; /* Minimum height */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

.first-text {
    font-size: clamp(14px, 4vw, 28px);
    font-weight: 300;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 1vw, 5px);
    opacity: 0;
    transform: translateY(30px);
    animation: ptsscFadeInUp 0.8s ease forwards 0.3s;
    color: #2dbf64;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.second-text {
    font-size: clamp(18px, 8vw, 54px);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: ptsscFadeInUp 0.8s ease forwards 0.5s;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.description {
    font-size: clamp(11px, 2vw, 18px);
    line-height: 1.8;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: ptsscFadeInUp 0.8s ease forwards 0.7s;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

@keyframes ptsscFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Arrows - Responsive */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(30px, 5vw, 50px);
    height: clamp(30px, 5vw, 50px);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: clamp(16px, 3vw, 24px);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: rgba(255,215,0,0.3);
    border-color: #ffd700;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: clamp(10px, 3vw, 30px);
}

.slider-arrow.next {
    right: clamp(10px, 3vw, 30px);
}

/* Bottom Bullets - Responsive */
.slider-bullets {
    position: absolute;
    bottom: clamp(10px, 4vh, 20px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(5px, 2vw, 12px);
    z-index: 10;
    padding: clamp(5px, 1.5vh, 10px) clamp(10px, 3vw, 20px);
    background: rgba(0,0,0,0.3);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    flex-wrap: wrap;
    justify-content: center;
}

.bullet {
    width: clamp(6px, 2vw, 12px);
    height: clamp(6px, 2vw, 12px);
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bullet:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.bullet.active {
    background: #2dbf64;
    transform: scale(1.2);
    border-color: #fff;
}

/* Responsive Breakpoints with Desktop 500px, Mobile 200px */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .slider-container {
        height: 500px;
        max-height: 500px;
    }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .slider-container {
        height: 500px;
        max-height: 500px;
    }
    
    .second-text {
        font-size: 52px;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .slider-container {
        height: 400px;
        max-height: 500px;
    }
    
    .slide-content {
        width: 85%;
    }
    
    .first-text {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .second-text {
        font-size: 42px;
        margin-bottom: 20px;
    }
    
    .description {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Tablet Portrait (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .slider-container {
        height: 350px;
        max-height: 500px;
    }
    
    .slide-content {
        width: 90%;
        padding: 15px;
    }
    
    .first-text {
        font-size: 18px;
        margin-bottom: 10px;
        letter-spacing: 2px;
    }
    
    .second-text {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Mobile Landscape (480px to 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    .slider-container {
        height: 250px;
        max-height: 500px;
        min-height: 200px;
    }
    
    .slide-content {
        width: 92%;
        padding: 10px;
    }
    
    .first-text {
        font-size: 16px;
        margin-bottom: 8px;
        letter-spacing: 1.5px;
    }
    
    .second-text {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .description {
        font-size: 12px;
        line-height: 1.4;
        max-height: 60px;
        overflow-y: auto;
    }
    
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .slider-bullets {
        bottom: 10px;
        gap: 6px;
        padding: 4px 12px;
    }
}

/* Mobile Portrait (up to 479px) */
@media (max-width: 479px) {
    .slider-container {
        height: 200px; /* Mobile height 200px */
        max-height: 500px;
        min-height: 200px;
    }
    
    .slide-content {
        width: 95%;
        padding: 8px;
    }
    
    .first-text {
        font-size: 14px;
        margin-bottom: 5px;
        letter-spacing: 1px;
    }
    
    .second-text {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .description {
        font-size: 11px;
        line-height: 1.3;
        max-height: 45px;
        overflow-y: auto;
    }
    
    .slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 14px;
        border-width: 1.5px;
    }
    
    .slider-arrow.prev {
        left: 5px;
    }
    
    .slider-arrow.next {
        right: 5px;
    }
    
    .slider-bullets {
        bottom: 8px;
        gap: 4px;
        padding: 3px 10px;
    }
    
    .bullet {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }
}

/* Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .slider-container {
        height: 200px; /* Keep 200px */
        max-height: 500px;
        min-height: 200px;
    }
    
    .first-text {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .second-text {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .description {
        font-size: 10px;
        line-height: 1.2;
        max-height: 35px;
    }
    
    .slider-arrow {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .bullet {
        width: 5px;
        height: 5px;
    }
}

/* Very Small Mobile (up to 280px) */
@media (max-width: 280px) {
    .slider-container {
        height: 200px; /* Keep 200px */
        min-height: 200px;
    }
    
    .first-text {
        font-size: 11px;
    }
    
    .second-text {
        font-size: 16px;
    }
    
    .description {
        font-size: 9px;
        max-height: 30px;
    }
    
    .slider-arrow {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .slider-bullets {
        bottom: 5px;
        padding: 2px 8px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .slider-container {
        height: 250px;
        max-height: 500px;
    }
    
    .slide-content {
        padding: 5px;
    }
    
    .first-text {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .second-text {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .description {
        font-size: 11px;
        max-height: 40px;
        overflow-y: auto;
    }
    
    .slider-bullets {
        bottom: 5px;
    }
}

/* High Resolution Displays */
@media (min-width: 1600px) {
    .slider-container {
        height: 500px;
        max-height: 500px;
    }
    
    .slide-content {
        max-width: 1000px;
    }
    
    .first-text {
        font-size: 32px;
    }
    
    .second-text {
        font-size: 64px;
    }
    
    .description {
        font-size: 20px;
    }
}

/* Print Styles */
@media print {
    .ptssc-history-slider {
        display: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .slider-arrow {
        background: rgba(0,0,0,0.5);
        border-color: rgba(255,255,255,0.5);
    }
    
    .slider-arrow:active {
        background: #ffd700;
        transform: translateY(-50%) scale(0.95);
    }
    
    .bullet {
        width: 10px;
        height: 10px;
    }
    
    .bullet:active {
        background: #ffd700;
        transform: scale(1.2);
    }
}