/* Single opportunity + single education (single-opportunities.php, single-education.php).
   Enqueued by artinfo_enqueue_page_styles() in inc/core/enqueue.php. */

:root {
    --brand-yellow: #FFC107;
    --brand-black: #121212;
    --text-gray: #555;
    --bg-light: #F8F9FA;
}

/* --- Utilities --- */
.btn-brand {
    background-color: var(--brand-yellow);
    color: black;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    transition: 0.3s;
}

.btn-brand:hover {
    background-color: #ffcd39;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.btn-outline-dark {
    border-radius: 50px;
    font-weight: 600;
    padding: 10px 24px;
}

.chip {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}


/* --- Header --- */
.navbar {
    padding: 15px 0;
}

/* --- Page Layout --- */
.page-container {
    padding-top: 40px;
}

/* --- Left Column: Content --- */
.opp-title {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.org-badge {
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.content-text h5 {
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-text ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-text li {
    margin-bottom: 10px;
}

/* --- Social Share --- */
.share-section {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 40px;
}

.share-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    margin-right: 10px;
    transition: 0.2s;
}

.share-btn:hover {
    background: var(--brand-yellow);
    color: black;
    transform: translateY(-2px);
}

.details-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.details-header {
    background: var(--brand-black);
    color: white;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.details-body {
    padding: 20px;
}

.detail-item {
    margin-bottom: 18px;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 10px;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 700;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-black);
}

.sidebar-chip {
    display: inline-block;
    background: var(--bg-light);
    border: 1px solid #eee;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #555;
    margin-right: 3px;
    margin-bottom: 3px;
}

.apply-btn {
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.calendar-btn {
    background: #fff;
    color: #4285F4;
    border: 1px solid #4285F4;
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.calendar-btn:hover {
    background: #e8f0fe;
}

.save-btn {
    background: #fff;
    border: 1px solid #ddd;
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
    transition: 0.2s;
}

.save-btn:hover {
    border-color: #999;
    color: black;
}

/* --- STICKY MOBILE BAR (Optimized) --- */

/* Compact Info Stacking */

/* Green for free */
/* --- Footer --- */

.details-body a:hover {
    color: var(--main);
}

/* ===================== MOBILE STYLES ===================== */
@media (max-width: 767px) {

    /* --- Title & Content --- */
    .opp-title {
        font-size: 1.8rem; /* کاهش از 2.2rem */
    }

    .content-text {
        font-size: 0.95rem; /* کاهش از 1.05rem */
        line-height: 1.6; /* کمتر برای موبایل */
    }

    /* --- Sidebar Chips --- */
    .sidebar-chip, .chip {
        font-size: 0.65rem; /* کوچکتر کردن متن برچسب‌ها */
        padding: 3px 8px;
    }

    /* --- Buttons --- */
    .btn-brand, .btn-outline-dark, .calendar-btn, .save-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .apply-btn {
        font-size: 0.85rem;
    }

    /* --- Sticky Mobile Bar --- */
    .sticky-bar {
        padding: 8px 12px;
    }

    .sticky-row {
        font-size: 0.65rem;
    }

    .sticky-info-col {
        gap: 2px;
    }

    /* --- Details Card --- */
    .details-card .details-body {
        padding: 15px;
    }

    .detail-item .detail-value {
        font-size: 0.85rem;
    }

    .detail-item .detail-label {
        font-size: 0.65rem;
    }

    /* --- Footer Links --- */
    .footer-links a {
        font-size: 0.8rem;
    }
}
