:root {
    --givr-font-main: 'Roboto';
    --givr-grid-columns: 2;
    --givr-grid-gap: 60px;
}

.givr-block-cards-grid {
    display: grid;
    grid-gap: var(--givr-grid-gap, 30px);
    grid-template-columns: repeat(var(--givr-grid-columns, 1), minmax(0, 1fr));
}

.givr-plugin-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.givr-plugin-table th, .givr-plugin-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.givr-plugin-table th {
    background-color: #f2f2f2;
}

.notice_custom {
    border-left: 4px solid;
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.notice-error {
    border-color: #dc3232;
    background-color: #f8d7da;
    color: #721c24;
}

.notice-info {
    border-color: #0073aa;
    background-color: #d1ecf1;
    color: #0c5460;
}

.shortcode.campaign-card .campaign-thumb:after {
    content: '';
    display: block;
    max-height: 255px;
}

.shortcode.campaign-card .campaign-thumb {
    display: block;
    text-decoration: none;
    border: none;
    background-color: #f6f6f6;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    -webkit-transition: opacity .3s;
    transition: opacity .3s;
    aspect-ratio: 4 / 3;
}

.shortcode.campaign-card .bottom-line .card-button-wrapper {
    align-self: center;
    padding: 18px 40px !important;
    border-radius: 8px !important;
    text-decoration: none;
    color: white;
    font-weight: 600 !important;
    font-size: 16px !important;
    -webkit-transition: opacity .3s;
    transition: opacity .3s;

}

.shortcode.campaign-card .bottom-line .bottom-line-item {
    width: auto;
    margin: 0;
    text-align: center;
}

.shortcode.campaign-card .bottom-line {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.shortcode.campaign-card .sub-block:last-child {
    margin-bottom: 0;
}


.givr-container {
    display: flex;
    justify-content: center;
    align-content: center;
}

.givr-container .center-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.givr-container .header h1 {
    text-align: center;
}

.campaign-card.givr-block-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.campaign-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shortcode.campaign-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.shortcode.campaign-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

@media (max-width: 767px) {
    .givr-grid-columns-2, .givr-grid-columns-3, .givr-grid-columns-4 {
        --givr-grid-columns: 1 !important;
    }
    .shortcode.campaign-card .bottom-line .card-button-wrapper {
        padding: 8px 16px;
        border-radius: unset;
    }
    .shortcode.campaign-card .bottom-line .bottom-line-item {
        line-height: 1.4;
    }
}

.shortcode.campaign-card.givr-block-card > h3, .shortcode.campaign-card.givr-block-card > p, .shortcode.campaign-card.givr-block-card > div {
    padding: 0px 16px 20px 16px;
}

.shortcode.campaign-card.givr-block-card > p {
    line-height: 1.4;
}

.campaign-title.sub-block {
    padding: 0;
    margin-bottom: 12px;
    margin-top: 12px;
}


.givr-components-base-control__label {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

.givr-components-base-control .components-font-size-picker__controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.givr-components-base-control .components-font-size-picker__controls .components-color-palette__clear {
    margin-top: 0;
    margin-left: 10px;
}


.campaign-title.sub-block a {
    text-decoration: none;
}

.shortcode.campaign-card .campaign-excerpt.sub-block {
    line-height: 1.6;
    padding: 0;
    margin-bottom: 24px;
    flex-grow: 1;
}

.shortcode.campaign-card .donation-thermometer-container {
    padding: 0;
    margin-top: 0;
}

.givr-grid-item .shortcode.campaign-card .donation-thermometer-container {
    margin-top: auto;
}

.givr-message-wrapper {
    padding: 12px;
    border: 1px solid green;
}

#menu-posts-givr-fundraising .wp-menu-image {
    background-image: url('../images/logo/icon-menu.png') !important;
    background-size: cover !important;
}

#menu-posts-givr-fundraising .dashicons {
    display: none;
}

/* Styles to make the campaign card image fill its container */
.campaign-card .campaign-thumb {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
}

.campaign-card .campaign-thumb img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Stretches the image to fill the container, may cause distortion */
    object-position: center;
    transition: transform 0.3s ease;
}

/* Optional: nice zoom effect on hover */
.campaign-card:hover .campaign-thumb img {
    transform: scale(1.05);
}

.campaign-title.sub-block a.title {
    font-weight: 700;
    font-size: 1.3rem;
    font-family: inherit;
    color: #111;
}
.campaign-excerpt.sub-block {
    font-size: 13px;
    font-family: inherit;
}

