/* General Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
  font-family: 'Figtree', 'Segoe UI', sans-serif;
  min-height:  100vh;
  background-color: aliceblue;
  color: #333;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

main {
  margin-top: 0;
  padding-top: 0;
  background-color: aliceblue;
}

/* Header and Navigation */
header {
  background-color: aliceblue;
  position: static;
  overflow: visible;
}

.header-carousel {
  position: relative;
  width: 100%;
  height: 75vh;
}

/* Keep the opening carousel and its navbar within one full viewport. */
.keno-home {
  --home-nav-height: 64px;
}

.keno-home .header-carousel {
  height: calc(100vh - var(--home-nav-height));
  height: calc(100svh - var(--home-nav-height));
}

.keno-home #navbar {
  --logo-lift: 55px;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption-static {
  position: absolute;
  top: 20px;
  left: 120px;
  font-family: 'Figtree', 'Segoe UI', sans-serif;
  font-size: 4rem;
  color: white;
  z-index: 2;
  font-weight: 900;
  font-style: normal;
  letter-spacing: -0.035em;
  text-shadow: 4px 4px 6px rgba(0, 0, 0, 1);
  padding-right: 120px;
}

.carousel-caption-dynamic {
  position: absolute;
  bottom: 96px;
  right: 120px;
  font-size: 3rem;
  color: white;
  font-weight: 700;
  z-index: 2;
  text-align: right;
  font-style: italic;
  text-shadow: 4px 4px 6px rgba(0, 0, 0, 1);
  padding-left: 120px;
}


#navbar {
  --logo-size: 156px;
  --logo-lift: 0px;
  background-color: #440055;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: visible;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  height: 40px;
  width: auto;
  margin-left: 20px;
}

.keno-navbar-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px minmax(0, 1fr);
  min-height: 64px;
}

.keno-navbar-content .left-links {
  grid-column: 1;
  justify-content: flex-start;
}

.keno-navbar-content .right-links {
  grid-column: 3;
  justify-content: flex-end;
}

.keno-navbar-content .center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, calc(-50% - var(--logo-lift)));
  will-change: transform;
}

.keno-navbar-content .center-logo .navbar-logo {
  display: block;
  width: var(--logo-size);
  height: var(--logo-size);
  margin: 0;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.35));
  transition: filter 0.2s ease;
  will-change: width, height;
}

#navbar.is-stuck {
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
}

#navbar.is-stuck .center-logo .navbar-logo {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.org-name {
  color: white;
  font-size: 1.4em;
  line-height: 40px;
  margin: 0;
  white-space: nowrap;
}  

.nav-links {
  list-style-type: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 16px;
}

.nav-links li a.active {
  font-weight: bolder;
}

.nav-links li a:hover {
  background-color:#440055;
}

@media (max-width: 760px) {
  .keno-home {
    --home-nav-height: 58px;
  }

  .keno-home #navbar {
    --logo-lift: 30px;
  }

  .carousel-caption-dynamic {
    bottom: 78px;
  }

  .keno-navbar-content {
    grid-template-columns: minmax(0, 1fr) 108px minmax(0, 1fr);
    min-height: 58px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .keno-navbar-content .nav-links {
    gap: 2px;
  }

  .keno-navbar-content .nav-links li {
    margin-left: 0;
  }

  .keno-navbar-content .nav-links li a {
    padding: 9px 6px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .keno-navbar-content .center-logo .navbar-logo,
  #navbar {
    transition: none;
  }
}

@media (max-width: 520px) {
  .keno-home {
    --home-nav-height: 88px;
  }

  .keno-navbar-content {
    grid-template-columns: minmax(0, 1fr) 108px minmax(0, 1fr);
    min-height: 88px;
    padding: 7px 12px;
  }

  .keno-navbar-content .nav-links {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .keno-navbar-content .right-links {
    align-items: flex-end;
  }

  .keno-navbar-content .nav-links li a {
    padding: 3px 0;
    font-size: 0.72rem;
    line-height: 1.1;
    white-space: nowrap;
  }
}

/* about Section */
.about {
  padding: 40px 30px;
}

.keno-home .about {
  padding-top: 56px;
}

.organization-block {
  padding-bottom: 20px;
}

.aiaa-logo-wordmark {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4814 / 1338;
  margin: 0 auto;
  background-color: #440055;
  -webkit-mask: url('../image/AIAA_logo-2025.png') center / contain no-repeat;
  mask: url('../image/AIAA_logo-2025.png') center / contain no-repeat;
}

.student-logo-paragraph {
  display: flex;
  align-items: center; /* center vertically */
  gap: 20px;
  padding-bottom: 20px;
}

.student-logo-paragraph img {
  max-height: 250px;
  width: auto;
  object-fit: contain;
  display: block;
}

.student-logo-paragraph .about-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about h1 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
}

