/* ==========================================================================
   Global Styles (Applied to most frontend pages)
   ========================================================================== */
body {
    font-family: 'Poppins', sans-serif;
}

/* Page Header (common for many pages) */
.page-header {
    background: #0d6efd;
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

/* ==========================================================================
   Specific Page Styles
   ========================================================================== */

/* Srikandi (Cek Kelulusan) specific styles */
.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: -50px;
}
.check-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
}
.result-box {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}
.status-lulus {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.status-tidak {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Struktur Organisasi specific styles */
.org-chart-container {
    width: 100%;
    height: auto; /* Diubah ke auto agar tinggi mengikuti konten yang menyesuaikan lebar */
    min-height: 600px;
    overflow: auto;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    position: relative;
    cursor: grab;
    -webkit-overflow-scrolling: touch; /* Memperhalus scroll di perangkat iOS */
}
.org-chart-container:active {
    cursor: grabbing;
}
svg {
    width: 100%; /* Menggunakan lebar 100% agar otomatis fit di dalam bingkai web */
    height: auto;
    background: white;
}
.box-title {
    fill: #082d63;
}
.box-text {
    font-size: 14px;
    font-weight: bold;
    fill: white;
}
.box-content {
    font-size: 13px;
    fill: #222;
}
.line {
    stroke: #082d63;
    stroke-width: 2;
    stroke-linecap: round;
}
.svg-link {
    cursor: pointer;
    text-decoration: none;
}
/* Hover Effects */
.node-group {
    transition: all 0.3s ease;
    cursor: default;
}
.node-group:hover rect.box-main {
    fill: #f0f7ff;
    stroke: #ffc107;
    stroke-width: 2.5;
}
.node-group .hover-details {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.node-group:hover .hover-details {
    opacity: 1;
}
.node-group:hover .box-content-name {
    fill: #0d6efd;
}
.line-dash {
    stroke-dasharray: 5,5;
}
.card.mb-3 { /* This rule is specific to struktur_organisasi.php */
    border-left: 5px solid #007bff;
}

/* Sarana dan Prasarana specific styles */
.galeri-item {
    transition: all 0.3s ease;
}
.galeri-item:hover {
    transform: translateY(-5px);
}
.galeri-item img {
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}
.btn-group .btn {
    margin: 0 5px;
}

/* Akademik specific styles */
.navbar-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.sidebar {
    background: #f8f9fa;
    min-height: calc(100vh - 76px);
}
.program-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.program-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.breadcrumb-custom {
    background: transparent;
    padding: 0;
}
.active-program {
    background: #667eea;
    color: white;
}

/* PKL specific styles */
.pkl-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}
.pkl-card:hover {
    transform: translateY(-5px);
}
.info-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}
.system-link {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}
.system-link:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
font-weight: bold;
    margin-right: 1rem;
}

/* Program Studi specific styles */
.img-clickable {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.img-clickable:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
#modalImage {
    transition: transform 0.3s ease;
    max-height: 85vh;
}
.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Ekstrakurikuler specific styles */
.ekskul-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}
.ekskul-card:hover {
    transform: translateY(-5px);
}
.ekskul-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.galeri-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.galeri-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.galeri-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.kegiatan-list {
    list-style: none;
    padding: 0;
}
.kegiatan-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
.kegiatan-list li:last-child {
    border-bottom: none;
}
.kegiatan-list li i {
    color: #007bff;
    margin-right: 0.5rem;
}

/* Jadwal Pelajaran specific styles */
.grade-section {
    margin-bottom: 3rem;
}
.grade-header {
    background: #0d6efd;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.class-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}
.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.class-header {
    background: #6c757d;
    color: white;
    padding: 1rem;
}
.drive-embed {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 0 0 15px 15px;
}
.no-schedule {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}
.no-schedule i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Kalender Akademik specific styles */
.timeline {
    position: relative;
    padding-left: 60px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-badge {
    position: absolute;
    left: -60px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}
.timeline-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
}
.timeline-item:nth-child(odd) .timeline-content {
    background: #fff;
    border-left-color: #0d6efd;
}
.timeline-item:nth-child(even) .timeline-content {
    border-left-color: #6c757d;
}
.view-switcher .btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Kontak specific styles */
.card-body { /* This is too generic, might override other card-body */
    padding: 1.5rem !important;
}
.form-control { /* This is too generic, might override other form-control */
    padding: 0.75rem !important;
}
.ratio { /* This is too generic */
    margin: 0 !important;
}

/* Guru specific styles */
.teacher-card-inner {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}
.teacher-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}
.teacher-image {
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.teacher-card-inner:hover .teacher-image {
    transform: scale(1.05);
}
.transform-on-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-group .btn {
    border-radius: 20px;
    margin: 0 5px;
}
.btn-group .btn.active {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-color: #007bff;
    color: white;
}
.badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}

/* Detail Berita specific styles */
body { /* Duplicate, but with specific background and line-height */
    background-color: #f8f9fa;
    line-height: 1.8;
}
.news-header {
    background: #0d6efd;
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}
.news-meta {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}
.news-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 40px;
}
.news-image {
    width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 30px;
}
.news-body img {
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
}
.related-news {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 40px;
}
.related-item {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.related-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}
.share-buttons {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.share-buttons a {
    margin-right: 10px;
    color: white;
    text-decoration: none;
}
.tag {
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}
.author-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

/* Back to Top Styling */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.back-to-top:hover {
    transform: translateY(-5px);
}