/* ====== الشبكة الرئيسية (Hero) ====== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 5%;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.main-feat {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 350px;
}

@media (min-width: 992px) {
    .main-feat {
        height: 450px;
    }
}

.main-feat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feat-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    padding: 20px;
    color: white;
}

.feat-overlay h2 {
    font-size: 1.3rem;
    margin: 10px 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .feat-overlay h2 {
        font-size: 1.8rem;
    }
}

.feat-tag {
    background: var(--brand-red);
    padding: 3px 10px;
    font-size: 0.6rem;
    font-weight: bold;
    display: inline-block;
}

.feat-desc {
    font-size: 0.85rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .feat-desc {
        display: none;
    }
}

.sub-feat-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sub-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.sub-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.sub-item h4 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.sub-item-cat {
    color: var(--brand-red);
    font-size: 0.7rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* ====== الأقسام العامة ====== */
.section-wrapper {
    padding: 40px 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 25px;
}

.section-header h2 {
    background: var(--primary);
    color: white;
    margin: 0;
    padding: 5px 15px;
    font-size: 1rem;
}

.section-header .view-all {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.75rem;
}

/* ====== بطاقات الأسلحة ====== */
.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.spec-card {
    border: 1px solid var(--border);
    background: white;
    transition: 0.3s;
    border-top: 4px solid var(--gold-accent);
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.spec-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.spec-info {
    padding: 15px;
}

.spec-tag {
    font-size: 0.7rem;
    color: var(--gold-accent);
    font-weight: bold;
    text-transform: uppercase;
}

.spec-table {
    width: 100%;
    font-size: 0.8rem;
    margin-top: 10px;
    border-collapse: collapse;
}

.spec-table td {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

/* ====== القسم الداكن (مرئيات الدفاع) ====== */
.media-dark {
    background: #111;
    color: white;
    padding: 40px 5%;
}

.media-dark .section-header {
    border-color: #333;
}

.media-dark .section-header h2 {
    background: var(--brand-red);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.video-box {
    position: relative;
    cursor: pointer;
}

.video-box img {
    width: 100%;
    border-radius: 4px;
    opacity: 0.6;
    transition: 0.3s;
}

.video-box:hover img {
    opacity: 0.8;
}

.play-btn {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* ====== بطاقات التاريخ ====== */
.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.history-card {
    display: flex;
    gap: 20px;
    background: var(--bg-alt);
    padding: 15px;
    border-radius: 4px;
    align-items: center;
}

.history-year {
    font-size: 1.5rem;
    color: var(--gold-accent);
    font-weight: bold;
    min-width: 60px;
}