.about p {
  text-indent: 2em;
  font-size: 1.1em;
  text-align: justify;
  margin-top: 15px;
  font-weight: 500;
}

.about a {
  padding-bottom: 30px;
}

.about a.btn {
  display: flex;
  text-decoration: none;
  justify-content: center;    
  background-color: #440055;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
}

.about .btn:hover {
  background-color: #2b0036;
}

h2 {
  text-align: center;
  color: #440055;
  margin-top: 40px;
}

/* About Page */
.about-hero {
  position: relative;
  height: min(72vh, 760px);
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}

.about-hero > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.about-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(28, 0, 36, 0.88) 0%, rgba(68, 0, 85, 0.62) 43%, rgba(24, 11, 28, 0.16) 76%),
    linear-gradient(0deg, rgba(14, 6, 17, 0.55) 0%, transparent 45%);
}

.about-hero-copy {
  display: flex;
  height: 100%;
  max-width: 1100px;
  padding: 86px 30px 92px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: #fff;
}

.about-hero-eyebrow,
.section-eyebrow,
.card-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-hero-eyebrow {
  margin-bottom: 14px;
  color: #f3c7ff;
}

.about-hero-copy h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.about-hero-copy > p:last-child {
  max-width: 650px;
  margin-top: 22px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
}

.about-main {
  overflow: hidden;
}

.page-section {
  padding: 92px 30px;
}

.about-narrow {
  max-width: 880px;
}

.section-eyebrow {
  margin-bottom: 12px;
  color: #8c2c76;
}

.about-main h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.chapter-intro h2 {
  max-width: 760px;
  text-align: left;
}

.chapter-intro p:not(.section-eyebrow) {
  color: #45404a;
  font-size: 1.08rem;
  line-height: 1.75;
}

.chapter-intro .chapter-lead {
  margin-top: 28px;
  color: #27212b;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.6;
}

.chapter-intro .chapter-lead + p {
  margin-top: 20px;
}

.chapter-facts {
  display: grid;
  margin-top: 48px;
  border-top: 1px solid rgba(68, 0, 85, 0.2);
  border-bottom: 1px solid rgba(68, 0, 85, 0.2);
  grid-template-columns: repeat(3, 1fr);
}

.chapter-facts > div {
  display: flex;
  min-height: 126px;
  padding: 24px;
  flex-direction: column;
  justify-content: center;
}

.chapter-facts > div + div {
  border-left: 1px solid rgba(68, 0, 85, 0.2);
}

.chapter-facts strong {
  color: #440055;
  font-size: 1.35rem;
  line-height: 1.15;
}

.chapter-facts span {
  margin-top: 8px;
  color: #68606c;
  font-size: 0.9rem;
}

.trifecta-section {
  background: #2b0036;
  color: #fff;
}

.section-heading-row {
  display: grid;
  margin-bottom: 46px;
  align-items: end;
  gap: 54px;
  grid-template-columns: 1.15fr 0.85fr;
}

.section-heading-row h2 {
  max-width: 650px;
  color: #fff;
  text-align: left;
}

.section-heading-row > p {
  padding-bottom: 5px;
  color: #e4cfe9;
  font-size: 1.06rem;
  line-height: 1.65;
}

.trifecta-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.trifecta-card {
  display: flex;
  min-height: 550px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.trifecta-card:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-5px);
}

.card-number {
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.36);
  font-size: 1rem;
  font-weight: 800;
}

