﻿@font-face {
    font-family: "HindSiliguriWeb";
    src: url("/fonts/Hind_Siliguri_Regular.woff2") format("woff2"), url("/fonts/Hind_Siliguri_Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.bangla-text, .bangla-text * {
    font-family: "HindSiliguriWeb" !important;
}

:root {
    --primary-color: #16a34a;
    --primary-light: #e9fbef;
    --accent-color: #15803d;
    --border-radius: 10px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
}


body {
    background-color: #f8fafc;
    color: #2d3748;
}

.success-header {
    width: 100%;
    background: linear-gradient(180deg, rgba(97, 255, 115, 0.48) 0%, #ffffff 75%);
    padding: 60px 0 60px;
    position: relative;
    overflow: hidden;
}

.success-header::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 18px;
    width: 290px;
    height: 290px;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    opacity: 0.55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 64 64'%3E%3Cdefs%3E%3CradialGradient id='g' cx='30%25' cy='30%25' r='70%25'%3E%3Cstop offset='0%25' stop-color='%2316a34a' stop-opacity='0.25'/%3E%3Cstop offset='100%25' stop-color='%2316a34a' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='64' height='64' fill='url(%23g)'/%3E%3Cpath d='M18 45l6 15 22-28-14-7z' fill='%2316a34a' fill-opacity='0.18'/%3E%3Cpath d='M18 45l14-20 14 7-22 28z' fill='%2316a34a' fill-opacity='0.10'/%3E%3Cpath d='M27 24l9-12 6 5-9 12z' fill='%2316a34a' fill-opacity='0.18'/%3E%3Ccircle cx='45' cy='14' r='2' fill='%2316a34a' fill-opacity='0.25'/%3E%3Ccircle cx='50' cy='20' r='1.8' fill='%2316a34a' fill-opacity='0.20'/%3E%3Ccircle cx='40' cy='18' r='1.5' fill='%2316a34a' fill-opacity='0.18'/%3E%3Cpath d='M46 8l2 4 4 1-4 2-1 4-2-4-4-1 4-2z' fill='%2316a34a' fill-opacity='0.20'/%3E%3Cpath d='M12 18l2 3 3 1-3 2-1 3-2-3-3-1 3-2z' fill='%2316a34a' fill-opacity='0.15'/%3E%3Cpath d='M10 34c6-5 10-10 12-18' stroke='%2316a34a' stroke-opacity='0.16' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M52 34c-7-6-12-11-14-18' stroke='%2316a34a' stroke-opacity='0.14' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.success-header-title {
    font-weight: 800;
    font-size: 2.25rem;
    margin: 0 0 10px;
    color: #14532d;
}

.success-header-subtitle {
    margin: 0;
    color: #166534;
    font-weight: 500;
    opacity: 0.95;
}

/*  Search inside header (below subtitle) with round shape */
.header-search-wrap {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.header-search-pill {
    width: min(760px, 100%);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: var(--box-shadow);
    border: 1px solid #e2e8f0;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search-input {
    flex: 1;
    position: relative;
}

.header-search-input i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    z-index: 2;
}

.header-search-input input {
    height: 48px;
    border-radius: 999px;
    border: 0;
    outline: none;
    width: 100%;
    padding-left: 50px;
    padding-right: 12px;
    font-size: 1rem;
    background: transparent;
}

.header-search-pill:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14), var(--box-shadow);
}

.header-search-btn {
    height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-search-btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(22, 163, 74, 0.16);
    color: #fff;
}

/* ---- Cards ---- */
.announcement-card {
    background-color: #f0fff4;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: 2px solid #10b981;
    overflow: hidden;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-light);
}

.announcement-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #f1f5f9;
}

.announcement-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.announcement-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.announcement-date {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.announcement-date i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.announcement-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pinned {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-new {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.announcement-body {
    padding: 20px 25px;
}

.announcement-content {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.announcement-content-short {
    max-height: 8em;
    overflow: hidden;
    position: relative;
}

.announcement-content-short::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2em;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #effff7)
}

.announcement-footer {
    padding: 0 25px 25px;
    border-top: none;
}

.read-more-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.read-more-btn:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.read-more-btn i {
    margin-right: 8px;
}

/* Pagination Container */
#announcementsTable_paginate .pagination {
    justify-content: center;
    margin-top: 20px;
}

#announcementsTable_paginate .pagination .page-item .page-link {
    color: #065f46;
    background-color: #ffffff;
    border: 1px solid #d1fadf;
    border-radius: 8px;
    margin: 0 4px;
    padding: 6px 14px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

#announcementsTable_paginate .pagination .page-item .page-link:hover {
    background-color: #ecffef;
    border-color: #16a34a;
    color: #065f46;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
}

#announcementsTable_paginate .pagination .page-item.active .page-link {
    background-color: #16a34a;
    border-color: #16a34a;
    color: white !important;
    font-weight: 700;
    box-shadow: 0px 4px 12px rgba(22, 163, 74, 0.3);
}

#announcementsTable_paginate .pagination .page-item.disabled .page-link {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
}

#announcementsTable_paginate {
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .success-header {
        padding: 45px 0 50px;
    }

    .success-header::before, .success-header::after {
        left: 10px;
        width: 200px;
        height: 200px;
        opacity: 0.35;
    }

    .header-search-pill {
        flex-direction: column;
        border-radius: 18px;
        padding: 12px;
    }

    .header-search-input {
        width: 100%;
    }

    .header-search-input i {
        left: 16px;
        font-size: 1rem;
    }

    .header-search-input input {
        width: 100%;
        height: 50px;
        padding-left: 44px;
        padding-right: 16px;
        font-size: 0.95rem;
        text-align: left; 
    }

    .header-search-btn {
        width: 100%;
        justify-content: center;
    }

    .announcement-header, .announcement-body, .announcement-footer {
        padding: 15px;
    }

    .announcement-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}