/* =========================================================================
   1. VARIABLES & GLOBALS
   ========================================================================= */
/* --- SCSS Color Variables --- */
/* Dark Slate */
/* Medium Slate */
/* Indigo */
/* Darker Indigo */
/* Light Gray Background */
/* Pure White */
/* Light Border */
/* --- CSS Custom Properties (Header & Scroll) --- */
:root {
  /* Set based on header padding (1rem top/bottom) + gap (1.5rem) + content height */
  --header-height: 125px;
  /* Logo size constrained by header height */
  --logo-max-height: calc(var(--header-height) * 0.8);
  --row-gap: 1.5rem; /* Explicitly defined for use in flex gap */
}

/* --- Global Resets & Typography --- */
* {
  box-sizing: border-box;
}

html {
  /* Fix for anchor links being hidden by sticky header */
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #f8fafc;
  color: #334155;
  line-height: 1.6;
}

h1, h2, h3 {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 0;
}

/* =========================================================================
   2. HEADER & NAVIGATION
   ========================================================================= */
header {
  /* Sticky Header Properties */
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 2rem; /* The padding contributing to the header-height calculation */
}

.header-main-content {
  /* Structure: Two centered vertical rows (logo/title then nav/selector) */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--row-gap);
  /* Removed redundant 'padding: 25px;' as header has padding: 1rem 2rem; */
}

.logo-title-group {
  /* Top Row: Logo and Title */
  display: flex;
  align-items: center;
  gap: 15px;
  /* Target h1 inside this group */
}
.logo-title-group .logo {
  /* Size constrained by dynamic max-height */
  max-height: var(--logo-max-height);
  max-width: var(--logo-max-height);
  width: auto;
  height: auto;
}
.logo-title-group #project-title {
  font-size: 1.8rem;
  color: #0f172a;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

.header-nav-group {
  /* Bottom Row: Navigation and Language Selector (Horizontal) */
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar {
  /* Removed padding: 10 which was likely padding: 10px and is not needed */
  padding: 0;
}
.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}
.navbar a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}
.navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #4f46e5;
  transition: width 0.3s ease;
}
.navbar a:hover {
  color: #4f46e5;
}
.navbar a:hover::after {
  width: 100%;
}

/* NOTE: The redundant .project-header block has been removed as its styling is now handled by .logo-title-group */
/* =========================================================================
   3. MAIN CONTENT SECTIONS
   ========================================================================= */
.content-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-bottom: 1px solid #e2e8f0;
}
.content-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.content-section p {
  font-size: 1.05rem;
  color: #475569;
}

.hidden {
  display: none !important;
}

/* --- SEARCH BAR --- */
.search-container {
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  max-width: 600px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* =========================================================================
   4. CARDS & CAROUSEL
   ========================================================================= */
.carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 2rem;
  scroll-behavior: smooth;
}
.carousel::-webkit-scrollbar {
  height: 8px;
}
.carousel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.news-card, .doc-card {
  flex: 0 0 300px;
  min-height: 250px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.news-card h3, .doc-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #4f46e5;
}
.news-card .card-meta, .doc-card .card-meta {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1rem;
  display: block;
}
.news-card .card-tags, .doc-card .card-tags {
  font-size: 0.75rem;
  color: #0f172a;
  background: #eef2ff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  display: inline-block;
  margin-top: 0.5rem;
}
.news-card:hover, .doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #4f46e5;
}

.doc-card {
  min-height: 200px;
  border-left: 5px solid #4f46e5;
}
.doc-card h3 {
  color: #0f172a;
}

.no-results-message {
  padding: 2rem;
  text-align: center;
  color: #ef4444;
  background: #fef2f2;
  border: 1px dashed #fecaca;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 500;
}

/* --- PARTNER CARDS --- */
.partner-card {
  flex: 0 0 220px;
  height: 140px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.partner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #4f46e5;
  opacity: 0;
  transition: opacity 0.2s;
}
.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #4f46e5;
}
.partner-card:hover::before {
  opacity: 1;
}

.partner-details {
  margin-top: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.partner-details.hidden {
  display: none;
}

/* =========================================================================
   5. AI PANEL & PROMPT
   ========================================================================= */
#ai-panel-wrapper {
  position: relative;
  width: 100%;
  margin: 3rem auto;
}

.ai-panel {
  width: 60%;
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}
.ai-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.ai-panel .disclaimer {
  font-size: 0.85rem;
  background-color: #fff1f2;
  color: #9f1239;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #fecdd3;
  margin-bottom: 1.5rem;
}
.ai-panel .checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  margin-bottom: 1rem;
}
.ai-panel .checkbox-container input {
  accent-color: #4f46e5;
  width: 1.1em;
  height: 1.1em;
}
.ai-panel.floating {
  position: fixed;
  right: 24px;
  top: calc(var(--header-height) + 4rem);
  width: 320px;
  z-index: 999;
  padding: 1.5rem;
  border-color: #4f46e5;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.ai-panel.floating h2 {
  font-size: 1.1rem;
}
.ai-panel.floating .disclaimer {
  font-size: 0.75rem;
  padding: 0.5rem;
}

.prompt-area {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.prompt-area textarea {
  width: 100%;
  height: 120px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.prompt-area textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: white;
}
.prompt-area textarea:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
}
.prompt-area button {
  align-self: flex-end;
  background-color: #4f46e5;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}
.prompt-area button:hover:not(:disabled) {
  background-color: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.3);
}
.prompt-area button:disabled {
  background-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================================================================
   6. FOOTER
   ========================================================================= */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 4rem;
}
footer .footer-content {
  max-width: 600px;
  margin: 0 auto;
}
footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}/*# sourceMappingURL=style.css.map */