/* =================================================================
   UNIVERSITY STRUCTURE - CLEAN ACADEMIC DESIGN
   Designed to match existing website color system
   ================================================================= */

:root {
    --primary-green: #08915e;
    --primary-green-dark: #067047;
    --primary-green-light: #0aaa73;
    --heading-color: #2d465e;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --bg-light: #f1f5f4;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* =================================================================
   GENERAL STRUCTURE
   ================================================================= */

.university-structure-page {
    background-color: var(--bg-light);
}

.structure-content {
    background-color: var(--bg-light);
}

/* =================================================================
   BREADCRUMB NAVIGATION & BACK BUTTON
   ================================================================= */

.structure-breadcrumb {
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-back {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.breadcrumb-back:hover {
    background: var(--primary-green-dark);
    transform: translateX(-3px);
}

.breadcrumb-trail {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.breadcrumb-trail i {
    color: var(--primary-green);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    transform: translateX(-3px);
}

/* =================================================================
   SEARCH BAR
   ================================================================= */

.structure-search {
    margin-bottom: 2rem;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper i.fa-search {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(8, 145, 94, 0.1);
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-muted);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-clear:hover {
    background: var(--heading-color);
}

/* =================================================================
   STRUCTURE VIEWS
   ================================================================= */

.structure-view {
    display: none;
}

.structure-view.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =================================================================
   CATEGORY SECTIONS
   ================================================================= */

.structure-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title i {
    color: var(--primary-green);
    font-size: 1.75rem;
}

.category-title h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
}

.category-count {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

.category-view-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.category-view-btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

/* =================================================================
   LEADERSHIP PREVIEW (Dashboard)
   ================================================================= */

.leadership-preview {
    padding: 1rem 0;
}

.leader-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.leader-card.main-leader {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 4px solid var(--primary-green);
}

.leader-avatar {
    flex-shrink: 0;
}

.leader-avatar img,
.leader-avatar .avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.leader-avatar .avatar-placeholder {
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.leader-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
}

.leader-position {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.vice-leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.vice-leader {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0;
}

.leader-avatar-small img,
.leader-avatar-small .avatar-placeholder-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.leader-avatar-small .avatar-placeholder-small {
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.leader-info-small h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
}

.leader-info-small p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.more-leaders {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* =================================================================
   BLOCKS GRID (Faculties & Departments)
   ================================================================= */

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.structure-block {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.structure-block:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: inherit;
    text-decoration: none;
}

.block-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.75rem;
    color: white;
}

.faculty-icon {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
}

.department-icon {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.center-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.block-content {
    flex: 1;
}

.block-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
}

.block-meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.block-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.block-arrow {
    color: var(--primary-green);
    font-size: 1.25rem;
}

/* =================================================================
   REKTORAT SECTION (Index Page)
   ================================================================= */

.rektorat-card-link {
    text-decoration: none;
    color: inherit;
}

.rektorat-card {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.rektorat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rektorat-card-link:hover .rektorat-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.rektorat-card-link:hover .rektorat-card::before {
    opacity: 1;
}

.rektorat-card .card-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rektorat-card-link:hover .rektorat-card .card-icon {
    background: rgba(255, 255, 255, 0.3);
}

.rektorat-card .card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.rektorat-card .card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.rektorat-card .card-description {
    margin: 0 0 1rem 0;
    font-size: 1.05rem;
    opacity: 0.95;
}

.rektorat-card .card-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
}

.rektorat-card .card-arrow {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.rektorat-card-link:hover .rektorat-card .card-arrow {
    transform: translateX(8px);
}

.rektorat-section {
    padding: 1rem 0;
}

/* =================================================================
   LEADERSHIP VIEW (Detail)
   ================================================================= */

.leadership-content {
    padding: 1rem 0;
}

.leadership-section {
    margin-bottom: 3rem;
}

.section-subtitle {
    margin-bottom: 2rem;
    text-align: center;
}

.section-subtitle h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-green);
}

.section-subtitle i {
    color: var(--primary-green);
}

.leader-detail-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.leader-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.leader-detail-card.main {
    border-top: 4px solid var(--primary-green);
}

.leader-photo {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 100%);
}

.leader-photo img,
.leader-photo .photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.leader-photo .photo-placeholder {
    background: var(--primary-green);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.leader-details {
    padding: 1.5rem 2rem 2rem 2rem;
    text-align: center;
}

.leader-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.leader-position-title {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.leader-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.leader-contacts .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.leader-contacts .contact-item i {
    color: var(--primary-green);
    width: 20px;
    text-align: center;
}

.leader-contacts .contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.leader-contacts .contact-item a:hover {
    color: var(--primary-green);
}

/* =================================================================
   DETAIL VIEWS (Faculty & Department)
   ================================================================= */

.detail-view-content {
    padding: 1rem 0;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.detail-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    flex-shrink: 0;
}

.detail-title h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
}

.detail-type {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.detail-body {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Subsection Title */
.subsection-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.subsection-title i {
    color: var(--primary-green);
}

.count-badge {
    background: var(--primary-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Department List Item */
.department-list-item {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.department-list-item:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.department-list-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.department-list-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--heading-color);
}

.type-label {
    display: inline-block;
    background: white;
    color: var(--primary-green);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* =================================================================
   DEPARTMENT DETAIL SECTIONS
   ================================================================= */

.detail-section {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.section-title-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.section-title-small i {
    color: var(--primary-green);
}

.detail-description {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1rem;
}

.tasks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tasks-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.tasks-list li:last-child {
    border-bottom: none;
}

.tasks-list li i {
    color: var(--primary-green);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.staff-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.staff-avatar-small img,
.staff-avatar-small .avatar-placeholder-xs {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.staff-avatar-small .avatar-placeholder-xs {
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.staff-info-small h5 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--heading-color);
}

.staff-info-small p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =================================================================
   DEPARTMENT HEAD CARD (Sticky Right Column)
   ================================================================= */

.department-head-card {
    background: var(--bg-white);
    border: 2px solid var(--primary-green);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.department-head-card.sticky-top {
    top: 100px;
}

.head-label {
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.head-photo {
    margin-bottom: 1rem;
}

.head-photo img,
.head-photo .photo-placeholder-head {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-green);
}

.head-photo .photo-placeholder-head {
    background: var(--bg-light);
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.head-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color);
}

.head-position {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.head-contacts {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row i {
    color: var(--primary-green);
    width: 20px;
}

.contact-row a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-row a:hover {
    color: var(--primary-green);
}

.head-about {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.head-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
}

.department-meta {
    margin-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.meta-item i {
    color: var(--primary-green);
}

/* =================================================================
   STATISTICS GRID
   ================================================================= */

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.stat-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
}

.stat-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =================================================================
   CONTACT CTA SECTION
   ================================================================= */

.contact-cta {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-top: 1px solid var(--border-color);
}

.contact-cta h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
}

.contact-cta p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.btn-contact {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--primary-green-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 992px) {
    .blocks-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .category-title h2 {
        font-size: 1.5rem;
    }

    .detail-title h2 {
        font-size: 1.75rem;
    }

    .department-head-card.sticky-top {
        position: static;
    }
}

@media (max-width: 768px) {
    .rektorat-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .rektorat-card .card-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .rektorat-card .card-content h3 {
        font-size: 1.5rem;
    }

    .structure-category {
        padding: 1.5rem;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-view-btn {
        width: 100%;
        justify-content: center;
    }

    .blocks-grid {
        grid-template-columns: 1fr;
    }

    .vice-leaders-grid {
        grid-template-columns: 1fr;
    }

    .leader-card.main-leader {
        flex-direction: column;
        text-align: center;
    }

    .detail-header {
        flex-direction: column;
        text-align: center;
    }

    .detail-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .detail-title h2 {
        font-size: 1.5rem;
    }

    .detail-body {
        padding: 1.5rem;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .structure-breadcrumb {
        flex-direction: column;
        align-items: stretch;
    }

    .breadcrumb-back {
        justify-content: center;
    }

    .contact-cta {
        text-align: center;
    }

    .contact-cta .col-lg-4 {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .rektorat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .rektorat-card .card-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .rektorat-card .card-content h3 {
        font-size: 1.25rem;
    }

    .rektorat-card .card-arrow {
        display: none;
    }

    .structure-category {
        padding: 1rem;
    }

    .category-title h2 {
        font-size: 1.25rem;
    }

    .category-title i {
        font-size: 1.5rem;
    }

    .structure-block {
        padding: 1rem;
    }

    .block-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .block-title {
        font-size: 1rem;
    }

    .search-input {
        padding: 0.875rem 3rem 0.875rem 3rem;
        font-size: 0.95rem;
    }

    .section-subtitle h3 {
        font-size: 1.5rem;
    }

    .leader-photo img,
    .leader-photo .photo-placeholder {
        width: 120px;
        height: 120px;
    }

    .detail-section {
        padding: 1rem;
    }

    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .stat-content h4 {
        font-size: 1.5rem;
    }
}

/* =================================================================
   ANIMATIONS & TRANSITIONS
   ================================================================= */

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

.structure-category,
.leader-detail-card,
.structure-block {
    animation: slideInUp 0.4s ease;
}
