/* CSS for section section:Hero */
.hero-section {
    position: relative;
    padding-top: 47px;
    padding-bottom: 220px;
    color: var(--color-text-light);
    overflow: hidden;
  }
  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-container {
    position: relative;
    z-index: 1;
  }
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 158px;
  }
  .logo {
    width: 168.6px;
    height: 37px;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 23px;
    padding: 11px 24px 12px 31px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text-light);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .btn:hover {
    opacity: 0.8;
  }
  .btn-outline {
    border: 1px solid var(--color-text-light);
  }
  .btn-cta {
    border: 1px solid var(--color-text-light);
    padding: 10px 24px 11px 32px;
    gap: 29px;
  }
  .btn-arrow {
    position: relative;
    width: 33px;
    height: 33px;
  }
  .btn-arrow .arrow-circle,
  .btn-arrow .arrow-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .btn-arrow .arrow-circle {
    width: 33px;
    height: 33px;
  }
  .btn-arrow .arrow-icon {
    width: 12.6px;
    height: 12.6px;
  }
  .hero-content {
    max-width: 1081px;
  }
  .hero-content h1 {
    font-size: 76px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 27px;
  }
  .hero-content h1 .highlight {
    background: linear-gradient(90deg, #07675c, #078c7d 25.48%, #31b8a2 60.1%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
  }
  .hero-content p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    max-width: 619px;
    margin: 0 0 44px;
  }
  @media (max-width: 1024px) {
    .hero-content h1 {
      font-size: 56px;
    }
    .navbar {
      margin-bottom: 100px;
    }
  }
  @media (max-width: 768px) {
    .navbar {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      margin-bottom: 80px;
    }

    .logo {
      width: 140px;
      height: auto;
    }

    .btn-outline {
      padding: 8px 16px 9px 20px;
      font-size: 14px;
      gap: 15px;
      white-space: nowrap;
    }

    .btn-arrow {
      width: 28px;
      height: 28px;
    }

    .btn-arrow .arrow-circle {
      width: 28px;
      height: 28px;
    }

    .btn-arrow .arrow-icon {
      width: 10px;
      height: 10px;
    }

    .hero-content {
      text-align: center;
      width: 100%;
      max-width: 100%;
    }

    .hero-content h1 {
      font-size: 36px;
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

    .hero-content p {
      width: 100%;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

    .hero-content .btn-cta {
      display: inline-flex;
    }
  }

/* CSS for section section:HowItWorks */
.how-it-works-section {
    background-color: var(--color-background-light);
    border-radius: 120px 120px 0 0;
    padding: 95px 0 154px;
    margin-top: -100px;
    position: relative;
    z-index: 2;
  }
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  
  }
  .pre-title {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-dark);
    margin: 0 0 19px;
  }
  .pre-title span {
    color: var(--color-primary);
  }
  .section-header h2 {
    font-size: 60px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
  }
  .section-description {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    max-width: 438px;
    margin: 0;
    padding-bottom: 21px;
  }
  .steps-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    padding-top: 70px;
  }
  .timeline-bar {
    position: absolute;
    top: 106px;
    left: 5%;
    right: 5%;
    height: 1px;
    background-color: #000;
    z-index: 0;
  }
  .step-item {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .step-number {
    font-family: 'MADE TOMMY', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 10px;
  }
  .step-dot {
    width: 12px;
    height: 12px;
    background-color: var(--color-background-light);
    border: 1px solid #000;
    border-radius: 50%;
    margin-bottom: 49px;
    z-index: 1;
  }
  .step-icon {
    height: 98px;
    object-fit: contain;
    margin-bottom: 19px;
  }
  .step-description {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    max-width: 250px;
    margin: 0;
  }
  @media (max-width: 1024px) {
    .steps-container {
      grid-template-columns: repeat(3, 1fr);
      row-gap: 60px;
    }
    .timeline-bar {
      display: none;
    }
  }
  @media (max-width: 768px) {
    .how-it-works-section {
      border-radius: 60px 60px 0 0;
      margin-top: -100px;
      padding-top: 60px;
    }
    .section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 20px;
      margin-bottom: 60px;
    }
    .steps-container {
      grid-template-columns: 1fr;
      row-gap: 50px;
      padding-top: 0;
    }
    .step-dot {
      display: none;
    }
  }