.trifecta-logo {
  display: flex;
  height: 165px;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trifecta-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-kicker {
  margin-top: 26px;
  color: #dda6e9;
}

.trifecta-card h3 {
  margin-top: 12px;
  font-size: 1.65rem;
  line-height: 1.12;
}

.trifecta-card > p:not(.card-kicker) {
  margin-top: 18px;
  color: #eadfee;
  line-height: 1.62;
}

.trifecta-card a {
  margin-top: auto;
  padding-top: 28px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.trifecta-card a:hover,
.text-link:hover {
  text-decoration: underline;
}

.impact-section {
  background: #f5edf8;
}

.impact-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(68, 0, 85, 0.15);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(51, 14, 62, 0.1);
  grid-template-columns: repeat(2, 1fr);
}

.impact-panel {
  padding: 54px;
}

.impact-panel h2 {
  margin-bottom: 26px;
  text-align: left;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.impact-panel p:not(.section-eyebrow) {
  font-size: 1.03rem;
  line-height: 1.72;
}

.impact-panel p + p {
  margin-top: 18px;
}

.impact-panel-primary {
  background: #440055;
  color: #f7eef9;
}

.impact-panel-primary h2,
.impact-panel-primary .section-eyebrow {
  color: #fff;
}

.impact-panel-light {
  background: #fff;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  color: #440055;
  font-weight: 800;
  text-decoration: none;
}

.about-cta {
  padding: 76px 30px;
  background: aliceblue;
}

.about-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.about-cta h2 {
  max-width: 720px;
  text-align: left;
}

.about-cta-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: 999px;
  background: #440055;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.about-cta-button:hover {
  background: #2b0036;
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .about-hero {
    height: 64vh;
    min-height: 470px;
  }

  .section-heading-row,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    gap: 22px;
  }

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

  .trifecta-card {
    min-height: 490px;
  }

  .about-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .about-hero {
    min-height: 430px;
  }

  .about-hero > img {
    object-position: 58% center;
  }

  .about-hero-copy {
    padding: 64px 22px 62px;
  }

  .page-section {
    padding: 68px 20px;
  }

  .chapter-facts {
    grid-template-columns: 1fr;
  }

  .chapter-facts > div {
    min-height: 96px;
    padding: 20px 8px;
  }

  .chapter-facts > div + div {
    border-top: 1px solid rgba(68, 0, 85, 0.2);
    border-left: 0;
  }

  .trifecta-card,
  .impact-panel {
    padding: 30px 24px;
  }

  .about-cta {
    padding: 62px 20px;
  }
}

/* Our Team Page */
.team-hero > img {
  object-position: center 48%;
}

.team-main h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.team-intro {
  background: aliceblue;
}

.team-narrow {
  max-width: 860px;
}

.team-intro h2 {
  max-width: 720px;
  text-align: left;
}

.team-intro p:last-child {
  max-width: 800px;
  margin-top: 26px;
  color: #45404a;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 550;
  line-height: 1.7;
}

.chair-message-section {
  background: #f5edf8;
}

.chair-message-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(68, 0, 85, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(51, 14, 62, 0.14);
  grid-template-columns: 0.82fr 1.18fr;
}

.chair-message-meta {
  display: flex;
  min-height: 540px;
  padding: 54px;
  flex-direction: column;
  background: #440055;
  color: #fff;
}

.chair-message-meta .section-eyebrow {
  color: #dda6e9;
}

.chair-message-meta h2 {
  max-width: 450px;
  color: #fff;
  text-align: left;
}

.chair-signature {
  display: flex;
  margin-top: auto;
  align-items: center;
  gap: 14px;
}

.chair-signature > span {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.chair-signature strong {
  font-size: 1.05rem;
}

.chair-signature p {
  margin-top: 3px;
  color: #dccbe0;
  font-size: 0.9rem;
}

.chair-message-card blockquote {
  display: flex;
  padding: 58px 62px;
  flex-direction: column;
  justify-content: center;
}

.quote-mark {
  height: 74px;
  color: #8c2c76;
  font-family: Georgia, serif;
  font-size: 7.5rem;
  line-height: 1;
}

.chair-message-card blockquote p {
  position: relative;
  color: #312935;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 650;
  line-height: 1.48;
  letter-spacing: -0.018em;
}

.leadership-history-section {
  scroll-margin-top: 74px;
  background: #fff;
}

.leadership-history-heading {
  max-width: 720px;
}

.leadership-history-heading h2 {
  text-align: left;
}

.leadership-history-heading > p:last-child {
  max-width: 650px;
  margin-top: 14px;
  color: #5d5561;
  font-size: 1.08rem;
  line-height: 1.65;
}

.leadership-history-grid {
  display: grid;
  margin-top: 42px;
  justify-content: center;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leadership-profile-card {
  overflow: hidden;
  border: 1px solid rgba(68, 0, 85, 0.14);
  border-radius: 20px;
  background: #f5edf8;
  box-shadow: 0 16px 38px rgba(51, 14, 62, 0.12);
}

.leadership-profile-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e5d7e9;
}

.leadership-profile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  transition: transform 0.35s ease;
}

.leadership-profile-card--savannah .leadership-profile-image img {
  object-position: center 38%;
}

.leadership-profile-card--matthew .leadership-profile-image img {
  object-position: center 44%;
}

.leadership-profile-card:hover img {
  transform: scale(1.025);
}

