/* What's New Page Styles */

.whatsnew-banner {
    width: 100vw;
    position: relative;
    left: calc(-50vw + 50%);
    margin: 0;
    margin-bottom: 30px;
    text-align: center;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.whatsnew-banner img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* Ensure parent containers don't clip the banner */
#region-main-box,
#region-main,
.container-fluid,
.container {
    overflow: visible !important;
}

.whatsnew-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.whatsnew-title {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
}

.whatsnew-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10%;
    height: 6px;
    background-color: #ff6b35;
    border-radius:5px;
}

.whatsnew-title {
    color: #1f1e1e;
    font-size: 2.3rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.whatsnew-topic {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 15px;
    padding-bottom: 15px;
    color: #000000;
    font-weight: 600;
    position: relative;
}

.whatsnew-topic:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: #CECECE;
    border-radius: 2px;
}

.whatsnew-links {
    margin-top: 15px;
    font-family: "Noto Sans HK";
}

.whatsnew-link-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.whatsnew-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 15px;
}

.whatsnew-link:hover {
    color: #007bff;
    text-decoration: none;
}

.link-bullet {
    color: #000000;
    font-size: 1.2rem;
    margin-right: 12px;
    font-weight: bold;
}

.link-text {
    flex: 1;
    line-height: 1.4;
    font-size: 1.1rem;
}

.whatsnew-no-links {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: "Noto Sans HK";
}

.whatsnew-admin-links {
    text-align: center;
    padding-top: 20px;
    margin-bottom: 10px;
    border-top: 1px solid #dee2e6;
}

/* Management page styles */
.current-banner {
    border: 2px dashed #dee2e6;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    background: #f8f9fa;
}

.current-banner img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Drag and drop sorting styles */
.sortable-table {
    user-select: none;
}

.sortable-row {
    transition: background-color 0.2s ease;
}

.sortable-row.dragging {
    opacity: 0.5;
    background-color: #e7f3ff;
}

.sort-handle-cell {
    padding: 12px 8px !important;
    vertical-align: middle;
}

.sort-handle {
    cursor: grab;
    transition: color 0.2s ease;
}

.sort-handle:hover {
    color: #007bff !important;
}

.sort-handle:active {
    cursor: grabbing;
}

/* Responsive design */
@media (max-width: 768px) {
    .whatsnew-content {
        padding: 15px;
    }
    
    .whatsnew-title h1 {
        font-size: 2rem;
    }
    
    .whatsnew-topic h2 {
        font-size: 1.3rem;
    }
    
    .whatsnew-banner img {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .whatsnew-title h1 {
        font-size: 1.8rem;
    }
    
    .whatsnew-topic h2 {
        font-size: 1.2rem;
    }
    
    .whatsnew-link-item {
        padding: 10px 12px;
    }
    
    .link-bullet {
        margin-right: 8px;
    }
}
