/* GRID STYLES */
.glam-grid-51ecc5cc {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; /* Fallback */
}

@media (max-width: 767px) {
    .glam-grid-51ecc5cc {
        grid-template-columns: 1fr;
    }
}

.glam-card-51ecc5cc {
    background: #fff; /* Fallback */
    border-radius: 8px; /* Fallback */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Fallback */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.glam-card-51ecc5cc:hover {
    transform: translateY(-5px); /* Fallback */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Fallback */
}

.glam-card-img-51ecc5cc {
    position: relative;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.glam-card-overlay-51ecc5cc {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3); /* Fallback */
    transition: background 0.3s ease;
}

.glam-card-51ecc5cc:hover .glam-card-overlay-51ecc5cc {
    background: rgba(0,0,0,0.6); /* Fallback */
}

.glam-badge-51ecc5cc {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000; /* Fallback */
    color: #fff; /* Fallback */
    padding: 5px 12px; /* Fallback */
    font-size: 12px; /* Fallback */
    border-radius: 20px; /* Fallback */
    z-index: 2;
    text-transform: uppercase;
    font-weight: bold;
}

.glam-card-content-51ecc5cc {
    padding: 25px; /* Fallback */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glam-card-title-51ecc5cc {
    margin: 0 0 10px;
    font-size: 22px; /* Fallback */
    color: #333; /* Fallback */
    transition: color 0.3s;
}

.glam-card-subtitle-51ecc5cc {
    margin: 0 0 20px;
    font-size: 14px; /* Fallback */
    color: #666; /* Fallback */
}

.glam-card-btn-51ecc5cc {
    background: #111; /* Fallback */
    color: #fff; /* Fallback */
    border: none;
    padding: 12px 24px; /* Fallback */
    border-radius: 4px; /* Fallback */
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.glam-card-btn-51ecc5cc:hover {
    background: #444; /* Fallback */
}

/* MODAL STYLES */
.glam-modal-overlay-51ecc5cc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8); /* Fallback */
    backdrop-filter: blur(5px); /* Fallback */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.glam-modal-overlay-51ecc5cc.active {
    opacity: 1;
    pointer-events: auto;
}

body.admin-bar .glam-modal-overlay-51ecc5cc {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .glam-modal-overlay-51ecc5cc {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.glam-modal-51ecc5cc {
    background: #fff; /* Fallback */
    width: 90%;
    max-width: 800px; /* Fallback */
    max-height: 90vh;
    border-radius: 12px; /* Fallback */
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); /* Fallback */
}

.glam-modal-overlay-51ecc5cc.active .glam-modal-51ecc5cc {
    transform: translateY(0);
}

.glam-modal-close-51ecc5cc {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5); /* Fallback */
    color: #fff; /* Fallback */
    border: none;
    width: 36px; /* Fallback */
    height: 36px; /* Fallback */
    border-radius: 50%; /* Fallback */
    font-size: 24px; /* Fallback */
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s;
}

.glam-modal-close-51ecc5cc:hover {
    background: #000; /* Fallback */
}

.glam-modal-header-51ecc5cc img,
.glam-modal-header-51ecc5cc iframe {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.glam-modal-header-51ecc5cc iframe {
    aspect-ratio: 16 / 9;
}

.glam-modal-body-51ecc5cc {
    padding: 40px; /* Fallback */
}

.glam-modal-title-51ecc5cc {
    margin: 0 0 5px;
    font-size: 28px; /* Fallback */
    color: #111; /* Fallback */
}

.glam-modal-subtitle-51ecc5cc {
    margin: 0 0 25px;
    font-size: 16px; /* Fallback */
    color: #777; /* Fallback */
    font-weight: normal;
}

.glam-modal-desc-51ecc5cc {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #444; /* Fallback */
}

.glam-modal-desc-51ecc5cc a {
    color: inherit;
    text-decoration: underline;
}

.glam-modal-sections-51ecc5cc h5,
.glam-modal-table-wrap-51ecc5cc h5 {
    margin: 25px 0 10px; /* Fallback */
    font-size: 18px; /* Fallback */
    color: #222; /* Fallback */
}

.glam-modal-sections-51ecc5cc p {
    margin-bottom: 20px;
    color: #555; /* Fallback */
    line-height: 1.6;
    padding: 0; /* Fallback */
}

.glam-modal-table-wrap-51ecc5cc {
    margin-top: 40px;
}

.glam-modal-table-51ecc5cc {
    width: 100%;
    border-collapse: collapse;
}

.glam-modal-table-51ecc5cc th,
.glam-modal-table-51ecc5cc td {
    padding: 12px 15px; /* Fallback */
    border: 1px solid #ddd; /* Fallback */
    text-align: left;
}

.glam-modal-table-51ecc5cc th {
    background: #f5f5f5; /* Fallback */
    font-weight: bold;
    color: #111; /* Fallback */
}

.glam-modal-table-51ecc5cc tr:nth-child(odd) {
    background: #fff; /* Fallback */
}

.glam-modal-table-51ecc5cc tr:nth-child(even) {
    background: #fafafa; /* Fallback */
}

.glam-modal-footer-51ecc5cc {
    margin-top: 40px;
    text-align: center; /* Fallback */
}

.glam-modal-btn-51ecc5cc {
    display: inline-block;
    background: #111; /* Fallback */
    color: #fff; /* Fallback */
    padding: 15px 30px; /* Fallback */
    text-decoration: none;
    border-radius: 4px; /* Fallback */
    font-weight: bold;
    transition: all 0.3s;
}

.glam-modal-btn-51ecc5cc:hover {
    background: #333; /* Fallback */
    color: #fff; /* Fallback */
}
