/*
Theme Name: Go Child
Template: go
*/

/* ==================================================
   Global safety reset
================================================== */

/* 不碰 header logo 尺寸，只避免被圆形裁切误伤 */
.site-header .custom-logo,
.site-header .custom-logo-link img,
header .custom-logo,
header .custom-logo-link img,
.site-branding img {
  border-radius: 0 !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  object-fit: contain !important;
  transform: none !important;
}

/* ==================================================
   Student Experience - Single Page
   URL example: /student_experience/weber/
================================================== */

body.single-student_experience {
  background: linear-gradient(to bottom, #fff8e1, #ffffff) !important;
}

/* 把主题内容容器白底移除，露出渐层背景 */
body.single-student_experience #page,
body.single-student_experience .site,
body.single-student_experience .site-content,
body.single-student_experience .content-area,
body.single-student_experience .entry-content,
body.single-student_experience main {
  background: transparent !important;
}

body.single-student_experience .student-experience-single {
  padding: 60px 20px 80px;
}

body.single-student_experience .student-experience-container {
  max-width: 900px;
  margin: 0 auto;
}

body.single-student_experience .student-experience-article {
  text-align: center;
}

/* Breadcrumbs */
body.single-student_experience .student-breadcrumbs {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  color: #6f7685;
}

body.single-student_experience .student-breadcrumbs a {
  color: #d66b1f;
  text-decoration: none;
}

body.single-student_experience .student-breadcrumbs a:hover {
  text-decoration: underline;
}

/* Featured image */
body.single-student_experience .student-experience-featured-image {
  margin: 0 auto 20px;
  text-align: center;
}

body.single-student_experience .student-experience-featured-image img {
  width: 300px !important;
  height: 300px !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* Title */
body.single-student_experience .student-experience-title,
body.single-student_experience h1.student-experience-title {
  display: block;
  width: 100%;
  margin: 20px 0 30px;
  text-align: center !important;
  font-size: 42px;
  line-height: 1.2;
  color: #0d2c63;
  float: none !important;
}

/* Content */
body.single-student_experience .student-experience-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  font-size: 18px;
  line-height: 1.95;
  color: #5c6270;
}

body.single-student_experience .student-experience-content p {
  margin-bottom: 1.4em;
}

body.single-student_experience .student-experience-content h2,
body.single-student_experience .student-experience-content h3,
body.single-student_experience .student-experience-content h4 {
  color: #0d2c63;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}

body.single-student_experience .student-experience-content img {
  max-width: 100%;
  height: auto;
}

/* ==================================================
   Student Experience - List Page
   URL example: /student_experience/
   Current page id: 3044
================================================== */

body.page-id-3044 .uagb-post__inner-wrap {
  text-align: center !important;
}

body.page-id-3044 .uagb-post__image {
  width: 300px !important;
  height: 300px !important;
  margin: 0 auto 0px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
}

body.page-id-3044 .uagb-post__image a {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 50% !important;
}

body.page-id-3044 .uagb-post__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  border-radius: 50% !important;
  display: block !important;
}

/* 名字样式 */
body.page-id-3044 .uagb-post__title,
body.page-id-3044 .uagb-post__title a {
  text-align: center !important;
  color: #0d2c63 !important;
  font-size: 18px;
  line-height: 1.5;
  text-decoration: none;
}

body.page-id-3044 .uagb-post__title a:hover {
  text-decoration: underline;
}

/* ==================================================
   Mobile
================================================== */

@media (max-width: 768px) {
  body.single-student_experience .student-experience-single {
    padding: 40px 20px 60px;
  }

  body.single-student_experience .student-breadcrumbs {
    font-size: 13px;
    margin-bottom: 20px;
  }

  body.single-student_experience .student-experience-featured-image img {
    width: 140px !important;
    height: 140px !important;
  }

  body.single-student_experience .student-experience-title,
  body.single-student_experience h1.student-experience-title {
    font-size: 32px;
    margin: 16px 0 24px;
  }

  body.single-student_experience .student-experience-content {
    font-size: 16px;
    line-height: 1.85;
  }

  body.page-id-3044 .uagb-post__image {
    width: 280px !important;
    height: 280px !important;
  }

  body.page-id-3044 .uagb-post__title,
  body.page-id-3044 .uagb-post__title a {
    font-size: 17px;
  }
}

/* ===== Student Experience single page - desktop force override ===== */
html body.single-student_experience .student-experience-single,
html body.single-student_experience .student-experience-container,
html body.single-student_experience .student-experience-article,
html body.single-student_experience .student-experience-featured-image,
html body.single-student_experience .student-experience-title,
html body.single-student_experience .student-experience-content {
  all: revert;
}

html body.single-student_experience {
  background: linear-gradient(to bottom, #fff8e1, #ffffff) !important;
}

html body.single-student_experience .student-experience-single {
  padding: 60px 20px 80px !important;
}

html body.single-student_experience .student-experience-container {
  max-width: 900px !important;
  margin: 0 auto !important;
}

html body.single-student_experience .student-experience-article {
  text-align: center !important;
}

html body.single-student_experience .student-breadcrumbs {
  max-width: 900px !important;
  margin: 0 auto 30px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  text-align: left !important;
  color: #6f7685 !important;
}

html body.single-student_experience .student-breadcrumbs a {
  color: #d66b1f !important;
  text-decoration: none !important;
}

html body.single-student_experience .student-experience-featured-image {
  margin: 0 auto 20px !important;
  text-align: center !important;
}

html body.single-student_experience .student-experience-featured-image img {
  width: 300px !important;
  height: 300px !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  max-width: 300px !important;
}

html body.single-student_experience .student-experience-title,
html body.single-student_experience h1.student-experience-title {
  display: block !important;
  width: 100% !important;
  margin: 20px 0 30px !important;
  text-align: center !important;
  font-size: 42px !important;
  line-height: 1.2 !important;
  color: #0d2c63 !important;
  float: none !important;
  clear: both !important;
}

html body.single-student_experience .student-experience-content {
  max-width: 760px !important;
  margin: 0 auto !important;
  text-align: left !important;
  font-size: 18px !important;
  line-height: 1.95 !important;
  color: #5c6270 !important;
}

html body.single-student_experience .student-experience-content p {
  margin-bottom: 1.4em !important;
}

html body.single-student_experience #page,
html body.single-student_experience .site,
html body.single-student_experience .site-content,
html body.single-student_experience .content-area,
html body.single-student_experience .entry-content,
html body.single-student_experience main {
  background: transparent !important;
}

@media (max-width: 768px) {
  html body.single-student_experience .student-experience-featured-image img {
    width: 140px !important;
    height: 140px !important;
    max-width: 140px !important;
  }

  html body.single-student_experience .student-experience-title,
  html body.single-student_experience h1.student-experience-title {
    font-size: 32px !important;
  }

  html body.single-student_experience .student-experience-content {
    font-size: 16px !important;
    line-height: 1.85 !important;
  }
}
}