/* الصفحة الرئيسية */
.gold-main {
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* قسم البطل */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* توسيط عمودي */
    align-items: center;      /* توسيط أفقي */
    min-height: 380px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gold-text {
    color: var(--gold);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* مربع البحث */
.gold-search {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

.gold-search form {
    display: flex;
    gap: 0.5rem;
}

.gold-search input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
}

/* بطاقات الإعلانات */
.ad-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gold);
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.ad-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.ad-details {
    padding: 1.2rem;
}

.ad-price {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.gold-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.gold-link:hover {
    color: var(--dark-gold);
    text-decoration: underline;
}

/* الأقسام */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.category-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.1rem;
    color: #333;
}

.gold-hover:hover {
    border-color: var(--light-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.15);
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .gold-search form {
        flex-direction: column;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
}