        .ux-first * {
          font-family: 'Poppins', sans-serif;
        }

        .ux-first .hero-section {
          background-image: url(../images/bg.png);
          background-size: cover;
          background-repeat: no-repeat;
          position: relative;
          overflow: hidden;
          min-height: 100vh;
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 2rem 0;
        }

        .ux-first .floating-navbar {
          background-color: white !important;
          border-radius: 40px;
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
          position: absolute;
          top: 25px;
          left: 50%;
          transform: translateX(-50%);
          max-width: 1000px;
          width: 80%;
          z-index: 100;
        }

        .ux-first .navbar-brand .logo-placeholder {
          width: 28px;
          height: 28px;
          background-color: #6D3FE9;
          border-radius: 6px;
          display: inline-block;
          box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .ux-first .navbar-text {
          font-size: 1.25rem;
          color: #333;
        }

        .ux-first .nav-link {
          color: #444 !important;
          font-weight: 600;
          transition: color 0.2s;
        }

        .ux-first .nav-link:hover {
          color: #2D0070 !important;
        }

        .ux-first .custom-btn-primary {
          background-color: #2D0070;
          color: white;
          border: 2px solid #2D0070;
          font-weight: 600;
          padding: 0.5rem 1.5rem;
          border-radius: 30px;
          transition: background-color 0.3s, color 0.3s, opacity 0.3s;
        }

        .ux-first .custom-btn-primary:hover {
          background-color: #4D00B8;
          color: white;
          border-color: #4D00B8;
        }

        .ux-first .hero-content-wrapper {
          max-width: 800px;
          width: 100%;
        }

        .ux-first .hero-heading {
          color: #2D0070;
          font-size: clamp(2.5rem, 5vw, 3.8rem);
          line-height: 1.1;
          font-weight: 900;
        }

        .ux-first .lead {
          color: #5d5d5d !important;
          font-weight: 600;
          font-size: clamp(1rem, 2vw, 1.25rem);
        }

        .ux-first .custom-btn-cta,
        .ux-first .custom-btn-secondary {
          font-size: 1.25rem;
        }

        .ux-first .custom-btn-cta {
          background: linear-gradient(180deg, #7E51FF 0%, #4D00B8 100%);
          color: white;
          border: none;
          font-weight: 700;
          padding: 0.8rem 2rem;
          border-radius: 50px;
          box-shadow: 0 4px 15px rgba(77, 0, 184, 0.4);
          transition: transform 0.2s, box-shadow 0.2s;
        }

        .ux-first .custom-btn-cta:hover {
          transform: translateY(-2px);
          box-shadow: 0 6px 20px rgba(77, 0, 184, 0.6);
        }

        .ux-first .custom-btn-secondary {
          background: linear-gradient(180deg, #FFFFFF 0%, #F5F5FF 100%);
          color: #5A20B8;
          border: 1px solid #D0BCFF;
          font-weight: 700;
          padding: 0.8rem 2rem;
          border-radius: 50px;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        /* MOBILE FIXES */
        @media (max-width: 767.98px) {

          .ux-first .custom-btn-cta,
          .ux-first .custom-btn-secondary {
            width: 100%;
            font-size: 1rem;
            padding: 0.75rem 1.5rem;
          }

          .ux-first .floating-navbar {
            top: 0;
            width: 100%;
            border-radius: 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          }
        }




        .ux-sec {
          padding: 80px 0px;
          background: linear-gradient(to right, #FFD6E7, #d7eced) !important;

        }

        .ux-sec .custom-card-shadow {
          border-radius: 15px;
          overflow: hidden;
          max-width: 1200px;
          margin: auto;
        }

        .story-form-bg {
          border-radius: 35px;
          background-color: #f8eeed;
        }


        .ux-sec .story-title {
          color: #555;
          font-weight: 700;
        }

        .ux-sec .form-control,
        .ux-sec .form-select,
        .ux-sec .photo-upload-box {
          border-color: #eee;
          box-shadow: none !important;
        }

        .ux-sec .btn-theme {
          background-color: #f0f0f0;
          color: #444;
          border: none;
          padding: 0.5rem 1rem;
          border-radius: 20px;
          font-size: 0.9rem;
          font-weight: 500;
          transition: background-color 0.2s;
        }

        .ux-sec .btn-theme.active {
          background-color: #3b5998;
          color: white;
        }

        .ux-sec .photo-upload-box {
          background-color: #f8f0ff;
          border: 1px dashed #d5b5ff;
          cursor: pointer;
        }

        .ux-sec .avatar-sm {
          width: 35px;
          height: 35px;
          object-fit: cover;
        }

        .ux-sec .generate-btn {
          background: linear-gradient(to right, #ff9944, #ff6699);
          border: none;
          color: white;
          font-weight: bold;
          padding: 0.75rem 1.5rem;
          border-radius: 10px;
          box-shadow: 0 4px 15px rgba(255, 102, 153, 0.4);
          transition: all 0.2s;
        }

        .ux-sec .generate-btn:hover {
          filter: brightness(1.1);
        }

        .ux-sec .story-preview-bg {
          position: relative;
          padding: 3rem !important;
          min-height: 550px;
          background: #f8eeed;
          border-radius: 35px;
          width: 55%;
          margin-left: 20px;
        }

        .ux-sec .preview-container {
          position: relative;
          width: 100%;
          max-width: 620px;
          height: 300px;
          margin-bottom: 3rem;
        }

        .ux-sec .child-photo-frame {
          position: absolute;
          top: 50%;
          left: 0;
          transform: translateY(-50%);
          width: 45%;
          padding: 5px;
          background-color: white;
          border-radius: 8px;
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
          z-index: 2;
        }

        .ux-sec .story-photo {
          border-radius: 5px;
          min-height: 230px;
          background: #e0e0e0 url('../images/1.jpg') no-repeat center center / cover;
        }

        .ux-sec .storybook-cover-frame {
          position: absolute;
          right: 0;
          top: 50%;
          transform: translateY(-50%) perspective(1000px) rotateY(-10deg);
          width: 65%;
          box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.2);
          border-radius: 5px;
          z-index: 3;
        }

        .ux-sec .story-cover {
          border-radius: 5px;
          min-height: 392px;
          background: #77b3d3 url('../images/bk.jfif') no-repeat center center / cover;
        }

        .ux-sec .photo-label {
          position: absolute;
          font-size: 0.75rem;
          padding: 2px 8px;
          border-radius: 15px;
          color: white;
          font-weight: 600;
          bottom: -15px;
          left: 50%;
          transform: translateX(-50%);
          white-space: nowrap;
        }

        .ux-sec .original-label {
          background-color: #d8b8e0;
        }

        .ux-sec .hero-label {
          background-color: #55aaff;
        }

        .ux-sec .text-dark-blue {
          color: #3b5998;
          font-size: 26px;
        }

        .ux-cnn {
          background: transparent;
          border-radius: 16px;
          padding: 52px 0px;
          box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.06);
        }

        .ux-sec .cursor-pointer {
          cursor: pointer;
        }



        /* --- UX-THIRD CLASS STYLES --- */
        .ux-ssp {
          padding: 20px 40px 80px 20px !important;
          background-color: #f0f8ff !important;

        }

        .ux-third {
          border-radius: 12px;
          padding: 1.25rem;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
          border: 1px solid #e0e0e0;
          height: 100%;
          display: flex;
          flex-direction: column;
          transition: transform 0.2s;
        }

        .ux-third:hover {
          transform: translateY(-3px);
          box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        }

        .ux-third .tag-label {
          font-size: 0.75rem;
          font-weight: 600;
          color: #4a148c;
          margin-bottom: 0.25rem;
          border-left: 3px solid #673ab7;
          padding-left: 0.5rem;
          line-height: 1.2;
        }

        /* Specific tag colors */
        .ux-third .bedtime-tag {
          color: #c2185b;
          border-left-color: #f06292;
        }

        .ux-third .fantasy-tag {
          color: #ad1457;
          border-left-color: #ff80ab;
        }

        .ux-third .animals-tag {
          color: #e65100;
          border-left-color: #ffb74d;
        }

        .ux-third .science-tag {
          color: #004d40;
          border-left-color: #4db6ac;
        }

        .ux-third .learning-tag {
          color: #1a237e;
          border-left-color: #7986cb;
        }

        .ux-third .title {
          font-size: 1.25rem;
          font-weight: 700;
          color: #333333;
          margin-top: 0;
          margin-bottom: 0.75rem;
        }

        /* --- UPDATED IMAGE STYLES --- */
        .ux-third .hero-photo {
          /* Child Photo - Now Square and Larger (90x90) */
          width: 90px;
          height: 90px;
          border-radius: 4px;
          /* Square edges */
          object-fit: cover;
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
          z-index: 1;
          /* Removed margin-right as gap is handled by the parent flex container */
        }

        .ux-third .book-cover {
          /* Book Cover - Now Square and Larger (120x120) */
          width: 120px;
          height: 120px;
          object-fit: cover;
          border-radius: 4px;
          box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
          /* Removed negative margin for less overlap / more gap */
          margin-left: 0;
        }

        .ux-third .d-flex.align-items-start {
          /* Container for photo and book cover */
          position: relative;
          min-height: 130px;
          margin-bottom: 0.5rem !important;
          /* Added gap between the two image elements */
          gap: 2rem;
        }

        /* --- END UPDATED IMAGE STYLES --- */

        .ux-third .description {
          font-size: 0.875rem;
          color: #666666;
          margin-bottom: 1rem;
          flex-grow: 1;
          line-height: 1.4;
        }

        /* Button Styling */
        .ux-third .btn-secondary-light,
        .ux-third .btn-primary-dark {
          border: 1px solid;
          padding: 0.5rem 1rem;
          border-radius: 20px;
          font-size: 0.875rem;
          font-weight: 500;
          text-decoration: none;
          transition: all 0.2s;
          cursor: pointer;
        }

        .ux-third .btn-secondary-light {
          background-color: #ffffff;
          color: #673ab7;
          border-color: #d1c4e9;
        }

        .ux-third .btn-secondary-light:hover {
          background-color: #f5f5f5;
        }

        .ux-third .btn-primary-dark {
          background-color: #673ab7;
          color: #ffffff;
          border-color: #673ab7;
        }

        .ux-third .btn-primary-dark:hover {
          background-color: #5e35b1;
          border-color: #5e35b1;
        }

        /* Heading styles */
        .hero-heading {
          font-size: 2rem;
          font-weight: 700;
          color: #333333;
        }



        .ux-fourth {
          background: linear-gradient(180deg, #fff7f2 0%, #e0f2ff 100%);
          padding: 50px 0 40px;
          font-family: sans-serif;
          min-height: 100vh;
        }

        .kiddio-section {
          text-align: center;
        }

        .kiddio-title {
          font-size: 2.5rem;
          font-weight: bold;
          color: #333;
          margin-bottom: 0.5rem;
        }

        .kiddio-subtitle {
          font-size: 1.1rem;
          color: #555;
          margin-bottom: 3rem;
        }

        /* --- Main Background Image Container --- */
        .visual-card-bg {
          max-width: 900px;
          height: 450px;
          margin: 0 auto;
          position: relative;
          border-radius: 20px;
          overflow: hidden;
          box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);

          background-image: url('https://via.placeholder.com/900x450/c0c0ff/FFFFFF?text=Magical+Story+Background');
          background-size: cover;
          background-position: center;
          background-repeat: no-repeat;
        }

        .step-overlay-element {
          position: absolute;
          z-index: 10;
          display: flex;
          flex-direction: column;
          align-items: center;
        }

        .step-visual {
          width: 150px;
          height: 150px;
          background-color: white;
          border-radius: 20px;
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
          display: flex;
          justify-content: center;
          align-items: center;
          position: relative;
        }

        .step-number-visual {
          position: absolute;
          top: -10px;
          left: -10px;
          background-color: #5a5aff;
          color: white;
          border-radius: 50%;
          width: 30px;
          height: 30px;
          display: flex;
          justify-content: center;
          align-items: center;
          font-weight: bold;
          font-size: 1rem;
          z-index: 20;
        }

        .step-1-overlay {
          top: 50px;
          left: 15%;
        }

        .child-photo {
          width: 100%;
          height: 100%;
          object-fit: cover;
          border-radius: 20px;
        }

        .step-2-overlay {
          top: 50px;
          left: 42%;
          background-color: #eee6ff;
          border-radius: 30px;
          width: 180px;
          height: 180px;
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
          justify-content: center;
          align-items: center;
        }

        .play-button-center {
          width: 70px;
          height: 70px;
          background-color: white;
          border-radius: 50%;
          display: flex;
          justify-content: center;
          align-items: center;
          box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.4);
          position: relative;
        }

        .play-button-center::before {
          content: '';
          width: 0;
          height: 0;
          border-style: solid;
          border-width: 12px 0 12px 18px;
          border-color: transparent transparent transparent #5a5aff;
          margin-left: 3px;
        }

        .step-3-overlay {
          top: 30px;
          right: 15%;
        }

        .step-3-overlay .step-visual {
          background-color: transparent;
          box-shadow: none;
          width: 130px;
          height: 170px;
        }

        .storybook-image {
          width: 100%;
          height: 100%;
          object-fit: contain;
          border-radius: 5px;
        }

        .step-captions {
          margin-top: 30px;
        }

        .caption-icon {
          font-size: 1.8rem;
          color: #5a5aff;
          margin-bottom: 5px;
        }

        .caption-text {
          font-size: 1rem;
          font-weight: 500;
          color: #333;
        }

        @media (max-width: 768px) {
          .visual-card-bg {
            height: 300px;
          }
          .ux-sec .story-cover{
            min-height: 240px !important;
          }
          .step-captions{
            margin: 0px 25px !important;
          }
          .ux-sec .story-photo{
            min-height: 170px !important;
          }
          .ux-sec .preview-container{
            height: 245px !important;
          }
          .ux-sec .story-preview-bg{
           width: 100% !important;
           margin-left: 0px !important;
           margin-top: 30px !important; 
          }

          .step-overlay-element {
            display: none;
          }

          .step-captions {
            flex-direction: column;
          }

          .caption-col {
            margin-bottom: 20px;
          }
        }