/* #region Utility Classes*/

.search-container-bubble {
    position: fixed;
    top: 80px;
    right: 5px;
    display: flex;
    align-items: center;
    border-radius: 50px;
    padding: 5px;
    transition: width 0.3s ease-in-out;
    width: 50px;
    overflow: hidden;
}

.search-bubble-bubble {
    width: 30px;
    height: 30px;
    background-color: #198754;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.search-bubble-bubble:hover {
    transform: scale(1.1);
}

.search-input-bubble {
    width: 0;
    opacity: 0;
    border: none;
    outline: none;
    padding: 5px;
    font-size: 14px;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    background: transparent;
    color: #e6e6ed;
}

.profile-type-text {
    font-size: 0.85em; /* Slightly smaller font size */
    color: #888; /* Gray color */
}

.search-container-bubble.expanded {
    width: 250px;
    right: 30px;
    background-color: #e6e6ed;
    border-radius: 50px;
    padding: 5px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #198754;
}

.search-container-bubble.expanded .search-input-bubble {
    width: 200px;
    opacity: 1;
    color: black;
}

.search-container-bubble.expanded .search-bubble-bubble {
    display: none; /* Hide the search icon when expanded */
}

.close-btn-bubble {
    display: none;
    margin-left: 5px;
    cursor: pointer;
    color: #198754;
}

.search-container-bubble.expanded .close-btn-bubble {
    display: block;
}


/* Medium devices (landscanp tablets, 768px and up) */
@media only screen and (min-width: 768px) {
 
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    /* .card {
        width: 15rem;
        margin-top: 0.5rem;
    } */
    .card-body {
        margin-bottom: 1rem;
    }
    .card-body a {
        position: absolute;
        bottom: 0;
        margin-bottom: 0.5rem;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

}
/*#endregion */

/* #region Section: Splash Screen */
#fiwiScienceOffers {   
    display: block; 
    position: relative; 
    visibility: hidden; 
    top: -70px;  
}

#secnSplashScreen {
    display: flex;
    /* align-items: center; */
    justify-content: center;
    height: calc(100vh - 66px); /*66px is the max height of the navbar*/
    border-bottom: 1px solid #dee2e6;
}

#divSplashScreenLogo {
    display: flex;
    justify-content: center;
    max-height: 48vh;
}

#divSplashScreenText {
    position: relative;
    max-height: 50vh;
    height: 40vh;
    max-width: 25rem;
    margin: auto;
}

.hero-text {
    font-size: 2.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    margin: 1rem;
}

#divHeroAction {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    margin: auto;
}

.hero-btn {
    font-weight: bold;
    padding: 20px;
    border-radius: 100px;

}

/* Medium devices (landscanp tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    #secnSplashScreen {
        align-items: flex-start;
    }

    #divHeroAction {
        margin-top: 2rem;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #divSplashScreenContentContainer {
        /* position: absolute;
        bottom: 0;
        right: 0;
        left: 0; */
        display: flex;
        justify-content: center;
        align-items: center;
        column-gap: 50px;
        width: 100%;
        height: 100%;
        margin: auto;
    }

    #divSplashScreenLogo {
        max-height: 100vh;
        width: 45%;
    }

    #divSplashScreenLogo img {
        width: 100%;
    }

    #divSplashScreenText {
      margin: 0;
    }

    .hero-text {
        font-size: 4rem;
        margin: 0;
    }

    #divHeroAction {
        position: static;
        display: block;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

}
/*#endregion */

/* #region Section: FiwiScience offers */
/* #divFiwiScienceOffers {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
    padding-top: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
} */

#secnNavigation {
    background-color: #f8f8fF;
    padding: 20px 3rem 60px 3rem;
}

#secnSearch {
    background-color: #f8f8fF;
    padding: 60px 0.5rem 60px 0.5rem;
    display: flex;
    justify-content: center;
}