/* CSS for section section:CreateCard */
.create-card-section {
    background-color: var(--color-background-light);
    padding-bottom: 23px;
  }
  .create-card-section .section-header {
    align-items: flex-start;
    margin-bottom: 64px;
  }
  .create-card-section .section-header > div:first-child {
    width: 712px;
    max-width: 100%;
  }
  .create-card-section .description-group {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 396px;
    max-width: 100%;
  }
  .create-card-section .section-description {
    padding-bottom: 0;
  }
  .card-form h3 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 43px;
  }
  .text-primary {
    color: var(--color-primary);
  }
  .form-step {
    margin-bottom: 79px;
  }
  .form-group {
    display: flex;
    flex-direction: column;
  }
  .form-group label, .field-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: 8px;
  }
  .form-group input, .form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-text-dark);
    padding: 8px 0;
    font-family: var(--font-primary);
    font-size: 14px;
  }
  .form-group input.error {
    border-bottom-color: #e74c3c;
  }
  .form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
  }
  .form-grid-step1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "sender recipient message"
      "sender-email recipient-email message";
    gap: 26px 118px;
  }
  .form-grid-step1 .form-group:nth-child(1) { grid-area: sender; }
  .form-grid-step1 .form-group:nth-child(2) { grid-area: recipient; }
  .form-grid-step1 .form-group:nth-child(3) { grid-area: sender-email; }
  .form-grid-step1 .form-group:nth-child(4) { grid-area: recipient-email; }
  .form-grid-step1 .message-group { grid-area: message; }
  .message-group textarea {
    height: 93px;
    resize: vertical;
  }
  .character-counter {
    text-align: right;
    font-size: 10px;
    margin-top: 5px;
    color: #666;
  }
  .form-grid-step2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 118px;
  }
  .dropdown-group {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
  }
  .custom-select {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 17px;
    border: 1px solid var(--color-text-dark);
    border-radius: 22px;
    cursor: pointer;
    position: relative;
  }
  .custom-select select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }
  .custom-select.full-width {
    margin-top: 11px;
  }
  .custom-select img {
    width: 16px;
    height: 9px;
    pointer-events: none;
  }
  .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    margin-bottom: 40px;
  }
  .button-group button {
    padding: 8px 23px;
    border: 1px solid var(--color-text-dark);
    border-radius: 200px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  .button-group button:hover {
    background-color: rgba(77, 184, 162, 0.1);
  }
  .button-group button.active {
    border-color: var(--color-primary);
    border-width: 2px;
    font-weight: 600;
  }
  .donation-info {
    text-align: center;
    font-size: 16px;
    margin: 20px 0;
    font-weight: 600;
  }
  .payment-options {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
  }
  .payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
  .payment-option input[type="radio"] {
    display: none;
  }
  .radio-check {
    width: 17px;
    height: 17px;
    border: 1px solid var(--color-text-dark);
    border-radius: 50%;
    display: grid;
    place-items: center;
  }
  .payment-option input[type="radio"]:checked + .radio-check::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    background: var(--color-primary);
    border-radius: 50%;
  }
  .payment-option img {
    height: 54px;
    object-fit: contain;
  }
  .step3-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 120px;
    align-items: flex-start;
  }
  .design-selector {
    min-width: 0;
  }
  .summary-panel {
    width: 400px;
    margin-left: 20px;
  }
  .card-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 52px;
    position: relative;
    max-width: 100%;
    overflow: visible;
  }
  #carousel-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
  }
  .carousel-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
  }
  .carousel-arrow img {
    width: 30px;
    height: 30px;
    position: relative;
    object-fit: contain;
  }
  .carousel-arrow.prev img {
    transform: rotate(180deg);
  }
  .carousel-arrow.next img {
    transform: rotate(0deg);
  }
  .card-item {
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
  }
  .card-item.side {
    transform: scale(0.6);
    opacity: 0.5;
  }
  .card-item img {
    display: block;
    border-radius: 6px;
    width: 280px;
    height: 370px;
    object-fit: cover;
  }
  .card-item.side img {
    width: 280px;
    height: 370px;
  }
  .card-item.active {
    transform: scale(1);
    opacity: 1;
  }
  .card-item.active .card-frame {
    position: relative;
    padding: 15px;
    border-radius: 6px;
    background-color: var(--color-lightseagreen);
  }
  .card-item.active .card-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
      url('new_design/images/Rectangle 414.png') top left no-repeat,
      url('new_design/images/Rectangle 414.png') top right no-repeat,
      url('new_design/images/Rectangle 414.png') bottom left no-repeat,
      url('new_design/images/Rectangle 414.png') bottom right no-repeat,
      url('new_design/images/Rectangle 413.png') left repeat-y,
      url('new_design/images/Rectangle 413.png') right repeat-y;
    background-size:
      60px 60px,
      60px 60px,
      60px 60px,
      60px 60px,
      5px 100%,
      5px 100%;
    pointer-events: none;
    border-radius: 6px;
  }
  .card-item.active .card-bg {
    width: 280px;
    height: 370px;
    border-radius: 6px;
    position: relative;
    z-index: 1;
  }
  .btn-preview {
    display: block;
    margin: 0 auto;
    padding: 12px 26px;
    border: 1px solid var(--color-text-dark);
    border-radius: 28px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .btn-preview:hover {
    background-color: rgba(77, 184, 162, 0.1);
  }
  .summary-box {
    border: 1px solid #000;
    border-radius: 12px;
    padding: 27px;
  }
  .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
  }
  .summary-item strong {
    font-weight: 600;
  }
  .btn-submit {
    width: 100%;
    padding: 9px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 44px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
  }
  .btn-submit:hover {
    background-color: var(--color-primary-darker);
  }
  .terms-check {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .terms-check a {
    color: var(--color-text-dark);
    font-weight: 700;
  }

  @media (max-width: 1024px) {
    .form-grid-step1, .form-grid-step2, .step3-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    .form-grid-step1 .message-group {
      grid-area: auto;
    }
  }

  /* Fix carousel arrows on all smaller screens (including MacBook Air 13" - 1280px) */
  @media (max-width: 1680px) {
    .step3-grid {
      overflow: visible !important;
    }

    .design-selector {
      max-width: 100%;
      overflow: visible !important;
      min-width: 0;
      padding: 0 20px;
    }

    .card-carousel {
      padding: 0 20px;
      max-width: 100%;
      overflow: visible !important;
      position: relative;
    }

    .carousel-arrow {
      flex-shrink: 0;
      min-width: 50px;
      width: 50px;
      position: relative;
      z-index: 10;
    }

    .carousel-arrow.prev {
      margin-right: 10px;
    }

    .carousel-arrow.next {
      margin-left: 10px;
    }

    .carousel-arrow img {
      width: 30px;
      height: 30px;
    }

    #carousel-cards {
      flex: 1;
      min-width: 0;
      display: flex;
      justify-content: center;
      padding: 0 10px;
    }

    /* Ensure container has enough space */
    .container {
      overflow-x: visible !important;
    }

    .create-card-section {
      overflow: visible !important;
    }
  }
  @media (max-width: 768px) {
    /* Step 1 - Form inputs mobile optimization */
    .form-group label, .field-title {
      font-size: 13px;
      font-weight: 500;
    }

    .form-group input, .form-group textarea {
      padding: 12px 0;
      font-size: 15px;
    }

    .message-group textarea {
      height: 150px;
      min-height: 150px;
    }

    .character-counter {
      font-size: 12px;
      margin-top: 8px;
    }

    /* Convert form grid to single column for mobile */
    .form-grid-step1 {
      display: grid;
      grid-template-columns: 1fr;
      grid-template-areas: none;
      gap: 24px;
    }

    /* Reset all grid areas to display in natural order */
    .form-grid-step1 .form-group:nth-child(1) { grid-area: auto; }
    .form-grid-step1 .form-group:nth-child(2) { grid-area: auto; }
    .form-grid-step1 .form-group:nth-child(3) { grid-area: auto; }
    .form-grid-step1 .form-group:nth-child(4) { grid-area: auto; }
    .form-grid-step1 .message-group { grid-area: auto; }

    /* Step section headings */
    .step-section h3 {
      font-size: 22px;
      margin-bottom: 28px;
    }

    .text-primary {
      font-size: 22px;
    }

    /* Step 2 - Dropdowns and buttons */
    .dropdown-group {
      flex-direction: column;
    }

    .button-group {
      gap: 10px;
    }

    /* Step 2 - Tree amount buttons */
    .button-group button {
      padding: 12px 20px;
      font-size: 15px;
      min-height: 44px;
      min-width: 60px;
    }

    /* Custom select dropdowns */
    .custom-select select {
      min-height: 44px;
      padding: 12px 40px 12px 17px;
    }

    /* Payment option radio buttons - increase clickable area */
    .payment-option {
      padding: 8px;
      min-height: 44px;
    }

    .payment-option img {
      height: 40px;
    }

    /* Step 3 - Keep carousel horizontal on mobile */
    .card-carousel {
      display: flex !important;
      flex-direction: row !important;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 30px;
      width: 100%;
      max-width: 100%;
      overflow: visible;
    }

    #carousel-cards {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1;
    }

    /* Hide ALL cards by default on mobile */
    .card-item {
      display: none !important;
    }

    /* Only show the active card */
    .card-item.active {
      display: block !important;
      transform: scale(1);
    }

    /* Scale down cards for mobile */
    .card-item img {
      width: 220px;
      height: 290px;
    }

    /* Active card gets a border to stand out */
    .card-item.active img {
      border: 3px solid var(--color-primary, #4CAF50);
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* Simplify active card styling on mobile - remove desktop frame */
    .card-item.active .card-frame {
      padding: 0;
      background-color: transparent;
    }

    .card-item.active .card-frame::before {
      display: none;
    }

    .card-item.active .card-bg {
      width: 220px;
      height: 290px;
    }

    /* Carousel arrows - make them visible and touch-friendly */
    .carousel-arrow {
      display: flex !important;
      width: 44px;
      height: 44px;
      min-width: 44px;
      padding: 10px;
      background-color: rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .carousel-arrow img {
      width: 24px;
      height: 24px;
    }

    .carousel-arrow.prev,
    .carousel-arrow.next {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }

    /* All steps stacked vertically on mobile */
    .form-step {
      margin-bottom: 48px;
    }

    /* Summary panel full width */
    .step3-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 48px;
    }

    .summary-panel {
      width: 100%;
      margin-left: 0;
      order: 2; /* Summary panel comes after design selector */
    }

    .design-selector {
      order: 1;
    }

    .summary-box {
      padding: 20px;
    }

    /* Preview button larger touch target */
    .btn-preview {
      padding: 14px 32px;
      font-size: 15px;
      min-height: 44px;
    }

    /* Submit button larger touch target */
    .btn-submit {
      padding: 12px;
      font-size: 17px;
      min-height: 48px;
    }

    /* Step title headings */
    .step-section h3 {
      font-size: 20px;
      margin-bottom: 24px;
    }

    .text-primary {
      font-size: 20px;
    }

    /* Preview popup optimization */
    .preview-popup-content {
      padding: 24px;
      width: 95%;
      max-height: 95vh;
    }

    .preview-card-display img {
      max-width: 100%;
      height: auto;
    }

    .preview-popup-buttons button {
      padding: 12px 24px;
      min-height: 44px;
    }

    /* Preview text mobile adjustments */
    #index_preview_text_1 {
      font-size: 55%;
    }

    #index_preview_text_2 {
      font-size: 25%;
    }

    /* Container padding */
    .container {
      padding-left: 20px;
      padding-right: 20px;
    }
  }

  /* Small mobile devices (phones < 480px) */
  @media (max-width: 480px) {
    /* Step 1 - Further optimize for small phones */
    .form-group label, .field-title {
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 8px;
    }

    .form-group input, .form-group textarea {
      padding: 14px 0;
      font-size: 16px; /* Prevents zoom on iOS */
    }

    .message-group textarea {
      height: 160px;
      min-height: 160px;
    }

    .character-counter {
      font-size: 13px;
      margin-top: 10px;
    }

    .form-grid-step1 {
      display: grid;
      grid-template-columns: 1fr;
      grid-template-areas: none;
      gap: 20px;
    }

    /* Reset all grid areas to display in natural order */
    .form-grid-step1 .form-group:nth-child(1) { grid-area: auto; }
    .form-grid-step1 .form-group:nth-child(2) { grid-area: auto; }
    .form-grid-step1 .form-group:nth-child(3) { grid-area: auto; }
    .form-grid-step1 .form-group:nth-child(4) { grid-area: auto; }
    .form-grid-step1 .message-group { grid-area: auto; }

    /* Step section headings */
    .step-section h3 {
      font-size: 20px;
      margin-bottom: 24px;
      line-height: 1.3;
    }

    .text-primary {
      font-size: 20px;
    }

    /* Step 2 - Even larger touch targets on small phones */
    .button-group button {
      padding: 14px 22px;
      min-height: 48px;
    }

    .custom-select select {
      min-height: 48px;
      padding: 14px 40px 14px 17px;
    }

    /* All steps stacked vertically on small mobile */
    .form-step {
      margin-bottom: 40px;
    }

    /* Step 3 grid - single column */
    .step3-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .summary-panel {
      order: 2;
    }

    .design-selector {
      order: 1;
    }

    /* Step 3 - Further scale down for small phones */
    .card-carousel {
      display: flex !important;
      flex-direction: row !important;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 20px;
      width: 100%;
    }

    #carousel-cards {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1;
    }

    /* Hide ALL cards by default on small mobile */
    .card-item {
      display: none !important;
    }

    /* Only show the active card */
    .card-item.active {
      display: block !important;
      transform: scale(1);
    }

    .card-item img {
      width: 180px;
      height: 238px;
    }

    /* Active card gets a border to stand out */
    .card-item.active img {
      border: 3px solid var(--color-primary, #4CAF50);
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* Simplify active card styling on small mobile - remove desktop frame */
    .card-item.active .card-frame {
      padding: 0;
      background-color: transparent;
    }

    .card-item.active .card-frame::before {
      display: none;
    }

    .card-item.active .card-bg {
      width: 180px;
      height: 238px;
    }

    /* Carousel arrows smaller on small phones */
    .carousel-arrow {
      display: flex !important;
      width: 40px;
      height: 40px;
      min-width: 40px;
      padding: 8px;
      background-color: rgba(255, 255, 255, 0.95);
      border-radius: 50%;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .carousel-arrow img {
      width: 20px;
      height: 20px;
    }

    .carousel-arrow.prev,
    .carousel-arrow.next {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }

    .summary-box {
      padding: 16px;
    }

    .summary-item {
      font-size: 13px;
      margin-bottom: 12px;
    }

    /* Preview popup optimization */
    .preview-popup-content {
      padding: 16px;
      border-radius: 8px;
    }

    .preview-popup-title {
      font-size: 18px;
      margin-bottom: 16px;
    }

    .preview-popup-buttons {
      flex-direction: column;
      gap: 12px;
    }

    .preview-popup-buttons button {
      width: 100%;
    }

    /* Preview text adjustments for small phones */
    #index_preview_text_1 {
      font-size: 45%;
    }

    #index_preview_text_2 {
      font-size: 20%;
    }

    /* Container padding */
    .container {
      padding-left: 16px;
      padding-right: 16px;
    }
  }

