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

:root {
  --primary: #0a2540;
  --primary-light: #1a3a5c;
  --accent: #2b7de9;
  --accent-hover: #1a5fc0;
  --text: #333;
  --text-light: #666;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e0e4e8;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 120px;
  width: auto;
}

.logo-ardan {
  color: var(--primary);
}

.logo-pharma {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(0, 166, 118, 0.08);
}

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

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

/* ===== Sections ===== */
.section {
  padding: 5rem 1.5rem;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.subsection-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-light);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.subsection-title:first-of-type {
  margin-top: 0;
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.15rem;
  opacity: 0.85;
}

/* ===== Hero Landscape ===== */
.hero-landscape {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  color: var(--white);
  margin-top: 70px;
  overflow: hidden;
}

.hero-landscape .hero-overlay {
  position: absolute;
  inset: 0;
  background: url('images/banner.png') center/cover no-repeat;
  opacity: 0.3;
}

.hero-landscape .hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-landscape .hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-line.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-landscape {
    height: 45vh;
    min-height: 300px;
  }
  .hero-landscape .hero-content h1 {
    font-size: 1.8rem;
  }
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  color: var(--white);
  padding-top: 70px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
  background-size: 300px;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 166, 118, 0.3);
}

.btn-full {
  width: 100%;
}

/* ===== Cards & Grid ===== */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.company-text {
  color: var(--text-light);
  font-size: 1.05rem;
  text-align: center;
}

.content-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.content-card p:last-child {
  margin-bottom: 0;
}

/* ===== Approach ===== */
.approach-card {
  text-align: center;
}

.approach-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.approach-item:last-child {
  margin-bottom: 0;
}

.approach-bullet {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.approach-item p {
  text-align: center;
}

/* ===== Stats ===== */
.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

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

/* ===== Alliance Unified Card ===== */
.alliance-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
}

.alliance-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.alliance-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.alliance-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition);
}

.alliance-logo-link:hover {
  transform: translateY(-3px);
  background: var(--bg-alt);
}

.alliance-logo-img {
  max-width: 200px;
  max-height: 140px;
  object-fit: contain;
}

.alliance-logo-link span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.alliance-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.alliance-cta {
  text-align: center;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}

.alliance-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.alliance-cta a:hover {
  color: var(--accent-hover);
}

/* ===== Partner Cards ===== */
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.partner-logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  border: 2px solid var(--border);
}

.partner-logo-img {
  max-width: 160px;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.partner-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.partnership-cta {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.partnership-cta p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}

.partnership-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.partnership-cta a:hover {
  color: var(--accent-hover);
}

/* ===== Team ===== */
.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

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

.team-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin-bottom: 1rem;
}

.team-card h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

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

.team-bio {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Innovation ===== */
.innovation-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.innovation-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  padding: 2.5rem 2.5rem 0;
}

.innovation-text {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  padding: 1rem 2.5rem 2rem;
}

.innovation-image {
  text-align: center;
  padding: 0 2.5rem 2.5rem;
}

.innovation-image img {
  max-width: 100%;
  border-radius: var(--radius);
}

/* ===== Lab Cards ===== */
.lab-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.lab-card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.lab-card-title {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  background: var(--white);
}

/* ===== Publications ===== */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.publication-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.publication-item:hover {
  transform: translateX(4px);
}

.pub-year {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.publication-item h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.pub-journal {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

/* ===== Coming Soon ===== */
.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.coming-soon h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.coming-soon p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ===== News Cards ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.news-card-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--bg-alt);
  padding: 1rem;
  display: block;
}

.news-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-body h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.news-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

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

.news-card-date {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}

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

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

/* ===== Contact Form ===== */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.required {
  color: #e53e3e;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 166, 118, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #e53e3e;
}

.error-msg {
  display: none;
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.form-group input.invalid ~ .error-msg,
.form-group textarea.invalid ~ .error-msg {
  display: block;
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: #e53e3e;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 2rem 1.5rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-content p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-logo .logo-img {
  height: 120px;
  width: auto;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 0.75rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 1rem;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .publication-item {
    flex-direction: column;
    gap: 0.75rem;
  }
}
