/* ===================================
   AI1001 Project Website - Main Styles
   =================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette - warm educational tones */
  --color-primary: #1a5276;
  --color-primary-light: #2980b9;
  --color-primary-dark: #0e3a55;
  --color-accent: #e67e22;
  --color-accent-light: #f39c12;
  --color-accent-dark: #d35400;

  /* Soft pastels for backgrounds */
  --color-bg-main: #f8f9fc;
  --color-bg-hero: linear-gradient(135deg, #e8f0fe 0%, #fdf2e9 50%, #e8f8f5 100%);
  --color-bg-section-alt: #f0f4f8;
  --color-bg-card: #ffffff;
  --color-bg-footer: #1a2332;

  /* Text colors */
  --color-text: #2c3e50;
  --color-text-light: #5d6d7e;
  --color-text-inverse: #ecf0f1;
  --color-text-muted: #95a5a6;

  /* Borders & shadows */
  --color-border: #dfe6e9;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-card: 0 4px 16px rgba(26,82,118,0.08);

  /* Typography */
  --font-heading: 'Outfit', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-max: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 8px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary-dark);
}

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

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

ul, ol {
  list-style: none;
}

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

/* ---------- Utility ---------- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,82,118,0.3);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,126,34,0.3);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-bg-section-alt);
  border-radius: 50px;
  padding: 4px;
  margin-left: 8px;
}

.lang-switch button {
  padding: 6px 14px;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--color-text-light);
  transition: var(--transition);
}

.lang-switch button.active {
  background: var(--color-primary);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 72px;
}

.hero-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* --- Slide Type: Project (gradient bg) --- */
.hero-slide.slide-project {
  background: var(--color-bg-hero);
}

.hero-slide.slide-project::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230,126,34,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-slide.slide-project::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41,128,185,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-slide.slide-project .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,82,118,0.08);
  color: var(--color-primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-slide h1 {
  font-size: 2.8rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-slide h1 span {
  color: var(--color-accent);
}

.hero-description {
  font-size: 1.08rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  max-width: 480px;
  position: relative;
}

.hero-illustration img {
  width: 100%;
  border-radius: var(--border-radius);
}

/* Floating elements on hero */
.floating-element {
  position: absolute;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.floating-element.fe-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.floating-element.fe-2 {
  bottom: 20%;
  left: -20px;
  animation-delay: 2s;
}

.floating-element .fe-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-element .fe-icon.ai {
  background: rgba(230,126,34,0.12);
}

.floating-element .fe-icon.mooc {
  background: rgba(41,128,185,0.12);
}

/* --- Slide Type: Announcement (image bg) --- */
.hero-slide.slide-announcement {
  background: #0e1a2b;
}

.slide-announcement-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide-announcement-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.slide-announcement-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px 140px;
}

.slide-announcement-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,126,34,0.9);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.slide-announcement-content h2 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.slide-announcement-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.slide-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 500;
}

.slide-detail-item .detail-icon {
  font-size: 1.2rem;
}

.slide-announcement-image {
  max-width: 700px;
  margin: 0 auto 28px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.slide-announcement-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Slider Controls --- */
.slider-nav {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.2);
}