#secn-news-carousel {
    background-color: #f8f8fF;
    /* padding: 1.5rem; */
    /* display: flex; */
    justify-content: center;
    overflow: hidden;
    border-radius: 0.375rem;
}

/* .splide__arrow{
    display: inline-block !important;
}

.splide__pagination{
    display: inline-block !important;
} */

.section-divider {
    border: none;
    border-top: 1px solid #d0d0d0; /* Thin grey line */
    width: 60%; /* Adjust width as needed */
    margin: 10px auto; /* Centers the line */
}

#search-container {
    width: 80%; /* Adjust width to make it fairly big */
    max-width: 800px; /* Prevents it from getting too wide */
    background-color: #ffff; /* Grayish background like the screenshot */
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #deb027;
    box-shadow: 4px 4px 9px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border 0.2s ease-in-out;
}

#search-container:hover {
    transform: scale(1.01); /* Slight increase in size */
    /* box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);  */
    border: 5px solid #deb027; /* Subtle border color change */
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 10px;
    outline: none;
}

.search-icon {
    color: #b0b0b0; /* Light gray icon */
    font-size: 18px;
    margin-left: 10px;
}


/* Make sure the search container has position relative for proper dropdown positioning */
#search-container {
    position: relative;
}

.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
    z-index: 1000;
}

.ui-autocomplete .ui-menu-item {
    padding: 5px 10px;
    cursor: pointer;
    
}

/* The hover/active/focus overrides */
.ui-autocomplete .ui-state-active,
.ui-autocomplete .ui-state-focus,
.ui-autocomplete .ui-menu-item:hover {
    background-color: #f0f0f0 !important; /* Light grey background */
    color: #000 !important;               /* Black text */
    font-weight: bold !important;         /* Bold text */
    outline: none !important;
    border: none !important;
}

#search-container {
    position: relative;
}

#divFiwiScienceOffers {
    display: grid;
    gap: 1.5rem;
    /* margin-top: 0.5rem; */
}

#divIconCard {
    display: grid;
    gap: 1rem;
    text-align: center;
    /* grid-template-rows: 1fr 1fr; */
}

#divEventCard {
    display: grid;
    gap: 1rem;
    /* max-height: 100vh; */
}

#divNewsCard {
    display: grid;
    gap: 1rem;
    height: inherit;
}

.fiwi-icon-card{
    position: relative;
    border-radius: 3em;
    height: 100%;
    background-color: #ffff;
    border: 1px solid transparent; 
    text-decoration: none; 
    color: inherit;
    /* max-height: 40vh */
}

.fiwi-news-card{
    position: relative;
    border-radius: 3em;
    height: 100%;
    background-color: #e6e6ed;
    border: 1px solid transparent; 
    text-decoration: none; 
    color: inherit; 
    max-height: 50vh
}

.fiwi-event-card{
    position: relative;
    /* border-radius: 3em; */
    height: 100%;
    background-color: #ffff;
    /* border: 1px solid #619c80;  */
    text-decoration: none; 
    color: inherit; 
    /* max-height: 50vh; */
    padding: .5rem
}

.fiwi-event-card .fc-h-event {
    background-color: transparent !important;
    /* border: none !important; */
}

.event-icon-container {
    position: relative;
    cursor: pointer; /* Ensures it's recognized as hoverable */
}

#full-event-container {
    display: none;
    transition: all 0.3s ease;
  }
  

/* Change tooltip background color & text */
.tooltip-inner {
    background-color: #333; /* Dark gray */
    color: #fff; /* White text */
    font-size: 14px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: left;
}


/* Change tooltip arrow color */
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #333 !important;
}
.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #333 !important;
}
.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #333 !important;
}
.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #333 !important;
}

/* .event-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  } */
  
.event-links{
    text-align: right;
    margin-bottom: 0.25rem;
}

  .event-links a {
    text-decoration: none;
    font-weight: bold;
    color: #005622; /* Link color */
    
  }

  .event-links a:hover {
    color: #03a544; /* Darker color on hover */
    transform: scale(1.05); /* Slightly increase the size on hover */
  }

