/* Default: ảnh full width, tự co giãn theo tỷ lệ */
.header__banner-image,
.explore__software-guide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* Modal guides styling */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Background image for modal */
#welcomeModal .modal-content {
    background-image: url('/asset/img/instructez.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay to ensure text readability */
#welcomeModal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    z-index: 1;
}

/* Ensure modal content is above the overlay */
#welcomeModal .modal-header,
#welcomeModal .modal-body,
#welcomeModal .modal-footer {
    position: relative;
    z-index: 2;
}

/* Modal header styling */
#welcomeModal .modal-header {
    background: transparent;
    border-bottom: none;
    padding: 20px 20px 0 20px;
}

#welcomeModal .modal-header h5 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Modal body styling */
#welcomeModal .modal-body {
    background: transparent;
    padding: 20px;
}

/* Guide steps container */
.guide-steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual guide step */
.guide-step {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Step number circle */
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #666;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Step content */
.step-content {
    flex: 1;
    margin-right: 20px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.step-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Action button */
.step-action {
    flex-shrink: 0;
}

.step-action .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 10px 20px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.step-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Modal footer styling */
#welcomeModal .modal-footer {
    background: rgba(240, 245, 250, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

#welcomeModal .modal-footer p:first-child {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

#welcomeModal .modal-footer p:last-child {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Modal dialog sizing */
#welcomeModal .modal-dialog {
    max-width: 700px;
}

/* Responsive design */
@media (max-width: 768px) {
    .guide-step {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .step-content {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .step-action {
        width: 100%;
    }
    
    .step-action .btn {
        width: 100%;
    }
    
    #welcomeModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

/* Animation for modal */
#welcomeModal .modal-content {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.guide-step-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(233, 236, 239, 0.8);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid #667eea;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.guide-step-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}



.guide-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.guide-step-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.guide-step-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.guide-step-desc {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0;
}

.guide-step-action {
    margin-top: 12px;
}

.guide-step-action .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.guide-step-action .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.guide-step-action .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

/* Responsive design cho modal guides */
@media (max-width: 768px) {
    .guide-step-card {
        padding: 12px;
    }
    
    .guide-step-title {
        font-size: 13px;
    }
    
    .guide-step-desc {
        font-size: 11px;
    }
    
    .guide-step-action .btn {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    #welcomeModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    #welcomeModal .modal-body {
        padding: 16px;
    }
}

/* Animation cho modal */
#welcomeModal .modal-content {
    animation: slideInUp 0.3s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Enhanced modal dialog positioning */
#welcomeModal .modal-dialog {
    max-width: 800px;
}

/* Enhanced modal header styling */
#welcomeModal .modal-header h5 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced guide section title */
#welcomeModal #guidesSection h6 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hover effects cho guide cards */
.guide-step-card:hover .guide-step-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.guide-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.highlight__communities {
    margin-top: 30px;
  }
  
  .highlight__communities--title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .highlight__communities--list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
  }



  /* Học hỏi thêm từ chuyên gia */
  /* Gốc layout 3 cột trên desktop */
.experts__academy--list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  /* Item khóa học */
  .academy__list--item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    height: 100%;
  }
  
  .academy__list--item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
  }
  
  /* Ảnh khóa học */
  .item--img-academy {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
  }
  
  /* Thông tin khóa học */
  .list__item--info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .item--info-title-academy {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
  }
  
  .item--info-desc-academy {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
  }





/*  */
.suggested__card {
    transition: transform 0.2s ease;
    height: 100%;
  }
  
  .suggested__card:hover {
    transform: translateY(-4px);
  }
  
  .suggested__green {
    background-color: #DFFFE1;
  }
  
  .suggested__purple {
    background-color: #EDE5FF;
  }
  
  .suggested__image {
    width: 100%;
    max-width: 100px;
    height: auto;
  }
  


  .fw-semibold {
    font-size: 18px;
  }
  

  .suggested__blue {
    background-color: #4e78e1;
  }
  .suggested__purple {
    background-color: #6bb6f3;
  }
  .suggested__green {
    background-color: #78cdd5;
  }


  .carousel-item-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
  }
  

/* Màn hình lớn (desktop) */
@media (min-width: 1200px) {
    .header__banner-image,
    .explore__software-guide img {
        max-height: 350px;
    }

    .carousel-item-img {
      max-height: 500px;
    }
}

/* Màn hình laptop */
@media (max-width: 1199px) and (min-width: 992px) {
    .header__banner-image,
    .explore__software-guide img {
        max-height: 400px;
    }

    .explore__more--content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
      }
      .experts__academy--list {
        grid-template-columns: repeat(2, 1fr);
      }

      .carousel-item-img {
        max-height: 400px;
      }
}

/* Màn hình tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .header__banner-image,
    .explore__software-guide img {
        max-height: 300px;
    }
    .experts__academy--list {
        grid-template-columns: repeat(2, 1fr);
      }

      .carousel-item-img {
        max-height: 300px;
      }
}

/* Màn hình mobile */
@media (max-width: 767px) {
    .header__banner-image,
    .explore__software-guide img {
        max-height: 200px;
    }

    .explore__more--content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
      }
    
      .more__content--item--ezlink,
      .more__content--item--about,
      .more__content--item--nfc-card,
      .more__content--item--academy {
        padding: 12px;
      }
    
      .item--ezlink-desc-title,
      .item--about-desc-title,
      .item--nfc-card-desc-title,
      .item--academy-desc-title {
        font-size: 16px;
      }
    
      .item--ezlink-desc-note,
      .item--about-desc-note,
      .item--nfc-card-desc-note,
      .item--academy-desc-note {
        font-size: 13px;
      }

      .experts__academy--list {
        grid-template-columns: 1fr;
        gap: 16px;
      }
    
      .item--img-academy {
        height: 140px;
      }
    
      .item--info-title-academy {
        font-size: 16px;
      }
    
      .item--info-desc-academy {
        font-size: 13px;
      }


      .carousel-inner img {
		height: 250px;
	}


  .carousel-item-img {
		max-height: 200px;
	}


}

/* Main-content 2-column layout (scoped to avoid conflicts) */
.wrapper #content .main-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

/* Left: keep existing center content */
.wrapper #content .main-content .content__homepage {
    flex: 1;
    min-width: 0; /* allow children to shrink properly */
}

/* Right Sidebar (reused styles) */
.wrapper #content .main-content .right-sidebar-column {
    width: 320px;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
}

/* Responsive: stack on tablet/mobile */
@media (max-width: 992px) {
    .wrapper #content .main-content {
        flex-direction: column;
        padding: 16px;
    }
    .wrapper #content .main-content .right-sidebar-column {
        width: 100%;
        position: static;
        margin-top: 16px;
    }
}

/* Action section (moved from ez_style_2.css) */
.action-section {
    margin-top: 10px;
}

.action-section h6 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-button {
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 12px;
}

@media (max-width: 575.98px) {
    .action-section h6 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    .action-buttons {
        gap: 6px;
    }
    .action-button {
        border-radius: 5px;
        font-size: 12px;
        padding: 7px 10px;
    }
}