/* ============================================
   SAMBUTAN KEPALA SEKOLAH - MODERN STYLING
   ============================================ */

:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ============================================
   SECTION LAYOUT
   ============================================ */

.sambutan-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.sambutan-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sambutan-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sambutan-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER SECTION
   ============================================ */

.sambutan-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.sambutan-badge {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.sambutan-badge:hover {
    transform: translateY(-2px);
}

.sambutan-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    margin: 0 auto 24px;
    border-radius: 2px;
    position: relative;
}

.title-underline::before,
.title-underline::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

.title-underline::before {
    left: -16px;
}

.title-underline::after {
    right: -16px;
}

.sambutan-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    font-weight: 400;
}

/* ============================================
   CONTENT CARD
   ============================================ */

.sambutan-card {
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.sambutan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.sambutan-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    min-height: 600px;
}

/* ============================================
   IMAGE SECTION
   ============================================ */

.sambutan-image-wrapper {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3/4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.5s ease;
}

.sambutan-card:hover .image-frame {
    transform: scale(1.05) rotate(2deg);
}

.sambutan-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-frame:hover .image-overlay {
    opacity: 1;
}

.image-decoration {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 150px;
    height: 150px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.image-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

/* ============================================
   TEXT SECTION
   ============================================ */

.sambutan-text {
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.greeting-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.quote-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
    opacity: 0.8;
}

.greeting {
    margin: 0;
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
}

.greeting strong {
    color: var(--primary-dark);
}

.message-content {
    flex: 1;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-medium);
    text-align: justify;
    padding: 10px 0;
}

.message-content p {
    margin-bottom: 16px;
}

/* ============================================
   SIGNATURE SECTION
   ============================================ */

.signature-box {
    margin-top: auto;
    padding-top: 30px;
}

.signature-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-bottom: 24px;
}

.signature-content {
    text-align: right;
}

.signature-title {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signature-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    position: relative;
    display: inline-block;
}

.signature-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.empty-icon {
    width: 80px;
    height: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 18px;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .sambutan-content {
        grid-template-columns: 1fr;
    }

    .sambutan-image-wrapper {
        padding: 40px 30px;
        min-height: 500px;
    }

    .image-frame {
        max-width: 280px;
    }

    .sambutan-text {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .sambutan-section {
        padding: 60px 15px;
    }

    .sambutan-title {
        font-size: 36px;
    }

    .sambutan-subtitle {
        font-size: 16px;
    }

    .sambutan-text {
        padding: 30px 25px;
    }

    .greeting-box {
        flex-direction: column;
        gap: 12px;
    }

    .message-content {
        font-size: 15px;
        text-align: left;
    }

    .signature-content {
        text-align: center;
    }

    .signature-name {
        display: block;
    }
}

@media (max-width: 480px) {
    .sambutan-title {
        font-size: 28px;
    }

    .sambutan-badge {
        font-size: 12px;
        padding: 6px 18px;
    }

    .sambutan-text {
        padding: 25px 20px;
    }

    .greeting {
        font-size: 16px;
    }

    .message-content {
        font-size: 14px;
    }

    .signature-name {
        font-size: 18px;
    }

    .image-frame {
        max-width: 240px;
    }

    .image-decoration {
        width: 100px;
        height: 100px;
    }
}