#cuict-wrapper {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* GLOBAL RESET */
:root {
    --cuict-bg-match: #ffffff;
    --cuict-text-primary: #111827;
    --cuict-text-secondary: #4b5563;
    --cuict-accent-blue: #2ca2a6;
    --cuict-accent-blue-hover: #178c96;
}

#cuict-wrapper {
    background-color: var(--cuict-bg-match);
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--cuict-text-primary);
    overflow-x: hidden;
    font-size: 1rem;
}

#cuict-wrapper *, #cuict-wrapper *::before, #cuict-wrapper *::after {
    box-sizing: border-box;
}

/* --cuict-- LOADER --cuict-- */
#cuict-loader {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--cuict-bg-match);
    transition: opacity 0.5s ease;
}

.cuict-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #eae0f9;
    border-top-color: var(--cuict-accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.cuict-loading-text {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--cuict-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#cuict-progress-text {
    margin-top: 0.2rem;
    font-size: 0.6rem;
    color: #9ca3af;
}

/* --cuict-- SCROLL SECTION --cuict-- */
#cuict-main-container {
    position: relative;
    height: 90vh;
    margin: 0;
    padding: 0;
}

.cuict-sticky-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
    /* FIX: Remove bottom margin/padding to eliminate white space */
    margin: 0;
    padding: 0;
}

#cuict-wrapper canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    /* FIX: Remove negative margin that creates white space gap */
    padding-top: 3rem;
    margin-bottom: -8rem;
}

/* --cuict-- TEXT BELOW CANVAS (NOT OVERLAPPING) --cuict-- */
.cuict-overlay-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding: 0 3rem;
    text-align: center;
    z-index: 20;
    /* FIX: Adjust spacing to bring banner closer */
    margin: 0 auto;
}

#cuict-hero-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s ease-out;
}

#cuict-hero-text.cuict-visible {
    opacity: 1;
    transform: translateY(0);
}

.cuict-title-main {
    display: block;
    color: #2ca2a6;
    font-size: 2.3rem;
    letter-spacing: 0.1rem;
    font-weight: 700;
    margin-bottom: 0.48rem;
}

.cuict-title-sub {
    display: block;
    font-size: 1.35rem;
    line-height: 1.54;
    color: #374151;
    padding: 0 1rem;
    margin: 0;
    font-weight: 400;
    text-align: justify;
}

.cuict-title-sub-en {
    display: block;
    font-size: 1.2rem;
    line-height: 1.45;
    color: #374151;
    padding: 0 1rem;
    margin: 0;
    font-weight: 400;
    text-align: justify;
}

/* === MOBILE OVERRIDES (Scale Down) === */
@media (max-width: 768px) {
    .cuict-overlay-container { 
        padding: 0 0.3rem 2.1rem 0.3rem; 
    }
    .cuict-title-main { 
        font-size: 1.15rem; 
        padding: 0 0.3rem; 
    }
    .cuict-title-sub { 
        font-size: 0.9rem; 
        padding: 0;
    }
    .cuict-title-sub { 
        font-size: 0.8rem; 
        padding: 0;
    }
    .cuict-title-sub-en {
        font-size: 0.8rem !important;
        line-height: 1.02 !important;
        padding: 0 0.1rem !important;
	min-height:60vh !important;
    }

   .cuict-overlay-container {
      margin-bottom: 3rem;
   }

}

.cuict-course-main {
    display: block;
    color: #2ca2a6;
    font-size: 2.3rem;
    letter-spacing: 0.1rem;
    font-weight: 700;
    margin-bottom: 0.48rem;
}

@media (max-width: 768px) {
    .cuict-course-main { 
        font-size: 1.65rem; 
        padding: 0 0.5rem; 
    }
}

/* --cuict----------------- TOP STICKY MENU --cuict----------------- */
#cuict-top-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background-color: transparent;
  box-shadow: none;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: none;
}

#cuict-top-menu.cuict-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#cuict-top-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: -1;
}

#cuict-top-menu::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    45deg,
    rgba(166, 238, 220, 0.9),
    rgba(193, 198, 249, 0.9),
    rgba(166, 238, 220, 0.9)
  );
  background-size: 300% 300%;
  animation: gradientMove 12s ease infinite;
  filter: blur(8px);
  z-index: -2;
  transform: translateY(5px);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
  #cuict-top-menu {
    height: 60px;
    position: fixed !important;
    top: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: none !important;
  }
}

.cuict-menu-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cuict-menu-logo {
    height: 50px;
    width: auto;
    margin-right: 2rem;
    flex-shrink: 0;
}

.cuict-menu-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
    white-space: nowrap;
}

.cuict-menu-links a {
    text-decoration: none;
    color: var(--cuict-text-primary);
    font-weight: 500;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 4px;
}

.cuict-menu-links a:not(.cuict-btn-register)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--cuict-accent-blue);
    transition: width 0.3s ease;
}

.cuict-menu-links a:not(.cuict-btn-register):hover::after {
    width: 100%;
}

.cuict-menu-links .cuict-btn-register {
    padding: 0.5rem 1.5rem;
    background-color: var(--cuict-accent-blue);
    color: white;
    border-radius: 9999px;
    transition: background-color 0.25s;
    font-size: 1.45rem;
}

.cuict-menu-links .cuict-btn-register:hover {
    background-color: var(--cuict-accent-blue-hover);
}

