

/* ========== Section First =========== */
.library-hero {
  position: relative;
  min-height: 60vh;
  background-image: url("../images/lib-hero-img.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-inline: 6%;
}

/* content */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 8rem;
  font-weight: 700;
  position: relative;
  padding-inline-start: 1rem;
}

/* ---------- BREAKPOINTS ---------- */
/* 1024px */
@media (max-width: 64em) {
}

/* 768px */
@media (max-width: 48em) {
}

/* 368px */
@media (max-width: 430px) {
  .secondary-menu .navbar-toggler {
    margin-top: 4.5rem;
    margin-right: 1rem;
  }
    .hero-content h1 {
        font-size: 5rem;
        margin-left: 0;
    }
  .library-hero {
      height: 50vh;
  }
}

/* ========== Section Sidebar =========== */

/* LAYOUT */

.layout {
  display: flex;
  height: 100vh;
}

/* SIDEBAR */

.page-with-sidebar {
  display: flex;
  position: relative;
}

/* SIDEBAR */

.sidebar1 {
  width: 27%;
  position: sticky;
  top: 0;
  height: 100vh;
  background: #f3f1f5;
}

.sidebar-inner {
  padding: 5rem 2rem;
}

.sidebar-inner a:hover {
  background: #e6e1ea;
  padding: 1rem;
  border-right: 0.3rem solid #4f0071;
  font-weight: bold;
  margin-bottom: 2rem;
}

.sidebar1 nav a {
  display: block;
  margin-bottom: 1.2rem;
  color: #666;
  text-decoration: none;
  font-size: 1.5rem;
  width: 100%;
  text-align: end;
}


/* Responsive */

@media (max-width: 576px) {
    .sidebar1 {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .sidebar1 {
        display: none;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .sidebar1 nav a {
        font-size: 1rem;
    }
    .sidebar1 {
        width: 27%;
    }
}

/* ========== Section Second =========== */
/* CONTENT */
.content {
    width: 82%;
    height: 100vh;
    overflow-y: auto;
    padding: 3rem;
}

/* SECTION */
.study-section {
  padding-top: 4rem;
  padding-left: 2rem;
  padding-bottom: 1rem;
  margin-left: -5rem;
  margin-top: -5rem;
}

.study-container {
  max-width: 75rem;
  height: 47rem;
  margin: auto;
  display: flex;
  gap: 4rem;
}

/* LEFT SIDE */
.study-left {
  flex: 1;
}

.small-title {
  color: #d6a14a;
  font-size: 2.8rem;
  font-weight: 800;
}

.main-title {
  font-size: 2.6rem;
  font-weight: 600;
  margin: 0.5rem 0 1.5rem;
}

.desc {
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 35rem;
}

.image-box {
  margin-top: 2rem;
}

.image-box img {
  width: 90%;
  display: block;
}

/* RIGHT SIDE */
.study-right {
  flex: 1;
  padding-top: 0.5rem;
}

.campus-item {
  border-bottom: 0.1rem solid #e5e5e5;
  padding: 2rem 0;
}

/* HEADER */
.campus-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
}

.campus-count {
  color: #bdbdbd;
  font-weight: 600;
  font-size: 1.6rem;
}
.campus-content:hover {
  border-left: 0.3rem solid #d6a14a;
}

.campus-title {
  font-weight: 700;
  color: #4f0071;
  font-size: 1.8rem;
  margin-right: auto;
}

.campus-arrow {
  font-size: 1.6rem;
  color: #4f0071;
  transition: transform 0.3s ease;
}

/* CONTENT (hidden by default) */
.campus-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 3rem;
}
.campus-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 3rem;
}

/* TEXT */
.campus-content p {
  flex: 1;
  font-size: 1.1rem;
  padding-top: 1.5rem;
  width: 35rem;
}
.campus-content img {
  flex: 1;
  max-width: 100%;
  margin-top: 1rem;
  border-bottom: 0.2rem solid #1bb3a9;
}

/* ACTIVE STATE */
.campus-item.active .campus-content {
  max-height: 40rem;
}

