/* Sambutan Page Styles - Clean and Professional Layout */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

.sambutan-page * {
    box-sizing: border-box;
}

/* =========================
   MAIN CONTAINER LAYOUT
   ========================= */
.sambutan-page .container {
    display: flex !important;
    max-width: 1200px !important;
    margin: 100px auto 20px auto !important; /* Top margin for navbar */
    border: 1px solid #e0e0e0 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    background-color: white !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* =========================
   SIDEBAR STYLING
   ========================= */
.sambutan-page .sidebar {
    width: 30% !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 30px !important;
    border-right: 2px solid #dee2e6 !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.sambutan-page .sidebar h2 {
    margin-bottom: 25px;
    font-weight: bold;
    color: #003f91;
    font-size: 24px;
    border-bottom: 3px solid #003f91;
    padding-bottom: 10px;
    position: relative;
}

.sambutan-page .sidebar h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #0066cc 0%, #003f91 100%);
    border-radius: 2px;
}

.sambutan-page .sidebar ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sambutan-page .sidebar li {
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.sambutan-page .sidebar li:not(:last-child)::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, #dee2e6 0%, transparent 100%);
    margin: 8px 0;
}

.sambutan-page .sidebar a {
    text-decoration: none;
    color: #333;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: -12px -16px;
    padding: 12px 16px;
    width: calc(100% + 32px);
    box-sizing: border-box;
}

.sambutan-page .sidebar a:hover {
    color: #003f91;
}

/* Make Hubungi Kami bold by default */
.sambutan-page .sidebar a[href*="hubungi"] {
    font-weight: bold !important;
    color: #003f91;
}

.sambutan-page .sidebar li:hover {
    background: linear-gradient(135deg, rgba(0, 63, 145, 0.1) 0%, rgba(0, 102, 204, 0.1) 100%);
    transform: translateX(5px);
}

.sambutan-page .sidebar li:hover a {
    color: #003f91;
}

.sambutan-page .sidebar li.active {
    background: linear-gradient(135deg, #003f91 0%, #0066cc 100%);
}

.sambutan-page .sidebar li.active a {
    color: white;
    font-weight: bold;
}

/* =========================
   MAIN CONTENT STYLING
   ========================= */
.sambutan-page .main-content {
    width: 70% !important;
    padding: 40px !important;
    position: relative !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    flex: 1 !important;
}

.sambutan-page .main-content h1 {
    color: #003f91;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: bold;
    border-bottom: 3px solid #003f91;
    padding-bottom: 15px;
    position: relative;
}

.sambutan-page .main-content h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #0066cc 0%, #003f91 100%);
    border-radius: 2px;
}

/* Additional mobile fixes */
@media (max-width: 768px) {
    .sambutan-page .rector-section,
    .sambutan-page .rector-container,
    .sambutan-page .rector-message,
    .sambutan-page .rector-message-image,
    .sambutan-page .rector-message-image img,
    .sambutan-page .rector-message-content {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 768px) {
    .sambutan-page .container {
        flex-direction: column !important;
        margin: 20px 15px 20px 15px !important;
    }
    
    .sambutan-page .sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: none !important;
        border-top: 2px solid #dee2e6 !important;
        padding: 20px !important;
        order: 2 !important;
    }
    
    .sambutan-page .main-content {
        width: 100% !important;
        padding: 25px !important;
        order: 1 !important;
    }
    
    .sambutan-page .sidebar h2 {
        font-size: 20px;
    }
    
    .sambutan-page .main-content h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .sambutan-page .container {
        margin: 15px 10px 15px 10px !important;
        border-radius: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .sambutan-page .sidebar {
        padding: 15px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .sambutan-page .main-content {
        padding: 20px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .sambutan-page .main-content h1 {
        font-size: 20px;
    }
}

/* =========================
   RECTOR SECTION STYLES
   ========================= */
/* Rector Section Styles */
.rector-section {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
}

.rector-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.rector-image-section {
    flex-shrink: 0;
    width: 200px;
}

.rector-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: none;
    position: relative;
    z-index: 1;
}

.rector-content-section {
    flex: 1;
    padding: 0;
}

.rector-message {
    background: linear-gradient(135deg, rgba(0, 63, 145, 0.05) 0%, rgba(0, 102, 204, 0.05) 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #003f91;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
}

.rector-message::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 63, 145, 0.1) 0%, rgba(0, 102, 204, 0.1) 100%);
    border-radius: 0 15px 0 100px;
    z-index: 0;
}

.rector-message-content {
    flex: 1;
    text-align: left;
    width: 100%;
    position: relative;
    z-index: 1;
}

.rector-message-image {
    flex-shrink: 0;
    width: 250px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.rector-message-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

.rector-message p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
    text-align: justify;
}


/* Responsive Design */
@media (max-width: 992px) {
    .rector-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .rector-image-section {
        width: 160px;
    }
    
    .rector-message-image {
        width: 180px;
    }
    
    .rector-message-content {
        text-align: left;
    }
    
}

@media (max-width: 768px) {
    .rector-container {
        gap: 15px;
    }
    
    .rector-image-section {
        width: 140px;
    }
    
    .rector-message {
        padding: 20px;
        gap: 15px;
    }
    
    .rector-message-image {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .rector-message-image img {
        width: 100%;
        border-radius: 10px;
    }
    
    .rector-message p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
}

@media (max-width: 576px) {
    .rector-container {
        gap: 12px;
    }
    
    .rector-image-section {
        width: 120px;
    }
    
    .rector-message {
        padding: 15px;
        gap: 12px;
    }
    
    .rector-message-image {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .rector-message-image img {
        width: 100%;
        border-radius: 8px;
    }
    
    .rector-message p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
}

/* Smooth animations for page load */
.rector-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.rector-image:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}
