/* Breadcrumb Customization */
.breadcrumb {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    padding: 0 5px;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #c0392b;
    /* A bit more urgent color for hover */
    font-weight: 500;
}

/* Page Title */
.announcement-page-title {
    color: #2c3e50;
}

.announcement-page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e74c3c;
    /* Urgent Red */
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Announcement Card Design */
.announcement-card-wrapper {
    perspective: 1000px;
}

.announcement-card {
    background: white;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 6px solid #95a5a6;
    /* Default Gray */
    position: relative;
}

.announcement-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Type Specific Styles */
.announcement-card.urgent {
    border-left-color: #e74c3c;
    /* Red */
    background: linear-gradient(to right, rgba(231, 76, 60, 0.03), #fff 20%);
}

.announcement-card.info {
    border-left-color: #3498db;
    /* Blue */
}

.announcement-card.event {
    border-left-color: #9b59b6;
    /* Purple */
}

.announcement-card.regular {
    border-left-color: #2ecc71;
    /* Green */
}

/* Type Text Section (New, replaces icon section) */
.announcement-card-type-section {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    padding: 10px;
    flex-shrink: 0;
}

.type-text {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transform: rotate(-90deg);
    white-space: nowrap;
    text-transform: uppercase;
}

/* Text Colors based on type */
.announcement-card.urgent .type-text {
    color: #e74c3c;
}

.announcement-card.info .type-text {
    color: #3498db;
}

.announcement-card.event .type-text {
    color: #9b59b6;
}

.announcement-card.regular .type-text {
    color: #2ecc71;
}

/* Content Section */
.announcement-card-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-header-row h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
}

.date-badge {
    background: #f1f2f6;
    color: #7f8c8d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.announcement-card-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-row {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.read-more-btn {
    font-size: 0.9rem;
    font-weight: 700;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.read-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.announcement-card:hover .read-more-btn {
    color: #e74c3c;
    gap: 12px;
}

/* Pagination - Distinct style */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 4px;
    /* More square for formal look */
    border: 1px solid #dfe6e9;
    background: white;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover:not(.active) {
    background: #f8f9fa;
    border-color: #2c3e50;
    color: #2c3e50;
}

.page-btn.active {
    background: #2c3e50;
    /* Dark official color */
    color: white;
    border-color: #2c3e50;
}

.page-btn i {
    font-size: 0.8rem;
}

/* Search and Filter Box Styles */
.search-filter-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 45px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.filter-box select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-box select:focus {
    border-color: #3498db;
    outline: none;
}

.fr-page {
    padding: 24px 0 60px;
}

.fr-container {
    max-width: 1200px;
}

.fr-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.fr-sidebar-link.is-active {
    font-weight: 600;
}

.fr-content {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    min-width: 0;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.fr-content .all-announcements-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.fr-content .all-announcements-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 991.98px) {
    .fr-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fr-content {
        padding: 16px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .announcement-card {
        flex-direction: column;
        border-left: none;
        border-top: 6px solid #95a5a6;
    }

    .announcement-card.urgent {
        border-top-color: #e74c3c;
    }

    .announcement-card.info {
        border-top-color: #3498db;
    }

    .announcement-card.event {
        border-top-color: #9b59b6;
    }

    .announcement-card.regular {
        border-top-color: #2ecc71;
    }

    .announcement-card-type-section {
        width: 100%;
        height: 40px;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        justify-content: flex-start;
        padding-left: 15px;
    }

    .type-text {
        transform: none;
        font-size: 0.8rem;
    }

    .card-header-row {
        flex-direction: column;
        gap: 10px;
    }

    .date-badge {
        margin-left: 0;
        align-self: flex-start;
    }
}