/**
 * صفحات الموقع العامة للطالب: من نحن / أخبار / اتصل / خصوصية / مكتبة
 * يعتمد على student-theme.css
 */
body.student-theme.site-page {
    padding: 0 !important;
    min-height: 100vh;
    overflow-x: hidden;
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 28px));
    margin: 0 auto;
    padding: 84px 0 24px;
}

body.student-theme.site-page .sf {
    margin-top: 2rem;
}

.site-nav {
    position: fixed;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.site-nav > * { pointer-events: auto; }
.site-nav .links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #0f766e !important;
    text-decoration: none;
    font-weight: 800;
    font-size: .85rem;
    border: 1px solid rgba(15,42,51,.08);
    box-shadow: 0 10px 24px rgba(15,42,51,.1);
    transition: transform .18s ease;
}
.site-nav a:hover { transform: translateY(-2px); color: #ea580c !important; }
.site-nav a.active {
    background: linear-gradient(135deg, #0d9488, #0891b2);
    color: #fff !important;
    border-color: transparent;
}

.site-hero {
    text-align: center;
    margin-bottom: 22px;
    animation: siteRise .45s ease;
}
.site-hero h1 {
    font-family: 'Fredoka', 'Tajawal', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(120deg, #0f766e, #0369a1 55%, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}
.site-hero p {
    color: #5a7a84;
    font-weight: 700;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.site-card {
    background: rgba(255,255,255,.93);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15,42,51,.12);
    border: 1px solid rgba(255,255,255,.85);
    padding: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 16px;
    animation: siteRise .5s ease;
}
.site-card h2 {
    color: #0f766e;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-card h2 i { color: #f97316; }
.site-card p {
    color: #0f2a33;
    font-weight: 600;
    line-height: 1.9;
    margin-bottom: 12px;
}
.site-card p:last-child { margin-bottom: 0; }
.site-card ul {
    margin: 12px 0 0;
    padding: 0 1.4rem 0 0;
    list-style: none;
}
.site-card ul li {
    position: relative;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.8;
    color: #0f2a33;
    padding-right: 1.4rem;
}
.site-card ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #0d9488;
    font-weight: 900;
}

.site-lead {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f766e !important;
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.site-feature {
    background: linear-gradient(160deg, #ecfeff, #fff7ed);
    border: 1px solid #99f6e4;
    border-radius: 18px;
    padding: 18px 14px;
    text-align: center;
    transition: transform .2s ease;
}
.site-feature:hover { transform: translateY(-3px); }
.site-feature .ico {
    width: 52px; height: 52px; margin: 0 auto 10px;
    border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #0d9488, #0891b2);
    color: #fff; font-size: 1.25rem;
}
.site-feature h3 {
    color: #0f2a33;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.site-feature p {
    color: #5a7a84;
    font-size: .92rem;
    margin: 0;
    line-height: 1.6;
}

.site-highlight {
    background: linear-gradient(135deg, rgba(13,148,136,.1), rgba(249,115,22,.08));
    border-inline-start: 4px solid #0d9488;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 14px 0;
    font-weight: 700;
    color: #0f766e;
}

.site-alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-weight: 700;
}
.site-alert.ok { background: #d1fae5; color: #065f46; }
.site-alert.err { background: #ffedd5; color: #9a3412; }
.site-alert.info { background: #e0f2fe; color: #075985; }

.site-form label {
    display: block;
    font-weight: 800;
    color: #0f766e;
    margin-bottom: 6px;
}
.site-form .field { margin-bottom: 14px; }
.site-form input,
.site-form textarea {
    width: 100%;
    border: 2px solid #d1e7ea;
    border-radius: 14px;
    padding: 12px 14px;
    font-family: inherit;
    font-weight: 600;
    background: #fff;
    color: #0f2a33;
}
.site-form input:focus,
.site-form textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13,148,136,.18);
}
.site-form .btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    padding: 14px 18px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 12px 24px rgba(249,115,22,.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.site-form .btn-submit:hover { transform: translateY(-2px); }

.news-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.news-card,
.gallery-card {
    background: rgba(255,255,255,.94);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15,42,51,.12);
    border: 1px solid rgba(255,255,255,.85);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease;
}
.news-card:hover,
.gallery-card:hover { transform: translateY(-4px); }
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #ecfeff;
    display: block;
}
.gallery-card .media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #ecfeff;
}
.gallery-card .media img,
.gallery-card .media video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #0f2a33;
}
.news-card .body,
.gallery-card .body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card h3,
.gallery-card h3 {
    color: #0f2a33;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.news-card p,
.gallery-card p {
    color: #5a7a84;
    font-weight: 600;
    line-height: 1.7;
    flex: 1;
}
.news-card .date {
    margin-top: 12px;
    font-size: .85rem;
    font-weight: 800;
    color: #0d9488;
}
.gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.gallery-actions a,
.gallery-actions button {
    flex: 1;
    min-width: 120px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
}
.gallery-actions .dl { background: linear-gradient(135deg, #0d9488, #0891b2); }
.gallery-actions .pr { background: linear-gradient(135deg, #f97316, #ea580c); }

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 18px;
}
.filter-tab {
    border: 2px solid #d1e7ea;
    background: #fff;
    color: #0f2a33;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
}
.filter-tab.active,
.filter-tab:hover {
    background: linear-gradient(135deg, #0d9488, #0891b2);
    color: #fff;
    border-color: transparent;
}

.site-empty {
    text-align: center;
    padding: 40px 20px;
    color: #5a7a84;
    font-weight: 700;
}
.site-empty i {
    display: block;
    font-size: 2.4rem;
    color: #0d9488;
    margin-bottom: 10px;
}

@keyframes siteRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
    .site-shell { padding-top: 120px; }
    .site-nav { justify-content: center; }
    .site-nav .links { justify-content: center; width: 100%; }
}
