/* منصة الأفكار الابتكارية: الرئيسية (GEOSA_Ideas_Home.html) والفائزون بالهاكاثون
   (GEOSA_Ideas_Hackathon.html). تُحمَّل بعد css/site.css و css/GEOSA_Community_Home.css،
   فالأقسام والبطاقات والأيقونات الدائرية (cm-*) من منصة المجتمع الجيومكاني.

   المحتوى منقول عن صفحتي المنصة في موقع الهيئة
   (geosa.gov.sa/ar/Knowledgecenter/Pages/innovativeproposalmain.aspx و geohackathonwinners.aspx). */

/* الرئيسية: صندوق «تقديم فكرة» الداكن (.cm-join من GEOSA_Community_Home.css،
   كطلب العضوية في المجتمع لأن التقديم يتطلب النفاذ الوطني)، وتحته بطاقة الهاكاثون */
.ip-cards {
    grid-template-columns: 1fr;
    margin-top: 24px;
}

.ip-cards .cm-card {
    padding: 32px;
}

.ip-cards .cm-card__title {
    font-size: 1.25rem !important;   /* عناوين h2 هنا، وUDesign تكبّرها على الجوال */
}

.ip-cards .cm-card__text {
    font-size: 1rem;
}

/* بطاقة الهاكاثون: النص يمينًا وشعار «جيوهاكثون» يسارًا */
.ip-hack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 24px 48px;
}

.ip-hack__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.ip-hack__img {
    display: block;
    width: 100% !important;
    height: auto !important;
}

.ip-submit .dga-btn svg {
    width: 16px;
    height: 16px;
}

/* قسما صفحة الهاكاثون متتاليان، فلا تتضاعف المسافة بينهما */
.cm-section + .cm-section {
    padding-top: 0;
}

/* ===== مجالات التركيز ===== */
.ip-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ip-areas li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #d7f0e2;
    border-radius: 999px;
    background: #f3fcf6;
    font-size: 1rem;
    font-weight: 500;
    color: #104631;
}

.ip-areas svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: #1b8354;
}

/* ===== المشاريع الفائزة ===== */
.ip-winners {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ip-winner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #d2d6db;
    border-radius: 16px;
    background: #fff;
}

/* صور المشاريع بمقاسات مختلفة، فتُحتوى في مساحة ثابتة */
.ip-winner__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.ip-winner__media img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.ip-winner__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px 24px;
}

.ip-winner__name {
    margin: 0;
    font-size: 1.375rem !important;   /* UDesign تفرض حجم h3 على الجوال */
    font-weight: 700;
    line-height: 1.5;
    color: #161616;
}

.ip-winner__track {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: auto 0 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f3fcf6;
    font-size: .9375rem;
    color: #1b8354;
}

@media (max-width: 1199.98px) {
    .ip-winners {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .ip-hack {
        grid-template-columns: 1fr;
    }

    .ip-hack__img {
        max-width: 280px;
        margin-inline: auto;
    }
}

@media (max-width: 767.98px) {
    .ip-cards .cm-card {
        padding: 24px;
    }
}

@media (max-width: 575.98px) {
    .ip-winners {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
