:root {
  --primary-color: #ff9d1f;
  --secondary-color: #ffc451;
  --dark-color: #212529;
  --light-gray: #f4f4f4;
  --white: #ffffff;
  --text-light: #666;
  --text-lighter: #777;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.3);
  --border-radius: clamp(8px, 1.5vw, 10px);
  --transition: all 0.3s ease;
  --container-padding: clamp(10px, 3vw, 20px);
  --header-height: clamp(70px, 12vh, 90px);
  --page-title-padding-top: clamp(90px, 15vh, 140px);
  --page-title-padding-bottom: clamp(25px, 8vh, 60px);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Times New Roman', Times, serif;
  background-color: var(--light-gray);
  margin: 0;
  padding: 0;
  color: var(--dark-color);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Global font style */
*,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
textarea,
label {
  font-family: 'Times New Roman', Times, serif;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--dark-color);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0 var(--container-padding);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header.scrolled {
  background-color: var(--dark-color);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.logo-img {
  width: clamp(100px, 15vw, 200px);
  height: clamp(50px, 8vw, 100px);
  object-fit: contain;
  margin-top: -5px;
  max-width: 100%;
}

/* Page Title Section */
.page-title {
  padding: var(--page-title-padding-top) var(--container-padding) var(--page-title-padding-bottom);
  background: linear-gradient(135deg, var(--dark-color) 0%, #323a40 100%);
  color: var(--white);
  text-align: center;
  margin-bottom: clamp(20px, 5vh, 40px);
  width: 100%;
}

.page-title h1 {
  font-size: clamp(22px, 5vw + 0.5rem, 42px);
  font-weight: 600;
  margin-bottom: clamp(10px, 2vh, 15px);
  position: relative;
  display: inline-block;
  word-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  line-height: 1.3;
}

.page-title h1:after {
  content: '';
  position: absolute;
  width: clamp(40px, 12vw, 70px);
  height: clamp(3px, 0.5vw, 4px);
  background-color: var(--primary-color);
  bottom: clamp(-8px, -1.5vh, -10px);
  left: 50%;
  transform: translateX(-50%);
}

.breadcrumb {
  background: transparent;
  justify-content: center;
  margin: clamp(10px, 2vh, 15px) 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: clamp(3px, 0.8vw, 5px);
  display: flex;
}

.breadcrumb-item {
  font-size: clamp(12px, 2vw + 0.2rem, 16px);
}

.breadcrumb-item a {
  color: var(--white);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
  opacity: 1;
}

.breadcrumb-item.active {
  color: var(--primary-color);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--white);
  opacity: 0.5;
  content: "/";
  margin: 0 clamp(4px, 1vw, 8px);
}

/* Breadcrumb Section */
.breadcrumb-section {
  background-color: var(--white);
  padding: clamp(15px, 3vh, 20px) 0;
  border-bottom: 1px solid #e9ecef;
  margin-top: var(--header-height);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.breadcrumb-section .breadcrumb {
  justify-content: flex-start;
  margin: 0;
  padding: 0 var(--container-padding);
}

.breadcrumb-section .breadcrumb-item {
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
}

.breadcrumb-section .breadcrumb-item+.breadcrumb-item {
  padding-left: clamp(1rem, 2vw, 1.5rem);
}

.breadcrumb-section .breadcrumb-item+.breadcrumb-item::before {
  content: "\F285";
  font-family: "bootstrap-icons";
  color: #ccc;
  font-size: clamp(10px, 1.5vw, 12px);
  padding-right: clamp(1rem, 2vw, 1.5rem);
}

.breadcrumb-section .breadcrumb-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  position: relative;
}

.breadcrumb-section .breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-section .breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.breadcrumb-home-icon {
  margin-right: clamp(4px, 1vw, 6px);
  font-size: clamp(14px, 2vw, 16px);
}

/* Blog Container */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: clamp(15px, 3vw, 25px);
  padding: clamp(15px, 3vh, 30px) var(--container-padding);
  max-width: min(1400px, 95vw);
  margin: 0 auto;
  width: 100%;
  margin-bottom: clamp(40px, 10vh, 100px);
}

/* Blog Cards */
.blog-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: clamp(300px, 45vh, 400px);
}

.blog-card:hover {
  transform: translateY(clamp(-5px, -1.5vh, -10px));
  box-shadow: 0 10px 25px var(--shadow-medium);
}

