/**
 * Revolution Slider Layers CSS
 * This file contains styling for the slider layers and elements
 */

/* Basic layer styling */
.tp-caption {
    position: relative;
    z-index: 1;
    display: block;
    visibility: hidden;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Text styling */
.tp-caption h1, 
.tp-caption h2, 
.tp-caption h3, 
.tp-caption h4, 
.tp-caption h5, 
.tp-caption h6 {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.tp-caption p {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Caption positioning */
.tp-caption.tp-left {
    text-align: left;
}

.tp-caption.tp-center {
    text-align: center;
}

.tp-caption.tp-right {
    text-align: right;
}

/* Animation classes */
.tp-caption.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.tp-caption.slide-up {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.tp-caption.slide-down {
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.tp-caption.slide-left {
    transform: translateX(50px);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.tp-caption.slide-right {
    transform: translateX(-50px);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* Active state */
.tp-caption.active {
    opacity: 1;
    transform: translate(0, 0);
    visibility: visible;
}

/* Layer effects */
.tp-caption.boxshadow {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.tp-caption.black-bg {
    background: rgba(0, 0, 0, 0.75);
    padding: 20px;
    border-radius: 5px;
}

.tp-caption.white-bg {
    background: rgba(255, 255, 255, 0.75);
    padding: 20px;
    border-radius: 5px;
}

.tp-caption.rounded {
    border-radius: 5px;
}

/* Caption buttons */
.tp-caption .btn {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tp-caption .btn-light {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.tp-caption .btn-dark {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

.tp-caption .btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Media queries */
@media (max-width: 768px) {
    .tp-caption h1, .tp-caption h2 {
        font-size: 32px !important;
    }
    
    .tp-caption h3 {
        font-size: 24px !important;
    }
    
    .tp-caption p {
        font-size: 16px !important;
    }
    
    .tp-caption .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tp-caption h1, .tp-caption h2 {
        font-size: 24px !important;
    }
    
    .tp-caption h3 {
        font-size: 18px !important;
    }
    
    .tp-caption p {
        font-size: 14px !important;
    }
    
    .tp-caption .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
