/* --- 1. الأساسيات وضبط الشاشة --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #d9cec1;
    font-family: 'Amiri', serif;
    line-height: 1.6;
    color: #2c1e1a;
    scroll-behavior: smooth;
    overflow-x: hidden; /* عشان الموبايل ميهزش يمين وشمال */
}

/* --- 2. البار العلوي (الزجاجي الذكي) --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(217, 206, 193, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 2px solid #b8a691;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

/* الكلاس اللي الجافا سكريبت بيضيفه للإخفاء */
.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.nav-links { display: flex; list-style: none; gap: 8px; }

/* الشكل البيضاوي (الزجاج البني) */
.nav-links a {
    text-decoration: none;
    color: #2c1e1a;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 50px;
    transition: 0.3s;
    border: 1.5px solid transparent;
    font-size: 1rem;
}

/* الحالة الثابتة عند الضغط (Active) */
.nav-links a:hover, 
.nav-links a.active {
    background: rgba(93, 64, 55, 0.25);
    border-color: #5d4037;
    color: #5d4037;
}

/* --- 3. حاوية المحتوى الرئيسي --- */
.page-wrapper {
    max-width: 1100px;
    margin: 100px auto 40px; /* 100 عشان البار الثابت */
    padding: 20px;
}

/* --- 4. قسم المواجهة (Hero) والتفاعل --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-text h1 {
    font-family: 'Aref Ruqaa', serif;
    font-size: clamp(1.8rem, 5vw, 3rem); /* خط مرن يكبر ويصغر حسب الشاشة */
    margin-bottom: 15px;
}

.hero-image { width: 100%; overflow: hidden; border-radius: 20px; }

.main-hero-img{
width:100%;
max-width:420px;
border-radius:25px;
box-shadow:
0 20px 40px rgba(0,0,0,0.15),
10px 10px 0px #b8a691;
transition:0.6s;
}
.btn{

display:inline-flex;

align-items:center;

gap:10px;

padding:12px 25px;

border-radius:30px;

text-decoration:none;

font-weight:bold;

transition:0.3s;

}

.btn i{

font-size:18px;

}
.video-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(200px,1fr));

gap:20px;

margin-top:20px;

}

.video-card{

background:white;

border-radius:15px;

overflow:hidden;

box-shadow:0 10px 20px rgba(0,0,0,0.1);

text-align:center;

transition:0.3s;

}

.video-card:hover{

transform:translateY(-5px);

}

.video-card img{

width:100%;

height:120px;

object-fit:cover;

}

.video-card h4{

margin:10px;

}

.watch-btn{

display:inline-block;

margin-bottom:15px;

padding:8px 18px;

background:#5d4037;

color:white;

border-radius:20px;

text-decoration:none;

}

.all-videos-btn{

display:block;

margin:30px auto;

width:max-content;

padding:12px 30px;

background:linear-gradient(45deg,#5d4037,#b8965a);

color:white;

border-radius:30px;

text-decoration:none;

font-weight:bold;

}

/* الكلاس اللي بيصغر الصورة عند النزول */
.img-shrunk{
transform:scale(0.95);
box-shadow:
0 25px 50px rgba(0,0,0,0.2);
}

/* --- 5. الصناديق (Content Boxes) --- */
.content-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* --- 6. استجابة الأبعاد (Responsive) --- */
.logo img{
    height:50px;
    width:auto;
    display:block;
}

/* للتابلت والموبايل */
@media (max-width: 768px) {
    .nav-container { padding: 8px 10px; }
    .logo img{
    height:50px;
    width:auto;
    display:block;
}
    .nav-links a { 
        padding: 6px 10px; 
        font-size: 0.85rem; 
    }
    .hero { padding: 30px 15px; }
    .page-wrapper { margin-top: 80px; }
}