/* 404 Page Specific Styles */
.error-container {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--navy);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    color: var(--red);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.error-message {
    font-size: 1.8rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.error-description {
    color: var(--light-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestion {
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.search-box {
    /* margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto; */
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.action-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-weight: bold;
}

.action-button:hover {
    background-color: #c0392b;
}

.action-button.secondary {
    background-color: var(--light-navy);
}

.action-button.secondary:hover {
    background-color: var(--navy);
}

.suggested-content {
    margin-top: 3rem;
}

.suggested-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--white);
}

.suggested-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--red);
    margin: 0.5rem auto 0;
}

/* Debug info styles */
.debug-info {
    background: #222;
    padding: 15px;
    border-radius: 5px;
    color: #ddd;
    margin-top: 20px;
    font-family: monospace;
    display: none;
}

/* Improved Video Card Styles */
.video-clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.video-clickable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-clickable:hover::after {
    opacity: 1;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.modal-video-container {
    position: relative;
    width: 100%;
    padding-top: 15%; /* 16:9 Aspect Ratio */
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background: rgba(255,0,0,0.8);
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .error-code {
        font-size: 5rem;
    }
    
    .error-message {
        font-size: 1.4rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

        /* Enhanced Categories & Tags Section Styling */
.categories-tags-section {
    background-color: var(--light-navy);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.section-column {
    position: relative;
    background-color: var(--navy);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.section-column h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.section-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--red);
}

.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--red) var(--navy);
}

.tag-list::-webkit-scrollbar {
    width: 6px;
}

.tag-list::-webkit-scrollbar-track {
    background: var(--navy);
}

.tag-list::-webkit-scrollbar-thumb {
    background-color: var(--red);
    border-radius: 3px;
}

.tag-list li {
    margin-bottom: 8px;
    position: relative;
}

.tag-list li a {
    color: var(--light-gray);
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.tag-list li a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 15px;
}

.tag-list li a::before {
    content: '•';
    color: var(--red);
    margin-right: 8px;
}

/* Column icons */
.category-column-icon, .tag-column-icon, .popular-column-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--red);
    border-radius: 50%;
    color: white;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .section-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-columns {
        grid-template-columns: 1fr;
    }
    
    .section-column {
        margin-bottom: 20px;
    }
}