/* No Blogs Message */
.no-blogs-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: clamp(200px, 40vh, 300px);
  padding: var(--container-padding);
}

.no-blogs-message {
  text-align: center;
  padding: clamp(15px, 4vw, 30px);
  font-size: clamp(14px, 2.5vw + 0.2rem, 18px);
  color: var(--text-light);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: min(500px, 90vw);
  background-color: var(--white);
  box-shadow: 0 5px 15px var(--shadow-light);
}

/* Blog Card Images */
.blog-card img {
  width: 100%;
  height: clamp(130px, 25vw, 200px);
  object-fit: cover;
  border-bottom: clamp(2px, 0.5vw, 3px) solid var(--primary-color);
  transition: transform 0.3s ease;
}

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

/* Blog Content */
.blog-content {
  padding: clamp(12px, 3vw, 20px);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.blog-date {
  font-size: clamp(11px, 1.8vw + 0.1rem, 13px);
  color: var(--text-lighter);
  margin-bottom: clamp(8px, 1.5vh, 10px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.blog-date i {
  margin-right: clamp(4px, 0.8vw, 5px);
  color: var(--primary-color);
  flex-shrink: 0;
}

.blog-card h3 {
  margin: clamp(8px, 1.5vh, 10px) 0;
  font-size: clamp(16px, 3vw + 0.2rem, 20px);
  color: var(--dark-color);
  line-height: 1.4;
  font-weight: 600;
  transition: color 0.3s ease;
  word-wrap: break-word;
  hyphens: auto;
}

.blog-card a {
  text-decoration: none;
  display: block;
}

.blog-card:hover h3 {
  color: var(--primary-color);
}

.blog-card p {
  color: var(--text-light);
  margin-bottom: clamp(15px, 3vh, 20px);
  font-size: clamp(12px, 2vw + 0.1rem, 14px);
  line-height: 1.6;
  flex-grow: 1;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: clamp(2, calc(1 + 1 * (100vw - 320px) / 456), 3);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  font-size: clamp(12px, 2vw + 0.1rem, 14px);
  transition: var(--transition);
  text-decoration: none;
  margin-top: auto;
  width: fit-content;
  min-height: clamp(28px, 5vh, 32px);
}

.read-more i {
  margin-left: clamp(4px, 0.8vw, 5px);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.read-more:hover i {
  transform: translateX(clamp(3px, 0.8vw, 5px));
}

/* Load More Section */
#load-more-container {
  text-align: center;
  margin: clamp(20px, 6vh, 40px) 0 clamp(30px, 8vh, 60px);
  padding: 0 var(--container-padding);
}

#load-more {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: clamp(10px, 2vh, 12px) clamp(20px, 4vw, 30px);
  border-radius: 50px;
  font-size: clamp(13px, 2.5vw + 0.1rem, 16px);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 5px 15px rgba(255, 157, 31, 0.3);
  min-height: clamp(40px, 7vh, 44px);
  min-width: clamp(100px, 20vw, 120px);
}

#load-more:hover {
  background-color: var(--dark-color);
  transform: translateY(clamp(-2px, -0.5vh, -3px));
  box-shadow: 0 8px 20px rgba(33, 37, 41, 0.3);
}

#load-more:active {
  transform: translateY(-1px);
}

#loader {
  margin-top: clamp(8px, 1.5vh, 10px);
}

