@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&display=swap");

/* Homepage for Impuls */

/* Main */

/* Header */

.header {
    color: var(--textColorLight);
    background: linear-gradient(180deg, var(--primaryColorLighte) 0%, var(--primaryColor) 100%);
    margin: 0;
    min-height: 68vh;
    padding-top: 58px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.hero-text-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
    padding: 4rem 1rem 3.5rem;
}

.hero-text-box .text {
    color: var(--textColorLight);
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 100%;
}

.hero-text-box .text h1 {
    text-transform: uppercase;
    display: block;
    margin-bottom: 0;
    font-size: clamp(3.2rem, 1.9rem + 4.4vw, 6.2rem);
    font-family: "Libre Baskerville", "Bookman Old Style", Georgia, serif;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transform-origin: 50% 50%;
    -webkit-animation: impulsHeroTitle 1.3s 2.5s both cubic-bezier(.22,.61,.36,1);
    animation: impulsHeroTitle 1.3s 2.5s both cubic-bezier(.22,.61,.36,1);
}

.hero-text-box .text h3 {
    display: block;
    text-align: center;
    font-size: clamp(0.92rem, 0.72rem + 0.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: min(1vh, 1vw);
    -webkit-animation: fadeIn 4.5s ease-in;
    animation: fadeIn 4.5s ease-in;
    white-space: nowrap;
}

.albin {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(14rem, 34vh, 24rem);
    aspect-ratio: 1 / 1;
    height: auto;
    margin-top: 0;
    overflow: visible;
    position: relative;
}

.albin svg,
.albin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.albin svg {
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.20));
    overflow: visible;
}

.hero-text-box .albin path {
    stroke: var(--secondaryColor);
    stroke-width: 0.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: var(--secondaryColor);
    fill-opacity: 0;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 1;
    -webkit-animation: animate 7s linear forwards;
            animation: animate 7s linear forwards;
}

.hero-text-box img {
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.20));
    -webkit-animation: impulsLogoEnter 1.1s both cubic-bezier(.18,.84,.32,1);
    animation: impulsLogoEnter 1.1s both cubic-bezier(.18,.84,.32,1);
}

