
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Poppins', sans-serif;
        background: #000;
        overflow: hidden;
    }

    .content-container {
        width: 90%;
        max-width: 600px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(8px);
        border-radius: 20px 20px 0 0;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
        padding: 12px 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        max-height: 50vh;
    }

    .slide-title {
        font-size: clamp(1.5em, 2.2vw, 1.6em);
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 8px;
        text-align: center;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
        line-height: 1.1;
        background: rgba(0, 0, 0, 0.3);
        padding: 8px 12px;
        border-radius: 8px;
        backdrop-filter: blur(5px);
    }

    .slide-content {
        font-size: clamp(1.1em, 1.6vw, 1.3em);
        color: #ffffff;
        line-height: 1.1;
        font-weight: 400;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
        margin-bottom: 6px;
    }


    .cta-button {
        display: inline-block;
        padding: 8px 16px;
        background: linear-gradient(135deg, #e31e24 0%, #114a82 100%);
        color: #fff;
        text-decoration: none;
        border-radius: 25px;
        font-size: 0.85em;
        font-weight: 600;
        text-align: center;
        margin-top: 8px;
    }

    amp-story-page {
        position: relative;
        overflow: hidden;
    }

    amp-story-grid-layer[template="vertical"] {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        height: 100%;
        padding-bottom: 0px !important;
    }

    amp-img {
        opacity: 0.85 !important;
    }

    .content-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #e31e24, #114a82);
        border-radius: 16px 16px 0 0;
    }

    .slide-title::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 50%;
        transform: translateX(-50%);
        width: 45px;
        height: 2px;
        background: linear-gradient(90deg, #e31e24, #114a82);
        border-radius: 1px;
    }

    .feature-list {
        list-style: none;
        padding: 0;
        margin: 10px 0;
        overflow: hidden;
    }

    .feature-list li {
        margin-bottom: 6px;
        padding: 8px 12px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 5px;
        border-left: 3px solid #e31e24;
        position: relative;
        font-weight: 500;
        backdrop-filter: blur(8px);
        transition: all 0.3s ease;
        font-size: clamp(0.8em, 1.1vw, 1em);
        line-height: 1.25;
        word-wrap: break-word;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .feature-list li::before {
        content: '✦';
        position: absolute;
        left: -4px;
        top: 50%;
        transform: translateY(-50%);
        background: #e31e24;
        color: white;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 5px;
        font-weight: bold;
    }

/* Slide 1 - Bottom panel slide-up */
.slide-1 {
    margin-top: auto; /* stick to bottom */
    opacity: 0;
    transform: translateY(120%); /* start fully hidden below */
    animation: slide1BottomUp 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes slide1BottomUp {
    0% {
        opacity: 0;
        transform: translateY(120%);
    }
    60% {
        opacity: 1;
        transform: translateY(-5%); /* slight overshoot */
    }
    80% {
        transform: translateY(2%);
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* final bottom position */
    }
}

/* Spt light css */

amp-story-page[active] amp-img {
    animation: backgroundFadeIn 1s ease-out forwards;
}

@keyframes backgroundFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}


amp-story-page[active] .content-container {
    animation: contentSlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes contentSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

amp-story-navigation-layer {
    transition: all 0.4s ease;
}





/* QQQQQQQQQQQQQ */

/* Hide AMP story pages visually but keep the structure */
amp-story:not([i-amphtml-layout]) {
  opacity: 0;
}

/* Once AMP story has been initialized */
amp-story[i-amphtml-layout] {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Loader style */
.loading-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Hide loader once story is initialized */
amp-story[i-amphtml-layout] .loading-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
