/* Sambutan Pimpinan - Compact Version for Homepage */

/* Reduce section padding */
section.py-5.bg-light:has(.pimpinan-foto-wrapper) {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Container max width */
section.py-5.bg-light:has(.pimpinan-foto-wrapper) .container {
    max-width: 1100px;
}

/* Reduce foto wrapper size - Desktop */
.pimpinan-foto-wrapper {
    max-width: 65%;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.pimpinan-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
    display: block;
    border: none;
}

.pimpinan-foto-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f8f9fa;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 5rem;
    box-shadow: none;
}

/* Reduce decoration size */
.photo-decoration {
    position: absolute;
    border-radius: 15px;
    z-index: 0;
}

.photo-decoration.dec-1 {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(77, 124, 44, 0.15), transparent);
    top: -10px;
    left: -10px;
}

.photo-decoration.dec-2 {
    width: 90%;
    height: 90%;
    background: linear-gradient(-45deg, rgba(212, 175, 55, 0.15), transparent);
    bottom: -10px;
    right: -10px;
}

/* Reduce pimpinan info size */
.pimpinan-info h4 {
    font-size: 1.25rem;
}

.pimpinan-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

/* Reduce sambutan card size */
.sambutan-card {
    background: transparent;
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.quote-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2.5rem;
    color: rgba(45, 80, 22, 0.15);
    line-height: 1;
}

.sambutan-content p {
    color: #2c3e50;
    line-height: 1.7;
    text-align: justify;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.sambutan-signature {
    margin-top: 25px;
    text-align: right;
}

.signature-line {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37);
    margin-left: auto;
    margin-bottom: 10px;
}

.sambutan-signature p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.sambutan-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(77, 124, 44, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
}

/* Section title adjustment */
section.py-5.bg-light:has(.pimpinan-foto-wrapper) .section-title h2 {
    font-size: 1.75rem;
}

section.py-5.bg-light:has(.pimpinan-foto-wrapper) .section-title p {
    font-size: 0.95rem;
}

/* Responsive adjustments */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .container {
        max-width: 1140px;
    }
    
    .pimpinan-foto-wrapper {
        max-width: 70%;
    }
    
    .sambutan-card {
        padding: 35px;
    }
}

/* Tablet Landscape & Small Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .container {
        max-width: 960px;
    }
    
    .pimpinan-foto-wrapper {
        max-width: 65%;
    }
    
    .sambutan-card {
        padding: 30px;
    }
    
    .sambutan-content p {
        font-size: 0.93rem;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .container {
        max-width: 720px;
    }
    
    /* Stack layout for tablet */
    .pimpinan-foto-wrapper {
        max-width: 50%;
        margin: 0 auto 2rem;
    }
    
    .sambutan-card {
        padding: 28px;
        margin-top: 0;
    }
    
    .sambutan-content p {
        font-size: 0.92rem;
    }
    
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .section-title h2 {
        font-size: 1.65rem;
    }
    
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .section-title p {
        font-size: 0.93rem;
    }
}

/* Mobile Landscape & Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .pimpinan-foto-wrapper {
        max-width: 60%;
    }
    
    .pimpinan-foto-placeholder {
        font-size: 3.5rem;
    }
    
    .pimpinan-info {
        margin-top: 1.5rem !important;
    }
    
    .pimpinan-info h4 {
        font-size: 1.15rem;
    }
    
    .pimpinan-badge {
        font-size: 0.85rem;
        padding: 7px 18px;
    }
    
    .sambutan-card {
        padding: 22px;
        margin-top: 1.5rem;
    }
    
    .quote-icon {
        font-size: 2rem;
        top: 12px;
        left: 12px;
    }
    
    .sambutan-content p {
        font-size: 0.9rem;
        line-height: 1.65;
    }
    
    .sambutan-signature {
        margin-top: 20px;
    }
    
    .signature-line {
        width: 130px;
    }
    
    .sambutan-signature p {
        font-size: 0.88rem;
    }
    
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .section-title h2 {
        font-size: 1.5rem;
    }
    
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .section-title p {
        font-size: 0.9rem;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }
    
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .pimpinan-foto-wrapper {
        max-width: 70%;
    }
    
    .pimpinan-foto-placeholder {
        font-size: 3rem;
    }
    
    .pimpinan-info {
        margin-top: 1.25rem !important;
    }
    
    .pimpinan-info h4 {
        font-size: 1.05rem;
    }
    
    .pimpinan-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .sambutan-card {
        padding: 18px;
        margin-top: 1.25rem;
    }
    
    .quote-icon {
        font-size: 1.75rem;
        top: 10px;
        left: 10px;
    }
    
    .sambutan-content p {
        font-size: 0.87rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .sambutan-signature {
        margin-top: 18px;
    }
    
    .signature-line {
        width: 110px;
    }
    
    .sambutan-signature p {
        font-size: 0.83rem;
    }
    
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .section-title h2 {
        font-size: 1.35rem;
    }
    
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .section-title p {
        font-size: 0.87rem;
    }
}

/* Extra Small Mobile (up to 400px) */
@media (max-width: 400px) {
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .pimpinan-foto-wrapper {
        max-width: 75%;
    }
    
    .pimpinan-foto-placeholder {
        font-size: 2.5rem;
    }
    
    .pimpinan-info h4 {
        font-size: 1rem;
    }
    
    .pimpinan-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    .sambutan-card {
        padding: 15px;
    }
    
    .quote-icon {
        font-size: 1.5rem;
        top: 8px;
        left: 8px;
    }
    
    .sambutan-content p {
        font-size: 0.83rem;
        line-height: 1.55;
    }
    
    .sambutan-signature p {
        font-size: 0.8rem;
    }
    
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .section-title h2 {
        font-size: 1.25rem;
    }
    
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) .section-title p {
        font-size: 0.83rem;
    }
}
