/* 404 Page Modern Styling - Dial4College */

.error-404-container {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    min-height: 80vh;
}

.error-404-hero {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
    position: relative;
}

.error-code-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.error-code-bg {
    font-size: clamp(6rem, 15vw, 11rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #e65c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    animation: pulse404 3s ease-in-out infinite alternate;
}

@keyframes pulse404 {
    0% { transform: scale(1); filter: drop-shadow(0 4px 15px rgba(30, 60, 114, 0.15)); }
    100% { transform: scale(1.02); filter: drop-shadow(0 8px 25px rgba(230, 92, 0, 0.25)); }
}

.error-icon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 2px solid #eef2f6;
    color: #e65c00;
    font-size: 32px;
}

.error-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.error-message {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* 404 Search Form */
.error-search-form {
    max-width: 540px;
    margin: 0 auto 35px;
    position: relative;
}

.error-search-form .input-group {
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.08);
    border-radius: 50px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.error-search-form .input-group:focus-within {
    border-color: #2a5298;
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.18);
}

.error-search-form input {
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    outline: none;
    box-shadow: none !important;
}

.error-search-form button {
    border: none;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 0 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.error-search-form button:hover {
    background: linear-gradient(135deg, #e65c00 0%, #F2994A 100%);
}

/* Action Buttons */
.error-action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 50px;
}

.error-btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
    transition: all 0.3s ease;
}

.error-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 60, 114, 0.3);
    color: #ffffff;
}

.error-btn-secondary {
    background: #ffffff;
    color: #1e3c72 !important;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.error-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #2a5298;
    color: #2a5298 !important;
    transform: translateY(-2px);
}

/* 404 Quick Category Cards */
.quick-nav-section {
    margin-bottom: 50px;
}

.quick-nav-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
}

.quick-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #334155;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(30, 60, 114, 0.1);
    border-color: #2a5298;
    color: #1e3c72;
}

.quick-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #1e3c72;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.quick-card:hover .quick-card-icon {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
}

.quick-card-label {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Latest News Cards Section on 404 */
.recommended-news-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.section-heading-404 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.section-heading-404 h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.section-heading-404 a {
    color: #2a5298;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.section-heading-404 a:hover {
    color: #e65c00;
    text-decoration: underline;
}

.news-card-404 {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-404:hover {
    background: #ffffff;
    border-color: #2a5298;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.news-card-404-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 10px;
    text-decoration: none;
}

.news-card-404-title:hover {
    color: #2a5298;
}

.news-card-404-date {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
