/* main.css */
/* Modern Color Palette Variables */

:root {
  --primary-color: #5f6caf;     /* Softer purple-blue */
  --secondary-color: #38b2ac;   /* Teal */
  --accent-color: #ed8936;      /* Soft orange */
  --light-color: #f7fafc;       /* Very light gray-blue for backgrounds */
  --dark-color: #2d3748;        /* Medium dark blue-gray for text */
  --success-color: #48bb78;     /* Medium green */
  --warning-color: #ecc94b;     /* Medium yellow */
  --danger-color: #e53e3e;      /* Medium red */
  --gray-100: #f7fafc;          /* Lightest to darkest grays */
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;

  /* Category Colors - Balanced for light theme */
  --medicine-color: #5f6caf;    /* Softer purple-blue */
  --technology-color: #38b2ac;  /* Teal */
  --security-color: #e53e3e;    /* Medium red */
  --other-color: #ed8936;       /* Soft orange */

  /* Journal Categories */
  --daily-color: #48bb78;       /* Medium green */
  --special-color: #ecc94b;     /* Medium yellow */
}

html, body {
	height: 100%;
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background-color: var(--light-color);
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  box-sizing: border-box;
}

/* Apply border-box sizing to all elements for consistent sizing */
*, *:before, *:after {
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--dark-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* Tables */
/* Book-style Table Styling that works with markdown-generated tables */

/* Wrapper div - will be automatically applied via JavaScript */
.table-wrapper {
  margin: 2.5rem 0;
  position: relative;
  overflow-x: auto;
  max-width: 100%;
  background: #fff9f0; /* Cream background for aged paper look */
  border: 1px solid rgba(160, 120, 85, 0.3);
  border-radius: 2px;
  box-shadow: 
    0 3px 6px rgba(0,0,0,0.16), 
    0 3px 6px rgba(0,0,0,0.23);
}

/* Style for all markdown tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Libre Baskerville', serif;
  min-width: 650px; /* Prevents extreme squishing */
}

/* Table headers */
thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #61412e; /* Rich brown color */
}

th {
  color: #f3e8d8;
  font-weight: 700;
  text-align: left;
  padding: 1rem 1.5rem;
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #8c6e4e;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
  letter-spacing: 0.05em;
  vertical-align: top;
  min-width: 100px; /* Minimum column width */
}

/* Intelligent wrapping for headers */
th {
  /* Allow text wrapping but prevent excessive wrapping */
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  
  /* These values ensure reasonable wrapping behavior */
  max-width: 300px;
  white-space: normal;
}

/* Table rows */
td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(160, 120, 85, 0.2);
  color: #382718;
  line-height: 1.6;
  vertical-align: top;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 100px; /* Matches the header min-width */
}

/* Last row no bottom border */
tr:last-child td {
  border-bottom: none;
}

/* Subtle zebra-striping effect */
tbody tr:nth-child(even) {
  background-color: rgba(160, 120, 85, 0.05);
}

/* Hover effect */
tbody tr:hover {
  background-color: rgba(160, 120, 85, 0.1);
}

/* Custom page number styling - add with JavaScript */
.table-page-number {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(60, 40, 20, 0.5);
  z-index: 2;
}

/* Table sizing strategy */
/* For tables with many columns, prevent extreme squishing */
table {
  /* Auto sizing with a minimum */
  table-layout: auto;
}

/* Tables with <= 5 columns get fixed layout for equal columns */
table.small-table {
  table-layout: fixed;
}

/* Optional: Custom scrollbar styling for a more vintage look */
.table-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: rgba(160, 120, 85, 0.1);
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(160, 120, 85, 0.5);
  border-radius: 5px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 120, 85, 0.7);
}

/* Add aged paper texture effect (optional) */
.table-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23a07855' fill-opacity='0.03'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* Add subtle book binding effect */
.table-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to right, 
    rgba(120, 80, 40, 0.2), 
    rgba(160, 120, 85, 0.05) 70%, 
    transparent 100%
  );
  border-right: 1px solid rgba(120, 80, 40, 0.1);
  pointer-events: none;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  th, td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Visual indicator for scrollable tables */
  .table-wrapper.scrollable::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, 
      rgba(160, 120, 85, 0.15),
      transparent 100%
    );
    pointer-events: none;
    z-index: 2;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  th, td {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    /* Set minimum width to prevent excessive wrapping */
    min-width: 80px;
  }
  
  /* Further reduce visual weight */
  .table-wrapper {
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  }
}

