/* ========================================
   المحفل العلمي الدولي - النسخة الثامنة عشر
   الهوية البصرية الرسمية
   ======================================== */

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

:root {
    --primary: #7b1113;
    --primary-dark: #5a0c0e;
    --primary-light: #a01518;
    --primary-pale: #f5e6e6;
    --white: #ffffff;
    --off-white: #f8f8f8;
    --light-gray: #f0f0f0;
    --gray: #888888;
    --dark-gray: #333333;
    --text: #2d2d2d;
    --gold: #c9a84c;
    --gold-light: #e8c96a;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ======= SCROLLBAR ======= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-gray); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ======= NAVIGATION ======= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    font-weight: 900;
    box-shadow: 0 3px 12px rgba(123,17,19,0.3);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-text .main-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.nav-logo-text .sub-title {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: var(--primary-pale);
}

.nav-portal-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: white !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 18px !important;
    box-shadow: 0 3px 12px rgba(123,17,19,0.3);
}

.nav-portal-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(123,17,19,0.4) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ======= HERO SECTION ======= */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, #9c1416 70%, #7b1113 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 75px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.2; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--gold-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-edition {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title span {
    color: var(--gold-light);
}

.hero-slogan {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    margin-bottom: 35px;
    padding: 15px 20px;
    border-right: 4px solid var(--gold);
    background: rgba(255,255,255,0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.8;
}

.hero-dates {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.hero-date-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
}

.hero-date-item i {
    color: var(--gold-light);
    font-size: 18px;
}

.hero-date-item .date-info {
    display: flex;
    flex-direction: column;
}

.hero-date-item .date-label {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.hero-date-item .date-value {
    font-size: 14px;
    color: white;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: var(--primary);
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: var(--gold-light);
}

.btn-outline-white {
    background: transparent;
    color: white;
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.stat-icon {
    font-size: 28px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

/* Countdown */
.countdown-section {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.countdown-title {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
}

.countdown-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.countdown-sep {
    font-size: 30px;
    color: rgba(255,255,255,0.4);
    align-self: flex-start;
    padding-top: 5px;
}

/* ======= SECTION STYLES ======= */
section {
    padding: 80px 0;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-pale);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid rgba(123,17,19,0.15);
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-title span {
    color: var(--primary);
}

.section-desc {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 2px;
    margin: 15px auto 0;
}

/* Container */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======= CONFERENCES SECTION ======= */
.conferences-section {
    background: var(--off-white);
}

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

.conf-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: block;
    position: relative;
    overflow: hidden;
}

.conf-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--gold));
    transition: var(--transition);
}

.conf-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-pale);
}

.conf-card:hover::before {
    width: 6px;
}

.conf-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-pale), rgba(123,17,19,0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    color: var(--primary);
}

.conf-number {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.conf-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 15px;
}

.conf-arrow {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

/* ======= DATES SECTION ======= */
.dates-section {
    background: white;
}

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

.date-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.date-card.light {
    background: white;
    border: 2px solid var(--primary-pale);
    color: var(--text);
}

.date-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.date-card-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--gold-light);
}

.date-card.light .date-card-icon {
    color: var(--primary);
}

.date-card-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.date-card.light .date-card-title {
    color: var(--primary);
}

.date-card-date {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold-light);
    margin-bottom: 5px;
}

.date-card.light .date-card-date {
    color: var(--primary);
}

.date-card-hijri {
    font-size: 14px;
    opacity: 0.8;
}

/* ======= VIDEOS SECTION ======= */
.videos-section {
    background: var(--dark-gray);
    color: white;
}

.videos-section .section-title {
    color: white;
}

.videos-section .section-desc {
    color: rgba(255,255,255,0.7);
}

.videos-section .section-badge {
    background: rgba(255,255,255,0.1);
    color: var(--gold-light);
    border-color: rgba(255,255,255,0.2);
}

.videos-slider {
    position: relative;
}

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

.video-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(123,17,19,0.3);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    background: #1a1a1a;
}