.leadership-profile-image > span {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(68, 0, 85, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.leadership-profile-card figcaption {
  padding: 24px;
}

.leadership-profile-card h3 {
  color: #440055;
  font-size: 1.35rem;
  line-height: 1.35;
}

.leadership-profile-card h3 span {
  display: block;
  margin-top: 5px;
  color: #706674;
  font-size: 0.92rem;
  font-weight: 700;
}

.leadership-profile-degree {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(68, 0, 85, 0.14);
  color: #4f4652;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

.leadership-profile-degree span {
  display: block;
  margin-top: 2px;
  color: #706674;
  font-size: 0.85rem;
  font-weight: 600;
}

.team-values-section {
  background: aliceblue;
}

.team-values-heading h2 {
  text-align: left;
}

.team-values-grid {
  display: grid;
  margin-top: 44px;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.team-values-grid article {
  min-height: 285px;
  padding: 32px;
  border: 1px solid rgba(68, 0, 85, 0.14);
  border-radius: 18px;
  background: #fff;
}

.team-values-grid article > span {
  color: #9b62a8;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.team-values-grid h3 {
  margin-top: 42px;
  color: #440055;
  font-size: 1.5rem;
}

.team-values-grid p {
  margin-top: 14px;
  color: #5d5561;
  line-height: 1.65;
}

.team-cta {
  background: #f5edf8;
}

@media (max-width: 820px) {
  .chair-message-card {
    grid-template-columns: 1fr;
  }

  .chair-message-meta {
    min-height: 390px;
  }

  .team-values-grid {
    grid-template-columns: 1fr;
  }

  .team-values-grid article {
    min-height: 235px;
  }
}

@media (max-width: 620px) {
  .team-hero > img {
    object-position: 57% center;
  }

  .chair-message-meta,
  .chair-message-card blockquote {
    padding: 38px 26px;
  }

  .chair-message-meta {
    min-height: 350px;
  }

  .chair-message-card blockquote p {
    font-size: 1.32rem;
  }

  .team-values-grid article {
    padding: 28px 24px;
  }
}

@media (max-width: 900px) {
  .leadership-history-grid {
    grid-template-columns: repeat(2, minmax(260px, 340px));
  }
}

@media (max-width: 620px) {
  .leadership-history-grid {
    grid-template-columns: minmax(0, 340px);
  }
}

/* Events Page */
.events-hero > img {
  object-position: center 54%;
}

.events-main h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.calendar-section {
  background: linear-gradient(180deg, aliceblue 0%, #f5edf8 100%);
}

.calendar-heading {
  display: flex;
  margin-bottom: 34px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
}

.calendar-heading h2,
.calendar-sync-heading h2 {
  text-align: left;
}

.calendar-heading > div:first-child > p:last-child,
.calendar-sync-heading > p:last-child {
  max-width: 680px;
  margin-top: 14px;
  color: #5d5561;
  font-size: 1.08rem;
  line-height: 1.65;
}

.calendar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 13px;
}

.calendar-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5d5561;
  font-size: 0.88rem;
  font-weight: 700;
}

.calendar-live-pill > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #31a166;
  box-shadow: 0 0 0 5px rgba(49, 161, 102, 0.14);
}

.calendar-actions a {
  color: #440055;
  font-weight: 800;
  text-decoration: none;
}

.calendar-actions a:hover {
  text-decoration: underline;
}

.calendar-shell {
  width: 100%;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(68, 0, 85, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(51, 14, 62, 0.13);
}

.calendar-shell iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  border-radius: 13px;
  background: #fff;
}

.calendar-setup-note {
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 11px;
  background: #f5edf8;
  color: #5d5561;
  font-size: 0.92rem;
}

.calendar-setup-note summary {
  color: #440055;
  font-weight: 800;
  cursor: pointer;
}

.calendar-setup-note p {
  max-width: 850px;
  margin-top: 10px;
  line-height: 1.55;
}

.calendar-fallback {
  padding: 30px;
  text-align: center;
}

.calendar-fallback a {
  color: #440055;
  font-weight: 800;
}

.calendar-sync-section {
  background: aliceblue;
}

.calendar-sync-heading {
  max-width: 780px;
}

.sync-grid {
  display: grid;
  margin-top: 46px;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.sync-card {
  min-height: 255px;
  padding: 30px;
  border: 1px solid rgba(68, 0, 85, 0.15);
  border-radius: 18px;
  background: #fff;
}

.sync-card > span {
  color: #9b62a8;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.sync-card h3 {
  margin-top: 34px;
  color: #440055;
  font-size: 1.55rem;
}

.sync-card p {
  margin-top: 14px;
  color: #5d5561;
  line-height: 1.65;
}

.sync-card strong {
  color: #440055;
}

.event-help-strip {
  display: flex;
  margin-top: 28px;
  padding: 30px 34px;
  border-radius: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #440055;
  color: #fff;
}

.event-help-strip h3 {
  font-size: 1.35rem;
}

.event-help-strip p {
  margin-top: 5px;
  color: #eadfee;
}

.event-help-strip a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #440055;
  font-weight: 800;
  text-decoration: none;
}

.event-help-strip a:hover {
  background: #f5edf8;
}

@media (max-width: 780px) {
  .calendar-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .calendar-actions {
    align-items: flex-start;
  }

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

  .sync-card {
    min-height: 220px;
  }

  .event-help-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .events-hero > img {
    object-position: 54% center;
  }

  .calendar-shell {
    padding: 8px;
    border-radius: 14px;
  }

  .calendar-shell iframe {
    height: 650px;
    border-radius: 9px;
  }

  .event-help-strip {
    padding: 26px 24px;
  }
}

/* Events Preview */
#events-preview {
  padding: 0 30px;
  background-color: aliceblue;
}

#events-preview h2 {
  text-align: center;
  margin-bottom: 30px;
  color:#440055;
}

