﻿
/* =========================================================
   JAGDAMBA DEGREE COLLEGE - NOTICE BOARD
   PREMIUM BLUE & GOLD THEME
========================================================= */

.notice-page {
    --notice-blue: #123B70;
    --notice-dark: #0B2545;
    --notice-gold: #D6A63A;
    --notice-gold-dark: #B88922;
    --notice-light: #EAF2FB;
    --notice-text: #24364B;
    --notice-muted: #718096;
    --notice-border: #E5EAF0;
    --notice-white: #FFFFFF;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--notice-text);
    background: #F7F9FC;
    overflow: hidden;
}

    .notice-page * {
        box-sizing: border-box;
    }


/* =========================================================
   HERO
========================================================= */

.notice-hero {
    position: relative;
    min-height: 350px;
    background: linear-gradient(110deg, rgba(7, 29, 58, .97), rgba(18, 59, 112, .91)), #123B70;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .notice-hero::before {
        content: "";
        position: absolute;
        width: 470px;
        height: 470px;
        border: 1px solid rgba(214, 166, 58, .22);
        border-radius: 50%;
        right: -120px;
        top: -100px;
    }

    .notice-hero::after {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        border: 1px solid rgba(214, 166, 58, .15);
        border-radius: 50%;
        right: 35px;
        bottom: -190px;
    }

.notice-hero-overlay {
    position: absolute;
    inset: 0;
    opacity: .08;
    background-image: linear-gradient(45deg, transparent 49%, rgba(255,255,255,.12) 50%, transparent 51%);
    background-size: 28px 28px;
}

.notice-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: auto;
    padding: 75px 24px;
}

.notice-hero-text {
    max-width: 780px;
}

.notice-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--notice-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

    .notice-kicker::before {
        content: "";
        width: 35px;
        height: 2px;
        background: var(--notice-gold);
    }

.notice-hero h1 {
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 22px;
}

    .notice-hero h1 span {
        color: var(--notice-gold);
    }

.notice-hero-text > p {
    max-width: 650px;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}

.notice-hero-line {
    width: 70px;
    height: 3px;
    background: var(--notice-gold);
    margin: 30px 0 20px;
}

.notice-hero-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255,255,255,.65);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.notice-hero-year {
    color: var(--notice-gold);
    border: 1px solid rgba(214,166,58,.45);
    padding: 8px 13px;
    border-radius: 3px;
}


/* =========================================================
   MAIN SECTION
========================================================= */

.notice-main-section {
    padding: 80px 0;
    background: #F7F9FC;
}

.notice-container {
    width: 100%;
    max-width: 1240px;
    margin: auto;
    padding: 0 24px;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.notice-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.notice-section-title {
    max-width: 700px;
}

.notice-small-label {
    display: block;
    color: var(--notice-gold-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
}

.notice-section-title h2 {
    color: var(--notice-dark);
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 14px;
}

    .notice-section-title h2 span {
        color: var(--notice-blue);
    }

.notice-section-title p {
    color: var(--notice-muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}


/* =========================================================
   TOTAL NOTICE COUNTER
========================================================= */

.notice-total-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 25px;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--notice-border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(11,37,69,.04);
}

.notice-total-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--notice-light);
    border-radius: 10px;
    color: var(--notice-blue);
    font-size: 21px;
}

.notice-total-box strong {
    display: block;
    color: var(--notice-dark);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.notice-total-box span {
    display: block;
    color: var(--notice-muted);
    font-size: 12px;
    margin-top: 4px;
}


/* =========================================================
   SEARCH & FILTER TOOLBAR
========================================================= */

.notice-toolbar {
    background: #fff;
    border: 1px solid var(--notice-border);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 35px;
    box-shadow: 0 8px 30px rgba(11,37,69,.035);
}

.notice-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    border: 1px solid #DCE4ED;
    border-radius: 7px;
    background: #FAFCFE;
    transition: .25s ease;
}

    .notice-search-box:focus-within {
        border-color: var(--notice-blue);
        box-shadow: 0 0 0 3px rgba(18,59,112,.07);
    }

    .notice-search-box > i {
        color: var(--notice-blue);
        padding-left: 18px;
        font-size: 16px;
    }

    .notice-search-box input {
        width: 100%;
        height: 100%;
        border: none;
        outline: none;
        background: transparent;
        padding: 0 15px;
        color: var(--notice-dark);
        font-size: 14px;
        font-family: inherit;
    }

        .notice-search-box input::placeholder {
            color: #A0AEC0;
        }

    .notice-search-box button {
        display: none;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 45px;
        height: 45px;
        margin-right: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
        color: #718096;
    }

        .notice-search-box button:hover {
            color: var(--notice-blue);
        }


