/* Custom styling for Dileep Pandey's website */

/* Root variables for consistent theming */
:root {
  --md-primary-fg-color: #3f51b5;
  --md-primary-fg-color--light: #5c6bc0;
  --md-primary-fg-color--dark: #303f9f;
  --custom-accent: #ff4081;
  --custom-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --custom-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --custom-border-radius: 12px;
}

/* Enhanced typography */
.md-typeset h1 {
  background: var(--custom-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.md-typeset h2 {
  color: var(--md-primary-fg-color);
  font-weight: 700;
  border-bottom: 2px solid var(--md-primary-fg-color--light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.md-typeset h3 {
  color: var(--md-primary-fg-color--dark);
  font-weight: 600;
}

/* Enhanced blockquotes */
.md-typeset blockquote {
  border-left: 4px solid var(--custom-accent);
  background: linear-gradient(90deg, rgba(255, 64, 129, 0.05) 0%, transparent 100%);
  border-radius: 0 var(--custom-border-radius) var(--custom-border-radius) 0;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  font-style: italic;
  box-shadow: var(--custom-shadow);
}

.md-typeset blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--custom-accent);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  opacity: 0.3;
  font-family: serif;
}

/* Enhanced code blocks */
.md-typeset .highlight {
  border-radius: var(--custom-border-radius);
  box-shadow: var(--custom-shadow);
  overflow: hidden;
  margin: 1.5rem 0;
}

.md-typeset code {
  background: rgba(63, 81, 181, 0.1);
  color: var(--md-primary-fg-color--dark);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-weight: 500;
}

/* Enhanced navigation */
.md-tabs {
  background: var(--custom-gradient);
  box-shadow: var(--custom-shadow);
}

.md-tabs__item {
  transition: all 0.3s ease;
}

.md-tabs__item:hover {
  transform: translateY(-2px);
}

.md-tabs__link--active {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--custom-border-radius);
}

/* Enhanced cards and content sections */
.md-typeset .admonition {
  border-radius: var(--custom-border-radius);
  box-shadow: var(--custom-shadow);
  border: none;
  overflow: hidden;
}

.md-typeset .admonition-title {
  background: var(--custom-gradient);
  color: white;
  font-weight: 600;
  padding: 1rem 1.5rem;
  margin: 0;
}

/* Custom content cards */
.content-card {
  background: white;
  border-radius: var(--custom-border-radius);
  box-shadow: var(--custom-shadow);
  padding: 2rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(63, 81, 181, 0.1);
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.content-card h3 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
}

/* Enhanced social links */
.md-footer__inner .md-social {
  gap: 1rem;
}

.md-social__link {
  transition: all 0.3s ease;
  border-radius: 50%;
  padding: 0.5rem;
}

.md-social__link:hover {
  transform: translateY(-2px) scale(1.1);
  background: var(--custom-accent);
  color: white !important;
}

/* Header social links */
.md-header__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.md-header .md-social {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.md-header .md-social__link {
  color: white;
  padding: 0.3rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.md-header .md-social__link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Enhanced footer with better content organization */
.md-footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 100%;
  overflow: hidden;
}

.md-footer__inner {
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
  /* Large screens: 4 columns */
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.footer-section {
  color: white;
  text-align: center;
}

.footer-section h3 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

.footer-section li {
  margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-bottom .md-social {
  justify-content: center;
  gap: 1.5rem;
}

/* Separate bottom footer section */
.separate-footer {
  background: linear-gradient(135deg, #4c63d2 0%, #5a4fcf 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1000;
}

.separate-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

/* Mobile: stack vertically for compact footer */
@media (max-width: 768px) {
  .separate-footer__inner {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.separate-footer__copyright {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  line-height: 1.2;
}

.separate-footer__copyright a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.separate-footer__copyright a:hover {
  opacity: 0.8;
}

.separate-footer__social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.separate-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.separate-footer__social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.separate-footer__social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Medium screens: 2 columns, 2 rows */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small screens: 1 column */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .md-header .md-social {
    display: none;
    /* Hide header social on mobile to save space */
  }
}

/* Extra small screens: tighter spacing */
@media (max-width: 480px) {
  .footer-content {
    gap: 1rem;
  }

  .md-footer__inner {
    padding: 1.5rem 0;
  }

  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  /* Separate footer responsive */
  .separate-footer__inner {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .separate-footer__social {
    gap: 0.75rem;
  }

  .separate-footer__social-link {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .separate-footer__social-link svg {
    width: 14px;
    height: 14px;
  }
}

/* Poetry-specific styling */
.poetry-verse {
  background: linear-gradient(135deg, rgba(103, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-left: 4px solid var(--md-primary-fg-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--custom-border-radius) var(--custom-border-radius) 0;
  font-family: 'Georgia', serif;
  line-height: 1.8;
}

/* Photography grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.photo-card {
  background: white;
  border-radius: var(--custom-border-radius);
  overflow: hidden;
  box-shadow: var(--custom-shadow);
  transition: all 0.3s ease;
}

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

/* Instagram and YouTube embed styling */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.media-card {
  background: white;
  border-radius: var(--custom-border-radius);
  overflow: hidden;
  box-shadow: var(--custom-shadow);
  transition: all 0.3s ease;
  position: relative;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.media-card .media-title {
  padding: 1rem 1.5rem 0.5rem;
  color: var(--md-primary-fg-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.media-card .media-description {
  padding: 0 1.5rem 1rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.9rem;
  margin: 0;
}

/* Instagram embed specific styling */
.instagram-embed {
  border-radius: var(--custom-border-radius);
  overflow: hidden;
  box-shadow: var(--custom-shadow);
  margin: 1.5rem 0;
  background: white;
}

.instagram-embed blockquote {
  margin: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* YouTube video responsive container */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 1.5rem 0;
  border-radius: var(--custom-border-radius);
  overflow: hidden;
  box-shadow: var(--custom-shadow);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--custom-border-radius);
}

/* Enhanced link embeds styling */
.link-embed {
  border-radius: var(--custom-border-radius) !important;
  box-shadow: var(--custom-shadow) !important;
  border: 1px solid rgba(63, 81, 181, 0.1) !important;
  transition: all 0.3s ease !important;
  margin: 1.5rem 0 !important;
  overflow: hidden !important;
}

.link-embed:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Photography section layout */
.photography-section {
  margin: 3rem 0;
}

.photography-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--md-primary-fg-color);
}

.photography-section .section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--md-default-fg-color--light);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Read Story button */
.read-more-btn {
  display: inline-block;
  background: var(--md-primary-fg-color);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
  border: 2px solid var(--md-primary-fg-color);
}

.read-more-btn:hover {
  background: transparent;
  color: var(--md-primary-fg-color) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Story card with thumbnail */
.story-card {
  background: var(--md-default-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.story-thumbnail {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.story-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-card:hover .story-thumbnail img {
  transform: scale(1.05);
}

.story-content {
  padding: 1.5rem;
}

.story-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--md-default-fg-color);
  font-size: 1.25rem;
  font-weight: 600;
}

.story-content p {
  margin: 0 0 1rem 0;
  color: var(--md-default-fg-color--light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Story hero image */
.story-hero-image {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.story-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* About Page Styles */
.about-hero {
  background: linear-gradient(135deg, var(--md-primary-fg-color--light), var(--md-primary-fg-color));
  border-radius: 16px;
  padding: 3rem;
  margin: 2rem 0;
  color: white;
  text-align: center;
}

.about-intro .lead-text {
  font-size: 1.25rem;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

/* Certifications Grid */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.cert-category {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cert-category h3 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cert-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin: 0.5rem 0;
  background: var(--md-code-bg-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid var(--md-default-fg-color--lightest);
  cursor: pointer;
  position: relative;
}

.cert-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--md-primary-fg-color);
  background: var(--md-default-bg-color);
}

.cert-item::after {
  content: '🔍';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-item:hover::after {
  opacity: 0.6;
}

/* Certificate images */
.cert-image {
  width: 80px;
  height: 80px;
  margin-right: 1.25rem;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--md-default-fg-color--lightest);
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cert-details h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
}

.cert-issuer {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  color: var(--md-default-fg-color--light);
}

.cert-date {
  margin: 0 0 0.25rem 0;
  font-size: 0.8rem;
  color: var(--md-primary-fg-color);
  font-weight: 500;
}

.cert-verify {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: white !important;
  background: var(--md-primary-fg-color);
  text-decoration: none !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  position: relative;
  margin-top: 0.5rem;
}

.cert-verify:hover {
  background: var(--md-primary-fg-color--dark, #3f51b5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white !important;
  text-decoration: none;
}

.cert-verify::after {
  content: '↗';
  font-size: 0.9rem;
}

.cert-skills {
  margin: 0.25rem 0 0 0;
  font-size: 0.75rem;
  color: var(--md-default-fg-color--light);
  font-style: italic;
  line-height: 1.4;
}

/* Certificate Image Modal */
.cert-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.cert-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.cert-modal-content {
  position: relative;
  max-width: 80%;
  max-height: 70%;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease;
  overflow: hidden;
}

.cert-modal-image {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.cert-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--md-primary-fg-color);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.cert-modal-close:hover {
  background: var(--md-accent-fg-color);
  transform: scale(1.1);
}

.cert-modal-title {
  text-align: center;
  margin: 1rem 0 0 0;
  color: var(--md-default-fg-color);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Modal Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Skills Section */
.skills-section {
  margin: 2rem 0;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.skill-item {
  background: var(--md-code-bg-color);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--md-primary-fg-color);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--md-primary-fg-color--light);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 2rem 0;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  background: var(--md-primary-fg-color);
  color: white;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
  z-index: 2;
  border: 4px solid var(--md-default-bg-color);
  text-align: center;
  line-height: 1.2;
}

.timeline-content {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0 2rem;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--md-primary-fg-color);
  font-size: 1.1rem;
}

.timeline-content p {
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
}

.timeline-company {
  color: var(--md-primary-fg-color) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  margin: 0 0 0.75rem 0 !important;
}

.timeline-tech {
  background: var(--md-code-bg-color);
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--md-default-fg-color--light);
  font-style: italic;
  border-left: 3px solid var(--md-primary-fg-color--light);
  margin-top: 0.75rem;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.value-item h4 {
  margin: 0 0 1rem 0;
  color: var(--md-primary-fg-color);
  font-size: 1.1rem;
}

.value-item p {
  margin: 0;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  font-size: 0.95rem;
}

/* Connect Section */
.connect-section {
  background: var(--md-code-bg-color);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
}

.connect-section a {
  color: var(--md-primary-fg-color);
  text-decoration: none;
  font-weight: 500;
}

.connect-section a:hover {
  text-decoration: underline;
}

/* About Page Mobile Responsive */
@media (max-width: 768px) {
  .about-hero {
    padding: 2rem 1.5rem;
  }
  
  .about-intro .lead-text {
    font-size: 1.1rem;
  }
  
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .timeline::before {
    left: 50px;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-marker {
    width: 80px;
    height: 80px;
    font-size: 0.75rem;
  }
  
  .timeline-content {
    margin-left: 1rem;
    margin-right: 0;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .value-item {
    padding: 1.5rem 1rem;
  }
}

/* Enhanced search */
.md-search__form {
  border-radius: var(--custom-border-radius);
  box-shadow: var(--custom-shadow);
}

/* Blog post styling */
.blog-post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(63, 81, 181, 0.05);
  border-radius: var(--custom-border-radius);
  border-left: 4px solid var(--md-primary-fg-color);
}

.blog-tag {
  background: var(--md-primary-fg-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-tag:hover {
  background: var(--custom-accent);
  transform: translateY(-1px);
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .md-typeset h1 {
    font-size: 2rem;
  }

  .content-card {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .poetry-verse {
    padding: 1rem;
  }

  /* Mobile responsive media grid */
  .media-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }

  .media-card .media-title {
    padding: 0.75rem 1rem 0.5rem;
    font-size: 1rem;
  }

  .media-card .media-description {
    padding: 0 1rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Story card responsive design */
  .story-card .story-thumbnail {
    height: 200px;
  }
  
  .story-card .story-content {
    padding: 1.25rem;
  }
  
  .story-card .story-content h3 {
    font-size: 1.15rem;
  }

  /* Certificate responsive design */
  .cert-image {
    width: 70px;
    height: 70px;
    margin-right: 1rem;
  }

  .photography-section {
    margin: 2rem 0;
  }

  .photography-section .section-description {
    font-size: 1rem;
    margin: 0 auto 2rem;
    padding: 0 1rem;
  }

  /* Responsive video containers */
  .video-container {
    margin: 1rem 0;
  }

  .instagram-embed,
  .link-embed {
    margin: 1rem 0 !important;
  }
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] {
  --custom-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --md-primary-fg-color: #7c4dff;
  --md-primary-fg-color--light: #9575ff;
  --md-primary-fg-color--dark: #651fff;
}

/* Dark mode typography fixes */
[data-md-color-scheme="slate"] .md-typeset h1 {
  background: linear-gradient(135deg, #bb86fc 0%, #7c4dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-md-color-scheme="slate"] .md-typeset h2 {
  color: #bb86fc;
  border-bottom-color: #7c4dff;
}

[data-md-color-scheme="slate"] .md-typeset h3 {
  color: #9575ff;
}

[data-md-color-scheme="slate"] .md-typeset h4,
[data-md-color-scheme="slate"] .md-typeset h5,
[data-md-color-scheme="slate"] .md-typeset h6 {
  color: #bb86fc;
}

[data-md-color-scheme="slate"] .content-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-md-color-scheme="slate"] .content-card h3 {
  color: #bb86fc;
}

[data-md-color-scheme="slate"] .md-typeset blockquote {
  background: linear-gradient(90deg, rgba(255, 64, 129, 0.1) 0%, transparent 100%);
}

/* Fix footer section headers in dark mode */
[data-md-color-scheme="slate"] .footer-section h3 {
  color: white;
}

/* Fix poetry verse styling in dark mode */
[data-md-color-scheme="slate"] .poetry-verse {
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, rgba(124, 77, 255, 0.1) 100%);
  border-left-color: #bb86fc;
}

/* Fix blog post meta styling in dark mode */
[data-md-color-scheme="slate"] .blog-post-meta {
  background: rgba(187, 134, 252, 0.1);
  border-left-color: #bb86fc;
}

/* Fix blog tags in dark mode */
[data-md-color-scheme="slate"] .blog-tag {
  background: #7c4dff;
}

[data-md-color-scheme="slate"] .blog-tag:hover {
  background: #651fff;
}

/* Ensure all custom elements adapt to dark mode */
[data-md-color-scheme="slate"] .md-typeset code {
  background: rgba(187, 134, 252, 0.15);
  color: #bb86fc;
}

/* Dark mode support for verify button */
[data-md-color-scheme="slate"] .cert-verify {
  color: white !important;
  background: #7c4dff;
}

[data-md-color-scheme="slate"] .cert-verify:hover {
  background: #651fff !important;
  color: white !important;
}

/* Light mode verify button enhancement */
[data-md-color-scheme="default"] .cert-verify {
  color: white !important;
  background: #3f51b5;
}

[data-md-color-scheme="default"] .cert-verify:hover {
  background: #303f9f !important;
  color: white !important;
}

/* Dark mode support for media embeds */
[data-md-color-scheme="slate"] .media-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-md-color-scheme="slate"] .media-card .media-title {
  color: #bb86fc;
}

[data-md-color-scheme="slate"] .media-card .media-description {
  color: rgba(255, 255, 255, 0.7);
}

[data-md-color-scheme="slate"] .instagram-embed {
  background: rgba(255, 255, 255, 0.05);
}

[data-md-color-scheme="slate"] .link-embed {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-md-color-scheme="slate"] .photography-section h2 {
  color: #bb86fc;
}

[data-md-color-scheme="slate"] .photography-section .section-description {
  color: rgba(255, 255, 255, 0.7);
}

/* Animation for page transitions */
.md-content {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Home Page Highlights */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.highlight-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

.highlight-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.highlight-card {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.highlight-card-link:hover .highlight-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--md-primary-fg-color);
}

.highlight-card h4 {
  margin: 0 0 0.5rem 0;
  color: var(--md-primary-fg-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.highlight-card em {
  color: var(--md-default-fg-color--light);
  font-size: 0.9rem;
  font-style: italic;
  display: block;
  margin-bottom: 1rem;
}

.highlight-card p {
  color: var(--md-default-fg-color--light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.highlight-card .read-more-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Poetry preview styling */
.poetry-preview {
  background: var(--md-code-bg-color);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--md-primary-fg-color--light);
  font-family: 'Georgia', serif;
  font-style: italic;
  line-height: 1.7;
  color: var(--md-default-fg-color--light);
  margin: 1rem 0 1.5rem 0;
}

/* Explore section */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.explore-card {
  background: linear-gradient(135deg, var(--md-primary-fg-color--light), var(--md-primary-fg-color));
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  color: white;
  position: relative;
  overflow: hidden;
}

.explore-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.explore-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.explore-card h3 {
  margin: 0 0 0.5rem 0;
  color: white !important;
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.explore-card h3 a {
  color: white !important;
  text-decoration: none;
}

.explore-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Dark mode support for highlights */
[data-md-color-scheme="slate"] .highlight-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-md-color-scheme="slate"] .highlight-card-link:hover .highlight-card {
  border-color: #bb86fc;
  background: rgba(255, 255, 255, 0.08);
}

[data-md-color-scheme="slate"] .highlight-card h4 {
  color: #bb86fc;
}

[data-md-color-scheme="slate"] .poetry-preview {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #bb86fc;
}

[data-md-color-scheme="slate"] .explore-card {
  background: linear-gradient(135deg, #7c4dff, #651fff);
}

/* Mobile responsiveness for highlights */
@media (max-width: 768px) {
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .highlight-card {
    padding: 1.25rem;
  }
  
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .explore-card {
    padding: 1.5rem 1rem;
  }
  
  .explore-card h3 {
    font-size: 1rem;
  }
  
  .explore-card p {
    font-size: 0.85rem;
  }
}

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

/* Enhanced focus states for accessibility */
.md-nav__link:focus,
.md-tabs__link:focus,
button:focus {
  outline: 2px solid var(--custom-accent);
  outline-offset: 2px;
  border-radius: 4px;
}