/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
  /* Colors */
  --primary-color: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #f8bbd0;
  --secondary-color: #5c6bc0;
  --accent-color: #ff6b35;
  --dark-bg: #2c3e50;
  --darker-bg: #1a252f;
  --light-bg: #f5f7fa;
  --lighter-bg: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --text-muted: #7f8c8d;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  /* Typography */
  --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3.5rem;
  /* Increased for Hero */

  /* Layout */
  --container-width: 1200px;
  --header-height: 70px;
  /* Header height */
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ========================================
   Fixed Header Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  /* Slight transparency */
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* 로고를 좌측 끝에 정렬 */
  height: 36px;
  /* 10% reduced from 40px */
  margin-right: auto;
  /* 명시적 좌측 정렬 */
  padding: 0;
  /* 패딩 제거 */
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: left center;
  /* 이미지 내부 여백이 있을 경우 좌측 정렬 */
}

nav {
  margin-left: auto;
  /* 명시적 우측 정렬 */
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  font-weight: 600;
  color: #333;
  padding: 8px 8px;
  border-radius: 20px;
  transition: var(--transition);
  font-size: 1rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
  background: rgba(233, 30, 99, 0.05);
}

/* Dropdown Menu Styles */
.nav-menu>li {
  position: relative;
}

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.has-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: rgba(233, 30, 99, 0.08);
  color: var(--primary-color);
  padding-left: 24px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  cursor: pointer;
  color: var(--text-dark);
}

/* ========================================
   Hero Sections with Video
   ======================================== */
.hero {
  position: relative;
  height: 600px;
  /* Reverted to fixed height for wide aspect ratio */
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  margin-top: var(--header-height);
  overflow: hidden;
  background-color: #000;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* YouTube Iframe Styling for Background Cover */
.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
  .video-background iframe {
    height: 56.25vw;
  }
}

@media (max-aspect-ratio: 16/9) {
  .video-background iframe {
    width: 177.78vh;
  }
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  /* Lighter overlay */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 100%;
  padding: var(--spacing-md);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 45px);
  /* Default hero text for other pages: 30px mobile to 45px desktop */
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Special styling for video hero (index.html only) */
.video-hero h1 {
  font-size: clamp(36px, 8vw, 110px);
  /* Larger for video background: 36px mobile to 110px desktop */
  font-weight: 700;
  opacity: 0.6;
  /* 60% opacity for video overlay effect */
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
}

/* Visibility Utilities */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .hero {
    height: 500px;
  }
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: var(--spacing-xxl) var(--spacing-md);
}

.section-light {
  background: var(--lighter-bg);
}

.section-dark {
  background: var(--light-bg);
}

.section-parallax {
  position: relative;
  padding: var(--spacing-xxl) var(--spacing-md);
  color: var(--text-light);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-parallax .parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  background-repeat: no-repeat;
  z-index: -1;
}

.section-parallax .parallax-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

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