.event-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  gap: 20px;
}

.event-box h3 {
  font-size: 1.5em;
  padding-top: 20px;
}
.event-box p {
  font-size: 1.2em;
  padding-top: 0;
  padding-right: 30px;
}

.event-image img {
  width: 250px;
  height: auto;
  object-fit: cover;
  display: block;
}

.event-details h3 {
  margin-top: 0;
  color: #440055;
}

.event-meta {
  color:  #555;
  font-size: 0.9em;
  margin-top: 10px;
  margin-bottom: 20px;
}

.event-details .btn {
  align-self: flex-start;
  background-color: #440055;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.event-details .btn:hover {
  background-color: #2b0036;
}

/* Instagram Preview */
#instagram-preview,
#sato-instagram {
  padding: 56px 30px 72px;
  background: linear-gradient(180deg, aliceblue 0%, #f5edf8 100%);
}

#sato-instagram {
  padding-top: clamp(72px, 8vw, 104px);
  padding-bottom: clamp(80px, 9vw, 118px);
  background:
    radial-gradient(circle at 84% 12%, rgba(110, 23, 117, 0.12), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f5edf8 100%);
}

#sato-instagram .instagram-section-header,
#sato-instagram .instagram-frame-shell {
  max-width: 860px;
}

.instagram-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 24px;
}

.instagram-section-header h2 {
  margin-top: 4px;
  text-align: left;
}

.instagram-section-header > div > p:last-child {
  max-width: 530px;
  margin-top: 8px;
  color: #555;
  font-size: 1.05rem;
}

.instagram-eyebrow {
  color: #8c2c76;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.instagram-follow-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #440055;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(68, 0, 85, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.instagram-follow-button:hover {
  background: #6e1775;
  transform: translateY(-2px);
}

.instagram-frame-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(68, 0, 85, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(45, 22, 53, 0.16);
}

.instagram-frame-shell iframe {
  display: block;
  width: 100%;
  height: 660px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.instagram-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 12px;
  color: #666;
  font-size: 0.9rem;
}

.instagram-fallback a {
  color: #440055;
  font-weight: 700;
}

@media (max-width: 680px) {
  #instagram-preview,
  #sato-instagram {
    padding-right: 16px;
    padding-left: 16px;
  }

  .instagram-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .instagram-section-header h2 {
    text-align: left;
  }

  .instagram-frame-shell {
    padding: 8px;
  }

  .instagram-frame-shell iframe {
    height: 570px;
  }

  .instagram-fallback {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background-color: #440055;
  font-size: 0.9em;
  color: white;
  border-top: 1px solid #ddd;
}

footer p {
  text-align: center;
}

footer a {
  color: white;
  text-decoration: underline;
}

footer h1 {
  font-size: 1.5em;
}

.flex-footer {
  padding-top: 20px;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-around;
}

.flex-footer img {
  max-width: 250px;
  width: 100%;
  height: auto;
  display: block;
  border-right: 1px solid white;
  padding-right: 30px;
  box-sizing: border-box;
  margin-top: auto;
  margin-bottom: auto;
}

.footer-index {
  display: flex;
  flex-direction: column;
}

.footer-index p {
  text-align: left;
  font-weight: 600;
}

.footer-index p a {
  text-decoration: none;
}

.footer-index p a.location-container:hover {
  text-decoration: underline;
}

.footer-index ul {
  padding-top: 15px;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  }

.footer-index ul a {
  text-decoration: none;
  font-size: 1.1em;
}

.footer-index ul a:hover {
  text-decoration: underline;
}

.media-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 0;
  list-style-type: none;
  font-size: 1.1em;
}
.media-links a {
  text-decoration: none;
}

.social-container {
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 30px;
  text-decoration: none;
}

.button-tip {
  position: relative;
  display: inline-block;
}

