/* ========== Variables ========== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Cairo', sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    padding: 8px 0;
}
.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lang-form {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    padding: 3px 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.lang-btn:hover, .lang-btn.active {
    color: var(--white);
    font-weight: 600;
}
.lang-sep {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}
.top-bar-login {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Cairo', sans-serif;
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.2s;
}
.top-bar-login:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
}
.top-bar-login i { font-size: 0.75rem; }

/* Header */
.main-header { background: var(--white); box-shadow: var(--shadow-md); position: sticky; top: 0; z-index: 1000; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; flex-wrap: wrap; gap: 10px; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 60px; width: auto; object-fit: contain; }
.logo-text h1 { color: var(--primary-color); font-size: 1.5rem; margin: 0; line-height: 1.2; }
.logo-subtitle { font-size: 0.75rem; color: var(--text-light); margin: 0; font-weight: 400; }
.main-nav ul { display: flex; list-style: none; gap: 5px; flex-wrap: wrap; }
.main-nav a { color: var(--text-dark); text-decoration: none; padding: 10px 12px; border-radius: 5px; transition: all 0.3s; font-weight: 500; white-space: nowrap; font-size: 0.95rem; }

/* Russian layout: logo on top row, nav below */
html[lang="ru"] .main-header .container { flex-direction: column; }
html[lang="ru"] .main-nav { width: 100%; }
html[lang="ru"] .main-nav ul { justify-content: center; }
.main-nav a:hover, .main-nav a.active { background: var(--primary-color); color: var(--white); }
.mobile-menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); min-height: 500px; display: flex; align-items: center; position: relative; background-size: cover; background-position: center; }
.hero-overlay { background: rgba(37,99,235,0.85); width: 100%; padding: 100px 0; text-align: center; color: var(--white); }
.hero h2 { font-size: 3rem; margin-bottom: 20px; animation: fadeInUp 1s; }
.hero p { font-size: 1.3rem; margin-bottom: 30px; animation: fadeInUp 1s 0.2s backwards; }
.hero-subtitle { font-size: 1.1rem; margin-top: 10px; opacity: 0.95; }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; text-decoration: none; transition: all 0.3s; font-weight: 600; border: none; cursor: pointer; font-family: 'Cairo', sans-serif; }
.btn-primary { background: var(--accent-color); color: var(--white); }
.btn-primary:hover { background: #d97706; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-large { padding: 15px 40px; font-size: 1.1rem; }

/* Stats */
.stats { padding: 60px 0; background: var(--bg-light); }
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.stat-box { background: var(--white); padding: 30px; border-radius: 10px; text-align: center; box-shadow: var(--shadow); transition: all 0.3s; }
.stat-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-box i { font-size: 3rem; color: var(--primary-color); margin-bottom: 15px; }
.stat-box h3 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }

/* About Preview */
.about-preview { padding: 80px 0; background: var(--bg-light); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text .lead-text { font-size: 1.1rem; line-height: 1.8; color: var(--text-dark); margin-bottom: 30px; }
.highlights { margin: 30px 0; }
.highlight-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.highlight-item i { color: var(--success); font-size: 1.3rem; margin-top: 3px; }
.highlight-item p { margin: 0; }
.about-image { position: relative; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; height: 500px; object-fit: cover; display: block; }
.image-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 30px 20px 20px; }
.image-overlay p { color: var(--white); font-size: 1.2rem; font-weight: 600; margin: 0; }

/* Activities */
.latest-activities { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--text-dark); }
.activities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.activity-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; }
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.activity-card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 20px; }
.date { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }
.card-content h3 { margin: 10px 0; }
.read-more { color: var(--primary-color); text-decoration: none; font-weight: 600; display: inline-block; margin-top: 10px; }

