/* =============================================
   Restaurantitchicken — Elementor Widget Styles
   Color Scheme: Dark Brown #331B0E | Amber #FFA600 | Cream #ffe8c9
   Heading Font: Boomme | Body/Text Font: Poppins
   ============================================= */

/* Grid */
.restaurantitchicken-grid {
    display: grid;
    gap: 24px;
}

.ip-cols-1 { grid-template-columns: repeat(1, 1fr); }
.ip-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ip-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ip-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .ip-cols-3,
    .ip-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* 100% mobile responsive: always ONE post per row, stacked one under
   another (never 2-up) on phones and small tablets. */
@media (max-width: 767px) {
    .ip-cols-2,
    .ip-cols-3,
    .ip-cols-4 { grid-template-columns: 1fr; }

    .restaurantitchicken-grid { gap: 20px; }
}

/* Card */
.ip-card {
    background: #331B0E;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(51, 27, 14, 0.18);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ip-has-shadow { box-shadow: 0 6px 22px rgba(51, 27, 14, 0.22); }

.ip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(51, 27, 14, 0.3);
    border-color: #FFA600;
}

/* Thumbnail */
.ip-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #331B0E;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.ip-card.no-thumb .ip-card__thumb {
    background: linear-gradient(135deg, #4a2814, #331B0E);
}

.ip-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover zoom amount is set via the "Hover Zoom Scale" control in the
   widget's Image style tab (defaults to a subtle zoom-out). */

/* Gradient overlay behind badge/date/title so text stays readable on any
   photo. Colors/angle are fully editable via the "Bottom Overlay" control
   in the widget's Image style tab. */
.ip-card__gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Badge (category) — top-left over image */
.ip-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(51, 27, 14, 0.85);
    color: #FFA600;
    font-family: 'Boomme', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    line-height: 1;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.ip-card.no-thumb .ip-card__badge {
    background: #FFA600;
    color: #331B0E;
}

/* Date badge — top-right over image */
.ip-card__date {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(51, 27, 14, 0.55);
    color: #ffe8c9;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 11.5px;
    padding: 5px 12px;
    border-radius: 50px;
    line-height: 1;
    z-index: 2;
    backdrop-filter: blur(2px);
}

/* Title — overlaid at the bottom of the image, on top of the gradient.
   The outer element is a flex box so it can be anchored left/center/right
   (Position control); the inner span carries the actual max-width
   (Title Width control) and text styling, independent of each other. */
.ip-card__title--overlay,
.ip-card__title.ip-card__title--overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 18px 22px;
    margin: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ip-card__title-inner {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
}

/* Mobile: the Title Width control (Style > Title) lets you shrink the
   title box on desktop; on phones it must always be full width no
   matter what desktop/tablet value was chosen, so it's force-locked
   here regardless of the Elementor control's saved value. */
@media (max-width: 767px) {
    .ip-card__title-inner {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Body */
.ip-card__body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta */
.ip-card__meta {
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    color: rgba(255, 232, 201, 0.6);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 232, 201, 0.4);
    display: inline-block;
    flex-shrink: 0;
}

/* Title */
.ip-card__title {
    font-family: 'Boomme', sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    color: #FFA600;
    margin: 0 0 10px;
    text-decoration: none;
    display: block;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.ip-card__title:hover,
.ip-card:hover .ip-card__title {
    color: #ffe8c9;
}

/* Excerpt */
.ip-card__excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 232, 201, 0.72);
    line-height: 1.65;
    margin: 0 0 20px;
    flex: 1;
}

/* CTA */
.ip-card__cta {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #FFA600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: color 0.2s ease;
}

.ip-card__cta::after {
    content: '→';
    transition: transform 0.2s ease;
}

.ip-card__cta:hover {
    color: #ffe8c9;
}

.ip-card__cta:hover::after {
    transform: translateX(4px);
}

/* ── Pagination ───────────────────────────────── */
.restaurantitchicken-pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin: 40px 0 24px;
    padding: 20px 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.ip-page-item {
    display: inline-flex;
}

.restaurantitchicken-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    color: #331B0E;
    background: rgba(51, 27, 14, 0.07);
    border: 1px solid transparent;
    transition: background 0.25s ease, color 0.25s ease, transform 0.22s ease, border-color 0.25s ease;
    cursor: pointer;
}

.restaurantitchicken-pagination .page-numbers:hover {
    background: #FFA600;
    color: #331B0E;
    transform: translateY(-2px);
    border-color: #FFA600;
}

.restaurantitchicken-pagination .page-numbers.current {
    background: #331B0E;
    color: #FFA600;
    font-weight: 700;
    border-color: #331B0E;
    cursor: default;
    transform: none;
}

.restaurantitchicken-pagination .page-numbers.dots {
    background: transparent;
    color: #8a7160;
    cursor: default;
    min-width: 20px;
    padding: 0 4px;
    border-color: transparent;
}

.restaurantitchicken-pagination .page-numbers.dots:hover {
    background: transparent;
    transform: none;
    border-color: transparent;
    color: #8a7160;
}

.restaurantitchicken-pagination .prev.page-numbers,
.restaurantitchicken-pagination .next.page-numbers {
    padding: 0 16px;
    font-weight: 600;
    font-size: 13px;
    background: #331B0E;
    color: #ffe8c9;
    border-color: #331B0E;
}

.restaurantitchicken-pagination .prev.page-numbers:hover,
.restaurantitchicken-pagination .next.page-numbers:hover {
    background: #FFA600;
    color: #331B0E;
    border-color: #FFA600;
}