/* CSS for section section:Footer */
.footer-section {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding: 60px 0 0 0;
  }
  .footer-section .container {
    border: 1px solid var(--color-text-light);
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .footer-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--color-text-light);
    margin-bottom: 0;
  }
  .footer-column {
    background-color: var(--color-background-dark);
    padding: 39px 56px;
    display: flex;
    flex-direction: column;
  }
  .footer-column:not(:last-child) {
    border-right: 1px solid var(--color-text-light);
  }
  .column-number {
    font-family: var(--font-mono);
    font-size: 26px;
    color: var(--color-primary);
    margin-bottom: 67px;
  }
  .column-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 21px;
    text-transform: lowercase;
  }
  .footer-column a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 7px;
  }
  .publications {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
  }
  .publications img {
    max-width: 167px;
    height: auto;
  }
  .footer-bottom {
    padding: 0 50px;
  }
  .legal-links {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
  }
  .legal-links a {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
  }
  .copyright {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
  }
  @media (max-width: 1024px) {
    .footer-main {
      grid-template-columns: 1fr;
    }
    .footer-column:not(:last-child) {
      border-right: none;
      border-bottom: 1px solid var(--color-text-light);
    }
  }
  @media (max-width: 768px) {
    .footer-section .container {
      border: none;
      padding-top: 20px;
     
    }
    .footer-main {
      
      margin-bottom: 20px;
    }
    .footer-column {
      padding: 20px;
    }
    .footer-bottom {
      padding: 0;
      text-align: center;
    }
    .legal-links {
      flex-direction: column;
      gap: 10px;
      align-items: center;
    }
  }

