/* style.css */
body {
  font-family: "Source Serif Pro", serif;
  line-height: 1.6;
  color: #333;
  max-width: 2000px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.container {
  width: 100%;
}

hr {
  border: none;
  border-top: 1px solid #fae29c;
  margin: 20px 0;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #444;
}

h1 {
  font-size: 2.2em;
  margin: 0 0 10px 0;
}

h2 {
  font-size: 1.8em;
  margin: 0;
}

h3 {
  color: #444;

  padding-bottom: 5px;
  margin-top: 30px;
  font-size: 1.4em;
}
p {
  font-size: 1.1em; /* 10% larger than default */
}

/* ===== LINKS ===== */
a {
  color: #d4a017;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== NAVIGATION ===== */
.navbar {
  margin-bottom: 20px;
}

.navbar-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list {
  display: inline;
  margin-right: 10px;
}

.nav-list a {
  text-decoration: none;
  color: #d4a017;
}

.nav-list a:hover {
  text-decoration: underline;
}

.nav-list a.selected {
  font-weight: bold;
  color: #b8860b;
}

#author-name {
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.alignable {
  display: inline-block;
}

/* ===== RESEARCH PAGE ===== */
.highlight {
  font-style: italic;
  color: #666;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.research-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* RESEARCH ITEMS - Removed card styling, simplified with border accent */
.research-item {
  margin-bottom: 10px;
  padding: 10px 0; /* Remove horizontal padding, keep vertical spacing */
  background: transparent; /* Remove white card background */
  padding-left: 15px; /* Add left padding for border spacing */
}

/* Paper title links - darker golden color */
.research-item a {
  color: #d4a017; /* Darker golden/yellow like button hover */
  text-decoration: none;
}

.research-item a:hover {
  color: #b8860b;
  text-decoration: underline;
}

.publication-title {
  font-weight: 500;
  color: #333;
  font-size: 1.1em;
  line-height: 1.4;
  text-decoration: none;
  cursor: default;
}

.publication-title:hover {
  color: #333;
  text-decoration: none;
  cursor: default;
}

.authors {
  color: #666;
}

.author-highlight {
  color: #000;
  font-weight: 500;
}

.research-item br {
  margin: 3px 0;
}

.research-item strong {
  color: #444;
}

.research-item .detail {
  color: #5c5c5c;
  font-size: 0.9em;
  font-style: italic;
}

/* ===== GALLERY ===== */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

/* GALLERY ITEMS - Removed card styling, simple overflow container */
.gallery-item {
  background: transparent; /* Remove white card background */
  overflow: hidden; /* Keep for image cropping */
  transition: opacity 0.2s ease; /* Simplified hover effect */
}

.gallery-item:hover {
  opacity: 0.8; /* Simple opacity change instead of card lift */
}

.placeholder-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #fae29c 0%, #f0e68c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  text-align: center;
  padding: 20px;
}

.placeholder-image p {
  margin: 5px 0;
  font-weight: 500;
}

.placeholder-text {
  font-size: 0.9em;
  font-style: italic;
  color: #888;
}

/* ===== WRITINGS CATALOGUE ===== */
.writings-catalogue {
  margin: 30px 0;
}

/* WRITING ITEMS - Removed card styling, simple border accent layout */
.writing-item {
  background: transparent; /* Remove white card background */
  padding: 20px 0; /* Remove horizontal padding, keep vertical spacing */
  margin-bottom: 20px;
  border-left: 3px solid #fae29c; /* Keep golden accent border */
  padding-left: 20px; /* Add left padding for border spacing */
  transition: border-color 0.2s ease; /* Simple border color transition */
}

.writing-item:hover {
  border-left-color: #d4a017; /* Change border color to darker golden on hover */
}

.writing-title {
  margin: 0 0 10px 0;
  font-size: 1.3em;
}

.writing-title a {
  color: #d4a017;
  text-decoration: none;
  font-weight: 500;
}

.writing-title a:hover {
  color: #b8860b;
  text-decoration: underline;
}

.writing-summary {
  color: #666;
  margin: 10px 0;
  line-height: 1.5;
  font-style: italic;
}

.writing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.writing-date {
  color: #888;
  font-size: 0.9em;
}

.read-more {
  color: #d4a017;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
}

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

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

/* ===== INSTAGRAM SECTION ===== */
/* INSTAGRAM SECTION - Removed card styling, simple border accent */
.instagram-section {
  margin: 40px 0;
  padding: 30px 0; /* Remove horizontal padding, keep vertical spacing */
  background: transparent; /* Remove white card background */
  border-left: 3px solid #fae29c; /* Keep golden accent border */
  padding-left: 30px; /* Add left padding for border spacing */
}

.instagram-section h3 {
  margin: 0 0 10px 0;
  color: #444;
  font-size: 1.3em;
}

.instagram-section p {
  margin: 0 0 20px 0;
  color: #666;
}

.instagram-embed-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* INSTAGRAM EMBED - Removed shadow styling */
.instagram-embed {
  max-width: 100%;
}

.instagram-link {
  text-align: center;
}

/* INSTAGRAM BUTTON - Simplified without card effects */
.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease; /* Simple opacity transition */
}

.instagram-btn:hover {
  opacity: 0.8; /* Simple opacity change */
  text-decoration: none;
  color: white;
}

.instagram-btn svg {
  width: 18px;
  height: 18px;
}

/* INSTAGRAM STATS - Removed card styling */
.instagram-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
  padding: 20px 0; /* Remove horizontal padding, keep vertical spacing */
  background: transparent; /* Remove tinted background */
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-number {
  font-size: 1.5em;
  font-weight: bold;
}

.stat-label {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
}

.instagram-preview {
  width: 100%;
  max-width: 500px;
}

.instagram-preview h4 {
  margin: 0 0 15px 0;
  color: #444;
  text-align: center;
  font-size: 1.1em;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* INSTAGRAM PHOTOS - Removed card styling */
.instagram-photo {
  aspect-ratio: 1;
  overflow: hidden; /* Keep for image cropping */
  transition: opacity 0.2s ease; /* Simple opacity transition */
}

.instagram-photo:hover {
  opacity: 0.8; /* Simple opacity change */
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fae29c 0%, #f0e68c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  text-align: center;
  padding: 10px;
}

.photo-placeholder span {
  font-size: 2em;
  margin-bottom: 5px;
}

.photo-placeholder p {
  margin: 0;
  font-size: 0.9em;
  font-weight: 500;
}

/* ===== TOOL ICON ===== */
.tool-icon {
  position: fixed;
  top: 25px;
  right: 30px;
  width: 32px;
  height: 32px;
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #d4a017;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0.7;
}

.tool-icon:hover {
  background: rgba(212, 160, 23, 0.15);
  border-color: rgba(212, 160, 23, 0.5);
  transform: scale(1.05);
  opacity: 1;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #fae29c;
  overflow-y: auto;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #d4a017;
}

.modal-content h4 {
  margin: 0 0 15px 0;
  color: #444;
  font-size: 1.1em;
  padding-right: 30px;
}

.dev-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dev-buttons a {
  text-decoration: none;
}

.dev-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dev-form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.dev-form input:focus {
  outline: none;
  border-color: #d4a017;
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2);
}

/* ===== BUTTONS ===== */
button {
  background-color: #d4a017;
  color: white;
  padding: 0.5em 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

button:hover {
  background-color: #b8860b;
}

.primary-btn {
  background: #d4a017;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  min-width: 80px;
}

.primary-btn:hover {
  background: #b8860b;
}

.secondary-btn {
  background: #6c757d;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.secondary-btn:hover {
  background: #545b62;
}

.dev-button {
  background: #d4a017;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.dev-button:hover {
  background: #b8860b;
}

.submit-btn {
  background: #d4a017;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background: #b8860b;
}

/* ===== DROPDOWN ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: #d4a017;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-btn:hover {
  background: #b8860b;
}

/* DROPDOWN CONTENT - Simplified without shadow */
.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 250px;
  border: 1px solid #ddd; /* Simple border instead of shadow */
  z-index: 1;
}

.dropdown-content a {
  color: #333;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: #fae29c;
}

.dropdown.show .dropdown-content {
  display: block;
}

/* ===== PROFILE ===== */
.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 70% center;
  margin: 20px 0;
  float: right;
  margin-left: 20px;
}

