/* Theme2 EduCMS — Tailwind overrides */

[x-cloak] {
    display: none !important;
}

.educms-hero-img {
    min-height: 320px;
    height: 50vh;
}

@media (min-width: 640px) {
    .educms-hero-img {
        height: 60vh;
    }
}

@media (min-width: 1024px) {
    .educms-hero-img {
        height: 70vh;
    }
}

.educms-hero-slide {
    display: none;
}

.educms-hero-slide.is-active {
    display: block;
}

.educms-hero-prev,
.educms-hero-next {
    z-index: 2;
}

.educms-hero-dots button {
    height: 0.5rem;
    width: 0.5rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.2s, width 0.2s;
}

.educms-hero-dots button.is-active {
    width: 1.5rem;
    background: #fff;
}

.educms-alerts-marquee {
    animation: educms-marquee 30s linear infinite;
    width: max-content;
}

@keyframes educms-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.educms-map-embed iframe,
.educms-map-iframe iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 200px;
}

.educms-map-placeholder {
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.educms-page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.educms-page-body table {
    width: 100%;
    border-collapse: collapse;
}

.educms-page-body th,
.educms-page-body td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
}

/* Lightbox */
.educms-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    padding: 1rem;
}

.educms-lightbox[hidden] {
    display: none;
}

.educms-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.educms-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
}

.educms-lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #e2e8f0;
    font-size: 0.875rem;
    text-align: center;
    max-width: 90%;
}

/* Testimonial rotation */
.educms-testimonial {
    display: none;
}

.educms-testimonial.is-active {
    display: block;
}

/* Scroll reveal */
.educms-reveal {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.educms-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
