﻿:root {
    --line: #e5e7eb;
    --soft: #f7f4f2;
    --connector: #b08955;
}

/*Organizationa Structure*/
.organizationalStructure-bg {
    background-image: url(../../images/orgStrcuture-banner.png);
    min-height: 500px;
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: cover
}

.sg-section {
    position: relative;
    max-width: 980px;
    margin: -40px auto 10px;
    padding: 0 16px 30px;
    z-index: 2;
}

.sg-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.section-h {
    margin: 0 0 14px;
    color: var(--psa-aladaam);
    font-size: 28px;
    font-weight: 500;
    font-family: var(--psa-primary-font);
}

.sg-card {
    min-width: 260px;
    background: var(--psa-aladaam);
    color: var(--psa-white) !important;
    text-align: center;
    padding: 14px 32px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    font-weight: 500;
    font-size: 22px;
    text-decoration: none;
    transition: background .25s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
    position: relative;
    z-index: 2;
    font-family: var(--psa-primary-font);
}

.sg-card:hover {
    background: linear-gradient(135deg, var(--psa-aladaam), var(--psa-aladaamdark));
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .30);
    color: #fff;
}

.sg-tree {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 110px;
    margin: -6px auto 0;
    z-index: 0;
}

.sg-line {
    position: absolute;
    background: var(--connector);
}

.sg-line.center {
    width: 2px;
    height: 52px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.sg-line.horizontal {
    height: 2px;
    width: 62%;
    left: 19%;
    top: 52px;
}

.sg-line.left {
    width: 2px;
    height: 70px;
    top: 52px;
    left: 19%;
}

.sg-line.right {
    width: 2px;
    height: 70px;
    top: 52px;
    right: 19%;
}

.sg-columns {
    display: flex;
    justify-content: space-between;
    gap: 15rem;
    width: 100%;
    /* margin: 0 auto; */
    margin-top: -20px;
    position: relative;
    z-index: 1;
}


.sg-col {
    width: 50%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.sg-col-left {
    transform: translateX(24px);
}

.sg-col-right {
    transform: translateX(-24px);
}

body.lang-en .sg-col-left {
    transform: translateX(20px);
}

body.lang-en .sg-col-right {
    transform: translateX(-20px);
}

.sg-unit {
    position: relative;
    margin-top: 12px;
    width: 100%;
}

.sg-unit-card {
    background: var(--psa-dune);
    color: var(--psa-white);
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 18px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    text-align: center;
    min-width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease-in;
    font-family: var(--psa-primary-font);
    font-weight: 300;
}

.sg-unit-card a {
    display: block;
    color: inherit;
    text-decoration: none;
    font-weight: 300;
    width: 100%;
    transition: none;
}

.sg-unit-card:hover {
    background: linear-gradient(135deg, #ccb78f, var(--psa-aladaam));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .30);
    cursor: pointer;
}

.sg-unit-card:hover a {
    color: #fff;
}

.sg-unit:nth-child(2):before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 2px;
    height: 12px;
    background: var(--connector);
    transform: translateX(-50%);
}

.org-wrapper {
    1max-width: 1300px;
    margin: 10px auto;
}

.sectors {
    display: grid;
    grid-template-columns: repeat(6, minmax(170px, 1fr));
    gap: 20px;
    align-items: flex-start;
}

.sector-col {
    text-align: center;
    position: relative;
}

.sector-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    box-sizing: border-box;
    padding: 0 10px;
    background: var(--psa-aladaam);
    color: #fff !important;
    border-radius: 14px;
    font-weight: 400;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    margin-bottom: 0;
    transition: transform .2s ease-in;
    text-decoration: none;
    text-align: center;
    font-family: var(--psa-primary-font);
}

.sector-card:hover {
    background: linear-gradient(135deg, var(--psa-aladaam), var(--psa-aladaamdark));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
    color: #fff;
}

.units {
    position: relative;
    margin-top: 14px;
    padding-top: 24px;
}

.units::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 2px;
    height: calc(100% + 14px);
    background: var(--connector);
    transform: translateX(-50%);
    z-index: 0;
}

