/* ==========================================================================
   Ain Prokash - Bar Council Ultra-Premium Interactive Notice Board
   ========================================================================== */

.ap-nb-wrapper {
    max-width: 1140px;
    margin: 0 auto 40px auto;
    font-family: 'Hind Siliguri', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    box-sizing: border-box;
}

.ap-nb-wrapper * {
    box-sizing: border-box;
}

/* 1. Top Hero Header */
.ap-nb-hero {
    background: linear-gradient(135deg, #091e42 0%, #1e3a8a 50%, #1d4ed8 100%);
    border-radius: 16px;
    padding: 35px 30px;
    color: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.25);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.ap-nb-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ap-nb-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.ap-nb-gov-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ap-nb-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: ap-nb-pulse 1.8s infinite;
}

@keyframes ap-nb-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ap-nb-hero h1 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.ap-nb-hero p {
    font-size: 15.5px;
    color: #e2e8f0;
    margin: 0 0 25px 0;
    max-width: 820px;
    line-height: 1.65;
}

.ap-nb-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ap-nb-stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
}

.ap-nb-stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #facc15;
    display: block;
    line-height: 1.2;
}

.ap-nb-stat-label {
    font-size: 12.5px;
    color: #cbd5e1;
    margin-top: 4px;
    display: block;
}

/* 2. Breaking Announcement Banner */
.ap-nb-breaking-bar {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 5px solid #e11d48;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.05);
}

.ap-nb-breaking-tag {
    background: #e11d48;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ap-nb-breaking-text {
    font-size: 14.5px;
    color: #9f1239;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.ap-nb-breaking-text a {
    color: #be123c;
    text-decoration: underline;
    font-weight: 700;
}

/* 3. Search & Filter Control Bar */
.ap-nb-controls {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ap-nb-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ap-nb-search-wrap {
    flex: 1 1 300px;
    position: relative;
}

.ap-nb-search-input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.ap-nb-search-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ap-nb-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-size: 16px;
}

.ap-nb-year-select {
    padding: 11px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14.5px;
    font-family: inherit;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    min-width: 140px;
}

.ap-nb-year-select:focus {
    outline: none;
    border-color: #2563eb;
}

/* Category Filter Tabs */
.ap-nb-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ap-nb-tab {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ap-nb-tab:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ap-nb-tab.active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
}

.ap-nb-tab-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 700;
}

.ap-nb-tab.active .ap-nb-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* 4. Notice Cards List */
.ap-nb-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
}

.ap-nb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    border-left: 5px solid #2563eb;
}

.ap-nb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -3px rgba(37, 99, 235, 0.08);
    border-color: #93c5fd;
    border-left-color: #1d4ed8;
}

.ap-nb-card.cat-written { border-left-color: #059669; }
.ap-nb-card.cat-mcq { border-left-color: #2563eb; }
.ap-nb-card.cat-reg { border-left-color: #7c3aed; }
.ap-nb-card.cat-result { border-left-color: #d97706; }
.ap-nb-card.cat-hc { border-left-color: #0284c7; }

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

.ap-nb-badges-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ap-nb-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.ap-nb-tag.urgent { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.ap-nb-tag.new { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.ap-nb-tag.success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.ap-nb-tag.warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

.ap-nb-cat-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
}

.ap-nb-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.ap-nb-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a !important;
    margin: 0 0 10px 0;
    line-height: 1.45;
}

.ap-nb-card-desc {
    font-size: 14.5px;
    color: #475569;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

/* Key Info Strip */
.ap-nb-keyinfo {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
}

.ap-nb-keyitem {
    color: #334155;
}

.ap-nb-keyitem strong {
    color: #0f172a;
}

/* Card Actions */
.ap-nb-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ap-nb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.ap-nb-btn-primary {
    background: #1e3a8a;
    color: #ffffff !important;
}

.ap-nb-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.ap-nb-btn-pdf {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d !important;
}

.ap-nb-btn-pdf:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.ap-nb-btn-outline {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
}

.ap-nb-btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* 5. Resource Hub Box */
.ap-nb-resources {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.ap-nb-resources h3 {
    margin: 0 0 16px 0;
    font-size: 19px;
    color: #0f172a !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ap-nb-res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.ap-nb-res-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.ap-nb-res-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.ap-nb-res-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ap-nb-res-text h4 {
    margin: 0 0 3px 0;
    font-size: 14.5px;
    color: #1e3a8a !important;
    font-weight: 700;
}

.ap-nb-res-text p {
    margin: 0;
    font-size: 12.5px;
    color: #64748b;
}

/* 6. Modal Popup */
.ap-nb-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.ap-nb-modal-backdrop.open {
    display: flex;
}

.ap-nb-modal-box {
    background: #ffffff;
    border-radius: 14px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    padding: 30px;
    position: relative;
    animation: ap-nb-slidein 0.25s ease;
}

@keyframes ap-nb-slidein {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ap-nb-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.ap-nb-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ap-nb-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 15px 0;
    padding-right: 35px;
    line-height: 1.4;
}

.ap-nb-modal-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
}

.ap-nb-modal-body {
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 25px;
}

.ap-nb-modal-body ul, .ap-nb-modal-body ol {
    margin: 12px 0;
    padding-left: 20px;
}

.ap-nb-modal-body li {
    margin-bottom: 8px;
}

.ap-nb-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

/* Empty State */
.ap-nb-empty {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.ap-nb-empty h4 {
    margin: 0 0 8px 0;
    color: #0f172a;
    font-size: 18px;
}

@media (max-width: 640px) {
    .ap-nb-hero { padding: 25px 20px; }
    .ap-nb-hero h1 { font-size: 22px; }
    .ap-nb-card { padding: 16px; }
    .ap-nb-card-title { font-size: 16.5px; }
    .ap-nb-modal-box { padding: 20px; }
}

/* 7. Editorial & Exam Guidelines Section */
.ap-nb-editorial-section {
    margin-top: 45px;
    font-family: inherit;
    line-height: 1.8;
    color: #1e293b;
}

.ap-nb-info-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #1e3a8a;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ap-nb-info-banner h2 {
    margin: 0 0 10px 0;
    color: #0f172a;
    font-size: 21px;
    font-weight: 700;
}

.ap-nb-info-banner p {
    margin: 0;
    font-size: 15px;
    color: #475569;
}

.ap-nb-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}

.ap-nb-guide-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ap-nb-guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.ap-nb-guide-card h3 {
    color: #1e3a8a;
    font-size: 17.5px;
    margin-top: 0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.ap-nb-guide-card ul {
    padding-left: 20px;
    margin: 0;
    font-size: 14.5px;
    color: #334155;
}

.ap-nb-guide-card li {
    margin-bottom: 8px;
}

.ap-nb-steps-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 26px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ap-nb-steps-box h3 {
    color: #0f172a;
    font-size: 19px;
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 700;
}

.ap-nb-steps-box ol {
    padding-left: 22px;
    margin: 0;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.8;
}

.ap-nb-steps-box li {
    margin-bottom: 12px;
}

.ap-nb-steps-box a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: underline;
}

.ap-nb-faq-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 26px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ap-nb-faq-box h3 {
    color: #0f172a;
    font-size: 19px;
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 700;
}

.ap-nb-faq-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.ap-nb-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ap-nb-faq-item h4 {
    color: #1e3a8a;
    font-size: 16px;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.ap-nb-faq-item p {
    margin: 0;
    font-size: 14.5px;
    color: #475569;
}

