*,
html {
    scroll-behavior: smooth;
}

*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:root {
    scrollbar-color: rgb(210, 210, 210) rgb(46, 54, 69) !important;
    scrollbar-width: thin !important;
    --white: #fff;
    --black: #131417;
    --dark: #131313;
    --gray: rgba(255, 255, 255, 0.6);
    --lite: rgba(1, 1, 1, 0.6);
    --cream: #f9f9f9;
    --primary: #ffa61b;
    --primary_lite: #ff3e55;
    --secondary: #3d56af;
    --secondary_dark: #15265b;
    --blue: #051135;
    --default: "Mukta", sans-serif;
    --title: "Montserrat", sans-serif;
    --cursive: "Dancing Script", cursive;
}

::-webkit-scrollbar {
    height: 12px;
    width: 8px;
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: gray;
    -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
}

::-webkit-scrollbar-corner {
    background: var(--dark);
}


/*DEFAULT*/

body {
    margin: 0;
    overflow-x: hidden !important;
    font-family: var(--default);
}

a {
    text-decoration: none !important;
    min-width: fit-content;
    width: fit-content;
    width: -webkit-fit-content;
    width: -moz-fit-content;
}

a,
button,
i {
    transition: 0.5s;
}

em {
    font-style: normal;
    color: var(--primary);
}

ul {
    padding: 0;
    margin: 0;
}

.navbar-content li {
    display: inline-block;
}

.navbar-content li a {
    color: unset;
    text-decoration: none;
}

figure {
    padding: 0;
    margin: 0;
}

fieldset {
    border: 0;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-content {
    width: 100%;
    position: relative;
}

.title {
    font-family: var(--title);
    color: var(--blue);
}

.cursive {
    font-family: var(--cursive);
}

.parallelogram {
    transform: skew(-20deg);
    display: block;
}

.skew-fix {
    display: inline-block;
    transform: skew(20deg);
}

.padding_1x {
    padding: 1rem;
}

.padding_2x {
    padding: 2rem;
}

.padding_3x {
    padding: 3rem;
}

.big {
    font-size: 4em;
}

.medium {
    font-size: 2.5rem;
}

.small {
    font-size: 1.5em;
}


/* NAVBAR STYLES */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 0rem 1rem;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    transition: var(--transition);
    background-color: var(--white);
    color: var(--secondary_dark);
    box-shadow: 3px 3px 5px #2e43845c;
}

.navbar-content {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-content li {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    color: inherit;
}

.navbar-content li i {
    margin-left: 0.5rem;
}

.submenu {
    position: absolute;
    top: 100%;
    left: -53px;
    background-color: var(--primary);
    padding: 0.5rem 0;
    list-style: none;
    display: none;
    flex-direction: column;
    min-width: 180px;
    border-radius: 4px;
    transition: var(--transition);
    z-index: 999;
}

.submenu li {
    padding: 0.5rem 1rem;
    color: white;
    white-space: nowrap;
}

.submenu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.has-submenu.open>.submenu {
    display: flex;
}


/* SCROLL COLORS */

.navbar.scrolled li,
.navbar.scrolled i {
    color: var(--secondary_dark);
}


/* LOGO + TAG */

.tag {
    color: var(--primary);
    display: flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
    padding-left: 3.5rem;
}

.tag:before {
    content: "";
    width: 50px;
    height: 1px;
    position: absolute;
    left: 0;
    top: 50%;
    background-color: var(--primary);
    transform: translateY(-50%);
    transition: var(--transition);
}

.navbar.scrolled .tag:before {
    background-color: var(--secondary);
}

.tag:hover:after {
    margin: 0 0.3rem;
}


/* HAMBURGER */

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
}

.close-btn {
    display: none !important;
}


/* RESPONSIVE */

