/* --- UNIVERSAL HEADER STYLES (header.css) --- */
/* Final Updated Version */

/* 1. HEADER MAIN WRAPPER */
.header-wrapper {
    /* امیج پاتھ بالکل ٹھیک ہے: css فولڈر سے باہر نکل کر images فولڈر میں */
    background: #082f24 url('../images/header-bg.png') center/cover;
    height: 280px; 
    position: relative;
    border-bottom: 5px solid #c9a227; /* Gold Border */
    width: 100%;
    display: block;
}

/* 2. LOGO CONTAINER */
/* 2. LOGO CONTAINER (Updated) */
.header-logo-container {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 140px;      /* کنٹینر کا سائز */
    height: 140px;
    border-radius: 50%;
    border: 4px solid #c9a227; /* Gold Border */
    
    /* یہ نئی لائن اہم ہے: تاکہ زوم ہونے پر تصویر دائرے سے باہر نہ جائے */
    overflow: hidden;  
    
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 20;
}

/* header.css - Logo Final Adjustment */
.header-logo-container img {
    width: 100%;
    height: 100%;
    
    /* یہ تصویر کو دائرے میں پرفیکٹ فٹ کرے گا */
    object-fit: cover; 
    
    /* زوم ختم کر دیا کیونکہ og-image بڑی ہے */
    transform: none; 
    
    /* اگر پھر بھی تھوڑا سا باہر ہو تو یہ بارڈر ریڈیس مدد کرے گا */
    border-radius: 50%;
}

/* 3. NAVIGATION BAR (Sticky) */
.nav-bar {
    background: #154c3b; /* Dark Green */
    padding: 8px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 4. NAV INNER LAYOUT */
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    direction: rtl; /* Urdu Layout */
    gap: 20px;
    justify-content: space-between;
}

/* 5. SEARCH BOX (Updated for Form/Button) */
.nav-search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 5px 15px;
    border: 1px solid #ddd;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* سرچ بٹن کی اسٹائلنگ (نیا اضافہ) */
.nav-search button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 0 5px;
}

.nav-search button:hover {
    color: #c9a227;
    transform: scale(1.1);
}

.nav-search span {
    color: #ffd700; /* Gold Icon */
    font-size: 1.2rem;
}

.nav-search input {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Noto Nastaliq Urdu', serif;
    outline: none;
    width: 200px;
    padding-right: 10px; /* اردو ٹیکسٹ اور آئیکن میں فاصلہ */
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 6. MENU LINKS */
.nav-links { 
    display: flex; 
    align-items: center; 
    height: 100%; 
    flex: 1; 
    /* تبدیلی: center ہٹا کر flex-start کر دیا (اردو میں اس کا مطلب دائیں طرف ہے) */
    justify-content: flex-start; 
    padding-right: 0; /* دائیں جانب کا فالتو فاصلہ ختم */
}

.nav-links a { 
    color: #fff; 
    font-size: 1.1rem; 
    text-decoration: none; 
    font-family: 'Noto Nastaliq Urdu', serif; 
    transition: all 0.3s ease;
    position: relative; 
    padding: 10px 15px;
    display: flex; 
    align-items: center;
    border-bottom: 3px solid transparent; 
}

/* HOVER EFFECT: Gold Text + Gold Bottom Border */
.nav-links a:hover { 
    color: #ffd700 !important; 
    background-color: rgba(255, 215, 0, 0.05); 
    border-bottom: 3px solid #ffd700; 
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* RESPONSIVE DESIGN */
@media(max-width: 900px) {
    .header-wrapper { 
        height: 200px; 
    }
    
/* 2. LOGO CONTAINER (Updated for Full Fit) */
.header-logo-container {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 140px;      /* کنٹینر کا سائز */
    height: 140px;
    border-radius: 50%;
    border: 4px solid #c9a227; /* Gold Border */
    
    /* یہ دو لائنیں اہم ہیں تاکہ تصویر باہر نہ نکلے */
    overflow: hidden;  
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 20;
}

.header-logo-container img {
    width: 100%;       /* تصویر کو کنٹینر کے برابر کر دیا */
    height: 100%;
    object-fit: cover; /* تصویر کو کاٹے بغیر پورا فٹ کرے گا */
    border-radius: 50%;
}

    .nav-inner { 
        flex-direction: column; 
        gap: 15px; 
        padding-top: 40px; /* Space for logo overlap */
    }
    
    .nav-links { 
        flex-wrap: wrap;
        margin-left: 0; 
    }
    
    .nav-search input {
        width: 100%; /* Full width search on mobile */
    }
}