@keyframes impulsLogoEnter {
    0% {
        opacity: 0;
        transform: scale(0.88) rotate(-4deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@-webkit-keyframes impulsLogoEnter {
    0% {
        opacity: 0;
        transform: scale(0.88) rotate(-4deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes impulsHeroTitle {
    0% {
        opacity: 0;
        transform: scale(0.88);
        filter: blur(4px);
    }
    60% {
        opacity: 1;
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@-webkit-keyframes impulsHeroTitle {
    0% {
        opacity: 0;
        transform: scale(0.88);
        -webkit-filter: blur(4px);
                filter: blur(4px);
    }
    60% {
        opacity: 1;
        -webkit-filter: blur(1px);
                filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        -webkit-filter: blur(0);
                filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-text-box .albin path,
    .hero-text-box img,
    .hero-text-box .text h1 {
        -webkit-animation: none;
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* Albin animation */
@-webkit-keyframes animate {
    0% {
        opacity: 0;
        fill-opacity: 0;
        stroke-dashoffset: 1;
    }
    48% {
        opacity: 1;
        fill-opacity: 0;
        stroke-dashoffset: 0.76;
    }
    54% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0.72;
    }
    80% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0;
    }
    100% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0;
    }
}
@keyframes animate {
    0% {
        opacity: 0;
        fill-opacity: 0;
        stroke-dashoffset: 1;
    }
    48% {
        opacity: 1;
        fill-opacity: 0;
        stroke-dashoffset: 0.76;
    }
    54% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0.72;
    }
    80% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0;
    }
    100% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0;
    }
}

/*About content*/

.about{ 
    background-color: var(--secondaryColor);
    color: var(--textColorDark);
    min-height: 35vh;
    padding: 20px;
}

/*NEWS-EVENTS*/

.news-events {
    color: var(--textColorDark);
    margin-top: 0;
    background: linear-gradient(180deg, var(--secondaryColorDarker) 0%, var(--secondaryColor) 100%);
    word-break: break-all;
    word-break: break-word;
    hyphens: auto;
}

.section-title p{
    text-align: center;
    font-weight: 500;
    line-height: 2.2;
    color: #878787;
}

/*News start*/

.main-container{
    display: grid;
    grid-template-columns: 1fr 850px 350px 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
      ". news events ."
      ". news extras ."
      ". ig-scroll ig-scroll .";
    grid-column-gap: 3vw;
}

.text-size{
    font-weight: bold;
}

.feed-container{
    grid-area: news;
}

.news-container{
    display: grid;
    grid-row-gap: 1vh;
    padding-bottom: 10px;
}

.news-box{
    background-color: var(--secondaryColor);
    padding: 10px;
    border-radius: 5px;
}

.news-content img{
    max-height: 30vh;
    max-width: 100%;
    /* keep img ratio correct */
    width: auto !important;
    height: auto !important;
    border-radius: 3px;
}

.news-date{
    color: var(--helpText);
}

div.news-content a{
    display: inline-block;
    color: var(--linkColorDark);
}

div.news-content a:hover{
    color: var(--linkColorDarkHover);
}

.more-news{
    /* Sits directly on the navy page background, not a white card, so this
     * uses --linkColorDeepHover rather than --linkColorDeep: the fully dark
     * shade only clears ~1.6:1 contrast here, well under WCAG's 3:1 minimum
     * for text. --linkColorDeepHover already clears 3.8:1. */
    color: var(--linkColorDeepHover);
}

.more-news:hover{
    color: var(--linkColorDeepLight); /* ~6.2:1 on navy */
}

.news-header{
    position: relative;
}

@keyframes shine {
    0% {
        background-position: -100% 0, 0 0;
    }
    50% {
        background-position: 200%0, 0 0;
    }
    100% {
        background-position: -100% 0, 0 0;
    }
}

.aa-img {
    background-color:transparent;
    width:35px;
    height:35px;
    border-radius:50px;
    box-shadow: 0 0 6px 2px rgb(201, 115, 142);
    -webkit-animation: pulse 2s linear 1s infinite;
    animation: pulse 2s linear 1s infinite;
    position: absolute;
    left: 95%;
    bottom: 0%;
  }


.aa-img img{
    max-width: 100%;
    border-radius: 20px;
    -webkit-filter: saturate(45%); /* Safari 6.0 - 9.0 */
    filter: saturate(45%);
}

@-webkit-keyframes pulse {
    0% { box-shadow:0 0 6px 2px rgb(201, 115, 142);}
    50% { box-shadow:0 0 14px 2px rgb(201, 115, 142);}
    100% { box-shadow:0 0 6px 2px rgb(201, 115, 142);}
}

@keyframes pulse {
    0% { box-shadow:0 0 6px 2px rgb(201, 115, 142); }
    50% { box-shadow:0 0 14px 2px rgb(201, 115, 142); }
    100% { box-shadow:0 0 6px 2px rgb(201, 115, 142); }
}
    

/*News end*/

/*Sidebar*/

/*Event start*/

  
.card {
    border-radius: var(--defaultRadius);
  }
  
.card .fa-chevron-right{
    transition: .3s;
  }
  
.card a:hover .fa-chevron-right{
    transform: translateX(10px);
  }
  
.event-card > .card .list-inline-item {
    color: var(--helpText);
    font-size: 14px;
  }
  
.event-card > .card .badge {
    background: var(--primaryColorLighter);
  }
  
.event-card > .card {
    background: var(--secondaryColor);
  }
  
.event-card a{
    color: var(--linkColorDeep);
    border-top: 2px solid var(--linkColorDeep);
  }

.event-card a:active{
    color: var(--linkColorDeep);
  }

.event-card a:hover{
    background-color: inherit;
    border-top: 2px solid var(--linkColorDeepHover);
    color: var(--linkColorDeepHover);
  }
  
.event-card a:focus{
    background-color: inherit;
    box-shadow: none;
  }

.chevron-box {
    margin: auto; 
    border: 1px solid var(--linkColorDark);
    border-radius: 5px;
    padding: 5px;
}

.text-color {
    color: var(--textColorDark);
}

.card {
    box-shadow: 3px 3px 5px 0px rgba(133,133,133,1);
}

.card:hover {
    transform: scale(1.01);
}

.card:hover .fa-chevron-right{
    transform: translateX(10px);
  }

.events-container{
    grid-area: events;
    display: block;
}

.events{
    display: grid;
    grid-row-gap: 10px;
}

.event-box{
    display: grid;
    /*background-color: var(--primaryColorLighter);*/
    background-color: var(--secondaryColor);
    color: var(--textColorDark);
    text-align: left;
    padding: 1px;
    -webkit-transition: all 0.2s;
	-moz-transition: all 0.2s;
    transition: all 0.2s;
    border-top: var(--linkColorDark) solid 2pt;
    box-shadow: 3px 3px 5px 0px rgba(133,133,133,1);
    display: grid;
    grid-template-columns: 3fr 1fr;
    border-radius: 5px;
}

.event-box:hover {
    color: var(--textColorLight);
    background-color: var(--primaryColorLighter);

}

.event-title{
    padding-top: 5px;
    margin: 5px;
    /*background-color: #c43628;*/
    border-radius: 3px;
    padding: 5px;
    
}

.event-date{
    padding-top: 5px;
    padding-left: 5px;
    border-left: 1px solid var(--primaryColorLight);
    margin: 5px;
}

.header-border-bottom{
    border-bottom: solid;
    border-width: 2px;
    border-color: var(--helpTextLighter);
}

.more-events-button{
    display: inline-block;
    color: var(--linkColorLight)
}

.more-events-button:hover{
    transition: 0.2s;
    scale: 1.01;
    color: var(--linkColorLightHover);
}
/*Events end*/

/*Calendar*/
.calendar-container{
    display: grid;
    grid-template-columns: 0 1fr 0;
    grid-template-areas: 
    ". box ."
    ". calendar .";
}
.calendar{
    margin-bottom: 1rem;
}
.calendar-box{
    grid-area: box;
    border: 2px solid rgb(163, 163, 163);
    border-radius: 5px;
    padding: 3px;
}

.month{
    padding-top: 10px;
    margin: 0;
    text-align: center;
}

.day {
    border-bottom: 1px solid rgb(190, 190, 190);
}
  
div.calendar-container a {
    color: var(--linkColorDark);
}

.left {
  float: left;
}

.right {
  float: right;
}

.cal-btn {
  outline: none;
  color: var(--textColorDark);
  background-color: transparent;
  box-shadow: 0 0 0 0;
}

/* "Today" only gets its own highlight when it has no event that day —
 * matching the site's own background makes it read as an absence of the
 * usual white day-circle rather than a competing color. When an event
 * also lands on today, .calendar-eventday below takes over instead. */
.vanilla-calendar-day__btn_today:not(.calendar-eventday) {
    color: var(--textColorLight) !important;
    background-color: var(--primaryColor) !important;
}

.vanilla-calendar-day__btn_today:not(.calendar-eventday):hover {
    background-color: var(--primaryColorLighte) !important;
}

/* Today + an event on the same day: keep the event's own color (it's the
 * more important signal) but add a ring so the day doesn't lose its "this
 * is today" affordance entirely. */
.vanilla-calendar-day__btn_today.calendar-eventday {
    box-shadow: inset 0 0 0 2px var(--textColorLight) !important;
}

.vanilla-calendar-day__btn_selected {
    background-color: #A3A3A3 !important;
}

.vanilla-calendar-day__btn_selected:hover {
    background-color: #7A7A7A !important;
}

.clearfix {
  padding: 10px;
  text-align: center;
}

/* Calendar tooltip */
.calendar-tooltip {
  position: relative;
  display: inline-block;
}

.calendar-eventday {
  /* Override vanilla calendar default
   * Dont use this class for anything else*/
  color: white !important;
  background-color: var(--linkColorDeep) !important;
}

.calendar-eventday:hover {
    background-color: var(--linkColorDeepHover) !important;
}

.calendar-eventday-popup {
  /* Override vanilla calendar default
   * Dont use this class for anything else*/
  color: var(--linkColorDeep);
  font-size: 0.75rem;
}

.calendar-eventday-popup:hover {
    color: var(--linkColorDeepHover);
}

/*Calendar end*/

/*extras start*/

.extra-container{
    grid-area: extras;
    display: block;
}

.extra-container a {
    color: var(--linkColorDark);
}

.extra-container a:hover {
    color: var(--linkColorDarkHover);
}

/*extras end*/

/*Sidebar end*/

/*Instagram start*/

.ig-scroll {
    --ig-height: 150px;
    /* The track is the doubled --ig-items, so the duration is halved below. */
    --ig-seconds-per-item: 4.5s;
    grid-area: ig-scroll;
    display: grid;
    grid-template-columns: 0 1fr 0;
    grid-template-rows: auto auto;
    grid-template-areas:
      ". ig-title ."
      ". ig-image .";
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.ig-title {
    grid-area: ig-title;
}

div.scroll-content img {
    height: var(--ig-height);
    width: auto;
}

.scroll-content {
    grid-area: ig-image;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: var(--ig-height);
}

.images {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    width: max-content;
    animation: slideshow calc(var(--ig-items, 32) * var(--ig-seconds-per-item) / 2) linear infinite;
}

.images a {
    flex: none;
    margin-right: 0.5rem;
}

.scroll-content:hover .images,
.scroll-content:focus-within .images {
    animation-play-state: paused;
}

.scroll-content img:hover {
    box-shadow: 4px 6px 9px 0px rgba(0, 0, 0, 0.5);
    transition: .2s ease;
}

@keyframes slideshow {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

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

@media screen and (max-width: 550px) {
    .ig-scroll {
        --ig-height: 112px;
        --ig-seconds-per-item: 3.4s;
    }
}

/*Instagram end*/

/* Generic animations*/

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    60% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    60% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/*width responsiveness*/

@media screen and (max-width: 1400px){
    .main-container{
        grid-template-columns: 5vw 5fr 2fr 5vw;
    }


}

@media screen and (max-width: 991px){
    .main-container{
        grid-template-columns: 1vw 1fr 1vw;
        grid-template-areas:
          ". events ."
          ". news ."
          ". extras ."
          ". ig-scroll .";
    }

}

@media screen and (max-width: 550px) {

    .aa-img {
        left: 85%;
      }

}

/*misc*/
.heading-link a{
    color: var(--textColorDark)
}

.heading-link a:hover{
    color: var(--textColorMedium)
}
