/* Section Hero */
#section-archive .section-title {
    margin: unset;
}

.divider {
    width: 84%;
}

.section-title {
    font-size: var(--h4);
}

.section-heading {
    margin: 1rem 0 2rem 0;
}

.card-shadow {
    box-shadow: var(--card-shadow);
}

#section-archive .section-heading .divider {
    margin: 1.5rem auto 3rem auto;
}

#recent-searches .section-heading .divider,
#section-about .section-heading .divider {
    background-color: var(--red);
    opacity: 0.13;
    margin: 1.5rem auto;
}

#section-hero {
    position: relative;
    overflow: hidden;
    padding: 0;

    height: 90vh;
    min-height: 600px;
    max-height: 900px;

    max-width: unset;
}


.hero {
    z-index: 1;
}

.hero img {
    object-fit: cover;
    filter: blur(15px) brightness(1.15) contrast(0.85) saturate(0.9);
    height: 90vh;
}

.hero-blur {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(4px);
    background-color: rgba(50, 115, 220, 0.2);
}

.hero-content {
    width: 50%;
    position: absolute;
    z-index: 3;
    height: fit-content;

    max-width: 1440px;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: rgba(255, 255, 255, 0.1);
    padding: 5rem;
    border-radius: 8px;
}

.hero-title {
    margin-bottom: 5%;
}

.hero-title p {
    color: var(--blue);
    font-size: var(--h5);
}

.hero-content .hero-title h1 {
    color: var(--red);
    font-size: var(--h1);
    text-shadow: 0 3px 4px rgba(0, 0, 0, 0.3);
    font-weight: 900;
    line-height: 1.5;
}

.hero-content form {
    position: relative;
    width: 100%;
}

.hero-content input[type="text"] {
    border: none;
    border-radius: 28px;
    background-color: #ECE6F0;
    font-size: var(--h5);
    padding-left: 45px;
    padding-right: 5px;
    color: var(--red);
}

.hero-content input[type="text"]:focus {
    outline: 2px solid var(--red);
}

.search-icon {
    position: absolute;
    color: #21005D;
    opacity: 0.14;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: fit-content;
}

.left {
    left: 0;
    margin-left: 20px;
}

.right {
    right: 0;
    margin-right: 20px;
}


/* Carousle Section */
#recent-searches {
    background-color: var(--white);
    padding: 2.5% 0;
    max-width: unset;
}

#recent-searches .swiper {
    max-width: 1440px;
}


#recent-searches .card-header figure svg {
    height: 50px;
    fill: var(--red);
}

#recent-searches .card-content {
    font-size: 1rem;
}

#recent-searches article {
    row-gap: 3rem;
}

#recent-searches .section-title {
    margin: 0;
}

.carousel-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 24px;
    justify-items: center;
    justify-content: center;
    overflow: auto;
    padding: 16px 0;
    height: 360px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    transition: all 0.25s ease-in;
    scroll-snap-type: x mandatory;
}

.card-container {
    background-color: white;
    padding: 50px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    width: 100%;
    row-gap: 1rem;
    height: 375px;
}

.swiper .card-header {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.swiper .card-header figure {
    grid-area: 1 / 1 / 2 / 3;
}

.swiper .card-header figure svg {
    width: fit-content;
}

.swiper .card-header figure svg g {
    fill: var(--red);
}

.swiper .card-header img {
    height: 60px;
}

.card-title {
    color: var(--blue);
    font-size: var(--h5);
    font-weight: 600;
}

.card-content {
    color: #718096;
    font-size: var(--small);
}

.card-container .btn:hover {
    background-color: var(--white);
    color: var(--red);
    box-shadow: 0 0 0 2px var(--red);
    transition: all 40ms ease-in;
}

.card-container:hover {
    /*background-color: var(--red);*/
    transition: 0.2s ease-in-out;
}

.focus {
    background-color: var(--red);
    border-color: white;
}

.swiper {
    width: 100%;
    height: 450px;
}

.swiper-slide {
    box-sizing: border-box;
}

.swiper-slide:not(.swiper-slide-active) {
    filter: blur(1px);
    pointer-events: none;
}

.swiper-slide:is(.swiper-slide-active) article {
    box-shadow: 0px 5px 12px 2px rgba(251, 87, 87, 0.4);
}

.swiper-slide {
    width: 300px;
    height: 300px;
}

.swiper-slide article {
    transition: filter 0.5s;
    height: 100%;
    width: 100%;
    border-bottom: 3px solid var(--red);
}

.swiper article .card-title {
    font-size: var(--h4);
    grid-area: 1 / 3 / 2 / 13;
}

.swiper-slide article img {
    height: 120px;
}

.swiper-pagination-bullet-active {
    background: var(--red);
}

/* Section Information Archive */
#section-archive {
    padding: 2.5% 0;
    background-color: rgba(0, 0, 0, 0.03);
    position: relative;
    max-width: unset;
}