/* Additional styling for very long text in cells */
.truncate-text {
  position: relative;
  max-height: 6.4em; /* About 4 lines of text */
  overflow: hidden;
}

.truncate-text::after {
  content: '...';
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(to right, transparent, #fff9f0 30%);
  padding-left: 40px;
}

/* Print styles - ensure tables print nicely */
@media print {
  .table-wrapper {
    overflow: visible;
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
  
  th {
    background-color: #f3f3f3 !important;
    color: #000 !important;
    border-bottom: 1px solid #000;
  }
  
  .truncate-text {
    max-height: none;
    overflow: visible;
  }
  
  .truncate-text::after {
    display: none;
  }
}

/* Navigation */
.site-header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

.navbar-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Elegant CV Download Section with Animations */
.download-cv {
  margin: 2.5rem 0;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(95, 108, 175, 0.15), rgba(56, 178, 172, 0.15));
  border-radius: 16px;
  border: 1px solid rgba(95, 108, 175, 0.3);
  box-shadow: 0 10px 30px rgba(45, 55, 72, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Animated background elements */
.download-cv::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-color) 0%, rgba(237, 137, 54, 0) 70%);
  border-radius: 50%;
  opacity: 0.2;
  top: -50px;
  right: -50px;
  animation: float 15s ease-in-out infinite alternate;
}

.download-cv::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--secondary-color) 0%, rgba(56, 178, 172, 0) 70%);
  border-radius: 50%;
  opacity: 0.2;
  bottom: -40px;
  left: -40px;
  animation: float 12s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(15px, 15px) rotate(5deg); }
  100% { transform: translate(-15px, 5px) rotate(-5deg); }
}

.download-cv h3 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
  letter-spacing: 0.5px;
}

.download-cv h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: -0.5rem;
  right: -0.5rem;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4); /* light overlay for better contrast */
  border-radius: 8px;
  z-index: -1;
  filter: blur(2px);
}

@keyframes expand {
  0%, 100% { width: 40%; }
  50% { width: 60%; }
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  min-width: 180px;
}

.btn-cv i {
  margin-right: 10px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-cv::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%) rotate(45deg);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-cv:hover::before {
  transform: translateX(100%) rotate(45deg);
}

.btn-cv:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.btn-cv:hover i {
  transform: scale(1.2) rotate(10deg);
}