.button-tip .button-tip-text {
  visibility: hidden;
  width: 150px;
  font-size: 12px;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;

  position: absolute;
  z-index: 1;
  bottom: 125%;
  right: 0;
  left: auto;
  transform: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.button-tip:hover .button-tip-text {
  visibility: visible;
  opacity: 1;
}

.fa:hover {
  opacity: 0.7;
}

.fa-brands:hover {
  opacity: 0.7;
}

.university-disclaimer {
  padding-top: 20px;
}

.university-disclaimer a:hover {
  color: #00a3ee;
}

@media (max-width: 760px) {
  footer {
    padding: 30px 20px;
  }

  .flex-footer {
    align-items: center;
    flex-direction: column;
  }

  .flex-footer img {
    max-width: 180px;
    padding-right: 0;
    padding-bottom: 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  }

  .footer-index,
  .online-presence {
    align-items: center;
  }

  .footer-index p {
    text-align: center;
  }
}

/* Contact and support pages */
.contact-hero img {
  object-position: center 45%;
}

.support-hero img {
  object-position: center 52%;
}

.contact-section,
.support-intro {
  background: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.contact-copy h2,
.support-intro h2,
.social-contact-heading h2,
.giving-panel h2 {
  margin: 8px 0 18px;
  color: #440055;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.contact-copy > p:last-of-type,
.support-intro-grid > p {
  color: #4d4551;
  font-size: 1.08rem;
  line-height: 1.75;
}

.contact-copy a {
  color: #440055;
  font-weight: 700;
}

.contact-direct-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding: 20px;
  border: 1px solid rgba(68, 0, 85, 0.13);
  border-radius: 18px;
  background: #f8f1fa;
}

.contact-icon,
.giving-account-icon {
  display: grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: #440055;
  color: #fff;
  font-size: 1.15rem;
}

.contact-direct-card div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-direct-card div > span {
  color: #756d78;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(68, 0, 85, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(45, 22, 53, 0.13);
}

.contact-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #440055;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d9cddd;
  border-radius: 12px;
  outline: none;
  background: #fcfafd;
  color: #2f2931;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6e1775;
  box-shadow: 0 0 0 4px rgba(110, 23, 117, 0.12);
}

.contact-form button,
.foundation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: #440055;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(68, 0, 85, 0.23);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover,
.foundation-button:hover {
  background: #6e1775;
  transform: translateY(-2px);
}

.contact-form-note,
.giving-secure-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #776f79;
  font-size: 0.88rem;
  line-height: 1.45;
}

.social-contact-section,
.giving-section {
  background: linear-gradient(145deg, #f7f0f9 0%, #fff 58%, #f1f8f8 100%);
}

.social-contact-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.social-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.social-contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(68, 0, 85, 0.12);
  border-radius: 20px;
  background: #fff;
  color: #440055;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(45, 22, 53, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(45, 22, 53, 0.15);
}

.social-contact-card > i {
  font-size: 2.3rem;
}

.social-contact-card div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.social-contact-card strong {
  font-size: 1.2rem;
}

.social-contact-card div span {
  color: #6d6570;
}

.support-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(35px, 7vw, 90px);
  align-items: end;
}

.giving-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.giving-panel,
.giving-instructions {
  border: 1px solid rgba(68, 0, 85, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(45, 22, 53, 0.11);
}

.giving-panel {
  padding: clamp(24px, 4vw, 42px);
}

.giving-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eadfeb;
}

.giving-panel-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.giving-frequency,
.giving-amounts {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.giving-frequency legend,
.giving-amounts legend {
  margin-bottom: 12px;
  color: #440055;
  font-weight: 800;
}

.giving-frequency {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.giving-frequency legend {
  width: 100%;
}

.giving-frequency label {
  position: relative;
  cursor: pointer;
}

.giving-frequency input {
  position: absolute;
  opacity: 0;
}

.giving-frequency span {
  display: block;
  padding: 10px 18px;
  border: 1px solid #d9cddd;
  border-radius: 999px;
  color: #5d5361;
  font-weight: 700;
}

.giving-frequency input:checked + span {
  border-color: #440055;
  background: #440055;
  color: #fff;
}

.giving-frequency input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(110, 23, 117, 0.15);
}

.giving-amounts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.giving-amounts legend {
  grid-column: 1 / -1;
}

.giving-amounts button,
.giving-amounts label {
  min-width: 0;
  min-height: 48px;
  border: 1px solid #d9cddd;
  border-radius: 12px;
  background: #fcfafd;
  color: #440055;
  font: inherit;
  font-weight: 800;
}

.giving-amounts button {
  cursor: pointer;
}

.giving-amounts button:hover,
.giving-amounts button.selected {
  border-color: #440055;
  background: #f0e2f3;
}

.giving-amounts label {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 9px;
}

.giving-amounts label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.giving-amounts input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #440055;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.giving-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0 18px;
  padding: 17px 0;
  border-top: 1px solid #eadfeb;
  border-bottom: 1px solid #eadfeb;
}

.giving-summary span {
  color: #6d6570;
}

.giving-summary strong {
  color: #440055;
}

.foundation-button {
  width: 100%;
}

