/* ==========================================================
 * Society 5.0 & Open STEM Knowledge Sharing Platform Styles
 * Modern, Human-Centric & Interactive Educational Design
 * ========================================================== */

:root {
  --s5-primary: #0284c7;
  --s5-primary-hover: #0369a1;
  --s5-accent-orange: #f26522;
  --s5-accent-orange-hover: #e05313;
  --s5-dark: #0f172a;
  --s5-text: #334155;
  --s5-text-muted: #64748b;
  --s5-border: #e2e8f0;
  --s5-bg-subtle: #f8fafc;
  --s5-card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --s5-card-hover-shadow: 0 20px 30px -10px rgba(2, 132, 199, 0.15), 0 10px 15px -3px rgba(15, 23, 42, 0.08);
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--s5-text);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--s5-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ----------------------------------------------------------
 * Top Navigation Bar
 * ---------------------------------------------------------- */
.s5-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--s5-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.s5-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.s5-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.s5-brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  margin: 0;
}

.s5-brand-sublink {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--s5-text-muted);
  text-decoration: none;
  padding-left: 12px;
  border-left: 2px solid #cbd5e1;
  transition: color 0.2s ease;
}

.s5-brand-sublink:hover {
  color: var(--s5-primary);
}

.s5-nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  padding: 0.5rem 0.9rem !important;
  transition: all 0.2s ease;
}

.s5-nav-link:hover, .s5-nav-link.active {
  color: var(--s5-primary) !important;
}

.btn-s5-orange {
  background-color: var(--s5-accent-orange);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(242, 101, 34, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-s5-orange:hover {
  background-color: var(--s5-accent-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(242, 101, 34, 0.35);
}

.btn-s5-blue {
  background-color: var(--s5-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-s5-blue:hover {
  background-color: var(--s5-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.32);
}

.btn-s5-outline {
  background-color: transparent;
  color: var(--s5-primary) !important;
  border: 1.5px solid var(--s5-primary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-s5-outline:hover {
  background-color: var(--s5-primary);
  color: #ffffff !important;
}

/* ----------------------------------------------------------
 * Hero Section
 * ---------------------------------------------------------- */
.s5-hero-section {
  padding: 3.5rem 0 3rem;
  background: #ffffff;
}

.s5-hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.22;
  color: #0f172a;
  margin-bottom: 1.35rem;
  letter-spacing: -0.025em;
}

.s5-hero-statement {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.15rem;
  line-height: 1.55;
}

.s5-hero-intro {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.s5-hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #f1f5f9;
}

.s5-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.s5-hero-image-wrap:hover .s5-hero-img {
  transform: scale(1.02);
}

/* ----------------------------------------------------------
 * Specialized Knowledge Hubs Section (Image 1 replica)
 * ---------------------------------------------------------- */
.s5-hubs-section {
  padding: 2.5rem 0 4rem;
  background-color: #ffffff;
}

.s5-section-heading {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.8rem;
  letter-spacing: -0.02em;
}

.s5-hub-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: var(--s5-card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.s5-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--s5-card-hover-shadow);
  border-color: #bae6fd;
}

.s5-hub-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.s5-hub-card-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  min-height: 2.7rem;
}

.s5-hub-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.s5-hub-card-img {
  height: 64px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.s5-hub-card:hover .s5-hub-card-img {
  transform: scale(1.06);
}

.s5-badge-sub {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-celik {
  background: #fef3c7;
  color: #b45309;
}

.badge-openstem {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-community {
  background: #f0fdf4;
  color: #15803d;
}

/* ----------------------------------------------------------
 * Vision / Society 5.0 Features Section
 * ---------------------------------------------------------- */
.s5-vision-section {
  padding: 4.5rem 0;
  background-color: var(--s5-bg-subtle);
  border-top: 1px solid var(--s5-border);
  border-bottom: 1px solid var(--s5-border);
}

.s5-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s5-feature-box {
  background: #ffffff;
  padding: 2rem 1.6rem;
  border-radius: 16px;
  border: 1px solid var(--s5-border);
  height: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: transform 0.25s ease;
}

.s5-feature-box:hover {
  transform: translateY(-3px);
}

.s5-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ----------------------------------------------------------
 * Open STEM Specific Styles (Image 2 replica)
 * ---------------------------------------------------------- */
.openstem-brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.openstem-hero-headline {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.22;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.openstem-cta-section {
  background: #eaf4fe;
  padding: 3.5rem 0 4.5rem;
  border-top: 1px solid #dbeafe;
}

.openstem-cta-heading {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2.2rem;
  letter-spacing: -0.015em;
}

.openstem-action-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem 1.75rem;
  border: 1px solid #dbeafe;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.08);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.openstem-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px -8px rgba(2, 132, 199, 0.16);
  border-color: #93c5fd;
}

.openstem-action-card .card-content {
  flex: 1;
}

.openstem-action-card .card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.openstem-action-card .card-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.35rem;
}

.openstem-action-card .card-illustration {
  width: 140px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.openstem-action-card:hover .card-illustration {
  transform: scale(1.05);
}

/* ----------------------------------------------------------
 * Footer Styles
 * ---------------------------------------------------------- */
.s5-footer {
  background: #0b1329;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}

.s5-footer h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.s5-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.s5-footer-links li {
  margin-bottom: 0.65rem;
}

.s5-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.s5-footer-links a:hover {
  color: #38bdf8;
}

.s5-footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* ----------------------------------------------------------
 * Responsive Adjustments
 * ---------------------------------------------------------- */
@media (max-width: 991.98px) {
  .s5-hero-title, .openstem-hero-headline {
    font-size: 1.95rem;
  }
  .openstem-action-card {
    flex-direction: column-reverse;
    text-align: left;
    align-items: flex-start;
  }
  .openstem-action-card .card-illustration {
    align-self: center;
    margin-bottom: 1rem;
    max-height: 110px;
  }
}

@media (max-width: 575.98px) {
  .s5-hero-title, .openstem-hero-headline {
    font-size: 1.65rem;
  }
  .s5-hub-card-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .s5-hub-card-img {
    margin-top: 12px;
    align-self: flex-end;
  }
}