/* Styles for givr-payments single campaign template */
.givr-content-container {
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    margin: 20px auto;
    max-width: 1200px; /* Set a max-width for larger screens */
    width: 100%; /* Ensure it's responsive */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.givr-campaign-header {
    text-align: center;
    margin-bottom: 1.5rem;

    padding-bottom: 1.5rem;
}

.givr-campaign-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.givr-campaign-image {
    margin-bottom: 2rem;
}

.givr-campaign-image img {
    width: 100%;
    max-width: 600px;
    max-height: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.givr-campaign-description {
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.givr-campaign-widget-area {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Post Navigation Fixed Links with Text */
.post-navigation {
    border: none;
    margin: 0;
    padding: 0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.post-navigation .nav-previous {
    left: 25px;
}

.post-navigation .nav-next {
    right: 25px;
}

.post-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 30px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-navigation a:hover {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.05);
}

.post-navigation .nav-next a {
    flex-direction: row-reverse;
}

.post-navigation a::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #333;
    border-left: 2px solid #333;
    flex-shrink: 0;
}

.post-navigation .nav-previous a::before {
    transform: rotate(-45deg);
}

.post-navigation .nav-next a::before {
    transform: rotate(135deg);
}



.post-navigation a .nav-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-navigation .nav-subtitle {
    display: none;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .givr-content-container {
        padding: 1.5rem;
    }

    .givr-campaign-title {
        font-size: 1.8rem;
    }
}

.givr-widget-container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1600px) {
    .givr-widget-container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* GIVR Circular Navigation */
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-navigation .nav-previous a:hover {
    transform: translateY(-50%) translateX(-4px) scale(1.05);
    background: #f7f7f7;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-navigation .nav-next a:hover {
    transform: translateY(-50%) translateX(4px) scale(1.05);
    background: #f7f7f7;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-navigation .nav-previous a {
    left: 5px;
}

.post-navigation .nav-next a {
    right: 5px;
}



/* Responsive: Adjust navigation for smaller screens */
@media (max-width: 768px) {
    .post-navigation .nav-previous a,
    .post-navigation .nav-next a {
        padding: 6px 10px;
        border-radius: 50px;
    }
    
    .post-navigation .nav-previous a {
        left: 5px;
    }
    
    .post-navigation .nav-next a {
        right: 5px;
    }
}

/* Thermometer styling for single campaign page */
.givr-campaign-thermometer .donation-thermometer-container {
    padding: 0 5%;
}

/* Extended Template Styles */
.givr-template-extended .givr-extended-card-outer {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 40px 30px;
    margin: 30px auto 0 auto;
    max-width: 1200px;
}

.givr-template-extended .givr-extended-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    min-height: unset;
}

.givr-template-extended .givr-extended-image-column,
.givr-template-extended .givr-extended-content-column {
    height: auto;
    min-height: unset;
    max-height: unset;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.givr-template-extended .givr-extended-image-column img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.givr-template-extended .givr-extended-content-column {
    flex-direction: column;
    gap: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 28px 24px;
    background: #fafafa;
    box-shadow: none;
    align-self: flex-start;
    max-width: 420px;
    min-width: 280px;
    width: 100%;
}

.givr-template-extended .givr-campaign-excerpt {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #666;
}

.givr-template-extended .givr-campaign-excerpt p {
    margin: 0;
}

.givr-template-extended .givr-campaign-full-content {
    margin-top: 40px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.givr-template-extended .givr-campaign-thermometer .donation-thermometer-container {
    padding: 0;
    transform: scale(0.9);
    transform-origin: center top;
}

.givr-donate-button-wrapper {
    text-align: center;
    width: 100%;
}

.givr-donate-scroll-button {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin: 24px 0 0 0;
}

.givr-donate-scroll-button:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.givr-campaign-footer-widget {
    background: #f8f9fa;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid #e9ecef;
}

.givr-campaign-footer-widget .givr-campaign-widget-area {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive for Extended Template */
@media (max-width: 900px) {
    .givr-template-extended .givr-extended-card-outer {
        padding: 10px 0;
    }
    .givr-template-extended .givr-extended-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .givr-template-extended .givr-extended-image-column img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    .givr-template-extended .givr-extended-content-column {
        padding: 10px 5px;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        border: none;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }
    .givr-donate-scroll-button {
        padding: 12px 0;
        font-size: 16px;
        margin: 16px 0 0 0;
    }
}

.givr-template-extended .givr-extended-content-column .givr-campaign-thermometer {
    width: 100%;
    padding: 0;
    margin: 0;
}
.givr-template-extended .givr-extended-content-column .donation-thermometer-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.givr-block-cards-grid.g-with-70{
    max-width:70%;
    margin:0 auto;
}
