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

:root {
  --primary-color: #4338ca;
  --primary-bg: #4338ca;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --bg-card: rgba(255, 255, 255, 0.95);
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  line-height: 1.6;
}

/* Header Navbar */
.navbar {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo a {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 12px rgba(124, 58, 237, 0.25);
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-image:
    linear-gradient(
      135deg,
      rgba(67, 56, 202, 0.9) 0%,
      rgba(139, 92, 246, 0.9) 100%
    ),
    url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  background-size:
    cover,
    50px 50px;
  background-position: center;
  padding: 4rem 2rem;
  text-align: center;
  overflow: visible;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.homepage-focus {
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-weight: 400;
  text-align: center;
}

/* Search Box */
.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  z-index: 10;
}

.search-box input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  background: var(--bg-primary);
  box-shadow: var(--shadow-xl);
  transition: all 0.3s ease;
  outline: none;
}

.search-box input:focus {
  box-shadow:
    0 0 0 4px rgba(67, 56, 202, 0.1),
    var(--shadow-xl);
  transform: translateY(-2px);
}

.search-box input::placeholder {
  color: var(--text-light);
}

/* Suggestions List */
.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  margin-top: 0.5rem;
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: visible;
  z-index: 1000;
  display: none;
}

/* Custom scrollbar for suggestions list */
.suggestions-list::-webkit-scrollbar {
  width: 8px;
}

.suggestions-list::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 12px;
}

.suggestions-list::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.suggestions-list li {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  line-height: 1.4;
}

.suggestions-list li:last-child {
  border-bottom: none;
}

.suggestions-list li:hover {
  background-color: var(--bg-secondary);
}

.suggestions-list li:first-child {
  border-radius: 12px 12px 0 0;
}

.suggestions-list li:last-child {
  border-radius: 0 0 12px 12px;
}

/* Resume Sections */
.resume-section {
  padding: 4rem 2rem;
  background: var(--bg-primary);
}

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

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

/* Category page: wider container + row with col-md-9 / col-md-3 */
.container--category {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.category-page-layout.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

/* Below md: stack; at md and up: only apply 9/3 when sidebar exists */
.category-main.col-md-9 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.category-sidebar-col.col-md-3 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.category-page-layout.row:not(.has-sidebar) .category-sidebar-col {
  display: none;
}

@media (min-width: 768px) {
  .category-page-layout.row.has-sidebar .category-main.col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }

  .category-page-layout.row.has-sidebar .category-sidebar-col.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

.category-main {
  min-width: 0;
}

.category-main .domain-content,
.category-main .container {
  max-width: none;
}

.category-breadcrumb {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.category-sidebar-col {
  order: 2;
}

@media (min-width: 768px) {
  .category-sidebar-col {
    order: 2;
  }
}

.category-sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Category sidebar — modern blocks */
.category-sidebar-block {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.category-sidebar-block:last-child {
  margin-bottom: 0;
}

.category-sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.category-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.category-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.category-sidebar-link::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.4;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.category-sidebar-link:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

.category-sidebar-link:hover::after {
  opacity: 1;
  transform: translateX(2px) rotate(45deg);
}

.category-sidebar-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .category-sidebar-block {
    flex: 1 1 100%;
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
}

/* Resume Grid */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.resume-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

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

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.no-results {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem;
  grid-column: 1 / -1;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer .logo-accent {
  color: #ffffff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Card Styles (for resume.php) */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.card h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.card h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.exp {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.exp:last-child {
  border-bottom: none;
}

/* New Resume Page Styles */
.resume-page-container {
  max-width: 1600px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Two-column layout: main (col-md-9) + sidebar (col-md-3) */
.resume-layout-row {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 25%);
  gap: 2rem;
  align-items: start;
}

.resume-main-col.col-md-9 {
  min-width: 0;
}

/* Sidebar blocks: Resources vs Resumes you may like */
.resume-sidebar-block {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border-radius: 12px;
}

.resume-sidebar-block:last-child {
  margin-bottom: 0;
}

.resume-sidebar-block--resources {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.06) 0%,
    rgba(34, 197, 94, 0.02) 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-left: 4px solid #22c55e;
}

.resume-sidebar-block--resources .resume-sidebar-title {
  color: #15803d;
  border-bottom-color: rgba(34, 197, 94, 0.35);
}

.resume-sidebar-block--resources .resume-sidebar-list a::before {
  content: "📄";
  font-size: 0.85rem;
}

.resume-sidebar-block--resources .resume-sidebar-list a:hover {
  color: #15803d;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.12);
}

.resume-sidebar-block--resumes {
  background: linear-gradient(
    135deg,
    rgba(67, 56, 202, 0.06) 0%,
    rgba(67, 56, 202, 0.02) 100%
  );
  border: 1px solid rgba(67, 56, 202, 0.25);
  border-left: 4px solid var(--primary-color);
}

.resume-sidebar-block--resumes .resume-sidebar-title {
  color: var(--primary-color);
  border-bottom-color: rgba(67, 56, 202, 0.35);
}

.resume-sidebar-block--resumes .resume-sidebar-list a::before {
  content: "→";
}

.resume-sidebar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

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

.resume-sidebar-list li {
  margin-bottom: 0.65rem;
}

.resume-sidebar-list a {
  display: block;
  padding: 0.6rem 0.75rem 0.6rem 2rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}

.resume-sidebar-list a::before {
  content: "→";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--primary-color);
  opacity: 0.9;
}

.resume-sidebar-list a:hover {
  color: var(--primary-color);
  background: rgba(67, 56, 202, 0.08);
  border-color: rgba(67, 56, 202, 0.35);
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.12);
}

/* Header Section - Distinct from resumes */
.resume-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 3rem;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.resume-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 0;
}