.unit-card {
    position: relative;
    background: var(--psa-dune);
    color: var(--psa-white);
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 18px;
    margin: 10px auto;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    transition: transform .2s ease-in;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    box-sizing: border-box;
    z-index: 1;
    font-family: var(--psa-primary-font);
}

.unit-card a {
    color: inherit;
    text-decoration: none;
    display: block;
    font-weight: 300;
}

.unit-card:hover {
    background: linear-gradient(135deg, #ccb78f, var(--psa-aladaam));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .30);
    cursor: pointer;
}

.unit-card:hover a {
    color: #fff;
}

.unit-card::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 2px;
    height: 12px;
    background: var(--connector);
    transform: translateX(-50%);
}

@media (max-width:1200px) {
    .sectors {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}

@media (max-width:900px) {
    .sg-columns {
        gap: 40px;
    }
}

@media (max-width:768px) {
    .sectors {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }

    .sg-columns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .sg-col-left,
    .sg-col-right {
        transform: none;
    }
}

@media (max-width:560px) {
    .sectors {
        grid-template-columns: 1fr;
    }

    .sg-section {
        margin-top: -30px;
    }

    .sg-unit-card {
        min-width: 220px;
    }
}

.grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    grid-template-areas: "depts info";
    gap: 28px;
    align-items: start;
    margin-top: 1rem;
}

.depts {
    grid-area: depts;
}

.info {
    grid-area: info;
}

.top-row {
    text-align: left;
    margin-bottom: 1rem;
    background: var(--psa-white-ef);
    padding: .5rem 1rem;
    display: inline-block;
}

.breadcrumbs {
    display: inline-block;
}

.breadcrumbs ol {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: var(--psa-primary-font);
}

.breadcrumbs a {
    color: var(--psa-aladaam);
    text-decoration: none;
    font-weight: 700;
}

.breadcrumbs .sep {
    opacity: .45
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    row-gap: 1.5rem;
    justify-content: center;
    margin: 1rem auto 2rem;
}

.dept-card {
    display: flex;
    text-decoration: none;
    color: var(--psa-white) !important;
    background: var(--psa-dune);
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    font-family: var(--psa-primary-font);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
    transition: transform .25s ease-in;
    border: 1px solid transparent;
    align-items: center;
    justify-content: center;
}

.dept-card:hover {
    background: linear-gradient(135deg, #8A1538 0%, #A85F65 40%, #A29475 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
    border-color: #7b1332;
}

.info-card {
    border: 1px solid #d8d1c4;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .10);
}

.info-head {
    background: #f2ebe1;
    padding: 12px 16px;
    font-family: var(--psa-primary-font);
    font-size: 22px;
    color: #222;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.sector-lead {
    margin: 0 0 6px;
    font-weight: 600;
    color: #4a3f2f;
    font-size: 18px;
    font-family: var(--psa-primary-font);
}

.sector-body {
    margin: 0;
    color: #3c3c3c;
    font-size: 18px;
    line-height: 1.8;
    font-family: var(--psa-primary-font);
    padding-bottom: 2rem;
}

.person-block {
    padding: 16px 18px;
    background: #fcfaf7;
}

.person-block+.person-block {
    border-top: 1px solid var(--line);
}

.person-role {
    margin-bottom: 4px;
    font-size: 20px;
    color: var(--psa-palm);
    font-family: var(--psa-primary-font);
}

.person-line {
    margin: 2px 0;
    font-size: 18px;
    color: #444;
}

.profile-summary {
    font-family: var(--psa-primary-font);
    font-size: 18px;
    font-weight: 300;
    padding-top: 5px;
}

.field-label {
    font-family: var(--psa-primary-font);
    color: #222;
    white-space: nowrap;
    margin-left: 4px;
}

.field-value {
    font-family: var(--psa-primary-font);
    color: var(--ink);
}

.field-value a {
    color: var(--psa-aladaam);
    text-decoration: none;
    font-family: var(--psa-primary-font);
}

.field-value a:hover {
    text-decoration: underline
}

@media (max-width:980px) {
    .grid {
        grid-template-columns: 1fr;
        grid-template-areas: "depts"
            "info";
    }

    .dept-grid {
        grid-template-columns: 1fr
    }

    .top-row {
        text-align: right;
    }

    .breadcrumbs ol {
        justify-content: flex-start;
    }
}

.sg-gallery-wrapper {
    margin-top: 16px;
    border-radius: 16px;
    border: 1px solid #d8d1c4;
    background: #fff;
    padding: 18px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .10);
}