/* Preview Popup */
.preview-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.preview-popup.active {
    display: flex;
}
.preview-popup-content {
    background-color: var(--color-background-light);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.preview-popup-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}
.preview-card-display {
    position: relative;
    margin-bottom: 30px;
}
.preview-card-display img {
    width: 100%;
    border-radius: 6px;
}
.preview-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* User Message Text - Top Left Position */
#index_preview_text_1 {
    position: absolute;
    top: 32%;
    left: 20.9%;
    width: 27.5%;
    height: 33%;
    max-height: 34%;
    font-family: 'Kalam', cursive;
    background-color: #FCF8ED;
    padding: 3px 3px 0 3px;
    box-sizing: border-box;
    font-size: 65%;
    line-height: 118%;
    overflow-wrap: break-word;
    overflow: hidden;
}

/* Donation Details Text - Bottom Right Position */
#index_preview_text_2 {
    position: absolute;
    top: 66.5%;
    right: 48.8%;
    min-width: 24%;
    max-width: 33%;
    height: 16.5%;
    text-align: right;
    font-weight: 600;
    font-size: 30%;
    background-color: #FCF8ED;
    padding: 2% 2% 0 2%;
    line-height: 110%;
    box-sizing: border-box;
    overflow: hidden;
}
.preview-popup-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.preview-popup-buttons button {
    padding: 12px 26px;
    border: 1px solid var(--color-text-dark);
    border-radius: 28px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.preview-popup-buttons button:hover {
    background-color: rgba(77, 184, 162, 0.1);
}
.preview-popup-buttons button.primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}
.preview-popup-buttons button.primary:hover {
    background-color: var(--color-primary-darker);
}