.giving-secure-note {
  justify-content: center;
  margin-top: 15px;
  text-align: center;
}

.giving-instructions {
  padding: clamp(24px, 4vw, 38px);
}

.giving-instructions h3 {
  margin: 8px 0 16px;
  color: #440055;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.giving-instructions > p {
  color: #5a515d;
  line-height: 1.65;
}

.fund-search-term {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 22px 0;
  padding: 17px 18px;
  border-left: 4px solid #6e1775;
  border-radius: 0 12px 12px 0;
  background: #f7eff9;
}

.fund-search-term span {
  color: #766d78;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fund-search-term strong {
  color: #440055;
  font-size: 1.08rem;
}

.giving-instructions ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: #4f4752;
  line-height: 1.55;
}

.giving-placeholder-note {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eadfeb;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .contact-layout,
  .support-intro-grid,
  .giving-layout {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    max-width: 700px;
  }
}

@media (max-width: 620px) {
  .contact-field-row,
  .social-contact-grid {
    grid-template-columns: 1fr;
  }

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

  .giving-amounts label {
    grid-column: 1 / -1;
  }

  .giving-panel-heading {
    flex-direction: column;
  }

  .giving-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Sato-kun mascot */
.mascot-preview-section {
  padding: clamp(72px, 9vw, 118px) 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(110, 23, 117, 0.12), transparent 36%),
    linear-gradient(145deg, #f8f1fa 0%, #fff 62%, #edf8f7 100%);
}

.mascot-preview-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(42px, 8vw, 98px);
  align-items: center;
}

.mascot-preview-image,
.mascot-full-image {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(68, 0, 85, 0.12);
  border-radius: 28px;
  background: #f3efea;
  box-shadow: 0 22px 55px rgba(45, 22, 53, 0.17);
  text-decoration: none;
}

.mascot-preview-image img,
.mascot-full-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.mascot-preview-image:hover img,
.mascot-full-image:hover img {
  transform: scale(1.025);
}

.mascot-preview-image > span,
.mascot-full-image > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(68, 0, 85, 0.9);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.mascot-preview-copy h2,
.mascot-story-heading h2,
.mascot-facts-card h2 {
  margin: 8px 0 20px;
  color: #440055;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-align: left;
}

.mascot-preview-copy > p:last-of-type {
  max-width: 610px;
  color: #4e4651;
  font-size: 1.12rem;
  line-height: 1.72;
}

.mascot-profile-button,
.mascot-official-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #440055;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(68, 0, 85, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mascot-profile-button:hover,
.mascot-official-button:hover {
  background: #6e1775;
  transform: translateY(-2px);
}

.mascot-hero {
  height: min(72vh, 760px);
  min-height: 530px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 28%, rgba(185, 89, 181, 0.34), transparent 34%),
    linear-gradient(130deg, #26002f 0%, #440055 52%, #6e1775 100%);
}

.mascot-hero-grid {
  display: grid;
  height: 100%;
  padding: 54px 30px 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(38px, 7vw, 88px);
  align-items: center;
}

.mascot-hero-copy {
  color: #fff;
}

.mascot-hero-copy h1 {
  max-width: 650px;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.mascot-hero-copy > p:last-child {
  margin-top: 24px;
  color: #f3d7fa;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
}

.mascot-hero-portrait {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  justify-self: center;
  filter: drop-shadow(0 30px 34px rgba(20, 0, 25, 0.42));
  transform: rotate(1.5deg);
}

.mascot-hero-portrait::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 54px rgba(236, 194, 243, 0.25);
}

.mascot-hero-portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 49%;
  clip-path: circle(49% at 50% 50%);
}

.mascot-main {
  background: #fff;
}

.mascot-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(45px, 8vw, 100px);
  align-items: start;
}

.mascot-story-heading h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
}

.mascot-story-copy {
  display: grid;
  gap: 18px;
  color: #4f4752;
  font-size: 1.1rem;
  line-height: 1.78;
}

.mascot-profile-section {
  background: linear-gradient(145deg, #f7eff9 0%, #fff 58%, #edf8f7 100%);
}

.mascot-profile-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(38px, 7vw, 84px);
  align-items: center;
}

.mascot-image-column {
  display: flex;
  width: 100%;
  max-width: 510px;
  flex-direction: column;
  align-items: center;
}

.mascot-full-image {
  max-width: 510px;
}

.mascot-full-image.is-transparent {
  overflow: visible;
  padding: 6px 18px 12px;
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at 50% 78%, rgba(110, 23, 117, 0.16), transparent 66%);
  box-shadow: none;
}

.mascot-full-image.is-transparent img {
  max-height: 660px;
  object-fit: contain;
  filter: drop-shadow(0 24px 22px rgba(48, 20, 54, 0.22));
}