@media (max-width: 768px) {
    .cuict-menu-inner {
        padding: 0 0.5rem;
        justify-content: space-between;
    }
    .cuict-menu-logo {
        height: 12px;
        margin-right: 0.14rem;
    }
    .cuict-menu-links {
        gap: 0.3rem;
        flex-shrink: 0;
    }
    .cuict-menu-links a {
        font-size: 0.61rem;
        padding-bottom: 2px;
    }
    .cuict-menu-links .cuict-btn-register {
        padding: 0.25rem 0.25rem;
        font-size: 0.72rem;
    }
}

/* --cuict---------------------- anchor --cuict----------------------------- */
#cuict-plan-intro,
#cuict-course-overview {
    scroll-margin-top: 95px;
}

@media (max-width: 768px) {
    #cuict-plan-intro,
    #cuict-course-overview {
        scroll-margin-top: 70px;
    }
}

/* --cuict----------------------- CONTENT SECTION --cuict----------------------- */
.cuict-content-section {
    position: relative;
    background: white;
    /* FIX: Reduce top padding to bring banner closer to text */
    padding: 0 1rem 4rem 1rem;
    text-align: center;
    z-index: 30;
    width: 100%;
    margin: 0;
}

.cuict-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--cuict-text-primary);
    font-size: 1.3rem;
    width: 100%;
}

.cuict-content-wrapper h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    background: -webkit-linear-gradient(#f98c79, #c1c6f9, #a6eedc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cuict-content-wrapper p {
    font-size: 1.3rem;
    line-height: 1.6;
}

.cuict-cta-button {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: var(--cuict-accent-blue);
    color: white;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 1.2rem;
}

.cuict-cta-button:hover {
    background: var(--cuict-accent-blue-hover);
}

/* --cuict--------------- bottom content --cuict--------------------- */
.cuict-bottom-main {
    width: 100%;
    max-width: 92%;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.cuict-bottom-main p {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .cuict-bottom-main p {
        font-size: 0.92rem;
    }
    .cuict-bottom-main {
        padding: 0 0.8rem;
    max-width: 99%;
    }
}

/* --cuict-- NEW: COURSE GRID STYLES --cuict-- */
.cuict-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    text-align: left;
    width: 100%;
}

.cuict-course-card {
    background: #fff;
    border: 2px solid #a9eedc;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(30px);
}

.cuict-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -4px rgba(44, 162, 166, 0.3), 0 4px 6px -3px rgba(44, 162, 166, 0.2);
    border-color: var(--cuict-accent-blue);
}

.cuict-course-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f3f4f6;
    overflow: hidden;
}

.cuict-course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cuict-course-card:hover .cuict-course-img-wrapper img {
    transform: scale(1.05);
}

.cuict-course-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.cuict-course-info h3 {
    font-size: 1.25rem;
    color: var(--cuict-text-primary);
    margin: 0 0 0.8rem 0;
    line-height: 1.1;
    font-weight: 600;
}

.cuict-btn-learn-more {
    align-self: flex-end;
    background: transparent;
    border: 2px solid var(--cuict-accent-blue);
    color: var(--cuict-accent-blue);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.cuict-course-card:hover .cuict-btn-learn-more {
    background: var(--cuict-accent-blue);
    color: white;
}

@media (max-width: 1024px) {
    .cuict-course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cuict-content-section { 
        padding: 0 1rem 3rem 1rem; 
    }
    .cuict-content-wrapper { 
        font-size: 1.05rem; 
    }
    .cuict-content-wrapper h2 { 
        font-size: 1.8rem; 
        margin-bottom: 1rem; 
    }
    .cuict-content-wrapper p { 
        font-size: 1.05rem; 
    }
    .cuict-cta-button { 
        padding: 0.6rem 1.5rem; 
        font-size: 1.1rem; 
    }
    .cuict-course-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 3rem auto;
    }
    .cuict-course-info h3 { 
        font-size: 1.2rem; 
    }
}

@media (max-width: 360px) {
    .cuict-course-grid { 
        gap: 1rem; 
    }
}


#cuict-front-banner-img {
    transform: scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
}

#cuict-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    overflow-x: clip;
    box-sizing: border-box;
}

#cuict-footer-img {
    width: min(90%, 1080px);
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #cuict-footer {
        width: 100%;
        padding: 0;
        overflow: hidden;
    }

    #cuict-footer-img {
        width: 94vw;
        max-width: 94vw;
        height: auto;
        margin: 0 auto;
    }
}


.cuict-menu-logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 2rem;
    flex-shrink: 0;
}

.cuict-menu-logo-ioa {
    height: 44px;
    width: auto;
    margin-right: 0;
}

.cuict-menu-logo-main {
    height: 50px;
    width: auto;
    margin-right: 0;
}
.cuict-menu-logo-main-m {
    display:none;
}



@media (max-width: 768px) {
    .cuict-menu-logo-group {
        gap: 6px;
        margin-right: 0.5rem;
    }
    
    .cuict-menu-logo-ioa {
        height: 42px;
    }

    .cuict-menu-logo-main {
        display:none;
    }
    .cuict-menu-logo-main-m {
        display:block;
    width: auto;
    margin-right: 0;
        height: 44px;
    }

    .cuict-menu-links a {
        font-size: 1rem !important;
    }

    .cuict-menu-links .cuict-btn-register {
        font-size: 1rem !important;
        padding: 0.35rem 0.7rem !important;
    }
    .cuict-bottom-note {
	width:100%;
	padding: 0 1.5rem;
    }

}
