/* ---------- Main Section ---------- */
main {
    background-color: #f9fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.container {
    height: 100%;
    width: 82%;
    padding: 2rem 1rem;
}

/* ---------- Heading ---------- */
.heading-title {
    width: 100%;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    color: #111827;
    font-weight: 700;
}
.heading-info {
    width: 100%;
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ---------- Nav2 ---------- */
.nav2 {
    height: 2.6rem;
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-container {
    background-color: white;
    width: 35%;
    height: 100%;
    border: 0.08rem solid rgb(209 213 219);
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.2s ease;
}
.search-box {
    height: 85%;
    width: 98.5%;
    background-color: white;
    border-radius: 0.3rem;
    display: flex;
    align-items: center;
}
.search-box i {
    padding: 1rem;
    color: #a5a8ab;
}
.search-container:focus-within {
    box-shadow: 0 0 0 2px #4184f5;
    border-color: #4184f5;
}
.input-box {
    height: 100%;
    width: 100%;
    border: none;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    outline: none;
}

.nav2-right {
    width: 28%;
    margin-right: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}
.new-btn, .all-btn {
    font-size: 0.9rem;
    font-weight: 500;
    color: #020817;
    height: 2.6rem;
    width: auto;
    padding: 0.5rem 1.3rem;
    border: none;
    background-color: white;
    border: 0.08rem solid rgb(209 213 219);
    border-radius: 0.5rem;
    cursor: pointer;
}
.new-btn:hover, .all-btn:hover {
    background-color: #f1f4f9;
}
.active-all {
    background-color: #f1f4f9;
}

/* ---------- Nav2 ---------- */
.nav3-container {
    width: 100%;
    height: 2.5rem;
    padding: 0.25rem;
    /* gap: 1rem; */
    background-color: #f1f5f9;
    border-radius: 0.3rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    overflow: auto;
    overflow-y: hidden;
}
.nav3-container::-webkit-scrollbar {
    height: 0.2rem;
}
.nav3-container::-webkit-scrollbar-thumb {
    background-color: #a0aec0;
    border-radius: 0.5rem;
}
.nav3-container::-webkit-scrollbar-track {
    background-color: #f1f5f9;
}
.nav3btns {
    width: 100%;
    height: 2rem;
    padding: 0 2rem;
    /* margin-right: 1rem; */
    border-radius: 0.3rem;
    border: none;
    background-color: #f1f5f9;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}
.activeAll {
    background-color: #3980ed;
    color: white;
}
.activeImp {
    background-color: #ef4444;
    color: white;
}
.activeDeadline {
    background-color: #f97316;
    color: white;
}
.activeEvents {
    background-color: #8b5cf6;
    color: white;
}
.activeGeneral {
    background-color: #10b981;
    color: white;
}
.activeAdmission {
    background-color: #ec4899;
    color: white;
}
.activeResult {
    background-color: #f59e0b;
    color: white;
}
.activeUpdate {
    background-color: #d946ef;
    color: white;
}
.activeRegistration {
    background-color: rgb(31, 119, 108);
    color: white;
}
.activeInternational {
    background-color: #64748b;
    color: white;
}
.activeExam {
    background-color: #84cc16;
    color: white;
}
.activeUndergraduate {
    background-color: #38bdf8;
    color: white;
}
.activePostgraduate {
    background-color: #4f46e5;
    color: white;
}
.activePayment {
    background-color: #C266A2;
    color: white;
}
.activeScholarship {
    background-color: #01afb9;
    color: white;
}

/* No Data Found Box*/
.no-data-box {
    width: 98%;
    height: 9rem;
    padding: 0 1rem;
    background-color: white;
    border-radius: 0.5rem;
    border: 0.09rem dashed rgb(209 213 219);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.no-data-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #374151;
}
.no-data-info {
    font-size: 1rem;
    color: #6b7280;
}

/* ---------- Announcement List ---------- */
.announcement-list {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: content;
    align-items: center;
    gap: 1.2rem;
}
.announcement-boxes {
    width: 100%;
    height: auto;
    background-color: white;
    border: 0.08rem solid rgb(209 213 219);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.8rem 0.8rem;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.announcement-boxes:hover {
    box-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
}

.announcement-layer1 {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.2rem;
}
.degree-level-box {
    height: max-content;
    width: auto;
    padding: 0.2rem 0.5rem;
    text-align: center;
    border-radius: 1rem;
    font-size: 0.8rem;
    color: #faf8fc;
    font-weight: 500;
    /* background-color: #8b5cf6; */
}
.degree-level-box:hover {
    background-color: #3f4457 !important;
}

.announcement-title {
    width: 100%;
    font-size: 1.2rem;
    color: #020817;
    font-weight: 500;
    margin-top: 0.6rem;
}
.announcement-date {
    width: 100%;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.6rem;
}
.announcement-info {
    width: 100%;
    font-size: 1rem;
    color: #374151;
    margin-top: 0.6rem;
    margin-bottom: 1.2rem;
}
.view-details {
    width: 100%;
    height: auto;
    text-decoration: none;
    color: #3980ed;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}
.view-details:hover {
    color: #042f6f;
}

/* ---------- Responsive Style Code ---------- */
@media (max-width: 767px) { /* Mobile (Portrait) */
    header {
        max-width: 100%;
        padding: 0 4%;
        /* gap: 10%; */
    }
    .logo {
        font-size: 1.2rem;
    }
    .header-right {
        width: 38%;
        justify-content: flex-end;
        gap: 5%;
    }
    .header-right p {
        display: none;
    }
    .home-box, .announcement-box, .feedback-box {
        gap: 0;
        padding: 0.5rem 0.5rem;
    }
    .home-box i, .announcement-box i, .feedback-box i {
        font-size: 1.2rem;
    }
    main {
        padding: 1rem 1rem;
    }
    .container {
        width: 100%;
        padding: 0;
    }
    .nav2 {
        height: auto;
        flex-direction: column;
        gap: 0.8rem;
    }
    .search-container {
        width: 100%;
        height: 2.5rem;
    }
    .input-box {
        font-size: 1rem;
    }
    .nav2-right {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
    .nav3btns {
        padding: 0 1rem;
    }
    .announcement-boxes, .no-data-box {
        width: 90%;
    }
    .view-details {
        margin: 0.8rem 0;
    }
}

@media (min-width: 767px) and (max-width: 1024px) { /* Medium [Tablets and small laptops] */
    header {
        max-width: 100%;
        padding: 0 4%;
    }
    .logo {
        font-size: 1.5rem;
    }
    .header-right {
        justify-content: flex-end;
        gap: 0;
    }
    .home-box, .announcement-box, .feedback-box {
        padding: 0.5rem 0.8rem;
    }
    .header-right p {
        font-size: 0.9rem;
    }
    .container {
        min-width: 95%;
        max-width: 100%;
    }
    .heading {
        width: 100%;
    }
    .search-container {
        width: 60%;
    }
    .announcement-boxes, .no-data-box {
        width: 96%;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) { /* Laptops and Desktops */
    header {
        max-width: 100%;
        padding: 0 4%;
    }
    .header-right {
        justify-content: flex-end;
        gap: 0;
    }
    .header-right p {
        font-size: 1rem;
    }
    .container {
        min-width: 90%;
        max-width: 100%;
    }
    .heading {
        width: 100%;
    }
    .search-container {
        width: 60%;
    }
    .announcement-boxes, .no-data-box {
        width: 97%;
    }

}