/* Blog Single Page Styles with Dark Mode Support */
:root {
  /* Re-defining variables for clarity */
  --primary-color: #6c4ab6;
  --primary-dark: #5a3a9e;
  --primary-light: #8d6bd6;
  --secondary-color: #f8b400;
  --secondary-dark: #ff8f00;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --white-color: #ffffff;
  --black-color: #212121;
}

/* Dark Mode Variables */
.dark-mode {
  --dark-color: #f8f9fa;
  --light-color: #1a1a2e;
  --gray-color: #adb5bd;
  --light-gray: #2d2d44;
  --white-color: #1a1a2e;
  --black-color: #ffffff;
}

/* Hero Section */
.hero-blog-single {
  height: 500px;
  background: linear-gradient(
      rgba(141, 107, 214, 0.7),
      rgba(141, 107, 214, 0.3)
    ),
    url("https://images.unsplash.com/photo-1501281668745-f7f57925c3b4?w=800&q=80")
      no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.hero-blog-single-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
}

.hero-blog-single h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.dark-mode .hero-blog-single h1 {
  color: var(--white-color);
}

.hero-blog-single-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-blog-single-meta-item {
  margin: 0 15px 10px;
  display: flex;
  align-items: center;
  color: var(--white-color);
}

.dark-mode .hero-blog-single-meta-item {
  color: var(--white-color);
}

.hero-blog-single-meta-item i {
  margin-right: 8px;
  color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  border-color: var(--white-color);
  color: var(--white-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

/* Blog Content Section */
.blog-content-section {
  padding: 60px 0;
  background-color: var(--white-color);
}

.dark-mode .blog-content-section {
  background-color: var(--light-color);
}

.blog-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--black-color);
}

.dark-mode .blog-content {
  color: var(--dark-color);
}

.blog-content h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin: 40px 0 20px;
  color: var(--primary-color);
}

.dark-mode .blog-content h2 {
  color: var(--secondary-color);
}

.blog-content h3 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  margin: 30px 0 15px;
  color: var(--black-color);
}

.dark-mode .blog-content h3 {
  color: var(--dark-color);
}

.blog-content p {
  margin-bottom: 20px;
  color: var(--black-color);
}

.dark-mode .blog-content p {
  color: var(--dark-color);
}

