:root {
    --aspire-bg: #f4f7fa;
    --aspire-card-bg: #ffffff;
    --aspire-border: #e5e7eb;
    --aspire-text-main: #1f2937;
    --aspire-text-muted: #6b7280;
    --aspire-primary: #82389C;
    --aspire-primary-hover: #6a2c80;
    --aspire-accent: #2DB796;
}

/* Global Aspire Theme Overrides */
body.aspire-theme {
    background-color: var(--aspire-bg);
    color: var(--aspire-text-main);
    font-family: 'Inter', sans-serif;
    /* Ensure attractive font */
}

.aspire-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
}

.aspire-section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--aspire-text-main);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
}

.aspire-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 4px;
    background: var(--aspire-primary);
    border-radius: 4px;
}

/* HERO SECTION (Index) */
.aspire-hero {
    position: relative;
    height: 350px;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 2rem 2rem;
    /* Rounded bottom */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    /* Fallback */
}

.aspire-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.aspire-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.aspire-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.aspire-hero-desc {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 40rem;
    line-height: 1.6;
}

/* CARDS (Index) */
.aspire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.aspire-card {
    background: var(--aspire-card-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--aspire-border);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.aspire-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #d8b4fe;
    /* purple-200 */
}

.aspire-card-img-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.aspire-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.aspire-card:hover .aspire-card-img {
    transform: scale(1.05);
}

.aspire-card-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    position: relative;
    overflow: hidden;
}

.aspire-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.aspire-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--aspire-text-main);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.aspire-card-desc {
    font-size: 0.95rem;
    color: var(--aspire-text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aspire-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--aspire-border);
}

.aspire-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
}

.aspire-link-text {
    font-weight: 700;
    color: var(--aspire-primary);
    font-size: 0.9rem;
}

/* FORMS (Create/Edit) - Updated for Light Theme */
.aspire-form {
    background: var(--aspire-card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--aspire-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.aspire-input-group {
    margin-bottom: 1.5rem;
}

.aspire-label {
    display: block;
    font-weight: 600;
    color: var(--aspire-text-main);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.aspire-input,
.aspire-textarea,
.aspire-select {
    width: 100%;
    background-color: #ffffff;
    /* Explicit white */
    border: 1px solid #d1d5db;
    /* gray-300 */
    border-radius: 0.75rem;
    /* nice rounded */
    padding: 0.875rem 1rem;
    color: #111827;
    /* Dark text */
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.aspire-input:focus,
.aspire-textarea:focus,
.aspire-select:focus {
    outline: none;
    border-color: var(--aspire-primary);
    box-shadow: 0 0 0 3px rgba(130, 56, 156, 0.1);
}

.aspire-input::placeholder,
.aspire-textarea::placeholder {
    color: #9ca3af;
}

/* Helper Boxes in Form */
.aspire-box {
    background: #f9fafb;
    /* gray-50 */
    border: 1px solid var(--aspire-border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.aspire-box-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--aspire-text-main);
    margin-bottom: 1rem;
}

/* BUTTONS */
.aspire-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 1rem;
}

.aspire-btn:hover {
    transform: translateY(-1px);
}

.aspire-btn-primary {
    background: linear-gradient(to right, var(--aspire-primary), #a855f7);
    color: white;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.25);
}

.aspire-btn-primary:hover {
    box-shadow: 0 8px 12px rgba(139, 92, 246, 0.3);
}

.aspire-btn-success {
    background: var(--aspire-accent);
    color: white;
}

/* DETAILS PAGE SPECIFIC CLASSES */
.details-hero {
    background: var(--aspire-card-bg);
    border-bottom: 1px solid var(--aspire-border);
    padding: 1.5rem 0;
    /* Reduced padding */
    margin-bottom: 1.5rem;
    /* Reduced margin */
}

.details-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Reduced gap */
}

@media (min-width: 768px) {
    .details-hero-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.details-image-wrapper {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .details-image-wrapper {
        width: 280px;
        /* Slightly smaller */
    }
}

.details-image {
    width: 100%;
    height: auto;
    aspect-ratio: 21/9;
    /* Smaller height on mobile */
    object-fit: cover;
    border-radius: 1rem;
    /* Consistent radius */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--aspire-border);
    background-color: #f3f4f6;
}

@media (min-width: 768px) {
    .details-image {
        aspect-ratio: 4/3;
        /* Restore usage on desktop */
    }
}

.details-placeholder {
    width: 100%;
    aspect-ratio: 21/9;
    /* Smaller height on mobile */
    background-color: #f3f4f6;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: #9ca3af;
    border: 1px solid var(--aspire-border);
}

@media (min-width: 768px) {
    .details-placeholder {
        aspect-ratio: 4/3;
    }
}

.details-info-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Removed fixed min-height to avoid white space */
}

.details-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--aspire-text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #f3f4f6;
    color: #4b5563;
}

.tag-purple {
    background-color: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}

.tag-blue {
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.details-short-desc {
    color: var(--aspire-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-apply {
    background: var(--gradient-green);
    /* From style.css */
    color: white;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .btn-apply {
        width: auto;
    }
}

.btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-disabled:hover {
    transform: none;
}

/* CONTENT GRID */
.details-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .details-content-container {
        grid-template-columns: 2fr 1fr;
    }
}

.info-card {
    background: var(--aspire-card-bg);
    border: 1px solid var(--aspire-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--aspire-text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-text {
    line-height: 1.7;
    color: #4b5563;
}

.responsibility-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.responsibility-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

.responsibility-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* TIMELINE */
.process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
    }
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--aspire-bg);
    padding: 1rem;
    border-radius: 0.75rem;
}

@media (min-width: 768px) {
    .timeline-step {
        flex-direction: column;
        text-align: center;
        background: transparent;
        padding: 0;
    }
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: white;
    border: 2px solid var(--aspire-primary);
    color: var(--aspire-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* SIDEBAR */
.sidebar-dark-card {
    background: #111827;
    /* gray-900 */
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-light-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--aspire-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.req-list {
    list-style: none;
    padding: 0;
}

.req-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #d1d5db;
    /* gray-300 */
}

.req-bullet {
    color: var(--aspire-primary);
    margin-top: 0.25rem;
    font-size: 0.5rem;
}