/* Announcements specific styles */

.announcement-card {
    display: flex;
    flex-direction: column;
    padding: 0; /* let content define padding */
    overflow: hidden;
}

.announcement-card .card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}
.announcement-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.announcement-card:hover .card-image img {
    transform: scale(1.05);
}

.announcement-card .card-content {
    padding: 20px;
    flex: 1;
}

.announcement-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.pinned-indicator {
    font-size: 0.8rem;
    background: rgba(200, 169, 81, 0.2);
    color: #C8A951;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.announcement-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

/* Ensure badges are styled (if not already global) */
.badge-general {
    background: #e0e0e0;
    color: #333;
}
.badge-ramadan {
    background: #C8A951;
    color: #1A1A1A;
}
.badge-taaleem {
    background: #0F3D2E;
    color: white;
}
.badge-sale {
    background: #9B2C2C;
    color: white;
}

.page-her {
    position: relative;
    background: linear-gradient(135deg, #22523e 0%, #0b5c41 55%, #18a075 100%);
    color: #ffffff;
    text-align: center;
    margin-top: -22px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 36px 12px 16px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .page-her {
        margin-top: -30px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 14px;
        padding-right: 14px;
        padding-top: 38px;
        padding-bottom: 24px;
    }
}

@media (min-width: 1024px) {
    .page-her {
        margin-top: -48px;
        margin-left: -32px;
        margin-right: -32px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

.page-her-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.page-her-deco-1 {
    top: -70px;
    right: -50px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(247, 195, 55, 0.14) 0%, transparent 68%);
    animation: float-geo 9s ease-in-out infinite;
}

.page-her-deco-2 {
    bottom: -50px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    animation: float-geo 13s ease-in-out infinite reverse;
}

.page-her-badge {
    display: inline-block;
    background: rgba(200, 169, 81, 0.18);
    border: 1px solid rgba(200, 169, 81, 0.4);
    color: #C8A951;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.page-her-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: 'Merriweather', serif;
}

.page-her-subtitle {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

.page-her-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #C8A951, rgba(200, 169, 81, 0.25));
    border-radius: 2px;
    margin: 20px auto 0;
}