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

/* =============== HOME SECTION =============== */
.home-section { min-height: 100vh; }

.page {
  min-height: 100vh;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 50px);
  padding-top: 120px;
  display: flex;
  flex-direction: column;
}

/* NAV BAR */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0 clamp(16px, 4vw, 50px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #d9d9d9;
  z-index: 1002;
  border-bottom: 1px solid #6d2c32;
}

.logo img { height: clamp(42px, 6vw, 64px); }

.menu-toggle { width: 28px; cursor: pointer; }
.menu-toggle span {
  display: block;
  height: 2px;
  background: #6d2c32;
  margin: 6px 0;
}

/* SIDE MENU */
.side-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 80%);
  background: #6d2c32;
  padding: 120px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1001;
}
.side-menu.open { transform: translateX(0); }

.side-menu a {
  text-decoration: none;
  color: #d9d9d9;
  font-size: 18px;
}

/* TITLE */
.title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(48px, 12vw, 140px);
  letter-spacing: clamp(2px, 1vw, 5px);
  color: #6d2c32;
}

hr {
  border: none;
  height: 1px;
  background: #6d2c32;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-top: 40px;
  margin-bottom: 16px;
}

.bottom-bar {
  color: #6d2c32;
  font-size: clamp(12px, 2.5vw, 14px);
  line-height: 1.5;
}

/* =============== ABOUT SECTION =============== */
.about-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 30px 20px 60px;
}

.about-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.image-button-wrapper {
  position: relative;
  width: 100%;
}

.about-image {
  width: 100%;
  height: 70vh;
  height:auto;
  object-fit: cover;
}

.learn-more-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #6d2c32;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.about-text-below {
  align-self: flex-end;
  text-align: justify;
  font-size: clamp(12px, 1.8vw, 16px);
  color: #6d2c32;
  max-width: 45%;
  line-height: 1.5;
}

/* FADE */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============== COURSES SECTION =============== */
.courses-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.courses-wrapper {
  width: 100%;
  max-width: 1400px;
  position: relative;
  min-height: 100vh;
}

/* DESKTOP POSITIONING */
.courses-title {
  position: absolute;
  top: 11%;
  right: 2%;
  font-size: clamp(35px, 6vw, 95px);
  color: #6d2c32;
  text-align: right;
  line-height: 1.05;
}

.courses-content {
  position: absolute;
  left: 3%;
  top: 25%;
  transform: translateY(-50%);
}

.course-item {
  display: flex;
  align-items: center;
  gap: 20px;
}
.course-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* keeps text close to the label */
}


.course-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #6d2c32;
}

.course-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-label {
  margin-bottom: 4px;
  color: #6d2c32;
  font-size: 21px;
  letter-spacing: 2px;
}
/* RIGHT BOTTOM COURSE CARD */
.robotics-item {
  display: flex;
  align-items: center;
  gap: 20px;
}
.robotics-title {
  margin-right: 50px;
}


/* POSITION BOTTOM RIGHT */
.courses-content-right {
  position: absolute;
  right: 2%;
  bottom: 15%;
}

/* PUSH IMAGE TOWARDS EDGE */
.courses-content-right .course-circle {
  margin-right: 0;
}

.course-desc {
  font-size: 16px;
  margin-left: 10px;                 /* a little bigger */
  color: #6d2c32;
  margin-top: 0px;
  line-height: 1.5;
  max-width: 260px;               /* keeps it near the logo */
  font-family: Georgia, "Times New Roman", serif; /* same as your site */
  text-align: justify;
}

.arrow-list {
  list-style: none;      /* remove default bullets */
  padding-left: 0;
  margin-top: 10px;
}

.arrow-list li {
  position: relative;
  padding-left: 10px;   /* space for arrow */
  margin-bottom: 8px;
}

.arrow-list li::before {
  content: "▶";        /* arrow symbol */
  position: absolute;
  left: 0;
  top: 2px;
  color: #6d2c32;      /* your color */
  font-size: 12px;
}
/* Fade from left */
.fade-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 0.9s ease-out;
}

/* Fade from right */
.fade-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all 0.9s ease-out;
}

/* When visible */
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}
/* =============== WHY CHOOSE US SECTION =============== */
.why-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.why-wrapper {
  width: 100%;
  max-width: 1400px;
  margin:0 auto;
  position: relative;
  min-height: 100vh;
}
.why-title {
  margin-top: 72px;
  position: absolute;
  font-size: clamp(35px, 6vw, 95px);
  color: #6d2c32;
  text-align: right;
  line-height: 1.05;
  top:12%;
  right:2%;
}
.why-image {
  position: absolute;
  top: 260px;        /* space below heading */
  right: 2%;
  width: 100%;  
  max-width: 600px;    /* NEW WIDTH */
  height: auto;     /* NEW HEIGHT */
  object-fit: cover; /* crop nicely instead of stretching */
  border-radius: 12px; /* optional: smooth corners */
}
.why-left {
  position: absolute;
  top: 180px;
  left: 2%;
  width: 38%;
  display: flex;
  flex-direction: column;
  gap: 35px;
  color: #6d2c32;
  font-family: Georgia, "Times New Roman", serif;
}

.why-item h3 {

  line-height: 1.7;
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: bold;
}

.why-item p {

  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
  max-width: 95%;
  line-height: 1.5;
}

/* ========== PREMIUM FOOTER DESIGN ========== */

.footer-premium {
  background: #6d2c32; /* YOUR MAROON */
  color: white;
  padding: 100px 40px 30px;
  font-family: Georgia, "Times New Roman", serif;
  position: relative;
  z-index: 1;
}

/* FOOTER GRID */
.footer-container {
  max-width: 1400px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
}

/* BRAND */
.footer-brand h2 {
  font-size: 34px;
  letter-spacing: 3px;
}

.footer-brand p {
  font-size: 16px;
  opacity: 0.8;
  margin-top: 6px;
  color: gold;
}

