/* Updated: 2025-10-09 17:56 - Cache cleared and refreshed */
body { padding-top: 56px; }
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-hero { background-color: #45b06cff; }

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }

/* --- STYLES FOR CUSTOM HOMEPAGE --- */

/* Body and Font styles */
.font-nanum-pen { 
    font-family: 'Comic Sans MS', cursive; 
}
.font-comic-sans { 
    font-family: 'Comic Sans MS', cursive, sans-serif; 
}

/* Fluid Typography (Responsive text) */
.nav-text { 
    font-size: clamp(1.3rem, 3.25vw, 3.25rem); 
    line-height: 1; 
}
.body-text-main { 
    font-size: clamp(1.05rem, 3.55vw, 2.8rem); 
    line-height: 1.3; 
}
.nav-text-bordered {
    -webkit-text-stroke-width: clamp(1.75px, 0.35vw, 7px);
    -webkit-text-stroke-color: rgba(137, 79, 33, 0.42);
}

/* --- REPLACEMENT FOR TAILWIND UTILITY CLASSES --- */

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.left-0 { left: 0; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.w-9-5-percent { width: 9.5%; } 

/* Display & Flexbox */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-end { justify-content: flex-end; }

/* Typography */
.font-bold { font-weight: 700; }
.text-white { color: #ffffff; }
.text-beige { color: #fbefd5; }

/* Background */
.bg-white { background-color: #ffffff; }

/* --- STYLES FOR SPECIFIC ELEMENTS ON HOMEPAGE --- */

.homepage-nav {
    padding-left: 10%;
    padding-right: 10%;
}
.homepage-nav > a {
    margin-left: 2.5%;
    margin-right: 2.5%;
}

.main-navigation-wrapper {
  position: relative; /* This is required for z-index to work */
  z-index: 999;      /* A very high number to ensure it's on top */
}

/*
================================================================
 STYLES FOR STANDARD CONTENT PAGES (LIKE PROJECT.HTML)
================================================================
*/

/* --- Custom Classes from Reference File --- */
/* Ensure these font definitions from your reference file are here */
.font-nanum-pen { font-family: 'Nanum Pen Script', 'Comic Sans MS', cursive; }
.font-comic-sans { font-family: 'Comic Sans MS', cursive, sans-serif; }

.heading-xl { font-size: clamp(3rem, 8vw, 7.5rem); line-height: 1.1; }
h1.heading-lg { font-size: clamp(1rem, 4vw, 5rem); line-height: 1.1; }
/* I'm assuming bg-w-100 was meant to be bg-white */
.bg-w-100, .bg-white { background-color: #ffffff; }


/* --- REPLACEMENT FOR TAILWIND UTILITY CLASSES --- */

/* Layout & Box Model */
.isolate { isolation: isolate; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; /* 1280px */ }
.min-h-screen { min-height: 100vh; }
.object-contain { object-fit: contain; }
.overflow-hidden { overflow: hidden; }

/* Sizing (Width & Height) */
.w-px { width: 1px; }
.w-40 { width: 10rem; /* 160px */ }
.h-6 { height: 1.5rem; }
.h-10 { height: 3rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-60 { height: 15rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-\[410px\] { height: 410px; }
.h-\[700px\] { height: 700px; }
.w-\[800px\] { width: 800px; }

/* Spacing (Padding & Margin) */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pb-24 { padding-bottom: 6rem; }
.pt-8 { padding-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.-mt-4 { margin-top: -1rem; }

/* Flexbox */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-6 { gap: 1.5rem; }

/* Typography */
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-sm { font-size: 0.875rem; }
.text-ssm { font-size: 0.65rem; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.leading-7 { line-height: 1.75rem; }
.text-black { color: #000; }
.text-amber-700 { color: #b45309; }
.text-gray-300 { color: #d1d5db; }
.text-gray-600 { color: #4b5563; }
.text-justify { text-align: justify; }
.text-center { text-align: center; }
.inline-block { display: inline-block; }
.align-middle { vertical-align: middle; }

/* Borders & Rounded Corners */
.border-t { border-top-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }
.rounded-lg { border-radius: 0.5rem; }
.bg-amber-700 { background-color: #b45309; }

/* --- Responsive Styles (Media Queries) --- */

/* Small screens and up (640px) */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:w-56 { width: 14rem; /* 224px */ }
}

/* Large screens and up (1024px) */
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:w-72 { width: 18rem; /* 288px */ }
}

.content-page-background {
  background: linear-gradient(
    90deg,
    rgba(255, 226, 184, 1) 0%,
    rgba(221, 247, 101, 0.46) 100%
  );
}

/*
================================================================
 STYLES FOR MEMBERS PAGE
================================================================
*/

/* --- Styles from the page's original <style> block --- */
.font-nanum-pen { 
    /* We define 'Nanum Pen Script' but provide a fallback the project already uses */
    font-family: 'Nanum Pen Script', 'Comic Sans MS', cursive; 
}
.nav-text   { font-size: clamp(1rem, 2.5vw, 2.5rem); line-height: 1; }
.body-text, .desc  { font-size: clamp(0.95rem, 1.7vw, 1.1rem); line-height: 1.7; }
.heading-sm { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.2; }
.heading-md { font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.2; }
.heading-xl { font-size: clamp(3rem, 8vw, 4rem); line-height: 1.1; }

.card { 
    background: #fff; 
    border-radius: 1rem; /* .rounded-2xl */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* .shadow-lg */
    border: 1px solid rgba(0,0,0,0.06); 
    overflow: hidden; 
    transition-property: box-shadow; /* .transition-shadow */
    transition-duration: 300ms; /* .duration-300 */
}
.card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* .hover:shadow-xl */
}
.card-body { padding: 1.25rem; }
@media (min-width: 640px) { .card-body { padding: 1.5rem; } }

.role { 
    font-size: 0.8rem; 
    font-weight: 700; 
    letter-spacing: 0.06em; 
    text-transform: uppercase; 
    color: rgb(180 83 9); 
}
.name { font-size: 1.25rem; font-weight: 800; }
@media (min-width: 640px) { .name { font-size: 1.5rem; } }


/* --- REPLACEMENT FOR TAILWIND UTILITY CLASSES (Team Page Specific) --- */

/* Grid System */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.pi-card-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); } /* Mobile first */
@media (min-width: 640px) { /* sm breakpoint */
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pi-card-grid { grid-template-columns: 280px 1fr; } /* Special grid for PI card */
}
@media (min-width: 1024px) { /* lg breakpoint */
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Sizing */
.max-w-\[160px\] { max-width: 160px; }
.max-w-\[180px\] { max-width: 180px; }
.max-w-\[250px\] { max-width: 250px; }

/* Spacing */
.gap-8 { gap: 2rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-4 { padding-top: 1rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* Typography */
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-serif { font-family: ui-serif, Georgia, Cambria, "Microsoft YaHei", Times, serif; }
.font-sans { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
.font-medium { font-weight: 500; }
.leading-relaxed { line-height: 1.625; }
.underline { text-decoration-line: underline; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Colors (Text, Background, etc.) */
.text-zinc-900 { color: #18181b; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-amber-600 { color: #d97706; }
.text-blue-600 { color: #2563eb; }
.hover\:text-blue-600:hover { color: #2563eb; }
.text-green-600 { color: #16a34a; }
.text-purple-600 { color: #9333ea; }
.text-orange-600 { color: #ea580c; }
.text-pink-600 { color: #db2777; }
.text-indigo-600 { color: #4f46e5; }
.text-teal-600 { color: #0d9488; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-purple-50 { background-color: #f5f3ff; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-pink-50 { background-color: #fdf2f8; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-teal-50 { background-color: #f0fdfa; }

/* Borders & Flexbox */
.rounded-full { border-radius: 9999px; }
.flex-col { flex-direction: column; }
.justify-around { justify-content: space-around; }

/*
================================================================
 STYLES FOR TEAM ACTIVITIES PAGE
================================================================
*/

/* --- Font and Typography definitions from the new page --- */
/* These might already exist from previous additions. It's okay to have them again, 
   but for final cleanup you could merge them. */
.font-nanum-pen { 
    font-family: 'Nanum Pen Script', 'Comic Sans MS', cursive; 
}
.font-comic-sans { 
    font-family: 'Comic Sans MS', cursive, sans-serif; 
}
.nav-text   { font-size: clamp(1rem, 2.5vw, 2.5rem); line-height: 1; }
.body-text  { font-size: clamp(0.75rem, 2.5vw, 2rem); line-height: 1.3; }
.heading-sm { font-size: clamp(1.5rem, 4vw, 3.5rem); line-height: 1.2; }
.heading-md { font-size: clamp(2rem, 5.5vw, 5rem); line-height: 1.2; }
.heading-lg { font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: 1.1; }
.heading-xl { font-size: clamp(3rem, 8vw, 7.5rem); line-height: 1.1; }

/* Background for this page type (already defined, but good to confirm) */
.content-page-background {
  background: linear-gradient(
    90deg,
    rgba(255, 226, 184, 1) 0%,
    rgba(221, 247, 101, 0.46) 100%
  );
}


/* --- REPLACEMENT FOR TAILWIND UTILITY CLASSES (Team Activities Page Specific) --- */

/* Flexbox & Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-around { justify-content: space-around; }
.gap-6 { gap: 1.5rem; }

/* Typography */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.leading-7 { line-height: 1.75rem; }
.text-black { color: #000; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-white { color: #ffffff; }

/* Sizing */
.h-80 { height: 20rem; } /* 320px */

/* Responsive Styles */
@media (min-width: 768px) { /* md breakpoint */
  .md\:flex-row { flex-direction: row; }
  .md\:w-1\/2 { width: 50%; }
}

/*
================================================================
 == COMPREHENSIVE STYLES FOR ALL CONTENT PAGES ==
 This block contains styles for Project, Team, HP, etc.
 You can use this to replace previous Tailwind-replacement blocks.
================================================================
*/

/* --- FONT DEFINITIONS & TYPOGRAPHY --- */
.font-nanum-pen { font-family: 'Nanum Pen Script', 'Comic Sans MS', cursive; }
.font-comic-sans { font-family: 'Comic Sans MS', cursive, sans-serif; }
.font-calibri { font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif; }

.nav-text   { font-size: clamp(1rem, 2.5vw, 2.5rem); line-height: 1; }
.body-text, .desc { font-size: clamp(0.95rem, 1.7vw, 1.1rem); line-height: 1.7; }
.heading-sm { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.2; }
.heading-md { font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.2; }
.heading-lg { font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: 1.1; }
.heading-xl { font-size: clamp(3rem, 8vw, 7.5rem); line-height: 1.1; }

.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.leading-7 { line-height: 1.75rem; }
.text-shadow-custom { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }

/* --- BACKGROUNDS AND COLORS --- */
.content-page-background {
  background: linear-gradient(90deg, rgba(255, 226, 184, 1) 0%, rgba(221, 247, 101, 0.46) 100%);
}
.bg-amber-700 { background-color: #b45309; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-emerald-600 { color: #059669; }
.text-black { color: #000; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }

/* --- LAYOUT, FLEXBOX & SIZING --- */
.isolate { isolation: isolate; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; }

.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* Sizing */
.w-px { width: 1px; }
.w-40 { width: 10rem; }
.w-1\/2 { width: 50%; }
.w-full { width: 100%; }
.h-24 { height: 6rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-99 { height: 40rem; }
.h-full { height: 100%; }
.object-contain { object-fit: contain; }
.overflow-hidden { overflow: hidden; }
.rounded-lg { border-radius: 0.5rem; }

/* Spacing */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pb-24 { padding-bottom: 6rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

/* Custom Divider Image Style */
.divider-image-narrow {
  display: block; width: 120%; max-width: 1300px; margin-left: auto; margin-right: auto; height: auto;
}

/* --- RESPONSIVE STYLES --- */
@media (min-width: 640px) { /* sm breakpoint */
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:w-56 { width: 14rem; }
}
@media (min-width: 768px) { /* md breakpoint */
  .md\:flex-row { flex-direction: row; }
  .md\:flex-row-reverse { flex-direction: row-reverse; }
  .md\:w-1\/2 { width: 50%; }
}
@media (min-width: 1024px) { /* lg breakpoint */
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .lg\:w-72 { width: 18rem; }
}

.h-128 { height: 32rem; } /* 512px */

.professor-title-green {
  color: #047857; /* Equivalent to text-green-700 */
}

/* --- New Typography Class --- */
.text-5xl { 
  font-size: 3rem;    /* 48px */
  line-height: 1; 
}
.text-3xl{font-size:1.875rem;line-height:2.25rem}
/* --- New Sizing Class (if needed) --- */
/* The h-100 class was non-standard. If it means height 100%, this is the definition */
.h-100 {
  height: 100%;
}
/*
================================================================
 STYLES FOR DRY LAB PAGE (New Additions Only)
================================================================
*/

/* --- New Sizing classes for inline notation images --- */
.h-5 { height: 1.25rem; } /* 20px */
.h-7 { height: 1.75rem; } /* 28px */
.h-8 { height: 2rem; }    /* 32px */
.h-9 { height: 2.25rem; } /* 36px */
.h-10 { height: 2.5rem; } /* 40px */

/* --- Custom height for a specific formula image container --- */
.h-\[420px\] { height: 420px; }

/* --- Additional margin class --- */
.-mt-4 { margin-top: -1rem; }

/*
================================================================
 STYLES FOR EDUCATION PAGE (New Additions Only)
================================================================
*/

/* --- New Font Family Definition --- */
/* Provides a fallback font if Fredoka One isn't available */
.font-fredoka-one {
  font-family: 'Fredoka One', 'Comic Sans MS', cursive;
}

/* --- New Semantic Color Classes --- */
.text-pink-title { color: #e33c64; }
.text-yellow-title { color: #ffc300; }
.text-blue-title { color: #2a82e4; }
.text-green-title-alt { color: #40c274; } /* Using "-alt" to avoid conflict if .text-green-title exists */

/* --- New Typography Sizes --- */
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

/* --- New Layout Styles for Chatboxes --- */
.inset-0 {
  top: 0; right: 0; bottom: 0; left: 0;
}
.chatbox-text-top {
  /* Custom positioning for text in the top chat bubble */
  margin-top: -8rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.chatbox-text-bottom {
  /* Custom positioning for text in the bottom chat bubble */
  margin-top: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* --- New Object Fit Class --- */
.object-cover {
  object-fit: cover;
}

/* --- New Font Family Definition --- */
/* Provides a fallback font if Fredoka One isn't available */
.font-fredoka-one {
  font-family: 'Fredoka One', 'Comic Sans MS', cursive;
}

/* --- New Page-Specific Background --- */
.education-page-background {
  background: linear-gradient(
    90deg,
    rgba(235, 220, 188, 0.11) 0%,
    rgba(221, 247, 101, 0.54) 100%
  );
}

/* --- New Semantic Color Classes --- */
.text-pink-title { color: #e33c64; }
.text-yellow-title { color: #ffc300; }
.text-red-title { color: #d43030; }
.text-blue-title { color: #2a82e4; }
.text-green-title-alt { color: #40c274; }


/* --- New Typography Sizes --- */
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

/* --- New Layout Styles for Chatboxes --- */
.inset-0 {
  top: 0; right: 0; bottom: 0; left: 0;
}
.chatbox-text-top {
  /* Custom positioning for text in the top chat bubble */
  /* These values are adjusted for better responsiveness */
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
}
.chatbox-text-bottom {
  /* Custom positioning for text in the bottom chat bubble */
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
}

/* --- New Object Fit Class --- */
.object-cover {
  object-fit: cover;
}

/* --- Additional Sizing Classes --- */
.h-\[450px\] { height: 450px; }
.h-\[500px\] { height: 500px; }

/*
================================================================
 NEW GRID-SPECIFIC STYLES FOR EDUCATION_PART3 PAGE (Additions Only)
================================================================
*/

/* --- Grid-template-columns definitions --- */
h4.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
h4.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
h4.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
h4.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* --- Responsive Grid-template-columns definitions --- */
@media (min-width: 768px) { /* md breakpoint */
  h4.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) { /* lg breakpoint */
  h4.lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  h4.lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* --- Gap definition (if not already present and correct) --- */
h4.gap-4 {
  gap: 1rem; /* Equivalent to 16px */
}

/* --- New Typography for this page --- */
h4.text-xl { font-size: 1.25rem; line-height: 1.75rem; } /* If not already defined */
h4.text-4xl { font-size: 2.25rem; line-height: 2.5rem; } /* If not already defined */
@media (min-width: 768px) {
  .md\:text-5xl { font-size: 3rem; line-height: 1; } /* If not already defined */
}

/* --- Colors --- */
h4.text-gray-500 { color: #6b7280; } /* If not already defined */
h4.text-gray-600 { color: #4b5563; } /* If not already defined */

/*
 * ===================================================================
 *  BASE STYLES & FONT DEFINITIONS
 * ===================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Times+New+Roman:wght@400;700&display=swap');

body {
  background-color: #F9FAFB; /* bg-gray-50 */
  color: #1F2937; /* text-gray-800 */
  font-family: "Microsoft YaHei", Times, serif;
  margin: 0;
  padding: 0;
}

.fredoka-one {
  font-family: 'Fredoka One', cursive;
}

/*
 * ===================================================================
 *  LAYOUT & CONTAINER STYLES
 * ===================================================================
 */

.main-container {
  max-width: 80rem; /* max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1rem; /* py-12 px-4 */
}

.content-section {
  margin-bottom: 5rem; /* mb-20 */
}

.page-header {
  text-align: center;
  margin-bottom: 4rem; /* mb-16 */
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem; /* mb-12 */
}

/*
 * ===================================================================
 *  TYPOGRAPHY
 * ===================================================================
 */

.main-heading {
  font-size: 2.25rem; /* text-4xl */
  line-height: 2.5rem;
}

.sub-heading {
  font-size: 2.25rem; /* text-4xl */
  line-height: 2.5rem;
  font-weight: 700; /* font-bold */
}

.descriptor {
  font-size: 1.5rem; /* text-2xl */
  line-height: 2rem;
  margin-top: 0.5rem; /* mt-2 */
}

.score-text {
  font-size: 1.25rem; /* text-xl */
  color: #4B5563; /* text-gray-600 */
  margin-top: 0.5rem; /* mt-2 */
}

.intro-text {
  font-size: 1.25rem; /* text-xl */
  line-height: 1.75; /* leading-relaxed */
  max-width: 56rem; /* max-w-6xl */
  margin-left: auto;
  margin-right: auto;
}

.intro-text p:not(:first-child) {
  margin-top: 1rem;
}

.caption {
  text-align: center;
  margin-top: 1rem; /* mt-4 */
  color: #4B5563; /* text-gray-600 */
}

.font-bold { font-weight: 700; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }

/* Color Palette */
.text-color-pink { color: #e33c64; }
.text-color-green { color: #43cf7c; }
.text-color-red { color: #d43030; }
.text-color-blue { color: #2a82e4; }

/*
 * ===================================================================
 *  GRID & FLEXBOX (BASE - MOBILE FIRST)
 * ===================================================================
 */

.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr)); /* Default to a single column */
}

.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-40 { gap: 10rem; }
.gap-6 { gap: 1.5rem; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.text-center { text-align: center; }

/*
 * ===================================================================
 *  SPACING & SIZING UTILITIES
 * ===================================================================
 */

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.space-y-4 > *:not([hidden]) ~ *:not([hidden]) { margin-top: 1rem; }
.space-y-6 > *:not([hidden]) ~ *:not([hidden]) { margin-top: 1.5rem; }

.w-full { width: 100%; }
.w-half { width: 50%; }
.w-2-3 { width: 66.666667%; }
.w-4-5 { width: 80%; }
.w-7-8 { width: 87.5%; }
.w-8-9 { width: 88.888889%; }
.w-48 { width: 12rem; }
.h-48 { height: 12rem; }
.h-auto { height: auto; }

.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-6xl { max-width: 72rem; }

/*
 * ===================================================================
 *  STYLING UTILITIES (Borders, Shadows, etc.)
 * ===================================================================
 */

.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/*
 * ===================================================================
 *  !! NEW !! MEDIA QUERIES FOR RESPONSIVENESS
 *  This section makes the grid layout work on wider screens.
 * ===================================================================
 */

/* Small screens and up (640px) */
@media (min-width: 640px) {
  .sm-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Medium screens and up (768px) */
@media (min-width: 768px) {
  .main-heading, .sub-heading {
    font-size: 3rem; /* md:text-5xl */
    line-height: 1;
  }
  .descriptor {
    font-size: 1.875rem; /* md:text-3xl */
    line-height: 2.25rem;
  }
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md-col-span-2 {
    grid-column: span 2 / span 2;
  }
}

/* Large screens and up (1024px) */
@media (min-width: 1024px) {
  .lg-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg-grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .lg-col-span-1 {
    grid-column: span 1 / span 1;
  }
  .lg-col-span-2 {
    grid-column: span 2 / span 2;
  }
  .lg-col-span-3 {
    grid-column: span 3 / span 3;
  }
}

/*
 * ===================================================================
 *  CARD & COMPONENT STYLES (请将此段代码添加到您的CSS文件中)
 * ===================================================================
 */

.card {
  background-color: #FFFFFF; /* 白色背景 */
  padding: 2rem;             /* 关键修复：增加2rem的内部间距 */
  border-radius: 0.5rem;     /* 圆角 */
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* 阴影 */
}

.pillar-card {
  background-color: #FFFFFF;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.3s ease;
}

.pillar-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/*
 * ===================================================================
 *  COMPONENT STYLES (Part 2 - for Student Club Section)
 * ===================================================================
 */

/* Redesigned Goal Cards */
.goal-card-redesigned {
  background-color: #F0F9FF; /* Light blue background */
  border: 1px solid #E0F2FE; /* Slightly darker blue border */
  border-radius: 0.75rem;     /* Slightly larger radius */
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal-card-redesigned:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px -5px rgb(0 0 0 / 0.1);
}

.goal-card-title {
  font-family: 'Fredoka One', cursive;
  color: #0284C7; /* A strong blue color */
  font-size: 1.5rem; /* 24px */
  margin-bottom: 1rem;
}

.goal-card-text {
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  color: #374151; /* Gray text */
}

/* Activity Lists within Pillar Cards */
.activity-list {
  list-style-type: disc;
  padding-left: 1.25rem; /* Indent the list */
  color: #4B5563; /* text-gray-600 */
}

.activity-list li {
  margin-bottom: 0.75rem; /* Space between list items */
}

.activity-list li:last-child {
  margin-bottom: 0;
}

.activity-list b {
  color: #1F2937; /* Darker text for bold items */
}

/* General Card Title Style (if not already defined) */
.card-title {
  font-size: 2rem; /* 32px */
  font-weight: 700;
  margin-bottom: 1rem;
}
/*
 * ===================================================================
 *  SPECIFIC COMPONENT STYLES (for Survey Images)
 * ===================================================================
 */

.survey-image {
  /* --- 尺寸调整 --- */
  width: 85%; /* 将宽度设置为85%，实现了大约15%的缩小 */

  /* --- 居中对齐 --- */
  display: block; /* 必须设置为块级元素，margin:auto才能生效 */
  margin-left: auto;
  margin-right: auto;

  /* --- 保持原有的其他样式 --- */
  height: auto; /* 高度自适应 */
  border-radius: 0.5rem; /* 圆角 */
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* 阴影 */
}

/*
 * ===================================================================
 *  PDF Viewer Styles (Final Fix)
 * ===================================================================
 */

.pdf-container {
  /* --- 尺寸与居中 --- */
  max-width: 56rem;  /* 设置一个合适的最大宽度，防止在超大屏幕上过宽 */
  width: 100%;       /* 在达到最大宽度之前，宽度为100% */
  margin-left: auto;
  margin-right: auto;

  /* --- 外观样式 --- */
  border: 4px solid #E5E7EB; /* 浅灰色边框 */
  border-radius: 0.5rem;      /* 圆角 */
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); /* 更深的阴影，使其突出 */
  overflow: hidden;           /* 这个很重要，可以裁剪内部iframe的边角，使其匹配容器的圆角 */
}

.pdf-iframe {
  /* --- 核心修复：尺寸与宽高比 --- */
  width: 100%;
  display: block; /* 移除iframe默认的底部空隙 */
  aspect-ratio: 1 / 1.414; /* 关键！设置宽高比为 A4 纸比例 (1:√2)，浏览器会自动计算高度 */
  
  /* --- 其他样式 --- */
  border: none; /* 移除iframe默认的边框 */
}

/*
 * ===================================================================
 *  CUSTOM NAVBAR STYLES (for Scroll Effect)
 * ===================================================================
 */

/* --- 1. Main Navbar Container --- */
.main-navbar {
    /* Initial State (Top of Page) */
    background-color: #6F4E37; /* 一个漂亮的咖啡褐色 */
    
    /* Smooth transition for all changes */
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* --- 2. Links, Brand, and Dropdown Toggles (Initial State) --- */
.main-navbar .navbar-brand,
.main-navbar .nav-link {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-weight: bold;
    color: #FFFFFF !important; /* !important to override Bootstrap's default link colors */
    transition: color 0.4s ease; /* Smooth transition for font color change */
}

/* --- 3. The "Scrolled" State --- */
.main-navbar.scrolled {
    /* Scrolled State Appearance */
    background-color: rgba(111, 78, 55, 0.55); /* 同样的褐色，但有55%的透明度 */

    /* The "Frosted Glass" Effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    backdrop-filter: blur(10px);         /* Standard */
}

/* --- 4. Links, Brand, and Toggles (Scrolled State) --- */
.main-navbar.scrolled .navbar-brand,
.main-navbar.scrolled .nav-link {
    color: #000000 !important; /* 字体变为黑色 */
}

/* --- 5. Dropdown Menu Styling --- */
/* Ensuring dropdowns also match the new theme */
.main-navbar .dropdown-menu {
    background-color: #6F4E37; /* Solid brown background */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-navbar .dropdown-item {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-weight: bold;
    color: #FFFFFF;
}

.main-navbar .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Subtle hover effect */
    color: #FFFFFF;
}

/* --- 6. Mobile Menu Icon Color --- */
/* The mobile "hamburger" icon is an SVG. We need to change its color. */
.main-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*
 * =.==================================================================
 *  CUSTOM FOOTER STYLES
 * ===================================================================
 */

.custom-footer {
    /* --- 背景和内外边距 --- */
    background-color: #6F4E37; /* 和导航栏一致的褐色 */
    padding-top: 3rem;         /* 替代 pt-5 */
    padding-bottom: 3rem;      /* 替代 pb-5 */
    margin-top: 0;             /* 替代 mt-0 */

    /* --- 字体样式 (应用到整个页脚) --- */
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-weight: bold;
    color: #FFFFFF; /* 替代 text-white */
}

/* --- 标题样式 --- */
.custom-footer h4 {
    margin-bottom: 1.5rem; /* 替代 mb-3 */
}

/* --- 链接列表样式 --- */
/* 移除默认的列表样式 */
.custom-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- 链接样式 --- */
.custom-footer a,
.custom-footer a:visited {
    color: #FFFFFF;           /* 链接颜色为白色 */
    text-decoration: none;  /* 移除下划线 */
    transition: color 0.3s ease;
}

.custom-footer a:hover {
    color: #EADDCA; /* 鼠标悬停时变为浅褐色，增加交互感 */
    text-decoration: underline;
}

/* --- 水平线样式 --- */
.custom-footer hr {
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* 使分割线颜色更柔和 */
}

/* --- 页脚底部的版权信息 --- */
.custom-footer small {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8); /* 让这部分文字颜色稍暗，突出层次感 */
}

/* Basic Reset */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

/* The main 'Artboard' container */
.artboard-container {
    position: relative;
    width: 100%; 
    
    /* This sets the aspect ratio based on your original design */
    aspect-ratio: 117.8125 / 450.5625; 

    /* This clips any overflowing content (like tall background images) 
       and removes the extra blank space at the bottom of the page. */
    overflow: hidden;
}

/* Common class for all absolutely positioned elements */
.abs-element {
    position: absolute;
    height: auto; 
}

/* The main style for all text blocks */
.styled-text {
    position: absolute;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-weight: bold;
    color: black;
    
    /* White border effect */
    text-shadow:
        -1.5px -1.5px 0 #fff,  
         1.5px -1.5px 0 #fff,
        -1.5px  1.5px 0 #fff,
         1.5px  1.5px 0 #fff;

    /* Increased font size for better readability */
    font-size: 2.6vw;
    line-height: 1.25;
}

/* Style for the INLINE 'yeast SMART' text */
.yeast-smart-text {
    color: #b17a2d; /* Brownish-gold color */
    font-size: 1.2em; /* Makes it 20% larger than surrounding text */
    
    /* This nudges the text down slightly without breaking the line */
    position: relative;
    top: 0.15em; /* Adjust this value for fine-tuning */
}

/* Media query to set a max font size on very large screens */
@media (min-width: 1600px) {
    .styled-text {
        font-size: 41.6px; /* 1600px * 0.026 */
    }
}

body {
    padding-top: 3.5rem; 
}

/* Grid System */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.pi-card-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); } /* Mobile first */
@media (min-width: 640px) { /* sm breakpoint */
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pi-card-grid { grid-template-columns: 280px 1fr; } /* Special grid for PI card */
}
@media (min-width: 1024px) { /* lg breakpoint */
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/*
===================================================================
 == NEW CUSTOM FOOTER STYLES (Final Version - No External Links) ==
===================================================================
*/

.custom-footer {
    /* --- Background and Main Font --- */
    background-color: #5d4037; /* A rich, deep brown */
    color: rgba(255, 255, 255, 0.8); /* Slightly transparent white for text */
    padding: 4rem 0 2rem 0;
    font-family: "Microsoft YaHei", Times, serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Headings --- */
.footer-heading {
    /* Use a font that is already available in your project */
    font-family: 'Comic Sans MS', cursive, sans-serif; 
    color: #FFFFFF;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* --- Paragraph Text --- */
.footer-text, .footer-contact-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

/* --- Link Lists --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 5px; /* Creates a subtle indent on hover */
}

/* --- Social Media Icons --- */
.social-icons .social-icon-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 0.75rem;
    padding: 8px; /* Padding to control icon size inside the circle */
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-icons .social-icon-link:hover {
    background-color: #43cf7c; /* Your project's green color */
    transform: translateY(-3px); /* Lifts the icon on hover */
}
.social-icons .social-icon-svg {
    width: 100%;
    height: 100%;
    /* 
      This is the key to changing SVG color with CSS. 
      It only works on simple, single-color SVGs. 
    */
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* --- Divider Line --- */
.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0;
}

/* --- License Text --- */
.footer-license-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.25rem 0;
}
.footer-license-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}
.footer-license-text a:hover {
    color: #FFFFFF;
}
/*
===================================================================
 == ADDITIONS FOR SPONSOR LOGOS IN FOOTER ==
===================================================================
*/

/* --- Sponsor Logo List --- */
.footer-sponsors {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-sponsors li {
    margin-bottom: 1.5rem; /* More space between logos */
    text-align: left; /* Center the logos within their list item */
}
.footer-sponsors a {
    display: inline-block; /* Allows transforms and better spacing */
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.footer-sponsors a:hover {
    transform: scale(1.05); /* Slightly enlarge logo on hover */
    opacity: 0.9;
}
.footer-sponsors img {
    max-height: 45px; /* Control the max height of the logos */
    max-width: 100%;  /* Ensure logos don't overflow the column */
    height: auto;
    width: auto;
    /* This filter makes any non-white logo appear white */
    filter: brightness(0) invert(1);
}

/* --- Special Style for Text-based Sponsor Links --- */
.sponsor-text-link a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 9999px; /* Pill shape */
    background-color: rgba(255, 255, 255, 0.1);
}
.sponsor-text-link a:hover {
    background-color: #43cf7c;
    border-color: #43cf7c;
    color: #FFFFFF;
    transform: scale(1.05);
    opacity: 1;
}
/*
================================================================
 == STYLES FOR PARTS PAGE (SCOPED & CONFLICT-FREE) ==
 These styles will ONLY apply to the parts.html page.
================================================================
*/

/* --- Smooth Scrolling ONLY for the Parts page --- */
/* By targeting the unique ID, this will not affect other pages. */
#parts-page-content {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Adjust this value to offset for your fixed navbar */
}

/* --- Styles for the Interactive Image Map --- */
/* These rules only apply to elements inside #parts-page-content */
#parts-page-content .interactive-map-container {
  aspect-ratio: 1014 / 500;
}

#parts-page-content .interactive-map-link {
  opacity: 0;
  transition: background-color 0.3s ease;
}

#parts-page-content .interactive-map-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

/* --- Styles for PDF Viewers --- */
/* These rules also only apply to elements inside #parts-page-content */
#parts-page-content .pdf-viewer-container {
  width: 90%;
  margin: 0 auto;
  border: 10px solid #ccc;
  border-radius: 0.5rem;
  overflow: hidden;
}

#parts-page-content .pdf-iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
}

/*
================================================================
 STYLES FOR MEDAL FULFILLMENT PAGE (New Additions Only)
================================================================
*/

/* --- Medal Section Heading --- */
.medal-heading {
  display: flex;
  align-items: center;
  gap: 1rem; /* Space between icon and text */
  margin-bottom: 2.5rem;
  border-bottom: 2px solid #e5e7eb; /* Light gray border */
  padding-bottom: 1rem;
}

.medal-heading h2 {
  margin: 0;
  font-family: 'Fredoka One', 'Comic Sans MS', cursive;
  color: #1f2937; /* Dark gray */
}

.medal-icon {
  width: 50px;
  height: 50px;
}

/* --- Grid for Criteria Cards --- */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 1024px) { /* lg breakpoint */
  /* 2 columns on large screens */
  .criteria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Individual Criterion Card --- */
.criterion-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb; /* Light border */
  border-radius: 0.75rem; /* rounded-xl */
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; /* Use flexbox for better internal alignment */
  flex-direction: column;
}

.criterion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.criterion-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  color: #111827; /* Darker gray for title */
  margin-top: 0;
  margin-bottom: 1rem;
}

.criterion-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563; /* text-gray-600 */
  flex-grow: 1; /* This makes the text take up available space, pushing the button to the bottom */
}

/* --- "Learn More" Button --- */
.criterion-button {
  display: inline-block;
  background-color: #43cf7c; /* Your project's green */
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px; /* rounded-full */
  margin-top: 1.5rem; /* Space above the button */
  align-self: flex-start; /* Align button to the left */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.criterion-button:hover {
  background-color: #36a563; /* Darker green on hover */
  color: #ffffff;
  transform: scale(1.05);
}

/*
================================================================
 STYLES FOR PROJECT BACKGROUND PAGE (New Additions Only)
================================================================
*/

/* --- Section Title Image Styling --- */
/* This creates a styled container for your heading images */
.section-title-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 6rem; /* h-24 */
  border-radius: 0.5rem; /* rounded-lg */
  overflow: hidden;
  margin-bottom: 1.5rem; /* mb-6 */
}
.section-title-image {
  height: 100%;
  object-fit: contain;
}

/* --- Improved Typography for Readability --- */
/* This adds vertical space between paragraphs within a text block */
.text-justify.space-y-6 > p:not(:first-child) {
    margin-top: 1.5rem;
}

/* --- Figure and Caption Styling --- */
/* This ensures images and their captions are neatly grouped and centered */
figure {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
figure .text-sm {
    max-width: 80%; /* Prevents long captions from being too wide */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* --- Sizing for a specific taller title image --- */
.h-48 {
  height: 12rem; /* 192px */
}

/* 
  Reminder: Most classes on this page (like max-w-7xl, text-lg, border-t, 
  h-80, h-96, etc.) are already defined in the comprehensive CSS block from 
  our previous work. This new block only adds what's needed for better
  structure and readability on this specific page.
*/

/*
 * ===================================================================
 *  STYLES FOR MODEL PAGE (model_page_final.css)
 *  Final Version - No External Dependencies
 * ===================================================================
 */

/* --- 1. GENERAL PAGE WRAPPER & FONT STYLES --- */

/* --- 1. 新增的、用于全宽背景的“包裹层” --- */
.model-page-full-background-wrapper {
    background-color: #FFFBEB; /* A warm, creamy background */
    width: 100%;
    padding: 4rem 0; /* 在垂直方向上应用内边距 */
}

.model-page-container {
    /* Main font for body text, using a widely available and elegant serif font */
    font-family: Georgia, serif;
    background-color: #FFFBEB; /* A warm, creamy background */
    color: #4A4A4A;

    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box; /* 确保 padding 不会导致出现横向滚动条 */
}

/* --- 2. HEADER --- */
.model-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    border-bottom: 2px solid #D4CFC3;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}
.model-header img {
    height: 80px;
}
.model-header h1 {
    /* Using a fallback font stack that mimics the desired playful style */
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    color: #8B4513; /* SaddleBrown */
    margin: 0;
    line-height: 1;
}
.header-divider {
    width: 2px;
    height: 80px;
    background-color: #D4CFC3;
}

/* --- 3. INTRO & SUMMARY SECTIONS --- */

.model-intro {
    max-width: 75%; /* Increased width */
    margin: 0 auto 4rem auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}
.model-intro strong {
    color: #8B4513;
}

.section-title {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: clamp(2.5rem, 7vw, 4rem);
    text-align: center;
    color: #A0522D; /* Sienna */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    margin: 4rem 0 2rem 0;
}

.model-section-summary {
    max-width: 900px; /* Increased width */
    margin: 0 auto 3rem auto;
    background-color: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #EAEAEA;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.model-section-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.model-section-summary h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.25rem 0;
}
.model-section-summary .based-on {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.model-section-summary h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.model-section-summary p {
    margin: 0.5rem 0 0 0;
    line-height: 1.7;
}
.model-section-summary strong {
    color: #228B22; /* ForestGreen */
}

/* --- 4. NAVIGATION & DETAILS --- */

.page-nav-box {
    max-width: 450px;
    margin: 4rem auto;
    padding: 1.5rem;
    border: 2px dashed #D4CFC3;
    border-radius: 8px;
    text-align: center;
}
.page-nav-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-nav-box li {
    margin: 0.5rem 0;
}
.page-nav-box a {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s;
}
.page-nav-box a:hover {
    color: #A0522D;
    text-decoration: underline;
}
    
.model-details {
  max-width: 75%; /* Increased width */
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.9;
}
.model-details p {
  margin-bottom: 1.5rem;
}
.inline-img1 {
  display: inline-block;
  height: 1.0em; /* Scaled with font size */
  vertical-align: -0.35em;
  margin: 0 0.2rem;
}
.inline-img {
  display: inline-block;
  height: 1.5em; /* Scaled with font size */
  vertical-align: -0.35em;
  margin: 0 0.2rem;
}
.formula-figure {
  margin: 2.5rem 0;
  text-align: center;
}
.formula-figure img {
  max-width: 25%;
  height: auto;
  border-radius: 8px;
}
.content-figure{
  margin: 2.5rem 0;
  text-align: center;
}
.content-figure img{
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.content-figure figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #777;
}

.formula-figure2 {
  margin: 2.5rem 0;
  text-align: center;
}
.formula-figure2 img {
  max-width: 15%;
  height: auto;
  border-radius: 8px;
}

.section-divider {
  border: 0;
  border-top: 1px solid #EAEAEA;
  margin: 4rem auto;
  width: 80%;
}

/* --- 5. SCROLL REVEAL ANIMATION --- */

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*
================================================================
 STYLES FOR INTERACTIVE EMOTIONAL BAROMETER LINKS
================================================================
*/

/* --- Base style for the link wrapper --- */
.emotional-link {
    text-decoration: none; /* Removes the default blue underline from links */
    display: inline-block; /* Allows transforms and other block-level properties */
    transition: transform 0.3s ease, text-shadow 0.3s ease; /* Smooth transition for the animation */
}

/* --- Hover Animation --- */
.emotional-link:hover {
    transform: translateX(10px); /* Moves the title 10px to the right */
}

/* --- Optional: Add a subtle glow effect on hover --- */
/* This adds a shadow that matches the color of the text */
.emotional-link:hover .text-red-title {
    text-shadow: 0 0 8px rgba(212, 48, 48, 0.7);
}
.emotional-link:hover .text-yellow-title {
    text-shadow: 0 0 8px rgba(255, 195, 0, 0.7);
}
.emotional-link:hover .text-green-title-alt {
    text-shadow: 0 0 8px rgba(64, 194, 116, 0.7);
}
.emotional-link:hover .text-blue-title {
    text-shadow: 0 0 8px rgba(42, 130, 228, 0.7);
}

/* --- Base style for the zone links --- */
.zone-link {
    /* Color and Font Styling */
    color: #8D5524; /* A rich, warm brown color */
    font-weight: bold; /* Ensures the text is bold */
    text-decoration: none; /* Removes the default underline */
    
    /* Visual Enhancement */
    border-bottom: 2px dotted #8D5524; /* A dotted underline to suggest clickability */
    padding-bottom: 2px; /* Small space between text and underline */
    
    /* Animation Preparation */
    transition: color 0.3s ease, background-color 0.3s ease, border-bottom-color 0.3s ease;
}

/* --- Hover Animation --- */
.zone-link:hover {
    color: #FFFFFF; /* Text becomes white on hover */
    background-color: #8D5524; /* Background becomes brown */
    border-bottom-color: #FFFFFF; /* Underline becomes white */
    
    /* Optional: a subtle pop effect */
    transform: translateY(-2px); 
    display: inline-block; /* Required for transform to work */
}


/* --- 1. The container for the video --- */
.video-container {
    /* Centering the container itself if it's not full-width */
    margin: 2rem auto; /* Adds space above/below and centers horizontally */
    max-width: 840px;  /* Matches your video's original width */
    width: 100%;       /* Makes it responsive */

    /* --- Custom Brown Border --- */
    border: 8px solid #5d4037; /* The same rich brown from your footer */
    border-radius: 0.75rem;     /* Rounded corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* A nice shadow for depth */
    
    /* This is important to hide the iframe corners behind the rounded border */
    overflow: hidden; 
}

/* --- 2. The iframe itself --- */
.video-iframe {
    /* --- Responsive Aspect Ratio --- */
    display: block; /* Removes any default bottom spacing */
    width: 100%;
    aspect-ratio: 16 / 9; /* This is the key for responsiveness. 840 / 472.5 is a 16:9 ratio. */
    
    /* Removing default iframe border */
    border: none;
}

/* --- Education Sidebar Styles --- */
.education-sidebar {
    position: fixed !important;
    top: 56px !important; /* 考虑到导航栏的高度 */
    left: 0 !important;
    width: 280px !important;
    height: calc(100vh - 56px) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.08) !important;
    z-index: 998 !important; /* 确保在导航栏下方但在内容上方 */
    overflow-y: auto !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    padding: 24px 20px !important;
    backdrop-filter: blur(14px);
}

.education-sidebar::-webkit-scrollbar {
    width: 6px;
}

.education-sidebar::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.14);
    border-radius: 9999px;
}

.sidebar-content {
    padding: 0 !important;
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #9a670a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border: none;
    padding: 0;
}

.education-sidebar .toc-list,
.education-sidebar .toc-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.education-sidebar .toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.education-sidebar .toc-item {
    border-left: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.education-sidebar .toc-item.is-active {
    border-left-color: rgba(249, 115, 22, 0.5);
}

.education-sidebar .toc-link {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    text-decoration: none;
    color: #374151;
    padding: 0.65rem 0.75rem;
    border-radius: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.education-sidebar .toc-link:hover {
    background: rgba(249, 115, 22, 0.12);
    color: #b45309;
    transform: translateX(2px);
}

.education-sidebar .toc-index {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #b45309;
    background: rgba(249, 115, 22, 0.16);
    transition: background 0.2s ease, color 0.2s ease;
}

.education-sidebar .toc-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.education-sidebar .toc-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: inherit;
}

.education-sidebar .toc-desc {
    font-size: 0.74rem;
    color: #6b7280;
    line-height: 1.4;
}

.education-sidebar .toc-item.is-active > .toc-link,
.education-sidebar .toc-link.active {
    background: rgba(249, 115, 22, 0.18);
    color: #b45309;
}

.education-sidebar .toc-item.is-active > .toc-link .toc-index,
.education-sidebar .toc-link.active .toc-index {
    background: #f97316;
    color: #ffffff;
}

.education-sidebar .toc-sublist {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.55rem 0 0 2.8rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(249, 115, 22, 0.24);
}

.education-sidebar .toc-subitem .toc-link {
    padding: 0.5rem 0.6rem;
    border-radius: 0.75rem;
}

.education-sidebar .toc-subitem .toc-index {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.78rem;
}

.education-sidebar .toc-subitem .toc-desc {
    font-size: 0.68rem;
}

.education-sidebar .toc-subitem.is-active > .toc-link {
    background: rgba(249, 115, 22, 0.24);
    color: #b45309;
}

.education-sidebar .toc-subitem.is-active > .toc-link .toc-index {
    background: #ea580c;
    color: #ffffff;
}

/* 为主内容添加左边距，避免被侧边栏遮挡 */
body.education-layout {
    margin-left: 280px !important;
    transition: margin-left 0.3s ease;
    max-width: calc(100vw - 280px) !important; /* 确保内容不超出屏幕 */
    box-sizing: border-box;
}

/* 确保主要内容容器不超出屏幕 */
body.education-layout main {
    max-width: 100%;
    overflow-x: hidden;
}

/* 确保所有主要内容区域都正确偏移 */
body.education-layout > div,
body.education-layout > section,
body.education-layout > main {
    margin-left: 0 !important; /* 重置子元素的margin，因为父元素已经偏移 */
}

/* 特别处理Tailwind的max-w类 */
body.education-layout .max-w-7xl {
    max-width: calc(100rem - 280px) !important;
}

body.education-layout .mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 移动端切换按钮样式 */
.sidebar-toggle {
    position: fixed;
    top: 70px;
    left: 16px;
    z-index: 999;
    background: #b45309;
    color: #ffffff;
    border: none;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
    display: none;
}

.sidebar-toggle:hover,
.sidebar-toggle.active {
    background: #9a3412;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .education-sidebar {
        transform: translateX(-100%) !important;
        width: 280px !important;
        z-index: 1000 !important; /* 在移动端提高层级 */
    }
    
    .education-sidebar.show {
        transform: translateX(0) !important;
    }
    
    body.education-layout {
        margin-left: 0 !important;
        max-width: 100vw !important;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    /* 添加遮罩层 */
    .education-sidebar.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.15);
        z-index: -1;
    }
}

@media (min-width: 769px) {
    .sidebar-toggle {
        display: none;
    }
    
    .education-sidebar {
        transform: translateX(0) !important;
    }
}