#section-archive .card-title {
    margin-top: 1rem;
}

.background-images svg {
    height: 200px;
    width: 200px;
    position: absolute;
    opacity: 0.04;
}


.background-images svg:nth-child(1) {
    top: 15%;
    left: 3%;
    z-index: -1;
}

.background-images svg:nth-child(2) {
    bottom: 3%;
    right: 0%;
    z-index: -1;
}

.background-images svg:nth-child(3) {
    height: 80%;
    width: 80%;
    z-index: -1;
    top: 20%;
    left: 7%;
}

.arrow {
    position: absolute;
    bottom: -1%;
    right: 2%;
    z-index: 1;
}

.arrow defs linearGradient:nth-child(1) stop {
    stop-color: var(--blue);
}

.arrow defs linearGradient:nth-child(2) stop {
    stop-color: var(--red);
}

.background-images svg g {
    fill: var(--red);
}

.cards figure img {
    height: 80px;
}

.read-more {
    display: block;
    text-align: center;
    padding: 1rem 0;
    background-color: var(--light-red);
    color: var(--red);
    width: 100%;
    margin-top: 3rem;
    border-radius: 8px;
}

.read-more:hover {
    font-weight: 800;
    transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
    color: var(--red);
    background-color: var(--white);
    box-shadow: 0 0 15px 0px rgba(11, 73, 155, 0.4);
    transition: all 150ms ease-in-out;
}

.read-more:hover + .arrow defs linearGradient:nth-child(1) stop {
    stop-color: var(--red);

}

.read-more:hover + .arrow defs linearGradient:nth-child(2) stop {
    stop-color: var(--blue);
}

/* Section About */
#section-about {
    padding: 2rem 0 4rem;
    position: relative;
}

#section-about .background-images svg:nth-child(1) {
    height: 80%;
    width: 80%;
}

#section-about .background-images svg:nth-child(1) g {
    fill: var(--ligt-gray);
}

#section-about .section-body {
    margin: 0 auto;
    text-align: center;
    padding: 0 10%;
    display: grid;
}

#section-about .section-body p {
    color: black;
    font-size: var(--base-size);
    text-align: left;
    line-height: 1.5;
}

#section-about .section-body p span {
    color: var(--red);
    font-weight: 600;
}

#section-about .divider:nth-child(3) {
    width: 5%;
    margin: 5% auto 0;
    background-color: var(--red);
    height: 5px;
    border-radius: 8px;
    opacity: 0.13;
}

#section-categories img {
    width: 50px;
}

#section-categories .divider {
    margin: 0 auto;
}

#section-categories .section-content {
    margin: 3rem 0;
}

#section-categories .container {
    display: flex;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 auto;
    padding: 0 3rem;
}

#section-categories .card {
    width: 200px;
    height: 200px;
    line-height: 20px;
    text-align: center;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--light-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 4px;
}

#section-categories .card:hover {
    border-color: var(--red);
    transition: 150ms ease-in-out;
}

#section-categories .card figure,
#search-result-section article figure {
    padding: 24px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#section-categories .card figure svg,
#departments .item figure svg,
#search-result-section figure svg {
    width: 48px;
    height: 48px;
    fill: var(--red);
}

#departments .item figure svg g,
#section-categories .card figure svg g,
#search-result-section figure svg {
    fill: var(--red);
}

#section-categories .card .p {
    font-size: 1rem;
    font-weight: 600;
}

#section-archive .cards-container {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    padding: 0 3rem;
}

#section-archive .cards {
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

#section-archive .cards article {
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 400px;
    justify-content: space-between;
    overflow: hidden;
}


#section-archive .cards article:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 15px 3px rgba(251, 87, 87, 0.4);
}

#section-archive .cards .card-title,
#section-archive .cards .card-content {
    cursor: default;
}

#section-archive .cards .card-footer .btn:hover {
    background-color: var(--white);
    color: var(--red);
    box-shadow: 0 0 0 2px var(--red);
    transition: all 150ms ease-in-out;
}

.nav-links.active a {
    color: var(--blue);
}

.eng-img,
.nep-img {
    width: 30px;
}

.language-container {
    display: flex !important;
    gap: 0.5rem;
}

.language-container form {
    display: flex;
}

.language-images {
    height: 30px;
}
