.gradient-background {
    background: linear-gradient(300deg, #111D7D, #BC0133, #e66161);
    background-size: 180% 180%;
    animation: gradient-animation 18s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 576px) {
    #AUbg {
        background-image: url(../Assets/bg-img5.png);
        background-size: auto;
        background-color: grey;
        background-repeat: no-repeat;
    }
}

@media (min-width: 577px) {
    #AUbg {
        background-image: url(../Assets/bg-img4.png);
        background-color: #402974; 
        padding-top: 4rem; 
        padding-bottom: 2rem; 
        background-position: center; 
        background-size: auto; 
        background-repeat: no-repeat;
    }
}

.fade-text, .fade-image-left, .fade-image-right {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-image-left { transform: translateX(-100px); }
.fade-image-right { transform: translateX(100px); }

.show-text, .show-image {
    opacity: 1;
    transform: translate(0);
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-divider2 {
    width: 100%;
    height: 3rem;
    background-color: rgba(255, 255, 255, .1);
}

.service-section {
    background-color: white;
}

/* --- Rotating accreditations --- */
.icon-cards {
    position: relative;
    width: 60vw;
    height: 40vw;
    max-width: 380px;
    max-height: 250px;
    margin: 0;
    color: white;
    perspective: 1000px;
    transform-origin: center;
}

.icon-cards__content {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: translateZ(-35vw) rotateY(0);
    animation: carousel5 12s infinite cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.icon-cards__content.step-animation {
    animation: carousel5 10s infinite steps(5) forwards;
}

/* Position five faces around the Y-axis */
.icon-cards__item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 60vw;
    height: 40vw;
    max-width: 380px;
    max-height: 250px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    transform-origin: center;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-cards__item:nth-child(1) { transform: rotateY(0deg)   translateZ(35vw); }
.icon-cards__item:nth-child(2) { transform: rotateY(72deg)  translateZ(35vw); }
.icon-cards__item:nth-child(3) { transform: rotateY(144deg) translateZ(35vw); }
.icon-cards__item:nth-child(4) { transform: rotateY(216deg) translateZ(35vw); }
.icon-cards__item:nth-child(5) { transform: rotateY(288deg) translateZ(35vw); }

/* Uniform logo sizing inside carousel */
.about-carousel .icon-cards__item span {
    display: block;
    width: 80%;
    max-width: 320px;
    height: 70%;
    max-height: 200px;
    margin: 0 auto;
}
.about-carousel .icon-cards__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 5-step rotation keyframes */
@keyframes carousel5 {
    0%, 12%    { transform: translateZ(-35vw) rotateY(0deg); }
    20%, 32%   { transform: translateZ(-35vw) rotateY(-72deg); }
    40%, 52%   { transform: translateZ(-35vw) rotateY(-144deg); }
    60%, 72%   { transform: translateZ(-35vw) rotateY(-216deg); }
    80%, 92%   { transform: translateZ(-35vw) rotateY(-288deg); }
    100%       { transform: translateZ(-35vw) rotateY(-360deg); }
}

.about-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: white;
}

@keyframes jelly {
    from { transform: scale(1, 1); }
    30%  { transform: scale(1.25, 0.75); }
    40%  { transform: scale(0.75, 1.25); }
    50%  { transform: scale(1.15, 0.85); }
    65%  { transform: scale(0.95, 1.05); }
    75%  { transform: scale(1.05, 0.95); }
    to   { transform: scale(1, 1); }
}

.pulse-button {
    cursor: pointer;
    transition: transform 0.3s;
}
.pulse-button:hover { animation: pulse 1.5s infinite; }

@keyframes pulse {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    50%  { transform: scale(1.1); box-shadow: 0 0 10px 10px rgba(52, 152, 219, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.pulse-button2 {
    cursor: pointer;
    transition: transform 0.3s;
}
.pulse-button2:hover { animation: pulse2 1.5s infinite; }

@keyframes pulse2 {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.658); }
    50%  { transform: scale(1.1); box-shadow: 0 0 10px 10px rgba(52, 152, 219, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* FAQs */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    margin-bottom: 5px;
    border-radius: 10px;
    font-weight: bold;
}

.plus-icon {
    font-size: 24px;
    transition: transform 0.3s;
}

.answer {
    display: none;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-top: none;
    background-color: #f3f3f3;
    border-radius: 10px;
    margin-bottom: 5px;
}

.faq-question.active .plus-icon { transform: rotate(45deg); }

/* Video bg for the FAQs */
.video-background-section {
    position: relative;
    overflow: hidden;
    width: 100%;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    background-color: #402974;
}

.video-background-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

/* Back top button */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}

.bi-caret-up-fill { size: 3rem; }

/* === ACCREDITATION CAROUSEL: UNIFORM LOGO SIZE (HARD OVERRIDES) === */
/* Uniform logo box and background-image rendering */
.about-carousel .icon-cards__item { 
  padding: 0.75rem; 
  overflow: hidden; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.about-carousel .icon-cards__item > span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 300px;            /* adjust to taste */
  height: 180px;           /* adjust to taste */
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Keep <img> for alt text/accessibility, but hide visually */
.about-carousel .icon-cards__item > span > img {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Exact logo sizes */
.logo-ukrisk { height: 75px; width: auto; }
.logo-ssaib  { height: 100px; width: auto; object-fit: contain; display:block; }
.logo-bafe   { height: 100px; width: auto; object-fit: contain; display:block; }

/* Keep nav text on one line */
.navbar .nav-link, .navbar .dropdown-item { white-space: nowrap; }

/* XL+ baseline alignment for everything on the bar */
@media (min-width: 1200px) {
  .navbar { min-height: 88px; }
  .navbar .container-fluid { align-items: stretch !important; }
  .navbar .navbar-collapse { display: flex !important; align-items: flex-end !important; }
  .baseline-xl { align-self: flex-end; padding-bottom: .25rem; display: flex; align-items: flex-end; gap: .75rem; }
  .navbar .nav-link { padding-bottom: .25rem; }
}

/* Hide desktop contact on <XL (we show a mobile version inside the collapse) */
@media (max-width: 1199.98px) {
  .contact-desktop { display: none !important; }
}
