/*!
Theme Name: DigiKarnal
Theme URI: https://www.facebook.com/Rahul.Kashyap.Karnal/
Author: Rahul Kashyap
Author URI: https://www.facebook.com/Rahul.Kashyap.Karnal/
Description: You can contact for web desiging and we development on this email id rk.kash26@gmail.com.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: digikarnal
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */



/* My Coustom CSS */

/*Start Rating css*/

.stars-avg-rating {
  margin: 10px 0 !important;
}

#comments .stars-avg-rating {
  display: none;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
  box-sizing: border-box;
  /* Include padding in width calculation */
  width: 100% !important;
  /* Force full width */
  max-width: 100%;
  /* Prevent overflow */
  color: #666;
  border: 1px solid #999 !important;
  border-radius: 3px;
  padding: 0.75rem 1rem;
  /* Consistent padding with your WPCF7 styles */
  margin-bottom: 0.5rem;
  /* Add some spacing between fields */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc !important;
}

textarea {
  width: 100%;
}

/*Contact From  7 CSS */

/* === Form Background Box === */
.wpcf7 .bg-warning {
  background-color: #ffc107;
  /* Yellow background */
  padding: 1.5rem;
  border-radius: 1rem;
}

/* === Headings === */
.wpcf7 .fs-3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* === Input Fields & Textarea === */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100% !important;
  /* Ensure full width */
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: none;
  outline: none;
  box-shadow: none;
  background: #fff;
  color: #000;
}

/* === Margin between fields === */
.wpcf7-form .input-group {
  margin-bottom: 0.7rem;
}

/* === Textarea Height === */
.wpcf7 textarea {
  height: 120px;
}

/* === Submit Button === */
.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  background-color: #007bff;
  /* Bootstrap blue */
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #0056b3;
}

/* === reCAPTCHA spacing === */
.wpcf7 .g-recaptcha {
  margin-bottom: 1rem;
}

/* === Privacy Text === */
.wpcf7 .pg {
  font-size: 0.85rem;
  text-align: center;
  color: #000;
  margin-top: 10px;
}

.wpcf7 select {
  width: 100% !important;
  padding: 0.75rem 1rem;
}


/* Comment css */

.comment-list {
  list-style: none;
  padding-left: 0;
}

.comment-list li {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.comment-author {
  font-weight: 600;
}

.comment-meta {
  font-size: 0.9rem;
  color: #6c757d;
}


/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/**/

blockquote {
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid #007bff;
  /* Bootstrap primary color */
  background-color: #f8f9fa;
  /* Light gray background */
  color: #212529;
  /* Dark text color */
  font-style: italic;
  position: relative;
}

/* Optional: Add quotation marks */
blockquote:before {
  content: '\201C';
  /* Unicode for left double quotation mark */
  font-size: 3rem;
  color: #dee2e6;
  /* Light gray color */
  position: absolute;
  left: 10px;
  top: 5px;
  line-height: 1;
}

blockquote:after {
  content: '\201D';
  /* Unicode for right double quotation mark */
  font-size: 3rem;
  color: #dee2e6;
  position: absolute;
  right: 10px;
  bottom: -20px;
  line-height: 1;
}

/* Blockquote footer for citations */
blockquote footer {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.875rem;
  color: #6c757d;
  /* Bootstrap secondary text color */
}

blockquote footer:before {
  content: '\2014\00A0';
  /* Unicode for em dash + non-breaking space */
}

/* Custom Styles for Blog Posts */
.post-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Pagination Styles */
.page-numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-left: 0;
  list-style: none;
}

.page-numbers li {
  margin: 0 5px;
}

.page-numbers .page-link {
  color: #212529;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
}

.page-numbers .current .page-link {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
}

.page-numbers a.page-link:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
}

/* Custom 404 Page Styles */
.error-404 {
  padding: 2rem;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.error-icon {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

/* Single Post Styles */
#single-post .blog-single {
  line-height: 1.8;
}

#single-post .blog-single img {
  max-width: 100%;
  height: auto;
}

#single-post .entry-content p {
  margin-bottom: 1.5rem;
}

#single-post .entry-content h2,
#single-post .entry-content h3,
#single-post .entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#single-post .post-navigation a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  text-decoration: none;
}

#single-post .post-navigation a:hover {
  background-color: #e9ecef;
}

#single-post .author-bio {
  background-color: #f8f9fa;
  border: none;
}

#single-post .related-posts .card {
  transition: transform 0.3s ease;
}

#single-post .related-posts .card:hover {
  transform: translateY(-5px);
}


/*Kuldeep Page CSS CA*/

.rating-badge {
  background-color: #28a745;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.service-badge {
  margin-right: 8px;
  margin-bottom: 8px;
}

.business-header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.contact-card {
  border-left: 4px solid #0d6efd;
}

.hours-card {
  border-left: 4px solid #ffc107;
}

.service-card {
  border-left: 4px solid #28a745;
}

.premium-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(45deg, #ffc107, #fd7e14);
  color: #000;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8rem;
}

.gallery-img {
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-img:hover {
  transform: scale(1.02);
}

.product-card {
  transition: all 0.3s;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.map-container {
  height: 400px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.product-img {
  height: 180px;
  object-fit: contain;
  padding: 10px;
}

.price {
  font-weight: bold;
  color: #dc3545;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
}

.lightbox-nav button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  padding: 10px;
  position: absolute;
  bottom: 20px;
  width: 100%;
}


/*Footer Style*/

#footer .nav-link {
  padding: 0.25rem 0.75rem;
  font-size: 0.95rem;
  color: #ffffff;
  transition: color 0.3s ease;
}

#footer .nav-link:hover,
#footer a:hover {
  color: #0d6efd;
}

#footer a {
  color: #ffffff;
  text-decoration: none;
}

#footer a i {
  font-size: 18px;
}