/* الألوان الأساسية المستوحاة من شعار جامعة السعيد */
:root {
    --primary-dark: #004d6d; /* أزرق داكن من الشعار */
    --primary-light: #006666; /* أزرق بترولي */
    --secondary-gold: #b8956a; /* ذهبي من الشعار */
    --accent-white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #555;
    --bg-light: #f8fafb;
    --border-light: #e8ecf1;
    --shadow-color: rgba(0, 77, 109, 0.15);
}

/* تطبيق خط Tajawal على كامل الصفحة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(rgba(0, 77, 109, 0.75), rgba(0, 102, 102, 0.75)), url('images/banner.jpg') center/cover fixed;
    background-attachment: fixed;
    color: var(--text-dark);
    padding: 30px 15px;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    min-height: 100vh;
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--accent-white);
    padding: 45px 35px;
    box-shadow: 0 15px 40px var(--shadow-color);
    border-radius: 15px;
    border-top: 6px solid var(--secondary-gold);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ تنسيق الرأس (Header) ============ */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 35px 0;
    border-bottom: 3px solid var(--secondary-gold);
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.header .logo {
    width: 250px; /* تم تكبير الشعار بناءً على طلب المستخدم */
    height: 250px; /* تم تكبير الشعار بناءً على طلب المستخدم */
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header .logo:hover {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(0, 77, 109, 0.3));
}

.header-content {
    text-align: center;
    flex: 1;
    min-width: 280px;
}