/* FILTER BUTTONS */

.notice-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.notice-filter-btn {
    padding: 11px 18px;
    border: 1px solid #E2E8F0;
    border-radius: 5px;
    background: #fff;
    color: #5D6B7C;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

    .notice-filter-btn:hover {
        border-color: var(--notice-blue);
        color: var(--notice-blue);
        transform: translateY(-1px);
    }

    .notice-filter-btn.active {
        color: #fff;
        background: var(--notice-blue);
        border-color: var(--notice-blue);
        box-shadow: 0 5px 15px rgba(18,59,112,.15);
    }


/* =========================================================
   NOTICE GRID
========================================================= */

.notice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
   NOTICE CARD
========================================================= */

.notice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--notice-border);
    border-radius: 10px;
    padding: 26px;
    min-height: 330px;
    box-shadow: 0 6px 24px rgba(11,37,69,.035);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
}

    .notice-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 0;
        background: var(--notice-gold);
        transition: height .3s ease;
    }

    .notice-card:hover {
        transform: translateY(-5px);
        border-color: rgba(214,166,58,.45);
        box-shadow: 0 18px 40px rgba(11,37,69,.08);
    }

        .notice-card:hover::before {
            height: 100%;
        }


/* Card top */

.notice-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.notice-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 4px;
    background: #EAF2FB;
    color: #123B70;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.notice-date {
    color: #8A97A7;
    font-size: 11px;
    font-weight: 600;
}

    .notice-date i {
        color: var(--notice-gold-dark);
        margin-right: 5px;
    }


/* Card icon */

.notice-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #F8F4E9;
    color: var(--notice-gold-dark);
    font-size: 18px;
    margin-bottom: 20px;
}


/* Card heading */

.notice-card-title {
    color: var(--notice-dark);
    font-family: "Playfair Display", serif;
    font-size: 19px;
    line-height: 1.55;
    font-weight: 700;
    margin: 0 0 13px;
    overflow-wrap: anywhere;
}


/* Description */

.notice-card-description {
    color: #718096;
    font-size: 13px;
    line-height: 1.85;
    margin: 0 0 24px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* Card footer */

.notice-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid #EEF1F5;
    padding-top: 18px;
    margin-top: auto;
}

.notice-official {
    color: #718096;
    font-size: 10px;
    font-weight: 700;
}

    .notice-official i {
        color: #2D8A60;
        margin-right: 5px;
    }

.notice-read-more {
    border: none;
    background: transparent;
    color: var(--notice-blue);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    padding: 5px 0;
    transition: .25s ease;
}

    .notice-read-more i {
        margin-left: 5px;
        transition: transform .25s ease;
    }

    .notice-read-more:hover {
        color: var(--notice-gold-dark);
    }

        .notice-read-more:hover i {
            transform: translateX(4px);
        }


/* =========================================================
   EMPTY STATES
========================================================= */

.notice-empty-state,
.notice-search-empty {
    text-align: center;
    padding: 70px 25px;
    background: #fff;
    border: 1px dashed #DCE4ED;
    border-radius: 12px;
}

.notice-empty-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    background: var(--notice-light);
    border-radius: 50%;
    color: var(--notice-blue);
    font-size: 26px;
}

.notice-empty-state h3,
.notice-search-empty h3 {
    color: var(--notice-dark);
    font-family: "Playfair Display", serif;
    font-size: 25px;
    margin: 0 0 12px;
}

.notice-empty-state p,
.notice-search-empty p {
    max-width: 500px;
    margin: auto;
    color: var(--notice-muted);
    font-size: 14px;
    line-height: 1.8;
}

.notice-reset-btn {
    display: inline-flex;
    margin-top: 22px;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    background: var(--notice-blue);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

    .notice-reset-btn:hover {
        background: var(--notice-dark);
    }


/* =========================================================
   INFORMATION STRIP
========================================================= */

.notice-information-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    margin-top: 50px;
    border-radius: 10px;
    background: #EDF3FA;
    border-left: 4px solid var(--notice-gold);
}

