/* Home Index Page Styles */

/* Unified Content Card Styles for Jobs and Training */
.content-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e9ecef;
    position: relative;
    min-height: 100%;
}

/* Ensure rows use flexbox for equal heights */
.row {
    display: flex;
    flex-wrap: wrap;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}

/* Card Header Section */
.card-header-section {
    padding: 1.5rem;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.card-image-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.content-card:hover .card-image-box img {
    transform: scale(1.1);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-icon-box.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #004085 100%);
}

.card-icon-box.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #155724 100%);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003b4f;
    margin: 0;
    line-height: 1.4;
}

.card-title a {
    color: #003b4f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #0d6efd;
    text-decoration: none;
}

/* Save Button */
.save-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.save-btn:hover {
    transform: scale(1.1);
}

/* Card Body Section */
.card-body-section {
    padding: 0 1.5rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.card-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #495057;
}

.card-info-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.card-info-item.salary-info {
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.card-info-item.salary-info span {
    color: #28a745;
    font-weight: 600;
}

/* Card Footer Section */
.card-footer-section {
    padding: 1rem 1.5rem 1.5rem;
    margin-top: auto;
}

.card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0d6efd 0%, #004085 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.card-action-btn:hover {
    background: linear-gradient(135deg, #28a745 0%, #155724 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    text-decoration: none;
}

.card-action-btn i {
    transition: transform 0.3s ease;
}

.card-action-btn:hover i {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .content-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 991px) {
    .card-header-section,
    .card-body-section,
    .card-footer-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .card-image-box {
        height: 180px;
    }

    .card-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .content-card {
        margin-bottom: 1.5rem;
    }

    .card-header-section,
    .card-body-section,
    .card-footer-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-image-box {
        height: 160px;
        margin-bottom: 0.75rem;
    }

    .card-icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-info-item {
        font-size: 0.85rem;
    }

    .card-action-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .content-card {
        border-radius: 12px;
    }

    .card-image-box {
        height: 140px;
    }
}

/* Youth Club Programs Section */
.youth-club-section {
    background-color: #f8f9fa;
}

.youth-club-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.youth-club-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 2px solid #0d6efd;
}

.youth-club-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.youth-club-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youth-club-card:hover .youth-club-img img {
    transform: scale(1.1);
}

.youth-club-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.badge-primary {
    background-color: #0d6efd;
}

.badge-success {
    background-color: #28a745;
}

.youth-club-content {
    padding: 20px;
}

.youth-club-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003b4f;
    margin-bottom: 15px;
}

.youth-club-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
}

.detail-item i {
    font-size: 1rem;
    width: 20px;
}

.contact-preview {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
}

.contact-preview small {
    color: #555;
    line-height: 1.6;
}

.contact-preview small i {
    width: 16px;
}

/* Modal Styles */
.modal-header.bg-primary,
.modal-header.bg-success {
    border: none;
}

.event-details-modal .detail-box {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

.event-description {
    line-height: 1.8;
    color: #444;
}

.contact-info {
    border-left: 4px solid #28a745;
}

.contact-info a {
    color: #0d6efd;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.modal-content {
    border: none;
    border-radius: 12px;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* Dashboard Widgets Styles */
.dashboard-widgets {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.dashboard-widget {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.widget-header {
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 16px;
}

.widget-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.widget-title h5 {
    margin: 0;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.widget-title p {
    margin: 4px 0 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.widget-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.widget-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.widget-link {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: transparent;
}

.widget-link:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
    transform: translateX(4px);
}

/* Widget Color Variations */
.widget-icon.bg-primary { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.widget-icon.bg-success { background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); }
.widget-icon.bg-info { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); }
.widget-icon.bg-warning { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }
.widget-icon.bg-secondary { background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%); }
.widget-icon.bg-dark { background: linear-gradient(135deg, #343a40 0%, #23272b 100%); }

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-widget {
        margin-bottom: 20px;
    }
    
    .widget-header {
        padding: 20px;
    }
    
    .widget-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .widget-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-item .stat-number {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-widget {
    animation: slideInUp 0.6s ease-out;
}

.dashboard-widget:nth-child(1) { animation-delay: 0.1s; }
.dashboard-widget:nth-child(2) { animation-delay: 0.2s; }
.dashboard-widget:nth-child(3) { animation-delay: 0.3s; }
.dashboard-widget:nth-child(4) { animation-delay: 0.4s; }
.dashboard-widget:nth-child(5) { animation-delay: 0.5s; }
.dashboard-widget:nth-child(6) { animation-delay: 0.6s; }

/* Advanced Search Modal Styles */
.advanced-search-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.advanced-search-modal .modal-header {
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
}

.advanced-search-modal .modal-body {
    padding: 2rem;
}

.advanced-search-modal-form .form-label {
    color: #003b4f;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.advanced-search-modal-form .form-control,
.advanced-search-modal-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advanced-search-modal-form .form-control:focus,
.advanced-search-modal-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.quick-link-item {
    cursor: pointer;
}

/* Job Alerts Modal Styles */
.job-alerts-modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.job-alerts-modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #28a745 100%);
    color: white;
    border: none;
    padding: 2rem;
    position: relative;
}

.job-alerts-modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.job-alerts-modal-header .btn-close:hover {
    opacity: 1;
}

.modal-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.modal-icon-wrapper i {
    font-size: 1.5rem;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.job-alerts-modal-header .modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.job-alerts-modal-body {
    padding: 2rem;
}

.job-alerts-description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.job-alerts-form .form-label {
    color: #003b4f;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.job-alerts-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.job-alerts-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

.job-alerts-submit-btn {
    background: linear-gradient(135deg, #0d6efd 0%, #28a745 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.job-alerts-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.job-alerts-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.job-alerts-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

.job-alerts-submit-btn:active {
    transform: translateY(0);
}

.job-alerts-benefits {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #28a745;
}

.benefits-title {
    font-weight: 600;
    color: #003b4f;
    margin-bottom: 0.75rem;
}

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

.benefits-list li {
    padding: 0.5rem 0;
    color: #6c757d;
}

#jobAlertsMessage {
    border-radius: 10px;
    margin-bottom: 1rem;
}

#jobAlertsMessage.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

#jobAlertsMessage.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

@media (max-width: 576px) {
    .job-alerts-modal-body {
        padding: 1.5rem;
    }

    .job-alerts-modal-header {
        padding: 1.5rem;
    }

    .modal-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .modal-icon-wrapper i {
        font-size: 1.25rem;
    }
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stat-card {
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    color: #0d6efd;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003b4f;
    margin: 0;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 0;
}

/* Popular Categories Section */
.category-card {
    transition: all 0.3s ease;
    background: white;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd !important;
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Popular Job Types Section */
.job-type-link {
    display: block;
    height: 100%;
}

.job-type-card {
    transition: all 0.3s ease;
    height: 100%;
}

.job-type-card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd !important;
}

/* Popular Locations Section */
.location-link {
    display: block;
    height: 100%;
}

.location-card {
    transition: all 0.3s ease;
    height: 100%;
}

.location-card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd !important;
}

/* How It Works Section */
.how-it-works-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.how-it-works-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.step-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.how-it-works-card h4 {
    color: #003b4f;
    font-weight: 700;
    margin-bottom: 1rem;
}

.how-it-works-card p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .how-it-works-card {
        margin-bottom: 1.5rem;
    }
    
    .step-number .badge {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}



