/* Decom Notices Styles - Your Website Color Scheme with Scrolling */
.decom-notices-section {
    margin: 20px 0;
}

/* Scrolling Container */
.decom-scrolling-container {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    border-radius: 15px;
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.decom-scrolling-wrapper {
    height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    scroll-behavior: smooth;
    transition: scroll-top 0.5s ease;
}

/* Add hover control for auto-scroll */
.decom-scrolling-wrapper:hover {
    scroll-behavior: auto;
}

/* Custom Scrollbar - Your Website Colors */
.decom-scrolling-wrapper::-webkit-scrollbar {
    width: 8px;
}

.decom-scrolling-wrapper::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
    margin: 5px 0;
}

.decom-scrolling-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(144deg, #862C41 0%, #303556 100%);
    border-radius: 10px;
    border: 2px solid #f8f9fa;
}

.decom-scrolling-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(144deg, #303556 0%, #862C41 100%);
}

/* Notice Items - Compact Design */
.decom-notice-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #862C41;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-height: 90px;
}

.decom-notice-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: #156e2c;
}

.decom-notice-date {
    flex-shrink: 0;
    text-align: center;
    background: linear-gradient(144deg, #0b831d 0%, #303556 100%);
    color: white;
    border-radius: 10px;
    padding: 12px 10px;
    min-width: 75px;
}

.decom-day {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.decom-month {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.decom-notice-content {
    flex: 1;
    padding: 0;
}

/* Compact Header with Actions in Same Line */
.decom-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.decom-notice-header h3 {
    font-size: 1.45rem !important;
    font-weight: 600 !important;
    color: #2d3748;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.decom-notice-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.decom-notice-date-text {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* NEW Badge Styles - Compact */
.decom-new-badge {
    background: #ffca28;
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}

.decom-new-badge-table {
    background: #ffca28;
    color: #000;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Action Button Styles - Compact */
.decom-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
}

.decom-btn-action {
    background: linear-gradient(144deg, #0b831d 0%, #303556 100%);
    color: white;
}

.decom-btn-action:hover {
    background: linear-gradient(144deg, #303556 0%, #862C41 100%);
    transform: translateY(-2px);
    color: white;
}

/* View All Button */
.decom-btn-view-all {
    background: linear-gradient(144deg, #0b831d 0%, #303556 100%);
    color: white;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    justify-content: center;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.decom-btn-view-all:hover {
    background: linear-gradient(144deg, #303556 0%, #0b831d 100%);
    transform: translateY(-3px);
    color: white;
}

/* View All Footer */
.decom-notices-footer {
    margin-top: 25px;
    text-align: center;
}

.decom-no-notices {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    color: #6c757d;
    border: 2px dashed #dee2e6;
    font-size: 1.1em;
    font-weight: 500;
}

/* Marquee Styles - Simple Left to Right (FAST VERSION) */
.decom-marquee-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(144deg, #862C41 0%, #303556 100%);
    padding: 8px 0;
    position: relative;
}

.decom-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.decom-marquee-content {
    display: flex;
    width: fit-content;
    white-space: nowrap;
    padding-left: 100%;
    will-change: transform;
    animation: decomMarqueeFast linear infinite;
}

.decom-marquee-text {
    display: inline-block;
    color: white;
    font-weight: 500;
    font-size: 16px;
    padding-right: 80px;
}

.decom-marquee-link {
    color: #ffca28;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 2px 8px;
    border-radius: 4px;
}

.decom-marquee-link:hover {
    color: white;
    background-color: rgba(255, 202, 40, 0.2);
    text-decoration: underline;
}

/* Fast Marquee Animations */
@keyframes decomMarqueeFast {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes decomMarqueeFastRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* Pause animation on hover */
.decom-marquee-container:hover .decom-marquee-content {
    animation-play-state: paused;
}

.decom-no-new-notices {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    color: #6c757d;
    border: 2px dashed #dee2e6;
    font-size: 1em;
    font-weight: 500;
}

/* Simple Text Archive Styles - REPLACED TABLE FORMAT */
.decom-notice-archive-container {
    margin: 20px 0;
    max-height: 500px;
    overflow-y: auto;
    border-radius: 15px;
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 20px;
}

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

.decom-archive-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.decom-archive-item:last-child {
    border-bottom: none;
}

.decom-archive-item:hover {
    background-color: #f8f9fa;
    padding-left: 15px;
    margin-left: -15px;
    margin-right: -15px;
    padding-right: 15px;
    border-radius: 10px;
}

.decom-archive-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.decom-archive-title h3 {
   font-size: 1.45rem !important;
    font-weight: 600 !important;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.decom-archive-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.decom-archive-date {
    color: #862C41;
    font-weight: 600;
    background: rgba(134, 44, 65, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.decom-archive-categories {
    color: #303556;
    font-weight: 500;
    background: rgba(48, 53, 86, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.decom-archive-attachment {
    margin-top: 8px;
}

.decom-archive-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(144deg, #00a938 0%, #303556 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.decom-archive-link:hover {
    background: linear-gradient(144deg, #303556 0%, #862C41 100%);
    transform: translateY(-2px);
    color: white;
}

.decom-archive-link i {
    font-size: 0.85rem;
}

/* Hide old table styles */
.decom-notice-table-archive,
.decom-notice-table-archive th,
.decom-notice-table-archive td,
.decom-notice-table-archive tr,
.decom-file-link,
.decom-notice-title-table {
    display: none;
}

/* Responsive Design for Archive */
@media screen and (max-width: 768px) {
    .decom-scrolling-container {
        max-height: 350px;
    }
    
    .decom-scrolling-wrapper {
        height: 290px;
        padding: 12px;
    }
    
    .decom-notice-item {
        padding: 15px;
        min-height: 80px;
        gap: 12px;
    }
    
    .decom-notice-date {
        min-width: 65px;
        padding: 10px 8px;
    }
    
    .decom-day {
        font-size: 1.4rem;
    }
    
    .decom-month {
        font-size: 0.8rem;
    }
    
    .decom-notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .decom-notice-header h3 {
        min-width: auto;
        font-size: 1.05rem;
    }
    
    .decom-notice-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .decom-notices-footer {
        margin-top: 20px;
    }
    
    .decom-marquee-text {
        font-size: 1rem;
        padding-right: 50px;
    }
    
    .decom-notice-archive-container {
        padding: 15px;
    }
    
    .decom-archive-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .decom-archive-title h3 {
        font-size: 1.1rem;
    }
    
    .decom-archive-meta {
        gap: 10px;
    }
    
    .decom-archive-date,
    .decom-archive-categories {
        font-size: 0.85rem;
        padding: 3px 10px;
    }
}

@media screen and (max-width: 576px) {
    .decom-scrolling-container {
        max-height: 320px;
    }
    
    .decom-scrolling-wrapper {
        height: 260px;
    }
    
    .decom-notice-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .decom-notice-date {
        align-self: center;
    }
    
    .decom-notice-header {
        text-align: center;
    }
    
    .decom-notice-actions {
        justify-content: center;
    }
    
    .decom-btn-view-all {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
    
    .decom-marquee-text {
        font-size: 0.9rem;
        padding-right: 40px;
    }
    
    .decom-archive-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .decom-archive-link {
        width: 100%;
        justify-content: center;
    }
}

/* Admin Styles */
.post-type-decom_notice .decom-file-upload-wrapper {
    margin-bottom: 20px;
}

.post-type-decom_notice .decom-file-upload-wrapper h4 {
    margin-bottom: 5px;
}

.post-type-decom_notice .decom-url-field-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.post-type-decom_notice .decom-url-field-wrapper h4 {
    margin-bottom: 5px;
}

.post-type-decom_notice .decom-url-field-wrapper .description {
    font-style: italic;
    color: #666;
    margin-top: 5px;
    font-size: 13px;
}

.post-type-decom_notice .decom-file-preview {
    margin-top: 10px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #03646d;
}

.post-type-decom_notice .decom-file-preview a {
    text-decoration: none;
    color: #2271b1;
    font-weight: 500;
}

.post-type-decom_notice .decom-file-preview a:hover {
    text-decoration: underline;
}

.post-type-decom_notice .decom-new-notice-wrapper {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #ffca28;
}

.post-type-decom_notice .decom-new-notice-wrapper label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.post-type-decom_notice .decom-new-notice-wrapper .description {
    font-style: italic;
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}