/* Grid Layout */
.dpg-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Card */
.dpg-card {
    position: relative;
    height: 475px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}
.dpg-card > a {
    position: absolute;
    inset: 0; /* shorthand for top:0; left:0; right:0; bottom:0; */
    z-index: 3;
    text-indent: -9999px; /* hide text if any */
    background: transparent;
}
/* Background Image */
.dpg-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    transition: transform .4s ease;
}
.dpg-card-image,
.dpg-card-overlay {
    position: relative;
    z-index: 1;
}

/* Hover Zoom Effect */
/*.dpg-card:hover .dpg-card-image {
    transform: scale(1.05);
}*/

/* Gradient Overlay (bottom) */
.dpg-card-overlay p,
.dpg-card-overlay .dpg-card-title {
    color: #FFFFFF;
} 
.dpg-card-overlay {
    position: absolute;
    bottom: 0;
    width: 90%;
    padding: 15px;
    margin: 20px;
    /*background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));*/
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

/* Title */
.dpg-card-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 10px;
}

/* Description */
.dpg-card-text {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    /*opacity: 0.9;*/
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dpg-card {
        height: 360px;
    }
    .dpg-tabs { display: none; }
}


/* TAB BUTTON */
.dpg-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.dpg-tab {
    /*max-width: 150px;*/
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5;
    cursor: pointer;
    /*background: linear-gradient(135deg, #FBA91E 0%, #FFD47A 100%);*/
    background: rgba(255, 229, 184, 0.6);
    color: #000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
    outline: none;
    /*white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;*/
}

/*.dpg-tab:hover {
    box-shadow: 0 5px 14px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}*/

.dpg-tab.active {
    /*background: linear-gradient(135deg, #FBA91E 0%, #FFBD45 100%);*/
/*    box-shadow: 0 4px 12px rgba(0,0,0,0.20);*/
    box-shadow: 0 1px 1px rgba(0,0,0,0.20);
}

/* -------------------------------------------------- */
/* Base loader (hidden by default)                    */
/* -------------------------------------------------- */
body.cpg-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner inside overlay */
body.cpg-loading::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 4px solid rgba(255,255,255,0.3);
  /*border: 4px solid rgba(251, 169, 30, 0.3);*/
  border-top-color: #FBA91E;
  border-radius: 50%;
  animation: inxSpin .75s linear infinite;
  z-index: 1000000;
}

@keyframes inxSpin {
  to { transform: rotate(360deg); }
}

/* ---------PAGINATION--------- */
/* Pagination wrapper */
.dpg-paginate {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;

    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 30px;
}

/* Pagination buttons */
.dpg-page,
.dpg-next,
.dpg-prev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Active */
.dpg-tabs .dpg-tab.active,
.dpg-page.active {
    background: #fba91e;
    border-color: #fba91e;
    color: #fff;
    box-shadow: 0 6px 18px rgba(251,169,30,0.35);
}

/* Hover */
/*.dpg-page:hover,
.dpg-next:hover,
.dpg-prev:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}*/

/* Next arrow (FontAwesome is applied via your HTML) */
.dpg-next {
    font-size: 18px;
}

/* Prevent ellipse icon from stretching */
.dpg-paginate .fa {
    font-size: 14px;
}

/* ---------END PAGINATION--------- */