.notice-info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    color: var(--notice-blue);
    font-size: 21px;
}

.notice-info-text h4 {
    color: var(--notice-dark);
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 6px;
}

.notice-info-text p {
    color: #64758A;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}


/* =========================================================
   DATABASE ERROR
========================================================= */

.notice-error-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    background: #FFF4F2;
    border: 1px solid #F4C9C2;
    color: #A33A2B;
    font-size: 14px;
}


/* =========================================================
   NOTICE DETAILS MODAL
========================================================= */

.notice-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}

    .notice-modal.show {
        visibility: visible;
        opacity: 1;
    }

.notice-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5,19,39,.78);
    backdrop-filter: blur(4px);
}

.notice-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 100px rgba(0,0,0,.25);
    transform: translateY(20px);
    transition: transform .25s ease;
}

.notice-modal.show .notice-modal-content {
    transform: translateY(0);
}

.notice-modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5EAF0;
    border-radius: 50%;
    background: #fff;
    color: #5D6B7C;
    font-size: 25px;
    cursor: pointer;
    transition: .2s ease;
}

    .notice-modal-close:hover {
        background: var(--notice-blue);
        color: #fff;
        border-color: var(--notice-blue);
    }

.notice-modal-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.notice-modal-label {
    color: var(--notice-gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.notice-modal-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F4E9;
    color: var(--notice-gold-dark);
    border-radius: 10px;
    font-size: 22px;
}

.notice-modal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0 15px;
}

    .notice-modal-meta span:first-child {
        padding: 7px 12px;
        background: var(--notice-light);
        color: var(--notice-blue);
        border-radius: 4px;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .notice-modal-meta span:last-child {
        color: #8290A1;
        font-size: 12px;
        font-weight: 600;
    }

.notice-modal-content h2 {
    color: var(--notice-dark);
    font-family: "Playfair Display", serif;
    font-size: 28px;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
}

.notice-modal-divider {
    height: 2px;
    width: 60px;
    background: var(--notice-gold);
    margin: 22px 0;
}

.notice-modal-description {
    color: #5D6B7C;
    font-size: 14px;
    line-height: 2;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.notice-modal-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 25px;
    margin-top: 30px;
    border-top: 1px solid #E8EDF3;
    color: #718096;
    font-size: 11px;
    font-weight: 700;
}

    .notice-modal-footer i {
        color: #2D8A60;
    }


/* Modal scroll lock */

body.notice-modal-open {
    overflow: hidden;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 991px) {

    .notice-main-section {
        padding: 60px 0;
    }

    .notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .notice-section-header {
        align-items: flex-start;
    }

    .notice-total-box {
        min-width: 190px;
    }

    .notice-card {
        min-height: 320px;
        padding: 22px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 767px) {

    .notice-hero {
        min-height: 300px;
    }

    .notice-hero-inner {
        padding: 55px 20px;
    }

    .notice-hero h1 {
        font-size: 42px;
    }

    .notice-hero-text > p {
        font-size: 14px;
    }

    .notice-hero-bottom {
        font-size: 10px;
        gap: 12px;
    }

    .notice-container {
        padding: 0 16px;
    }

    .notice-main-section {
        padding: 45px 0;
    }

    .notice-section-header {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 28px;
    }

    .notice-section-title h2 {
        font-size: 32px;
    }

    .notice-total-box {
        width: 100%;
    }

    .notice-toolbar {
        padding: 16px;
        margin-bottom: 25px;
    }

    .notice-search-box {
        height: 50px;
    }

    .notice-category-filter {
        gap: 8px;
    }

    .notice-filter-btn {
        padding: 10px 13px;
        font-size: 11px;
    }

    .notice-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .notice-card {
        min-height: auto;
        padding: 22px;
    }

    .notice-card-title {
        font-size: 18px;
    }

    .notice-information-strip {
        align-items: flex-start;
        padding: 22px;
        margin-top: 35px;
    }

    .notice-modal-content {
        padding: 28px 22px;
    }

        .notice-modal-content h2 {
            font-size: 23px;
        }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .notice-hero h1 {
        font-size: 36px;
    }

    .notice-category-filter {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .notice-filter-btn {
        width: 100%;
    }

    .notice-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .notice-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .notice-information-strip {
        flex-direction: column;
    }
}