/* Legal Modals - Despre noi, Termeni și condiții, Politica de confidențialitate */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.legal-modal-content {
    background-color: var(--color-background-light);
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.legal-modal-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.legal-modal-close {
    background: none;
    border: none;
    font-size: 36px;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.legal-modal-close:hover {
    color: #F84141;
}

.legal-modal-body {
    padding: 30px 40px;
    overflow-y: auto;
    flex: 1;
}

.legal-modal-body h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.legal-modal-body p {
    color: #28282A;
    font-family: Geist;
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.legal-modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

.btn-legal-secondary,
.btn-legal-primary {
    padding: 12px 24px;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--color-text-dark);
}

.btn-legal-secondary {
    background: transparent;
    color: var(--color-text-dark);
}

.btn-legal-secondary:hover {
    background-color: rgba(77, 184, 162, 0.1);
}

.btn-legal-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

.btn-legal-primary:hover {
    background-color: var(--color-primary-darker);
}

.legal-modal-sponsors {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.legal-modal-sponsors ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
}

.legal-modal-sponsors li {
    flex: 1;
    text-align: center;
}

.legal-modal-sponsors img {
    max-width: 100%;
    height: auto;
}

/* Mobile responsive for legal modals */
@media (max-width: 768px) {
    .legal-modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 95vh;
    }

    .legal-modal-header {
        padding: 20px 24px 15px;
    }

    .legal-modal-title {
        font-size: 20px;
    }

    .legal-modal-body {
        padding: 20px 24px;
    }

    .legal-modal-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-legal-secondary,
    .btn-legal-primary {
        width: 100%;
        text-align: center;
    }

    .legal-modal-sponsors ul {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .legal-modal-header {
        padding: 16px 20px 12px;
    }

    .legal-modal-title {
        font-size: 18px;
    }

    .legal-modal-body {
        padding: 16px 20px;
    }

    .legal-modal-body h4 {
        font-size: 18px;
    }

    .legal-modal-body p {
        font-size: 13px;
    }
}

/* Despre Noi Modal - Special Buttons */
.btn-despre-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid #28282A;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #28282A;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-despre-secondary:hover {
    background-color: #28282A;
    color: #F5F5F5;
}

.btn-despre-secondary .btn-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #28282A;
    border-radius: 50%;
    color: #F5F5F5;
    transition: all 0.3s ease;
}

