/* Scholarship Blog Post Styling */

/* Root Variables */
:root {
    --primary: #c3151c;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
}

/* Scholarship Card Component */
.scholarship-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scholarship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, #ff6b6b 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.scholarship-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px -6px rgba(195, 21, 28, 0.15);
    transform: translateY(-4px);
}

.scholarship-card:hover::before {
    transform: scaleY(1);
}

/* Header Section */
.scholarship-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.scholarship-provider {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(195, 21, 28, 0.08);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scholarship-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0.75rem 0 1rem;
    line-height: 1.3;
}

.scholarship-description {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Key Details Grid */
.scholarship-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 700;
}

.detail-value.amount {
    color: #059669;
    font-size: 1.125rem;
}

.detail-value.deadline {
    color: var(--primary);
}

/* Requirements Section */
.scholarship-requirements {
    margin-bottom: 1.5rem;
}

.requirements-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: #475569;
    line-height: 1.6;
}

.requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 700;
}

/* Benefits Section */
.scholarship-benefits {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.benefits-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.benefit-tag {
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid #86efac;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #065f46;
    font-weight: 600;
}

/* Application Button */
.apply-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.apply-button:hover {
    background: #a01217;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(195, 21, 28, 0.3);
}

.apply-button i {
    transition: transform 0.3s ease;
}

.apply-button:hover i {
    transform: translateX(4px);
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.urgent {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.open {
    background: #dcfce7;
    color: #166534;
}

.status-badge.closing-soon {
    background: #fef3c7;
    color: #92400e;
}

/* Page Header Improvement */
.scholarship-page-intro {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 2px solid #e2e8f0;
}

.scholarship-page-intro h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.scholarship-page-intro p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 800px;
}

.scholarship-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.3;
}

/* Quick Filter Tags */
.filter-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.625rem 1.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover,
.filter-tag.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(195, 21, 28, 0.05);
}

/* Alert Box */
.scholarship-alert {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.scholarship-alert strong {
    color: #92400e;
    display: block;
    margin-bottom: 0.5rem;
}

.scholarship-alert p {
    color: #78350f;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .scholarship-card {
        padding: 1.5rem;
    }

    .scholarship-title {
        font-size: 1.5rem;
    }

    .scholarship-details {
        grid-template-columns: 1fr;
    }

    .status-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
}