::selection {
    background: #00aeef;
    color: white;
}

/* Base Ticker styling */
.header-ticker {
    overflow: hidden;
    background: #00aeef !important;
    height: 52px !important;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.15);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    font-family: 'Anek Bangla', 'Inter', sans-serif !important;
}

.header-ticker .ticker-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    padding-left: 0.75rem;
    padding-right: 0.5rem;
}

.header-ticker .ticker-badge {
    background: #ffffff !important;
    color: #00aeef !important;
    font-weight: 800;
    font-size: 11px !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 10;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-right: 0.75rem;
    user-select: none;
    line-height: 1 !important;
    align-self: center !important;
}

.header-ticker .ticker-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #00aeef;
    border-radius: 50%;
    animation: tickerPulse 1.5s infinite;
}

@keyframes tickerPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.header-ticker .ticker-scroll-area {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-ticker .ticker-track {
    position: absolute;
    white-space: nowrap !important;
    will-change: transform;
    animation: siteTicker 24s linear infinite !important;
    font-family: inherit;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.01em;
}

@media (min-width: 768px) {
    .header-ticker .ticker-container {
        padding-left: 1.5rem;
    }

    .header-ticker .ticker-badge {
        font-size: 13px !important;
        padding: 5px 14px !important;
    }
}

@keyframes siteTicker {
    0% {
        transform: translate3d(100vw, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Anek Bangla', sans-serif !important;
}

.notice-card {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 100% 0%, rgba(224, 247, 255, 0.72), transparent 34%),
        #ffffff;
    border: 1px solid #dce7ee;
    border-radius: 1.5rem;
    box-shadow: 0 14px 35px -24px rgba(15, 23, 42, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    overflow: hidden;
    position: relative;
    height: 320px;
}

.notice-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #00aeef, #38bdf8 55%, #bae6fd);
    opacity: 1;
    z-index: 2;
}

.notice-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    top: -92px;
    right: -62px;
    border-radius: 50%;
    background: rgba(0, 174, 239, 0.12);
    pointer-events: none;
    transition: transform 0.45s ease, background 0.45s ease;
}

.notice-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 174, 239, 0.4);
    box-shadow: 0 24px 45px -22px rgba(0, 174, 239, 0.38);
    background:
        radial-gradient(circle at 100% 0%, rgba(224, 247, 255, 0.95), transparent 38%),
        #ffffff;
}

.notice-card:hover::after {
    transform: scale(1.35);
    background: rgba(0, 174, 239, 0.16);
}

.notice-card-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;
    height: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.notice-card-main {
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.notice-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: 'Anek Bangla', sans-serif;
    margin-bottom: 0.8rem;
}

.notice-category {
    color: #0079a8;
    background: #f0faff;
    border: 1px solid #c9effb;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    font-family: Inter, 'Anek Bangla', sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notice-date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #64748b;
    white-space: nowrap;
}

.notice-date svg {
    width: 0.85rem;
    height: 0.85rem;
    color: #00aeef;
}

.notice-card-title {
    color: #0b1930;
    font-size: clamp(1.22rem, 1.55vw, 1.55rem);
    font-weight: 800;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
}

.notice-card-excerpt {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.notice-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.notice-detail-link,
.notice-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    padding: 0.65rem 1.15rem;
    border-radius: 0.9rem;
    font-family: 'Anek Bangla', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    transition: all 0.25s ease;
}

.notice-detail-link {
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 10px 18px -12px rgba(15, 23, 42, 0.9);
}