.header-content h1 {
    color: var(--primary-dark);
    font-size: 2.8em;
    margin: 0 0 10px 0;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content h2 {
    color: var(--secondary-gold);
    font-size: 1.7em;
    margin: 0 0 15px 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-content .subtitle {
    font-size: 1.25em;
    color: var(--primary-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ تنسيق رؤوس الجلسات (Session Headers) ============ */
.session-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--accent-white);
    padding: 18px 24px;
    margin-top: 40px;
    margin-bottom: 18px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.2em;
    box-shadow: 0 6px 16px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.session-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.session-header .session-title {
    font-size: 1.25em;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.session-header .chairman-info {
    font-size: 0.95em;
    opacity: 0.95;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* ============ تنسيق الجدول (Table) ============ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

table thead {
    background: linear-gradient(135deg, #f5f8fa 0%, #eef3f7 100%);
}

table thead th {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--secondary-gold); /* تم تغيير اللون إلى الذهبي لزيادة الوضوح بناءً على طلب المستخدم */
    font-weight: 800;
    padding: 18px 16px;
    border-bottom: 3px solid var(--secondary-gold);
    font-size: 1.05em;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 16px 16px;
    text-align: right;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.3s ease;
}

table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:nth-child(odd) {
    background-color: #fafbfc;
}

table tbody tr:nth-child(even) {
    background-color: var(--accent-white);
}

table tbody tr:hover {
    background-color: #f0f5f9;
    box-shadow: inset 0 0 0 1px var(--border-light);
}

/* تنسيق عمود الوقت */
table th:first-child {
    width: 15%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--accent-white);
    font-weight: 800;
    white-space: nowrap;
    border-bottom: 3px solid var(--secondary-gold);
}

table tbody th {
    background: linear-gradient(135deg, #f0f5f7 0%, #e8f0f3 100%);
    color: var(--primary-dark);
    font-weight: 700;
    width: 15%;
    white-space: nowrap;
    border-right: 3px solid var(--secondary-gold);
}

/* تنسيق أسماء المحاضرين */
.speaker-name {
    width: 25%;
    font-weight: 600;
    color: var(--primary-dark);
}

/* تنسيق عناوين المحاضرات */
.topic {
    font-weight: 500;
    color: var(--text-light);
}

/* ============ تنسيق معلومات التواصل ============ */
.contact-info {
    background: linear-gradient(135deg, #f5f8fa 0%, #eef3f7 100%);
    border: 2px solid var(--secondary-gold);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    color: var(--primary-dark);
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 800;
    border-bottom: 2px solid var(--secondary-gold);
    padding-bottom: 10px;
}

.contact-info p {
    color: var(--text-light);
    font-size: 1.05em;
    margin-bottom: 18px;
    font-weight: 500;
}

.contact-info a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-gold);
    text-decoration: underline;
}

.registration-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.reg-link {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    font-size: 1em;
    border: 2px solid transparent;
}

.reg-link.online {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--accent-white);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.reg-link.online:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.reg-link.physical {
    background: linear-gradient(135deg, var(--secondary-gold) 0%, #c9a961 100%);
    color: var(--accent-white);
    box-shadow: 0 4px 12px rgba(184, 149, 106, 0.3);
}

.reg-link.physical:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(184, 149, 106, 0.4);
}

/* ============ تنسيق التذييل (Footer) ============ */
.footer {
    text-align: center;
    padding-top: 25px;
    margin-top: 35px;
    border-top: 2px solid var(--border-light);
    font-size: 0.95em;
    color: #999;
    font-weight: 500;
}
.footer-contact {
    text-align: center;
    margin: 10px 0;
    padding: 12px 0;
    font-size: 0.95em;
    color: var(--text-light);
    font-weight: 500;
    direction: ltr;
}

/* ============ استجابة التصميم (Responsive Design) ============ */
@media (max-width: 768px) {
    .page-container {
        padding: 25px 20px;
    }

    .header {
        gap: 20px;
        padding: 25px 0;
    }

    .header .logo {
        width: 90px;
        height: 90px;
    }

    .header-content h1 {
        font-size: 2em;
    }

    .header-content h2 {
        font-size: 1.3em;
    }

    .header-content .subtitle {
        font-size: 1em;
    }

    .session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 18px;
    }

    .session-header .session-title {
        font-size: 1.1em;
    }

    .session-header .chairman-info {
        font-size: 0.85em;
        width: 100%;
    }

    table {
        font-size: 0.9em;
    }

    table th, table td {
        padding: 12px 10px;
    }

    .speaker-name {
        width: 30%;
    }

    .topic {
        width: 40%;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-info h3 {
        font-size: 1.2em;
    }

    .registration-links {
        gap: 10px;
    }

    .reg-link {
        padding: 12px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 600px) {
    .page-container {
        padding: 15px 12px;
        border-radius: 10px;
    }

    .header {
        flex-direction: column;
        gap: 12px;
        padding: 15px 0;
    }

    .header .logo {
        width: 75px;
        height: 75px;
    }

    .header-content h1 {
        font-size: 1.6em;
    }

    .header-content h2 {
        font-size: 1.1em;
    }

    .header-content .subtitle {
        font-size: 0.9em;
    }

    table {
        font-size: 0.8em;
    }

    table th, table td {
        padding: 10px 6px;
    }

    table thead th {
        font-size: 0.9em;
    }

    .speaker-name {
        width: 35%;
    }

    .topic {
        width: 35%;
    }

    .session-header {
        font-size: 0.95em;
        padding: 12px 12px;
    }

    .session-header .session-title {
        font-size: 0.95em;
    }

    .session-header .chairman-info {
        font-size: 0.75em;
    }

    .contact-info {
        padding: 15px;
    }

    .contact-info h3 {
        font-size: 1.1em;
    }

    .registration-links {
        flex-direction: column;
        gap: 8px;
    }

    .reg-link {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        font-size: 0.9em;
    }
}

/* ============ تنسيق شاشة التحميل (Splash Screen) ============ */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark); /* خلفية بلون الجامعة */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    width: 250px; /* حجم كبير للشعار */
    height: 250px;
    object-fit: contain;
    margin-bottom: 30px;
    animation: pulse 1.5s infinite alternate;
}

.loading-text {
    color: var(--accent-white);
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.8;
    }
    to {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* إخفاء المحتوى الرئيسي في البداية */
#main-content {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

#main-content.show {
    opacity: 1;
}