/* ===== CONTENT SECTIONS ===== */
/*
 * TWO-COLUMN LAYOUT IMPLEMENTATION
 * Updated from single-column card layout to modern two-column grid:
 * - Left column: Bio content with profile image, introduction, and contact info
 * - Right column: Recent projects with thumbnail images
 * - Maintains original golden color scheme (#d4a017, #fae29c)
 * - Responsive design stacks columns vertically on mobile
 * - Preserves all existing navigation and functionality
 */

/* TWO-COLUMN GRID LAYOUT - Left bio content + Right projects sidebar */
.content {
  margin-top: 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 360px; /* Left column flexible, right column fixed width */
  gap: 40px; /* Space between columns */
  align-items: start; /* Align columns to top */
}

/* LEFT COLUMN: Bio and About Section - Removed card styling */
.content-left {
  background: transparent; /* Remove white card background */
  padding: 30px 0; /* Remove horizontal padding, keep vertical spacing */
  /* Keep original golden accent border */
}

/* Profile picture styling within left column */
.content-left .profile-picture {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

/* RIGHT COLUMN: Recent Projects Section */
.content-right {
  background: transparent; /* No background - let projects stand out */
  display: flex;
  flex-direction: column;

  gap: 18px; /* Space between elements */
}

/* Recent projects container */
.recent-projects {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Individual project thumbnail styling - Removed card effects */
.project-thumb {
  width: 100%;
  height: 160px; /* Fixed height for consistent layout */
  overflow: hidden; /* Keep for image cropping */
  display: block;
  transition: opacity 0.2s ease; /* Simple opacity transition */
  text-decoration: none; /* Remove link underline */
}

/* Project thumbnail hover effects - Simple opacity change */
.project-thumb:hover {
  opacity: 0.8; /* Simple opacity change instead of card lift */
}

/* Project thumbnail images */
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop images to fit container */
  display: block;
}

/* Project links styling - appears below project thumbnails */
.project-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.project-links a {
  color: #d4a017;
  text-decoration: none;
  font-size: 0.85em;
}

.project-links a:hover {
  text-decoration: underline;
  color: #b8860b;
}

/* SECTION TITLES - Used for "contact" and "recent projects" headings */
.section-title {
  color: #d4a017; /* Original golden accent color */
  font-family: "Source Serif Pro", serif; /* Match site font */
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 12px 0; /* Spacing below title */

  padding-bottom: 5px;
}

/* CONTACT SECTION STYLING */
.contact-block {
  margin-top: 25px; /* Space above contact section */
  padding-top: 20px;
  border-top: 1px solid #fae29c; /* Subtle separator from bio content */
}

.contact {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #555; /* Slightly muted text color */
}

/* Contact links styling */
.contact a {
  color: #d4a017; /* Golden accent for links */
  text-decoration: none;
  font-weight: 500;
}

.contact a:hover {
  text-decoration: underline;
  color: #b8860b; /* Darker golden on hover */
}

.dev-section {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
}

.dev-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dev-form input {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

/* ===== FORM STYLES ===== */
.form-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #fae29c;
}

.form-header h1 {
  color: #444;
  margin: 0 0 10px 0;
  font-size: 2.2em;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #444;
  font-weight: 500;
  font-size: 1.1em;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #d4a017;
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.1);
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-control {
  resize: none;
  min-height: 38px;
  max-height: 150px;
  overflow-y: hidden;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

.submit-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #fae29c;
}

.back-section {
  margin-top: 20px;
  text-align: center;
}

.back-link {
  color: #d4a017;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

/* ===== CHAT INTERFACE ===== */
.chat-container {
  max-width: 1200px;
  margin: 0 auto;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #fae29c;
}

.chat-header h2 {
  margin: 0;
  color: #444;
  font-size: 1.8em;
}

.chat-layout {
  display: flex;
  gap: 30px;
  height: calc(100vh - 150px);
}

.chat-main {
  flex: 3;
  display: flex;
  flex-direction: column;
}

.chat-sidebar {
  flex: 1;
  min-width: 250px;
}

/* SIDEBAR SECTION - Removed card styling, simple border accent */
.sidebar-section {
  margin-bottom: 20px;
  padding: 15px 0; /* Remove horizontal padding, keep vertical spacing */
  background-color: transparent; /* Remove gray card background */

  padding-left: 15px; /* Add left padding for border spacing */
}

.sidebar-label {
  display: block;
  margin-bottom: 10px;
  color: #444;
  font-size: 14px;
  font-weight: bold;
}

.sidebar-textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background-color: #fff;
  box-sizing: border-box;
}

/* ===== EMOTIONAL STATE STYLES ===== */
/* EMOTIONAL STATE CONTAINER - Simplified background */
.emotional-state-container {
  background: rgba(
    212,
    160,
    23,
    0.1
  ); /* Simple tinted background instead of gradient */
  padding: 15px;
  margin-top: 10px;

  padding-left: 15px; /* Add left padding for border spacing */
}

.emotion-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.emotion-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.emotion-value {
  font-size: 14px;
  font-weight: bold;
  color: #444;
  text-transform: capitalize;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
}

.emotion-artwork {
  margin-top: 15px;
  text-align: center;
}

/* EMOTION ARTWORK - Removed shadow styling */
.emotion-artwork img {
  max-width: 100%;
}

.emotion-value {
  font-weight: 500;
  margin-left: 8px;
}

.intensity-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.intensity-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  min-width: 60px;
}