.blog-featured-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-inline-img {
  max-width: 300px;
  border-radius: 8px;
  margin: 10px 20px 20px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.float-end {
  float: right;
  margin-left: 20px;
  margin-right: 0;
}

.blog-content blockquote {
  border-left: 4px solid var(--primary-color);
  background-color: rgba(108, 74, 182, 0.1);
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
  position: relative;
  color: var(--black-color);
}

.dark-mode .blog-content blockquote {
  background-color: rgba(108, 74, 182, 0.2);
  color: var(--dark-color);
}

.blog-content blockquote:before {
  content: '"';
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  color: var(--primary-light);
  position: absolute;
  left: 10px;
  top: -10px;
  line-height: 1;
  opacity: 0.3;
}

.blog-content blockquote p {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

/* Blog Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  margin: 30px 0;
}

.blog-tag {
  display: inline-block;
  background-color: var(--light-gray);
  color: var(--black-color);
  padding: 5px 15px;
  border-radius: 50px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.dark-mode .blog-tag {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--dark-color);
}

.blog-tag:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Social Share */
/* Modern Social Share Component */
.post-share-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
}

.post-share-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.share-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-button:hover::after {
  opacity: 1;
}

.share-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Network-specific colors */
.facebook {
  background-color: #1877f2;
  color: white;
}
.twitter {
  background-color: #1da1f2;
  color: white;
}
.linkedin {
  background-color: #0077b5;
  color: white;
}
.whatsapp {
  background-color: #25d366;
  color: white;
}

/* Hover effects */
.facebook:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}
.twitter:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}
.linkedin:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}
.whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Active/pressed state */
.share-button:active {
  transform: scale(0.95) translateY(0);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Dark mode support */
.dark-mode .post-share-container {
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .post-share-label {
  color: var(--black-gray);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .post-share-container {
    padding: 0.75rem 0;
    margin: 1rem 0;
  }

  .post-share-buttons {
    gap: 0.5rem;
  }

  .share-button {
    width: 2.5rem;
    height: 2.5rem;
  }

  .share-icon {
    width: 1.1rem;
    height: 1.1rem;
  }
}

/* Animation on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-share-container {
  animation: fadeInUp 0.6s ease both;
}

.post-share-buttons a:nth-child(1) {
  animation-delay: 0.1s;
}
.post-share-buttons a:nth-child(2) {
  animation-delay: 0.2s;
}
.post-share-buttons a:nth-child(3) {
  animation-delay: 0.3s;
}
.post-share-buttons a:nth-child(4) {
  animation-delay: 0.4s;
}

/* Advert Sections */
.advert-inline-blog {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 20px;
  margin: 40px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--light-gray);
}

.dark-mode .advert-inline-blog {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.advert-inline-blog h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.dark-mode .advert-inline-blog h4 {
  color: var(--secondary-color);
}

.advert-inline-blog p {
  margin-bottom: 15px;
  color: var(--black-color);
}

.dark-mode .advert-inline-blog p {
  color: var(--dark-color);
}

/* Author Bio */
.blog-author {
  margin: 60px 0;
}

.author-card {
  display: flex;
  align-items: center;
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .author-card {
  background-color: var(--light-color);
}

@media (max-width: 767.98px) {
  .author-card {
    flex-direction: column;
    text-align: center;
  }
}

.author-image {
  flex: 0 0 120px;
  margin-right: 30px;
}

@media (max-width: 767.98px) {
  .author-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

.author-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black-color);
}

.dark-mode .author-info h4 {
  color: var(--dark-color);
}

.author-info p {
  margin-bottom: 15px;
  color: var(--black-color);
}

.dark-mode .author-info p {
  color: var(--dark-color);
}

.author-social a {
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  background-color: var(--light-gray);
  color: var(--black-color);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.dark-mode .author-social a {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--dark-color);
}

.author-social a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Sidebar Advert */
.advert-sidebar-single {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  position: sticky;
  top: 20px;
}

.dark-mode .advert-sidebar-single {
  background-color: var(--light-color);
}

.advert-sidebar-single h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.dark-mode .advert-sidebar-single h4 {
  color: var(--secondary-color);
}

.advert-sidebar-card {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 20px;
}

.dark-mode .advert-sidebar-card {
  border-color: rgba(255, 255, 255, 0.1);
}

.advert-sidebar-card:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.advert-sidebar-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.advert-sidebar-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black-color);
}

.dark-mode .advert-sidebar-card h5 {
  color: var(--dark-color);
}

.advert-sidebar-card p {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-bottom: 15px;
}

/* Comments Section */
.blog-comments {
  margin: 60px 0;
}

.blog-comments h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.dark-mode .blog-comments h3 {
  color: var(--secondary-color);
}

.comment-card {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .comment-card {
  background-color: var(--light-color);
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.comment-author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.comment-author-name {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--black-color);
}

.dark-mode .comment-author-name {
  color: var(--dark-color);
}

.comment-date {
  font-size: 0.8rem;
  color: var(--gray-color);
}

.comment-reply {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-top: 10px;
  cursor: pointer;
}

.dark-mode .comment-reply {
  color: var(--secondary-color);
}

.comment-form {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .comment-form {
  background-color: var(--light-color);
}

.comment-form h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.dark-mode .comment-form h4 {
  color: var(--secondary-color);
}

.comment-form .form-control {
  margin-bottom: 20px;
  border-radius: 8px;
  padding: 12px 15px;
  background-color: var(--white-color);
  color: var(--black-color);
  border: 1px solid var(--light-gray);
}

.dark-mode .comment-form .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--dark-color);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Related Posts */
.related-posts {
  margin: 60px 0;
}

.related-posts h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.dark-mode .related-posts h3 {
  color: var(--secondary-color);
}

.related-post-card {
  background-color: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.dark-mode .related-post-card {
  background-color: var(--light-color);
}

.related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-post-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.related-post-body {
  padding: 20px;
}

.related-post-body h5 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black-color);
}

