/**
 * Studios Grid Widget Styles
 */

/* Container and Header */
.studios-container {
    width: 100%;
    max-width: 100%;
    padding: 40px 0;
}

.studios-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.studios-header-title {
    font-size: 42px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.studios-cta-button {
    display: inline-block;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.studios-cta-button:hover {
    background-color: #000;
    color: #fff;
}

/* Studios Grid */
.studios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    width: 100%;
}

/* Studio Card */
.studio-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background container with logo */
.studio-card-bg-container {
    position: relative;

    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.studio-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.studio-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Logo container - now inside bg container */
.studio-card-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.studio-logo {
    max-width: 80px;
    text-align: center;
}

.studio-logo img {
    width: 100%;
    height: auto;
    max-width: 80px;
    display: block;
    transition: transform 0.3s ease;
}

/* Button container */
.studio-card-button-container {
    position: relative;
    z-index: 3;
    margin-top: auto; /* Push to bottom */
    margin-bottom: 10px; /* Space at the bottom */
}

.studio-card-button {
    position: relative;
    display: block;
    width: 100%;
    background-color: #000;
    color: #fff;
    text-align: center;
    border: 1px solid #000;
    padding: 15px 0;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.studio-card-button:hover {
    background-color: #333;
}

/* Hover effects */
.studio-card:hover .studio-card-overlay {
    opacity: 0;
}

.studio-card:hover .studio-logo img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .studios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .studios-header-title {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .studios-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .studios-header-title {
        margin-bottom: 15px;
        font-size: 30px;
    }
    
    .studios-grid {
        grid-template-columns: 1fr;
    }
    
    .studio-card {
        height: 350px;
    }
}

/* Color-specific overlay classes (from the defaults in widget) */
.studio-card:nth-child(1) .studio-card-overlay {
    background-color: rgba(225, 196, 127, 0.5); /* Golden */
}

.studio-card:nth-child(2) .studio-card-overlay {
    background-color: rgba(117, 138, 125, 0.5); /* Green */
}

.studio-card:nth-child(3) .studio-card-overlay {
    background-color: rgba(219, 178, 178, 0.5); /* Pink */
}

.studio-card:nth-child(4) .studio-card-overlay {
    background-color: rgba(169, 192, 213, 0.5); /* Blue */
} 