/* Styles for the pages migrated from the legacy Staff Club website.
   Builds on the palette variables declared in style.css. */

.sc-hero {
  background: linear-gradient(135deg, #091d33 0%, #1a4478 100%);
  border-bottom: 3px solid var(--accent-coral);
}

.sc-prose p { color: #475569; line-height: 1.8; text-align: justify; }
.sc-prose img.sc-float { float: right; margin: 0 0 1rem 1.25rem; max-width: 45%; border-radius: 12px; border: 1px solid var(--border-color); padding: 6px; background: #fff; box-shadow: 0 6px 18px rgba(14, 42, 71, .08); }
@media (max-width: 767.98px) { .sc-prose img.sc-float { float: none; max-width: 100%; margin: 0 0 1rem 0; } }

.sc-doc-link { display: flex; gap: .6rem; align-items: flex-start; text-decoration: none; color: var(--text-dark); padding: .55rem .7rem; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; transition: all .2s ease; }
.sc-doc-link i { color: var(--accent-coral); font-size: 1.2rem; line-height: 1.3; }
.sc-doc-link:hover { border-color: var(--royal-blue); background: #eef4fc; color: var(--royal-blue); }

/* Office bearers */
.sc-bearer { text-align: center; padding: 1.25rem 1rem; height: 100%; }
.sc-bearer .member-avatar { width: 110px; height: 110px; margin-bottom: .75rem; }
.sc-bearer .role { font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--royal-blue); font-size: .95rem; }
.sc-bearer .name { color: #334155; font-size: .9rem; }

/* Events accordion */
.sc-events .accordion-button:not(.collapsed) { background: #eef4fc; color: var(--royal-blue); }
.sc-event { display: flex; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border-color); }
.sc-event:last-child { border-bottom: 0; }
.sc-event img { width: 220px; max-width: 38%; height: auto; align-self: flex-start; border-radius: 10px; border: 1px solid var(--border-color); }
.sc-event h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: .15rem; }
.sc-event .when { color: var(--text-muted); font-size: .85rem; margin-bottom: .6rem; }
.sc-event .txt { color: #475569; font-size: .92rem; white-space: pre-line; margin: 0; }
@media (max-width: 575.98px) { .sc-event { flex-direction: column; } .sc-event img { width: 100%; max-width: 100%; } }

/* Gallery */
.sc-album-cover { height: 190px; object-fit: cover; width: 100%; }
.sc-thumb { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--border-color); transition: transform .2s ease, box-shadow .2s ease; background: #dbe4ef; }
.sc-thumb:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(14, 42, 71, .18); }
.sc-side-menu a { display: block; padding: .5rem .75rem; border-radius: 8px; color: #334155; text-decoration: none; font-size: .9rem; }
.sc-side-menu a:hover { background: #eef4fc; color: var(--royal-blue); }
.sc-side-menu a.active { background: var(--royal-blue); color: #fff; font-weight: 600; }

.sc-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 20, 36, .92); display: none; align-items: center; justify-content: center; padding: 2rem; }
.sc-lightbox.open { display: flex; }
.sc-lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.sc-lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; line-height: 1; }
.sc-lightbox button:hover { background: rgba(255, 255, 255, .3); }
.sc-lightbox .lb-close { top: 1rem; right: 1rem; }
.sc-lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.sc-lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.sc-lightbox .lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #cbd5e1; font-size: .85rem; }

/* SSBMT microsite */
.sc-lab-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; height: 100%; }
.sc-lab-card .hd { background: #0e2a47; color: #ffc107; font-weight: 700; padding: .55rem .9rem; font-family: 'Outfit', sans-serif; }
.sc-lab-card ul { margin: 0; padding: .7rem .9rem .7rem 1.9rem; font-size: .85rem; color: #334155; }
.sc-sport-title { color: var(--accent-coral); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.3rem; margin-top: 1.25rem; }

/* Contact */
.sc-contact-person { padding: .9rem 0; border-bottom: 1px solid var(--border-color); }
.sc-contact-person:last-child { border-bottom: 0; }

/* ---------- Home page ---------- */
.sc-home-hero .carousel-item { height: 540px; }
.sc-home-hero .carousel-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,29,51,.15) 0%, rgba(8,29,51,.75) 100%); pointer-events: none; }
.sc-home-hero .carousel-caption { z-index: 3; bottom: 14%; }
.sc-home-hero .carousel-indicators { z-index: 4; }
.sc-home-hero .carousel-control-prev, .sc-home-hero .carousel-control-next { z-index: 4; }
@media (max-width: 767.98px) { .sc-home-hero .carousel-item { height: 440px; } .sc-home-hero .carousel-caption h2 { font-size: 1.5rem; } }

.sc-ssbmt-band { background: linear-gradient(110deg, #081d33 0%, #1a4478 60%, #23528f 100%); color: #fff; border-top: 3px solid var(--accent-coral); border-bottom: 3px solid var(--accent-coral); position: relative; overflow: hidden; }
.sc-ssbmt-band::before { content: ''; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(244,162,97,.35), transparent 70%); }
.sc-ssbmt-band .sc-ssbmt-no { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 3.6rem; line-height: 1; color: var(--accent-gold); }
.sc-ssbmt-band .sc-ssbmt-no small { font-size: 1.4rem; vertical-align: top; }

.sc-stat { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 1rem .75rem; height: 100%; transition: transform .2s, box-shadow .2s; }
.sc-stat:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(14,42,71,.1); }
.sc-stat i { font-size: 1.5rem; }

.sc-person-card .sc-person-photo { width: 78px; height: 78px; object-fit: cover; border-radius: 50%; }

.sc-recent td, .sc-recent th { vertical-align: middle; }
.sc-form-row { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--border-color); text-decoration: none; color: var(--text-dark); }
.sc-form-row:last-child { border-bottom: 0; }
.sc-form-row i { font-size: 1.5rem; color: var(--accent-coral); line-height: 1.1; }
.sc-form-row:hover .t { color: var(--royal-blue); }
.sc-gal-card { position: relative; display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(14,42,71,.12); }
.sc-gal-card img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center 35%; transition: transform .4s ease; background: #dbe4ef; }
.sc-gal-card:hover img { transform: scale(1.05); }
.sc-gal-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(180deg, transparent, rgba(8,29,51,.88)); }

/* Home gallery mosaic: featured photo + four tiles */
.sc-gal-mosaic { display: grid; gap: 1rem; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 520px; }
.sc-gal-mosaic .sc-gal-card { height: 100%; }
.sc-gal-mosaic .sc-gal-card img { height: 100%; aspect-ratio: auto; }
.sc-gal-mosaic .sc-gal-feature { grid-row: span 2; }
.sc-gal-mosaic .sc-gal-feature .cap { font-size: 1.15rem; padding: 3rem 1.2rem 1rem; }
@media (max-width: 991.98px) { .sc-gal-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; } .sc-gal-mosaic .sc-gal-feature { grid-column: span 2; grid-row: auto; } .sc-gal-mosaic .sc-gal-card { height: auto; } .sc-gal-mosaic .sc-gal-card img { height: auto; aspect-ratio: 4 / 3; } .sc-gal-mosaic .sc-gal-feature img { aspect-ratio: 16 / 9; } }