.resume-header-left {
  flex: 1;
  align-self: center;
}

.resume-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #ffffff;
  line-height: 1.2;
}

.resume-description {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  margin: 0;
}

.resume-header-right {
  flex-shrink: 0;
  width: 273px;
  min-height: 385px;
}

.resume-header-image {
  width: 273px;
  height: 385px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: block;
}

.resume-header-image-placeholder {
  width: 273px;
  height: 385px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Resume Wrapper - Individual resume cards */
/* Resume Item Title */
.resume-item-title {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.resume-item-title h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.resume-wrapper {
  background: #fff;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.resume-page-title {
  margin-bottom: 2rem;
}

.resume-page-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.resume-objective-section {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fff;
  border-left: 3px solid var(--primary-color);
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.objective-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.resume-skills-section {
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.resume-skills-section .section-label {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-bg);
  color: #ffffff;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

.resume-main-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.resume-preview-column {
  display: flex;
  align-items: flex-start;
}

.resume-preview-card {
  width: 100%;
  background: #fff;
  overflow: hidden;
  border: 2px solid rgba(67, 56, 202, 0.25);
  box-shadow:
    0 4px 16px rgba(67, 56, 202, 0.12),
    0 0 0 1px rgba(67, 56, 202, 0.06);
  border-radius: 8px;
}

.resume-preview-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.resume-preview-card {
  position: sticky;
  top: 100px;
  align-self: start;
}

.resume-preview-wrapper {
  overflow: hidden;
}

.resume-preview-card.resume-preview-wrapper {
  position: sticky;
  overflow: hidden;
}

.resume-preview-card:hover {
  border-color: rgba(67, 56, 202, 0.45);
  box-shadow:
    0 8px 24px rgba(67, 56, 202, 0.18),
    0 0 0 1px rgba(67, 56, 202, 0.1);
}

.resume-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.resume-preview-wrapper:hover .resume-preview-overlay {
  opacity: 1;
  pointer-events: auto;
}

.view-pdf-button {
  padding: 0.75rem 1.5rem;
  background: var(--primary-bg);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.view-pdf-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.resume-preview-placeholder {
  aspect-ratio: 8.5 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.placeholder-content {
  text-align: center;
  color: var(--text-light);
}

.placeholder-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.resume-description-column {
  display: flex;
  align-items: flex-start;
}

.description-card {
  width: 100%;
  background: #fff;
  padding: 1rem;
}

.description-card .section-label {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.description-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.4;
  font-size: 0.875rem;
}

.description-list li {
  margin-bottom: 0.4rem;
}

.description-list li:last-child {
  margin-bottom: 0;
}

.achievements-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.achievements-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

.achievements-list-formatted li {
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
}

.achievements-list-formatted li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.9rem;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-card-content {
  flex: 1;
}

.info-card-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.15rem;
}

.info-card-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.resume-rating-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  text-align: center;
}

.rating-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rating-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.rating-count {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.resume-details-section {
  margin-top: 2rem;
  border-top: 2px solid var(--border-color);
  padding-top: 2rem;
}

.toggle-details-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--primary-bg);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.toggle-details-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.resume-details-content {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.detail-text {
  color: var(--text-secondary);
  line-height: 1.8;
}

.detail-text p {
  margin-bottom: 1rem;
}

.experience-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.experience-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.experience-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.experience-company {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}

.experience-description {
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.achievements-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.8;
}

.achievements-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Old Resume Page Styles (keeping for backward compatibility) */
.resume-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.resume-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.resume-header-left {
  flex: 1;
  align-self: center;
}

.resume-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #ffffff;
  line-height: 1.2;
}

.resume-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  margin: 0;
}

.resume-header-right {
  flex-shrink: 0;
  width: 273px;
  min-height: 385px;
}

.resume-header-image {
  width: 273px;
  height: 385px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: block;
}

.resume-header-image-placeholder {
  width: 273px;
  height: 385px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Rating in header - different style */
.resume-header .resume-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Rating in resume cards */
.resume-wrapper .resume-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
}

.star {
  font-size: 1.5rem;
  color: #ffd700;
  line-height: 1;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.star-clickable {
  cursor: pointer;
}

.star-clickable:hover {
  transform: scale(1.2);
  color: #ffed4e;
}

.star-full {
  color: #ffd700;
}

.star-half {
  color: #ffd700;
  opacity: 0.6;
}

.star-empty {
  color: rgba(255, 255, 255, 0.3);
}

.star-clickable.star-empty:hover {
  color: rgba(255, 255, 255, 0.6);
}

.star-disabled {
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  pointer-events: none;
}

.star-disabled:hover {
  transform: none !important;
}

.rating-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.rating-count {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.resume-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.resume-section {
  margin-bottom: 2.5rem;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

.summary-content {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.summary-content p {
  color: var(--text-primary);
  line-height: 1.8;
  margin: 0;
  font-size: 1.05rem;
}

.experience-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.experience-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.experience-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.experience-company {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
}

.experience-description {
  color: var(--text-secondary);
  line-height: 1.8;
}

.experience-description p {
  margin-bottom: 1rem;
}

.experience-description p:last-child {
  margin-bottom: 0;
}

.education-content,
.achievements-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.education-content p,
.achievements-content p {
  margin-bottom: 1rem;
}

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

.achievements-list li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.8;
}

.achievements-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.resume-image-section {
  text-align: center;
}

.resume-image-container {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.resume-preview-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* Format lists in resume content */
.resume-section ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.resume-section ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.8;
}

.resume-section ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.resume-section ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.resume-section ol li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .nav-container {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

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

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .footer-links {
    justify-content: center;
  }

  .search-box input {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .resume-page-container {
    padding: 0 1rem;
  }

  .resume-layout-row {
    grid-template-columns: 1fr;
  }

  .resume-wrapper {
    padding: 1.5rem;
  }

  .resume-page-title h1 {
    font-size: 2rem;
  }

  .resume-main-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .rating-container {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .resume-section {
    padding: 2rem 1rem;
  }

  .resume-header {
    padding: 1.5rem;
  }

  .resume-header-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .resume-title {
    font-size: 2rem;
  }

  .resume-header-right {
    width: 100%;
    min-height: auto;
  }

  .resume-header-image,
  .resume-header-image-placeholder {
    width: 100%;
    height: 385px;
    object-fit: contain;
  }

  .resume-card {
    padding: 1.5rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .resume-page-container {
    padding: 0 0.75rem;
  }

  .resume-wrapper {
    padding: 1rem;
  }

  .resume-page-title h1 {
    font-size: 1.75rem;
  }

  .objective-text {
    font-size: 0.95rem;
  }

  .skill-tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .info-card {
    padding: 1rem;
  }

  .info-card-icon {
    font-size: 1.5rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
a:focus,
input:focus,
button:focus {
  outline: none;
}

/* SEO Content Section Styles */
.seo-content-section {
  padding: 3rem 0;
  background: var(--bg-primary);
  margin-top: 2rem;
}

.seo-content-section h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.seo-content-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding: 5px;
  /* max-width: 800px; */
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  height: 1px;
  overflow: hidden;
}

/* SEO Content Expansion on Resume Pages */
.seo-content-expansion {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.seo-content-expansion h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.seo-content-expansion h2:first-child {
  margin-top: 0;
}

.seo-content-expansion p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.seo-content-expansion ul {
  margin-bottom: 1.5rem;
}

.seo-content-expansion li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.last-updated {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 1rem;
}

@media (max-width: 768px) {
  .seo-content-section h2 {
    font-size: 1.5rem;
  }

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

  .seo-content-expansion {
    padding: 1.5rem;
  }

  .seo-content-expansion h2 {
    font-size: 1.25rem;
  }
}

/* Breadcrumb Navigation */
.breadcrumb {
  max-width: 1600px;
  margin: 0 0 2rem 0;
  padding: 1.25rem 2rem;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.9rem;
  align-items: center;
  font-size: 1.1rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  font-size: inherit;
}

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

.breadcrumb-separator {
  color: var(--text-light);
  font-size: 1.35rem;
  line-height: 1;
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
  font-size: inherit;
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 1rem 1rem;
  }

  .breadcrumb-list {
    font-size: 1rem;
    gap: 0.6rem;
  }

  .breadcrumb-separator {
    font-size: 1.15rem;
  }
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* SEO Links Section - Visible but minimal */
.seo-links-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.seo-links {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
}

.seo-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .seo-links-section {
    padding: 1rem;
  }

  .seo-links {
    font-size: 0.8rem;
    line-height: 1.6;
  }
}

/* ============================================
   Domain / Category page (LCP + CLS optimized)
   ============================================ */

.domain-hero,
.domain-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
}

.domain-hero {
  background: var(--bg-primary);
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.domain-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.domain-intro {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  max-width: 56ch;
}

.domain-content {
  background: var(--bg-primary);
  margin-bottom: 1px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.domain-content:first-of-type {
  margin-top: 0;
}

.domain-content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.domain-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
  line-height: 1.35;
}

.domain-content h3:first-child {
  margin-top: 0;
}

.domain-content p,
.domain-content li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}

.domain-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.domain-content li {
  margin-bottom: 0.5rem;
}

.domain-content .job-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* Compact resume sample cards (no icon, smaller) */
.domain-content .job-grid .resume-card--compact,
.resume-card.resume-card--compact {
  padding: 0.75rem 1rem;
  align-items: flex-start;
  text-align: left;
}

.resume-card.resume-card--compact .card-title {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.resume-card.resume-card--compact .card-meta {
  font-size: 0.8rem;
}

.resume-card.resume-card--compact:hover {
  transform: translateY(-2px);
}

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

@media (max-width: 576px) {
  .domain-content .job-grid {
    grid-template-columns: 1fr;
  }
}

.domain-content .muted {
  font-size: 0.9375rem;
  color: var(--text-light);
  font-style: italic;
  margin: 1rem 0 0;
}

/* Category page: resume samples — full width only (outside container) */
.category-resume-full {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border-color);
}

.category-resume-full-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.category-resume-section .category-resume-heading {
  margin-bottom: 1rem;
}

.category-job-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.category-job-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.category-job-link::after {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.45;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.category-job-link:hover {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.category-job-link:hover::after {
  opacity: 1;
  transform: translateX(3px) rotate(45deg);
}

.category-job-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.category-job-link-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .category-job-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Category content blocks (overview, roles, skills, tips, FAQs) */
.category-content-section .category-block {
  margin-bottom: 2rem;
}

.category-content-section .category-block:last-child {
  margin-bottom: 0;
}

.category-overview {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.category-list--inline {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-list--inline li {
  margin: 0;
  padding: 0.25rem 0.6rem;
  background: var(--bg-secondary, #f5f5f5);
  border-radius: 4px;
  font-size: 0.9375rem;
}

.category-faqs .faq-list {
  margin: 0;
  padding: 0;
}

.category-faqs .faq-list dt {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1rem 0 0.35rem;
}

.category-faqs .faq-list dt:first-child {
  margin-top: 0;
}

.category-faqs .faq-list dd {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 0 1rem;
}

h1,
h2,
h3 {
  font-display: swap;
}
