/* Landing Page CSS */
@import url('https://fonts.googleapis.com/css?family=Poppins:400,600,800');

html {
    font-size: 100%;
    overflow-x: hidden; 
    scrollbar-color: #9c9c9c #f1f1f1;    
}

* {
    scrollbar-width: thin;
    scrollbar-color: #444444 #f1f1f1;
}

body {
    background: white;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.75;
    color: #000000;
    font-display: swap;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    margin-top: 0;
    font-size: 2.4rem;
}

h2 {
    font-size: 1.9rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1rem;
}

/* Carousel Styles */
.carousel-caption {
    position: absolute;
    right: 15%;
    bottom: 25%;
    left: 15%;
    z-index: 10;
    padding: 20px;
    color: rgb(15,111,197);
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
}

a.btn-primary {
    border-radius: 7px;
}

.carousel-item {
    justify-content: center;
    align-items: center;
    min-height: 550px;
    padding: 20px;
    text-align: center;
}

.background-tint {
    background-color: rgba(200, 100, 0, .5);
    background-blend-mode: multiply;
}

/* Banner Logos */
.banner-logos {
    position: absolute;
    right: -20px;
    bottom: -20px;
    z-index: 11;
    padding: 20px;
}

.banner-logo-img {
    box-shadow: 0px 0px 10px 1px rgba(255, 255, 255, 0.75);
    max-height: 40px;
    width: auto;
}

/* Responsive Design */
@media screen and (max-width: 756px) {
    #banner {
        margin-top: 77px;
    }

    .carousel-caption {
        bottom: 10%;
    }
}

/* Mobile fixes: make banner occupy remaining viewport under the fixed nav
   and avoid excessively large fixed min-heights that push content off-screen. */
@media screen and (max-width: 480px) {
    /* Reduce navbar padding so it doesn't crowd the viewport */
    .nav-sticky {
        padding: 6px 12px !important;
    }

    /* Make each carousel item fill the remaining viewport height under the nav */
    .carousel-item {
        min-height: calc(100vh - var(--pcl-navbar-height, 56px)) !important;
        padding: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Keep banner logos inside the viewport on small screens */
    .banner-logos {
        right: 0.5rem !important;
        bottom: 0.5rem !important;
        padding: 8px !important;
    }

    .banner-logo-img {
        max-width: 32vw !important;
        max-height: 36px !important;
    }

    /* Make carousel caption more compact */
    .carousel-caption {
        left: 6% !important;
        right: 6% !important;
        bottom: 12% !important;
        padding: 12px !important;
        font-size: 0.95rem !important;
    }
}

/* Additional mobile safety fixes */
@media screen and (max-width: 480px) {
    /* Define a mobile navbar height variable so calc() works reliably */
    :root {
        --pcl-navbar-height: 56px;
    }

    /* Ensure banner backgrounds cover and inner carousel stretches */
    #banner,
    #banner .carousel-inner,
    #banner .carousel-item {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    #banner .carousel-inner {
        height: calc(100vh - var(--pcl-navbar-height)) !important;
    }

    /* Keep banner logos inline and visible without overflowing vertically */
    .banner-logos {
        position: absolute !important;
        right: 0.5rem !important;
        bottom: 0.5rem !important;
        padding: 6px !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
        align-items: center !important;
        max-width: calc(100% - 1rem) !important;
        overflow: hidden !important;
    }

    .banner-logo-img {
        max-width: 28vw !important;
        max-height: 36px !important;
        height: auto !important;
    }

    /* Disable the auto-scrolling sponsor carousel on small screens to avoid layout overflow */
    .sponsor-carousel,
    .sponsor-carousel__track {
        display: none !important;
        animation: none !important;
    }

    /* Make sure any floating right-side elements are hidden on narrow screens */
    .pcl-floating-callout,
    .pcl-floating-cta {
        display: none !important;
    }
}

/* When the mobile menu is opened we add `pcl-sidebar-collapsed` to the body.
   On small screens this should hide the fixed sidebar and allow content to fill width. */
