/* classes.php: styles only this page uses. Shared look: Styles/site.css */

/* ─── HERO ─── */

.hero-tag.ar-tag {
    font-family: var(--font-ar);
    font-size: 13px;
    letter-spacing: 0;
}

.hero-ar-title {
    font-family: var(--font-ar);
    font-size: clamp(20px, 3.5vw, 32px);
    color: var(--gold);
    margin-bottom: 10px;
}

.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px auto;
    max-width: 200px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4.5vw, 48px);
    color: var(--white);
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ─── MAIN CONTENT ─── */

.page-content {
    max-width: 1400px;
}

/* ─── CONTENT BLOCK ─── */

.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 64px;
}

.content-block.reverse {
    direction: ltr;
}

body.ar-mode .content-block.reverse {
    direction: rtl;
}

.block-image {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(0, 14, 44, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.block-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s;
}

.content-block:hover .block-image img {
    transform: scale(1.04);
}

.block-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 14, 44, 0.25));
}

.img-gold-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    background: var(--gold);
    color: var(--primary);
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 1px;
}

body.ar-mode .img-gold-badge {
    left: auto;
    right: 20px;
    font-family: var(--font-ar);
    font-size: 14px;
}

.block-content {
    padding: 8px 0;
}

.block-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border);
    color: var(--gold-ink);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.block-section-tag.ar {
    font-family: var(--font-ar);
    font-size: 13px;
    letter-spacing: 0;
}

.block-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 30px);
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.block-title.ar {
    font-family: var(--font-ar);
    font-size: clamp(20px, 2.5vw, 28px);
}

.block-text {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 2.1;
    margin-bottom: 20px;
}

.block-text.ar {
    font-family: var(--font-ar);
    font-size: 17px;
    line-height: 2.2;
    direction: rtl;
}

.block-text b {
    color: var(--primary);
}

/* ─── DIVIDER ─── */

.section-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 48px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(0, 14, 44, 0.1);
}

.divider-diamond {
    width: 10px;
    height: 10px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ─── DEPARTMENTS TABLE SECTION ─── */

.dept-section {
    background: var(--primary);
    border-radius: 6px;
    overflow: hidden;
    padding: 48px;
    margin-bottom: 60px;
    position: relative;
}

.dept-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(201, 168, 76, 0.06);
    border-radius: 50%;
}

.dept-section-header {
    text-align: center;
    margin-bottom: 36px;
}

.dept-section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 34px);
    color: var(--white);
    margin-bottom: 6px;
}

.dept-section-header .ar-h2 {
    font-family: var(--font-ar);
    font-size: clamp(20px, 3vw, 32px);
    direction: rtl;
}

.dept-section-header p {
    font-size: 13px;
    color: var(--muted-on-navy);
}

/* Department cards */

.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.dept-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    border-radius: 4px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s;
}

.dept-card:hover {
    background: rgba(201, 168, 76, 0.08);
    transform: translateY(-4px);
}

.dept-card-icon {
    font-size: 26px;
    color: var(--gold);
    margin-bottom: 12px;
}

.dept-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.5;
}

.dept-card-title.ar {
    font-family: var(--font-ar);
    font-size: 17px;
    direction: rtl;
}

.dept-card-sub {
    font-size: 12px;
    color: var(--muted-on-navy);
    line-height: 1.7;
}

.dept-card-sub.ar {
    font-family: var(--font-ar);
    font-size: 14px;
    direction: rtl;
}

/* Table */

.table-wrap {
    overflow-x: auto;
    margin-bottom: 40px;
}

.dept-table {
    width: 100%;
    border-collapse: collapse;
}

.dept-table th {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 1px;
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.dept-table th.ar {
    font-family: var(--font-ar);
    font-size: 16px;
    letter-spacing: 0;
}

.dept-table td {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.dept-table td.ar {
    font-family: var(--font-ar);
    font-size: 15px;
    direction: rtl;
}

.dept-table tr:hover td {
    background: rgba(201, 168, 76, 0.06);
}

.dept-table .note-row td {
    color: var(--gold-light);
    font-size: 12px;
    background: rgba(201, 168, 76, 0.05);
    font-style: italic;
}

.dept-table .note-row td.ar {
    font-family: var(--font-ar);
    font-size: 14px;
    direction: rtl;
    font-style: normal;
}

/* ─── CONTACT SECTION ─── */

.contact-section {
    background: var(--white);
    border-radius: 5px;
    border: 1px solid rgba(0, 14, 44, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 40px 44px;
}

.contact-header {
    margin-bottom: 28px;
}

.contact-header h2 {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.5vw, 26px);
    color: var(--primary);
    margin-bottom: 6px;
}

.contact-header h2.ar {
    font-family: var(--font-ar);
    direction: rtl;
}

.contact-header p {
    font-size: 13px;
    color: var(--text-mid);
}

.contact-header p.ar {
    font-family: var(--font-ar);
    font-size: 15px;
    direction: rtl;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact-card {
    background: var(--cream);
    border: 1px solid rgba(0, 14, 44, 0.08);
    border-top: 2px solid var(--gold);
    border-radius: 4px;
    padding: 22px 20px;
}

.contact-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 10px;
}

.contact-card-label.ar {
    font-family: var(--font-ar);
    font-size: 14px;
    letter-spacing: 0;
    direction: rtl;
    justify-content: flex-end;
}

.contact-card-label i {
    color: var(--gold);
    font-size: 13px;
}

.contact-card h3 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-card h3.ar {
    font-family: var(--font-ar);
    font-size: 16px;
    direction: rtl;
    text-align: right;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--gold);
}

.contact-card a i {
    font-size: 14px;
    color: var(--gold);
}

/* ─── RESPONSIVE ─── */

@media (max-width:900px) {
    .content-block {
        grid-template-columns: 1fr;
    }

    .block-image img {
        height: 260px;
    }

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

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

    .dept-section {
        padding: 28px 20px;
    }
}

@media (max-width:600px) {
    .dept-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 24px 20px;
    }
}