/* CONTACT + SOCIAL TITLES */
.footer-contact h3{
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-align: left;
}
.footer-social h3 {
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* TEXT */
.footer-contact p {
  font-size: 16px;
  margin-bottom: 8px;
  text-align: justify;
}

/* SOCIAL LINKS */
.footer-social a {
  display: block;
  text-decoration: none;
  color: white;
  font-size: 16px;
  margin-bottom: 10px;
  transition: 0.3s;
}

.footer-social a i {
  margin-right: 8px;
}

.footer-social a:hover {
  opacity: 0.7;
  transform: translateX(4px);
}

/* PREMIUM GOLD LINE */
.footer-line {
  width: 100%;
  height: 1px;
  background: gold;
  margin: 30px 0 10px;
  opacity: 0.6;
}

/* COPYRIGHT */
.footer-bottom {
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}
/* Make circle interactive */
.course-circle {
  transition: 
    transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

/* Pop-out effect when mouse is on the circle */
.course-circle:hover {
  transform: translateY(-12px) scale(1.1);
}

/* Slight image highlight */
.course-circle:hover img {
  filter: brightness(1);
}

@media (max-width: 768px) {

  /* GENERAL */
  .page {
    padding-top: 100px;
  }

  /* ABOUT SECTION */
  .about-wrapper {
    align-items: center;
  }

  .about-text-below {
    max-width: 90%;
    align-self: center;
    text-align: justify;
  }

  /* COURSES SECTION */
   /* COURSES WRAPPER AS COLUMN */
   .courses-wrapper {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 1. TITLE FIRST */
  .courses-title {
    position: static;
    order: 1;
    text-align: center;
    margin: 20px 0 30px;
  }

  /* 2. CODING BLOCK */
  .courses-content {
    position: static;
    order: 2;
    transform: none;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Inside coding: image first, then text */
  .courses-content .course-item {
    flex-direction: column;
    align-items: center;
  }

  .courses-content .course-circle {
    order: 1;
    margin-bottom: 15px;
  }

  .courses-content .course-text {
    order: 2;
    text-align: center;
  }

  /* 3. ROBOTICS BLOCK */
  .courses-content-right {
    position: static;
    order: 3;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Inside robotics: image first, then text */
  .courses-content-right .robotics-item {
    flex-direction: column;
    align-items: center;
  }

  .courses-content-right .course-circle {
    order: 1;
    margin-bottom: 15px;
  }

  .courses-content-right .course-text {
    order: 2;
    text-align: center;
  }

  /* TEXT WIDTH FIX */
  .course-desc {
    max-width: 90%;
    margin-left: 0;
  }

  .courses-content-right {
    position: static;
    order: 3;
    margin-top: 40px;
  }

  .robotics-item {
    flex-direction: column;
    text-align: center;
  }

  /* WHY CHOOSE US SECTION */
  .why-wrapper {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
  }

  .why-title {
    position: static;
    order:1;
    text-align: center;
    margin-bottom: 25px;
  }

  .why-image {
    position: static;
    order: 2;
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .why-left {
    position: static;
    order: 3;
    width: 100%;
    gap: 25px;
  }
  .learn-more-btn {
    padding: 8px 16px;        /* smaller */
    font-size: 14px;         /* reduce text size */
    border-radius: 6px;
  }
}

/*ABOUT PAGE*/
/* =============== ABOUT PAGE TITLE - Desktop Top Right =============== */
/* =============== ABOUT PAGE ONLY =============== */

.about-section-main {
  min-height: 100vh;
  width: 100%;
  /*background-image: url('images/backg.png');*/
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
}

/* Main wrapper (replaces .page) */
.about-wrapper-main {
  width: 100%;
  max-width: 1400px;
  padding: clamp(16px, 4vw, 50px);
  padding-top: 120px;   /* same space below nav */
  position: relative;
}

/* Title top-right like Why Choose Us */
.about-main-title {
  position: absolute;
  top: 12%;
  left: 2%;
  font-size: clamp(35px, 6vw, 95px);
  color: #6d2c32;
  text-align: left;
  line-height: 1.05;
}

/* Content area */
.about-main-content {
  margin-top: 200px;      /* pushes content below title */
  max-width: 55%;
  color: #6d2c32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

/* Fade-in animation (reuse your JS) */
.about-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.about-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.about-circle {
  position:absolute;
  top:130px;
  right:2%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #6d2c32;
}

.about-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-item p {
  text-align: justify;
  margin-top: 150px;
  margin-left: -20px;
  font-size: 18px;
  left:2%;
  max-width: 85%;
  line-height: 2;
  color:#6d2c32;
}
.about-item h3 {
  color:#6d2c32;
  line-height: 4;
  font-size: 25px;
  margin-left: -20px;
  margin-bottom: 8px;
  font-weight: bold;
}
.about-item h4 {
  margin-top: -30px;
  font-weight: normal;
  text-align: justify;
  margin-left: -20px;
  font-size: 18px;
  left:2%;
  max-width: 65%;
  line-height: 2;
  color:#6d2c32;
}
/* JOURNEY SECTION*/

.journey-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.journey-wrapper-main{
  width: 100%;
  max-width: 1400px;
  margin:0 auto;
  position: relative;
  min-height: 100vh;
}
.journey-title {
  margin-top: 10px;
  position: absolute;
  font-size: clamp(35px, 6vw, 95px);
  color: #6d2c32;
  text-align: center;
  line-height: 1.05;
  top:0.5%;
  right:2%;
}
.journey-item {
  position: absolute;
  right: 2%;
  bottom: 30%;
  color: #6d2c32;
  font-size: 18px;
  text-align: justify;
  max-width: 40%;
  line-height: 1.7;
}
.journey-image1 {
  position: absolute;
  top: 6%;      
  left: 2%;
  width: 100%;  
  max-width: 300px;    
  height: auto;     
  object-fit: cover; 
}

.journey-image2 {
  position: absolute;
  top: 8%;      
  left: 28%;
  width: 100%;  
  max-width: 300px;    
  height: auto;     
  object-fit: cover; 
}
.journey-image3 {
  position: absolute;
  top: 280px;      
  left: 2%;
  width: 100%;  
  max-width: 300px;    
  height: auto;     
  object-fit: cover; 
}
/* ===== FORCE MOBILE LAYOUT ORDER FOR ABOUT PAGE ===== */
@media (max-width: 768px) {

  /* Make wrapper a column layout */
  .about-wrapper-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 90px;
  }

  /* 1. ABOUT NAGABOTS (title first) */
  .about-main-title {
    font-weight: normal;
    position: static;
    order: 1;
    font-size: 32px;
    margin: 0 0 20px 0;
    line-height: 1.2;
  }

  /* 2. IMAGE SECOND */
  .about-circle {
    position: static;
    order: 2;
    width: 220px;
    height: 220px;
    margin: 10px auto 30px auto;
  }

  /* 3. DESCRIPTION BLOCK */
  .about-main-content,
  .about-item {
    order: 3;
    width: 100%;
  }

  .about-item p {
    margin-top: 0;
    margin-left: 0;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.8;
  }

  /* 4. AIM TITLE */
  .about-item h3 {
    order: 4;
    margin-left: 0;
    margin-top: 30px;
    font-size: 20px;
    line-height: 1.4;
  }

  /* 5. AIM DESCRIPTION */
  .about-item h4 {
    order: 5;
    margin-left: 0;
    margin-top: 10px;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.7;
  }

/*Journey*/
  .journey-section,
  .journey-wrapper-main {
    min-height: auto;
  }

  .journey-wrapper-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5px;   /* very small top gap */
    position: static;
  }

  /* TITLE FIRST */
  .journey-title {
    position: static;
    margin: 0 0 15px 0;
    font-size: 28px;
    text-align: center;
  }

  /* IMAGE 1 */
  .journey-image1 {
    position: static;
    width: 85%;
    max-width: 260px;
    margin: 10px auto;
    display: block;
  }

  /* IMAGE 3 (same as image 1) */
  .journey-image3 {
    position: static;
    width: 85%;
    max-width: 260px;
    margin: 10px auto;
    display: block;
  }

  /* IMAGE 2 */
  .journey-image2 {
    position: static;
    width: 85%;
    max-width: 260px;
    margin: 10px auto;
    display: block;
  }

  /* DESCRIPTION LAST */
  .journey-item {
    position: static;
    max-width: 100%;
    margin: 20px 10px 0 10px;
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
  }
}


/*NAIC page================================================================================================================*/
.naic-section-main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.naic-wrapper-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

/* TITLE — NOT CHANGED */
.naic-title {
  position: absolute;
  font-size: clamp(35px, 4vw, 98px);
  color: #6d2c32;
  text-align: center;
  line-height: 1.05;
  top: 12%;
  right: 2%;
}

/* TEXT BLOCK */
.naic-item {
  margin-top: 200px;   /* controls distance from top */
  margin-left: 13px;
}

/* HEADING */
.naic-item h2 {
  margin: 0;          /* remove default margins */
  font-size: 22px;
  color: #6d2c32;
}

/* PARAGRAPH */
.naic-item p {
  margin-top: 10px;   /* only gap between h2 and p */
  font-size: 18px;
  max-width: 55%;
  color: #6d2c32;
  text-align: justify;
  line-height: 1.8;
}
.naic-item h3 {
  margin-top:15px;          /* remove default margins */
  font-size: 22px;
  color: #6d2c32;
}
.naic-circle {
  position:absolute;
  top:33%;
  right:12%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #6d2c32;
}

.naic-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.naic-item h5 {
  margin-top:15px;          /* remove default margins */
  font-size: 22px;
  color: #6d2c32;
}
.naic-item h6 {
  margin-top:15px;          /* remove default margins */
  font-size: 22px;
  color: #6d2c32;
}
.naic-ic {
  position: absolute;
  bottom: 1%;      
  right: 5%;
  width: 100%;  
  max-width: 400px;    
  height: auto;     
  object-fit: cover; 
}
/*WHY NAIC*/
.why-naic-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.why-naic-wrapper-main{
  width: 100%;
  max-width: 1400px;
  margin:0 auto;
  position: relative;
  min-height: 100vh;
}
.why-naic-title {
  margin-top: 10px;
  position: absolute;
  font-size: clamp(35px, 6vw, 95px);
  color: #6d2c32;
  text-align: center;
  line-height: 1.05;
  top:0.5%;
  right:2%;
}
.why-naic-item h2 {
  margin-top:50px;          /* remove default margins */
  font-size: 22px;
  color: #6d2c32;
  margin-left: 12px;
}
.why-naic-item p {
  margin-top: 10px;  
  margin-left: 12px;
  font-size: 18px;
  max-width: 55%;
  color: #6d2c32;
  text-align: justify;
  line-height: 1.8;
}
.why-naic-item h3 {
  margin-top:50px;          /* remove default margins */
  font-size: 22px;
  color: #6d2c32;
  margin-left: 12px;
}
.line{
  display: flex;
  justify-content:space-between;
  width: 600vw;
}
.why-naic-img1{
  margin-bottom: 10px;
}
.why-naic-img2{
  margin-bottom: 200px;
}
.why-naic-item h4 {
  margin-bottom:90px;          /* remove default margins */
  font-size: 50px;
  color: #6d2c32;
  margin-left: 12px;
  font-weight: normal;
}
.why-naic-img3{
  margin-left: 35px;
  width: 150px;
}
.why-naic-item h5 {
  margin-top:50px;          
  font-size: 22px;
  color: #6d2c32;
  margin-left: 12px;
}

  .why-naic-item h6 {
    margin-top: 50px;
    font-size: 26px;
    color: #6d2c32;
    position: relative;   
    left: 83%;             
  }
  /*Who Section*/
  .who-can-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
  }
  
  .who-can-wrapper-main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
  }
  
  .who-can-title {
    position: absolute;
    font-size: clamp(35px, 4vw, 98px);
    color: #6d2c32;
    text-align: center;
    line-height: 1.05;
    top: 4%;
    right: 10%;
  }
  .who-can-item p {
    margin-top: 200px;
    margin-left: 750px;   /* increase this */
    font-size: 18px;
    max-width: 55%;
    color: #6d2c32;
    text-align: justify;
    line-height: 1.8;
  }
  .why-can-imgc{
    position: absolute;
    top: 7%;      
    right: 65%;
    width: 100%;  
    max-width: 400px;    
    height: auto;     
    object-fit: cover; 
  }
  .who-can-item h2 {
    margin-top:35px;          /* remove default margins */
    margin-left: 13px;
    font-size: 36px;
    color: #6d2c32;
    font-weight: normal;
  }
  .why-can-imgc1{
    position: relative;
    margin-left:200px;
    margin-top: 15px;
  }
  .who-can-item h3 {
    margin-top:35px;          /* remove default margins */
    margin-left: 13px;
    font-size: 36px;
    color: #6d2c32;
    font-weight: normal;
  }
  .who-can-item p.incb{
  margin-top: 15px;  
  margin-left: 12px;
  font-size: 18px;
  max-width: 55%;
  color: #6d2c32;
  text-align: justify;
  line-height: 1.8;
  }
  .why-can-incimg{
    position: absolute;
    top:75%;
    right:0%;
    max-width: 590px;
    height: auto;
    }
    .why-can-incimg1{
      position: absolute;
      top:90%;
      right:0%;
      max-width: 590px;
      height: auto;
    }
   /* ============================= */
/* RESPONSIVE FIXES FOR DEVICES  */
/* ============================= */

@media (max-width: 1024px) {
  /* Make wrappers stack vertically */
  .naic-wrapper-main,
  .why-naic-wrapper-main,
  .who-can-wrapper-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 20px !important;
    position: static !important;
    min-height: auto !important;
    width: 100% !important;
  }

  /* Titles centered and spaced */
  .naic-title,
  .why-naic-title,
  .who-can-title {
    position: static !important;
    text-align: center !important;
    margin: 80px 0 20px !important;
    font-size: clamp(24px, 6vw, 40px) !important;
    width: 100% !important;
  }

  /* NAIC: title → circle → text → bottom image */
  .naic-circle,
  .naic-ic {
    position: static !important;
    margin: 20px auto !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
  }

  .naic-item {
    margin: 20px auto !important;
    text-align: center !important;
    max-width: 95% !important;
    width: 100% !important;
  }

  .naic-item p {
    max-width: 100% !important;
    margin: 10px auto !important;
    text-align: justify !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  /* WHY NAIC images and text */
  .why-naic-img1,
  .why-naic-img2,
  .why-naic-img3 {
    position: static !important;
    margin: 20px auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .why-naic-item {
    margin: 20px auto !important;
    text-align: center !important;
    max-width: 95% !important;
    width: 100% !important;
  }

  .why-naic-item p {
    max-width: 100% !important;
    margin: 10px auto !important;
    text-align: justify !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  /* WHO CAN images and text */
  .why-can-imgc,
  .why-can-imgc1,
  .why-can-incimg,
  .why-can-incimg1 {
    position: static !important;
    margin: 20px auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .who-can-item {
    margin: 20px auto !important;
    text-align: center !important;
    max-width: 95% !important;
    width: 100% !important;
  }

  .who-can-item p,
  .who-can-item p.incb {
    max-width: 100% !important;
    margin: 10px auto !important;
    text-align: justify !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .who-can-item h2,
  .who-can-item h3 {
    font-size: 22px !important;
    margin: 15px 0 !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .naic-title,
  .why-naic-title,
  .who-can-title {
    font-size: clamp(20px, 8vw, 32px) !important;
    margin-top: 100px !important;
  }

  .naic-circle {
    max-width: 80% !important;
  }

  .naic-item p,
  .why-naic-item p,
  .who-can-item p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}
/*mentors section*/
.mentors-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.mentors-wrapper-main{
  width: 100%;
  max-width: 1400px;
  margin:0 auto;
  position: relative;
  min-height: 150vh;
}
.mentors-title {
  margin-top: 10px;
  position: absolute;
  font-size: clamp(30px, 3vw, 90px);
  color: #6d2c32;
  text-align: center;
  line-height: 1.05;
  top:0.5%;
  right:2%;
}
.mentors-circle {
  position:absolute;
  top:180px;
  left:28%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #6d2c32;
}

.mentors-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mentors-name  {
  text-align: justify;
  margin-top: 200px;
  margin-left: 650px;
  font-size: 24px;
  max-width: 85%;
  line-height: 2;
  font-weight: bold;
  color:#6d2c32;
}
.mentors-desc{
  text-align: justify;
  margin-top: 10px;
  margin-left: 650px;
  font-size: 18px;
  max-width: 85%;
  line-height: 2;
  color:#6d2c32;
}
.mentors-name2  {

  text-align: justify;
  margin-top: -120px;
  margin-left: 650px;
  font-size: 24px;
  max-width: 85%;
  line-height: 2;
  font-weight: bold;
  color:#6d2c32;
}
.mentors-desc2{
  text-align: justify;
  margin-top: 10px;
  margin-left: 650px;
  font-size: 18px;
  max-width: 85%;
  line-height: 2;
  color:#6d2c32;
}
.mentors-circle2 {
  position:relative;
  top:100px;
  left:28%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #6d2c32;
}

.mentors-circle2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 💻 Large screens (above 1034px) */
@media (min-width: 1034px) {
  .mentors-title {
    position: absolute;
    top: 0.5%;
    right: 2%;
    text-align: center;
  }

  .mentors-circle {
    position: absolute;
    top: 180px;
    left: 28%;
  }

  .mentors-circle2 {
    position: relative;
    top: 100px;
    left: 28%;
  }

  .mentors-name,
  .mentors-name2,
  .mentors-desc,
  .mentors-desc2 {
    text-align: left;
    margin-left: 650px;
    max-width: 85%;
  }
}

/* 📲 Tablets (up to 768px) */
@media (max-width: 768px) {
  .mentors-title {
    position: static;
    font-size: clamp(26px, 5vw, 50px);
    margin-bottom: 20px;
    text-align: center;
  }

  .mentors-circle,
  .mentors-circle2 {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    position: static;
  }

  .mentors-name,
  .mentors-name2,
  .mentors-desc,
  .mentors-desc2 {
    text-align: center;
    margin: 15px auto;
    max-width: 90%;
  }
}

/* 📱 Mobile (up to 468px) */
@media (max-width: 468px) {
  .mentors-title {
    font-size: clamp(22px, 6vw, 36px);
    margin-bottom: 15px;
    text-align: center;
  }

  .mentors-circle,
  .mentors-circle2 {
    width: 160px;
    height: 160px;
    margin: 15px auto;
    position: static;
  }

  .mentors-name,
  .mentors-name2 {
    font-size: 18px;
    margin-top: 10px;
  }

  .mentors-desc,
  .mentors-desc2 {
    font-size: 15px;
    line-height: 1.4;
    margin: 10px auto;
    max-width: 95%;
    text-align: center;
  }
}














/*CONTACT PAGE+=======================================================*/
.contact-section-main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.contact-wrapper-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.contact-title {
  position: absolute;
  font-size: clamp(30px, 4vw, 90px);
  color: #6d2c32;
  text-align: center;
  line-height: 1.05;
  top: 12%;
  right: 15%;
}
.contact-item p {
  margin-top: 330px;
  margin-left:720px;   /* pushes it right */
  font-size: 18px;
  max-width: 43%;
  color: #6d2c32;
  text-align: justify;
  line-height: 1.8;
}

.contact-image {
  position: absolute;
  top: 15%;
  left: 15%;
  max-width: 400px;
  max-height: 700px;
}
/* Tablet adjustments */
@media (max-width: 1024px) {
  .contact-title {
    top: 20%;              /* push it further down */
    right: auto;           /* center instead of fixed right */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .contact-item p {
    margin-top: 220px;     /* reduce vertical gap */
    margin-left: auto;     /* center horizontally */
    margin-right: auto;
    max-width: 80%;
    text-align: left;
  }

  .contact-image {
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    margin-top: 2rem;
    max-width: 60%;
    height: auto;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .contact-title {
    top: auto;
    position: relative;    /* let it flow naturally */
    margin-top: 5rem;      /* clear space from navbar */
    font-size: clamp(22px, 6vw, 40px);
    text-align: center;
  }

  .contact-item p {
    margin: 1.5rem auto;
    max-width: 90%;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
  }

  .contact-image {
    position: relative;
    margin: 1rem auto;
    max-width: 80%;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .contact-title {
    margin-top: 6rem;
    font-size: 20px;
  }

  .contact-item p {
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
  }

  .contact-image {
    max-width: 100%;
  }
}
/* GALLERY PAGE+++++++++++++++++++++++++++++++++++++++++++++++*/
.gallery-section-main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.gallery-wrapper-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.gallery-title {
  position: absolute;
  font-size: clamp(32px, 6vw, 95px);
  color: #6d2c32;
  text-align: center;
  line-height: 1.05;
  top: 10%;
  right: 3%;
}
/* Default: Large desktops (≥1400px) */
.gallery-grid {
  column-count: 4;
  column-gap: 1.5rem;
  margin-top: 200px;
}

.gallery-grid img {
  width: 95%;
  margin: 0 auto 1rem;
  border-radius: 8px;
  display: block;
  break-inside: avoid;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Laptops (1024px–1399px) */

/* Laptops / medium screens (≥992px and <1400px) */
@media (max-width: 1399px) {
  .gallery-grid {
    column-count: 3;
    column-gap: 1.2rem;
    margin-top: 180px;
  }
}

/* Tablets / small screens (≥768px and <992px) */
@media (max-width: 991px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 1rem;
    margin-top: 150px;
  }

  .gallery-title {
    font-size: clamp(28px, 5vw, 80px);
    top: 8%;
    right: 2%;
  }
}

/* Mobile devices (<768px) */
@media (max-width: 767px) {
  .gallery-grid {
    column-count: 1;
    column-gap: 0;
    margin-top: 120px;
  }

  .gallery-title {
    font-size: clamp(24px, 6vw, 60px);
    top: 6%;
    right: 1%;
  }

  .gallery-grid img {
    width: 100%;
  }
}
/* Small devices (phones < 425px) */
@media (max-width: 425px) {
  .gallery-grid {
    column-count: 1;      /* single column for small screens */
    column-gap: 0;
    margin-top: 200px;    /* reduce top margin to fit screen */
  }

  .gallery-title {
    font-size: clamp(20px, 6vw, 50px); /* smaller title */
    top: 5%;
    right: 1%;
  }

  .gallery-grid img {
    width: 100%;          /* make images full width */
    margin-bottom: 0.8rem;
  }
}

/*Course page*/
.course-main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  
}
.course-wrapper-main{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}
.course-title {
  position: absolute; /* keep your original positioning */
  font-size: clamp(32px, 5vw, 95px);
  color: #6d2c32;
  text-align: center;
  line-height: 1.05;
  top: 4%;
  right: 2%;
}

.course-subtitle {
  position: absolute;
  top: calc(12% + 50px); /* places subtitle below the title */
  right: 50%;
  transform: translateX(50%); /* centers it horizontally */
  white-space: nowrap;
  font-size: clamp(20px, 3vw, 40px);
  color: #6d2c32;
  font-weight: normal;
  text-align: center;
}

/* Highlight underline */
.course-subtitle::after {
  content: "";
  display: block;
  margin: 0 auto;
  margin-top: 6px;
  width: 100%;
  height: 4px;
  background-color: #6d2c32;
  border-radius: 2px;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
  gap: 1.5rem;
  padding: 2rem;
  width: 90%;
  margin: 0 auto;

  /* spacing below subtitle */
  margin-top: 350px; /* adjust until it sits right */
}


.course-card {
  background-color: #f9f9f9;
  border-bottom: 3px solid #6d2c32; /* theme accent */
  padding: 1rem;
  border-radius: 6px;
  transition: transform 0.2s ease;
  overflow: hidden;

  /* portrait style */
  height: 450px;        /* taller card */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.course-img {
  width: 100%;
  height: 180px;        /* fixed portrait height */
  object-fit: cover;    /* crop nicely */
  border-radius: 6px 6px 0 0;
  display: block;
}


/* Hover effect */
.course-card:hover {
  transform: translateY(-6px);
  border-left-color: #6d2c32; /* keeps theme accent */
}

/* Headings inside cards */
.course-card h3 {
  color: #6d2c32; /* theme color for subject titles */
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-family: Georgia, "Times New Roman", serif;
}
.course-card p{
  color: #6d2c32;
  line-height: 2;
  font-size: 14px;
  font-family: Georgia, "Times New Roman", serif;
}
/* Meta info */
.course-card .meta {
  color: #6d2c32; /* theme color for credits/teacher */
  font-weight: bold;
}
.course-heading {
  text-align: center;
  font-size: clamp(20px, 3vw, 40px);
  color: #6d2c32;
  font-weight: normal;
  margin-top: 3rem;   /* space above heading */
  margin-bottom: 2rem;
  position: relative; /* stays in flow */
  margin-left: 20px;
}

.course-heading::after {
  content: "";
  display: block;
  margin: 6px auto 0; /* centers underline */
  width: 15%;
  height: 4px;
  background-color: #6d2c32;
  border-radius: 2px;
}


.courses-grid2{
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 4 cards per row */
  gap: 1.5rem;
  padding: 2rem;
  width: 50%;
  margin: 0 auto;

  /* spacing below subtitle */
  margin-top: 2px; /* adjust until it sits right */
}


.course-card2 {
  background-color: #f9f9f9;
  border-bottom: 3px solid #6d2c32; /* theme accent */
  padding: 1rem;
  border-radius: 6px;
  transition: transform 0.2s ease;
  overflow: hidden;

  /* portrait style */
  height: 400px;        /* taller card */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.course-img1 {
  width: 100%;
  height: 180px;        /* fixed portrait height */
  object-fit: cover;    /* crop nicely */
  border-radius: 6px 6px 0 0;
  display: block;
}


/* Hover effect */
.course-card2:hover {
  transform: translateY(-6px);
  border-left-color: #6d2c32; /* keeps theme accent */
}

/* Headings inside cards */
.course-card2 h3 {
  color: #6d2c32; /* theme color for subject titles */
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-family: Georgia, "Times New Roman", serif;
}
.course-card2 p{
  color: #6d2c32;
  line-height: 2;
  font-size: 14px;
  font-family: Georgia, "Times New Roman", serif;
}
/* Meta info */
.course-card2.meta {
  color: #6d2c32; /* theme color for credits/teacher */
  font-weight: bold;
}

.course-heading2 {
  text-align: center;
  font-size: clamp(20px, 3vw, 40px);
  color: #6d2c32;
  font-weight: normal;
  margin-top: 3rem;   /* space above heading */
  margin-bottom: 2rem;
  position: relative; /* stays in flow */
  margin-left: 20px;
}

.course-heading2::after {
  content: "";
  display: block;
  margin: 6px auto 0; /* centers underline */
  width: 25%;
  height: 4px;
  background-color: #6d2c32;
  border-radius: 2px;
}

.courses-grid3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
  gap: 1.5rem;
  padding: 2rem;
  width: 90%;
  margin: 0 auto;

  /* spacing below subtitle */
  margin-top: 2px; /* adjust until it sits right */
}


.course-card3 {
  background-color: #f9f9f9;
  border-bottom: 3px solid #6d2c32; /* theme accent */
  padding: 1rem;
  border-radius: 6px;
  transition: transform 0.2s ease;
  overflow: hidden;

  /* portrait style */
  height: 450px;        /* taller card */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.course-img {
  width: 100%;
  height: 180px;        /* fixed portrait height */
  object-fit: cover;    /* crop nicely */
  border-radius: 6px 6px 0 0;
  display: block;
}


/* Hover effect */
.course-card3:hover {
  transform: translateY(-6px);
  border-left-color: #6d2c32; /* keeps theme accent */
}

/* Headings inside cards */
.course-card3 h3 {
  color: #6d2c32; /* theme color for subject titles */
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-family: Georgia, "Times New Roman", serif;
}
.course-card3 p{
  color: #6d2c32;
  line-height: 2;
  font-size: 14px;
  font-family: Georgia, "Times New Roman", serif;
}
/* Meta info */
.course-card3.meta {
  color: #6d2c32; /* theme color for credits/teacher */
  font-weight: bold;
}
/* Tablet */
@media (max-width: 1024px) {
  .courses-grid,
  .courses-grid3 {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 300px;
  }

  .course-title
  {
    top:3%;
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    white-space: normal; /* allow wrapping */
  }
  .course-subtitle {
    top: calc(7% + 3px);
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    white-space: normal; /* allow wrapping */
  }
}

/* Mobile */
@media (max-width: 768px) {
  .courses-grid{
    grid-template-columns: 1fr; /* single column */
    margin-top: 350px;
    width: 95%;
  }
  .courses-grid2,
  .courses-grid3 {
    grid-template-columns: 1fr; /* single column */
    margin-top: 30px;
    width: 95%;
  }
  .course-title {
    font-size: clamp(24px, 6vw, 40px);
    top: 2%;
    right: 50%;
    transform: translateX(50%);
  }

  .course-subtitle {
    font-size: clamp(16px, 4vw, 22px);
    top: calc(4% + 3px);
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    white-space: nowrap;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .courses-grid{
    grid-template-columns: 1fr; /* single column */
    margin-top: 220px;
    width: 95%;
  }
  .courses-grid2,
  .courses-grid3 {
    grid-template-columns: 1fr; /* single column */
    margin-top: 30px;
    width: 95%;
  }
  .course-title {
    font-size: clamp(24px, 6vw, 40px);
    top: 2%;
    right: 50%;
    transform: translateX(50%);
  }

  .course-subtitle {
    font-size: clamp(16px, 4vw, 22px);
    top: calc(4% + 3px);
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    white-space: nowrap;
  }
}
/* Tablet */
@media (max-width: 1024px) {
  .courses-grid,
  .courses-grid3 {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 300px;
  }

  .course-title
  {
    top:3%;
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    white-space: normal; /* allow wrapping */
  }
  .course-subtitle {
    top: calc(7% + 3px);
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    white-space: normal; /* allow wrapping */
  }
}

/* Mobile */
@media (max-width: 768px) {
  .courses-grid{
    grid-template-columns: 1fr; /* single column */
    margin-top: 350px;
    width: 95%;
  }
  .courses-grid2,
  .courses-grid3 {
    grid-template-columns: 1fr; /* single column */
    margin-top: 30px;
    width: 95%;
  }
  .course-title {
    font-size: clamp(24px, 6vw, 40px);
    top: 2%;
    right: 50%;
    transform: translateX(50%);
  }

  .course-subtitle {
    font-size: clamp(16px, 4vw, 22px);
    top: calc(4% + 3px);
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    white-space: nowrap;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .courses-grid{
    grid-template-columns: 1fr; /* single column */
    margin-top: 220px;
    width: 95%;
  }
  .courses-grid2,
  .courses-grid3 {
    grid-template-columns: 1fr; /* single column */
    margin-top: 30px;
    width: 95%;
  }
  .course-title {
    font-size: clamp(24px, 6vw, 40px);
    top: 2%;
    right: 50%;
    transform: translateX(50%);
  }

  .course-subtitle {
    font-size: clamp(16px, 4vw, 22px);
    top: calc(4% + 3px);
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    white-space: nowrap;
  }
}

/* =====================================================================
   MODERN RESPONSIVE DESIGN SYSTEM
   Keeps the original content and class names, while upgrading layout,
   spacing, typography, interaction states, and mobile behavior.
===================================================================== */
:root {
  --bg: #f6f3ee;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --ink: #201d1e;
  --muted: #675f5f;
  --brand: #6d2c32;
  --brand-dark: #42181e;
  --accent: #d7a84f;
  --accent-soft: #f3dfb5;
  --line: rgba(109, 44, 50, 0.16);
  --shadow: none;
  --shadow-soft: none;
  --radius: 8px;
  --container: 1180px;
  --nav-height: 74px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 168, 79, 0.18), transparent 32rem),
    linear-gradient(135deg, #fbfaf7 0%, var(--bg) 52%, #efe8dc 100%);
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(109, 44, 50, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 44, 50, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 70%);
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
}

a,
button,
.menu-toggle,
.course-card,
.course-card2,
.course-card3,
.gallery-grid img,
.learn-more-btn {
  -webkit-tap-highlight-color: transparent;
}

.top-bar {
  height: var(--nav-height);
  padding: 0 clamp(14px, 4vw, 52px);
  background: rgba(246, 243, 238, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: clamp(44px, 4.5vw, 58px);
  width: auto;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.menu-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 44, 50, 0.38);
  background: #fff;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 0;
  border-radius: 99px;
  background: var(--brand);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.side-menu {
  width: min(390px, 88vw);
  padding: calc(var(--nav-height) + 26px) 28px 28px;
  gap: 6px;
  background:
    linear-gradient(150deg, rgba(109, 44, 50, 0.98), rgba(66, 24, 30, 0.98)),
    var(--brand);
  backdrop-filter: blur(18px);
}

.side-menu a {
  color: #fff8ed;
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 650;
  letter-spacing: 0;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.side-menu a:hover,
.side-menu a:focus-visible {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  outline: none;
}

.page,
.about-wrapper-main,
.journey-wrapper-main,
.courses-wrapper,
.why-wrapper,
.course-wrapper-main,
.naic-wrapper-main,
.why-naic-wrapper-main,
.who-can-wrapper-main,
.mentors-wrapper-main,
.contact-wrapper-main,
.gallery-wrapper-main {
  max-width: var(--container);
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.home-section {
  min-height: 100svh;
}

.page {
  min-height: 100svh;
  padding: calc(var(--nav-height) + clamp(34px, 7vw, 86px)) 0 clamp(30px, 5vw, 60px);
  justify-content: center;
}

.title {
  position: relative;
  justify-content: flex-start;
  font-family: var(--font-display);
  font-size: clamp(58px, 14vw, 178px);
  line-height: 0.88;
  color: var(--brand);
}

.title::after {
  content: "Robotics • Coding • STEM";
  position: absolute;
  left: 0.25rem;
  bottom: -1.8rem;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

hr {
  width: 100%;
  left: auto;
  margin-left: 0;
  margin-top: clamp(54px, 7vw, 82px);
  background: linear-gradient(90deg, var(--brand), rgba(215, 168, 79, 0.9), transparent);
}

.bottom-bar {
  max-width: 620px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
}

.about-section,
.courses-section,
.why-section,
.about-section-main,
.journey-section,
.Journey-section,
.course-main,
.naic-section-main,
.why-naic-section,
.who-can-section,
.mentors-section,
.contact-section-main,
.gallery-section-main {
  min-height: auto;
  padding: clamp(76px, 9vw, 132px) 0;
}

.about-wrapper {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  align-items: stretch;
}

.image-button-wrapper {
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}

.about-image {
  display: block;
  width: 100%;
  height: clamp(360px, 62vw, 680px);
  object-fit: cover;
  transition: transform 0.65s ease, filter 0.65s ease;
}

.image-button-wrapper:hover .about-image {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

.learn-more-btn {
  bottom: clamp(18px, 3vw, 34px);
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  transition: transform 0.25s ease;
}

.learn-more-btn:hover {
  transform: translateX(-50%) translateY(-3px);
}

.about-text-below {
  max-width: 760px;
  align-self: flex-end;
  padding: clamp(18px, 3vw, 30px);
  margin-top: -56px;
  margin-right: clamp(12px, 4vw, 70px);
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.75;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.courses-wrapper,
.why-wrapper {
  min-height: auto;
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.courses-title,
.why-title,
.about-main-title,
.journey-title,
.course-title,
.naic-title,
.why-naic-title,
.who-can-title,
.mentors-title,
.contact-title,
.gallery-title {
  position: static;
  margin: 0;
  transform: none;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.courses-title,
.why-title {
  font-size: clamp(42px, 7vw, 96px);
}

.courses-title {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
}

.courses-content,
.courses-content-right {
  position: static;
  transform: none;
}

.course-item,
.robotics-item {
  gap: clamp(18px, 3vw, 30px);
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.course-circle,
.about-circle,
.naic-circle,
.mentors-circle,
.mentors-circle2 {
  border: 1px solid rgba(109, 44, 50, 0.16);
}

.course-circle {
  flex: 0 0 clamp(150px, 18vw, 210px);
  width: clamp(150px, 18vw, 210px);
  height: clamp(150px, 18vw, 210px);
}

.course-label {
  color: var(--brand);
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 800;
}

.course-desc,
.why-item p,
.journey-item,
.about-item p,
.about-item h4,
.naic-item p,
.why-naic-item p,
.who-can-item p,
.mentors-desc,
.mentors-desc2,
.contact-item p {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
}

.arrow-list li::before {
  content: ">";
  color: var(--accent);
  font-weight: 900;
}

.why-wrapper {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.why-left {
  position: static;
  width: auto;
  gap: 22px;
}

.why-item {
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
}

.why-item h3,
.about-item h3,
.naic-item h2,
.naic-item h3,
.naic-item h5,
.naic-item h6,
.why-naic-item h2,
.why-naic-item h3,
.who-can-item h2,
.who-can-item h3,
.course-card h3,
.course-card2 h3,
.course-card3 h3 {
  color: var(--brand);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.why.right {
  display: grid;
  gap: 28px;
}

.why-image {
  position: static;
  max-width: 100%;
  border-radius: var(--radius);
}

.about-wrapper-main,
.journey-wrapper-main,
.course-wrapper-main,
.naic-wrapper-main,
.why-naic-wrapper-main,
.who-can-wrapper-main,
.mentors-wrapper-main,
.contact-wrapper-main,
.gallery-wrapper-main {
  min-height: auto;
  position: static;
}

.about-wrapper-main {
  padding: calc(var(--nav-height) + 58px) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.about-main-title {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(44px, 8vw, 96px);
}

.about-item {
  grid-column: 1;
  grid-row: 2;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
}

.about-item p,
.about-item h3,
.about-item h4 {
  margin-left: 0;
  max-width: none;
}

.about-item p {
  margin-top: 0;
}

.about-item h3 {
  margin-top: 24px;
  line-height: 1.2;
}

.about-item h4 {
  margin-top: 8px;
  font-weight: 400;
}

.about-circle {
  position: static;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 1;
  justify-self: end;
}

.journey-wrapper-main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: center;
}

.journey-title {
  grid-column: 7 / -1;
  font-size: clamp(42px, 8vw, 96px);
  text-align: right;
}

.journey-item {
  position: static;
  grid-column: 7 / -1;
  max-width: none;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
}

.journey-image1,
.journey-image2,
.journey-image3 {
  position: static;
  width: 100%;
  max-width: none;
  height: clamp(190px, 26vw, 300px);
  object-fit: cover;
  border-radius: var(--radius);
}

.journey-image1 {
  grid-column: 1 / 4;
  grid-row: 1 / span 2;
}

.journey-image2 {
  grid-column: 4 / 7;
  grid-row: 1;
}

.journey-image3 {
  grid-column: 4 / 7;
  grid-row: 2;
}

.course-wrapper-main,
.gallery-wrapper-main,
.contact-wrapper-main,
.naic-wrapper-main,
.why-naic-wrapper-main,
.who-can-wrapper-main,
.mentors-wrapper-main {
  padding-top: calc(var(--nav-height) + 42px);
}

.course-title,
.gallery-title,
.contact-title,
.naic-title,
.why-naic-title,
.who-can-title,
.mentors-title {
  font-size: clamp(42px, 7vw, 92px);
  text-align: left;
}

.course-subtitle {
  position: static;
  transform: none;
  margin: 22px 0 0;
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-weight: 750;
  white-space: normal;
}

.course-subtitle::after,
.course-heading::after,
.course-heading2::after {
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.courses-grid,
.courses-grid2,
.courses-grid3 {
  width: 100%;
  margin-top: clamp(28px, 5vw, 58px);
  padding: 0;
  gap: clamp(18px, 2.4vw, 28px);
}

.courses-grid,
.courses-grid3 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.courses-grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}

.course-card,
.course-card2,
.course-card3 {
  height: auto;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(109, 44, 50, 0.1);
  border-bottom: 3px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.course-card:hover,
.course-card2:hover,
.course-card3:hover {
  transform: translateY(-8px);
}

.course-img,
.course-img1 {
  height: 190px;
  border-radius: calc(var(--radius) - 2px);
}

.course-card p,
.course-card2 p,
.course-card3 p {
  color: var(--muted);
  font-family: var(--font-body);
  line-height: 1.65;
}

.course-heading,
.course-heading2 {
  margin: clamp(44px, 7vw, 80px) 0 0;
  color: var(--brand);
  font-family: var(--font-display);
}

.gallery-grid {
  column-gap: 22px;
  margin-top: clamp(34px, 5vw, 64px);
}

.gallery-grid img {
  width: 100%;
  margin-bottom: 22px;
  border-radius: var(--radius);
}

.gallery-grid img:hover {
  transform: translateY(-5px) scale(1.015);
}

.contact-wrapper-main {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.contact-title {
  grid-column: 2;
  grid-row: 1;
}

.contact-image {
  position: static;
  grid-column: 1;
  grid-row: 1 / span 2;
  max-width: 100%;
  max-height: none;
  border-radius: var(--radius);
}

.contact-item {
  grid-column: 2;
  grid-row: 2;
}

.contact-item p {
  margin: 0;
  max-width: none;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
}

.naic-wrapper-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.naic-title {
  grid-column: 1 / -1;
}

.naic-circle {
  position: static;
  width: 100%;
  max-width: 310px;
  height: auto;
  aspect-ratio: 1;
  justify-self: end;
}

.naic-item {
  margin: 0;
  grid-column: 1;
}

.naic-item p {
  max-width: none;
}

.naic-ic {
  position: static;
  display: block;
  max-width: 420px;
  margin: 24px 0;
  border-radius: var(--radius);
}

.why-naic-wrapper-main,
.who-can-wrapper-main {
  display: grid;
  gap: clamp(24px, 4vw, 46px);
}

.why-naic-item,
.who-can-item {
  padding: clamp(20px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
}

.why-naic-item p,
.who-can-item p {
  max-width: none;
  margin-left: 0;
}

.line {
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

.why-naic-img1,
.why-naic-img2,
.why-naic-img3,
.why-can-imgc,
.why-can-imgc1,
.why-can-incimg,
.why-can-incimg1 {
  position: static;
  max-width: 100%;
  height: auto;
  margin: 18px 12px 18px 0;
  border-radius: var(--radius);
}

.why-naic-img3 {
  width: clamp(110px, 12vw, 150px);
}

.why-naic-item h4 {
  margin: 42px 0 18px;
  color: var(--brand);
  font-family: var(--font-display);
}

.mentors-wrapper-main {
  min-height: auto;
}

.mentors-items,
.mentors-items2 {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 34px;
  padding: clamp(20px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
}

.mentors-circle,
.mentors-circle2 {
  position: static;
  width: 240px;
  height: 240px;
}

.mentors-name,
.mentors-name2,
.mentors-desc,
.mentors-desc2 {
  margin: 0;
  max-width: none;
  text-align: left;
}

.mentors-name,
.mentors-name2 {
  color: var(--brand);
  font-family: var(--font-body);
}

.footer-premium {
  background:
    linear-gradient(135deg, rgba(109, 44, 50, 0.98), rgba(66, 24, 30, 1)),
    var(--brand);
  padding: clamp(56px, 7vw, 86px) clamp(18px, 5vw, 56px) 28px;
  font-family: var(--font-body);
}

.footer-container {
  max-width: var(--container);
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(250px, 1fr) minmax(210px, 0.8fr);
  gap: clamp(28px, 5vw, 68px);
}

.footer-brand h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
}

.footer-brand p,
.footer-line {
  color: var(--accent-soft);
}

.footer-contact p,
.footer-social a,
.footer-social {
  color: rgba(255, 255, 255, 0.86);
}

.footer-line {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.fade-in,
.fade-left,
.fade-right {
  transition-duration: 0.75s;
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .courses-grid,
  .courses-grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-grid2 {
    width: 100%;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-height: 74px;
  }

  .courses-wrapper,
  .why-wrapper,
  .about-wrapper-main,
  .journey-wrapper-main,
  .contact-wrapper-main,
  .naic-wrapper-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .courses-title,
  .why-title,
  .journey-title,
  .course-title,
  .gallery-title,
  .contact-title,
  .naic-title,
  .why-naic-title,
  .who-can-title,
  .mentors-title,
  .about-main-title {
    text-align: left;
  }

  .about-circle,
  .naic-circle {
    align-self: center;
    width: min(76vw, 310px);
  }

  .journey-image1,
  .journey-image2,
  .journey-image3 {
    height: auto;
    max-height: none;
  }

  .course-item,
  .robotics-item,
  .mentors-items,
  .mentors-items2 {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: left;
  }

  .robotics-title {
    margin-right: 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page,
  .about-wrapper-main,
  .journey-wrapper-main,
  .courses-wrapper,
  .why-wrapper,
  .course-wrapper-main,
  .naic-wrapper-main,
  .why-naic-wrapper-main,
  .who-can-wrapper-main,
  .mentors-wrapper-main,
  .contact-wrapper-main,
  .gallery-wrapper-main,
  .about-wrapper {
    width: min(100% - 24px, var(--container));
  }

  .title::after {
    bottom: -2.2rem;
  }

  .about-text-below {
    max-width: none;
    margin: 14px 0 0;
  }

  .courses-grid,
  .courses-grid2,
  .courses-grid3 {
    grid-template-columns: 1fr;
  }

  .course-card,
  .course-card2,
  .course-card3 {
    min-height: auto;
  }

  .gallery-grid {
    column-count: 1;
  }

  .contact-image {
    width: 100%;
  }

  .footer-premium {
    text-align: left;
  }
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: Georgia, "Times New Roman", serif;
  background: #d9d9d9;
  /*background-image:url(images/backg.png)*/
}

html,
body {
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 168, 79, 0.18), transparent 32rem),
    linear-gradient(135deg, #fbfaf7 0%, var(--bg) 52%, #efe8dc 100%);
}

/* =====================================================================
   ALIGNMENT REFINEMENTS
   Final override layer to keep sections centered, grids predictable,
   and mobile layouts free from old fixed offsets.
===================================================================== */
section {
  scroll-margin-top: var(--nav-height);
}

.page,
.about-wrapper,
.about-wrapper-main,
.journey-wrapper-main,
.courses-wrapper,
.why-wrapper,
.course-wrapper-main,
.naic-wrapper-main,
.why-naic-wrapper-main,
.who-can-wrapper-main,
.mentors-wrapper-main,
.contact-wrapper-main,
.gallery-wrapper-main {
  width: min(100% - clamp(24px, 5vw, 72px), var(--container));
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.about-section,
.courses-section,
.why-section,
.about-section-main,
.Journey-section,
.journey-section,
.course-main,
.naic-section-main,
.why-naic-section,
.who-can-section,
.mentors-section,
.contact-section-main,
.gallery-section-main {
  display: block;
  padding-left: 0;
  padding-right: 0;
}

.page {
  display: flex;
  align-items: stretch;
}

.title,
.bottom-bar {
  width: 100%;
}

.courses-wrapper {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  grid-template-areas:
    "coding title"
    "robotics title";
  align-items: center;
}

.courses-content {
  grid-area: coding;
}

.courses-content-right {
  grid-area: robotics;
}

.courses-title {
  grid-area: title;
  align-self: center;
}

.course-item,
.robotics-item {
  width: 100%;
  min-width: 0;
}

.course-text {
  min-width: 0;
}

.course-desc {
  max-width: 36rem;
  margin-left: 0;
}

.why-wrapper {
  align-items: center;
}

.why.right,
.why-left {
  width: 100%;
  min-width: 0;
}

.why-title {
  text-align: right;
}

.about-wrapper-main {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  grid-template-areas:
    "about-title about-image"
    "about-copy about-image";
}

.about-main-title {
  grid-area: about-title;
}

.about-item {
  grid-area: about-copy;
}

.about-circle {
  grid-area: about-image;
  align-self: center;
}

.journey-wrapper-main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "journey-images journey-title"
    "journey-images journey-copy";
}

.journey-title {
  grid-area: journey-title;
}

.journey-item {
  grid-area: journey-copy;
}

.journey-image1,
.journey-image2,
.journey-image3 {
  min-width: 0;
}

.journey-image1 {
  grid-column: auto;
  grid-row: auto;
  grid-area: journey-images;
  width: calc(50% - 10px);
  justify-self: start;
  align-self: start;
}

.journey-image2 {
  grid-column: auto;
  grid-row: auto;
  grid-area: journey-images;
  width: calc(50% - 10px);
  justify-self: end;
  align-self: start;
}

.journey-image3 {
  grid-column: auto;
  grid-row: auto;
  grid-area: journey-images;
  width: calc(50% - 10px);
  justify-self: start;
  align-self: end;
}

.course-wrapper-main,
.gallery-wrapper-main,
.contact-wrapper-main,
.naic-wrapper-main,
.why-naic-wrapper-main,
.who-can-wrapper-main,
.mentors-wrapper-main {
  padding-top: calc(var(--nav-height) + clamp(28px, 5vw, 54px));
}

.course-title,
.course-subtitle,
.course-heading,
.course-heading2,
.gallery-title,
.naic-title,
.why-naic-title,
.who-can-title,
.mentors-title,
.contact-title {
  max-width: 100%;
}

.course-heading,
.course-heading2 {
  text-align: left;
  margin-left: 0;
}

.course-heading::after,
.course-heading2::after {
  margin-left: 0;
  margin-right: 0;
}

.courses-grid,
.courses-grid2,
.courses-grid3 {
  align-items: stretch;
  justify-items: stretch;
}

.course-card,
.course-card2,
.course-card3 {
  width: 100%;
}

.contact-wrapper-main {
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  grid-template-areas:
    "contact-image contact-title"
    "contact-image contact-copy";
}

.contact-title {
  grid-area: contact-title;
  align-self: end;
}

.contact-image {
  grid-area: contact-image;
  width: 100%;
  align-self: stretch;
  object-fit: cover;
}

.contact-item {
  grid-area: contact-copy;
  align-self: start;
}

.naic-wrapper-main {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  grid-template-areas:
    "naic-title naic-title"
    "naic-copy naic-image";
}

.naic-title {
  grid-area: naic-title;
}

.naic-item {
  grid-area: naic-copy;
}

.naic-circle {
  grid-area: naic-image;
}

.why-naic-item,
.who-can-item {
  width: 100%;
}

.why-naic-img1,
.why-naic-img2,
.why-can-imgc1,
.why-can-incimg,
.why-can-incimg1 {
  vertical-align: top;
}

.mentors-items,
.mentors-items2 {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.mentors-circle,
.mentors-circle2 {
  justify-self: center;
}

.footer-container {
  width: min(100%, var(--container));
}

@media (max-width: 1100px) {
  .courses-wrapper {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "coding"
      "robotics";
  }

  .courses-title,
  .why-title,
  .journey-title {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .about-wrapper-main,
  .journey-wrapper-main,
  .contact-wrapper-main,
  .naic-wrapper-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .about-main-title,
  .journey-title,
  .contact-title,
  .naic-title {
    order: 1;
  }

  .about-circle,
  .contact-image,
  .naic-circle {
    order: 2;
  }

  .about-item,
  .journey-item,
  .contact-item,
  .naic-item {
    order: 3;
  }

  .journey-image1 {
    order: 2;
  }

  .journey-image2 {
    order: 3;
  }

  .journey-image3 {
    order: 4;
  }

  .journey-item {
    order: 5;
  }

  .journey-image1,
  .journey-image2,
  .journey-image3 {
    grid-area: auto;
    width: 100%;
    justify-self: stretch;
    display: block;
  }

  .journey-image1 {
    align-self: auto;
  }

  .about-circle,
  .naic-circle {
    justify-self: start;
  }

  .course-item,
  .robotics-item {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .page,
  .about-wrapper,
  .about-wrapper-main,
  .journey-wrapper-main,
  .courses-wrapper,
  .why-wrapper,
  .course-wrapper-main,
  .naic-wrapper-main,
  .why-naic-wrapper-main,
  .who-can-wrapper-main,
  .mentors-wrapper-main,
  .contact-wrapper-main,
  .gallery-wrapper-main {
    width: min(100% - 24px, var(--container));
  }

  .title {
    justify-content: flex-start;
    overflow-wrap: anywhere;
  }

  .bottom-bar br {
    display: none;
  }

  .course-item,
  .robotics-item {
    align-items: center;
    text-align: left;
  }

  .course-circle {
    margin-left: auto;
    margin-right: auto;
  }

  .course-desc {
    max-width: none;
  }

  .about-circle,
  .naic-circle,
  .mentors-circle,
  .mentors-circle2 {
    justify-self: center;
  }

  .course-title,
  .gallery-title,
  .contact-title,
  .naic-title,
  .why-naic-title,
  .who-can-title,
  .mentors-title,
  .about-main-title,
  .journey-title,
  .courses-title,
  .why-title {
    text-align: left;
    line-height: 1.05;
  }

  .mentors-items,
  .mentors-items2 {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   SECTION SPACING + COURSE TITLE REFINEMENT
   Fixes the oversized top gaps and makes "Courses We Offer" read as a
   proper section heading above the course cards.
===================================================================== */
.about-section,
.courses-section,
.why-section,
.Journey-section,
.journey-section,
.course-main,
.naic-section-main,
.why-naic-section,
.who-can-section,
.mentors-section,
.contact-section-main,
.gallery-section-main {
  padding-top: clamp(46px, 6vw, 82px);
  padding-bottom: clamp(52px, 7vw, 92px);
}

.about-section-main {
  padding-top: 0;
  padding-bottom: clamp(46px, 6vw, 78px);
}

.about-wrapper-main,
.course-wrapper-main,
.gallery-wrapper-main,
.contact-wrapper-main,
.naic-wrapper-main,
.why-naic-wrapper-main,
.who-can-wrapper-main,
.mentors-wrapper-main {
  padding-top: calc(var(--nav-height) + clamp(22px, 3vw, 42px));
}

.about-wrapper-main {
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
}

.about-main-title {
  font-size: clamp(42px, 7vw, 88px);
}

.about-item {
  margin-top: 0;
}

.about-circle {
  width: min(100%, 320px);
}

.courses-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "title title"
    "coding robotics";
  align-items: stretch;
  gap: clamp(22px, 4vw, 42px);
}

.courses-title {
  grid-area: title;
  text-align: center;
  align-self: auto;
  font-size: clamp(38px, 6.4vw, 82px);
  margin-bottom: clamp(4px, 1vw, 10px);
}

.courses-content {
  grid-area: coding;
}

.courses-content-right {
  grid-area: robotics;
}

.courses-content,
.courses-content-right {
  width: 100%;
  display: flex;
}

.course-item,
.robotics-item {
  width: 100%;
  min-height: 100%;
  align-items: center;
}

.course-desc {
  max-width: none;
}

.why-wrapper {
  gap: clamp(24px, 4vw, 52px);
}

.why-title {
  font-size: clamp(38px, 6.4vw, 82px);
}

.journey-wrapper-main,
.contact-wrapper-main,
.naic-wrapper-main {
  gap: clamp(22px, 4vw, 54px);
}

.course-title,
.gallery-title,
.contact-title,
.naic-title,
.why-naic-title,
.who-can-title,
.mentors-title,
.journey-title {
  font-size: clamp(38px, 6.4vw, 82px);
}

.courses-grid,
.courses-grid2,
.courses-grid3,
.gallery-grid {
  margin-top: clamp(24px, 4vw, 46px);
}

.course-heading,
.course-heading2 {
  margin-top: clamp(34px, 5vw, 56px);
}

.footer-premium {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .courses-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "coding"
      "robotics";
  }

  .courses-title {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .about-section,
  .courses-section,
  .why-section,
  .Journey-section,
  .journey-section,
  .course-main,
  .naic-section-main,
  .why-naic-section,
  .who-can-section,
  .mentors-section,
  .contact-section-main,
  .gallery-section-main {
    padding-top: 38px;
    padding-bottom: 54px;
  }

  .about-wrapper-main,
  .course-wrapper-main,
  .gallery-wrapper-main,
  .contact-wrapper-main,
  .naic-wrapper-main,
  .why-naic-wrapper-main,
  .who-can-wrapper-main,
  .mentors-wrapper-main {
    padding-top: calc(var(--nav-height) + 20px);
  }

  .courses-title,
  .why-title,
  .about-main-title,
  .journey-title,
  .course-title,
  .gallery-title,
  .contact-title,
  .naic-title,
  .why-naic-title,
  .who-can-title,
  .mentors-title {
    font-size: clamp(32px, 11vw, 52px);
    text-align: left;
  }

  .course-item,
  .robotics-item {
    padding: 18px;
  }
}

/* Center the index hero brand mark/title. */
.home-section .page {
  align-items: center;
  text-align: center;
}

.home-section .title {
  justify-content: center;
  text-align: center;
}

.home-section .title::after {
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 100%;
}

.home-section .bottom-bar {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-section hr {
  margin-left: auto;
  margin-right: auto;
}

.home-section .side-menu {
  text-align: left;
  align-items: stretch;
}

.home-section .side-menu a {
  text-align: left;
}

/* Keep the Home about CTA clear of the paragraph card below it. */
.home-section + .about-section .learn-more-btn {
  bottom: clamp(44px, 6vw, 72px);
}

/* Home about image slider */
.about-slider {
  height: clamp(360px, 62vw, 680px);
  min-height: clamp(360px, 62vw, 680px);
  background: var(--brand-dark);
}

.about-slider .about-image {
  height: 100%;
}

.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04) translateX(18px);
  transition:
    opacity 0.9s ease,
    transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 1;
}

.about-slider .learn-more-btn {
  z-index: 2;
}

.about-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(32, 29, 30, 0.28), transparent 45%);
}

/* Align the Home Courses cards cleanly in one straight row. */
.home-section ~ .courses-section .courses-wrapper {
  align-items: stretch;
}

.home-section ~ .courses-section .courses-content,
.home-section ~ .courses-section .courses-content-right {
  height: 100%;
}

.home-section ~ .courses-section .course-item {
  height: 100%;
  align-items: flex-start;
  justify-content: flex-start;
}

.home-section ~ .courses-section .robotics-item .course-circle {
  order: 1;
}

.home-section ~ .courses-section .robotics-item .course-text {
  order: 2;
}

.home-section ~ .courses-section .course-text {
  align-items: flex-start;
  text-align: left;
  padding-left: 0;
}

.home-section ~ .courses-section .course-label {
  margin-bottom: 10px;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.2;
}

.home-section ~ .courses-section .robotics-title {
  margin-left: 0;
  margin-right: 0;
  transform: none;
}

.home-section ~ .courses-section .robotics-item .course-text {
  align-self: flex-start;
  padding-top: 0;
}

.home-section ~ .courses-section .course-circle {
  align-self: center;
}

/* Clean alignment for the Home "Why Choose Us" text cards. */
.home-section ~ .why-section .why-left {
  gap: clamp(16px, 2.5vw, 24px);
}

.home-section ~ .why-section .why-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-section ~ .why-section .why-item h3 {
  margin: 0 0 6px;
  line-height: 1.25;
}

.home-section ~ .why-section .why-item p {
  max-width: none;
  margin: 0;
  text-align: left;
  line-height: 1.55;
  word-spacing: normal;
}

/* Keep the Courses page main title on one line. */
.course-main .course-title br {
  display: none;
}

.course-main .course-title {
  white-space: nowrap;
  margin-bottom: clamp(18px, 3vw, 34px);
  line-height: 1;
}

.course-main .course-subtitle {
  text-align: left;
  margin-top: 0;
  margin-bottom: clamp(24px, 4vw, 42px);
  transform: none;
}

.course-main .course-subtitle::after {
  margin-left: 0;
  margin-right: 0;
  width: min(100%, 620px);
}

.course-main .courses-grid {
  margin-top: 0;
}

.course-main .course-wrapper-main {
  padding-top: calc(var(--nav-height) + 8px);
}

.course-main {
  padding-top: 0;
}

/* Replace the gold accents with a calmer brand-toned theme. */
:root {
  --accent: #9a4e58;
  --accent-soft: #ead7da;
}

hr,
.course-subtitle::after,
.course-heading::after,
.course-heading2::after,
.course-main .course-subtitle::after {
  background: linear-gradient(90deg, var(--brand), var(--accent), rgba(109, 44, 50, 0.08));
}

.course-card,
.course-card2,
.course-card3 {
  border-bottom-color: var(--accent);
}

.footer-brand p {
  color: var(--accent-soft);
}

.footer-line {
  background: linear-gradient(90deg, transparent, rgba(234, 215, 218, 0.9), transparent);
}

/* Contact page: tighter top spacing and smaller heading. */
.contact-section-main {
  padding-top: 0;
}

.contact-wrapper-main {
  padding-top: calc(var(--nav-height) + 12px);
}

.contact-title {
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.04;
}

.contact-title h1 {
  font-size: inherit;
  line-height: inherit;
}

.home-section ~ .courses-section .course-desc {
  text-align: left;
  margin: 0;
  line-height: 1.65;
}

.home-section ~ .courses-section .arrow-list {
  width: 100%;
}

.home-section ~ .courses-section .arrow-list li {
  padding-left: 16px;
}

@media (max-width: 760px) {
  .home-section ~ .courses-section .course-item {
    align-items: center;
  }

  .home-section ~ .courses-section .course-text {
    width: 100%;
  }
}

/* =====================================================================
   NAIC PAGE REDESIGN
   A cleaner premium layout for the Incubation Center page, matching the
   existing maroon/neutral Nagabots theme.
===================================================================== */
.naic-section-main,
.why-naic-section,
.who-can-section,
.mentors-section {
  padding: clamp(46px, 6vw, 78px) 0;
}

.naic-section-main {
  padding-top: 0;
}

.naic-wrapper-main,
.why-naic-wrapper-main,
.who-can-wrapper-main,
.mentors-wrapper-main {
  width: min(100% - clamp(24px, 5vw, 72px), var(--container));
  max-width: var(--container);
  margin-inline: auto;
  position: static;
  min-height: auto;
}

.naic-wrapper-main {
  padding-top: calc(var(--nav-height) + clamp(18px, 3vw, 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  grid-template-areas:
    "title visual"
    "content visual";
  gap: clamp(24px, 4.5vw, 58px);
  align-items: center;
}

.naic-title {
  grid-area: title;
  position: static;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
  text-align: left;
}

.naic-title br {
  display: none;
}

.naic-circle {
  grid-area: visual;
  position: relative;
  top: auto;
  right: auto;
  width: min(100%, 370px);
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  justify-self: end;
  border-radius: var(--radius);
  border: 1px solid rgba(109, 44, 50, 0.13);
  background: rgba(255, 255, 255, 0.7);
}

.naic-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.naic-item {
  grid-area: content;
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.naic-item h2,
.naic-item h3,
.naic-item h5,
.naic-item h6,
.why-naic-item h2,
.why-naic-item h3,
.who-can-item h2,
.who-can-item h3 {
  margin: clamp(20px, 3vw, 28px) 0 8px;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.25;
}

.naic-item h2,
.why-naic-item h2,
.who-can-item h2 {
  margin-top: 0;
}

.naic-item p,
.why-naic-item p,
.who-can-item p,
.who-can-item p.incb {
  max-width: none;
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.68;
  text-align: left;
}

.naic-ic {
  position: static;
  display: block;
  width: min(100%, 430px);
  max-width: none;
  margin: 20px 0 24px;
  border-radius: var(--radius);
}

.why-naic-wrapper-main,
.who-can-wrapper-main,
.mentors-wrapper-main {
  display: grid;
  gap: clamp(22px, 4vw, 38px);
}

.why-naic-title,
.who-can-title,
.mentors-title {
  position: static;
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 1;
  text-align: left;
}

.why-naic-title br,
.who-can-title br,
.mentors-title br {
  display: none;
}

.mentors-title h1 {
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

.why-naic-item,
.who-can-item {
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.why-naic-item .line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 14px 0 22px;
}

.why-naic-item .line span {
  display: block;
  padding: 14px 16px;
  color: var(--brand-dark);
  font-weight: 700;
  background: rgba(109, 44, 50, 0.07);
  border: 1px solid rgba(109, 44, 50, 0.12);
  border-radius: var(--radius);
}

.why-naic-img1,
.why-naic-img2 {
  width: min(100%, 360px);
  margin: 8px 14px 24px 0;
  border-radius: var(--radius);
  vertical-align: top;
}

.why-naic-item h4 {
  margin: clamp(26px, 4vw, 42px) 0 18px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1;
  font-weight: 700;
}

.why-naic-item h4 br {
  display: none;
}

.why-naic-img3 {
  width: clamp(96px, 12vw, 145px);
  margin: 8px 10px 10px 0;
  border-radius: var(--radius);
  transition: transform 0.25s ease;
}

.why-naic-img3:hover {
  transform: translateY(-4px);
}

.who-can-item > p:first-child {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(109, 44, 50, 0.055);
  border: 1px solid rgba(109, 44, 50, 0.1);
}

.why-can-imgc {
  display: block;
  width: 100%;
  max-width: 390px;
  margin: 18px 0 0;
  border-radius: var(--radius);
}

.why-can-imgc1,
.why-can-incimg,
.why-can-incimg1 {
  width: min(100%, 480px);
  margin: 10px 14px 18px 0;
  border-radius: var(--radius);
  vertical-align: top;
}

.mentors-wrapper-main {
  padding-top: 0;
}

.mentors-items,
.mentors-items2 {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  margin: 0;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
}

.mentors-circle,
.mentors-circle2 {
  position: static;
  width: min(100%, 190px);
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
}

.mentors-name,
.mentors-name2 {
  margin: 0 0 8px;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.mentors-desc,
.mentors-desc2 {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 900px) {
  .naic-wrapper-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "visual"
      "content";
  }

  .naic-circle {
    justify-self: start;
    width: min(100%, 340px);
  }

}

@media (max-width: 640px) {
  .naic-section-main,
  .why-naic-section,
  .who-can-section,
  .mentors-section {
    padding: 34px 0 52px;
  }

  .naic-wrapper-main {
    padding-top: calc(var(--nav-height) + 16px);
  }

  .naic-title,
  .why-naic-title,
  .who-can-title,
  .mentors-title {
    position: static !important;
    margin-top: 0 !important;
    text-align: left !important;
    font-size: clamp(31px, 10vw, 45px);
  }

  .naic-wrapper-main,
  .why-naic-wrapper-main,
  .who-can-wrapper-main,
  .mentors-wrapper-main {
    width: min(100% - 24px, var(--container)) !important;
    margin-inline: auto !important;
  }

  .naic-item,
  .why-naic-item,
  .who-can-item {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .naic-item p,
  .why-naic-item p,
  .who-can-item p,
  .who-can-item p.incb {
    max-width: none !important;
    margin: 0 0 14px !important;
    text-align: left !important;
    line-height: 1.62 !important;
  }

  .naic-circle,
  .naic-ic,
  .why-naic-img1,
  .why-naic-img2,
  .why-naic-img3,
  .why-can-imgc,
  .why-can-imgc1,
  .why-can-incimg,
  .why-can-incimg1 {
    position: static !important;
  }

  .why-naic-item .line {
    grid-template-columns: 1fr;
  }

  .why-naic-img1,
  .why-naic-img2,
  .why-can-imgc1,
  .why-can-incimg,
  .why-can-incimg1 {
    width: 100%;
    margin-right: 0;
  }

  .mentors-items,
  .mentors-items2 {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* NAIC desktop balance: use the right side instead of leaving it empty. */
@media (min-width: 901px) {
  .naic-wrapper-main {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    grid-template-areas:
      "title title"
      "content visual";
    align-items: stretch;
  }

  .naic-title {
    max-width: 100%;
  }

  .naic-circle {
    width: 100%;
    min-height: 520px;
    align-self: stretch;
    justify-self: stretch;
    border-radius: var(--radius);
  }

  .naic-circle img {
    object-fit: cover;
  }

  .naic-item {
    align-self: stretch;
  }

  .why-naic-item {
    display: block;
  }

  .why-naic-img1,
  .why-naic-img2 {
    width: calc(50% - 10px);
    max-width: none;
    height: 230px;
    object-fit: cover;
    margin: 8px 16px 24px 0;
  }

  .why-naic-img2 {
    margin-right: 0;
  }

  .why-naic-img3 {
    width: calc((100% - 72px) / 7);
    min-width: 96px;
    max-width: 138px;
  }

  .why-can-imgc1,
  .why-can-incimg,
  .why-can-incimg1 {
    width: calc(50% - 10px);
    max-width: none;
    height: 260px;
    object-fit: cover;
  }

  .mentors-wrapper-main {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .mentors-title {
    grid-column: 1 / -1;
  }

  .mentors-items,
  .mentors-items2 {
    height: 100%;
  }
}

/* NAIC image placement reset: turn image clusters into intentional grids. */
.naic-offering-images,
.naic-enroll-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 24px);
  margin: 18px 0 28px;
}

.naic-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 14px;
  margin: 18px 0 4px;
}

.naic-process-image {
  margin: 12px 0 28px;
}

.naic-offering-images img,
.naic-enroll-images img,
.naic-process-image img,
.naic-service-grid img {
  width: 100%;
  max-width: none;
  margin: 0;
  display: block;
}

.naic-offering-images img,
.naic-enroll-images img,
.naic-process-image img {
  height: clamp(190px, 24vw, 290px);
  object-fit: cover;
  border-radius: var(--radius);
}

.naic-process-image img {
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.78);
}

.naic-service-grid img {
  height: 118px;
  object-fit: contain;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(109, 44, 50, 0.09);
  border-radius: var(--radius);
}

.why-naic-img1,
.why-naic-img2,
.why-naic-img3,
.why-can-imgc1,
.why-can-incimg,
.why-can-incimg1 {
  margin: 0;
}

.why-can-imgc {
  max-width: none;
  height: clamp(210px, 28vw, 330px);
  object-fit: cover;
}

@media (min-width: 901px) {
  .why-naic-img1,
  .why-naic-img2,
  .why-can-imgc1,
  .why-can-incimg,
  .why-can-incimg1 {
    width: 100%;
    height: auto;
  }

  .why-naic-img3 {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 680px) {
  .naic-offering-images,
  .naic-enroll-images {
    grid-template-columns: 1fr;
  }

  .naic-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* NAIC hero image: keep it as a small circular visual in the top section. */
.naic-wrapper-main {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title visual"
    "content content";
  align-items: center;
}

.naic-circle {
  width: clamp(150px, 18vw, 220px);
  min-height: 0;
  aspect-ratio: 1;
  justify-self: end;
  align-self: center;
  border-radius: 50%;
}

@media (min-width: 901px) {
  .naic-wrapper-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title visual"
      "content content";
    align-items: center;
  }

  .naic-circle {
    width: clamp(160px, 16vw, 230px);
    min-height: 0;
    justify-self: end;
    align-self: center;
    border-radius: 50%;
  }
}

@media (max-width: 700px) {
  .naic-wrapper-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "visual"
      "content";
  }

  .naic-circle {
    width: min(58vw, 190px);
    justify-self: start;
  }
}

/* NAIC: remove circular hero image and let the rectangular image fill the card. */
.naic-wrapper-main {
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "content";
}

.naic-circle {
  display: none;
}

.naic-ic {
  width: 100%;
  max-width: none;
  height: clamp(260px, 42vw, 520px);
  object-fit: cover;
  margin: 22px 0 26px;
}

/* Tighten WHY NAIC spacing. */
.why-naic-section {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(34px, 5vw, 58px);
}

.why-naic-wrapper-main {
  gap: clamp(14px, 2vw, 24px);
}

.why-naic-title {
  margin-bottom: 0;
}

.why-naic-item {
  padding: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
}

.why-naic-item h2,
.why-naic-item h3 {
  margin-top: clamp(14px, 2vw, 20px);
  margin-bottom: 6px;
}

.why-naic-item h2:first-child {
  margin-top: 0;
}

.why-naic-item p {
  margin-bottom: 10px;
}

.why-naic-item .line {
  margin: 10px 0 16px;
}

.naic-offering-images {
  margin: 12px 0 20px;
}

.why-naic-item h4 {
  margin: 22px 0 12px;
}

.naic-service-grid {
  margin-top: 10px;
}

/* NAIC title refinements. */
.naic-title {
  font-size: clamp(30px, 4.6vw, 58px);
  white-space: nowrap;
}

.why-naic-title {
  word-spacing: 0.12em;
}

@media (max-width: 560px) {
  .naic-title {
    font-size: clamp(24px, 7vw, 34px);
    white-space: normal;
  }
}

/* NAIC offerings: label followed by its matching image. */
.why-naic-item > .line {
  display: none;
}

.naic-offering-images {
  align-items: start;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.naic-offering-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  width: min(100%, 620px);
  max-width: 100%;
  justify-self: center;
  overflow: hidden;
}

.naic-offering-card span {
  display: block;
  padding: 12px 14px;
  color: var(--brand-dark);
  font-weight: 800;
  background: rgba(109, 44, 50, 0.07);
  border: 1px solid rgba(109, 44, 50, 0.12);
  border-radius: var(--radius);
}

.naic-offering-card .why-naic-img1,
.naic-offering-card .why-naic-img2 {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  object-fit: contain;
  display: block;
  box-sizing: border-box;
}

/* NAIC: keep the transition from services to enrollment tight. */
.naic-section-main {
  padding-bottom: clamp(12px, 2vw, 24px);
}

.naic-section-main + .why-naic-section {
  padding-top: clamp(12px, 2vw, 24px);
}

.naic-section-main + .why-naic-section .why-naic-wrapper-main {
  padding-top: 0;
}

.why-naic-section {
  padding-bottom: clamp(12px, 2vw, 24px);
}

.why-naic-section + .who-can-section {
  padding-top: clamp(12px, 2vw, 24px);
}

.why-naic-section + .who-can-section .who-can-wrapper-main {
  padding-top: 0;
}

.naic-service-grid {
  margin-bottom: 0;
}

/* NAIC: crisp, structured Who Can Enroll section. */
.who-can-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    var(--bg);
}

.who-can-wrapper-main {
  gap: clamp(16px, 2.4vw, 28px);
}

.who-can-title {
  letter-spacing: 0;
}

.who-can-item {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  overflow: hidden;
}

.who-can-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  padding-bottom: 0;
  border-bottom: 0;
}

.who-can-intro h2,
.who-can-item > h2,
.who-can-item > h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: clamp(22px, 2.7vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}

.who-can-intro p,
.who-can-item p.incb {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.65;
}

.who-can-intro p {
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 500;
  line-height: 1.65;
  padding-top: 2px;
}

.who-can-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(109, 44, 50, 0.12);
  border-left: 1px solid rgba(109, 44, 50, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.48);
}

.who-can-list li {
  position: relative;
  min-height: 58px;
  padding: 16px 18px 16px 46px;
  color: var(--brand-dark);
  font-weight: 700;
  line-height: 1.35;
  border-right: 1px solid rgba(109, 44, 50, 0.12);
  border-bottom: 1px solid rgba(109, 44, 50, 0.12);
}

.who-can-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.who-can-intro .why-can-imgc {
  width: 100%;
  max-width: 420px;
  height: clamp(220px, 26vw, 330px);
  margin: 0;
  justify-self: end;
  object-fit: cover;
  border-radius: var(--radius);
}

.who-can-item > h2,
.who-can-item > h3 {
  padding-top: clamp(4px, 1vw, 10px);
}

.naic-enroll-images {
  margin: 0;
}

.naic-enroll-content {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
}

.naic-enroll-content p {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.65;
}

.naic-enroll-steps {
  display: grid;
  gap: 14px;
}

.naic-enroll-step {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(109, 44, 50, 0.1);
  border-radius: var(--radius);
}

.naic-enroll-step span {
  width: fit-content;
  padding: 5px 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  background: rgba(109, 44, 50, 0.08);
  border-radius: 999px;
}

.naic-enroll-step h3 {
  margin: 0;
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

.naic-enroll-step p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.6;
}

.naic-enroll-step img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  justify-self: stretch;
}

/* Courses page: refined catalog layout matching the NAIC visual system. */
.course-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08) 42%, rgba(109, 44, 50, 0.035)),
    var(--bg);
}

.course-main .course-wrapper-main {
  width: min(100% - clamp(28px, 5vw, 72px), var(--container));
  max-width: var(--container);
  padding-top: calc(var(--nav-height) + clamp(18px, 3vw, 34px));
  padding-bottom: clamp(54px, 7vw, 92px);
}

.course-main .course-title {
  width: min(100%, 860px);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: 0;
  text-align: left;
}

.course-main .course-subtitle {
  width: min(100%, 760px);
  padding: 0 0 18px;
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 800;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(109, 44, 50, 0.16);
  border-radius: 0;
}

.course-main .course-subtitle::after {
  display: block;
  width: min(220px, 42vw);
  height: 3px;
  margin: 14px 0 0;
  background: linear-gradient(90deg, var(--brand), var(--accent), transparent);
}

.course-main .courses-grid,
.course-main .courses-grid2,
.course-main .courses-grid3 {
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: clamp(22px, 3.4vw, 42px);
}

.course-main .courses-grid,
.course-main .courses-grid3 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-main .courses-grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 620px);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.course-main .course-card,
.course-main .course-card2,
.course-main .course-card3 {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(109, 44, 50, 0.14);
  border-bottom: 1px solid rgba(109, 44, 50, 0.14);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.course-main .course-card:hover,
.course-main .course-card2:hover,
.course-main .course-card3:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 44, 50, 0.2);
}

.course-main .course-img,
.course-main .course-img1 {
  width: 100%;
  height: clamp(150px, 13vw, 190px);
  border-radius: 0;
  object-fit: cover;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(109, 44, 50, 0.08);
}

.course-main .course-card3 .course-img {
  object-fit: contain;
  padding: 12px;
  background: #ffffff;
}

.course-main .course-card3 .course-img-full {
  object-fit: cover;
  padding: 0;
}

.course-main .course-card h3,
.course-main .course-card2 h3,
.course-main .course-card3 h3 {
  min-height: 3.25em;
  margin: 0;
  padding: 16px 16px 8px;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.22;
  font-weight: 800;
}

.course-main .course-card p,
.course-main .course-card2 p,
.course-main .course-card3 p {
  flex: 1;
  margin: 0;
  padding: 0 16px 18px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
}

.course-main .course-heading,
.course-main .course-heading2 {
  margin-top: clamp(46px, 6vw, 78px);
  padding-top: clamp(22px, 3vw, 34px);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  border-top: 1px solid rgba(109, 44, 50, 0.12);
}

.course-main .course-heading::after,
.course-main .course-heading2::after {
  width: min(220px, 38vw);
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--brand), var(--accent), transparent);
}

@media (max-width: 980px) {
  .course-main .courses-grid,
  .course-main .courses-grid2,
  .course-main .courses-grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .course-main .course-wrapper-main {
    padding-top: calc(var(--nav-height) + 18px);
  }

  .course-main .courses-grid,
  .course-main .courses-grid2,
  .course-main .courses-grid3 {
    grid-template-columns: 1fr;
  }

  .course-main .course-title {
    white-space: normal;
  }

  .course-main .course-subtitle {
    width: 100%;
  }
}

.naic-enroll-images img,
.naic-enroll-content img,
.naic-enroll-step img,
.naic-process-image img {
  border: 1px solid rgba(109, 44, 50, 0.1);
}

.who-can-item p.incb {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(109, 44, 50, 0.055);
  border-radius: var(--radius);
}

@media (max-width: 760px) {
  .who-can-intro,
  .who-can-list,
  .naic-enroll-content {
    grid-template-columns: 1fr;
  }

  .who-can-intro .why-can-imgc {
    max-width: none;
    justify-self: stretch;
    height: auto;
  }
}

/* =====================================================================
   SITE-WIDE RESPONSIVE GUARDRAILS
   Final layer to prevent overflow, overlap, and broken layouts on all pages.
===================================================================== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  text-size-adjust: 100%;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

section,
header,
footer,
.page,
.home-section,
.about-section,
.courses-section,
.why-section,
.about-section-main,
.Journey-section,
.journey-section,
.course-main,
.gallery-section-main,
.contact-section-main,
.naic-section-main,
.why-naic-section,
.who-can-section,
.mentors-section {
  max-width: 100%;
  overflow-x: clip;
}

.page,
.courses-wrapper,
.why-wrapper,
.about-wrapper-main,
.journey-wrapper-main,
.course-wrapper-main,
.gallery-wrapper-main,
.contact-wrapper-main,
.naic-wrapper-main,
.why-naic-wrapper-main,
.who-can-wrapper-main,
.mentors-wrapper-main {
  width: min(100% - clamp(24px, 5vw, 72px), var(--container, 1180px));
  max-width: var(--container, 1180px);
  margin-inline: auto;
  min-width: 0;
}

.course-card,
.course-card2,
.course-card3,
.why-item,
.course-item,
.robotics-item,
.naic-item,
.why-naic-item,
.who-can-item,
.mentors-items,
.mentors-items2,
.contact-item,
.gallery-grid img {
  min-width: 0;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span {
  overflow-wrap: anywhere;
}

.navbar {
  width: 100%;
  max-width: 100vw;
}

.side-menu {
  max-width: min(390px, 88vw);
}

.menu-toggle {
  flex: 0 0 auto;
}

.hero-title,
.courses-title,
.why-title,
.about-main-title,
.journey-title,
.course-title,
.gallery-title,
.contact-title,
.naic-title,
.why-naic-title,
.who-can-title,
.mentors-title {
  max-width: 100%;
  letter-spacing: 0;
}

.courses-grid,
.courses-grid2,
.courses-grid3,
.gallery-grid,
.naic-service-grid,
.naic-offering-images,
.naic-enroll-images,
.naic-enroll-steps,
.who-can-list {
  min-width: 0;
}

.course-img,
.course-img1,
.gallery-grid img,
.naic-ic,
.why-image,
.why-can-imgc,
.why-can-imgc1,
.why-can-incimg,
.why-can-incimg1,
.why-naic-img1,
.why-naic-img2,
.why-naic-img3,
.about-circle img,
.course-circle img,
.mentors-circle img,
.mentors-circle2 img {
  display: block;
}

@media (min-width: 1440px) {
  :root {
    --container: 1240px;
  }

  .course-main .course-img,
  .course-main .course-img1 {
    height: 210px;
  }

  .gallery-grid img {
    height: 280px;
  }
}

@media (min-width: 1800px) {
  :root {
    --container: 1320px;
  }

  .page,
  .courses-wrapper,
  .why-wrapper,
  .about-wrapper-main,
  .journey-wrapper-main,
  .course-wrapper-main,
  .gallery-wrapper-main,
  .contact-wrapper-main,
  .naic-wrapper-main,
  .why-naic-wrapper-main,
  .who-can-wrapper-main,
  .mentors-wrapper-main {
    width: min(100% - 96px, var(--container));
  }
}

@media (max-width: 1200px) {
  .course-main .courses-grid,
  .course-main .courses-grid3,
  .courses-grid,
  .courses-grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .navbar {
    height: var(--nav-height, 76px);
    padding-inline: clamp(16px, 4vw, 32px);
  }

  .logo img {
    height: clamp(42px, 9vw, 56px);
  }

  .page,
  .courses-wrapper,
  .why-wrapper,
  .about-wrapper-main,
  .journey-wrapper-main,
  .course-wrapper-main,
  .gallery-wrapper-main,
  .contact-wrapper-main,
  .naic-wrapper-main,
  .why-naic-wrapper-main,
  .who-can-wrapper-main,
  .mentors-wrapper-main {
    width: min(100% - 28px, var(--container, 1180px)) !important;
  }

  .courses-wrapper,
  .why-wrapper,
  .about-wrapper-main,
  .journey-wrapper-main,
  .contact-wrapper-main,
  .naic-wrapper-main,
  .why-naic-wrapper-main,
  .who-can-wrapper-main,
  .mentors-wrapper-main {
    grid-template-columns: 1fr !important;
  }

  .courses-title,
  .why-title,
  .about-main-title,
  .journey-title,
  .course-title,
  .gallery-title,
  .contact-title,
  .naic-title,
  .why-naic-title,
  .who-can-title,
  .mentors-title {
    position: static !important;
    transform: none !important;
    text-align: left !important;
    white-space: normal !important;
  }

  .courses-content,
  .courses-content-right,
  .why-left,
  .why,
  .about-item,
  .journey-item,
  .contact-item,
  .naic-item,
  .why-naic-item,
  .who-can-item {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .course-item,
  .robotics-item,
  .mentors-items,
  .mentors-items2,
  .who-can-intro,
  .naic-enroll-content {
    grid-template-columns: 1fr !important;
  }

  .course-item,
  .robotics-item {
    align-items: flex-start;
  }

  .course-circle,
  .about-circle,
  .naic-circle,
  .mentors-circle,
  .mentors-circle2 {
    position: static !important;
    transform: none !important;
    max-width: 100%;
  }

  .why-image,
  .journey-image1,
  .journey-image2,
  .journey-image3,
  .contact-img,
  .naic-ic,
  .why-can-imgc,
  .why-can-imgc1,
  .why-can-incimg,
  .why-can-incimg1,
  .why-naic-img1,
  .why-naic-img2 {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px 0 !important;
    transform: none !important;
  }

  .contact-img,
  .naic-ic,
  .why-image,
  .journey-image1,
  .journey-image2,
  .journey-image3 {
    height: auto !important;
  }
}

@media (max-width: 760px) {
  .about-section,
  .courses-section,
  .why-section,
  .about-section-main,
  .Journey-section,
  .journey-section,
  .course-main,
  .gallery-section-main,
  .contact-section-main,
  .naic-section-main,
  .why-naic-section,
  .who-can-section,
  .mentors-section {
    padding-top: clamp(34px, 8vw, 58px) !important;
    padding-bottom: clamp(42px, 9vw, 66px) !important;
  }

  .home-section .page {
    min-height: auto;
    padding-top: calc(var(--nav-height, 76px) + 28px);
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: clamp(46px, 18vw, 82px);
    line-height: 0.95;
  }

  .home-subtitle {
    max-width: 100%;
    font-size: 14px;
  }

  .courses-title,
  .why-title,
  .about-main-title,
  .journey-title,
  .course-title,
  .gallery-title,
  .contact-title,
  .naic-title,
  .why-naic-title,
  .who-can-title,
  .mentors-title {
    font-size: clamp(32px, 11vw, 52px) !important;
    line-height: 1.05 !important;
  }

  .course-subtitle {
    font-size: clamp(17px, 5vw, 24px) !important;
  }

  .courses-grid,
  .courses-grid2,
  .courses-grid3,
  .course-main .courses-grid,
  .course-main .courses-grid2,
  .course-main .courses-grid3,
  .gallery-grid,
  .who-can-list,
  .naic-offering-images,
  .naic-enroll-images {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .naic-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .course-main .course-img,
  .course-main .course-img1 {
    height: clamp(170px, 48vw, 230px);
  }

  .gallery-grid img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding-inline: 14px;
  }

  .side-menu {
    width: min(300px, 86vw);
    padding-inline: 22px;
  }

  .page,
  .courses-wrapper,
  .why-wrapper,
  .about-wrapper-main,
  .journey-wrapper-main,
  .course-wrapper-main,
  .gallery-wrapper-main,
  .contact-wrapper-main,
  .naic-wrapper-main,
  .why-naic-wrapper-main,
  .who-can-wrapper-main,
  .mentors-wrapper-main {
    width: calc(100% - 22px) !important;
  }

  .course-card,
  .course-card2,
  .course-card3,
  .why-item,
  .course-item,
  .robotics-item,
  .naic-item,
  .why-naic-item,
  .who-can-item,
  .mentors-items,
  .mentors-items2,
  .contact-item {
    padding: 16px !important;
  }

  .course-main .course-card,
  .course-main .course-card2,
  .course-main .course-card3 {
    padding: 0 !important;
  }

  .course-main .course-card h3,
  .course-main .course-card2 h3,
  .course-main .course-card3 h3 {
    min-height: 0;
    padding: 15px 15px 8px;
  }

  .course-main .course-card p,
  .course-main .course-card2 p,
  .course-main .course-card3 p {
    padding: 0 15px 16px;
  }

  .who-can-list li {
    padding: 14px 14px 14px 40px;
  }

  .naic-service-grid {
    gap: 10px;
  }

  .naic-service-grid img {
    height: 96px;
    padding: 10px;
  }
}

@media (max-width: 425px) {
  :root {
    --nav-height: 68px;
  }

  .navbar {
    padding-inline: 10px;
  }

  .logo img {
    height: 38px;
  }

  .menu-toggle {
    width: 34px;
    height: 26px;
  }

  .menu-toggle span {
    height: 3px;
  }

  .side-menu {
    width: min(280px, 88vw);
    padding: calc(var(--nav-height) + 28px) 18px 24px;
  }

  .page,
  .courses-wrapper,
  .why-wrapper,
  .about-wrapper-main,
  .journey-wrapper-main,
  .course-wrapper-main,
  .gallery-wrapper-main,
  .contact-wrapper-main,
  .naic-wrapper-main,
  .why-naic-wrapper-main,
  .who-can-wrapper-main,
  .mentors-wrapper-main {
    width: calc(100% - 18px) !important;
  }

  .hero-title {
    font-size: clamp(38px, 17vw, 58px);
  }

  .home-section {
    min-height: 100svh;
  }

  .home-section .page {
    min-height: 100svh !important;
    padding-top: var(--nav-height);
    padding-bottom: 24px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .home-section .title {
    width: 100%;
    justify-content: center;
    font-size: clamp(38px, 14vw, 45px);
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .home-section .title::after {
    left: 50%;
    bottom: -1.55rem;
    width: max-content;
    max-width: 100%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .home-section hr {
    margin-top: 42px;
    margin-bottom: 12px;
  }

  .home-section .bottom-bar {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.45;
  }

  .home-section ~ .courses-section .courses-content,
  .home-section ~ .courses-section .courses-content-right {
    justify-content: center;
  }

  .home-section ~ .courses-section .course-item,
  .home-section ~ .courses-section .robotics-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .home-section ~ .courses-section .course-circle {
    width: 150px;
    height: 150px;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
  }

  .home-section ~ .courses-section .course-circle a,
  .home-section ~ .courses-section .course-link {
    display: block;
    width: 100%;
    height: 100%;
  }

  .home-section ~ .courses-section .course-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .home-section ~ .courses-section .course-text,
  .home-section ~ .courses-section .robotics-item .course-text {
    width: 100%;
    align-items: center;
    align-self: center;
    text-align: center;
  }

  .naic-section-main .naic-wrapper-main {
    padding-top: calc(var(--nav-height) + 34px) !important;
  }

  .naic-section-main .naic-title {
    margin-top: 0 !important;
    padding-top: 0;
  }

  .contact-section-main {
    padding-top: calc(var(--nav-height) + 20px) !important;
    padding-bottom: 36px !important;
  }

  .contact-wrapper-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    padding-top: 0 !important;
    min-height: auto !important;
  }

  .contact-title {
    order: 1;
    margin: 0 !important;
    text-align: left !important;
  }

  .contact-title h1 {
    font-size: clamp(30px, 12vw, 38px) !important;
    line-height: 1.04 !important;
    margin: 0;
  }

  .contact-image {
    order: 2;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 190px !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    object-fit: cover;
    border-radius: var(--radius);
  }

  .contact-item {
    order: 3;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .contact-item p {
    margin: 0 !important;
    max-width: none !important;
    padding: 16px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    text-align: left !important;
  }

  .courses-title,
  .why-title,
  .about-main-title,
  .journey-title,
  .course-title,
  .gallery-title,
  .contact-title,
  .naic-title,
  .why-naic-title,
  .who-can-title,
  .mentors-title {
    font-size: clamp(27px, 10vw, 38px) !important;
  }

  .course-subtitle,
  .course-heading,
  .course-heading2,
  .why-naic-item h4 {
    font-size: clamp(20px, 8vw, 30px) !important;
  }

  .course-card,
  .course-card2,
  .course-card3,
  .why-item,
  .course-item,
  .robotics-item,
  .naic-item,
  .why-naic-item,
  .who-can-item,
  .mentors-items,
  .mentors-items2,
  .contact-item {
    padding: 14px !important;
  }

  .course-main .course-card,
  .course-main .course-card2,
  .course-main .course-card3 {
    padding: 0 !important;
  }

  .course-main .course-img,
  .course-main .course-img1 {
    height: 160px;
  }

  .course-main .course-card h3,
  .course-main .course-card2 h3,
  .course-main .course-card3 h3 {
    font-size: 17px;
    padding: 14px 14px 7px;
  }

  .course-main .course-card p,
  .course-main .course-card2 p,
  .course-main .course-card3 p,
  .naic-item p,
  .why-naic-item p,
  .who-can-item p,
  .who-can-item p.incb,
  .contact-item p {
    font-size: 14px;
    line-height: 1.55;
  }

  .who-can-list li {
    min-height: 0;
    padding: 13px 12px 13px 36px;
    font-size: 14px;
  }

  .who-can-list li::before {
    left: 14px;
    top: 18px;
    width: 8px;
    height: 8px;
  }

  .naic-service-grid {
    grid-template-columns: 1fr !important;
  }

  .naic-service-grid img {
    height: 88px;
  }

  .gallery-grid {
    gap: 12px;
  }

  .footer-premium {
    padding-inline: 14px;
  }
}

/* =====================================================================
   SHOP PAGE
===================================================================== */
.shop-main {
  min-height: 100vh;
  padding: calc(var(--nav-height, 82px) + clamp(28px, 5vw, 64px)) 0 clamp(54px, 7vw, 92px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08) 44%, rgba(109, 44, 50, 0.04)),
    var(--bg);
}

.shop-wrapper {
  width: min(100% - clamp(24px, 5vw, 72px), var(--container, 1180px));
  max-width: var(--container, 1180px);
  margin-inline: auto;
  display: grid;
  gap: clamp(22px, 3vw, 38px);
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  padding-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid rgba(109, 44, 50, 0.14);
}

.shop-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-hero h1 {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  font-weight: 700;
}

.shop-hero > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
}

.shop-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-category-bar span {
  padding: 10px 14px;
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  background: rgba(109, 44, 50, 0.07);
  border: 1px solid rgba(109, 44, 50, 0.12);
  border-radius: 999px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  width: min(100%, 820px);
  justify-self: center;
}

.shop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(109, 44, 50, 0.13);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 44, 50, 0.24);
}

.shop-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid rgba(109, 44, 50, 0.09);
}

.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.shop-tag {
  width: fit-content;
  padding: 6px 10px;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(109, 44, 50, 0.08);
  border-radius: 999px;
}

.shop-card h2 {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.2;
}

.shop-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

.shop-btn,
.shop-note-btn {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  background: var(--brand);
  border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.shop-code-btn {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(109, 44, 50, 0.07);
  border: 1px solid rgba(109, 44, 50, 0.16);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.shop-code-btn:hover {
  transform: translateY(-2px);
  background: rgba(109, 44, 50, 0.1);
  border-color: rgba(109, 44, 50, 0.28);
}

.shop-btn:hover,
.shop-note-btn:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
}

.shop-note {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr) auto;
  gap: clamp(14px, 2.5vw, 28px);
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(109, 44, 50, 0.07);
  border: 1px solid rgba(109, 44, 50, 0.12);
  border-radius: var(--radius);
}

.shop-note h2 {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.shop-note p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .shop-hero,
  .shop-note {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shop-main {
    padding-top: calc(var(--nav-height, 74px) + 24px);
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-hero h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

}

@media (max-width: 425px) {
  .shop-wrapper {
    width: calc(100% - 18px);
  }

  .shop-category-bar span {
    padding: 9px 12px;
    font-size: 13px;
  }

  .shop-card-body {
    padding: 15px;
  }

  .shop-actions,
  .shop-btn,
  .shop-code-btn {
    width: 100%;
  }

}

/* NAIC mentors: readable text hierarchy. */
.mentors-desc,
.mentors-desc2 {
  display: grid;
  gap: 8px;
}

.mentors-desc p,
.mentors-desc2 p {
  margin: 0;
}

.mentor-role {
  color: var(--brand-dark);
  font-weight: 800;
}

.mentors-desc a,
.mentors-desc2 a {
  width: fit-content;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.mentors-desc a:hover,
.mentors-desc2 a:hover {
  color: var(--brand-dark);
}

/* =====================================================================
   BLOG PAGE
===================================================================== */
.blog-main {
  min-height: 100vh;
  padding: calc(var(--nav-height, 82px) + clamp(28px, 5vw, 64px)) 0 clamp(54px, 7vw, 92px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08) 44%, rgba(109, 44, 50, 0.04)),
    var(--bg);
}

.blog-wrapper {
  width: min(100% - clamp(24px, 5vw, 72px), var(--container, 1180px));
  max-width: var(--container, 1180px);
  margin-inline: auto;
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.blog-hero {
  max-width: 850px;
  padding-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid rgba(109, 44, 50, 0.14);
}

.blog-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
}

.blog-hero p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.blog-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(109, 44, 50, 0.13);
  border-radius: var(--radius);
}

.blog-card.featured {
  grid-column: span 2;
}

.blog-card.full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  align-items: stretch;
}

.blog-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.blog-card.featured img {
  height: 310px;
}

.blog-card.full img {
  height: 100%;
  min-height: 360px;
}

.blog-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.blog-card span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
}

.blog-card a {
  width: fit-content;
  margin-top: 4px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: var(--brand);
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card.featured {
    grid-column: auto;
  }

  .blog-card.full {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .blog-card img,
  .blog-card.featured img,
  .blog-card.full img {
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

@media (max-width: 425px) {
  .blog-wrapper {
    width: calc(100% - 18px);
  }

  .blog-hero h1 {
    font-size: clamp(32px, 11vw, 46px);
  }
}

/* NAIC mentors: professional card layout with clean divider lines. */
.mentors-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.12) 45%, rgba(109, 44, 50, 0.035)),
    var(--bg);
}

.mentors-wrapper-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.mentors-title {
  grid-column: 1 / -1;
  position: relative !important;
  margin: 0 0 clamp(6px, 1vw, 12px) !important;
  padding-bottom: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 74px) !important;
  line-height: 0.98 !important;
  text-align: left !important;
}

.mentors-title::after {
  content: none;
}

.mentors-title h1 {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.mentors-title br {
  display: none;
}

.mentors-items,
.mentors-items2 {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) !important;
  gap: clamp(24px, 4vw, 36px);
  align-items: start;
  min-height: 100%;
  padding: clamp(22px, 3vw, 30px) !important;
  border: 1px solid rgba(109, 44, 50, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.mentors-items::before,
.mentors-items2::before {
  content: none;
}

.mentors-circle,
.mentors-circle2 {
  position: static !important;
  display: grid;
  place-items: center;
  width: min(100%, 220px) !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(109, 44, 50, 0.16);
  border-radius: 50%;
  background: rgba(109, 44, 50, 0.06);
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.mentors-circle span,
.mentors-circle2 span {
  line-height: 1;
}

.mentors-circle img,
.mentors-circle2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mentors-name,
.mentors-name2 {
  margin: 0 0 10px !important;
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.15 !important;
  text-align: left !important;
}

.mentors-desc,
.mentors-desc2 {
  display: grid;
  gap: 10px;
  margin: 0 !important;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65 !important;
  text-align: left !important;
}

.mentors-desc p,
.mentors-desc2 p {
  margin: 0;
}

.mentor-role {
  color: var(--brand);
  font-weight: 800;
}

.mentors-desc a,
.mentors-desc2 a {
  width: fit-content;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 0;
}

.mentors-desc a:hover,
.mentors-desc2 a:hover {
  color: var(--brand-dark);
}

@media (max-width: 900px) {
  .mentors-wrapper-main {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  .mentors-title {
    font-size: clamp(30px, 11vw, 42px) !important;
  }

  .mentors-items,
  .mentors-items2 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .mentors-circle,
  .mentors-circle2 {
    width: min(72vw, 180px) !important;
    height: auto !important;
    font-size: 20px;
  }
}
