/*
Theme Name: Dr. Prapti Dentalcare and Imaplant Center
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Bootstrap based Classic Child Theme for Dental Website
Template: twentytwentyfive
Version: 1.0.0
Text Domain: prapti-dentalcare
*/

/* Bootstrap overrides & custom styles */
a {
    text-decoration: unset;
}
.logo-img {
    max-width: 100%;
    width: 200px;
    padding: 10px 0 10px 0;
}
.bg-primary {
    background-color: #dc291b !important;
}
.btn-primary {
    color: #fff;
    background-color: #dc291b;
    border-color: #dc291b;
}
.text-primary {
    color: #dc291b !important;
}
.btn-secondary {
    color: #fff;
    background-color: #868686;
    border-color: #868686;
}
.pagination {
    gap: 5px;
}

.pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #0d6efd;
    text-decoration: none;
}

.pagination .current {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
.form-field {
    height: 55px;
}
.wpcf7-response-output {
    color: #fff;
    font-weight: 700;
}
/* Gallery Card */
.gallery-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: var(--dark);
}

/* Image */
.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

/* Overlay */
.gallery-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 30, 62, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.35s ease-in-out;
}

.gallery-card:hover .overlay {
    opacity: 1;
}

/* Icon + Text */
.overlay-content {
    color: #fff;
    padding: 12px 26px;
    border: 2px solid var(--primary);
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.overlay-content i {
    font-size: 20px;
    color: var(--secondary);
}
.wpcf7-spinner {
  display: none;
}
.width {
    min-width: 490px;
}
/* CARD */
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    transition: .3s;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .20);
}

.blog-card img {
    height: 230px;
    object-fit: cover;
}

.blog-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card .card-body p {
    flex-grow: 1;
}

/* CATEGORY */
.category-badge {
    display: inline-flex;
    /* NOT block */
    align-items: center;
    width: auto;
    /* CONTENT WIDTH */
    align-self: flex-start;
    /* PREVENT FULL WIDTH */

    background: rgba(220, 41, 27, .12);
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
}

.read-more-btn {
    margin-top: auto;
    display: inline-flex;
    /* IMPORTANT */
    align-items: center;
    justify-content: center;
    width: auto;
    /* FORCE CONTENT WIDTH */
    align-self: flex-start;
    /* PREVENT FULL WIDTH */
    gap: 10px;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1.5px solid #dc291b;
    color: #dc291b;
    background: transparent;
    transition: all .3s ease;
}

.read-more-btn span {
    font-size: 18px;
    line-height: 1;
}

/* Hover → solid like second button in image */
.read-more-btn:hover {
    background: #dc291b;
    color: #fff;
}

/* SIDEBAR */
.sidebar-box {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .20);
}

.pagination .page-link {
    color: var(--dark);
    border-radius: 10px;
    margin: 0 4px;
}

.pagination .active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}
.post-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
}

blockquote {
    border-left: 5px solid var(--primary);
    padding-left: 20px;
    font-style: italic;
    color: var(--dark);
}

.sidebar-box {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .20);
}
.post-date {
  font-size: 13px;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Category + Date Row */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-date {
  font-size: 13px;
  color: var(--light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Excerpt max 2 lines */
.post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* RECENT POSTS UI */
.sidebar-recent .recent-post-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
}

.sidebar-recent .recent-post-item:hover {
  background: #f5f5f5;
}

.recent-post-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.recent-post-content h6 {
  font-size: 14px;
  margin: 0 0 4px;
  color: var(--dark);
}

.recent-post-content span {
  font-size: 12px;
  color: var(--light);
}
/* BOOK APPOINTMENT CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 18px;
  padding: 30px;
}

.sidebar-cta .cta-icon {
  font-size: 40px;
}

.sidebar-cta p {
  color: rgba(255,255,255,0.9);
}

.sidebar-cta .btn {
  background: #fff;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
}

.sidebar-cta .btn:hover {
  background: #f8f9fa;
}
/* SEARCH */
.sidebar-search .search-wrap {
  position: relative;
}

.sidebar-search input {
  border-radius: 50px;
  padding: 12px 45px 12px 18px;
}

.sidebar-search button {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--light);
}

/* CATEGORIES */
.sidebar-categories .category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill {
  padding: 6px 14px;
  border-radius: 50px;
  background: #f2f2f2;
  font-size: 13px;
  color: var(--dark);
  text-decoration: none;
  transition: 0.3s;
}

.category-pill:hover {
  background: var(--primary);
  color: #fff;
}

/* QUICK TIPS */
.tip-icon {
  font-size: 22px;
  line-height: 1;
}

.sidebar-tips .tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-tips .tips-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--dark);
}

.sidebar-tips .tips-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.dental_gallery_item {
    padding: 10px;
}

.gallery-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-card img {
    width: 100%;
    height: 280px; /* SAME HEIGHT */
    object-fit: cover;
    display: block;
}

/* Overlay */
.gallery-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: 0.3s ease;
}

.gallery-card:hover .overlay {
    opacity: 1;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 28px;
}
.service-item a{
    transition: .5s;
    color: #212529;
}
.single-service .btn-outline-primary:active {
    color: #888888;
}
.single-service .btn-outline-primary:hover {
    color: #888888;
}
.single-service .border-primary {
    border-color: #dd291b !important;
}
.single-service .btn-outline-primary {
    color: #dd291b;
    border-color: #dd291b;
}
.wpcf7-not-valid-tip {
    color: #fff !important;
}
.services-section img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.service-detail img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
#header-carousel .carousel-item {
    height: calc(100vh - 138px);
}
#header-carousel h1 {
    font-size: 56px;
}
/* Desktop Grid */
@media (min-width: 992px) {
    .dental_gallery_slider {
        display: flex;
        flex-wrap: wrap;
    }

    .dental_gallery_item {
        width: 33.333%;
    }
}
@media (max-width: 992px) {
  .width {
      width: 100%;
      min-width: auto;
  }
}
/* FIX CF7 + Bootstrap input-group on mobile */
@media (max-width: 576px) {

    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .input-group .wpcf7-form-control-wrap,
    .input-group input {
        width: 100%;
    }

    .input-group .btn {
        width: 100%;
        margin-top: 10px;
        border-radius: 6px !important;
    }

    /* Remove Bootstrap input-group border tricks */
    .input-group > :not(:last-child) {
        border-top-right-radius: 6px !important;
        border-bottom-right-radius: 6px !important;
    }

    .input-group > :not(:first-child) {
        border-top-left-radius: 6px !important;
        border-bottom-left-radius: 6px !important;
    }
}
@media (min-width: 577px) {
    .input-group input {
        height: 52px;
    }

    .input-group .btn {
        padding: 0 22px;
        height: 52px;
    }
}