.mascot-facts-card {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(68, 0, 85, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(45, 22, 53, 0.12);
}

.mascot-facts-card h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.mascot-facts-card dl {
  margin: 0;
}

.mascot-facts-card dl > div {
  display: grid;
  padding: 16px 0;
  border-bottom: 1px solid rgba(68, 0, 85, 0.12);
  grid-template-columns: 120px 1fr;
  gap: 18px;
}

.mascot-facts-card dt {
  color: #440055;
  font-weight: 800;
}

.mascot-facts-card dd {
  margin: 0;
  color: #514953;
  line-height: 1.55;
}

.mascot-image-actions {
  display: flex;
  width: min(100%, 360px);
  align-items: center;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.mascot-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: #007f79;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(0, 91, 86, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mascot-download-button span {
  font-size: 0.82em;
  font-weight: 600;
  opacity: 0.86;
}

.mascot-download-button:hover,
.mascot-download-button:focus-visible {
  background: #006862;
  transform: translateY(-2px);
}

.mascot-download-button:focus-visible,
.mascot-support-link:focus-visible {
  outline: 3px solid #b859b5;
  outline-offset: 3px;
}

.mascot-support-link {
  color: #440055;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.mascot-support-link:hover {
  color: #6e1775;
}

@media (max-width: 820px) {
  .mascot-preview-grid,
  .mascot-hero-grid,
  .mascot-story-grid,
  .mascot-profile-grid {
    grid-template-columns: 1fr;
  }

  .mascot-preview-image,
  .mascot-full-image,
  .mascot-image-column {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .mascot-hero {
    height: auto;
    min-height: 0;
  }

  .mascot-hero-grid {
    padding-top: 78px;
  }

  .mascot-hero-portrait {
    width: min(100%, 460px);
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  .mascot-preview-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .mascot-facts-card dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .mascot-preview-image > span {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

}

/* Floating Sato-kun helper */
.mascot-widget {
  position: fixed;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  z-index: 1200;
  font-family: "Figtree", sans-serif;
}

.mascot-widget-trigger {
  position: relative;
  display: block;
  width: clamp(92px, 10vw, 124px);
  height: clamp(92px, 10vw, 124px);
  padding: 0;
  overflow: visible;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #f3efea;
  box-shadow: 0 14px 38px rgba(42, 8, 51, 0.32);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mascot-widget-trigger:hover,
.mascot-widget-trigger:focus-visible {
  outline: none;
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: 0 18px 44px rgba(42, 8, 51, 0.4);
}

.mascot-widget-trigger:focus-visible {
  box-shadow: 0 0 0 4px #b859b5, 0 18px 44px rgba(42, 8, 51, 0.4);
}

.mascot-widget-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.mascot-widget-greeting {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 1;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #440055;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 5px 14px rgba(42, 8, 51, 0.24);
  transform: translateX(-50%);
}

.mascot-widget-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 18px);
  width: min(350px, calc(100vw - 32px));
  padding: 27px;
  border: 1px solid rgba(68, 0, 85, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(42, 8, 51, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.mascot-widget-panel::after {
  content: "";
  position: absolute;
  right: 42px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(68, 0, 85, 0.14);
  border-bottom: 1px solid rgba(68, 0, 85, 0.14);
  background: #fff;
  transform: rotate(45deg);
}

.mascot-widget.is-open .mascot-widget-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mascot-widget-close {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4edf6;
  color: #440055;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.mascot-widget-eyebrow {
  margin: 0 38px 7px 0;
  color: #7a287e;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mascot-widget-panel h2 {
  margin: 0 36px 11px 0;
  color: #440055;
  font-size: 1.65rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-align: left;
}

.mascot-widget-panel > p:not(.mascot-widget-eyebrow) {
  margin: 0;
  color: #514953;
  font-size: 0.97rem;
  line-height: 1.55;
}

.mascot-widget-links {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.mascot-widget-links a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border: 1px solid rgba(68, 0, 85, 0.14);
  border-radius: 13px;
  color: #440055;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.mascot-widget-links a:first-child {
  border-color: #440055;
  background: #440055;
  color: #fff;
}

.mascot-widget-links a:hover,
.mascot-widget-links a:focus-visible {
  outline: none;
  transform: translateX(3px);
}

.mascot-widget-links a:last-child:hover,
.mascot-widget-links a:last-child:focus-visible {
  background: #f4edf6;
}

@media (max-width: 540px) {
  .mascot-widget-trigger {
    width: 84px;
    height: 84px;
  }

  .mascot-widget-panel {
    right: -2px;
    padding: 24px;
  }

  .mascot-widget-greeting {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-widget-trigger,
  .mascot-widget-panel,
  .mascot-widget-links a {
    transition: none;
  }
}