.spinner {
  border: clamp(3px, 0.6vw, 4px) solid rgba(0, 0, 0, 0.1);
  width: clamp(25px, 4vw, 30px);
  height: clamp(25px, 4vw, 30px);
  border-radius: 50%;
  border-left-color: var(--primary-color);
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Chat Bubble */
.chat-bubble {
  position: fixed;
  bottom: clamp(15px, 12vh, 100px);
  right: clamp(15px, 3vw, 20px);
  background-color: #f4b400;
  color: white;
  width: clamp(55px, 10vw, 80px);
  height: clamp(55px, 10vw, 80px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 1000;
  font-size: clamp(20px, 4vw, 24px);
  animation: bounceBubble 1.2s ease-in-out infinite;
}

.chat-bubble::before {
  content: 'Chat with us!';
  position: absolute;
  bottom: clamp(60px, 10vh, 70px);
  right: 0;
  transform-origin: center bottom;
  background-color: #333;
  color: white;
  padding: clamp(8px, 1.5vh, 10px) clamp(12px, 2vw, 14px);
  border-radius: clamp(4px, 1vw, 6px);
  font-size: clamp(13px, 2.5vw, 16px);
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1001;
  animation: fadeInOutTooltip 4s ease-in-out 1s infinite;
}

.chat-bubble:hover::before {
  animation: none;
  opacity: 1;
  transform: scale(1) translateY(clamp(-8px, -1.5vh, -10px));
}

.chat-bubble.typing::before {
  content: 'Typing...';
  animation: none;
  opacity: 1;
  transform: scale(1) translateY(clamp(-8px, -1.5vh, -10px));
}

.chat-bubble:hover {
  transform: scale(1.1);
  background-color: #f4b400;
  animation: none;
}

.chat-bubble.typing {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounceBubble {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(clamp(-10px, -2vh, -15px));
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInOutTooltip {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  20% {
    opacity: 1;
    transform: scale(1) translateY(clamp(-8px, -1.5vh, -10px));
  }

  80% {
    opacity: 1;
    transform: scale(1) translateY(clamp(-8px, -1.5vh, -10px));
  }

  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

/* Chat Overlay */
.chat-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: flex-end;
  justify-content: flex-end;
  transition: opacity 0.3s ease;
  padding: clamp(10px, 2vw, 20px);
}

.chat-overlay.show {
  display: flex;
  opacity: 1;
}

/* Chat Container */
.chat-container {
  width: min(600px, calc(100vw - 20px));
  height: clamp(70vh, 80vh, 85vh);
  background: #fff;
  border-radius: clamp(8px, 1.5vw, 10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: clamp(10px, 2vw, 20px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chat-overlay.show .chat-container {
  transform: translateY(0);
}

/* Chat Header */
.chat-header {
  background: #f4b400;
  color: white;
  padding: clamp(12px, 2.5vh, 15px) clamp(15px, 3vw, 20px);
  border-radius: clamp(10px, 2vw, 12px) clamp(10px, 2vw, 12px) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h5 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(14px, 2.5vw + 0.2rem, 18px);
}

.chat-header small {
  opacity: 0.9;
  font-size: clamp(11px, 2vw, 14px);
}

.chat-close {
  background: none;
  border: none;
  font-size: clamp(18px, 3vw, 20px);
  cursor: pointer;
  padding: clamp(4px, 1vw, 5px);
  border-radius: clamp(3px, 0.5vw, 4px);
  transition: background 0.2s;
}

.chat-close:hover {
  background: white;
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: clamp(15px, 3vw, 20px);
}

.chat-messages::-webkit-scrollbar {
  width: clamp(4px, 1vw, 6px);
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: clamp(2px, 0.5vw, 3px);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: clamp(2px, 0.5vw, 3px);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Message Styling */
.message {
  display: flex;
  margin-bottom: clamp(12px, 2.5vh, 15px);
  align-items: flex-start;
}

.message.bot {
  flex-direction: row;
}

.message.user {
  flex-direction: row-reverse;
}

.message .avatar {
  width: clamp(35px, 6vw, 40px);
  height: clamp(35px, 6vw, 40px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 clamp(8px, 1.5vw, 10px);
  font-size: clamp(16px, 3vw, 20px);
  flex-shrink: 0;
}

.message .content {
  max-width: clamp(75%, calc(75% + 5vw), 85%);
  padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 16px);
  border-radius: clamp(14px, 3vw, 18px);
  line-height: 1.4;
  word-wrap: break-word;
  font-size: clamp(13px, 2.2vw + 0.1rem, 15px);
}

.message.user .content {
  background: #f4b400;
  color: white;
  border-bottom-right-radius: clamp(3px, 0.8vw, 4px);
}

.message.bot .content {
  background: #f8f9fa;
  color: #333;
  border-bottom-left-radius: clamp(3px, 0.8vw, 4px);
  border: 1px solid #e9ecef;
}

.message.user .avatar {
  color: white;
}

.message.bot .avatar {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
}

/* Links Styling */
.chat-messages .content a {
  color: #000000 !important;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #000000;
  transition: all 0.3s ease;
}

.chat-messages .content a:hover {
  color: #333333 !important;
  border-bottom-color: #333333;
  text-decoration: none;
}

.chat-messages .content .property-link,
.chat-messages .content .contact-link {
  background: #000000 !important;
  color: white !important;
  padding: clamp(5px, 1vh, 6px) clamp(10px, 2vw, 12px);
  border-radius: clamp(5px, 1vw, 6px);
  font-size: clamp(12px, 2vw, 14px);
  border: none;
  display: inline-block;
  margin-left: clamp(6px, 1.2vw, 8px);
  font-weight: 500;
  border-bottom: none;
}

.chat-messages .content .property-link:hover,
.chat-messages .content .contact-link:hover {
  background: #333333 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: clamp(8px, 1.5vh, 10px) clamp(12px, 2.5vw, 15px);
  display: flex;
  align-items: center;
}

.typing-indicator.show {
  display: flex;
  opacity: 1;
}

.typing-avatar {
  width: clamp(35px, 6vw, 40px);
  height: clamp(35px, 6vw, 40px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 3vw, 20px);
  margin-right: clamp(8px, 1.5vw, 10px);
}

.typing-dots {
  display: flex;
  align-items: center;
}

.typing-dots span {
  width: clamp(6px, 1.2vw, 8px);
  height: clamp(6px, 1.2vw, 8px);
  background: #888;
  border-radius: 50%;
  margin: 0 clamp(2px, 0.5vw, 3px);
  animation: typing 1s infinite;
}

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

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

@keyframes typing {

  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(clamp(-2px, -0.5vh, -3px));
  }
}

/* Chat Input */
.chat-input {
  padding: clamp(12px, 2.5vh, 15px) clamp(15px, 3vw, 20px);
  border-top: 1px solid #e9ecef;
  border-radius: 0 0 clamp(10px, 2vw, 12px) clamp(10px, 2vw, 12px);
  background: white;
}

.chat-input-group {
  display: flex;
  gap: clamp(8px, 1.5vw, 10px);
  align-items: center;
}

.chat-input input {
  flex: 1;
  padding: clamp(10px, 2vh, 12px) clamp(12px, 2.5vw, 16px);
  border: 1px solid #ddd;
  border-radius: 25px;
  outline: none;
  font-size: clamp(13px, 2.2vw, 14px);
  transition: border-color 0.3s;
}

.chat-input input:focus {
  border-color: #f4b400;
  box-shadow: 0 0 0 clamp(2px, 0.5vw, 3px) rgba(0, 123, 255, 0.1);
}

.chat-send-btn {
  width: clamp(40px, 7vw, 45px);
  height: clamp(40px, 7vw, 45px);
  border: none;
  background: #f4b400;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: clamp(14px, 2.5vw, 16px);
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  background: #f4b400;
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Quick Options */
.quick-options {
  padding: clamp(12px, 2.5vh, 15px) clamp(15px, 3vw, 20px);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: clamp(12px, 2.5vh, 15px);
  border-radius: clamp(6px, 1.2vw, 8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-options-title {
  font-size: clamp(11px, 2vw, 12px);
  font-weight: 600;
  color: #6c757d;
  margin-bottom: clamp(10px, 2vh, 12px);
  text-transform: uppercase;
  letter-spacing: clamp(0.3px, 0.08vw, 0.5px);
}

.quick-options-buttons {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 8px);
}

.quick-option-btn {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 8px);
  padding: clamp(10px, 2vh, 12px) clamp(12px, 2.5vw, 16px);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 20px;
  color: #495057;
  font-size: clamp(12px, 2.2vw, 13px);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-option-btn:hover {
  background: #f4b400;
  color: white;
  border-color: #f4b400;
  transform: translateY(-1px);
}

.quick-option-btn:active {
  transform: translateY(0);
}

.quick-option-btn i {
  font-size: clamp(12px, 2.5vw, 14px);
  color: #f4b400;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.quick-option-btn:hover i {
  color: white;
}

/* Animation for quick options appearance */
.quick-options {
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(clamp(15px, 3vh, 20px));
  }

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

/* Index Page Header Override */
.index-page .header {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Container Queries Support (where available) */
@supports (container-type: inline-size) {
  .blog-container {
    container-type: inline-size;
    container-name: blog-grid;
  }

  @container blog-grid (max-width: 500px) {
    .blog-card {
      grid-column: 1 / -1;
    }
  }
}

/* Fluid Typography Scale */
html {
  font-size: clamp(14px, 1vw + 0.5rem, 16px);
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .blog-card:hover {
    transform: none;
  }

  .blog-card:hover img {
    transform: none;
  }

  .chat-bubble {
    animation: none !important;
  }

  .chat-bubble::before {
    animation: none !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --light-gray: #1a1a1a;
    --white: #2d2d2d;
    --dark-color: #ffffff;
    --text-light: #cccccc;
    --text-lighter: #aaaaaa;
    --shadow-light: rgba(255, 255, 255, 0.1);
    --shadow-medium: rgba(255, 255, 255, 0.15);
  }

  body {
    background-color: var(--light-gray);
    color: var(--dark-color);
  }

  .header {
    background-color: #000000;
  }

  .header.scrolled {
    background-color: #000000;
  }

  .page-title {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  }

  .breadcrumb-section {
    background-color: #2d2d2d;
    border-bottom: 1px solid #444;
  }

  .chat-container {
    background: #2d2d2d;
  }

  .chat-messages .content {
    background: #1a1a1a;
    color: #cccccc;
    border-color: #444;
  }

  .chat-input {
    background: #2d2d2d;
    border-top-color: #444;
  }

  .chat-input input {
    background: #1a1a1a;
    color: #cccccc;
    border-color: #444;
  }
}

/* Print Styles */
@media print {
  .header {
    position: static;
    box-shadow: none;
    background: white !important;
  }

  .page-title {
    padding: clamp(15px, 3vh, 20px) 0;
    background: none !important;
    color: black !important;
  }

  .breadcrumb-section {
    display: none;
  }

  .blog-container {
    padding-top: 0;
    grid-template-columns: 1fr;
    gap: clamp(15px, 3vh, 20px);
    page-break-inside: avoid;
  }

  .blog-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .blog-card:hover {
    transform: none;
    box-shadow: none;
  }

  #load-more-container,
  .chat-bubble,
  .chat-overlay,
  .read-more {
    display: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #ff8800;
    --text-light: #000000;
    --text-lighter: #333333;
  }

  .blog-card {
    border: 2px solid #000000;
  }

  .blog-card a,
  .breadcrumb-item a {
    text-decoration: underline;
  }
}

/* Landscape Orientation Adjustments */
@supports (aspect-ratio: 1) {
  .chat-container {
    height: clamp(60vh, 70vh, 80vh);
  }
}

/* Touch Target Sizing for Mobile */
button,
a,
input,
.read-more,
.quick-option-btn,
.chat-send-btn,
.chat-close {
  min-height: clamp(36px, 6vh, 44px);
  min-width: clamp(36px, 6vw, 44px);
}

/* Ensure proper touch target spacing */
.quick-option-btn,
.breadcrumb-item a {
  padding: max(10px, 1.5vh) max(12px, 2vw);
}

/* Flexible Grid for Ultra-Wide Screens */
.blog-container {
  grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 25vw, 350px), 1fr));
}

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

/* Focus Styles for Accessibility */
*:focus-visible {
  outline: clamp(2px, 0.3vw, 3px) solid var(--primary-color);
  outline-offset: clamp(2px, 0.3vw, 3px);
}

/* Better Text Rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Image Optimization */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Prevent layout shift */
.blog-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Fluid spacing system */
.blog-content>*+* {
  margin-top: clamp(8px, 1.5vh, 12px);
}

/* Adaptive chat container for different screen ratios */
.chat-container {
  max-height: min(85vh, 800px);
  min-height: min(50vh, 400px);
}

/* Better grid behavior for narrow containers */
.blog-container {
  grid-auto-rows: minmax(clamp(280px, 40vh, 380px), auto);
}

/* Ensure chat elements don't overflow */
.message .content,
.quick-option-btn {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Smooth transitions for interactive elements */
.blog-card,
.read-more,
.chat-send-btn,
.quick-option-btn,
#load-more {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Optimize chat scroll performance */
.chat-messages {
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}

/* Safe area insets for notched devices */
.chat-overlay {
  padding: max(env(safe-area-inset-top), clamp(10px, 2vw, 20px)) max(env(safe-area-inset-right), clamp(10px, 2vw, 20px)) max(env(safe-area-inset-bottom), clamp(10px, 2vw, 20px)) max(env(safe-area-inset-left), clamp(10px, 2vw, 20px));
}

.chat-bubble {
  bottom: max(env(safe-area-inset-bottom), clamp(15px, 12vh, 100px));
  right: max(env(safe-area-inset-right), clamp(15px, 3vw, 20px));
}