/* ===========================
   OPPORTUNITIES TEMPLATES CSS
   =========================== */

/* Global Dark Theme Settings */
body {
    background-color: #020410;
    color: #ffffff;
}

/* Hero/Archive Section */
.opportunities-hero-section {
    background: #020410;
    color: white;
    padding: 80px 40px;
    text-align: center;
}

.opportunities-hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.opportunities-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.opportunities-hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Opportunity Single Page Layout */
.opportunity-single-page {
    background: #020410;
    color: white;
    padding: 60px 40px 100px;
    min-height: 100vh;
}

.opportunity-single-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: underline;
    font-size: 0.95rem;
    margin-bottom: 40px;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

.back-link:hover {
    opacity: 0.8;
}

.opportunity-layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 80px;
    align-items: start;
}

.opportunity-main-column {
    display: flex;
    flex-direction: column;
}

.opportunity-header-content {
    margin-bottom: 40px;
}

.opportunity-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    line-height: 1.1;
    position: relative;
    padding-bottom: 15px;
    color: #FFFFFF;
}

.opportunity-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 6px;
    background-color: #0052e4;
}

.opportunity-description {
    color: #b0b0bc;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-top: 20px;
}

.opportunity-body {
    display: flex;
    flex-direction: column;
}

.opportunity-section {
    margin-bottom: 50px;
}

.opportunity-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
}

.opportunity-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.opportunity-list-item {
    padding: 8px 0;
    line-height: 1.6;
    color: #b0b0bc;
    font-size: 1.05rem;
}

.opportunity-list-item::marker {
    color: #7b7b8a;
}

.opportunity-content {
    color: #A7ADBE;
    line-height: 1.6;
    font-size: 1.1rem;
}

.opportunity-content p {
    margin-bottom: 20px;
}

/* Sidebar Styling */
.opportunity-right-panel {
    background: linear-gradient(135deg, #000529 0%, #0044DD 100%);
    padding: 40px 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 40px;
    width: 400px;
}

.opportunity-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.opportunity-meta-item {
    display: grid;
    grid-template-columns: 10rem 1fr;
    align-items: baseline;
    font-size: 16px;
}

.meta-label {
    color: #A7ADBE;
    font-weight: 300;
}

.meta-value {
    font-weight: 300;
    color: #ffffff;
}

.opportunity-action {
    margin-top: 10px;
}

.btn-apply {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #0052e4;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
    transition: background 0.3s ease;
    border: none;
}

.btn-apply:hover {
    background: #0046c4;
}

/* Archive/List View Styles */
.opportunities-list-section {
    padding: 60px 20px;
    background: #020410;
}

.opportunity-card {
    background: #050c2c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.opportunity-card:hover {
    border-color: #0052e4;
    transform: translateY(-5px);
}

.opportunity-card-title a {
    color: #ffffff;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #b0b0bc;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .opportunity-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .opportunity-sidebar {
        grid-row: 1;
        /* Move sidebar up on mobile if needed, or keep it below title */
    }

    .opportunity-right-panel {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .opportunity-title {
        font-size: 2.5rem;
    }

    .opportunity-single-page {
        padding: 40px 20px;
    }
}