.dark-mode .related-post-body h5 {
  color: var(--dark-color);
}

.related-post-meta {
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode .preloader {
  background-color: var(--light-color);
}

.spinner {
  width: 70px;
  height: 70px;
  position: relative;
}

.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1s;
}

@keyframes sk-bounce {
  0%,
  100% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-theme {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-theme i {
  position: absolute;
  transition: all 0.3s ease;
}

.btn-theme i.fa-moon {
  opacity: 1;
  transform: translateY(0);
}

.btn-theme i.fa-sun {
  opacity: 0;
  transform: translateY(20px);
}

.dark-mode .btn-theme i.fa-moon {
  opacity: 0;
  transform: translateY(-20px);
}

.dark-mode .btn-theme i.fa-sun {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode .back-to-top {
  color: var(--dark-color);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-dark);
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .hero-blog-single h1 {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .hero-blog-single {
    height: 450px;
  }

  .hero-blog-single h1 {
    font-size: 2.5rem;
  }

  .blog-content {
    padding: 0 20px;
  }
}

@media (max-width: 767.98px) {
  .hero-blog-single {
    height: 400px;
  }

  .hero-blog-single h1 {
    font-size: 2.2rem;
  }

  .blog-inline-img {
    float: none !important;
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .hero-blog-single {
    height: 350px;
  }

  .hero-blog-single h1 {
    font-size: 1.8rem;
  }

  .hero-blog-single-meta-item {
    margin: 0 10px 10px;
    font-size: 0.9rem;
  }

  .blog-social-share {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-social-share span {
    margin-bottom: 15px;
  }
}

/* ============================================= */
/* MOBILE-FIRST RESPONSIVE STYLES (0-767px) */
/* ============================================= */

@media (max-width: 767px) {
  /* Base Mobile Adjustments */
  html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
  }

  /* Typography Enhancements */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.3;
    word-break: break-word;
  }

  /* Layout Containers */
  .container,
  .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
  }

  /* Hero Section */
  .hero-blog-single {
    height: 60vh;
    min-height: 400px;
    background-attachment: scroll !important;
    background-position: center top !important;
  }

  .hero-blog-single h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .hero-blog-single-meta {
    flex-direction: column;
    align-items: center;
  }

  .hero-blog-single-meta-item {
    margin: 0 0 10px 0;
  }

  /* Blog Content */
  .blog-content-section {
    padding: 40px 0;
  }

  .blog-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .blog-content h2 {
    font-size: 1.6rem;
    margin: 30px 0 15px;
  }

  .blog-content h3 {
    font-size: 1.4rem;
    margin: 25px 0 12px;
  }

  .blog-featured-img {
    margin-bottom: 20px;
  }

  .blog-inline-img {
    float: none !important;
    display: block;
    margin: 0 auto 20px !important;
    max-width: 100%;
  }

  .blog-content blockquote {
    padding: 15px;
    margin: 20px 0;
  }

  /* Blog Tags */
  .blog-tags {
    margin: 20px 0;
  }

  /* Social Share */
  .blog-social-share {
    flex-direction: column;
    align-items: flex-start;
    margin: 30px 0;
    padding: 15px 0;
  }

  .blog-social-share span {
    margin-bottom: 15px;
  }

  /* Author Bio */
  .blog-author {
    margin: 40px 0;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .author-image {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .author-social {
    justify-content: center;
  }

  /* Comments Section */
  .blog-comments {
    margin: 40px 0;
  }

  .comment-card {
    padding: 15px;
  }

  .comment-form {
    padding: 20px;
  }

  /* Related Posts */
  .related-posts {
    margin: 40px 0;
  }

  .related-post-card {
    margin-bottom: 20px;
  }

  /* Advert Sections */
  .advert-inline-blog {
    margin: 30px 0;
    padding: 15px;
  }

  /* Sidebar Advert */
  .advert-sidebar-single {
    position: static;
    margin-bottom: 30px;
  }

  /* Buttons */
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 44px;
    min-height: 44px;
  }

  /* Theme Toggle */
  .theme-toggle {
    bottom: 15px;
    right: 15px;
  }

  .btn-theme {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  /* Utility Classes for Mobile */
  .mobile-stack {
    flex-direction: column !important;
  }

  .mobile-full-width {
    width: 100% !important;
    max-width: 100% !important;
  }

  .mobile-center {
    text-align: center !important;
    justify-content: center !important;
  }

  .mobile-hide {
    display: none !important;
  }

  /* iOS Tap Highlight */
  a,
  button,
  input,
  label,
  select,
  textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  /* Prevent Zoom on Input Focus */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ============================================= */
/* SMALL MOBILE OPTIMIZATIONS (0-480px) */
/* ============================================= */

@media (max-width: 480px) {
  /* Even More Compact Elements */
  .hero-blog-single {
    height: 50vh;
    min-height: 350px;
  }

  .hero-blog-single h1 {
    font-size: 1.8rem;
  }

  .blog-content h2 {
    font-size: 1.4rem;
  }

  .blog-content h3 {
    font-size: 1.2rem;
  }

  /* Button Sizes */
  .btn {
    padding: 8px 15px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 15px;
  }
}

/* ============================================= */
/* VERY SMALL DEVICES (0-360px) */
/* ============================================= */

@media (max-width: 360px) {
  /* Extreme Mobile Optimization */
  html {
    font-size: 13px;
  }

  .hero-blog-single {
    height: 45vh;
    min-height: 300px;
  }

  .hero-blog-single h1 {
    font-size: 1.6rem;
  }

  /* Footer */
  .footer-heading {
    font-size: 1.1rem;
  }
}

/* ============================================= */
/* MOBILE-SPECIFIC ENHANCEMENTS */
/* ============================================= */

/* 1. Prevent horizontal scrolling */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* 2. Tap target sizing for better touch interaction */
a,
button,
input,
label,
select {
  min-height: 44px;
  min-width: 44px;
}

/* 3. Remove 300ms click delay on mobile browsers */
a,
button,
input,
label,
select {
  touch-action: manipulation;
}

/* 4. Improve scrolling performance */
html {
  -webkit-overflow-scrolling: touch;
}

/* 5. Optimize images for mobile */
img {
  max-width: 100%;
  height: auto;
}

/* 6. Remove default iOS styles for inputs */
input,
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* 7. Mobile-first transitions and animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 8. Dark mode optimizations */
@media (prefers-color-scheme: dark) {
  :root {
    --light-color: #1a1a2e;
    --dark-color: #f8f9fa;
  }
}

/* 9. Viewport unit fixes for mobile */
@media (max-width: 767px) {
  .full-height-mobile {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
  }
}

@media (max-width: 767.98px) {
  .hero-blog-single {
    height: auto;
    min-height: 50vh;
    padding: 80px 0 60px;
    text-align: center;
    background-attachment: scroll !important;
  }

  .hero-blog-single-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
  }

  .hero-blog-single h1 {
    /* font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem; */
    margin-top: 20px;
    /* margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3); */
  }

  .dark-mode .hero-blog-single h1 {
    color: var(--white-color);
  }

  .hero-blog-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .hero-blog-single-meta-item {
    margin: 0 15px 10px;
    display: flex;
    align-items: center;
    color: var(--white-color);
  }

  .dark-mode .hero-blog-single-meta-item {
    color: var(--white-color);
  }

  .hero-blog-single-meta-item i {
    margin-right: 8px;
    color: var(--secondary-color);
  }
}