#news-outer-card{
    background-color: #e6e6ed;
    margin: 0 1rem;
    border-radius: 0.375rem;
    padding: 1rem;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out, border 0.1s ease-in-out;
    height: 100%;
}

#news-outer-card:hover {
    /* transform: scale(0.95);  */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15); /* Slight highlight effect */
    border: 2px solid #619c80; /* Subtle border color change */
}

.card-img-top {
    border-radius: inherit; /* Inherits the border-radius from the card */
    overflow: hidden;
    object-fit: fill;
}


.fiwi-offer-card {
    display: flex;
    column-gap: 1.5rem;
    position: relative;
    padding: 10px;
    border-radius: 0.375rem;
    height: 100%;
    background-color: #e6e6ed;
    border: 1px solid transparent; /* Start with a transparent border */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.025);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border 0.2s ease-in-out;
    text-decoration: none; /* Removes default link styling */
    color: inherit; /* Keeps text color the same */
}

.fiwi-offer-card:hover {
    transform: scale(1.05); /* Slight increase in size */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15); /* Slight highlight effect */
    border: 2px solid #619c80; /* Subtle border color change */
}

.fiwi-offer-img-container {
    display: flex;
    align-items: flex-start;
}

.fiwi-offer-img {
    height: 48px;
    width: 48px;
}

.fiwi-offer-info-body {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
    margin-top: 1rem;
    min-height: 4.5rem;
    font-size: 19px;
}

.fiwi-icon-info-body {
    row-gap: 0.5rem;
    margin-top: 1rem;
    height: 85%;
}

/* Medium devices (landscanp tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    #divFiwiScienceOffers {
        grid-template-columns: repeat(2, 1fr);
    }

    #divIconCard {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
        gap: 3rem
    }

    #divEventCard {
        grid-template-columns: 2fr 3fr;
        text-align: left;
        gap: 3rem
    }

    #divNewsCard {
        grid-template-columns: repeat(2, 1fr);
    }

    #secnNews {
        padding: 20px 3rem 60px 3rem;
    }

    #secnScienceIcon{
        padding: 10px 8rem 30px 8rem !important;
    }
    
    

    /* .fiwi-icon-card{
        max-height: 30vh;
    } */
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    /* #divFiwiScienceOffers {
        display: flex;
        flex-direction: row;
        row-gap: 0;
        padding: 0;
        justify-content: space-evenly;
        align-items: normal;
    } */

    #divFiwiScienceOffers {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 3rem;
    }

    #divIconCard {
        grid-template-columns: 2fr 3fr;
        column-gap: 3rem;
        text-align: left;
    }

    #divEventCard {
        grid-template-columns: 2fr 2fr;
        column-gap: 3rem;
        text-align: left;
    }

    #divNewsCard {
        grid-template-columns: 2fr 3fr;
        column-gap: 1rem;
    }
    
    .fiwi-offer-info-body {
        min-height: 6rem;
    }

    /* #secnNavigation {
        background-color: #f8f8fF;
        padding: 20px 4rem 60px 4rem;
    } */

    #search-container {
        width: 60%;
    }

    .fiwi-event-card{
        /* max-height: 75vh; */
    }

    /* .fiwi-icon-card{
        max-height: 50vh;
    } */
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    /* #divFiwiScienceOffers {
        /* height: 45vh; 
    } */

    .fiwi-offer-info-body {
        min-height: 3.5rem;
    }



    .card-text{
        font-size: 1.25rem;
    }

    .lead{
        font-size: 1.5rem;
    }

    .fiwi-news-card{
        max-height: 30vh;
    }

    .fiwi-event-card{
        /* max-height: 75vh; */
    }

}
/* #endregion */

