/* Video container styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 0px;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Layout and responsive styles */
* {
    box-sizing: border-box;
}

.responsive {
    padding: 0 5px;
    float: left;
    width: 49.99999%;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.blue {
    overflow: hidden;
}

.right-col iframe {
    position: relative;
    top: -50px;
    margin-bottom: -50px;
}

/* Piste styles */
.piste-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.pista-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pista-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pista-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e1e8ed;
}

.difficulty-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.bluo {
    background-color: #3498db;
}

.red {
    background-color: #e74c3c;
}

.black {
    background-color: #2c3e50;
}

.pista-title {
    font-size: 1.4rem;
    color: #2c3e50;
}

.pista-content {
    padding: 20px;
}

.pista-info {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.pista-info i {
    margin-right: 10px;
    color: #3498db;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.pista-info p {
    margin: 0;
}

.nocturna {
    display: inline-block;
    background-color: #9b59b6;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Banners styles */
.banners-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.banner-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.banner-card img {
    width: 100%;
    height: 180px;
    display: block;
}

/* Gallery styles */
div.gallery {
    background: rgba(250, 235, 215, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

div.gallery:hover {
    border: 1px solid #777;
}

.new {
    padding: 0 5px;
    float: left;
    width: 33%;
}

/* Responsive styles */
/* Tablet and below */
@media only screen and (max-width: 992px) {
    .responsive {
        width: 49.99999%;
        float: left;
    }
    
    .new {
        width: 33.99999%;
        float: left;
    }
    
    .piste-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banners-container {
        grid-template-columns: 1fr;
    }
}

/* Small tablets / large phones */
@media only screen and (max-width: 768px) {
    .responsive {
        width: 49.99999%;
        margin: 6px 0;
    }
    
    .new {
        width: 100%;
        margin: 6px 0;
    }
    
    .piste-container {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* Mobile phones */
@media only screen and (max-width: 500px) {
    .responsive {
        width: 100%;
        margin-bottom: 10px; /* 👈 space between stacked blocks */
    }
    
    .clearfix {
        margin-bottom: -20px; /* 👈 space between rows of webcams */
    }
    
    .new {
        width: 100%;
    }
}