.video-thumbnail iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    transition: var(--transition);
}

.video-play-overlay:hover {
    background: rgba(123,17,19,0.6);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(123,17,19,0.5);
}

.video-play-overlay:hover .play-btn {
    transform: scale(1.15);
}

.video-info {
    padding: 18px;
}

.video-edition {
    font-size: 12px;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-title {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    line-height: 1.5;
}

/* ======= PREVIOUS EDITIONS ======= */
.editions-section {
    background: var(--off-white);
}

.editions-timeline {
    position: relative;
    padding: 20px 0;
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.edition-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 22px 18px;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.edition-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-pale);
}

.edition-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: white;
    margin: 0 auto 12px;
}

.edition-year {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
}

.edition-name {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
    line-height: 1.4;
}

/* ======= WORKSHOP SECTION ======= */
.workshop-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.workshop-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.workshop-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.workshop-icon-area {
    text-align: center;
}

.workshop-big-icon {
    font-size: 100px;
    opacity: 0.2;
    color: var(--gold-light);
}

.workshop-badge-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-top: 20px;
}

.workshop-badge-box .seats {
    font-size: 48px;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
}

.workshop-badge-box .seats-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.workshop-info h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
}

.workshop-info h2 span {
    color: var(--gold-light);
}

.workshop-info .subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
    line-height: 1.7;
}

.workshop-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.workshop-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.workshop-feature i {
    color: var(--gold-light);
    font-size: 16px;
}

/* ======= EXHIBITION SECTION ======= */
.exhibition-section {
    background: white;
}

.exhibition-card {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--primary-pale) 100%);
    border: 2px solid var(--primary-pale);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.exhibition-icon {
    font-size: 70px;
    color: var(--primary);
    margin-bottom: 25px;
    opacity: 0.8;
}

.exhibition-card h3 {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
}

.exhibition-card p {
    font-size: 16px;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.btn-red {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 35px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(123,17,19,0.3);
}

.btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123,17,19,0.4);
    color: white;
}

/* ======= SPONSORS SECTION ======= */
.sponsors-section {
    background: var(--off-white);
    padding: 60px 0;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: var(--transition);
    background: #fff;
    border-radius: 16px;
    padding: 22px 16px 16px;
    border: 2px solid #f0e8e0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.sponsor-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(123,17,19,0.13);
    border-color: rgba(123,17,19,0.2);
}

.sponsor-logo {
    width: 110px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: var(--transition);
}

.sponsor-item:hover .sponsor-logo {
    filter: grayscale(0%);
}

.sponsor-placeholder {
    width: 110px;
    height: 80px;
    background: #fafafa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    padding: 6px;
    transition: var(--transition);
    overflow: hidden;
}

.sponsor-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sponsor-item:hover .sponsor-placeholder {
    background: #fff8f5;
}

.sponsor-name {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-align: center;
    line-height: 1.4;
    max-width: 140px;
}

/* ======= FOOTER ======= */
footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

/* ======= VIDEO MODAL ======= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #111;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
}

.modal-video {
    position: relative;
    padding-bottom: 56.25%;
}

.modal-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ======= PAGE HEADER ======= */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 50px;
    background: white;
    clip-path: ellipse(60% 100% at 50% 100%);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 17px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* ======= FORMS ======= */
.form-section {
    background: var(--off-white);
    padding: 80px 0;
}

.form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-pale);
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--primary);
    margin-right: 3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    transition: var(--transition);
    background: var(--off-white);
    direction: rtl;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(123,17,19,0.08);
}

.form-textarea {
    min-height: 130px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123,17,19,0.4);
}

/* ======= ALERTS ======= */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    display: none;
    align-items: center;
    gap: 10px;
}

.alert.show { display: flex; }

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ======= ADMIN PANEL ======= */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    margin: 0 auto 20px;
}

.login-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.login-card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 30px;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #1a1a1a;
    padding: 0;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: 900;
}