.slide-project ~ .slider-nav .slider-dot {
  background: rgba(26,82,118,0.2);
  border-color: rgba(26,82,118,0.4);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev {
  left: 24px;
}

.slider-arrow.next {
  right: 24px;
}

/* Slider progress bar */
.slider-progress {
  position: absolute;
  bottom: 56px;
  left: 0;
  height: 4px;
  background: var(--color-accent);
  z-index: 20;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 32px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 16px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.stat-item:hover {
  background: var(--color-bg-section-alt);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-number .stat-suffix {
  font-size: 1.4rem;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ---------- About / Project Info ---------- */
.about-section {
  padding: var(--section-padding);
  background: var(--color-bg-main);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h3 {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--color-bg-section-alt);
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-text);
  transition: var(--transition);
}

.about-feature-item:hover {
  transform: translateX(4px);
  background: rgba(26,82,118,0.06);
}

.about-feature-item .feature-check {
  width: 28px;
  height: 28px;
  background: rgba(230,126,34,0.12);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image-decorator {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--color-accent);
  opacity: 0.1;
  border-radius: var(--border-radius);
  z-index: -1;
}

/* ---------- Timeline Section ---------- */
.timeline-section {
  padding: var(--section-padding);
  background: var(--color-bg-section-alt);
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary-light), var(--color-accent));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.timeline-left {
  flex: 1;
  padding-right: 48px;
  text-align: right;
}

.timeline-right {
  flex: 1;
  padding-left: 48px;
  text-align: left;
}

.timeline-placeholder {
  flex: 1;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 4px solid var(--color-bg-section-alt);
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--color-accent);
  transform: translateX(-50%) scale(1.3);
}

.timeline-item.completed .timeline-dot {
  background: #27ae60;
}

.timeline-item.active .timeline-dot {
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(230,126,34,0.2);
  animation: pulse 2s infinite;
}

.timeline-card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-wp-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-item.completed .timeline-wp-number {
  background: #27ae60;
}

.timeline-item.active .timeline-wp-number {
  background: var(--color-accent);
}

.timeline-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

.timeline-card .timeline-period {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.timeline-card .timeline-status {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-completed {
  background: rgba(39,174,96,0.1);
  color: #27ae60;
}

.status-active {
  background: rgba(230,126,34,0.1);
  color: var(--color-accent);
}

.status-upcoming {
  background: rgba(149,165,166,0.12);
  color: var(--color-text-muted);
}

/* ---------- Team Section ---------- */
.team-section {
  padding: var(--section-padding);
  background: var(--color-bg-main);
}

/* Team Carousel Wrapper */
.team-carousel-wrapper {
  position: relative;
  padding: 0 56px;
}

.team-carousel {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.team-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.team-card {
  flex: 0 0 33.333333%;
  padding: 0 10px;
  box-sizing: border-box;
}

.team-card > .team-card-image,
.team-card > .team-card-info {
  background: var(--color-bg-card);
}

.team-card-inner {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  text-align: center;
  background: var(--color-bg-card);
}

/* Wrap card children in an inner visual block */
.team-card {
  text-align: center;
}

.team-card-image {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: var(--border-radius);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
}

.team-card-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.team-card:hover .team-card-image img {
  transform: scale(1.03);
}

/* Hide card-info since images already contain name/role/university */
.team-card-info {
  display: none;
}

.team-card-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--color-primary-dark);
}

.team-card-info .team-role {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card-info .team-affiliation {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Team Carousel Arrows */
.team-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid rgba(26,82,118,0.12);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.team-arrow:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.team-arrow-prev {
  left: 0;
}

.team-arrow-next {
  right: 0;
}

/* Team Carousel Dots */
.team-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.team-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(26,82,118,0.15);
  border: 2px solid rgba(26,82,118,0.3);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.team-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.25);
}

/* ---------- Announcements Section ---------- */
.announcements-section {
  padding: var(--section-padding);
  background: var(--color-bg-section-alt);
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.announcement-card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.announcement-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.announcement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.announcement-card:hover .announcement-image img {
  transform: scale(1.05);
}

.announcement-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.announcement-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
}

.tag-workshop {
  background: rgba(41,128,185,0.1);
  color: var(--color-primary-light);
}

.tag-scholarship {
  background: rgba(39,174,96,0.1);
  color: #27ae60;
}

.tag-event {
  background: rgba(230,126,34,0.1);
  color: var(--color-accent);
}

.tag-general {
  background: rgba(149,165,166,0.12);
  color: var(--color-text-light);
}

.announcement-body h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.announcement-body p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
  flex: 1;
}

.announcement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.announcement-date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.announcement-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.announcement-link:hover {
  color: var(--color-accent);
}

/* ---------- Activities Section ---------- */
.activities-section {
  padding: var(--section-padding);
  background: var(--color-bg-main);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.activity-card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.activity-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.activity-card:hover .activity-image img {
  transform: scale(1.05);
}

.activity-image .activity-date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.activity-body {
  padding: 24px;
}

.activity-body h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.activity-body p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-footer);
  color: var(--color-text-inverse);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.footer-about p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links ul a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

.footer-funding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-funding img {
  height: 36px;
  opacity: 0.7;
}

.footer-funding span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page Header (for inner pages) ---------- */
.page-header {
  background: var(--color-bg-hero);
  padding: 140px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-slide.slide-project .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
    margin-bottom: 20px;
  }

  .hero-illustration {
    max-width: 350px;
  }

  .hero-description {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-slide h1 {
    font-size: 2.2rem;
  }

  .slide-announcement-content h2 {
    font-size: 1.8rem;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-slide h1 {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .slide-announcement-content h2 {
    font-size: 1.4rem;
  }

  .slide-announcement-details {
    gap: 12px;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .slider-arrow.prev {
    left: 12px;
  }

  .slider-arrow.next {
    right: 12px;
  }

  .floating-element {
    display: none;
  }

  .timeline-container::before {
    left: 24px;
  }

  .timeline-item {
    flex-direction: column;
    padding-left: 54px;
  }

  .timeline-dot {
    left: 24px;
    transform: translateX(-50%);
    top: 8px;
  }

  .timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
  }

  .timeline-left,
  .timeline-right {
    text-align: left;
    padding: 0;
  }

  .timeline-placeholder {
    display: none;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

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

  .team-card {
    flex: 0 0 50%;
    padding: 0 8px;
  }

  .team-carousel-wrapper {
    padding: 0 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-slide h1 {
    font-size: 1.5rem;
  }

  .slide-announcement-content h2 {
    font-size: 1.2rem;
  }

  /* Slider butonlarını yukarı itmek için alt boşluğu artır */
  .hero-slide {
    padding-bottom: 120px !important;
  }

  .slide-announcement-card {
    padding-bottom: 100px !important;
  }

  .slide-detail-item {
    font-size: 0.85rem;
  }

  .slider-arrow {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex: 0 0 100%;
    padding: 0;
  }

  .team-carousel-wrapper {
    padding: 0 20px; /* Kenar boşluğunu azalt */
  }

  .team-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    opacity: 0.8;
  }

  .team-arrow-prev { left: -5px; }
  .team-arrow-next { right: -5px; }

  .btn {
    padding: 10px 22px;
    font-size: 0.88rem;
  }
}