@media screen and (max-width: 768px) {
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed .pcl-sidebar,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed .pcl-sidebar {
        display: none !important;
    }

    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #page-wrapper,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #page,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #page-content,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #region-main-box,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #region-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Generic rule: when JS toggles `pcl-sidebar-collapsed` ensure the fixed sidebar hides
   and content fills the viewport on small screens regardless of other body classes. */
@media screen and (max-width: 768px) {
    body.pcl-sidebar-collapsed .pcl-sidebar {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.pcl-sidebar-collapsed #page-wrapper,
    body.pcl-sidebar-collapsed #page,
    body.pcl-sidebar-collapsed #page-content,
    body.pcl-sidebar-collapsed #region-main-box,
    body.pcl-sidebar-collapsed #region-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Strong mobile layout reset: ensure page containers use full width on small screens */
@media screen and (max-width: 768px) {
    body.path-local.path-local-pcl_landing #page,
    body.path-local.path-local-pcl_landing #page.drawers,
    body.path-local.path-local-pcl_landing #page.drawers #topofscroll,
    body.path-local.path-local-pcl_landing #page-wrapper,
    body.path-local.path-local-pcl_landing #page #region-main,
    body.path-local.path-local-pcl_landing #region-main-box,
    body.path-local.path-local-pcl_landing #page-content,
    body.path-local.path-local-pcl_landing #topofscroll,
    body.path-local.path-local-pcl_landing #portals {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #page,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #page.drawers,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #page.drawers #topofscroll,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #page-wrapper,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #page-content,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #region-main-box,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #region-main,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #region-main > div[role="main"],
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #page,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #page.drawers,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #page.drawers #topofscroll,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #page-wrapper,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #page-content,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #region-main-box,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #region-main,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #region-main > div[role="main"] {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.path-local.path-local-pcl_landing .embedded-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #banner,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #portals.row.portals,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed .features,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed .sponsors,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed .subjects,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed .workbooks {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #portals.row.portals .row.justify-content-center,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #custom_footer.justify-content-center {
        justify-content: flex-start !important;
    }

    body.path-local.path-local-pcl_landing #banner,
    body.path-local.path-local-pcl_landing #banner .carousel-inner,
    body.path-local.path-local-pcl_landing #banner .carousel-item,
    body.path-local.path-local-pcl_landing #portals.row.portals,
    body.path-local.path-local-pcl_landing .features,
    body.path-local.path-local-pcl_landing .sponsors,
    body.path-local.path-local-pcl_landing .subjects,
    body.path-local.path-local-pcl_landing .workbooks {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Add these sections to complete the landing styles */

/* Workbooks section styles */
.bs-example {
    margin: 20px;
}

.accordion .fa {
    margin-right: 0.5rem;
}

.booksimgdiv {
    overflow: hidden;
}

.booksimgdiv img {
    width: 100%;
}

.booksimgdiv img:hover {
    -webkit-transform: rotate(2deg) scale(1.5);
    -ms-transform: rotate(2deg) scale(1.5);
    transform: rotate(2deg) scale(1.5);
}

.workbooks h1, p {
    color: rgb(15,111,197)
}

/* Portal/Subject card styles */
/* .card {
    width: 100%;
    border-radius: 15px !important;
    cursor: pointer;
    height: 250px;
} */

/* .card-body {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    padding: 1rem !important;
} */

.card-title {
    margin: 0;
    line-height: 30px;
}

.card-subtitle {
    font-weight: 200;
    line-height: 1.5rem;
}

.card--main-image {
    border-radius: 50px;
    max-height: 70px;
    max-width: 70px;
    margin: 0 auto;
}

/* Section spacing */
.sponsors,
.subjects,
.workbooks {
    margin: 20px 50px 20px 50px;
    padding: 20px;
}

.workbooks {
    border-radius: 10px;
    border: none;
    background: #0094c31a;
}

/* Features Section Styles */
.features {
    background: #0094c31a;
    border-radius: 10px;
    padding: 40px;
    /* margin: 0 auto; */
}

.features h1, p {
    color: #217a94;
}

.features h2 {
    color: #217a94;
    margin-bottom: 20px;
}

.features ul {
    list-style: none;
    padding-left: 0;
}

.features li {
    margin-bottom: 15px;
    color: #217a94;
    font-size: 1.1rem;
}

#features.row.features {
    margin: 0 60px;
}

.icon-feature {
    max-height: 100px;
    margin-top: 20px;
}

.actionbtn {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 7px;
}

.pcl-modal-close {
    min-width: 2.25rem;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-footer .registration-btn {
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.95rem;
    padding: 0.8rem 1.25rem;
    font-weight: 600;
}

.modal-footer .registration-btn + .registration-btn {
    margin-top: 0.25rem;
}

.modal-footer {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
}

@media only screen and (max-width: 985px) {
    .actionbtn {
        margin: 1px;
        width: 100%;
    }
}

.sponsor-carousel {
    margin-top: 20px;
}

.sponsor-carousel__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #217a94;
    font-weight: 700;
}

.sponsor-carousel__viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 0.5rem 0;
}

.sponsor-carousel__track {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    width: max-content;
    will-change: transform;
    animation: sponsor-carousel-scroll var(--sponsor-carousel-duration, 40s) linear infinite;
}

.sponsor-carousel__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: clamp(9rem, 12vw, 13rem);
    text-decoration: none;
}

.sponsor-carousel__image {
    max-height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.sponsor-carousel:hover .sponsor-carousel__track,
.sponsor-carousel:focus-within .sponsor-carousel__track {
    animation-play-state: paused;
}

@keyframes sponsor-carousel-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--sponsor-carousel-distance, 50%)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .sponsor-carousel__track {
        animation: none;
        transform: none;
    }
}