.sidebar-logo-text {
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.sidebar-nav {
    padding: 20px 0;
    list-style: none;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-item a:hover,
.sidebar-item a.active {
    background: rgba(123,17,19,0.3);
    color: white;
    border-right: 3px solid var(--primary);
}

.sidebar-item a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-section-label {
    padding: 12px 20px 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.admin-main {
    flex: 1;
    margin-right: 260px;
    padding: 30px;
    background: var(--off-white);
    min-height: 100vh;
}

.admin-header {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.admin-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.admin-header .breadcrumb {
    font-size: 13px;
    color: var(--gray);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-widget {
    background: white;
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-widget-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--primary-pale);
    color: var(--primary);
}

.stat-widget-icon.blue { background: #e3f2fd; color: #1565c0; }
.stat-widget-icon.green { background: #e8f5e9; color: #2e7d32; }
.stat-widget-icon.orange { background: #fff3e0; color: #e65100; }
.stat-widget-icon.purple { background: #f3e5f5; color: #6a1b9a; }

.stat-widget-info .value {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.stat-widget-info .label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
    margin-top: 4px;
}

.admin-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.admin-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-header h3 i {
    color: var(--primary);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background: var(--off-white);
    padding: 12px 15px;
    text-align: right;
    font-weight: 700;
    color: var(--text);
    font-size: 13px;
    border-bottom: 2px solid var(--light-gray);
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: var(--off-white);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending { background: #fff3e0; color: #e65100; }
.badge-approved { background: #e8f5e9; color: #2e7d32; }
.badge-rejected { background: #ffebee; color: #c62828; }
.badge-new { background: #e3f2fd; color: #1565c0; }
.badge-read { background: var(--light-gray); color: var(--gray); }

.action-btns {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.action-btn.approve { background: #e8f5e9; color: #2e7d32; }
.action-btn.reject { background: #ffebee; color: #c62828; }
.action-btn.view { background: #e3f2fd; color: #1565c0; }
.action-btn.delete { background: #ffebee; color: #c62828; }

.action-btn:hover { opacity: 0.8; transform: scale(1.1); }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    transition: var(--transition);
}

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

.filter-select {
    padding: 10px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background: white;
    cursor: pointer;
}

.filter-select:focus { outline: none; border-color: var(--primary); }

/* Detail Modal */
.detail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.detail-modal-box {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: var(--transition);
}

.detail-modal.active .detail-modal-box {
    transform: translateY(0);
}

.detail-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.detail-modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.detail-modal-body {
    padding: 25px;
}

.detail-field {
    margin-bottom: 18px;
}

.detail-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.detail-field .value {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.6;
}

.detail-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

/* ======= LOADING ======= */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ======= TOAST ======= */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1a1a1a;
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    animation: slideInToast 0.3s ease;
    border-right: 4px solid var(--primary);
}

.toast.success { border-color: #2e7d32; }
.toast.error { border-color: #c62828; }
.toast.info { border-color: #1565c0; }

@keyframes slideInToast {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ======= RESPONSIVE ======= */
@media (max-width: 1100px) {
    .conferences-grid { grid-template-columns: repeat(2, 1fr); }
    .editions-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-stats { display: none; }
    .hero-title { font-size: 36px; }
    .workshop-content { grid-template-columns: 1fr; }
    .dates-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { transform: translateX(260px); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-right: 0; }
    .form-row { grid-template-columns: 1fr; }
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
    .editions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .nav-menu { display: none; }
    .nav-menu.open { 
        display: flex; 
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background: white;
        padding: 15px;
        box-shadow: var(--shadow-md);
        gap: 5px;
    }
    .hamburger { display: flex; }
    .conferences-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 28px; }
    .section-title { font-size: 26px; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .videos-grid { grid-template-columns: 1fr; }
    .editions-grid { grid-template-columns: repeat(2, 1fr); }
    .countdown-value { font-size: 28px; }
}

/* ======= ANIMATIONS ======= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
