/*
Theme Name: Laboratory Website Design
Theme URI: https://www.figma.com/design/PweQVm0ZXN81eG2UJJXla8/Laboratory-Website-Design
Author: Your Name
Author URI: https://yourwebsite.com
Description: A modern, professional WordPress theme for laboratory and research websites. Features custom post types for research areas, publications, projects, team members, and daily updates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: laboratory-theme
Tags: research, laboratory, academic, science, custom-post-types, responsive
*/

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-primary: #d32f2f;
  /* Red from the logo */
  --color-secondary: #333333;
  --color-gray: #f5f5f5;
  --font-main: 'Inter', sans-serif;
  --spacing-unit: 8px;
  --container-width: 1200px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* Header */
.site-header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo-image {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-left: 30px;
  position: relative;
  /* For dropdown positioning */
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding-bottom: 5px;
  display: block;
  /* Ensure full clickable area */
}

.main-nav a:hover,
.main-nav a.active {
  color: #0056b3;
}

/* Dropdown Menu Styles */
.main-nav ul .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000;
  /* Black background as per image */
  min-width: 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  flex-direction: column;
  padding: 10px 0;
}

.main-nav li:hover>.sub-menu {
  display: flex;
}

.main-nav ul .sub-menu li {
  margin: 0;
  width: 100%;
  position: relative;
  /* For nested sub-menus */
}

.main-nav ul .sub-menu a {
  color: #fff;
  /* White text */
  padding: 10px 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
}

.main-nav ul .sub-menu a:hover {
  background-color: #222;
  color: #fff;
}

.main-nav ul .sub-menu li:last-child a {
  border-bottom: none;
}

/* 3rd Level Dropdown */
.main-nav ul .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-top: -10px;
  /* Align with parent item */
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}

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

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .main-nav a {
    font-size: 24px;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 80px;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -0.04em;
  color: var(--color-text);
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-title .line:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-title .line:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.6s forwards;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--color-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
  border-radius: 4px;
  transition: transform 0.2s, background-color 0.2s;
}

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