.intensity-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.intensity-fill {
  height: 100%;
  background: linear-gradient(90deg, #fae29c 0%, #f0e68c 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.intensity-text {
  font-size: 11px;
  color: #666;
  font-weight: 500;
  min-width: 25px;
  text-align: right;
}

.emotion-emoji {
  text-align: center;
  margin-top: 8px;
}

.emoji {
  font-size: 24px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* CHAT BOX - Removed card styling, simple border accent */
.chat-box {
  width: 100%;
  height: 100%;
  max-height: 500px;
  overflow-y: auto;
  background: transparent; /* Remove white card background */
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  padding-left: 10px; /* Add left padding for border spacing */
  scroll-behavior: smooth;
}

#chat {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.input-section {
  margin-top: 15px;
}

.input-group {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.action-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

/* ===== MESSAGE STYLES ===== */
.message-timestamp {
  text-align: center;
  font-size: 0.75rem;
  color: #888;
  margin: 10px 0 5px 0;
  font-weight: 400;
}

.message {
  max-width: 80%;
  word-wrap: break-word;
  white-space: pre-wrap;
  margin: 5px 10px;
  padding: 10px 15px;
  border-radius: 15px;
  line-height: 1.4;
}

.message.user {
  background-color: #fae29c;
  align-self: flex-end;
  border-top-right-radius: 0;

  color: #444;
  font-weight: 500;
}

/* BOT MESSAGES - Removed card styling, simple border accent */
.message.bot {
  background-color: transparent; /* Remove gray card background */
  align-self: flex-start;
  background-color: #e7e7e7;
  color: #333;
  border-top-left-radius: 0;
  }

.message-container {
  display: flex;
  width: 100%;
}

.user-container {
  justify-content: flex-end;
}

.bot-container {
  justify-content: flex-start;
}

/* Fix textarea expanding */
.message-textarea {
  width: 100%;
  max-width: 80%;
  resize: vertical;
  word-wrap: break-word;
  white-space: pre-wrap;
  margin: 5px 10px;
  padding: 10px 15px;
  border-radius: 15px;
  line-height: 1.4;
  font-family: inherit;
  font-size: inherit;
  background-color: #fae29c;
  border: none;

  color: #444;
  font-weight: 500;
}

#chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

/* DUPLICATE CHAT BOX - Removed card styling, simple border accent */
.chat-box {
  flex: 1;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  overflow-y: auto;
  background: transparent; /* Remove white card background */

  padding-left: 10px; /* Add left padding for border spacing */
}

/* ===== ARTICLE STYLES ===== */
.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #fae29c;
}

.article-title {
  color: #444;
  margin: 0 0 10px 0;
  font-size: 2.2em;
  line-height: 1.3;
}

.article-meta {
  color: #666;
  font-size: 0.9em;
  font-style: italic;
}

.article-content {
  font-size: 1.1em;
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #444;
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content h1 {
  font-size: 1.8em;
  border-bottom: 1px solid #fae29c;
  padding-bottom: 5px;
}

.article-content h2 {
  font-size: 1.5em;
  border-bottom: 1px solid #fae29c;
  padding-bottom: 5px;
}

.article-content h3 {
  font-size: 1.3em;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #555;
  background: #fae29c;
  padding: 15px 20px;
  border-radius: 4px;
}

.article-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.article-content pre {
  background: #f4f4f4;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 20px 0;
}

/* ===== RESPONSIVE DESIGN ===== */
/* TABLET AND MOBILE: Stack two-column layout vertically */
@media (max-width: 880px) {
  /* Stack columns vertically on smaller screens */
  .content {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 30px; /* Slightly reduced gap for mobile */
  }

  /* Adjust right column for mobile */
  .content-right {
    order: 2; /* Ensure projects appear after bio content */
  }

  /* Adjust profile picture for mobile */
  .content-left .profile-picture {
    float: none; /* Remove float on mobile */
    display: block;
    margin: 0 auto 20px auto; /* Center image with bottom margin */
    width: 140px; /* Slightly larger on mobile */
    height: 140px;
  }

  /* Adjust project thumbnails for mobile */
  .project-thumb {
    height: 180px; /* Slightly taller on mobile for better visibility */
  }
}

@media (max-width: 768px) {
  .chat-layout {
    flex-direction: column;
    height: auto;
  }

  .chat-sidebar {
    min-width: auto;
  }

  .chat-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Additional mobile adjustments for new layout */
  .content-left {
    padding: 20px; /* Reduce padding on mobile */
  }

  .section-title {
    font-size: 16px; /* Slightly smaller titles on mobile */
  }
}

@media (max-width: 600px) {
  .pull-left,
  .pull-right {
    float: none;
    display: block;
    text-align: center;
  }

  .navbar-ul {
    text-align: center;
    margin-top: 10px;
  }

  .content {
    padding: 20px;
  }

  .article-title {
    font-size: 1.8em;
  }
}

.save-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.save-form .form-group {
  margin-bottom: 8px;
}

.save-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #444;
  font-size: 14px;
}

.save-form input,
.save-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.save-form input:focus,
.save-form textarea:focus {
  outline: none;
  border-color: #d4a017;
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2);
}