.btn-despre-secondary:hover .btn-arrow-icon {
    background-color: #F5F5F5;
    color: #28282A;
}

.btn-despre-primary {
   border-radius: 100px;
    background: #40C8AF;
    color: #FFF;
    font-family: Geist;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding: 9px;
    border: 1px solid #40C8AF;
}

.btn-despre-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.spon-wrap img{
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
    cursor: pointer;;
}
.spon-wrap img:hover{
    -webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */
    filter: grayscale(0%);
}

.spon-wrap{
    border-top: 1px solid #28282A;
    border-bottom: 1px solid #28282A;
    padding: 40px 0;
}

.pop-spon{
    margin-top: 40px;
    padding: 10px 0;
}

.inline-ul{
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1rem;
}
.inline-ul li{
    flex: 1;
    text-align: center;
}

.pop-text{
    color: #28282A;
    font-family: Geist;
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}


/* Mobile responsive for Despre Noi buttons */
@media (max-width: 768px) {
    .btn-despre-secondary,
    .btn-despre-primary {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }
}

/* PNRR Funding Section */
.pnrr-section {
    margin-top: 50px;
    padding: 0;
    
    border-radius: 12px;
    overflow: hidden;
}

/* PNRR Logos - Top Row */
.pnrr-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 40px 60px;
    background-color: #FFFFFF;
}

