/* 
   Sanskar National School - Notices Specific Styles
   Isolated from global main.css
*/

.notices-archive {
    padding-bottom: 100px;
}

/* Filter Bar for Notices */
.filter-bar-fun {
    background: var(--white);
    padding: 30px;
    border-radius: 35px;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.filter-form-fun {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box-fun {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box-fun i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

.search-box-fun input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 20px;
    border: 2px solid var(--bg-soft);
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition-base);
}

.search-box-fun input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.date-filter-fun {
    position: relative;
    min-width: 200px;
}

.date-filter-fun input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 20px;
    border: 2px solid var(--bg-soft);
    font-family: inherit;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-base);
}

.date-filter-fun input:focus {
    border-color: var(--secondary);
    outline: none;
}

.clear-filter {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
}

.clear-filter:hover {
    color: var(--primary);
}

/* Notices List */
.notices-list-fun {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.notice-item-fun {
    display: flex;
    gap: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.notice-item-fun:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.notice-item-fun::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-gradient);
}

.notice-date-fun {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
}

.date-box-fun {
    background: var(--bg-soft);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.date-box-fun .day {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.date-box-fun .month {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.notice-info-fun {
    flex: 1;
}

.notice-info-fun h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.notice-info-fun .meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.notice-info-fun .meta i {
    color: var(--secondary);
}

.notice-info-fun .desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.read-more-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 800;
    padding: 0;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.read-more-toggle:hover {
    color: var(--secondary);
    gap: 12px;
}

.read-more-toggle i {
    font-size: 0.8rem;
    transition: var(--transition-base);
}

.read-more-toggle.active i {
    transform: rotate(0);
}

.notice-action-fun {
    display: flex;
    align-items: center;
}

/* Empty State */
.notices-empty {
    text-align: center;
    padding: 80px 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.notices-empty i {
    font-size: 4rem;
    color: var(--bg-soft);
    margin-bottom: 20px;
}

/* Pagination */
.pagination-fun {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.pagination-fun .page-item .page-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 15px;
    font-weight: 800;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}
.pagination-fun .page-item.active .page-link {
    background: var(--primary-gradient);
    color: var(--white);
}
.pagination-fun .page-item .page-link:hover:not(.active) {
    background: var(--bg-soft);
    color: var(--primary);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .notice-item-fun {
        flex-direction: column;
        gap: 20px;
    }
    .notice-date-fun {
        width: auto;
    }
    .date-box-fun {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
    }
    .date-box-fun .day {
        font-size: 1.4rem;
    }
    .filter-bar-fun {
        padding: 20px;
    }
    .search-box-fun {
        min-width: 100%;
    }
    .date-filter-fun {
        min-width: 100%;
    }
}