/* Key Activities */
.key-activities { padding: 80px 0; background: var(--white); }
.activities-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.activity-item { display: flex; gap: 20px; padding: 30px; background: var(--bg-light); border-radius: 10px; transition: all 0.3s; }
.activity-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.activity-icon { width: 60px; height: 60px; background: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.activity-icon i { font-size: 1.8rem; color: var(--white); }
.activity-info h3 { color: var(--text-dark); margin-bottom: 10px; font-size: 1.2rem; }
.activity-info p { color: var(--text-light); line-height: 1.6; margin: 0; }

/* Page Header */
.page-header { background: var(--primary-color); color: var(--white); padding: 40px 0; text-align: center; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-header p { font-size: 1.1rem; opacity: 0.9; }

/* Internal System */
.internal-system-content { padding: 60px 0; background: var(--bg-light); }
.content-section { margin-bottom: 60px; }
.content-section .section-title { display: flex; align-items: center; gap: 15px; color: var(--primary-color); margin-bottom: 30px; padding-bottom: 15px; border-bottom: 3px solid var(--primary-color); text-align: right; font-size: 1.8rem; }
.content-section .section-title i { font-size: 2rem; }
.content-box { background: var(--white); padding: 40px; border-radius: 15px; box-shadow: var(--shadow); }
.lead-paragraph { font-size: 1.15rem; line-height: 2; color: var(--text-dark); margin-bottom: 30px; text-align: justify; }
.info-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.info-card { background: var(--bg-light); padding: 25px; border-radius: 10px; border-right: 4px solid var(--primary-color); }
.info-icon { margin-bottom: 15px; }
.info-icon i { font-size: 2.5rem; color: var(--primary-color); }
.info-card p { color: var(--text-dark); line-height: 1.7; margin: 0; }
.activities-detailed { display: flex; flex-direction: column; gap: 20px; }
.activity-detail-item { display: flex; gap: 25px; padding: 25px; background: var(--bg-light); border-radius: 10px; transition: all 0.3s; }
.activity-detail-item:hover { background: #e0e7ff; transform: translateX(-5px); }
.activity-number { width: 50px; height: 50px; background: var(--primary-color); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; flex-shrink: 0; }
.activity-detail-content h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.2rem; }
.activity-detail-content p { color: var(--text-dark); line-height: 1.7; margin: 0; }

/* Timeline */
.achievements-timeline { position: relative; padding-right: 40px; }
.achievements-timeline::before { content: ''; position: absolute; right: 15px; top: 0; bottom: 0; width: 3px; background: var(--primary-color); }
.timeline-item { position: relative; margin-bottom: 40px; padding-right: 60px; }
.timeline-item::before { content: ''; position: absolute; right: 6px; top: 5px; width: 20px; height: 20px; background: var(--white); border: 3px solid var(--primary-color); border-radius: 50%; }
.timeline-year { background: var(--accent-color); color: var(--white); padding: 5px 15px; border-radius: 20px; display: inline-block; font-weight: bold; margin-bottom: 10px; }
.timeline-content { background: var(--bg-light); padding: 20px; border-radius: 10px; }
.timeline-content h3 { color: var(--primary-color); margin-bottom: 10px; }
.timeline-content p { color: var(--text-dark); line-height: 1.7; margin: 0; }

/* VMG */
.vmg-section { margin: 60px 0; }
.vmg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.vmg-card { background: var(--white); padding: 40px 30px; border-radius: 15px; text-align: center; box-shadow: var(--shadow); transition: all 0.3s; border-top: 5px solid var(--primary-color); }
.vmg-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.vmg-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.vmg-icon i { font-size: 2.5rem; color: var(--white); }
.vmg-card h3 { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 20px; }
.vmg-card p { color: var(--text-dark); line-height: 1.8; font-size: 1.05rem; }
.goals-list { list-style: none; padding: 0; margin: 0; }
.goals-list li { padding: 10px 0; color: var(--text-dark); position: relative; padding-right: 25px; }
.goals-list li::before { content: '✓'; position: absolute; right: 0; color: var(--success); font-weight: bold; font-size: 1.2rem; }

/* Download */
.download-section { margin-top: 60px; }
.download-box { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: var(--white); padding: 50px; border-radius: 15px; text-align: center; }
.download-box i { font-size: 4rem; margin-bottom: 20px; opacity: 0.9; display: block; }
.download-box h3 { font-size: 2rem; margin-bottom: 15px; }
.download-box p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.95; }
.download-box .btn { background: var(--white); color: var(--primary-color); font-size: 1.1rem; }
.download-box .btn:hover { background: var(--accent-color); color: var(--white); }

/* Footer */
.main-footer { background: var(--text-dark); color: var(--white); padding: 60px 0 20px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { margin-bottom: 20px; color: var(--accent-color); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section a { color: var(--white); text-decoration: none; transition: color 0.3s; }
.footer-section a:hover { color: var(--accent-color); }
.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links a { width: 40px; height: 40px; background: var(--primary-color); display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s; }
.social-links a:hover { background: var(--accent-color); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-logo { max-width: 150px; margin-top: 20px; opacity: 0.8; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 968px) {
    .mobile-menu-toggle { display: block !important; font-size: 1.8rem; cursor: pointer; color: var(--primary-color); padding: 10px; z-index: 1002; }
    body.menu-open { overflow: hidden; }
    .main-nav { display: block !important; position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--white); box-shadow: -2px 0 10px rgba(0,0,0,0.1); transition: right 0.3s ease-in-out; z-index: 1001; overflow-y: auto; padding-top: 80px; }
    .main-nav.active { right: 0 !important; }
    .main-nav ul { flex-direction: column !important; gap: 0; padding: 20px; }
    .main-nav li { width: 100%; border-bottom: 1px solid var(--border-color); }
    .main-nav a { display: block; padding: 15px 10px; width: 100%; border-radius: 0; }
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .about-image img { height: 350px; }
    .logo-img { height: 50px; }
    .logo-text h1 { font-size: 1.2rem; }
    .logo-subtitle { font-size: 0.65rem; }
}

@media (max-width: 768px) {
    .hero h2 { font-size: 2rem; }
    .stats .container { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .activities-grid { grid-template-columns: 1fr; }
    .about-image img { height: 300px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .logo-img { height: 35px; }
    .logo-text h1 { font-size: 0.95rem; }
    .logo-subtitle { display: none; }
    .graduates-table { font-size: 0.85rem; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .graduates-table { min-width: 600px; }
}

@media (max-width: 480px) {
    .hero h2 { font-size: 1.5rem; }
    .section-title { font-size: 1.8rem; }
    .stats .container { grid-template-columns: 1fr; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .content-box { padding: 20px; }
    .vmg-card { padding: 25px 20px; }
    .language-switcher { padding: 8px 0; }
    .lang-btn { padding: 4px 10px; font-size: 0.85rem; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
}

* { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

/* ══════════════════════════════════════════
   Membership Form - Form Cards
══════════════════════════════════════════ */
.form-section {
    padding: 50px 0;
    background: var(--bg-light);
}

.membership-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-card-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-card-header i {
    font-size: 1.3rem;
}

.form-card-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.form-card-note {
    background: #eff6ff;
    color: var(--primary-color);
    padding: 10px 25px;
    font-size: 0.9rem;
    border-bottom: 1px solid #dbeafe;
}

.form-card-note i {
    margin-left: 6px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.span-2 {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    padding: 11px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.input-validation-error {
    border-color: var(--danger);
}

.field-error {
    color: var(--danger);
    font-size: 0.82rem;
    min-height: 18px;
}

/* زر الإرسال */
.form-submit-area {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.submit-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.submit-note i {
    color: var(--primary-color);
    margin-left: 6px;
}

.btn-submit {
    padding: 14px 50px;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* صفحة النجاح */
.success-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding: 60px 0;
}

.success-card {
    background: var(--white);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 560px;
    margin: 0 auto;
}

.success-icon i {
    font-size: 5rem;
    color: var(--success);
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0%   { transform: scale(0); opacity: 0; }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-card h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.success-name {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.success-msg {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .form-group.span-2 {
        grid-column: span 1;
    }
    .success-card {
        padding: 40px 20px;
    }
}

/* ══════════════════════════════════════════
   About Page
══════════════════════════════════════════ */
.about-full {
    padding: 70px 0;
    background: var(--bg-light);
}

.about-full > .container > * + * {
    margin-top: 80px;
}

/* عنوان بخط جانبي */
.section-title-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.9rem;
    color: var(--text-dark);
    margin-bottom: 35px;
}

.title-line {
    display: inline-block;
    width: 5px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 3px;
    flex-shrink: 0;
}

/* ── المقدمة ── */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-intro-text p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-dark);
    text-align: justify;
}

.about-intro-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.intro-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--primary-color);
    transition: transform 0.2s;
}

.intro-card:hover {
    transform: translateX(-4px);
}

.intro-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.intro-card p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-dark);
}

/* ── نشاطات النادي ── */
.activities-about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.activity-about-card {
    display: flex;
    gap: 18px;
    background: var(--white);
    padding: 22px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.activity-about-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.activity-about-num {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.activity-about-card h3 {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.activity-about-card p {
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* ── التايم لاين ── */
.timeline-about {
    position: relative;
    padding-right: 30px;
}

.timeline-about::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.timeline-about-item {
    position: relative;
    padding-right: 50px;
    margin-bottom: 35px;
}

.timeline-about-item::before {
    content: '';
    position: absolute;
    right: 2px;
    top: 8px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-about-year {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.timeline-about-body {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.timeline-about-body h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-about-body p {
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

/* ── VMG ── */
.vmg-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.vmg-about-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
    border-top: 5px solid transparent;
}

.vmg-about-card.vision  { border-top-color: var(--primary-color); }
.vmg-about-card.mission { border-top-color: var(--accent-color); }
.vmg-about-card.goals   { border-top-color: var(--success); }

.vmg-about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.vmg-about-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--bg-light);
}

.vision  .vmg-about-icon i { color: var(--primary-color); font-size: 2rem; }
.mission .vmg-about-icon i { color: var(--accent-color);  font-size: 2rem; }
.goals   .vmg-about-icon i { color: var(--success);       font-size: 2rem; }

.vmg-about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.vmg-about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.vmg-about-card ul {
    list-style: none;
    padding: 0;
    text-align: right;
}

.vmg-about-card ul li {
    padding: 8px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.vmg-about-card ul li:last-child { border-bottom: none; }
.vmg-about-card ul li i { color: var(--success); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 968px) {
    .about-intro          { grid-template-columns: 1fr; }
    .activities-about-grid { grid-template-columns: 1fr; }
    .vmg-about-grid       { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   Contact Page
══════════════════════════════════════════ */
.contact-section {
    padding: 70px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 35px;
    align-items: start;
}

/* ── بطاقات المعلومات ── */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-card-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-card-header i { font-size: 1.2rem; }
.contact-card-header h3 { margin: 0; font-size: 1rem; }

.contact-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-card-body p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
}

/* أرقام الهاتف */
.contact-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s;
    direction: ltr;
    justify-content: flex-end;
}

.contact-phone:last-child { border-bottom: none; }
.contact-phone:hover { color: var(--secondary-color); }
.contact-phone i { color: var(--accent-color); font-size: 1.1rem; }

/* رابط فيسبوك */
.contact-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.contact-social-link.facebook {
    background: #1877f2;
    color: var(--white);
}

.contact-social-link.facebook:hover {
    background: #0d65d9;
    transform: translateY(-2px);
}

.contact-social-link i { font-size: 1.3rem; }

/* ── الخريطة ── */
.contact-map-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.map-wrapper {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.btn-map {
    align-self: flex-start;
}

/* Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-col { order: -1; }

    .map-wrapper { height: 300px; }

    .btn-map { align-self: stretch; text-align: center; }
}

/* ══════════════════════════════════════════
   Graduates Public Page
══════════════════════════════════════════ */
.graduates-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.graduates-search {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    align-items: center;
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input-wrap i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-input-wrap input {
    width: 100%;
    padding: 12px 42px 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
}

.search-input-wrap input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-outline {
    padding: 11px 20px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.results-count {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.graduates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.graduate-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.2s;
}

.graduate-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.graduate-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.graduate-info h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.graduate-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.graduate-info i {
    color: var(--primary-color);
    width: 14px;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 80px 0;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* ── فورم إضافة/تعديل الخريج ── */
.grad-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grad-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grad-form-group.span-2 {
    grid-column: span 2;
}

.grad-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.field-error-admin {
    color: #dc2626;
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .graduates-grid { grid-template-columns: 1fr; }
    .graduates-search { flex-wrap: wrap; }
    .grad-form-grid { grid-template-columns: 1fr; }
    .grad-form-group.span-2 { grid-column: span 1; }
}

/* ══ Graduates Table ══ */
.graduates-table-wrap {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.graduates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.graduates-table thead tr {
    background: var(--primary-color);
    color: var(--white);
}

.graduates-table th {
    padding: 14px 16px;
    text-align: right;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.graduates-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-dark);
    vertical-align: middle;
}

.graduates-table tbody tr:last-child td {
    border-bottom: none;
}

.graduates-table tbody tr:hover td {
    background: #f8fafc;
}

.graduates-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.graduates-table tbody tr:nth-child(even):hover td {
    background: #f1f5f9;
}

.graduates-table td:first-child {
    color: #94a3b8;
    font-size: 0.82rem;
    width: 40px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@@media (max-width: 900px) {
    .graduates-table-wrap { overflow-x: auto; }
    .graduates-table { min-width: 800px; }
}

/* ══ Activities Page ══ */
.activities-page { padding: 60px 0; background: var(--bg-light); }

.activities-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.activity-page-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.activity-page-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.activity-page-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.activity-page-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-no-img i {
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
}

.activity-date-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    backdrop-filter: blur(4px);
}

.activity-date-badge i { margin-left: 5px; }

.activity-page-body { padding: 22px; }

.activity-page-body h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
}

.activity-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.activity-content {
    color: var(--text-dark);
    font-size: 0.88rem;
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
}

.no-activities {
    text-align: center;
    padding: 80px 0;
    color: var(--text-light);
}

.no-activities i {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.3;
}

@@media (max-width: 768px) {
    .activities-page-grid { grid-template-columns: 1fr; }
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.page-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
.page-btn.active {
    background: var(--primary-color);
    color: #fff;
    cursor: default;
}