.save-form textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
}

.save-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* ANALYSIS INFO - Simplified without card styling */
.analysis-info {
  background-color: transparent; /* Remove gray background */
  padding: 12px 0; /* Remove horizontal padding, keep vertical spacing */

  margin: 10px 0;
  padding-left: 12px; /* Add left padding for border spacing */
}

.analysis-info p {
  margin: 0 0 8px 0;
  font-weight: 500;
  color: #444;
  font-size: 14px;
}

.analysis-info ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
}

.analysis-info li {
  margin-bottom: 4px;
  color: #666;
}

.analysis-info li strong {
  color: #444;
}

/* ===== PHD APPLICATIONS TRACKER ===== */
.tracker-controls {
  margin: 20px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* TRACKER CONTAINER - Removed card styling, simple container */
.tracker-container {
  background: transparent; /* Remove white card background */
  overflow: hidden; /* Keep for table layout */
  margin: 20px 0;

  padding-left: 15px; /* Add left padding for border spacing */
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.tracker-table th {
  background: #f8f8f8;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #444;
  border-bottom: 2px solid #fae29c;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tracker-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  word-wrap: break-word;
  max-width: 200px;
}

.tracker-table tr:hover {
  background-color: #f9f9f9;
}

.tracker-table tr.overdue {
  background-color: #fff5f5;
  border-left: 3px solid #e53e3e;
}

.tracker-table tr.overdue:hover {
  background-color: #fed7d7;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-badge.status-in_progress {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-badge.status-submitted {
  background-color: #d1fae5;
  color: #065f46;
}

.status-badge.status-accepted {
  background-color: #dcfce7;
  color: #166534;
}

.status-badge.status-rejected {
  background-color: #fee2e2;
  color: #991b1b;
}

.priority-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-badge.priority-1 {
  background-color: #fee2e2;
  color: #991b1b;
}

.priority-badge.priority-2 {
  background-color: #fef3c7;
  color: #92400e;
}

.priority-badge.priority-3 {
  background-color: #f3f4f6;
  color: #374151;
}

.action-btn {
  padding: 4px 8px;
  margin: 2px;
  border: none;
  border-radius: 4px;
  font-size: 0.8em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.edit-btn {
  background-color: #dbeafe;
  color: #1e40af;
}

.edit-btn:hover {
  background-color: #bfdbfe;
}

.delete-btn {
  background-color: #fee2e2;
  color: #991b1b;
}

.delete-btn:hover {
  background-color: #fecaca;
}

.tracker-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

/* STAT CARDS - Removed card styling, simple border accent */
.stat-card {
  background: transparent; /* Remove white card background */
  padding: 20px 0; /* Remove horizontal padding, keep vertical spacing */
  text-align: center;
  border-left: 3px solid #fae29c; /* Keep golden accent border */
  padding-left: 20px; /* Add left padding for border spacing */
}

.stat-card h4 {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 0.9em;
  font-weight: 500;
}

.stat-card span {
  font-size: 2em;
  font-weight: bold;
  color: #d4a017;
}

.tracker-form {
  max-width: 100%;
}

.tracker-form .form-group {
  margin-bottom: 15px;
}

.tracker-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #444;
}

.tracker-form input,
.tracker-form select,
.tracker-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9em;
}

.tracker-form input:focus,
.tracker-form select:focus,
.tracker-form textarea:focus {
  outline: none;
  border-color: #d4a017;
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.1);
}