.section-parallax .section-title {
  color: var(--text-light);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  text-align: center;
  color: var(--text-muted);
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle.text-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: var(--spacing-lg);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background: var(--lighter-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper {
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ========================================
   Project Cards Grid
   ======================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.project-card {
  background: var(--lighter-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.project-content {
  padding: var(--spacing-md);
}

.project-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.project-description {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* ========================================
   Process Flow
   ======================================== */
.process-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.process-step {
  flex: 1;
  min-width: 150px;
  text-align: center;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -30px;
  top: 30px;
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
}

.process-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.process-title {
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

.process-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ========================================
   Team Grid
   ======================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.team-member {
  text-align: center;
  background: var(--lighter-bg);
  border-radius: var(--border-radius);
  transition: var(--transition);
  overflow: hidden;
  padding: 0;
}

.team-member:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* About Page Team Member Styles */
.about-team-member {
  text-align: center;
  background: var(--lighter-bg);
  border-radius: 12px;
  /* Rounded rectangle */
  transition: var(--transition);
  overflow: hidden;
  padding: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.about-team-member:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.about-team-member .team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  /* Ensure image fills the card */
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: var(--font-size-base);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(233, 30, 99, 0.3);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: #4a5ab8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(92, 107, 192, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #333;
  padding: 30px 30px;
  color: #fff;
  text-align: center;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: #fff;
  text-align: left;
}

.footer-info {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 5px;
  text-align: left;
}

.footer-copyright {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-top: 10px;
  border-top: 1px solid #333;
  font-size: 0.8rem;
  color: #666;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --font-size-2xl: 1.5rem;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: 1002;
    /* Above overlay */
  }

  /* Mobile Menu Overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    /* Below menu, above header */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    /* Start off-screen right */
    left: auto;
    /* Reset left */
    width: 300px;
    height: 100vh;
    background: var(--lighter-bg);
    flex-direction: column;
    padding: 60px 20px 20px;
    /* Top padding for close button */
    transition: right 0.3s ease;
    /* Animate right property */
    gap: 0;
    /* Remove gap, use padding/border for items */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
  }

  .nav-menu.active {
    right: 0;
    left: auto;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .nav-menu li.mobile-only {
    border-bottom: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: auto;
  }

  .nav-menu a {
    display: block;
    padding: 15px 0;
    border-radius: 0;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: transparent;
    color: var(--primary-color);
  }

  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 5px;
  }

  .hero {
    height: 400px;
  }

  .hero-bg,
  .section-parallax .parallax-bg {
    background-attachment: scroll;
    /* Disable parallax on mobile */
  }

  .section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .section-parallax {
    padding: var(--spacing-lg) var(--spacing-md);
  }

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

  .process-flow {
    flex-direction: column;
  }

  .process-step:not(:last-child)::after {
    content: '↓';
    right: auto;
    bottom: -30px;
    top: auto;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

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

  .hero h1 {
    font-size: var(--font-size-2xl);
  }

  .section-title {
    font-size: var(--font-size-xl);
  }
}

/* ========================================
   Intro Section (LG U+ x GROWTH CAMP)
   ======================================== */
.intro-section {
  text-align: center;
  padding: 120px 0;
}

.intro-header {
  margin-bottom: 80px;
}

.intro-title-image {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.intro-title-image img {
  height: 60px;
  /* Increased by 20% from 50px (originally 40px + 50%) */
  width: auto;
}

.intro-subtitle {
  font-size: 1.75rem;
  /* 50% increase from 1.2rem */
  color: #000;
  line-height: 1.7;
  max-width: 95%;
  margin: 0 auto;
  font-weight: 600;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.intro-item {
  text-align: center;
  padding: 20px;
}

.intro-icon-wrapper {
  width: auto;
  height: auto;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.intro-icon {
  width: 150px;
  /* Maximize icon size */
  height: 150px;
  object-fit: contain;
}

.intro-item-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
}

.intro-item-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* ========================================
   Accelerator Section
   ======================================== */
.accelerator-section {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  color: white;
  text-align: center;
}

.accelerator-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.accelerator-content {
  position: relative;
  z-index: 2;
}

.accelerator-text {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.accelerator-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-rounded {
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: #E6007E;
  /* Magenta */
  border: none;
  box-shadow: 0 4px 15px rgba(230, 0, 126, 0.4);
}

.btn-rounded:hover {
  background-color: #c4006b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 126, 0.6);
}

/* ========================================
   Projects Grid Custom
   ======================================== */
.projects-grid-custom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Changed to 3 columns as per typical design */
  gap: 30px;
  margin-top: 50px;
}

.project-card-custom {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.3s ease;
  border: none;
  display: flex;
  flex-direction: column;
}

.project-card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-logo-area {
  height: 220px;
  /* Adjusted height */
  display: block;
  padding: 0;
  position: relative;
  background: none;
  border-radius: 16px;
  /* Rounded corners for the image */
  overflow: hidden;
}

.project-logo-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop to fill */
  filter: none;
}

.project-info {
  padding: 15px 5px 0;
  /* Padding top only */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  /* Left align text */
}

.project-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.project-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
  font-weight: 400;
}

.btn-oval {
  border-radius: 50px;
  padding: 15px 50px;
  border: 1px solid #ddd;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-oval:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ========================================
   News Section
   ======================================== */
.news-section {
  background-color: #f8f9fa;
  padding: 100px 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 180px;
  /* Taller news item */
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-thumb {
  width: 280px;
  /* Wider thumbnail */
  flex-shrink: 0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.news-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.news-date {
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
}

/* ========================================
   Footer Updates
   ======================================== */
/* Custom Grid for 4 columns */
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Capability Card Styles */
.capability-card {
  text-align: left;
  padding: 30px;
  background: var(--lighter-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.capability-number {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projects-grid-custom {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-item {
    flex-direction: column;
    height: auto;
  }

  .news-thumb {
    width: 100%;
    height: 220px;
  }

  .news-content {
    padding: 20px;
  }
}

/* ========================================
   About Page Specific Styles
   ======================================== */
/* Core Values Section */
.section-blue {
  background: #e3f2fd;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.value-card {
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-image {
  width: 100%;
  height: auto;
  display: block;
}

/* History Section */
.history-image-container {
  margin-top: var(--spacing-lg);
  width: 100%;
}

.history-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Mission Section */
.mission-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.mission-text {
  flex: 1;
}

.mission-desc {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--text-dark);
}

.mission-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lighter-bg);
  border-radius: var(--border-radius);
  transition: var(--transition);
  overflow: hidden;
  padding: 0;
  aspect-ratio: 242 / 440;
}

.partner-logo:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-gray {
  background: var(--light-bg);
}

/* Responsive adjustments for About page */
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .mission-container {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}

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

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

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 60px;
  /* Large top margin for spacing buttons from content above */
}

/* ========================================
   Program Page Specific Styles
   ======================================== */

/* Zero to One - Values Grid */
.program-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.program-value-card {
  text-align: center;
}

.program-value-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Process Section */
.program-process-container {
  margin-top: 50px;
  text-align: center;
}

.program-process-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Schedule Section */
.program-schedule-container {
  margin-top: 50px;
  text-align: center;
}

.program-schedule-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Capabilities Section */
.program-capabilities-section {
  background-attachment: fixed;
}

.program-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.program-capability-card {
  text-align: center;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.program-capability-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Support Section */
.program-support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.program-support-card {
  text-align: center;
}

.program-support-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments for program page */
@media (max-width: 768px) {
  .program-values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .program-capabilities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .program-support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .program-capabilities-section {
    background-attachment: scroll;
  }
}

/* ========================================
   Project Detail Pages
   ======================================== */

/* Project Hero Section */
.project-hero {
  position: relative;
  max-height: 810px;
  min-height: 500px;
  padding: calc(var(--header-height) + 60px) var(--spacing-md) 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-hero-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.project-hero-left {
  color: white;
}

.project-logo {
  max-height: 64px;
  width: auto;
  margin-bottom: 30px;
}

.project-title {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.4;
  color: white;
}

.project-description {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.95;
  color: #ddd;
}

.project-btn {
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.project-btn img {
  height: 50px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.project-btn:hover img {
  transform: scale(1.05);
}

.project-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.project-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero-image {
  max-width: 100%;
  height: auto;
  background: none;
}

/* Team Grid for Project Pages */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  margin-top: var(--spacing-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.team-member {
  text-align: center;
  background: transparent;
  padding: 0;
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  display: block;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.team-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Projects Grid for "Other Projects" Section */
.section-gray {
  background: #f5f5f5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: var(--spacing-lg);
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-card-image {
  height: 200px;
  /* Increased height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* Remove padding to let image fill */
  background: transparent;
  /* No background color */
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fill the area */
}

.project-card h3 {
  padding: 0 20px;
  margin: 15px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.project-card-title {
  padding: 0 20px;
  margin: 15px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.project-card p {
  padding: 0 20px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.project-card-desc {
  padding: 0 20px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

/* Responsive Design for Project Pages */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .project-hero {
    min-height: auto;
    padding: calc(var(--header-height) + 40px) 20px 40px;
  }

  .project-hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-hero-left {
    text-align: left;
  }

  .project-logo {
    max-width: 150px;
    margin-bottom: 20px;
  }

  .project-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .project-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .project-hero-image {
    max-width: 100%;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
  }

  .team-member img {
    width: 100px;
    height: 100px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-card-image {
    height: 150px;
    padding: 20px;
  }

  .project-card-image img {
    max-width: 100px;
    max-height: 80px;
  }
}

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

  .project-buttons {
    flex-direction: column;
  }

  .project-btn {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   Mobile UI Updates (Max-width: 768px)
   ======================================== */
@media (max-width: 768px) {

  /* --- General Header & Hero --- */
  .header-container {
    justify-content: center;
    /* Center logo */
    position: relative;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-menu-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .hero h1 {
    text-align: center;
    font-size: 1.75rem;
    /* Adjusted for mobile */
    word-break: keep-all;
    padding: 0 20px;
  }

  /* --- General Section Styling --- */
  .section-title,
  .section-title.text-left {
    text-align: left !important;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0;
  }

  .section-subtitle,
  .section-subtitle.text-left {
    text-align: left !important;
    font-size: 1rem;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    line-height: 1.6;
  }

  /* --- About Page --- */
  .about-hero h1 {
    /* Specific line breaks handled by HTML <br>, just ensure centering */
  }

  .mission-container {
    flex-direction: column;
  }

  .mission-text {
    text-align: left;
    margin-bottom: 2rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    /* Stack values vertically */
    gap: 1.5rem;
  }

  .value-card {
    text-align: center;
    /* Images centered inside card */
  }

  .history-image-container img {
    width: 100%;
    height: auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for team on mobile */
    gap: 15px;
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  /* --- Program Page --- */
  .program-values-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .program-value-card img {
    margin: 0 auto;
    /* Center images */
  }

  .program-process-container img,
  .program-schedule-container img {
    width: 100%;
    height: auto;
  }

  .program-capabilities-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .program-support-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 grid for support */
    gap: 15px;
  }

  /* --- Project Page --- */
  .stats-grid {
    grid-template-columns: 1fr !important;
    /* Stack stats vertically */
    gap: 1.5rem !important;
  }

  .projects-grid-custom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for projects */
    gap: 15px;
  }

  .project-card-custom {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .project-logo-area {
    width: 100%;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
  }

  .project-logo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-info {
    padding: 15px;
    text-align: left;
  }

  .project-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
  }

  .project-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
  }

  .interview-carousel-container {
    margin: 20px auto;
  }

  /* --- News Page --- */
  .news-list {
    padding: 2rem 1rem;
  }

  .news-item {
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .news-item-image {
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    min-width: auto;
  }

  .news-item-content {
    padding: 1.5rem;
  }

  .news-item-title {
    font-size: 1.2rem;
    text-align: left;
  }

  .news-item-excerpt {
    font-size: 0.95rem;
    text-align: left;
  }

  .news-item-date {
    text-align: left;
  }

  /* --- Recruit Page --- */
  .recruit-career-section {
    padding: 4rem 1.5rem;
    text-align: left;
    /* Ensure text is left aligned */
  }

  .recruit-career-section h2,
  .recruit-career-section p {
    text-align: left;
  }

  .btn-recruit-apply {
    display: block;
    width: fit-content;
    margin: 0 auto;
    /* Center button */
  }

  /* Footer Mobile */
  .footer {
    padding: 30px 20px;
    text-align: left;
  }

  .footer-title,
  .footer-info {
    text-align: left;
  }

  .footer-copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
  }
}

/* Extra small devices (phones, less than 480px) */
@media (max-width: 479px) {
  .projects-grid-custom {
    grid-template-columns: 1fr;
    /* 1 column for very small screens */
    gap: 20px;
  }
}