.sg-slider {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    min-height: 400px;
}

.sg-slide {
    position: absolute;
    inset: ;
    opacity: 0;
    transition: opacity .6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-slide img {
    object-position: center;
    width: 100%;
    /* height: 100%; */
    /* object-fit: cover; */
    display: block;

}

.sg-slide.is-active {
    opacity: 1;
    position: absolute;
}

.sg-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.sg-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d3c8b4;
}

.sg-dot.is-active {
    background: var(--psa-aladaam);
}

.sg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}

.sg-arrow:hover {
    background: rgba(0, 0, 0, .55);
}

.sg-prev {
    left: 10px;
}

.sg-next {
    right: 10px;
}

[dir="rtl"] .sg-prev {
    right: 10px;
    left: auto;
}

[dir="rtl"] .sg-next {
    left: 10px;
    right: auto;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.card-head {
    background: #f7f4f2;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    font-size: 22px;
    font-family: var(--psa-primary-font);
}

.card-body {
    padding: 14px 16px;
}

.card-body p {
    margin: .5rem 0;
    color: #333;
}

.muted {
    font-family: var(--psa-primary-font);
    color: var(--ink)
}

.list {
    background: #faf9f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 14px 18px;
}

.list ol {
    margin: 0;
    padding: 0 1.25rem;
    font-family: var(--psa-primary-font);
    font-size: 18px;
    font-weight: 300;
    list-style: decimal;
}

.list li {
    margin: .4rem 0;
    line-height: 1.7;
    color: #333;
}

.block {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
}

.block h4 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--psa-palm);
    font-family: var(--psa-primary-font);
}

.inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 18px;
    color: var(--psa-palm);
    font-family: var(--psa-primary-font);
}

.e-mail a {
    color: var(--maroon);
    text-decoration: none;
    font-family: var(--psa-primary-font);
}

.sectionTitle {
    font-size: 32px;
}

.secretariat-block {
    background: #fff;
}

.secretariat-title {
    margin-bottom: 10px;
}

.secretary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.secretary-tab {
    font-size: 18px;
    font-family: var(--psa-primary-font);
    justify-content: space-between;
    transition: .2s ease;
    text-align: center;
    display: flex;
}

.secretary-tab:after {
    content: '';
    display: flex;
    height: 1rem;
    width: 1px;
    background: #aaa;
    margin-left: .8rem;
    margin-top: .25rem;
}

[dir="rtl"] .secretary-tab:after {
    margin-right: .8rem;
    margin-left: 0;
}


.secretary-tab:last-child:after {
    display: none;
}

.secretary-details {
    background: #fcfaf7;
    border-radius: 14px;
    border: 1px solid #e7e0d5;
    padding: 12px 14px;
    min-height: 120px;
}

@media(max-width:1024px) {
    .secretary-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media(max-width:850px) {

    .sg-line.horizontal,
    .sg-line.left,
    .sg-line.right {
        display: none;
    }

    .sg-tree {
        height: 50px;
    }

    .sg-unit:before {
        position: absolute;
        top: -12px;
        left: 50%;
        width: 2px;
        height: 12px;
        background: var(--connector);
        transform: translateX(-50%);
        content: '';
    }

    .sg-columns {
        gap: 0
    }

    .sg-col {
        width: 100%;
    }

}

@media(max-width:640px){
.sg-slider {
    height: 300px;
    min-height: auto;
}}

@media(max-width:500px){
.sg-slider {
    height: 250px;
    min-height: auto;
}}

@media(max-width:440px){
.sg-slider {
    height: 225px;
    min-height: auto;
}}