/* Hero Graphics */
.hero-graphic {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.transit-line {
  position: absolute;
  background-color: var(--color-text);
}

.line-1 {
  width: 4px;
  height: 100%;
  right: 20%;
  top: 0;
  opacity: 0.1;
}

.line-2 {
  width: 100%;
  height: 4px;
  right: 0;
  top: 40%;
  opacity: 0.1;
}

.transit-node {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 4px solid var(--color-text);
  border-radius: 50%;
  background: white;
  opacity: 0.2;
}

.node-1 {
  right: calc(20% - 10px);
  top: calc(40% - 10px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* Sections Common */
.section {
  padding: 120px 0;
}

.section-header {
  margin-bottom: 64px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.section-line {
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text .lead {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--color-text);
}

.about-text p {
  font-size: 16px;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.8;
}

.btn-text {
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.btn-text:hover {
  gap: 12px;
  color: var(--color-primary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 40px;
  background-color: var(--color-gray);
  border-radius: 8px;
}

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

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-title {
    font-size: 32px;
  }
}

/* Research Section */
.research {
  background-color: var(--color-gray);
}

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

.research-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.research-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

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

.placeholder-img {
  width: 100%;
  height: 100%;
  background-color: #ddd;
  transition: transform 0.5s ease;
}

.research-card:hover .placeholder-img {
  transform: scale(1.05);
}

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-excerpt {
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Daily Activities List Layout */
.daily-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.daily-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 40px;
}

.daily-item:last-child {
  border-bottom: none;
}

.daily-header {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.daily-date-box {
  background-color: #f5f5f5;
  padding: 10px;
  text-align: center;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.daily-month {
  font-size: 0.9rem;
  color: #666;
  display: block;
  line-height: 1.2;
}

.daily-year {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  display: block;
  line-height: 1.2;
}

.daily-meta {
  flex: 1;
}

.daily-category {
  color: #e74c3c;
  /* Red color for category */
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.daily-title {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.3;
}

.daily-title a {
  text-decoration: none;
  color: #333;
}

.daily-title a:hover {
  color: #0056b3;
}

.daily-excerpt {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.daily-image {
  margin-top: 20px;
}

.daily-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 80px 0 40px;
  background-color: var(--color-secondary);
  color: white;
}

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

.footer-info h3 {
  font-size: 24px;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-info p {
  color: #aaa;
  margin-bottom: 8px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #aaa;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

@media (max-width: 768px) {
  .site-footer .container {
    grid-template-columns: 1fr;
  }
}

/* Page Headers */
.page-header {
  padding: 160px 0 80px;
  background-color: var(--color-bg);
}

.page-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.page-subtitle {
  font-size: 20px;
  color: var(--color-secondary);
  max-width: 600px;
}

/* Filter Section */
.research-filter-section {
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}

.filter-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-text);
  color: white;
  border-color: var(--color-text);
}

/* Research Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

.project-image {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-category {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.project-title {
  font-size: 24px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

/* Active Navigation State */
.main-nav a.active {
  color: var(--color-primary);
}

.main-nav a.active::after {
  width: 100%;
}

/* Members Section */
.members-section {
  padding-bottom: 80px;
}

.member-group {
  margin-bottom: 80px;
}

.group-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-gray);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
}

.member-card {
  background: white;
  transition: transform 0.3s;
}

.member-card:hover {
  transform: translateY(-4px);
}

.member-image {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 4px;
}

.member-image .placeholder-img {
  transition: transform 0.5s;
}

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

.member-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.member-role {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.member-bio {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Publications Section */
.publications-section {
  padding-bottom: 80px;
}

.year-group {
  margin-bottom: 60px;
}

.year-title {
  font-size: 48px;
  font-weight: 800;
  color: #eee;
  margin-bottom: 24px;
  line-height: 1;
}

.publication-list {
  border-top: 2px solid var(--color-text);
}

.pub-item {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: baseline;
  transition: background-color 0.2s;
}

.pub-item:hover {
  background-color: #fafafa;
}

.pub-meta {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.pub-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.pub-title a {
  transition: color 0.2s;
}

.pub-title a:hover {
  color: var(--color-primary);
}

.pub-authors {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.pub-journal {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

@media (max-width: 768px) {
  .pub-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .year-title {
    font-size: 36px;
  }
}

/* News Section */
.news-section {
  padding-bottom: 80px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}

.news-item {
  display: flex;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--color-gray);
  border-radius: 4px;
  flex-shrink: 0;
  color: var(--color-text);
}

.news-date .day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.news-date .month {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

.news-date .year {
  font-size: 10px;
  color: #666;
}

.news-content {
  flex: 1;
}

.news-meta {
  margin-bottom: 8px;
}

.news-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.news-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.news-title a {
  transition: color 0.2s;
}

.news-title a:hover {
  color: var(--color-primary);
}

.news-excerpt {
  font-size: 16px;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.6;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s;
}

.read-more:hover {
  color: var(--color-primary);
}

/* Pagination */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pagination ul {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination li {
  display: inline-block;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--color-text);
}

.page-numbers.current,
.page-numbers:hover {
  background-color: var(--color-text);
  color: white;
  border-color: var(--color-text);
}

.page-numbers.dots {
  border: none;
  background: none;
  color: #666;
}

.page-numbers.dots:hover {
  background: none;
  color: #666;
}

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #666;
}

@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    gap: 16px;
  }

  .news-date {
    flex-direction: row;
    width: auto;
    height: auto;
    padding: 8px 16px;
    gap: 8px;
    justify-content: flex-start;
    background: none;
    padding-left: 0;
  }

  .news-date .day {
    font-size: 16px;
  }

  .news-date .month,
  .news-date .year {
    font-size: 14px;
    margin: 0;
  }
}

/* Contact Page Styles */
.contact-grid {
  display: block;
  max-width: 800px;
  margin: 2rem auto;
}

.contact-info .info-item {
  margin-bottom: 2.5rem;
}

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.contact-link {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.map-placeholder {
  background-color: #f5f5f5;
  border-radius: 8px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
}

.map-visual {
  text-align: center;
  color: #888;
}

.map-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.access-details p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Single Post Styles */
.single-post-article .entry-header {
  margin-bottom: 40px;
}

.post-meta-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.post-date {
  font-size: 14px;
  color: #666;
}

.entry-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 60px;
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.entry-content h3 {
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.entry-footer {
  border-top: 1px solid #eee;
  padding-top: 40px;
  margin-top: 40px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.nav-previous,
.nav-next {
  max-width: 45%;
}

/* Home News Section */
.news-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-card-home {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.news-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-image {
  position: relative;
  height: 200px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.placeholder-img {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
}

.news-card-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.news-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--color-text);
}

.news-card-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-block;
}

.nav-next {
  text-align: right;
  margin-left: auto;
}

.nav-subtitle {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.nav-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
  color: var(--color-primary);
}

/* Single Member Profile */
.single-member-profile {
  padding: 80px 0;
}

.member-profile-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: start;
}

.member-profile-grid.no-image {
  grid-template-columns: 1fr;
}

.member-profile-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.member-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.member-position {
  font-size: 20px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 32px;
}

.member-meta-details {
  margin-bottom: 32px;
  padding: 24px;
  background-color: var(--color-gray);
  border-radius: 8px;
}

.meta-item {
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

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

.meta-label {
  font-weight: 700;
  min-width: 120px;
  color: var(--color-secondary);
}

.member-contact-info {
  margin-bottom: 32px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.contact-row a {
  color: var(--color-text);
  text-decoration: underline;
}

.contact-row a:hover {
  color: var(--color-primary);
}

.member-bio-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 40px;
}

.back-to-members {
  display: inline-block;
  font-weight: 600;
  color: var(--color-secondary);
  transition: color 0.2s;
}

.back-to-members:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .member-profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .member-title {
    font-size: 32px;
  }
}