@media (max-width: 780px) {
    #era-start {
        top: 2rem;
        margin-bottom: 15px;
    }
    .hamburger {
        display: block;
        margin-left: auto;
        z-index: 1002;
    }
    .navbar-content {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        color: var(--secondary_dark);
        align-items: flex-start;
        text-align: left;
    }
    .navbar-content.open {
        transform: translateX(0%);
    }
    .navbar-content li {
        color: var(--secondary_dark);
        padding: 0.5rem 0;
    }
    .no-scroll {
        overflow: hidden;
        height: 100vh;
    }
    .submenu {
        position: static;
        background-color: #004080;
        display: none;
        flex-direction: column;
        width: 100%;
        padding-left: 1rem;
    }
    .has-submenu.open>.submenu {
        display: flex;
    }
    .navbar.scrolled .hamburger {
        color: white;
    }
    /* 2. Submenu: remove background change on open */
    .has-submenu .submenu {
        background-color: transparent !important;
        padding-left: 1rem;
    }
    /* 3. Rotate caret on open */
    .has-submenu>i.fas.fa-caret-down {
        transition: transform 0.3s ease;
    }
    .has-submenu.open>i.fas.fa-caret-down {
        transform: rotate(180deg);
    }
    /* 4. Hide hamburger when menu is open */
    .navbar-content.open~.hamburger {
        display: none !important;
    }
    .close-btn {
        display: block !important;
        align-self: flex-end;
        font-size: 1.5rem;
        cursor: pointer;
    }
    .has-submenu>i.fas.fa-caret-down {
        transform: rotate(0deg) !important;
    }
}

.line {
    border-left: 5px solid var(--primary_lite);
    padding-left: 1rem;
}

.title_header {
    width: 60%;
    margin: auto;
    text-align: center;
}

.title_header .title {
    line-height: 0;
}

.title_header p:after {
    content: "";
    width: 100px;
    height: 2px;
    background-color: var(--primary);
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translate(-50%, 10%);
}

.title_header p {
    color: var(--lite) !important;
    position: relative;
}

.btn1,
.btn2 {
    padding: 1rem 1.5rem;
    border: 0;
    border-radius: 5px;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
}

.btn1 .fa,
.btn2 .fa {
    position: relative;
    left: 0.4rem;
}

.btn1 {
    background-color: var(--primary);
}

.btn1:hover>.fa {
    left: 0.1rem;
}

.btn2 {
    width: 100%;
    background-color: var(--secondary);
    padding: 0.8rem 2rem;
    display: block;
    border: 1px solid var(--secondary);
    font-weight: 600;
}

.btn2:hover {
    background-color: var(--secondary_dark);
    border: 1px solid var(--secondary_dark);
}

@media (max-width: 1280px) {
    .big {
        font-size: 1.8em;
    }
    .medium {
        font-size: 1.4em;
    }
    .small {
        font-size: 1.2em;
    }
}

@media (max-width: 920px) {
    .title_header {
        width: 100%;
        padding: 1rem;
    }
    .big {
        font-size: 1.8em;
    }
    .medium {
        font-size: 1.4em;
    }
    .small {
        font-size: 1.2em;
    }
    .flex {
        flex-wrap: wrap;
    }
    .padding_1x,
    .padding_2x,
    .padding_3x {
        padding: 1rem;
    }
    .btn1,
    .btn2 {
        padding: 0.5rem 1rem;
    }
}


/*MAIN*/