.campus-item.active .campus-arrow {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 576px) {
    .content {
        width: 100%;
        padding: 1rem;
    }

    .study-container {
        max-width: 100%;
        flex-direction: column;
        height: 100%;
        gap: 0rem;
    }

    .study-section {
        margin-left: 0rem;
        padding-left: 1rem;
        margin-top: -2rem;
    }
    .small-title {
        font-size: 2rem;
    }
    .main-title {
        font-size: 2rem;
    }

    .desc {
        max-width: 39rem;
        font-size: 1rem;
    }

    .image-box img {
        width: 95%;
    }

    .study-right {
        margin-left: -0.7rem;
    }
    .campus-content {
        flex-direction: column;
        gap: 0rem;
    }
    .campus-title{
        font-size: 1.5rem;
    }
}

    @media (min-width: 768px) and (max-width: 991px) {
        .content {
            width: 100%;
        }

        .study-container {
            max-width: 100%;
            flex-direction: column;
            height: 100%;
            gap: 0rem;
        }

        .study-section {
            margin-left: 0rem;
        }

        .desc {
            max-width: 39rem;
        }

        .image-box img {
            width: 50%;
        }

        .study-right {
            margin-left: -2rem;
        }
    }

    @media (min-width: 992px) and (max-width: 1199px) {
       

        .content {
            padding: 2rem;
        }

        .study-right {
            width: 65%;
        }

        .desc {
            font-size: 1rem;
        }

        .study-left {
            margin-left: -4rem;
        }

        .study-container {
            gap: 1rem;
        }

        .study-section {
            margin-left: 2rem;
        }

        .campus-item.active .campus-content {
            max-height: 16rem;
            display: block;
        }

        .campus-content img {
            margin-top: 0rem;
        }

        .campus-content p {
            padding-top: 0;
        }

        .campus-title {
            font-size: 1.5rem;
        }
    }

    @media (min-width: 1200px) {

        .desc {
            font-size: 1.2rem;
        }

        .study-right {
            width: 65%;
        }

        .study-left {
            margin-left: -4rem;
        }

        .study-container {
            gap: 1rem;
        }

        .study-section {
            margin-left: 1rem;
        }
    }

    /* ========== Section Third =========== */
    .rules-section {
        width: 80%;
        padding: 0rem 0rem;
        background: #fff;
        margin-left: 17.5rem;
        margin-top: 2rem;
    }

    .rules-wrapper {
        max-width: 90rem;
        margin: auto;
    }

    /* IMAGE */
    .rules-image {
        position: relative;
        border: 0.2rem solid #1bb3a9;
        width: 100%;
    }

        .rules-image img {
            width: 100%;
            height: auto;
            display: block;
            opacity: 1;
            transform: scale(1);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

            /* animation state */
            .rules-image img.fade-out {
                opacity: 0;
                transform: scale(1.03);
            }

    /* ARROWS */
    .slider-arrows {
        position: absolute;
        right: 1.5rem;
        bottom: -5.5rem;
        display: flex;
        gap: 0.8rem;
    }

        .slider-arrows button {
            width: 3rem;
            height: 3rem;
            background: #4f0071;
            color: #fff;
            border: none;
            font-size: 1.6rem;
            cursor: pointer;
        }

    /* CONTENT */
    .rules-content {
        display: flex;
        justify-content: space-between;
        gap: 3rem;
        margin-top: 1.5rem;
    }

    /* LEFT TITLE */
    .rules-title span {
        font-size: 2rem;
        color: #d99a3c;
        font-weight: 600;
        display: block;
    }

    .rules-title h3 {
        font-size: 3rem;
        font-weight: 700;
    }

    /* RIGHT TEXT */
    .rules-text {
        margin-right: 25rem;
    }

        .rules-text h4 {
            font-size: 1.6rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .rules-text p {
            font-size: 1.4rem;
            line-height: 1.7;
            font-weight: 400;
            max-width: 23rem;
        }

    /*  RESPONSIVE */
@media (max-width: 576px) {
    .rules-section {
        width: 100%;
        margin-left: 0rem;
        margin-top: 4rem;
    }

    .rules-content {
        flex-direction: column;
        margin-left: 1rem;
        gap: 1rem;
    }

    .rules-title h3 {
        font-size: 2rem;
    }

    .rules-text {
        margin-right: 1rem;
    }

        .rules-text p {
            max-width: 34rem;
            font-size: 1rem;
        }
}

    @media (min-width: 768px) and (max-width: 991px) {
        .rules-section {
            width: 100%;
            margin-left: -0.5rem;
            margin-top: 4rem;
        }

        .rules-content {
            display: flex;
            gap: 2rem;
        }

        .rules-title h3 {
            font-size: 2rem;
        }

        .rules-text {
            margin-right: 10rem;
        }

            .rules-text p {
                max-width: 34rem;
            }
    }

    @media (min-width: 992px) and (max-width: 1199px) {
        .rules-section {
            margin-left: 0.5rem;
            width: 100%;
        }

        .rules-content {
            gap: 2rem;
        }

        .rules-text {
            margin-right: 8rem;
            width: 50%;
        }

        .rules-title h3 {
            font-size: 2rem;
        }

        .rules-text p {
            font-size: 1.1rem;
        }
    }

    @media (min-width: 1200px) {
        .rules-section {
            margin-left: 0.5rem;
            width: 100%;
        }

        .rules-text {
            margin-right: 8rem;
            width: 50%;
        }
    }

    /* ========== Section Fourth =========== */
    .membership-section {
        background: #4f0071;
        padding: 3rem 2rem;
        color: #ffffff;
        margin-top: 2rem;
    }

    .membership-container {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }

    /* LEFT */
    .membership-left {
        width: 22%;
        margin-top: 7rem;
        margin-bottom: -7rem;
        margin-left: -7rem;
    }

        .membership-left h3 {
            font-size: 1.8rem;
            font-weight: 600;
            line-height: 1.3;
        }

        .membership-left span {
            color: rgba(222, 176, 76, 1);
        }

    /* DIVIDER */
    .divider {
        width: 0.1rem;
        height: 15rem;
        background: rgba(255, 255, 255, 0.4);
    }

    /* MIDDLE */
    .membership-middle {
        width: 38%;
        margin-top: -6rem;
    }

        .membership-middle h3 {
            font-size: 1.8rem;
            font-weight: 600;
        }

        .membership-middle p {
            font-size: 1.3rem;
            line-height: 1.6;
            opacity: 0.9;
            font-weight: 300;
            color: #f5f5f5;
        }

    /* RIGHT */
    .membership-right {
        width: 40%;
        padding-left: 6rem;
        margin-bottom: -4rem;
    }

        .membership-right p {
            font-size: 1.3rem;
            line-height: 1.6;
            opacity: 0.9;
            font-weight: 300;
            color: #f5f5f5;
        }

    /*  RESPONSIVE  */
@media (max-width: 576px) {
    .membership-container {
        flex-direction: column;
    }

    .membership-left {
        width: 100%;
        margin-top: -1rem;
        margin-left: 0;
    }

    .divider {
        display: none;
    }

    .membership-middle {
        width: 100%;
        margin-top: 5rem;
    }

    .membership-right {
        width: 100%;
        padding-left: 0;
        margin-bottom: 0;
    }
}

    @media (min-width: 768px) and (max-width: 991px) {
        .membership-container {
            flex-direction: column;
        }

        .membership-left {
            width: 100%;
            margin-top: -1rem;
            margin-left: 0;
        }

        .divider {
            display: none;
        }

        .membership-middle {
            width: 100%;
            margin-top: 5rem;
        }

        .membership-right {
            width: 100%;
            padding-left: 0;
            margin-bottom: 0;
        }
    }

    @media (min-width: 992px) and (max-width: 1199px) {

        .membership-left h3 {
            margin-left: 6rem;
        }

        .divider {
            margin-left: 4rem;
            height: 14rem;
        }

        .membership-middle {
            margin-top: 0rem;
        }

        .membership-right {
            padding-left: 0rem;
            margin-bottom: -1rem;
        }

            .membership-right p {
                font-size: 1.1rem;
            }

        .membership-middle p {
            font-size: 1.1rem;
        }
    }

    @media (min-width: 1200px) {
        .membership-left h3 {
            margin-left: 6rem;
        }

        .divider {
            margin-left: 4rem;
        }

        .membership-middle {
            margin-top: -3rem;
        }

        .membership-right {
            padding-left: 0rem
        }
    }

    /* ========== Section Fifth =========== */

    /* SECTION */

    .loan-section {
        padding: 4rem 1rem;
        background: #f4f3f5;
        margin-top: 4rem;
    }

    /* HEADER */

    .loan-header {
        display: flex;
        justify-content: space-between;
        gap: 4%;
        margin-bottom: 3rem;
    }

        .loan-header h3 {
            color: #4f0071;
            font-size: 2.5rem;
        }

        .loan-header p {
            max-width: 40rem;
            line-height: 1.6;
            color: #333;
            font-size: 1.3rem;
        }

    /* LIST */

    .loan-list {
        max-width: 75rem;
    }

    /* ITEM */

    .loan-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.2rem 0;
    }

        .loan-item p {
            line-height: 1.6;
            color: #444;
            font-size: 1.1rem;
        }

        .loan-item strong {
            font-size: 1.3rem;
        }

    /* ICON */

    .loan-icon {
        width: 1.7rem;
        height: 1.7rem;
        background: #d7a441;
        border-radius: 50%;
        position: relative;
        flex-shrink: 0;
        bottom: 0.3rem;
    }

        .loan-icon::after {
            content: ">";
            position: absolute;
            color: white;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

    /* DIVIDER */

    .loan-divider {
        height: 0.18rem;
        background: #4f0071;
        width: 100%;
    }

    /* RESPONSIVE */
@media (max-width: 576px) {
    .loan-header {
        flex-direction: column;
        margin-bottom: 0;
    }
    .loan-section {
        padding: 2rem 1rem;
    }
    .loan-header h3 {
        font-size: 2rem;
    }
    .loan-header p {
        font-size: 1rem;
    }
}

    @media (min-width: 992px) and (max-width: 1199px) {
        .loan-section {
            padding: 2rem 2rem;
        }

        .loan-header {
            gap: 5rem;
            margin-bottom: 0rem;
        }
            .loan-header p {
                font-size: 1.2rem;
            }
    }


    /* ========== Section Sixth =========== */
    /* SECTION */
    .guidelines {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        color: #111;
    }

    /* WRAPPER */

    .guidelines-wrapper {
        display: flex;
        gap: 4%;
        background: #e7e4ea;
        padding: 2rem;
    }

    /* IMAGE */

    .guidelines-image {
        width: 45%;
    }

        .guidelines-image img {
            width: 100%;
            display: block;
            border-radius: 0.4rem;
        }

    /* CONTENT */

    .guidelines-content {
        width: 55%;
    }

    /* ACCORDION */

    .accordion1 {
        padding: 1rem 0;
    }

        .accordion1 span {
            border-bottom: 0.12rem solid #c69a34;
        }

        /* REMOVE DEFAULT ARROW */

        .accordion1 summary {
            list-style: none;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

            .accordion1 summary::-webkit-details-marker {
                display: none;
            }

            /* TITLE */

            .accordion1 summary span:first-child {
                font-size: 1.4rem;
                color: #4f0071;
                font-weight: 600;
            }

    /* ICON */

    .icon {
        width: 1rem;
        height: 1rem;
        border-right: 0.15rem solid #4f0071;
        border-bottom: 0.15rem solid #4f0071;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

    /* ROTATE WHEN OPEN */

    details[open] .icon {
        transform: rotate(-135deg);
    }

    /* CONTENT */

    .accordion1 p {
        margin-top: 1rem;
        line-height: 1.7;
        color: #444;
    }

    /* RESPONSIVE */
@media (max-width: 576px) {
    .guidelines .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .guidelines-wrapper {
        flex-direction: column;
    }
    .guidelines-image {
        width: 100%;
    }

    .guidelines-content {
        width: 100%;
    }
}

    @media (min-width: 992px) and (max-width: 1199px) {
        .guidelines {
            padding: 3rem 0rem;
        }

        .guidelines-wrapper {
            gap: 2rem;
        }

        .guidelines-image {
            width: 100%;
        }

            .guidelines-image img {
                width: 100%;
            }

        .guidelines-content {
            width: 100%;
        }

        .accordion1 {
            width: 100%;
        }

    }

    /* ========== Section Seventh =========== */

    /* SECTION */

    .hours-section {
        padding: 2rem 1rem;
    }

    .section-title {
        color: #4f0071;
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    /* WRAPPER */

    .hours-wrapper {
        display: flex;
        gap: 1.5rem;
    }

    /* CARD BASE */

    .card0 {
        padding: 2rem;
        width: 50%;
    }

    /* LEFT */

    .purple-card {
        background: #4f0071;
        color: white;
    }

        .purple-card h3 {
            margin-bottom: 1rem;
            font-size: 1.7rem;
        }

        .purple-card p {
            line-height: 1.6;
            color: #f5f5f5;
            font-size: 1.2rem;
            font-weight: 300;
        }

    /* RIGHT */

    .bordered-card {
        border: 0.12rem solid #4f0071;
        background: white;
    }

        .bordered-card h3 {
            margin-bottom: 1rem;
            font-size: 1.7rem;
            color: #111;
        }

        .bordered-card p {
            line-height: 1.6;
            color: #444;
            font-size: 1.2rem;
            font-weight: 400;
        }

    /* RESPONSIVE */
@media (max-width: 576px) {
    .card0 {
        padding: 2rem;
        width: 100%;
    }
    .hours-wrapper {
        flex-direction: column;
    }
    .hours-section .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

    @media (min-width: 992px) and (max-width: 1199px) {
        .hours-section {
            padding: 2rem 0rem;
        }

        .card0 {
            width: 50%;
        }
    }

    /* ========== Section Eighth =========== */

    /* SECTION */

    .resources-section {
        padding: 3rem 1rem;
    }

    /* BANNER */

    .banner {
        background: #21a696;
        color: white;
        border-radius: 0 2rem 2rem 0;
        padding: 1.4rem 2rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .banner-strip {
        width: 0.8rem;
        height: 4rem;
        background: #0d6f66;
    }

    .banner h3 {
        font-size: 2rem;
    }

    /* CARD */
    .wrapper {
        width: 100%;
        max-width: 80rem;
        position: relative;
        margin-top: 2rem;
        background: linear-gradient(to right, #e5e2e8 50%, #dcd8df 50%);
        padding: 3rem;
        border-radius: 1.6rem;
    }

    .content-box {
        border: 0.08rem solid #4f0071;
        border-radius: 2rem;
        padding: 3rem;
    }

    .title {
        font-size: 2.2rem;
        color: #4f0071;
        margin-bottom: 1.5rem;
    }

    .text {
        font-size: 1.05rem;
        line-height: 1.8;
        color: #333;
        min-height: 8rem;
        width: 80%;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .fade-out {
        opacity: 0;
        transform: translateY(1rem);
    }

    .fade-in {
        opacity: 1;
        transform: translateY(0);
    }

    /* ================== BUTTONS ================== */

    .buttons {
        position: absolute;
        right: 3rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        gap: 1rem;
    }

    .btn {
        border-bottom: none;
        border: none;
        margin-left: -2rem;
    }

    /* Responsive */
@media (max-width: 576px) {
    .wrapper {
        padding: 0.5rem;
    }
    .banner h3 {
        font-size: 1.5rem;
    }
    .title {
        font-size: 1.5rem;
    }
    .content-box {
        padding: 1rem;
        padding-bottom: 5rem;
    }
    .text {
        width: 100%;
    }
    .buttons {
        top: 95%;
        right: 6rem;
    }
}

    @media (min-width: 992px) and (max-width: 1199px) {
        .resources-section {
            padding: 3rem 0rem;
        }

        .banner {
            width: 100%;
        }

        .wrapper {
            width: 100%;
        }

        .text {
            width: 82%;
        }
    }