/* ==========================================================================
   SAMBUTAN KEPALA SEKOLAH - SMP NEGERI 2 TAROKAN
   Tema Resmi: Navy Blue & Gold Prestasi
   ========================================================================== */

.headmaster-page {
    background-color: var(--school-bg-alt, #f8fafc);
    padding-bottom: 60px;
}

/* HERO SECTION */
.headmaster-hero {
    position: relative;
    background: linear-gradient(135deg, #071931 0%, #0c2d57 55%, #154a8a 100%);
    color: #ffffff;
    border-bottom: 3px solid #f59e0b;
    overflow: hidden;
}
.headmaster-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.16) 0%, transparent 60%);
    pointer-events: none;
}
.headmaster-hero-inner {
    padding: 55px 0 65px;
    position: relative;
    z-index: 2;
}

.headmaster-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.headmaster-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.headmaster-breadcrumbs a:hover {
    color: #fbbf24;
}
.headmaster-breadcrumbs .active {
    color: #fbbf24;
    font-weight: 700;
}

.headmaster-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fef08a;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}
.headmaster-hero-tag .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
}

.headmaster-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #ffffff;
}
.headmaster-hero h1 span {
    color: #fbbf24;
}
.headmaster-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: #cbd5e1;
}

/* ==========================================================================
   PAGE LAYOUT: SIDEBAR + MAIN CONTENT
   ========================================================================== */
.headmaster-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 36px;
    align-items: start;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

/* SIDEBAR: HEADMASTER PORTRAIT & IDENTITY */
.headmaster-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.headmaster-card-portrait {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(12, 45, 87, 0.08), 0 8px 10px -6px rgba(12, 45, 87, 0.04);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.headmaster-card-portrait:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -5px rgba(12, 45, 87, 0.12);
}

.headmaster-photo-box {
    position: relative;
    width: 100%;
    height: 380px;
    background: linear-gradient(180deg, #0c2d57 0%, #1a365d 100%);
    overflow: hidden;
}
.headmaster-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}
.headmaster-card-portrait:hover .headmaster-photo-box img {
    transform: scale(1.03);
}

.headmaster-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: linear-gradient(135deg, #0c2d57 0%, #1e3a8a 100%);
}
.headmaster-photo-placeholder svg {
    color: #cbd5e1;
    margin-bottom: 12px;
}
.headmaster-photo-placeholder span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fef08a;
}

.headmaster-badge-gold {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0c2d57;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    white-space: nowrap;
}

.headmaster-info-box {
    padding: 24px 20px;
}
.headmaster-title-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0c2d57;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.headmaster-name {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}
.headmaster-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.headmaster-motto-ribbon {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fefce8;
    border: 1px dashed #f59e0b;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
    font-style: italic;
    font-weight: 600;
}

/* SIDEBAR QUICK LINKS */
.headmaster-quick-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(12, 45, 87, 0.04);
}
.headmaster-quick-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0c2d57;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.headmaster-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.headmaster-quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.headmaster-quick-links a:hover {
    background: #0c2d57;
    border-color: #0c2d57;
    color: #ffffff;
    transform: translateX(4px);
}

/* ==========================================================================
   MAIN CONTENT: SPEECH BODY & ESSENCE
   ========================================================================== */
.headmaster-content-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(12, 45, 87, 0.06);
    padding: 44px 48px;
    margin-bottom: 30px;
}

.speech-highlight-quote {
    position: relative;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    border-left: 5px solid #f59e0b;
    border-radius: 0 16px 16px 0;
    padding: 24px 28px 24px 32px;
    margin-bottom: 36px;
}
.quote-mark-icon {
    position: absolute;
    top: 14px;
    right: 20px;
    opacity: 0.12;
    color: #0c2d57;
    pointer-events: none;
}
.speech-highlight-quote p {
    margin: 0;
    font-size: 17.5px;
    line-height: 1.65;
    font-weight: 600;
    color: #0c2d57;
    font-style: italic;
}

.speech-body {
    font-size: 16px;
    line-height: 1.85;
    color: #334155;
}
.speech-body p {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: justify;
}
.speech-body p:last-child {
    margin-bottom: 0;
}

/* SIGNATURE BLOCK */
.speech-signature-wrap {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px dashed #e2e8f0;
    display: flex;
    justify-content: flex-end;
}
.speech-signature-box {
    text-align: center;
    min-width: 250px;
}
.speech-signature-date {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 4px;
}
.speech-signature-role {
    font-size: 14px;
    font-weight: 700;
    color: #0c2d57;
    margin-bottom: 60px; /* Space for physical signature / seal */
}
.speech-signature-name {
    font-size: 16.5px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 2px solid #0c2d57;
    display: inline-block;
    padding-bottom: 3px;
    margin-bottom: 4px;
}
.speech-signature-meta {
    font-size: 12px;
    color: #64748b;
}

/* VALUES CARDS: INTERDINAMIS PILLARS */
.headmaster-values-section {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(12, 45, 87, 0.05);
    padding: 36px 40px;
}
.values-head {
    margin-bottom: 26px;
}
.values-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #d97706;
    background: #fef3c7;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.values-head h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #0c2d57;
}
.values-head p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.value-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s ease;
}
.value-card:hover {
    background: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.12);
    transform: translateY(-2px);
}
.value-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.value-icon-box.gold {
    background: #fef3c7;
    color: #d97706;
}
.value-icon-box.blue {
    background: #e0f2fe;
    color: #0284c7;
}
.value-icon-box.green {
    background: #dcfce7;
    color: #16a34a;
}
.value-icon-box.purple {
    background: #f3e8ff;
    color: #9333ea;
}
.value-card h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: #0c2d57;
}
.value-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #64748b;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 980px) {
    .headmaster-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: -20px;
    }
    .headmaster-sidebar {
        position: static;
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
    .headmaster-content-card {
        padding: 32px 24px;
    }
    .headmaster-values-section {
        padding: 28px 22px;
    }
}

@media (max-width: 640px) {
    .headmaster-hero-inner {
        padding: 40px 0 50px;
    }
    .headmaster-photo-box {
        height: 320px;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .headmaster-content-card {
        padding: 24px 18px;
    }
    .speech-highlight-quote {
        padding: 18px 20px;
    }
    .speech-highlight-quote p {
        font-size: 15.5px;
    }
    .speech-body {
        font-size: 15px;
        line-height: 1.75;
    }
    .speech-signature-wrap {
        justify-content: center;
    }
}
