/*
Theme Name: India Yaatra Child
Template: indiayaatra
*/

.blog-wrapper {
    display: flex;
    justify-content: center;
}

.content-with-sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1250px;
    padding: 2rem 0.75rem;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .content-with-sidebar {
        flex-direction: row;
        gap: 2rem;
    }

    .main-content {
        flex: 2;
    }

    .sidebar {
        flex: 1;
    }
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-card {
    background: #ffffff;
    border-radius: 0.75rem; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.post-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 18rem;
}

.post-thumb img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    display: block;
}

.date-badge {
    position: absolute;
    top: 10px;
    background-color: #d3a102;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.post-body {
    padding: 1rem 1rem 1.5rem 1rem;
    flex-grow: 1;
    max-height: 10rem;
}

.post-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.post-title {
    font-size: 20px;
    font-weight: 800;
    color: #ef5800; 
    margin-bottom: 0.5rem;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer {
    padding: 0.75rem 1rem 1rem 1rem;
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.card-footer .read-more {
    display: inline-block;
    color: #16a34a;
    border: 2px solid #16a34a;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-footer .read-more:hover {
    background-color: #16a34a;
    color: #ffffff;
}

/*Sidebar*/
.recent_posts {
    margin-top: 1rem;
    border: 1px solid #6b7280;
    border-radius: 1rem;
    overflow: hidden;
    width: 100%;
    background-color: #e5e7eb;
}

.recent_posts h3 {
    background-color: #F97316;
    font-family: 'SancoaleSoftened';
    font-size: 28px;
    color: white;
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
}

.recent_posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.recent_posts li {
    position: relative;
    padding: 20px 15px;
    color: #3b85f4;
    font-weight: 600;
    font-size: 16px;

}

.recent_posts li::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    border-bottom: 1px solid #6b7280;
}


.recent_posts li:last-child::after {
    content: none;
}

.recent_posts li::before {
    content: '✓';
    color: #f57c00;
    margin-right: 8px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.recent_posts li a {
    text-decoration: none;
    color: #3b8ff3;
    display: inline-block;
    padding-left: 25px;
}

.recent_posts li a:hover {
    text-decoration: underline;
}


/*Pagination*/

.pagination {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 1250px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    height: 2.5rem;
    line-height: 1.25;
    color: #6b7280;
    background-color: white;
    margin-left: -1px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    background-color: #f9fafb;
    color: #374151;
}

.pagination .page-numbers.current {
    background-color: #f0f0f0;
    color: #6b7280;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination .page-numbers.prev.disabled,
.pagination .page-numbers.next.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .page-numbers.prev::before {
    content: '';
    width: 0.75rem;
    height: 0.75rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 6 10'%3e%3cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 1 1 5l4 4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.pagination .page-numbers.next::after {
    content: '';
    width: 0.75rem;
    height: 0.75rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 6 10'%3e%3cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 9 4-4-4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}



/* ===========================
   🔹 Single Post Styles
=========================== */

.post-banner {
    width: 100%;
    height: 480px;
    background-size: cover;
    background-position: bottom;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


.banner-overlay {
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-banner .post-title {
    font-size: 35px;
    font-family: SancoaleSoftened;
    line-height: 3.5rem;
    color: #ffffff;
    font-size: 3rem;
    text-align: center;
    padding: 0 1rem;
    max-width: 1250px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .post-banner .post-title {
        font-size: 50px;
    }
}

.single-post-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* 2/3 + 1/3 і не вилазить */
    gap: 2rem;
    max-width: 1250px;
    margin: 3rem auto;
    padding: 0 1rem;
    align-items: stretch;
}
.post-main,
.post-sidebar { min-width: 0; } 

@media (min-width: 1024px) {
  .post-sidebar {
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    height: fit-content;
  }
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.post-content .wp-caption {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  display: block;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.estimate-form {
    position: sticky;
    top: 2%;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 5;
}
.estimate-form .form-title {
    font-family: 'SancoaleSoftened', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    background: #f97316;
    color: #fff;
    text-align: center;
    padding: 0.7rem;
    border-radius: 0.8rem 0.8rem 0 0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}
.form-group { margin-bottom: 1rem; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border-radius: 0.5rem;
    border: none;
    background: #f3f3f3;
    font-size: 0.95rem;
}
.form-group.flex { display: flex; }
.prefix {
    background: #c4c0c0;
    padding: 0.7rem;
    border-radius: 0.5rem 0 0 0.5rem;
}
.form-group.flex input { border-radius: 0 0.5rem 0.5rem 0; }
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

button {
    background: #16a34a;
    color: #fff;
    padding: 0.7rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
button:hover { background: #22c55e; }

.s11:hover {
    background-color: #f97316;
    color: #fff;
}

.s12:hover {
    background-color: #6b7280;
    color: #fff;
}

.s13:hover {
    background-color: #16a34a;
    color: #fff;
}


.recent-posts-slider {
    max-width: 1250px;
    margin: 4rem auto;
}

.recent-posts-slider h3 {
    background-color: #f97316;
    text-transform: uppercase;
    text-align: center;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #fff!important;
}

.slider-container {
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.slider-item {
    flex: 0 0 auto;
    width: 240px;
    font-size: 14px;
    margin: 1rem 0;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
}

.slider-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.slider-item h4 {
    padding: 0.6rem 0.8rem 0.8rem;
    color: #337ab7!important;
    font-weight: 600!important;
    line-height: 1.25!important;
    font-size: 14px!important;
    text-transform: none!important;
    text-align: center;
    word-break: break-word;
}

.slider-item a { text-decoration: none; color: inherit; }



/* --- Author --- */
.post-author {
    max-width: 1250px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 1rem;
    font-size: 1rem;
    color: #444;
}
.author-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.author-info h4 {
    margin: 0;
    font-size: 1.2rem!important;
    text-transform: capitalize!important;
    font-weight: 600;
}
.author-info p {
    margin-top: 0.3rem;
    font-size: 0.95rem;
    color: #555;
}

@media (max-width: 992px) {
    .single-post-container { grid-template-columns: 1fr; }
    .estimate-form { position: static; margin-top: 2rem; }

    .slider-wrapper {
        animation: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
    }
    .slider-item {
        scroll-snap-align: start;
        width: 180px;
    }
    .slider-item img { height: 110px; }
}


#burger-btn {
    background: none;
}

.font-acme {
  font-family: "Acme", sans-serif;
}

main.post-main:not(.slider-item) {
  h1, h2, h3, h4, h5 {
    font-family: "Fira Sans", sans-serif !important;
    text-transform: uppercase;
    font-weight: 700;
    margin: 10px 0;
    color: #ff6600;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 26px; }
  h3, h4, h5 { font-size: 24px; }

  p {
    font-family: "Acme", sans-serif !important;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 10px;
  }

  a {
    color: #083fdb;
    font-weight: 700;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }
}

.error-404 h1 {
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.5px;
}

.error-404 a:hover {
  opacity: 0.85;
  transition: opacity 0.2s ease-in-out;
}

.wp-caption {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
}

.wp-caption img {
  display: block;
  width: 100%;
  height: auto;
}

/* Еквівалент Tailwind-класів */
.wp-caption-text {
  color: #ffffff !important;               /* !text-white */
  background-color: rgba(0, 0, 0, 0.5) !important; /* !bg-black !bg-opacity-50 */
  position: absolute;                      /* absolute */
  width: 100%;                             /* w-full */
  text-align: center;                      /* text-center */
  font-weight: 600;                        /* font-semibold */
  padding: 5px 0;                          /* py-[5px] */
  bottom: 50px;                            /* bottom-[50px] */
  font-size: 18px;                         /* базовий розмір для мобільних */
  line-height: 1.3;
}

.post-content li {
  list-style: none;
  position: relative;
  padding-left: 32px; /* відступ під іконку */
}

.post-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 18px;
  height: 18px;
  background-image: url('https://www.indiayaatra.com/wp-content/uploads/2025/11/right-arrow.png');
  background-size: contain;
  background-repeat: no-repeat;
}



/* Для великих екранів (lg:) */
@media (min-width: 1024px) {
  .wp-caption-text {
    font-size: 25px!important;                       /* lg:!text-[25px] */
    padding: 10px 0;                       /* lg:py-[10px] */
    bottom: 75px;                          /* lg:bottom-[75px] */
  }
}