.tracker-form textarea {
  resize: vertical;
  min-height: 60px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

/* Responsive design for tracker */
@media (max-width: 768px) {
  .tracker-table {
    font-size: 0.8em;
  }

  .tracker-table th,
  .tracker-table td {
    padding: 8px 4px;
  }

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

  .stat-card span {
    font-size: 1.5em;
  }

  .tracker-controls {
    flex-direction: column;
  }

  .tracker-controls button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .tracker-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tracker-stats {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

/* ===== PROJECTS PAGE ===== */

/* TIMELINE LAYOUT */
.projects-timeline {
  margin: 30px 0;
  padding-left: 20px;
}

.timeline-item {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.timeline-item:hover {
  opacity: 0.9;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

/* Timeline marker (dot and line) */
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 94px; /* Centers dot at middle of 200px image (100px - 6px dot radius) */
}

/* Line segment above the dot */
.timeline-marker::before {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 94px; /* Reaches from top to dot */
  background-color: #fae29c;
  margin-bottom: 8px;
}

/* Hide top line for first timeline item */
.timeline-item:first-child .timeline-marker::before {
  display: none;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background-color: #d4a017;
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
  transition: background-color 0.2s ease;
  margin: 8px 0; /* Equal spacing above and below dot */
}

.timeline-item:hover .timeline-dot {
  background-color: #b8860b;
}

/* Line segment below the dot */
.timeline-line {
  width: 3px;
  flex-grow: 1;
  background-color: #fae29c;
  min-height: 60px;
}

/* Timeline content (image + info) */
.timeline-content {
  display: flex;
  gap: 30px;
  flex: 1;
  align-items: flex-start;
}

.project-image-container {
  flex-shrink: 0;
}

.project-timeline-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.project-info-container {
  flex: 1;
  padding-top: 5px;
}

.project-date {
  color: #d4a017;
  font-weight: 500;
  font-size: 0.9em;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-info-container h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.4em;
}

.project-info-container p {
  margin: 0;
  color: #666;
  font-size: 1em;
  line-height: 1.6;
}

/* LEGACY GRID LAYOUT (kept for backwards compatibility) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

/* PROJECT CARDS - Removed card styling, simple container with hover effect */
.project-card {
  background: transparent; /* Remove white card background */
  overflow: hidden; /* Keep for image cropping */
  transition: opacity 0.2s ease; /* Simple opacity transition */
  cursor: pointer;
  border-left: 3px solid #fae29c; /* Add golden accent border */
  padding-left: 15px; /* Add left padding for border spacing */
}

.project-card:hover {
  opacity: 0.8; /* Simple opacity change instead of card lift */
  border-left-color: #d4a017; /* Change border color on hover */
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  margin: 15px 20px;
  color: #333;
  font-size: 1.4em;
  border-bottom: none;
}

.project-card p {
  margin: 0 20px 20px;
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
}

/* ===== PROJECT DETAIL PAGE ===== */
.project-detail {
  max-width: 900px;
  margin: 0 auto;
}

.project-hero {
  margin: -20px -20px 30px;
}

.project-detail-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.project-info {
  padding: 0 20px;
}

.project-metadata {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.project-metadata p {
  margin: 10px 0;
  color: #555;
}

.project-metadata strong {
  color: #333;
  margin-right: 10px;
}

.project-description {
  margin-bottom: 40px;
  font-size: 1.1em;
  line-height: 1.7;
}

.project-features {
  margin-bottom: 40px;
}

.project-features ul {
  list-style-type: none;
  padding: 0;
}

.project-features li {
  margin: 10px 0;
  padding-left: 25px;
  position: relative;
}

.project-features li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #d4a017;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* GALLERY IMAGES - Simplified hover effects */
.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: opacity 0.2s ease; /* Simple opacity transition */
}

.gallery-image:hover {
  opacity: 0.8; /* Simple opacity change */
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .project-hero {
    margin: -15px -15px 20px;
  }

  .project-info {
    padding: 0 15px;
  }

  /* Timeline responsive styles */
  .timeline-item {
    gap: 20px;
  }

  .timeline-content {
    gap: 20px;
  }

  .project-timeline-image {
    width: 200px;
    height: 150px;
  }

  /* Adjust dot position for 150px image height */
  .timeline-marker {
    padding-top: 69px; /* Centers dot at middle of 150px image (75px - 6px) */
  }

  .timeline-marker::before {
    height: 69px;
  }
}

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

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

  /* Timeline mobile layout - stack vertically */
  .timeline-content {
    flex-direction: column;
    gap: 15px;
  }

  .project-timeline-image {
    width: 100%;
    height: 180px;
  }

  .project-info-container {
    padding-top: 0;
  }

  .projects-timeline {
    padding-left: 10px;
  }

  .timeline-item {
    gap: 15px;
  }

  /* Adjust dot position for 180px image height */
  .timeline-marker {
    padding-top: 84px; /* Centers dot at middle of 180px image (90px - 6px) */
  }

  .timeline-marker::before {
    height: 84px;
  }
}

/* Loading animation styles */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: #90959d;
  border-radius: 50%;
  animation: bounce 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}

/* Message transition effect */
.message.bot {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.message.bot.loading {
  min-width: 60px;
  background-color: #f0f0f0;
}

/* Ensure the chat container has smooth scrolling */
.chat-box {
  scroll-behavior: smooth;
}

/* =============================================================================
   Authentication UI Styles
   ============================================================================= */

/* Sidebar header with flexbox layout */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Sidebar authentication button */
.sidebar-auth-btn {
  font-size: 12px;
  padding: 4px 10px;
  min-width: 60px;
}

/* Navbar authentication button (deprecated - kept for backwards compatibility) */
.navbar-auth-btn {
  font-size: 14px;
  padding: 6px 12px;
  margin-left: 10px;
  min-width: 70px;
}

/* User greeting in navbar */
.user-greeting {
  color: #d4a017;
  font-weight: 500;
  margin-left: 10px;
  font-size: 14px;
}

/* User profile display in sidebar */
.user-profile-display {
  padding: 12px;
  background: transparent;
  border-left: 3px solid #fae29c;
  padding-left: 15px;
  margin-bottom: 10px;
}

.user-profile-display p {
  margin: 6px 0;
  color: #444;
  font-size: 0.95em;
}

.user-profile-display strong {
  color: #333;
  font-weight: 600;
}

.auth-note {
  color: #666;
  font-style: italic;
  font-size: 0.9em;
  margin-top: 8px;
}

/* Auth prompt in sidebar */
.auth-prompt {
  color: #666;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 10px;
}

.auth-prompt a {
  color: #d4a017;
  text-decoration: none;
  font-weight: 500;
}

.auth-prompt a:hover {
  border-bottom: 1px solid #d4a017;
}

/* Error message in login modal */
.error-message {
  background-color: #fee;
  color: #c33;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 14px;
  border-left: 3px solid #c33;
}