.carousel-control-prev,
.carousel-control-next {
    outline: 0;
    box-shadow: none !important;
    top: 25%;
}

/* Portal Section Core Styles */
#portals.row.portals {
    margin: 0 auto;
    padding: 0px 20px 0px 0px;
}

.card-selector {
    width: 100%;
    border-radius: 15px !important;
    cursor: pointer;
}

/* .card-body {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    padding: 1rem !important;
} */

.card-title {
    margin: 0;
    line-height: 30px;
    color: white;
}

.card-subtitle {
    font-weight: 200;
    line-height: 1.5rem;
    color: white;
}

.card--main-image {
    border-radius: 50px;
    max-height: 70px;
    max-width: 70px;
}

/* Info Banner Styles */
.info-banner .rounded-pill {
    transition: transform 0.2s ease;
}

.info-banner:hover .rounded-pill {
    transform: translateX(10px);
}

/* Badge and Sticker Images */
#badge-images img,
#sticker-images img {
    height: 40px;
    width: 40px;
    transition: transform 0.2s ease;
}

#badge-images img:hover,
#sticker-images img:hover {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .pcl-portals {
        margin: 10px;
        padding: 10px;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
    }
    
    .headline-banner {
        padding: 15px;
    }
    
    .headline-banner a {
        font-size: 1.2rem;
    }
}

/* Navbar Adjustments*/
.nav-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: auto;
    min-height: fit-content;
    padding: 10px 40px 10px 40px;
}

.navbar-brand img {
    max-height: 80px;
}

.navbar .nav-link.nav-link-color {
    color: rgba(36,124,149,255);
    position: relative;
    text-decoration: none;
}

.navbar .nav-link.nav-link-color::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: rgba(36,124,149,255);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
    color: rgba(36,124,149,255);
}

.navbar .nav-link.nav-link-color:hover::after {
    width: 100%;
}

.navbar .nav-link.nav-link-color:hover {
    color: rgba(36,124,149,255);

}

@media(max-width: 992px) {
    .navbar .nav-link.nav-link-color::after {
        left: 7%;
    }

    .navbar .nav-link.nav-link-color:hover::after {
        width: 15%;
    }
}

/* Card CSS */
.card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-footer a {
    margin-top: 10px;
    width: 100%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.025);
    }
    100% {
        transform: scale(1);
    }
}

.card:hover .card-footer a{
    animation: pulse 1.5s infinite;
}

.img-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.img-row img {
    max-width: 100%;
    height: 55px;
    object-fit: contain;
}

.card {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    cursor: pointer;
    margin: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px !important;
    transition: box-shadow 0.3s ease;
    min-height: fit-content;
}

.card-body {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    height: auto;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    padding: 1rem 1rem 2rem 1rem !important;
}

/* Carousel Styles */

#sponsorcarousel img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    padding: 5px;
}

.list_carousel {
    padding-bottom: 40px;
}

.list_carousel small {
    color: rgb(15,111,197);
}

/* Custom Footer */
.custom_footer {
    background-color: rgb(17,119,209);
    color: #fff;
    padding: 20px;
}

.custom_footer a {
    color: #fff;
    text-decoration: none;
}

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

/* Final mobile landing-shell reset. Must live at the end so it wins over the
   broader landing-shell width rules above on small screens. */
@media screen and (max-width: 768px) {
    body.path-local.path-local-pcl_landing,
    body.path-local.path-local-pcl_landing .embedded-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.path-local.path-local-pcl_landing #banner,
    body.path-local.path-local-pcl_landing #banner .carousel-inner,
    body.path-local.path-local-pcl_landing #banner .carousel-item,
    body.path-local.path-local-pcl_landing #portals.row.portals,
    body.path-local.path-local-pcl_landing .features,
    body.path-local.path-local-pcl_landing .sponsors,
    body.path-local.path-local-pcl_landing .subjects,
    body.path-local.path-local-pcl_landing .workbooks,
    body.path-local.path-local-pcl_landing #custom_footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Guest landing page mobile reset: remove Bootstrap gutters and card
       margins that leave the content floating in from the left edge. */
    body.path-local.path-local-pcl_landing .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.path-local.path-local-pcl_landing .row > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.path-local.path-local-pcl_landing .card-selector {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.path-local.path-local-pcl_landing .card-main,
    body.path-local.path-local-pcl_landing #portals.row.portals > .card-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.path-local.path-local-pcl_landing .features,
    body.path-local.path-local-pcl_landing .sponsors,
    body.path-local.path-local-pcl_landing .subjects,
    body.path-local.path-local-pcl_landing .workbooks,
    body.path-local.path-local-pcl_landing #custom_footer {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Landing login errors need to float above the high-z-index login modal. */
body.path-local.path-local-pcl_landing .swal2-container {
    z-index: 100001 !important;
}
