/* Section Home CSS - similar to center */
.section-page-header {
    position: relative;
    position: relative;
    min-height: 35vh; /* Fluid height */
    height: auto;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.section-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.8);
}

.section-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--text-light);
}

.section-icon {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 50%;
    font-size: 3rem;
    color: var(--primary);
}

.section-title-main h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.section-title-main p {
    opacity: 0.9;
}

.section-nav {
    background: var(--bg-primary);
    border-bottom: 3px solid var(--secondary);
    box-shadow: var(--shadow);
}

.section-nav .container {
    display: flex;
    gap: 5px;
}

.section-nav a {
    padding: 15px 25px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-nav a:hover,
.section-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.section-content {
    padding: 40px 0;
}

.section-about,
.section-head,
.section-staff,
.section-news {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.head-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.head-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary);
}

.head-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.head-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    font-size: 2.5rem;
    color: var(--text-light);
}

.head-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.head-info span {
    color: var(--secondary-dark);
    font-weight: 600;
}

.staff-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack vertically for a list view feel, or keep grid but cards are wide */
    gap: 20px;
}

@media (min-width: 992px) {
    .staff-grid {
         grid-template-columns: repeat(2, 1fr); /* 2 columns on large screens */
    }
}

.staff-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: start; /* Supports RTL/LTR naturally */
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: auto;
    overflow: visible; /* Needed for potential hover effects */
}

/* Decoration line on the side instead of top */
.staff-card::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 0; 
    bottom: 15%;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
    opacity: 0.7;
}

/* RTL support for the line */
[dir="ltr"] .staff-card::before {
    right: auto;
    left: 0;
    border-radius: 0 4px 4px 0;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.staff-card:hover::before {
    opacity: 1;
    top: 10%;
    bottom: 10%;
}

.staff-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0; /* Prevent shrinking */
    margin: 0; /* Remove auto margin */
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary);
    padding: 2px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.staff-image::after {
    display: none; /* Remove the overlay effect from previous design */
}

.staff-card:hover .staff-image {
    transform: scale(1.05);
}

.staff-image img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    font-size: 2rem;
    color: var(--text-light);
}

.staff-info {
    flex-grow: 1;
}

.staff-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.staff-info span {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--secondary-dark);
    font-weight: 600;
    margin-bottom: 10px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.staff-contact {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column; /* Vertical contact info */
    gap: 8px;
}

.contact-item {
    color: var(--text-muted);
    background: transparent;
    padding: 0;
    justify-content: flex-start;
    font-size: 0.85rem;
}

.contact-item:hover {
    background: transparent;
    color: var(--primary);
    transform: none;
}

/* =========================================
   Responsive - Section Home
   ========================================= */

@media (max-width: 768px) {
    .section-page-header {
        min-height: 25vh;
    }

    .section-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .section-icon {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .section-title-main h1 {
        font-size: 1.6rem;
    }

    .section-nav .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-nav a {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .section-content {
        padding: 25px 0;
    }

    .section-about,
    .section-head,
    .section-staff,
    .section-news {
        padding: 20px;
        margin-bottom: 20px;
    }

    .head-card {
        gap: 15px;
    }

    .head-image {
        width: 80px;
        height: 80px;
    }

    .head-info h3 {
        font-size: 1.05rem;
    }

    .staff-card {
        padding: 15px;
        gap: 15px;
    }

    .staff-image {
        width: 80px;
        height: 80px;
    }

    .staff-info h4 {
        font-size: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-page-header {
        min-height: 20vh;
    }

    .section-icon {
        width: 75px;
        height: 75px;
        font-size: 1.6rem;
    }

    .section-title-main h1 {
        font-size: 1.3rem;
    }

    .section-nav a {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 5px;
    }

    .section-about,
    .section-head,
    .section-staff,
    .section-news {
        padding: 15px;
        margin-bottom: 15px;
    }

    .head-card {
        flex-direction: column;
        text-align: center;
    }

    .staff-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .staff-card::before {
        width: 100%;
        height: 4px;
        top: 0;
        right: 0;
        left: 0;
        bottom: auto;
        border-radius: 4px 4px 0 0;
    }

    [dir="ltr"] .staff-card::before {
        width: 100%;
        height: 4px;
    }

    .staff-image {
        width: 75px;
        height: 75px;
        margin: 0 auto 10px;
    }

    .staff-contact {
        justify-content: center;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}