.pnrr-logo-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pnrr-logo-item img {
    width: 100%;
    max-width: 200px;
    height: 80px;
    object-fit: contain;
}

/* PNRR Content - Middle Section */
.pnrr-content {
    text-align: center;
    padding: 40px 60px;
    background: linear-gradient(180deg, #5B8FE5 0%, #4A7DD4 100%);
    color: #FFFFFF;
}

.pnrr-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.pnrr-project-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.pnrr-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0;
}

/* PNRR Footer - Bottom Row */
.pnrr-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    background-color: #3D3D3D;
    border-radius: 0 0 12px 12px;
}

.pnrr-footer-left {
    flex: 0 0 auto;
}

.pnrr-beneficiary {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #FFFFFF;
    margin: 0;
}

.pnrr-footer-center {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.pnrr-disclaimer {
    font-size: 12px;
    line-height: 1.5;
    color: #FFFFFF;
    margin: 0;
}

.pnrr-footer-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.pnrr-footer-right a {
    font-size: 12px;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.pnrr-footer-right a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Mobile Responsive - Tablet */
@media (max-width: 768px) {
    .pnrr-section {
        margin-top: 30px;
        padding: 30px 0;
    }

    .pnrr-logos {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .pnrr-logo-item img {
        max-width: 150px;
        height: 60px;
    }

    .pnrr-content {
        padding: 30px;
    }

    .pnrr-title {
        font-size: 16px;
    }

    .pnrr-project-title {
        font-size: 22px;
    }

    .pnrr-subtitle {
        font-size: 14px;
    }

    .pnrr-footer {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .pnrr-footer-left,
    .pnrr-footer-center,
    .pnrr-footer-right {
        text-align: center;
    }

    .pnrr-footer-right {
        align-items: center;
    }
}

/* Mobile Responsive - Phone */
@media (max-width: 480px) {
    .pnrr-section {
        margin-top: 20px;
        padding: 20px 0;
    }

    .pnrr-logos {
        padding: 20px 15px;
        gap: 15px;
    }

    .pnrr-logo-item img {
        max-width: 120px;
        height: 50px;
    }

    .pnrr-content {
        padding: 20px;
    }

    .pnrr-title {
        font-size: 14px;
    }

    .pnrr-project-title {
        font-size: 18px;
    }

    .pnrr-subtitle {
        font-size: 13px;
    }

    .pnrr-footer {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
        align-items: center;
    }

    .pnrr-footer-left,
    .pnrr-footer-center,
    .pnrr-footer-right {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .pnrr-footer-right {
        align-items: center;
    }

    .pnrr-beneficiary {
        font-size: 11px;
        text-align: center;
        width: 100%;
    }

    .pnrr-disclaimer {
        font-size: 11px;
        text-align: center;
        width: 100%;
    }

    .pnrr-footer-right a {
        font-size: 11px;
        text-align: center;
        width: 100%;
    }
}