main {
    width: 100%;
    position: relative;
    background: linear-gradient( to right, rgba(31, 28, 88, 0.891) 10%, rgba(31, 28, 88, 0.7) 50%, rgba(31, 28, 88, 0.739) 100%), url("../images/main_website/main_bg2.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-bottom: 6rem;
}

main:after {
    content: "";
    background-image: url("https://i.ibb.co/8zB1N3z/wave.png");
    background-size: cover;
    width: 100%;
    height: 100px;
    position: absolute;
    bottom: -20px;
}

main .tag {
    position: relative;
    /* top: 20px; */
    color: var(--white);
}

main .tag:before {
    background-color: var(--white);
}

main .title {
    font-weight: 200;
    color: var(--white);
}

main em {
    color: var(--white);
    font-weight: 400;
}

main em .logo {
    width: 155px;
    object-fit: contain;
}

main p {
    position: relative;
    top: -30px;
    font-weight: 400;
    color: var(--gray);
}

@media (max-width: 920px) {
    main .tag {
        /* top: 20px; */
    }
    main p {
        top: -10px;
    }
}


/*SECTION1*/

.section1 {
    display: flex;
    align-items: top !important;
}

.section1 em {
    color: var(--dark);
    top: 20px;
}

.section1 .tag:before {
    background-color: var(--dark);
}

.section1 p {
    color: var(--lite);
}

.section1 form {
    background-color: var(--white);
    position: relative;
    /* top: -20vh; */
    /* box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 20px 60px -10px rgba(162, 159, 255, 0.55);
    border-radius: 10px;
}

form .small {
    text-align: center;
}

form input,
form select {
    background-color: #f7f7f7;
    color: #001837;
    width: 100%;
    font-weight: normal;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    height: 48px;
    line-height: 48px;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    padding: 10px;
    transition: all ease 0.3s;
    -webkit-transition: all ease 0.3s;
}

@media (max-width: 920px) {
    .section1 {
        flex-wrap: wrap;
    }
    .section1 em {
        top: 10px;
    }
    form input,
    form select {
        height: 38px;
    }
    .section1 form {
        top: 0;
    }
}

.section-onboarding {
    margin-bottom: 2rem;
}

.library-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.library-card {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.333% - 2rem);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.library-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.library-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.library-info {
    padding: 0.5rem;
}

.lib-logo {
    background: var(--white);
    border: 1px solid var(--white);
    padding: 4px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin-top: -50px;
    object-fit: contain;
}

.lib-name {
    font-size: 1.25rem;
    color: #15265b;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.lib-address {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.view-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-btn:hover {
    background-color: var(--secondary_dark);
}


/* Responsive */

@media (max-width: 992px) {
    .library-card {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 600px) {
    .library-card {
        width: 100%;
    }
}


/*SECTION2*/

.section2 {
    background: linear-gradient( to right, rgba(31, 28, 88, 0.756) 10%, rgba(31, 28, 88, 0.775) 50%, rgba(31, 28, 88, 0.751) 100%), url("../images/main_website/main_bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
    position: relative;
    top: -10vh;
}

.section2 p {
    color: var(--gray);
}

.section2 .cards {
    display: flex;
    align-items: top !important;
    justify-content: center;
}

.section2 .flex-content figure {
    position: relative;
}

.section2 .flex-content .title {
    color: var(--white);
}

.section2 .flex-content:not(:last-child) figure::after {
    content: "";
    background-image: url("https://i.postimg.cc/7LBXbLm6/arrow.png");
    background-size: 100% 100%;
    background-position: top center;
    position: absolute;
    top: 0;
    width: 90%;
    height: 55px;
}

.section2 .flex-content:nth-child(1) figure::after {
    top: -10%;
}

.section2 .flex-content:nth-child(2) figure::after {
    left: 25%;
    top: 10%;
}

.section2 .flex-content:nth-child(odd) figure::after {
    -webkit-transform: rotateX(180deg);
    transform: rotateX(180deg);
}

.section2 .flex-content figure img {
    filter: brightness(0) invert(1);
    width: 90px;
    height: 90px;
}

@media (max-width: 920px) {
    .section2 {
        top: 0;
    }
    .section2 .cards {
        flex-wrap: wrap;
    }
    .section2,
    .section2 .flex-content {
        padding: 0 !important;
    }
    .section2 .flex-content:not(:last-child) figure::after {
        display: none;
    }
}


/*SECTION3*/

.section3 {
    background-color: #edeef0;
    background-image: url("#");
    background-size: cover;
}

.section3 section {
    transition: 0.5s;
}

.section3 figure {
    position: relative;
    overflow: hidden;
    height: 70vh;
}

.section3 figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section3 section:nth-child(odd) figure {
    margin-top: -2rem;
}

.section3 section:nth-child(even) figure {
    margin-top: 8rem;
}

.section3 article {
    position: absolute;
    top: 100%;
    background-color: rgba(1, 1, 1, 0.4);
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: 0.5s;
}

.section3 article span {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: -100%;
    transition: 0.5s;
    transition-delay: 0.5s;
}

.section3 figure:hover article {
    top: 0%;
}

.section3 figure:hover article span {
    left: 0;
}

.section3 h2,
.section3 p {
    color: var(--white);
}

@media (max-width: 920px) {
    .section3 figure {
        height: 50vh;
    }
    .section3 section {
        margin: 0px 0;
    }
    .section3 section:nth-child(odd) figure {
        margin-top: 0rem;
    }
    .section3 section:nth-child(even) figure {
        margin-top: 0rem;
    }
}


/*SECTION4*/

.section4 img {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    width: 100%;
}

.section4 figure {
    position: relative;
}

.section4 p {
    color: var(--lite);
}

.section4 figure span {
    position: absolute;
    top: 0%;
    right: 0%;
    display: block;
    z-index: 1;
    background-color: var(--white);
    text-align: center;
    box-shadow: 0px 6px 16px 6px rgba(255, 166, 27, 0.8);
}

.section4 figure span .title {
    line-height: 0;
    font-weight: 900;
}

.section4 li {
    list-style: none;
    padding: 0.3rem 0;
}

.section4 li::before {
    content: "\f00c";
    font-family: "FontAwesome";
    margin-right: 0.4rem;
    color: var(--primary);
    font-size: 1.5em;
}

.section4 .flex-content:nth-child(1):before {
    content: "";
    width: 100%;
    height: 100%;
    background-image: url("https://i.postimg.cc/x8Q8FKM6/bg-7.png");
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 1%;
    z-index: 1;
    --delay: 0s;
    animation: arrows 4s var(--delay) infinite ease-in;
}


/*SECTION5*/

.section5 {
    background-color: #edeef0;
    position: relative;
}

.section5:after {
    content: "";
    background-image: url("../images/main_website/lib_graphic2.png");
    position: absolute;
    right: 0;
    top: 25%;
    height: 100%;
    width: 20%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

.section5 .flex-content {
    width: 90%;
    margin: auto;
    background-color: var(--secondary_dark);
    background-image: url("https://i.postimg.cc/LXtLX4V0/shape.png");
    background-size: cover;
    color: var(--white);
    text-align: center;
    position: relative;
    top: 5vh;
    border-radius: 10px;
}

.section5 .title {
    color: var(--white);
}

.section5 p {
    color: var(--gray);
}

.section5 .btn1 {
    background-color: transparent;
    border: 1px solid var(--white);
    display: block;
    margin: auto;
    padding: 0.5rem 1rem;
}

.section5 .btn1:hover {
    background-color: var(--white);
    color: var(--secondary_dark);
}

@media (max-width: 920px) {
    .section5 .flex-content {
        width: 100%;
        top: 0;
        border-radius: 0;
    }
    .section5:after {
        display: none;
    }
}


/*FOOTER*/

footer {
    display: flex;
    align-items: top;
    justify-content: center;
    background-color: var(--blue);
    color: var(--white);
    padding-top: 3rem;
}

footer .title {
    color: var(--white);
}

footer a {
    display: block;
    color: var(--gray);
    margin: 0.3rem 0;
}

footer a:hover {
    color: var(--white);
}

footer .flex-content:not(:first-child) a:before {
    content: "\f0da";
    font-family: "FontAwesome";
    margin-right: 0.3rem;
}

footer .social_icons a {
    margin: 0.3rem;
    padding: 0.1rem 0.6rem;
    border-radius: 50%;
    border: 1px solid var(--gray);
    display: inline-block;
    text-align: center;
}

footer .social_icons a:hover {
    background-color: var(--gray);
    color: var(--blue);
}

footer p {
    color: var(--gray);
}

footer fieldset {
    padding: 0;
    margin: 0;
}

footer fieldset .flex-content:nth-child(2) {
    width: 23%;
}

footer input {
    padding: 1rem;
    border: 0;
    font-weight: 600;
}

footer .btn1 {
    border-radius: 0;
    text-align: center;
}

footer .btn1 .fa {
    left: 0;
}

.sub_footer {
    background-color: var(--secondary_dark);
    text-align: center;
    color: var(--gray);
    padding: 0.01rem;
}

@media (max-width: 920px) {
    footer {
        flex-wrap: wrap;
    }
    footer fieldset {
        flex-wrap: nowrap !important;
    }
    footer fieldset .btn1 {
        padding: 1rem;
    }
}


/*Animate*/


/*Animate up & down*/

@keyframes arrows {
    0%,
    100% {
        color: black;
        transform: translateY(0);
    }
    50% {
        color: #3ab493;
        transform: translateY(20px);
    }
}


/*REMOVE THIS*/

.credits {
    position: fixed;
    right: 0;
    bottom: 2%;
    background-color: #1e1e1e;
    padding: 0.5rem;
    font-size: 12px;
    z-index: 999;
    color: rgba(255, 255, 255, 0.7);
}

.credits a {
    color: rgba(255, 255, 255, 0.7);
}

.credits a:hover {
    color: white;
}

.credits .btn0 {
    background-color: white;
    color: #000;
    padding: 5px;
    border-radius: 5px;
    border: 0;
    display: block;
    margin: 1vh auto;
    width: 100px;
    text-align: Center;
}

.credits .btn0:hover {
    color: black;
    background-color: #b8bca7;
}


/* Message Styling */

.message {
    margin-top: 10px;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.message.success {
    color: #28a745;
}

.message.error {
    color: #dc3545;
}

.status-message {
    margin-top: 10px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.status-message.success {
    background-color: #4caf50;
    color: white;
    display: block;
}

.status-message.error {
    background-color: #f44336;
    color: white;
    display: block;
}

.status-message.loading {
    background-color: #f0ad4e;
    color: white;
    display: block;
}