.medical-cv {
  background: linear-gradient(135deg, var(--secondary-color), #2c9e99);
  border: none;
}

.medical-cv:hover {
  background: linear-gradient(135deg, #2c9e99, var(--secondary-color));
}

.tech-cv {
  background: linear-gradient(135deg, var(--primary-color), #4a57a0);
  border: none;
}

.tech-cv:hover {
  background: linear-gradient(135deg, #4a57a0, var(--primary-color));
}

/* Animated icon effects */
.medical-cv i {
  position: relative;
}

.tech-cv i {
  position: relative;
}

.btn-cv:active {
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Floating animation for the entire section */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.download-buttons .btn-cv:nth-child(1) {
  animation: gentle-float 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

.download-buttons .btn-cv:nth-child(2) {
  animation: gentle-float 4s ease-in-out infinite;
  animation-delay: 1s;
}

/* Beautiful decoration elements */
.download-buttons::before {
  content: "✦";
  position: absolute;
  top: -15px;
  left: calc(50% - 60px);
  color: var(--accent-color);
  opacity: 0.5;
  font-size: 1.2rem;
  animation: twinkle 3s ease-in-out infinite;
}

.download-buttons::after {
  content: "✦";
  position: absolute;
  top: -15px;
  right: calc(50% - 60px);
  color: var(--accent-color);
  opacity: 0.5;
  font-size: 1.2rem;
  animation: twinkle 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* Button text enhancement */
.btn-cv span {
  position: relative;
  z-index: 1;
}

/* Responsive adjustments with animations preserved */
@media (max-width: 768px) {
  .download-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  
  .btn-cv {
    width: 80%;
  }
  
  .download-cv h3 {
    font-size: 1.5rem;
  }
  
  .download-cv {
    padding: 1.5rem 1rem;
  }
}

/* Cards */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-100);
}


.post-info h3, .project-info h3, .project-details h2 {
  font-family: "Winky Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

/* Blog Post Cards */
/* Blog Page Styling - Professional News Style */
.blog-page {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--light-color);
  color: #333;
  padding: 30px 0 50px;
}

.blog-page .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header styling */
.blog-page h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

/* Category filters */
.category-filters {
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}

.category-filters h2 {
  font-size: 1rem;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 10px;
  font-weight: 500;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.category {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category.all {
  background-color: #e9ecef;
  color: #495057;
}

.category.medicine {
  background-color: #d1e7dd;
  color: #0f5132;
}

.category.technology {
  background-color: #cfe2ff;
  color: #084298;
}

.category.security {
  background-color: #f8d7da;
  color: #842029;
}

.category.other {
  background-color: #e2e3e5;
  color: #41464b;
}

.category:hover {
  filter: brightness(0.95);
}

/* Posts list styling */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  display: flex;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid white;
  position: relative;
}

.post-thumbnail {
  flex: 0 0 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  /* Ensure image area extends full height */
  align-self: stretch;
  height: auto;
}


.post-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1));
}

.post-content {
  flex: 1;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
}

.post-content header {
  margin-bottom: 5px;
}

.post-content h2 {
  margin: 0 0 3px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.post-content h2 a {
  color: #121212;
  text-decoration: none;
  transition: color 0.2s;
}

.post-content h2 a:hover {
  color: #cc0000;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  color: #6c757d;
}

.post-meta time {
  font-weight: 500;
}

.post-meta .categories {
  display: inline-flex;
  gap: 5px;
}

.post-meta .category {
  padding: 3px 8px;
  font-size: 0.75rem;
}

.post-meta .tags {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tag {
  background-color: #f0f0f0;
  color: #666;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
}

.tag:hover {
  background-color: #e5e5e5;
}

.excerpt {
  color: #495057;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
  align-self: flex-start;
}

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

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

.pagination a {
  display: inline-block;
  padding: 8px 15px;
  background-color: #fff;
  color: #333;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination a:hover {
  background-color: #f8f9fa;
  border-color: #c6c7c8;
}

.pagination .page_number {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Featured post (first post) */
.posts-list article:first-child {
  flex-direction: column;
  margin-bottom: 10px;
}

.posts-list article:first-child .post-thumbnail {
  flex: 0 0 350px;
  width: 100%;
}

.posts-list article:first-child .post-content h2 {
  font-size: 1.8rem;
}

/* Breaking news banner for latest post */
.posts-list article:first-child::before {
  content: 'Latest Post';
  position: absolute;
  top: 15px;
  left: 0;
  background-color: #cc0000;
  color: white;
  padding: 5px 15px;
  font-weight: 700;
  font-size: 0.8rem;
  z-index: 10;
  text-transform: uppercase;
}


.posts-list article:first-child .post-thumbnail {
  border-right: none;
  border-bottom: 1px solid #eaeaea;
}

/* Responsive styling */
@media (max-width: 900px) {
  .post-card {
    flex-direction: column;
  }
  
  .post-thumbnail {
    flex: 0 0 200px;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eaeaea;
  }
}

@media (max-width: 576px) {
  .blog-page h1 {
    font-size: 1.8rem;
  }
  
  .post-content h2 {
    font-size: 1.3rem;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .posts-list article:first-child .post-thumbnail {
    flex: 0 0 250px;
  }
  
  .posts-list article:first-child .post-content h2 {
    font-size: 1.5rem;
  }
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05);
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.project-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: var(--gray-200);
  color: var(--gray-700);
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.view-project {
  margin-top: auto;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.view-project:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Journal Entries */
/* Contact Page */
.contact-page {
  padding: 3rem 0;
  width: 100%;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  width: 100%;
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05);
}

.social-icon i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.social-icon.twitter i {
  color: #1DA1F2;
}

.social-icon.linkedin i {
  color: #0077B5;
}

.social-icon.github i {
  color: #333;
}

.social-icon.instagram i {
  color: #E1306C;
}

.social-icon.email i {
  color: var(--primary-color);
}

/* Contact Form */
.contact-form {
  margin-top: 3rem;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: var(--secondary-color);
}

/* Footer - Redesigned to be more compact */
.site-footer {
  background-color: var(--gray-800);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  padding: 0 15px; /* Add consistent padding */
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 1.5rem;
  padding-right: 1rem;
}

.footer-column h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

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

.footer-column a {
  color: var(--gray-400);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-500);
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* Responsive Design - Improved & Fixed */
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
  }
  
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .navbar-nav {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .nav-item {
    margin: 0 0.75rem 0.5rem;
  }

  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }

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

  .post-card {
    flex-direction: column;
  }

  .post-thumbnail {
    height: 150px;
  }

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

  .social-icon {
    flex: 0 0 calc(50% - 1rem);
    padding: 1rem;
  }
  
  .social-icon i {
    font-size: 1.5rem; /* Reduce icon size on smaller screens */
  }

  .contact-form {
    padding: 1.5rem;
  }
  
  /* Improved footer for mobile screens */
  .footer-content {
    justify-content: space-around;
    gap: 1rem;
    padding: 0 15px;
  }
  
  .footer-column {
    flex: 0 0 calc(50% - 1rem);
    min-width: 140px;
    padding-right: 0;
  }

  .footer-column h3 {
    font-size: 1rem;
  }

  .footer-column ul li {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  body {
    overflow-x: hidden;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .hero {
    padding: 2rem 0.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .navbar-brand {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .navbar-nav {
    justify-content: center;
  }
  
  .nav-item {
    margin: 0 0.5rem 0.5rem;
  }

  .social-icon {
    flex: 0 0 calc(50% - 0.5rem);
    padding: 0.75rem;
  }
  
  .social-icon i {
    font-size: 1.25rem; /* Further reduce icon size on very small screens */
  }
  
  .card-header, .card-body, .card-footer {
    padding: 1rem;
  }
  
  .post-content, .project-details, .entry-content {
    padding: 1rem;
  }
  
  /* Even more compact footer for very small screens */
  .site-footer {
    padding: 1.5rem 0;
  }
  
  .footer-content {
    padding: 0 15px;
  }

  .footer-column {
    flex: 0 0 100%;
    text-align: left;
    padding-left: 15px;
    margin-bottom: 1rem;
  }
  
  .footer-column h3 {
    font-size: 0.95rem;
  }
  
  .footer-column ul {
    display: block;
  }
  
  .footer-column ul li {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}

/* Fix for very small screens */
@media (max-width: 320px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .social-icon {
    padding: 0.5rem;
  }
  
  .social-icon i {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .footer-column {
    margin-bottom: 0.75rem;
  }
  
  .footer-column h3 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  .footer-column ul li {
    font-size: 0.8rem;
  }
  
  .footer-bottom {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.pagination a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Category/Tag Filters */
.category-filters,
.journal-categories {
  margin-bottom: 2rem;
  width: 100%;
}

.categories,
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.category-button {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.category-button:hover {
  transform: translateY(-3px);
}

.category-button.daily {
  background-color: var(--daily-color);
  color: white;
}

.category-button.all {
  background-color: var(--gray-800);
  color: white;
}

.category-button.special {
  background-color: var(--special-color);
  color: var(--dark-color);
}

/* Code Highlighting */
pre {
  background-color: var(--gray-800);
  color: white;
  padding: 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  width: 100%;
}

code {
  font-family: 'Fira Mono', monospace;
  font-size: 0.9rem;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .sidebar {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background-color: #fff;
  }

  .container {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1 0 auto; /* This makes the content area take all available space */
}

.site-footer {
	flex-shrink: 0; /* Prevents the footer from shrinking */
}

/* For mobile screens */
@media (max-width: 768px) {
  .site-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
  }

  /* Keep all the other mobile styles you already have */
  .footer-column:not(:nth-child(2)) {
    display: none;
  }

  .footer-column:nth-child(2) {
    flex: 1;
    min-width: 100%;
    margin-bottom: 0;
    text-align: center;                                                                                                                                                                }

  .footer-column:nth-child(2) h3 {
    display: none;
  }                                                                                                                                                                                                                                                                                                                                                                         .footer-column:nth-child(2) ul {                                                                                                                                                       display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 0;
  }                                                                                                                                                                                  
  .footer-column:nth-child(2) ul li {
    margin: 0 0.5rem;                                                                                                                                                                    font-size: 0.85rem;
  }

  .footer-bottom {
    display: none;
  }
}

@media (max-width: 576px) {
  .footer-column:nth-child(2) ul li {
    font-size: 0.75rem;
    margin: 0 0.3rem;
  }
}
/* Add this to your main.css file */
/* Extra styles for very small screens */
@media (max-width: 576px) {
  .footer-column:nth-child(2) ul li {
    font-size: 0.75rem;
    margin: 0 0.3rem;
  }

  .site-footer {
    padding: 0.75rem 0;
  }
}

/* Make sure the footer sticks to the bottom */
@media (max-width: 768px) {                                                                                                                                                            html, body {
    height: 100%;
  }                                                                                                                                                                                  
  body {
    display: flex;
    flex-direction: column;                                                                                                                                                            }

  body > *:not(.site-footer) {
    flex: 1 0 auto;
  }

  .site-footer {
    flex-shrink: 0;                                                                                                                                                                    }
}

/* Adjust journal and project cards for smaller screens */
@media (max-width: 768px) {
  .journal-card, .project-card {
    max-width: 100%;
  }
  
  .entry-image, .project-image {
    height: 150px; /* Smaller image height on mobile */
  }
  
  .entry-content, .project-details {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .entry-image, .project-image {
    height: 120px; /* Even smaller for very small screens */
  }
}

/* Blog page Styling*/
.post-thumbnail, .project-thumbnail {
  height: auto;
  background-size: cover;
  background-position: center;
  position: relative;
}

#blog-thumbnail::after, .project-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.post-categories {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-categories .category {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--gray-200);
  color: var(--gray-700);
}

.post-categories .category.medicine {
  background-color: rgba(95, 108, 175, 0.15);
  color: var(--medicine-color);
}

.post-categories .category.technology {
  background-color: rgba(56, 178, 172, 0.15);
  color: var(--technology-color);
}

.post-categories .category.security {
  background-color: rgba(229, 62, 62, 0.15);
  color: var(--security-color);
}

.post-categories .category.other {
  background-color: rgba(237, 137, 54, 0.15);
  color: var(--other-color);
}

@media (max-width: 576px) {
  .post-thumbnail, .project-thumbnail {
    height: 160px;
  }
  
}
/* Home page cards styling */
/* Post and Project Lists Styling */
/* Home page specific post and project list styling */
.recent-content .post-list, 
.recent-content .project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.recent-content .post-item, 
.recent-content .project-item {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 280px; /* Fixed height for uniformity */
}

.recent-content .post-item:hover, 
.recent-content .project-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.recent-content .post-thumbnail, 
.recent-content .project-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.5s ease;
}

.recent-content .post-item:hover .post-thumbnail, 
.recent-content .project-item:hover .project-thumbnail {
  transform: scale(1.05);
}

.recent-content .post-info, 
.recent-content .project-info {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  color: white;
}

.recent-content .post-date {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.recent-content .post-info h3, 
.recent-content .project-info h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: white;
  line-height: 1.3;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.recent-content .post-info h3 a, 
.recent-content .project-info h3 a {
  color: white;
  text-decoration: none;
}

.recent-content .post-info h3 a:hover, 
.recent-content .project-info h3 a:hover {
  color: var(--gray-100);
}

.recent-content .post-item:hover .post-info h3, 
.recent-content .project-item:hover .project-info h3 {
  transform: translateY(-5px);
}

.recent-content .post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.recent-content .post-categories .category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  transition: background-color 0.3s ease;
}

.recent-content .post-categories .category:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.recent-content .post-categories .category.medicine {
  background-color: rgba(95, 108, 175, 0.8);
}

.recent-content .post-categories .category.technology {
  background-color: rgba(56, 178, 172, 0.8);
}

.recent-content .post-categories .category.security {
  background-color: rgba(229, 62, 62, 0.8);
}

.recent-content .post-categories .category.other {
  background-color: rgba(237, 137, 54, 0.8);
}

.recent-content .project-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Add a heading indicator element for more sophistication */
.recent-content h2 {
  position: relative;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
}

.recent-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Additional hover effect */
.recent-content .post-info::before, 
.recent-content .project-info::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  z-index: 3;
}

.recent-content .post-item:hover .post-info::before,
.recent-content .project-item:hover .project-info::before {
  width: 100%;
}

/* Responsive adjustments for recent content */
@media (min-width: 768px) {  
  .recent-content .post-list, 
  .recent-content .project-list {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  .recent-content .post-item, 
  .recent-content .project-item {
    height: 250px;
  }
  
  .recent-content .post-info h3, 
  .recent-content .project-info h3 {
    font-size: 1.35rem;
  }
}

@media (max-width: 576px) {
  .recent-content .post-item, 
  .recent-content .project-item {
    height: 220px;
  }
  
  .recent-content .post-info, 
  .recent-content .project-info {
    padding: 1.25rem;
  }
  
  .recent-content .post-info h3, 
  .recent-content .project-info h3 {
    font-size: 1.25rem;
  }
  
  .recent-content .post-categories .category {
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
  }
}

/* Add simple animation for items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recent-content .post-item, 
.recent-content .project-item {
  animation: fadeInUp 0.6s ease-out forwards;
}

.recent-content .post-item:nth-child(2), 
.recent-content .project-item:nth-child(2) {
  animation-delay: 0.2s;
}

.recent-content .post-item:nth-child(3), 
.recent-content .project-item:nth-child(3) {
  animation-delay: 0.4s;
}

.recent-content .post-item:nth-child(4), 
.recent-content .project-item:nth-child(4) {
  animation-delay: 0.6s;
}

/* Recommendations Section */
.recommendations {
  padding: 4rem 0;
  background: linear-gradient(to right, var(--gray-100), var(--gray-200), var(--gray-100));
  margin-top: 3rem;
  width: 100%;
}

.recommendations h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  color: var(--dark-color);
}

.recommendations h2:after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.recommendations-slider {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.recommendations-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.recommendation-card {
  flex: 0 0 100%;
  padding: 0 1rem;
}

.recommendation-content {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommendation-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.quote-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--gray-300);
  opacity: 0.7;
}

.recommendation-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 1.5rem 0;
  position: relative;
  z-index: 1;
  color: var(--gray-700);
}

.recommendation-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--gray-200);
}

.author-info {
  margin-left: 1rem;
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.author-info p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.prev-button, .next-button {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.prev-button:hover, .next-button:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.slider-indicators {
  display: flex;
  margin: 0 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--gray-300);
  margin: 0 0.25rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive adjustments for recommendations */
@media (max-width: 768px) {
  .recommendations {
    padding: 3rem 0;
  }
  
  .recommendation-content {
    padding: 1.5rem;
  }
  
  .quote-icon {
    font-size: 3rem;
  }
  
  .recommendation-content p {
    font-size: 1rem;
    margin: 1.2rem 0;
  }
}

@media (max-width: 576px) {
  .recommendations {
    padding: 2rem 0;
  }
  
  .recommendation-content {
    padding:.5rem;
  }
  
  .quote-icon {
    font-size: 2.5rem;
    top: 0.75rem;
    left: 0.75rem;
  }
  
  .recommendation-content p {
    font-size: 0.95rem;
    margin: 1rem 0;
  }
  
  .author-image {
    width: 50px;
    height: 50px;
  }
  
  .author-info h4 {
    font-size: 1rem;
  }
  
  .author-info p {
    font-size: 0.8rem;
  }
}
