/*
Theme Name: ETSL Theme - جامعة الجزائر 3
Theme URI: https://etsl.univ-alger3.dz
Author: Economic Transformation Strategies Laboratory
Description: قالب عصري مخصص لمخبر إستراتيجيات التحول الاقتصادي - جامعة الجزائر 3
Version: 1.0.0
Text Domain: etsl-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
    --primary-blue: #104c7b;
    --primary-dark: #0a2e4c;
    --accent-blue: #1e73be;
    --secondary-gray: #607274;
    --light-gray: #f4f7f9;
    --border-color: #e2e8f0;
    --text-color: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --font-main: 'Cairo', sans-serif;
    --font-base-size: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-base-size);
    color: var(--text-color);
    background-color: var(--light-gray);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= Top Bar ================= */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================= Header & Navbar ================= */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}
.site-branding img.custom-logo {
    max-height: 65px;
    width: auto;
}
.branding-text h1 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    font-weight: 800;
}
.branding-text span {
    font-size: 0.8rem;
    color: var(--secondary-gray);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}
.nav-menu a {
    font-weight: 700;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
}
.nav-menu a:hover, .nav-menu .current-menu-item > a {
    color: var(--accent-blue);
    background: rgba(30,115,190,0.08);
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ================= Hero Section ================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
}
.hero-tag {
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.25;
}
.hero-desc {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
}
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}
.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
}
.btn-primary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* ================= Section Base ================= */
.section {
    padding: 80px 0;
}
.section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}
.section-subtitle {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
}
.section-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    font-weight: 800;
    margin-top: 5px;
}

/* ================= Research Teams Grid ================= */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.team-card {
    background: var(--white);
    border-radius: 14px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-blue);
}
.team-badge {
    background: rgba(16, 76, 123, 0.08);
    color: var(--primary-blue);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    width: fit-content;
}
.team-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.5;
}
.team-leader {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}
.leader-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.leader-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}
.leader-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ================= Cards Grid (Events & Resources) ================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
.modern-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.card-content {
    padding: 25px;
}
.card-meta {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 10px;
}
.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

/* ================= Footer ================= */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-blue);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* ================= Responsive Queries ================= */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}