/* Menu box di atas banner sekolah */
.school-banner img {
    object-fit: cover;
    height: 450px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
@media (max-width: 600px) {
    .school-banner img {
        height: 250px;
    }
.menu-boxes { display:flex; gap:12px; align-items:center; }
}
.menu-boxes a {
    background: #0a3d91;
    border-radius: 20px 20px 0 0; /* slightly larger radius for a modern look */
    box-shadow: 0 12px 40px rgba(10, 61, 145, 0.18); /* stronger shadow for presence */
    color: #fff;
    text-decoration: none;
    padding: 10px 24px; /* increased vertical and horizontal padding for a 'gagah' feel */
    border: 3px solid #0a3d91;
    letter-spacing: 0.22px;
    font-size: 1rem; /* slightly larger for boldness */
    line-height: 1.2;
    transition: box-shadow 0.18s, color 0.18s, transform 0.18s;
    position: relative;
}
.menu-boxes a:hover {
    color: #ffd600;
    box-shadow: 0 12px 32px rgba(10, 61, 145, 0.35);
    transform: translateY(-2px) scale(1.04);
}
/* Base banner and menu positioning helpers */
.school-banner { position: relative; z-index: 10; }
/* full-viewport blue strip that sits visually under the banner; pointer-events:none so it doesn't block clicks */
.school-banner::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px; /* slightly below banner (moved up) */
    width: 100vw; /* span the full viewport */
    height: 10px;
    background: linear-gradient(90deg, #0a3d91 0%, #0a3d91 100%);
    z-index: 5; /* stays below the tabs */
    pointer-events: none;
}
.menu-boxes.position-absolute { left: 50%; transform: translateX(-50%); bottom: -6px; z-index: 30; display:flex; gap:12px; }
.menu-btn { display:inline-block; padding:10px 22px; border-radius:20px 20px 0 0; background: linear-gradient(180deg,#0a3d91 0%, #0a3d91 100%); color:#fff; text-decoration:none; font-weight:500; font-size:1rem; letter-spacing:0.22px; line-height:1.2; box-shadow: 0 12px 40px rgba(10,60,110,0.18); border:1px solid rgba(0,0,0,0.08); transform: none; }
.menu-btn:hover { transform: translateY(0); box-shadow: 0 14px 34px rgba(10,60,110,0.22); }
.menu-btn.variant-accent { background: linear-gradient(180deg,#0a3d91 0%, #0a3d91 100%); color: #fff; }

/* Icons inside menu buttons: small circular marker directly left of label */
.menu-boxes a, .menu-btn { position: relative; }
.menu-boxes a i,
.menu-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-right: 8px;
    color: #fff; /* white icon by default */
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    vertical-align: middle;
}

/* no circular markers on hover - icons remain plain */

/* no large left padding needed when icon is inline; exclude icon-only buttons */
.menu-boxes a:not(.menu-icon-only) { padding-left: 12px; }

/* Icon-only circular home button */
.menu-boxes a.menu-icon-only {
    padding: 8px 12px; /* increase to match bigger tabs */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg,#0a3d91 0%, #0a3d91 100%);
    box-shadow: 0 12px 36px rgba(10,60,110,0.18);
    border:1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
}
.menu-boxes a.menu-icon-only i { margin: 0; font-size: 18px; color: #fff; background: transparent; width: auto; height: auto; border-radius: 0; }

/* reduce overall boldness of menu text for a cleaner look */
.menu-boxes a, .menu-btn { font-weight: 400; white-space: nowrap; }
@media (max-width: 600px) {
    .menu-boxes {
        flex-direction: column;
        gap: 8px;
        width: 90vw;
        left: 50%;
    transform: translate(-50%, 0);
    bottom: -6px; /* tuck tabs slightly into mobile banner (moved up) */
    }
    .menu-boxes a {
        padding: 10px 0;
        font-size: 1rem;
    }
    /* allow wrapping on very small screens so labels can flow to multiple lines if needed */
    .menu-boxes a, .menu-btn { white-space: normal; }
}

/* style.css untuk SISKA - SMK IPIEMS Surabaya */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    background: #f8fafc;
    color: #222;
}
/* Top header (site header) */
header.site-header {
    background: #0a3d91; /* solid deep blue */
    color: #fff;
    padding: 1.25rem 0; /* slightly reduced vertical padding */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.header-brand { display:flex; align-items:center; gap:12px; }
.brand-logo { height:110px; width:auto; display:block; }
.brand-text h1 { font-size:1.6rem; margin:0; color:#fff; letter-spacing:1px; }
.brand-sub { font-size:0.9rem; color: rgba(255,255,255,0.95); }
.header-links a { color:#fff; text-decoration:none; font-weight:600; font-size:0.9rem; opacity:0.95; }
.header-links a:hover { color:#ffd600; text-decoration:none; }

@media (max-width: 900px) {
    .brand-logo { height:72px; }
    .brand-text h1 { font-size:1.15rem; }
    .header-links { display:none !important; }
}
nav {
    background: #0a3d91;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0.7rem 0;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}
nav a:hover {
    color: #ffd600;
}
main {
    max-width: 1100px; /* increased to accommodate wider sidebar */
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 2rem;
}
section p {
    font-size: 1.2rem;
    line-height: 1.7;
    text-align: center;
}
footer {
    background: #0a3d91;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 1rem;
}
@media (max-width: 600px) {
    header h1 { font-size: 1.5rem; }
    nav ul { gap: 1rem; }
    main { padding: 1rem; }
    section p { font-size: 1rem; }
    /* responsive heights for slider and thumbnails to reduce cropping on small screens */
    .slider-wrap { height: 260px; }
    .card-thumb { height: 160px; }
    .gallery-item { height: 120px; }
}

/* Layout: main content + sidebar */
.content-wrap { display:flex; gap:24px; align-items:flex-start; }
.main-col { flex: 1 1 auto; }
.sidebar { width: 360px; }

/* Dashboard sidebar tweaks */
.dash-sidebar { width: 300px; min-width: 260px; max-width: 320px; background: #fafbfd; border-right: 1px solid rgba(10,20,40,0.04); box-shadow: 0 6px 24px rgba(0,0,0,0.03); }
.dash-sidebar nav { display:flex; flex-direction:column; gap:8px; }
.dash-sidebar a { display:flex; align-items:center; gap:12px; padding:14px 16px; color:#0a2b5a; text-decoration:none; border-radius:8px; font-weight:600; }
.dash-sidebar a i { width:22px; text-align:center; color:#0a3d91; }
.dash-sidebar a.active { background: linear-gradient(90deg,#e8f0ff, #dfeeff); color:#0a3d91; }

@media (max-width: 900px) {
    .dash-sidebar { width: 220px; min-width: 180px; }
}


/* Slider */
.slider { position: relative; background:#fff; border-radius:8px; overflow:hidden; margin-bottom:22px; }
.slider-wrap { position: relative; width: 100%; /* use aspect-ratio for adaptive height, with a sensible min-height fallback */
    aspect-ratio: 21 / 10; /* ~2.1:1 — wide but tall enough */
    height: auto;
    min-height: 320px;
    overflow: hidden; }
.slide-item { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms ease; }
.slide-item.active { opacity: 1; }
.slider-desc { position:absolute; left:20px; bottom:18px; background: rgba(0,0,0,0.25); color:#fff; padding:14px 18px; border-radius:8px; max-width:60%; font-size:1.15rem; font-weight:600; }

/* caption per slide - uniform, transparent, bottom-left and larger text */
.slider-caption { position: absolute; left: 20px; bottom: 18px; color: #fff; padding: 10px 14px; border-radius:8px; max-width:66%; font-size:1.15rem; font-weight:600; background: rgba(0,0,0,0.25); }

/* remove multiple caption style variations and keep a single uniform translucent style */

/* make slider images cover their container */
.slide-item img.slider-img { width:100%; height:100%; object-fit:cover; display:block; }

/* Sections and label pill */
.section-header { margin: 10px 0 8px 0; position: relative; padding-top: 12px; }
.section-label { position: absolute; left: 12px; top: 0; transform: translateY(-50%); display:inline-block; padding:6px 12px; background:#d32f2f; color:#fff; border-radius:8px; font-weight:700; font-size:0.95rem; box-shadow: 0 4px 10px rgba(0,0,0,0.12); }

/* Title widget style (like attachment) */
/* common title widget baseline */
.sidebar-title-widget { display:block; margin-bottom:14px; }

/* Variant 1: Minimal Underline */
.sidebar-title-widget.variant-1 {
    color: #0a3d91;
    font-weight:700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.95rem;
    padding: 4px 8px;
}
.sidebar-title-widget.variant-1::after{ content:''; display:block; height:2px; width:48px; background:#0a3d91; margin-top:8px; border-radius:2px; }

/* Variant 2: Left Accent */
.sidebar-title-widget.variant-2{
    color:#0b3e92; font-weight:700; padding:10px 12px 10px 18px; font-size:1rem; border-radius:4px; background:transparent;
    position:relative;
}
.sidebar-title-widget.variant-2::before{ content:''; position:absolute; left:8px; top:50%; transform:translateY(-50%); width:6px; height:60%; background:linear-gradient(180deg,#0a3d91,#08306b); border-radius:3px; }

/* Variant 3: Solid Banner */
.sidebar-title-widget.variant-3{ display:block; background:linear-gradient(90deg,#0a3d91,#08306b); color:#fff; padding:10px 14px; border-radius:6px; font-weight:800; text-transform:uppercase; font-size:0.95rem; }

/* Screenshot-style: bold blue banner with angled tail and thin underline */
.sidebar-title-widget.variant-screenshot,
.sidebar-title-widget.variant-3.screenshot {
    display:block; position:relative; background:linear-gradient(90deg,#0b3dff,#002bb8); color:#fff; padding:10px 18px; border-radius:6px; font-weight:900; text-transform:uppercase; letter-spacing:1px; font-size:1rem;
}
.sidebar-title-widget.variant-screenshot::after{
    content:''; position:absolute; right:-28px; top:50%; transform:translateY(-50%) rotate(12deg); width:64px; height:22px; background:linear-gradient(90deg,#0b3dff,#002bb8); border-bottom:6px solid rgba(0,0,0,0.08); border-top-right-radius:6px; }
.sidebar-title-widget.variant-screenshot::before{
    content:''; position:absolute; left:0; right:0; bottom:-8px; height:4px; background:linear-gradient(90deg,#0b3dff,#002bb8); }

/* Additional colorful presets */
.sidebar-title-widget.variant-4{ display:block; background:linear-gradient(90deg,#ff6b6b,#ff3d3d); color:#fff; padding:10px 14px; border-radius:6px; font-weight:800; text-transform:uppercase; font-size:0.95rem; }
.sidebar-title-widget.variant-5{ display:block; background:linear-gradient(90deg,#00c6ff,#0072ff); color:#fff; padding:10px 14px; border-radius:6px; font-weight:800; text-transform:uppercase; font-size:0.95rem; }
.sidebar-title-widget.variant-6{ display:block; background:linear-gradient(90deg,#34d399,#059669); color:#063; padding:10px 14px; border-radius:6px; font-weight:800; text-transform:uppercase; font-size:0.95rem; }

/* small helper for preview spacing in dashboard */
.sb-preview .sidebar-title-widget { margin-bottom:6px; }

/* Article grid and cards */
.article-grid { display:grid; grid-template-columns: 1fr; gap:18px; }
.card-item { background:#fff; border-radius:8px; overflow:hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.04); display:flex; flex-direction:column; }
.card-thumb { width:100%; height:260px; object-fit:cover; display:block; }
.card-body { padding:12px 14px; color:#222; display:flex; flex-direction:column; gap:8px; }
.card-title { margin:0; font-size:1.05rem; }
.card-excerpt { margin:0; color:#555; font-size:0.95rem; }
.read-more { 
    align-self: flex-start;
    display:inline-block;
    background: #0a3d91; /* deep blue */
    color: #fff !important;
    border: 1px solid rgba(10,61,145,0.12);
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}
.read-more:hover {
    background: #08306b;
    color: #ffd600 !important;
    text-decoration: none;
}

/* Consistent back button styling used across public pages */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(10,61,145,0.12);
    background: transparent;
    color: #0a3d91;
    text-decoration: none;
    font-weight: 700;
}
.back-btn:hover { background: #0a3d91; color: #fff; text-decoration: none; }
.back-btn i { margin-right: 4px; }

/* Elegant proportional headmaster / profile photo (3:4 aspect) */
.headmaster-photo {
    width: 120px; /* reduced default size */
    aspect-ratio: 3 / 4; /* keep proportional */
    overflow: hidden;
    border-radius: 14px;
    padding: 6px; /* inner white frame area */
    background: linear-gradient(135deg, #ffffff, #eaf4ff); /* subtle gradient outer frame */
    box-shadow: 0 8px 22px rgba(2,6,23,0.10);
    display:flex; align-items:center; justify-content:center;
}
.headmaster-photo img { width:100%; height:100%; object-fit:cover; display:block; border-radius:10px; border: 2px solid rgba(255,255,255,0.85); }
.headmaster-photo-fallback { color: #08326a; font-weight:700; }
@media (min-width: 1200px) { .headmaster-photo { width: 140px; } }
@media (max-width:900px){ .headmaster-photo { width: 110px; } }
@media (max-width:520px){ .headmaster-photo { width: 96px; } }

/* Gallery grid */
.gallery-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.gallery-item { height:200px; border-radius:8px; overflow:hidden; background:#f3f7fb; display:flex; align-items:center; justify-content:center; position:relative; }
.gallery-img { width:100%; height:100%; object-fit:cover; display:block; }

/* gallery caption overlay (bottom-left, uniform with slider) */
.gallery-caption { position:absolute; left:12px; bottom:12px; background: rgba(0,0,0,0.2); color:#fff; padding:6px 10px; border-radius:6px; font-size:1rem; font-weight:600; max-width:85%; }

/* Video grid (YouTube previews) */
.video-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-top:12px; }
.video-item { position: relative; overflow: hidden; border-radius:8px; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,0.04); background:#000; color:#fff; min-height:200px; display:flex; flex-direction:column; justify-content:flex-end; }
.video-thumb { position:absolute; inset:0; background-size:cover; background-position:center; filter:brightness(0.6); }
.video-meta { position:relative; padding:10px 12px; z-index:5; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35)); }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index:6; font-size:42px; color: #ffd600; text-shadow: 0 6px 18px rgba(0,0,0,0.5); }

@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* stack sidebar under main column on small screens (like WordPress) */
@media (max-width: 900px) {
    .content-wrap { flex-direction: column; }
    .sidebar { width: 100%; order: 99; }
    .main-col { order: 1; }
}

/* Pagination tweaks */
.simple-pagination { display:flex; gap:8px; align-items:center; justify-content:center; margin:12px 0; }
.simple-pagination .page-link { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; border-radius:6px; color:#0a3d91; background:#fff; border:1px solid rgba(15,15,15,0.06); padding:0 10px; font-weight:600; }
.simple-pagination .page-item.active .page-link { background:#0a3d91; color:#fff; border-color:#0a3d91; }

/* Lightbox */
.lightbox-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 24px; }
.lightbox-backdrop.active { display: flex; }
.lightbox-content { max-width: calc(100vw - 80px); max-height: calc(100vh - 80px); box-shadow: 0 12px 48px rgba(0,0,0,0.6); border-radius: 6px; overflow: auto; }
.lightbox-content img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; }
.lightbox-close { position: absolute; right: 28px; top: 18px; color: #fff; font-size: 28px; cursor: pointer; z-index:10000; }

/* center lightbox content and prevent internal scroll; video wrapper will set aspect-ratio */
.lightbox-content { display:flex; align-items:center; justify-content:center; padding: 12px; overflow: hidden; }
.lightbox-content img { max-width:100%; max-height:100%; height:auto; width:auto; }

.lightbox-video-wrapper { width: min(1400px, 98%); aspect-ratio: 16 / 9; max-width: 1400px; max-height: calc(100vh - 80px); }
.lightbox-video-wrapper iframe { width:100%; height:100%; display:block; border:0; }

@media (min-width: 900px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    /* mobile: use a taller aspect common for phones */
    .slider-wrap { aspect-ratio: 16 / 9; min-height: 200px; height: auto; }
    .sidebar { width:100%; order:99; }
}

/* Share box for article pages */
.share-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f5f8ff; /* subtle pale blue */
    border: 1px solid #e6eef9;
    box-shadow: 0 6px 20px rgba(12,35,90,0.04);
}
.share-box .share-label {
    color: #0a3d91;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}
.share-box .share-icons { display:flex; gap:8px; align-items:center; }
.share-box .share-icon { display:inline-flex; align-items:center; justify-content:center; }
.share-box .share-btn {
    padding: 8px 10px;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size: 0.98rem;
}
.share-box .share-btn svg { width:18px; height:18px; }
.share-box .share-btn.btn-outline-primary { color: #0a3d91; border-color: rgba(10,61,145,0.12); }
.share-box .share-btn.btn-outline-info { color: #0a7fbf; border-color: rgba(10,120,190,0.12); }
.share-box .share-btn.btn-outline-success { color: #1b8a3e; border-color: rgba(27,138,62,0.12); }
.share-box .share-btn.btn-outline-secondary { color: #42505a; border-color: rgba(66,80,90,0.08); }

@media (max-width: 600px) {
    .share-box { flex-direction: column; align-items: stretch; }
    .share-box .share-label { margin-bottom: 6px; }
    .share-box .share-icons { justify-content: flex-start; }
}