/* #region Section: Highlights (Recent Posts, Events, Meet an Icon) */

#secnHighlights {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    /* background-color: #f8f8fF; */
}

#divHighlights section {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

/* #divHighlights {
    height: 100%;
} */

#secnScienceIcon{
    height: 100%;
    background-color: #f8f8fF;
    padding: 10px 3rem 30px 3rem;
}

#secnEvents{
    /* border-top: 2px solid #3f3f40; */
    background-color: #ffff; 
    padding: 30px 3rem 30px 3rem;
    height: auto;
}

#secnNews{
    background-color: #f8f8fF;
    padding: 20px 0.5rem 20px 0.5rem;
    height: 100%;
}


/*SubSection: Meet an Icon*/
#divScienceIconList {
    margin: 0 auto 0 auto;
    height: 100%;
    max-height: 80vh;
}

.scicon-container {
    height: 100%;
}

.scicon-container .card{
    margin: auto;
    width: 100%;
    max-width: 100vw;
    max-height: 100%;
}

#divCardTextContainer {
    height: inherit;
}

/*Sub-section: Recent Posts */
#divPostContainer {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
    overflow: auto;
    max-height: 80vh;
    margin: 0 auto 0 auto;
}

#divPostContainer .post {
    background-color: #ffffff;
}

/*Sub-section: Events */
#divEventList {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
    overflow: auto;
    /* height: 50%; */
    max-height: 80vh;
    margin: 0 auto 0 auto;
}

/* #divEventList .event-container:nth-child(odd) {
    background-color: #f8f8fF;
} */

.event-container {
    padding: .5rem;
    background-color: #f0f0f2;
    margin-bottom: .75rem;
    box-shadow:  1px 2px 2px rgb(0 0 0 / 31%);
    border-radius: 3rem;
    /* border: 1px solid #0c442a; */
    width: 100%;

}
/* CALENDAR FORMATTING */

.fiwi-event-card .fc-view-harness{
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    border: 1px solid #0000001f;
}

.fc-col-header-cell-cushion {
    color: #198754;
    font-weight: bold;
    text-decoration: none;
}

.fc-header-toolbar{
    padding: .25rem;
    background-color: #f0f0f2;
    /* box-shadow: 1px 2px 2px rgb(0 0 0 / 31%); */
    border-radius: .375rem;
    border: 1px solid #0c442a;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgb(255 213 0 / 34%) !important;
}

.fc .fc-toolbar-title {
    font-size: calc(1.275rem + .3vw) !important;
}


.fc-today-button{
    background-color: #198754 !important;
}

.fc-next-button, .fc-prev-button{
    background-color: black !important;
}

.fc-daygrid-day-number{
    color: black;
    text-decoration: none;
}

.event-body {
    display: flex;
    column-gap: 0.5rem;
}


/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #secnHighlights {
        /* max-height: 80vh; */
    }

  #divPostContainer, #divScienceIconList, #divEventList {
    /* min-height: 60vh; */
    /* height: 100%; */
    width: 70%;
  }

  #divScienceIconList, .scicon-container, #divScienceIconList .card {
    /* width: 100%; */
  }

  #divPostContainer, #divScienceIconList, #divEventList {
    /* width: 80%; */
  }

  #divEventList {
    /* width: 100%; */
  }

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    #divHighlights {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2rem;
        justify-content: space-evenly;
        /* justify-content: space-evenly;
        align-items: stretch; */
        align-items: stretch;
        padding: 1rem;
    }
    
    #secnEvents, #secnPosts {
        /* height: 60vh; */
        /* height: auto; */
    }
    
    /* #divHighlights section {
        flex-grow: 1;
        width: 50%;
    } */

    #divPostContainer, #divScienceIconList, #divEventList {
        /* min-height: 60vh; */
        /* height: 100%; */
        width: 100%;
    }

    .scicon-container .card img {
        max-height: 40vh;
    }
    
}
/* #endregion */
