/* ============================================================
   Shivalik Elementor Widgets — Supplemental Styles
   These extend / patch the existing theme stylesheet.
   ============================================================ */

/* --- Marquee (Notice Strip) -------------------------------- */
.notice-strip { overflow: hidden; }
.marquee-wrap  { overflow: hidden; flex: 1; min-width: 0; }
.marquee-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    animation: sc-marquee linear infinite;
}
@keyframes sc-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.notice-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .75rem;
    border-radius: 2px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-right: 1rem;
}

/* --- Faculty Placeholder Avatar ---------------------------- */
.faculty-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--off-white, #f7f5f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy, #1a2744);
    letter-spacing: .05em;
}

/* --- Testimonials ------------------------------------------ */
.testi-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold, #c9a84c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}
.testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.testi-section-wrap .section-label,
.testi-section-wrap .section-title,
.testi-section-wrap .section-sub { color: rgba(255,255,255,.9); }
.testi-section-wrap .section-title { color: #fff; }

/* --- Stats band -------------------------------------------- */
.stats-band { position: relative; }
.stat-item  { text-align: center; }

/* --- Gallery ----------------------------------------------- */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin-top: 2rem;
}
@media (max-width: 900px) { .gallery-masonry { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-masonry { grid-template-columns: repeat(2, 1fr); } }

/* --- Programs tab filter ----------------------------------- */
.programs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
}
.tab-btn {
    padding: .4rem 1.1rem;
    border: 1px solid var(--border, #ddd);
    border-radius: 2rem;
    background: transparent;
    cursor: pointer;
    font-size: .8rem;
    transition: all .2s;
}
.tab-btn.active,
.tab-btn:hover {
    background: var(--navy, #1a2744);
    color: #fff;
    border-color: var(--navy, #1a2744);
}

/* --- Section wrappers (ensure padding) --------------------- */
.about-section-wrap,
.why-section-wrap,
.programs-section-wrap,
.admissions-section-wrap,
.faculty-section-wrap,
.news-section-wrap,
.campus-section-wrap,
.testi-section-wrap,
.contact-section-wrap { padding-top: var(--section-pad, 5rem); padding-bottom: var(--section-pad, 5rem); }

/* --- Elementor editor helpers ------------------------------ */
.elementor-editor-active .marquee-track { animation: none !important; }
