body {
   /* font-family: 'Montserrat', sans-serif;*/
    margin: 0;
    padding: 0;
    /* background-color: #f4f4f4;*/
    overflow-x: hidden;
}

.h4,
h4 {
    line-height: 3;
}

.navbar {
    background-color: #20295c;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    margin: 0 15px;
}

.btn,
.form-control {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary,
.btn-success {
    color: #fff;
    background-color: #20295C !important;
    border-color: #20295C !important;
}


.btn-primary:hover,
.btn-success:hover {
    background-color: #D8903B;
    border-color: #D8903B;
}

.btn-outline-secondary {
    color: #ffffff;
    border-color: #D8903B;
    background-color: #D8903B;
}

.btn-outline-secondary:hover {
    border-color: #20295C;
    background-color: #20295C;
}

.btn-primary:not(:disabled):not(.disabled):active,
.show>.btn-primary.dropdown-toggle {
    background-color: #d8903b;
    border-color: #d8903b;
}

.header {
    background-color: white;
    padding: 20px;
}

.header img {
    max-height: 100px;
}

.header .form-group {
    margin-bottom: 0;
}

.swiper-button-next,
.swiper-button-prev {
    top: var(--swiper-navigation-top-offset, 140%);
    color: #febf18;
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: var(--swiper-pagination-bottom, -8px);
}

.menu-bar {
    background-color: lightblue;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 50px;
    padding-right: 50px;
}

.menu-bar a {
    color: navy;
    text-decoration: none;
    font-size: 15px;
    margin: 5px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: navy;
    margin: 5px;
}

.menu-bar.responsive {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.smalltext {
    font-size: 0.75em;
    color: #333;
}

.smalltext a {
    color: #007bff;
    text-decoration: none;
}

.smalltext a:hover {
    text-decoration: underline;
}


/* General Dropdown Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Toggle Styling */
.dropdown-toggle {
    display: block;
    color: navy;
    text-decoration: none;
    padding: 10px 20px;
    background-color: lightblue;
    border: none;
    cursor: pointer;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Dropdown Item Styling */
.dropdown-item {
    color: navy;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Dropdown Item Hover Effect */
.dropdown-item:hover {
    background-color: #ddd;
}

/* Show Dropdown Menu on Hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Nested Dropdown Styling */
.dropdown-menu .dropdown {
    position: relative;
}

/* Adjust nested dropdown menu position */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 15px;
    border-radius: 0;
}

.accordion-button {
    background-color: #f8f9fa;
    border: none !Important;
    outline: none !Important;
    font-weight: bold !Important;
}

.accordion-button:focus {
    box-shadow: none;
}

.topper {
    height: 220px;
    background-image: url(/resources/image/resource_banner.jpg);
    background-size: cover;
}

.topper h3 {

    font-size: 24px;
    color: #fff;
    justify-content: center;
    float: right;
    margin-top: 180px;
    margin-right: 10px;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Position it on the bottom-right corner */
    z-index: 99;
    background-color: #D8903B;
    color: white;
    border: none;
    padding: 10px;
    /* Increase padding for more prominence */
    border-radius: 50%;
    font-size: 16px;
    display: none;
    /* Initially hidden */
    cursor: pointer;
    text-align: center;
    transition: opacity 0.4s, transform 0.2s;
    /* Add transition effects */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    /* Add shadow for a 3D effect */
}

#scrollToTopBtn:hover {
    background-color: #ffffff;
    transform: scale(1.1);
    color: #D8903B;
}

#scrollToTopBtn i {
    font-size: 24px;
    /* Adjust icon size for better visibility */
}

#calendarTitle {
    display: none !Important;
}

.calendar-container {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #f9f9f9;
}

.calendar-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ebook {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.cover-image {
    max-width: 120px;
    margin-right: 20px;
}

.ebook-details {
    flex: 1;
}

.ebook-details h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #20295c;
}

.ebook-details p {
    margin: 5px 0;
}

form {
    margin-top: 10px;
}

.resource-box {
    background-color: #f0f0f0;
    /* Light gray background */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    /* Smooth transition for hover effect */
    cursor: pointer;
    /* Indicate that the box is clickable */
}

.resource-box:hover {
    transform: scale(1.05);
    /* Slightly enlarge the box on hover */
}

@keyframes twirl {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-twirl {
    animation: twirl 0.5s ease-in-out;
}


.guide-container {
    margin: 30px auto;
    max-width: 1000px;
    background: #fff;
    padding: 20px 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

ul {
    margin-left: 20px;
    padding-left: 10px;
}

li {
    margin-bottom: 10px;
}

.tip-box {
    background: #f1f8ff;
    border-left: 5px solid #006699;
    padding: 10px 15px;
    margin-top: 20px;
    font-style: italic;
    color: #555;
}

.section-title {
    color: #333;
    font-size: 1.5em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-top: 30px;
}

.image-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Clearfix to prevent floating issues */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .modal-dialog {
        width: auto;
    }

    .menu-bar a {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .menu-bar.responsive a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .journal {
        flex: 1 1 100%;
    }

    .topper {
        height: 190px;
        background-image: url(/resources/image/resource_banner.jpg);
        background-size: contain;
    }

    .topper h3 {
        margin-top: 150px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        top: var(--swiper-navigation-top-offset, 130%);
    }

    .ebook {
        flex-direction: column;
        text-align: center;
    }

    .cover-image {
        margin: 0 auto 10px;
    }
}

.swiper-container {
    width: 100%;
    height: auto;
    overflow: hidden;
}


.swiper-slide img {
    max-width: 100%;
    height: auto;
}


.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    /*width: 100%;*/
    height: 200px;
}

.journal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.journal {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 10px;
    flex: 1 1 30%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.journal h3 {
    margin-top: 0;
    font-size: 22px;
    color: #2e3fa3;
}

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

.journal ul {
    display: none;
    margin-top: 10px;
}

.journal button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #D8903B;
    color: #004085;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.journal button:hover {
    background-color: #20295C;
    color: #ffffff;
}

.footer {
    background-color: #20295C;
    padding: 40px 0;
}

.footer .col-md-3 h5 {
    line-height: 3;
}

.footer .col-md-3 ul {
    list-style: none;
    padding-left: 0;
}

.footer .col-md-3 ul li {
    margin-bottom: 10px;
}

.footer .col-md-3 ul li a {
    color: #fff;
    text-decoration: none;
}

.footer .col-md-3 ul li a:hover {
    text-decoration: underline;
}

.footer .contact-info {
    display: flex;
    align-items: center;
}

.footer .contact-info i {
    margin-right: 10px;
}

.footer p,
.footer ul,
.footer h5 {
    text-align: left;
}