.notice-detail-link:hover {
    background: linear-gradient(135deg, #009bd4, #00aeef);
    box-shadow: 0 12px 22px -12px rgba(0, 174, 239, 0.9);
    transform: translateY(-2px);
}

.notice-download-link {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.notice-download-link:hover {
    color: #0090c7;
    border-color: #8bdcf5;
    background: #f0faff;
}

.notice-detail-link svg,
.notice-download-link svg {
    width: 0.85rem;
    height: 0.85rem;
    transition: transform 0.25s ease;
}

.notice-detail-link:hover svg,
.notice-download-link:hover svg {
    transform: translateX(2px);
}

@media (max-width: 639px) {
    .notice-card {
        height: 300px;
        border-radius: 1.25rem;
    }

    .notice-card-content-wrapper {
        padding: 1.35rem 1.15rem 1.25rem;
    }

    .notice-card-meta {
        gap: 0.5rem;
        font-size: 0.86rem;
    }

    .notice-card-title {
        font-size: 1.18rem;
        line-height: 1.55;
        -webkit-line-clamp: 3;
    }

    .notice-card-excerpt {
        font-size: 0.98rem;
        line-height: 1.7;
        -webkit-line-clamp: 2;
    }

    .notice-card-actions {
        display: flex;
        margin-top: 1.15rem;
        min-width: 0;
        padding: 0;
    }

    .notice-detail-link,
    .notice-download-link {
        min-width: 0;
        flex: 1;
    }
}

@media (min-width: 1024px) {
    #dynamic-notices {
        width: min(1500px, calc(100% - 2rem));
        max-width: none;
    }

    .notice-card-excerpt {
        max-width: 72ch;
    }
}

/* Premium Modal Styles */
#notice-modal .modal-inner {
    box-shadow: 0 100px 150px -40px rgba(15, 23, 42, 0.6);
    background: rgba(255, 255, 255, 0.98);
    width: min(100%, 980px);
    max-height: min(900px, calc(100dvh - 2rem));
    border: 1px solid rgba(226, 232, 240, 0.85);
}

#modal-content {
    scrollbar-width: thin;
    scrollbar-color: #00aeef #f1f5f9;
    font-size: clamp(1.08rem, 1.8vw, 1.38rem) !important;
    line-height: 1.95 !important;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: pretty;
    background:
        linear-gradient(90deg, rgba(240, 250, 255, 0.72), transparent 14%, transparent 86%, rgba(240, 250, 255, 0.72)),
        #ffffff;
    border-left: 4px solid #7dd3fc;
    margin: 1.25rem 2rem;
    border-radius: 0 1.5rem 1.5rem 0;
}

#modal-content>* {
    max-width: 72ch;
}

#modal-content a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

#notice-modal .modal-header-area {
    flex-shrink: 0;
}

#notice-modal .modal-header-area h4 {
    max-width: 30ch;
    text-wrap: balance;
}

#notice-modal .modal-footer-area {
    flex-shrink: 0;
}

#modal-content::-webkit-scrollbar {
    width: 6px;
}

#modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#modal-content::-webkit-scrollbar-thumb {
    background-color: #00aeef;
    border-radius: 10px;
}

@media (max-width: 640px) {
    #notice-modal {
        padding: 0.75rem !important;
        align-items: center !important;
    }

    #notice-modal .modal-inner {
        border-radius: 1.75rem !important;
        max-height: calc(100dvh - 1.5rem) !important;
        width: 100% !important;
        margin: auto !important;
    }

    #notice-modal .modal-header-area {
        padding: 1.25rem 1.1rem 1.15rem !important;
    }

    #notice-modal .modal-header-area>div {
        align-items: flex-start;
        gap: 0.8rem;
    }

    #notice-modal .modal-header-area h4 {
        font-size: 1.35rem !important;
        line-height: 1.45 !important;
        max-width: none;
    }

    #modal-content {
        padding: 1.35rem 1.15rem 1.6rem !important;
        margin: 0.75rem 1rem !important;
        border-left-width: 3px;
        font-size: 1.12rem !important;
        line-height: 1.9 !important;
        background: #fff;
    }

    #notice-modal .modal-footer-area {
        padding: 1rem 1.1rem 1.15rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.9rem !important;
    }

    #notice-modal .footer-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .notice-card,
    .scroll-reveal,
    #notice-modal .modal-inner,
    #notice-modal .modal-backdrop {
        transition: none !important;
    }
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.float-whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 150;
    background: #25d366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 30px 60px rgba(37, 211, 102, 0.4);
}

@media (max-width: 640px) {
    .float-whatsapp {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
        border-radius: 20px;
    }
}

.logo-spin {
    animation: spin 30s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#mobile-menu-backdrop {
    transition: opacity 0.5s ease;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(100%);
    }
}