/*!
 * Vungani - Crowdfunding for a better Malawi (https://vungani.com)
 */

/*--------------------------------------------------------------
Fonts and Base Styling
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Poppins:wght@300;400;600;700&display=swap');

html {
    font-family: sans-serif; /* Basic fallback font */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: #333333;
    background: #f8f9fa;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}

audio, canvas, progress, video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

[hidden], template {
    display: none;
}

a {
    background-color: transparent;
    color: #00796b; /* Vungani Teal for general links */
}
a:active, a:hover {
    outline: 0;
    color: #e67e22; /* Vungani Accent for link hover */
    text-decoration: none;
}

abbr[title] {
    border-bottom: 1px dotted;
}

b, strong {
    font-weight: bold;
}

dfn {
    font-style: italic;
}

h1 {
    margin: .67em 0;
    font-size: 2em;
}

mark {
    color: #000;
    background: #ff0;
}

small {
    font-size: 80%;
}

sub, sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}
sup {
    top: -.5em;
}
sub {
    bottom: -.25em;
}

img {
    border: 0;
}
svg:not(:root) {
    overflow: hidden;
}

figure {
    margin: 1em 40px;
}

hr {
    height: 0;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

pre {
    overflow: auto;
}

code, kbd, pre {
    font-family: monospace, monospace;
    font-size: 1em;
}


/*--------------------------------------------------------------
Vungani Brand Color Variables & Bootstrap Overrides
--------------------------------------------------------------*/
:root {
    --vungani-teal:           #00796b;
    --vungani-teal-hover:     #00514d;
    --vungani-teal-active:    #00403f;

    --vungani-accent:         #e67e22;
    --vungani-accent-hover:   #cf5d0e;

    --vungani-neutral:        #494a52;
    --vungani-neutral-hover:  #34353b;

    --vungani-body-color:     #333333;

    /* --- Bootstrap Variable Overrides for Primary Color --- */
    /* Ensure Bootstrap's --bs-primary uses your Vungani Teal */
    --bs-primary: var(--vungani-teal);
    --bs-primary-rgb: 0, 121, 107; /* RGB equivalent of #00796b */
    --bs-primary-text-emphasis: var(--vungani-teal-hover); /* Darker teal for emphasis */
    --bs-primary-bg-subtle: #d1e7dd; /* A very light teal for subtle backgrounds */
    --bs-primary-border-subtle: #a3c4b1; /* A slightly darker light teal for borders */
    /* --- End Bootstrap Variable Overrides --- */
}

/*--------------------------------------------------------------
Buttons
--------------------------------------------------------------*/

/* Primary (Teal) */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-color: #fff;
    font-weight: 500;
    padding: .75rem 1.5rem;
    border-radius: .375rem;
    transition: background-color .2s, border-color .2s;
}
.btn-primary:hover,
.btn-primary:focus {
    --bs-btn-bg: var(--vungani-teal-hover);
    --bs-btn-border-color: var(--vungani-teal-hover);
}
.btn-primary:active {
    --bs-btn-bg: var(--vungani-teal-active);
    --bs-btn-border-color: var(--vungani-teal-active);
    box-shadow: none;
}

/* Success Button – Green */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
    font-weight: 600;
}
.btn-success:hover,
.btn-success:focus {
    background-color: #1e7e34;
    border-color: #1c7430;
    color: #fff;
}

/* Warning Button – Orange Alias (using your accent color) */
.btn-warning {
    background-color: var(--vungani-accent);
    border-color: var(--vungani-accent);
    color: #fff;
    font-weight: 600;
}
.btn-warning:hover,
.btn-warning:focus {
    background-color: var(--vungani-accent-hover);
    border-color: var(--vungani-accent-hover);
    color: #fff;
}

/* Accent (Orange) - This is typically Bootstrap's 'secondary' if you map it */
.btn-secondary {
    --bs-btn-bg: var(--vungani-accent);
    --bs-btn-border-color: var(--vungani-accent);
    --bs-btn-color: #fff;
    font-weight: 500;
    padding: .75rem 1.5rem;
    border-radius: .375rem;
    transition: background-color .2s, border-color .2s;
}
.btn-secondary:hover,
.btn-secondary:focus {
    --bs-btn-bg: var(--vungani-accent-hover);
    --bs-btn-border-color: var(--vungani-accent-hover);
}

/* Neutral (Dark Gray) */
.btn-neutral {
    color: #fff;
    background-color: var(--vungani-neutral);
    border-color: var(--vungani-neutral);
    font-weight: 500;
    padding: .75rem 1.5rem;
    border-radius: .375rem;
    transition: background-color .2s, border-color .2s;
}
.btn-neutral:hover,
.btn-neutral:focus {
    background-color: var(--vungani-neutral-hover);
    border-color: var(--vungani-neutral-hover);
}

/* Outline Primary (Teal) */
.btn-outline-primary {
    --bs-btn-color: var(--vungani-teal);
    --bs-btn-border-color: var(--vungani-teal);
    background: transparent;
    font-weight: 500;
    padding: .75rem 1.5rem;
    border-radius: .375rem;
    transition: background-color .2s, color .2s, border-color .2s;
    border: 2px solid var(--vungani-teal);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    --bs-btn-bg: var(--vungani-teal);
    --bs-btn-color: #fff;
    --bs-btn-border-color: var(--vungani-teal);
}
.btn-outline-primary:active {
    --bs-btn-bg: var(--vungani-teal-hover);
    --bs-btn-border-color: var(--vungani-teal-hover);
    --bs-btn-color: #fff;
    box-shadow: none;
}

/* Outline Secondary (Orange) */
.btn-outline-secondary {
    border: 2px solid var(--vungani-accent);
    color: var(--vungani-accent);
    background: transparent;
    font-weight: 500;
    padding: .75rem 1.5rem;
    border-radius: .375rem;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--vungani-accent);
    color: #fff;
    border-color: var(--vungani-accent);
}

/* Outline Success (Green) */
.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
}
.btn-outline-success:hover,
.btn-outline-success:focus {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

/* Neutral Outline Button */
.btn-outline-neutral {
    --bs-btn-color: var(--vungani-neutral);
    --bs-btn-border-color: var(--vungani-neutral);
    background: transparent;
    font-weight: 500;
    padding: .75rem 1.5rem;
    border-radius: .375rem;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn-outline-neutral:hover,
.btn-outline-neutral:focus {
    --bs-btn-bg: var(--vungani-neutral);
    --bs-btn-color: #fff;
    --bs-btn-border-color: var(--vungani-accent); /* Border becomes accent color for visibility */
}
.btn-outline-neutral:active {
    --bs-btn-bg: var(--vungani-neutral-hover);
    --bs-btn-border-color: var(--vungani-neutral-hover);
    --bs-btn-color: #fff;
    box-shadow: none;
}

/* Link button override to match brand */
.btn-link {
    color: var(--vungani-teal);
    font-weight: 500;
}
.btn-link:hover {
    color: var(--vungani-accent);
    text-decoration: underline;
}

/* Accessibility focus for keyboard users */
.btn:focus-visible {
    outline: 3px solid rgba(0, 121, 107, 0.4);
    outline-offset: 2px;
}

/* Custom Vungani Buttons (not Bootstrap standard) */
.btn-vungani {
    background-color: var(--vungani-teal);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}
.btn-vungani:hover,
.btn-vungani:focus {
    background-color: var(--vungani-teal-hover);
    color: #fff;
}

.btn-vungani-accent {
    background-color: var(--vungani-accent);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}
.btn-vungani-accent:hover,
.btn-vungani-accent:focus {
    background-color: var(--vungani-accent-hover);
    color: #fff;
}

/* Smaller button size */
.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
}

/* Circle Buttons */
.btn-circle {
    width: 30px;
    height: 30px;
    padding: 6px 0;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 1.42857;
}
.btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 10px 16px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1.33;
}
.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1.33;
}


/*--------------------------------------------------------------
Utility Classes
--------------------------------------------------------------*/
.border-none {
    border: none !important;
}
td.border-none { /* Specific for table cells */
    border: none !important;
}
.border-neutral {
    border-color: var(--vungani-neutral) !important;
}
.text-neutral {
    color: var(--vungani-neutral) !important;
}
.bg-neutral {
    background-color: var(--vungani-neutral) !important;
}
.text-brand {
    color: #00796b; /* Primary brand color */
}
/* Branded muted text for visual dividers */
.text-brand-muted {
    color: var(--vungani-neutral) !important;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vng-section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--vungani-accent);
    margin: 1rem auto;
    border-radius: 2px;
}
/* Dashboard Stat Style */
.huge {
    font-size: 25px;
    font-weight: 600;
}
/* Visual Grid Debug Helper */
.show-grid {
    margin: 1rem 0;
}
.show-grid [class^="col-"] {
    padding: 10px 0;
    border: 1px solid #ddd;
    background-color: #eee !important;
    text-align: center;
}


/*--------------------------------------------------------------
Navbar & Navigation
--------------------------------------------------------------*/
nav.navbar {
    margin-bottom: 0;
    font-size: 15px;
}

img.main-logo {
    max-height: 35px;
    width: auto;
}

/* Search Form Styles */
.search-form button {
    background: #fff;
    color: #999;
    border-radius: 0;
    box-shadow: none;
    margin-left: -5px;
    height: 38px;
}
.search-form button:hover {
    background: var(--vungani-accent);
    color: #fff;
}

.search-form input {
    border: 1px solid #ced4da;
    border-radius: 0;
    box-shadow: none;
}
.search-form .form-group {
    vertical-align: top;
}

/* Nav Pills */
.nav-pills .nav-link.active {
    background-color: var(--vungani-teal);
    color: #fff;
    font-weight: 600;
}
.nav-pills .nav-link {
    color: var(--vungani-teal);
    font-weight: 500;
}
.nav-pills .nav-link:hover {
    color: var(--vungani-accent);
}

/*--------------------------------------------------------------
Main Banner (Home Hero Section)
--------------------------------------------------------------*/
.main-banner {
    position: relative;
    background-color: #00796b; /* Fallback if image fails */
    background-image: url('../images/main-banner.jpg'); /* Adjust path if needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5rem 0;
    color: #ffffff;
    text-align: center;
}

.main-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 121, 107, 0.7),
        rgba(0, 121, 107, 0.3)
    );
    z-index: 1;
    pointer-events: none;
}

.main-banner .container {
    position: relative;
    z-index: 2;
}

.main-banner .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.main-banner .jumbotron-sub-text {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #e0f2f1;
}

.jumbotron-button-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Optional Button Enhancements */
.btn-outline-light {
    border: 2px solid #ffffff;
    color: #ffffff;
    transition: all 0.3s ease-in-out;
}
.btn-outline-light:hover {
    background-color: #ffffff;
    color: #00796b;
}


/*--------------------------------------------------------------
Section Styling (Modernized and Responsive)
--------------------------------------------------------------*/
/* Generic section backgrounds */
.section-bg-gray {
    background: #f8f9fa;
    padding: 3rem 0;
}

.section-bg-white {
    background: #ffffff;
    padding: 3rem 0;
}

/* Global section title */
h2.section-title {
    margin-bottom: 2.5rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: var(--vungani-teal);
    line-height: 1.3;
}

h2.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    margin: 1.25rem auto 0;
    background: var(--vungani-accent);
    border-radius: 2px;
}

/* Specific styling for the 'Get Started' section, blending with body background */
section.home-get-start {
    padding: 3rem 0;
    text-align: center;
}
.home-get-start-content {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}
.get-start-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* Section Action Button (Consolidated) */
.section-action-btn {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border: 1px solid var(--vungani-teal);
    color: var(--vungani-teal);
    font-family: 'Poppins', sans-serif;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    position: relative;
    cursor: pointer;
}
.section-action-btn:hover,
.section-action-btn:focus {
    background: var(--vungani-accent);
    color: #ffffff;
    border-color: var(--vungani-accent);
}


/*--------------------------------------------------------------
Enhanced Category Grid Wrapper (List on Mobile, Grid on Desktop)
--------------------------------------------------------------*/
.category-grid-wrapper {
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
    scroll-snap-type: none;
    padding: 1rem;
    margin: 0 -1rem;
    display: block;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    margin-bottom: 2.5rem;
}

/* Webkit (Chrome, Safari) scrollbar styling */
.category-grid-wrapper::-webkit-scrollbar {
    height: 8px;
}
.category-grid-wrapper::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.category-grid-wrapper::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 6px;
}

.category-grid {
    display: block;
    gap: 1rem;
    min-width: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
}

/* Category Tile Styling (Mobile: Horizontal List) */
.category-grid .category-tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    min-height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-grid .category-tile:hover,
.category-grid .category-tile:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none;
}
.category-grid .category-tile:last-child {
    margin-bottom: 0;
}

/* Align text block vertically in row layout */
.category-grid .category-tile .category-name {
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Category Icon */
.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}
.icon-img {
    max-height: 40px;
    max-width: 40px;
    object-fit: contain;
    transition: opacity 0.2s ease-in-out;
}
.category-icon i {
    font-size: 1.5rem;
    color: #00796b;
    transition: color 0.2s ease-in-out;
}

/* Global Category Name Styles (General styling for category names) */
.category-name {
    font-size: 1.3rem;
    font-weight: 300;
    color: #222;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}
/* If you ever include a <small> or .small inside */
.category-name small,
.category-name .small {
    font-size: 1.1rem;
    color: #555;
    display: block;
    margin-top: .25rem;
    line-height: 1.2;
}

/* Category Tile Overrides (Specific styling for category names within tiles) */
.category-tile .category-name {
    font-size: 1rem;
    font-weight: 400;
    color: inherit;
    margin-top: 0;
    margin-bottom: .25rem;
    line-height: 1.2;
    text-align: center;
}

/* Categories List Table */
.categories-lists td img {
    max-width: 60px;
    max-height: 60px;
}


/*--------------------------------------------------------------
Campaign Card Styling
--------------------------------------------------------------*/
.box-campaign-image {
    height: 150px;
}
.campaign-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.campaign-card .card-img-top {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    width: 100%;
}


/*--------------------------------------------------------------
Why Choose Us Section (Rounded Boxes)
--------------------------------------------------------------*/
.why-choose-us {
    text-align: center;
    padding: 2rem 1rem;
}
.why-choose-us .features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}
/* Feature Box Styling (assuming .feature-box is used in Blade) */
.feature-box {
    flex: 1 1 220px;
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

/* Icon styling within feature-box */
.feature-box i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00796b;
    transition: transform 0.2s ease;
}
.feature-box i:hover {
    transform: scale(1.1);
}

/* Text styling within feature-box */
.feature-box p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

/* Adds a Soft Lift Effect */
.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}


/*--------------------------------------------------------------
Categories Section Wrap (Enhanced)
--------------------------------------------------------------*/
.categories-wrap {
    padding: 60px 0;
    background-color: #f8f9fa;
    z-index: 1;
}
.categories-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 121, 107, 0.05), transparent);
    z-index: -1;
}
.categories-wrap h2.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1b3050;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
}


/*--------------------------------------------------------------
Single Campaign Page – Modern & Clean UI
--------------------------------------------------------------*/
.campaign-details-wrap {
    margin-bottom: 50px;
}

/* Header */
.single-campaign-header {
    background: #00796b;
    padding: 40px 0 0;
    border-bottom: 3px solid var(--vungani-accent) !important;
    margin-bottom: 20px;
}
.single-campaign-title {
    margin-top: 0;
    text-align: center;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
}

/* Campaign Navigation Menu */
.single-campaign-menu {
    border-top: 1px solid var(--vungani-accent) !important;
    border-bottom: 1px solid var(--vungani-accent) !important;
    margin-top: 30px;
    background: #00796b;
}
.single-campaign-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}
.single-campaign-menu ul li {
    display: inline-block;
}
.single-campaign-menu ul li a {
    display: block;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    padding: 1.5rem 3rem;
    color: #ffffff;
    transition: background 0.3s ease, color 0.3s ease;
}
.single-campaign-menu ul li a:hover {
    background: #00796b;
    color: var(--vungani-accent);
}

/* Subtitles */
.campaign-single-sub-title {
    font-size: 20px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: #00796b;
    margin-bottom: 20px;
}

/* Author Box */
.single-author-box img {
    max-width: 35px;
    max-height: 35px;
    border-radius: 50%;
    margin: 5px 10px 0 0;
}
.single-author-box > p {
    font-family: "Roboto", sans-serif;
    color: #333;
    font-size: 14px;
}

/* Embedded Videos/Media */
.single-campaign-embeded {
    margin-bottom: 20px;
}

/* Campaign Description */
.campaign-decription {
    font-size: 15px;
    color: #333;
}
.campaign-decription img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 10px 0;
}
.campaign-decription .update-wrap {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 12px;
}
.campaign-decription .update-wrap h2 {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #00796b;
}

/* Social Share */
.socialShareWrap ul {
    padding: 0;
    text-align: center;
}
.socialShareWrap ul li {
    display: inline-block;
    margin: 5px;
}
.socialShareWrap ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #00796b;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}
.socialShareWrap ul li a:hover {
    background: var(--vungani-accent);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Campaign Update Tabs */
ul.campaign-update-nav {
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 2px;
    display: flex;
    flex-wrap: nowrap;
    list-style-type: none;
    margin: 0 0 20px 0;
    padding: 0;
    width: 100%;
}
ul.campaign-update-nav li a {
    border-left: 1px solid #ccc;
    font-size: 18px;
    display: block;
    line-height: 25px;
    padding: 0.7em 2em;
    text-align: center;
}

/* Campaign List Section (Admin) */
.admin-campaign-lists {
    margin-bottom: 20px;
}


/*--------------------------------------------------------------
Reward
--------------------------------------------------------------*/
.reward-box {
    font-size: 15px;
    background: #f7f7f7;
    padding: 20px;
    border: 1px solid #ced4da;
    margin: 20px 0;
    transition: all 0.4s ease-in-out;
}
.reward-box:hover {
    border: 1px solid #00796b;
}
.reward-box a:hover {
    color: #00796b;
}
.reward-box span {
    display: block;
}
.reward-box span.reward-amount {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #00796b;
}
.reward-box span.reward-amount strong {
    color: var(--vungani-accent);
}
.reward-box span.reward-text {
    margin-bottom: 10px;
    color: #333333;
}
.reward-box span.reward-claimed-count,
.reward-box span.reward-estimated-delivery {
    font-weight: 100;
    color: #666666;
}
.reward-box .reward-button {
    border: 2px solid #00796b;
    color: #00796b;
    width: 100%;
    line-height: 45px;
    text-align: center;
    margin: 10px 0;
    transition: all 0.4s ease-in-out;
}
.reward-box:hover .reward-button {
    background: #00796b;
    color: #ffffff;
}

.reward-box.reward-disable {
    opacity: 0.5;
    cursor: not-allowed;
}
.reward-box.reward-disable:hover {
    border: 1px solid #ced4da;
}
.reward-box.reward-disable:hover .reward-button {
    border: 2px solid #00796b;
    color: #00796b;
    background: #ffffff;
}


/*--------------------------------------------------------------
Checkout
--------------------------------------------------------------*/
.checkout-wrap {
    margin-bottom: 100px;
}
.checkout-wrap .container {
    padding: 3rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.checkout-top {
    background: #f8f9fa;
    padding: 10px;
    border-bottom: 2px solid var(--vungani-teal);
}
.checkout-top h2 {
    margin: 10px 0;
    font-weight: 400;
    font-family: "Poppins", sans-serif;
    color: var(--vungani-teal);
}

.donation-summary {
    font-size: 15px;
    color: #333333;
}
.donation-summary .text-muted {
    font-size: 12px;
    color: #666666;
}
.donation-summary .panel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}
.donation-summary .panel:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.donation-summary .panel-heading {
    background: var(--vungani-teal);
    color: #fff;
    padding: 1.25rem;
    font-family: "Poppins", sans-serif;
}
.donation-summary table {
    width: 100%;
    border-spacing: 0 8px;
    margin-bottom: 0;
}
.donation-summary table td,
.donation-summary table th {
    padding: 10px 0;
    font-size: 15px;
    color: #333;
    border: none;
}
.donation-summary th {
    font-weight: 600;
    color: var(--vungani-teal);
}
.donation-summary p.text-muted {
    margin-top: 10px;
}
.donation-summary .btn-primary {
    background: var(--vungani-accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}
.donation-summary .btn-primary:hover {
    background: var(--vungani-teal);
    color: #fff;
    transform: translateY(-2px);
}
.donation-summary .amount-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.donation-summary .amount-inline .currency {
    font-weight: 600;
    color: var(--vungani-teal);
}
.donation-summary .amount-inline .value {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
}

.name_display_wrap label {
    border: 1px solid #ced4da;
    display: inline-block;
    padding: 10px 20px;
    color: #333333;
}
.name_display_wrap label input[type="radio"],
input[type="checkbox"] {
    margin: 0;
    vertical-align: top;
}

.contributing-to-name {
    margin-top: 50px;
}
.contributing-to h3 {
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: "Roboto", sans-serif;
    color: var(--vungani-teal);
}
.guest_checkout_text {
    margin-bottom: 20px;
    color: #333333;
}

.checkout-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}
.checkout-header p {
    color: var(--vungani-accent);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.checkout-form-modern label {
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
    display: block;
}
.checkout-form-modern input,
.checkout-form-modern textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.25rem;
}
.checkout-form-modern input:focus,
.checkout-form-modern textarea:focus {
    border-color: var(--vungani-accent);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
    outline: none;
}
.checkout-form-modern .flex.gap-4 label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-form-modern button {
    background: var(--vungani-accent);
    padding: 0.75rem;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    color: #fff;
    width: 100%;
    margin-top: 1rem;
}
.checkout-form-modern button:hover {
    background: var(--vungani-accent-hover);
}
.checkout-form-modern p {
    color: #6c757d;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-align: center;
}

.fully-secure-badge {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdfa;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--vungani-teal);
    animation: fadeInUp 0.6s ease;
}
.fully-secure-badge i {
    color: #28a745;
    font-size: 1.2rem;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-method-buttons .btn {
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s ease-in-out;
}
.payment-method-buttons .btn:hover {
    transform: translateY(-2px);
}


/*--------------------------------------------------------------
Auth Form
--------------------------------------------------------------*/
section.auth-form {
    background-color: #f8f9fa;
    padding: 50px 0;
}
/* Note: .panel-default > .panel-heading is defined in Overwriting Bootstrap section */


/*--------------------------------------------------------------
Footer
--------------------------------------------------------------*/
footer {
    background: #1b3050;
    color: #ffffff;
    font-weight: 300;
}
.footer-top {
    padding-top: 50px;
    padding-bottom: 50px;
}
.footer-about img {
    max-height: 25px;
    width: auto;
    margin-bottom: 20px;
}
.footer-widget-title {
    margin-top: 0;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    color: var(--vungani-accent);
}
.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-widget ul li {
    margin-bottom: 10px;
}
.footer-widget ul li i,
.footer-widget ul li span {
    display: inline-block;
}
.footer-widget ul li i {
    vertical-align: top;
    margin-top: 5px;
    color: var(--vungani-teal);
}
.footer-widget ul li span {
    padding-left: 5px;
    color: #ffffff;
}
.footer-widget ul li a {
    color: #e0e0e0;
    transition: all 0.3s ease-in-out;
}
.footer-widget ul li a:hover {
    color: var(--vungani-teal);
}
.footer-bottom {
    border-top: 1px solid #1b4050;
    padding: 30px 0 20px;
    text-align: center;
}
.footer-copyright {
    font-size: 14px;
    color: #e0e0e0;
}

/* Footer Campaign Stats (if you bring it back, this is its styling) */
.footer-campaign-stats {
    border-top: 1px solid #dddddd;
    padding: 40px 0;
    text-align: center;
}
.footer-campaign-stats h4 {
    color: var(--vungani-teal);
}


/*--------------------------------------------------------------
Overwriting Bootstrap & Global Components
--------------------------------------------------------------*/
/* Progress Bar */
.progress-bar {
    background-color: var(--vungani-accent) !important;
    box-shadow: none !important;
}

/* Completed Badge */
.completed-badge {
    background-color: #20c997; /* A specific green, consider if this should be a variable */
    color: white;
}

/* General Panel Styling (used by Bootstrap's .panel) */
.panel {
    background-color: #ffffff;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 22px;
}
.panel-default {
    border-color: #d1d5da;
}
.panel-default > .panel-heading {
    background-color: #ffffff;
    border-color: #d1d5da;
    font-family: "Roboto", sans-serif;
}

/* Custom Bootstrap 5 Cards */
.card-success {
    border-color: #5cb85c;
}
.card-success .card-header {
    background-color: #5cb85c;
    color: #fff;
    border-color: #5cb85c;
}
.card-success a {
    color: #5cb85c;
}
.card-success a:hover {
    color: #3d8b3d;
}

.card-danger {
    border-color: #d9534f;
}
.card-danger .card-header {
    background-color: #d9534f;
    color: #fff;
    border-color: #d9534f;
}
.card-danger a {
    color: #d9534f;
}
.card-danger a:hover {
    color: #b52b27;
}

.card-warning {
    border-color: #f0ad4e;
}
.card-warning .card-header {
    background-color: #f0ad4e;
    color: #fff;
    border-color: #f0ad4e;
}
.card-warning a {
    color: #f0ad4e;
}
.card-warning a:hover {
    color: #df8a13;
}

/* Bank Payment */
.bankPaymetWrap {
    margin-top: 50px;
}
.bankPaymetWrap .jumbotron {
    padding: 20px !important;
}

/* 404 Page */
.wrap-404 {
    text-align: center;
    padding: 100px 0;
    background: #f5f8fa;
}

/* No Data / Empty State */
.no-data {
    padding: 50px 0;
    text-align: center;
}
.no-data h1 {
    font-weight: 400;
    color: var(--vungani-teal);
}
.no-data i {
    font-size: 25px;
    color: var(--vungani-accent);
}
.no-data p { /* Added from a previous snippet */
    font-size: 1rem;
    color: #777;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

/* Payment Received Page */
.payment-received {
    text-align: center;
    padding: 100px 0;
}
.payment-received h1 {
    font-weight: 400;
    color: var(--vungani-teal);
}

/* Select2 override */
.select2-container .select2-choice {
    background-image: none;
    height: 30px;
    line-height: 30px;
}

/* Toast container fix */
#toast-container > div {
    opacity: 1 !important;
}

/* File Uploads */
.file-upload-wrap label {
    border: 1px solid #ddd;
    float: left;
    text-align: center;
    height: 150px;
    width: 150px;
    padding: 30px 0;
    cursor: pointer;
    margin: 5px;
}
.file-upload-wrap i {
    font-size: 50px;
    cursor: pointer;
}

.creating-ads-img-wrap {
    border: 1px solid #ddd;
    float: left;
    height: 150px;
    width: 150px;
    padding: 5px;
    margin: 5px;
    position: relative;
}
.img-action-wrap {
    bottom: 0;
    position: absolute;
}
.img-action-wrap a {
    font-size: 16px;
    margin: 3px;
}
.img-action-wrap a.imgDeleteBtn {
    color: #ff0000;
}
.img-action-wrap a.imgFeatureBtn {
    color: #d58512;
}

/* Image Upload Preview */
.img_upload {
    background: #eee;
    border: 1px solid #ccc;
    font-size: 40px;
    height: 150px;
    line-height: 150px;
    text-align: center;
    width: 150px;
    margin-right: 20px;
    display: inline-block;
    cursor: pointer;
}
#feature_image_preview {
    display: inline-block;
}
#feature_image_preview img {
    max-width: 150px;
}

/* Label Reset */
label {
    font-weight: 400;
}

/* Chat */
.chat {
    margin: 0;
    padding: 0;
    list-style: none;
}
.chat li {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #999;
}
.chat li.left .chat-body {
    margin-left: 60px;
}
.chat li.right .chat-body {
    margin-right: 60px;
}
.chat li .chat-body p {
    margin: 0;
}
.panel .slidedown .glyphicon,
.chat .glyphicon {
    margin-right: 5px;
}
.chat-panel .panel-body {
    height: 350px;
    overflow-y: scroll;
}

/* Login Panel */
.login-panel {
    margin-top: 25%;
}

/* Modal custom styles */
.modal-header {
    background-color: var(--vungani-teal);
    color: #fff;
    border-bottom: none;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 10px;
}
.modal-footer .btn {
    min-width: 120px;
    border-radius: 30px;
}
.modal-footer .btn-danger {
    background-color: #e74c3c;
    border: none;
}
.modal-footer .btn-secondary {
    background-color: #95a5a6;
    border: none;
}
.modal-footer .btn-success {
    background-color: #27ae60;
    border: none;
    min-width: 120px;
    border-radius: 30px;
    color: #fff;
}
.modal-footer .btn-success:hover {
    background-color: #1e8449;
}

/* Optional: Slight zoom animation on modal show */
.modal.fade .modal-dialog {
    -webkit-transform: translate(0, -25%);
    transform: translate(0, -25%);
    transition: transform 0.3s ease-out;
}
.modal.show .modal-dialog {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}

/* Optional: apply the same pill style to inline approve buttons elsewhere */
.btn-success.rounded-pill {
    background-color: #27ae60;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    color: #fff;
}
.btn-success.rounded-pill:hover {
    background-color: #1e8449;
}


/*--------------------------------------------------------------
Table & Form Element Overrides
--------------------------------------------------------------*/
/* Improve spacing inside tables */
.table th, .table td {
    vertical-align: middle;
    padding: 10px 8px;
    font-size: 14px;
}

/* Form Select */
.form-select {
    border-color: var(--vungani-teal);
    font-weight: 500;
}
.form-select:focus {
    border-color: var(--vungani-accent);
    box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.25);
}

/* Optional: Add slight margin between title and button */
.page-header .btn {
    margin-top: -5px;
}

/* Chart Containers */
.flot-chart {
    display: block;
    height: 400px;
}
.flot-chart-content {
    width: 100%;
    height: 100%;
}

/* DataTables Enhancements */
.dataTables_wrapper {
    position: relative;
    clear: both;
}
/* Remove Bootstrap 3 background sort indicators */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    background: none !important;
}
/* Use Font Awesome for sort icons */
table.dataTable thead .sorting:after {
    content: "\f0dc";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    color: rgba(50, 50, 50, 0.5);
}
table.dataTable thead .sorting_asc:after {
    content: "\f0de"; /* up */
}
table.dataTable thead .sorting_desc:after {
    content: "\f0dd"; /* down */
}


/*--------------------------------------------------------------
Font Awesome Icon Overrides
--------------------------------------------------------------*/
i.fa-facebook-f::before {
    content: "\f39e";
    font-family: "Font Awesome 6 Brands";
}
i.fa-google::before {
    content: "\f1a0";
    font-family: "Font Awesome 6 Brands";
}


/*--------------------------------------------------------------
Responsive Adjustments (Consolidated)
--------------------------------------------------------------*/
@media (min-width: 576px) { /* Small screens and up */
    .jumbotron-button-wrap {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 767px) { /* Small screens adjustments */
    /* Dashboard Specific */
    #wrapper {
        display: block;
    }
    .navbar-default.sidebar {
        width: 100%;
        margin-bottom: 15px;
    }
    #page-wrapper {
        margin-left: 0;
        padding: 15px;
    }

    /* Campaign Card Specific */
    .col-md-4 .campaign-card {
        min-width: auto;
    }

    /* Modal Footer Buttons */
    .modal-footer .row {
        flex-direction: column;
    }
    .modal-footer .row .col-md-6,
    .modal-footer .row .col-md-12 {
        width: 100%;
        margin-bottom: 10px;
    }
    .modal-footer .btn {
        width: 100%;
    }

    /* Table Headings */
    .table th {
        font-size: 12px;
    }
}

@media (max-width: 600px) { /* Extra small screens adjustments for features */
    .feature-box {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) { /* Extra small screens adjustments for main banner and categories */
    .main-banner {
        padding: 4rem 1rem;
    }
    .main-banner .section-title {
        font-size: 1.5rem;
    }
    .main-banner .jumbotron-sub-text {
        font-size: 1rem;
    }

    /* Global Category Name smaller on mobile */
    .category-name {
        font-size: 1.2rem;
    }
    .category-name small,
    .category-name .small {
        font-size: 1rem;
    }
    /* Category tiles even smaller on mobile */
    .category-tile .category-name {
        font-size: .9rem;
    }
}

@media (min-width: 992px) { /* Desktop specific styles */
    /* Category Grid */
    .category-grid-wrapper {
        overflow: visible;
        padding: 0;
        margin: 0;
        display: block;
        scrollbar-width: auto;
        scrollbar-color: auto;
    }
    .category-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem;
        min-width: 100%;
        padding-bottom: 0;
    }
    .category-grid .category-tile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 0;
    }
    .category-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    /* Campaign Card Specific */
    .col-lg-4 .campaign-card {
        min-width: 300px;
    }

    /* Dashboard Specific */
    #page-wrapper {
        padding: 0 2rem;
        border-left: 1px solid #e7e7e7;
    }
}

/* Home Campaign Section Text Adjustments (Global) */
.home-campaign .text-center i {
    margin-bottom: 10px;
}
.home-campaign .text-center p {
    font-size: 16px;
    margin-top: 5px;
    line-height: 1.6;
}

.no-underline {
    text-decoration: none !important;
}

.card-title a {
    text-decoration: none !important;
    color: inherit; /* optional: keep link color consistent */
}

.card-title a:hover {
    text-decoration: underline;
}

.card-text,
.card-text a {
    text-decoration: none !important;
} 

.text-brand-primary {
    color: #00796b !important;
}
.text-brand-secondary {
    color: #e67e22 !important;
}

.platform-fees-info .section-title::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        margin: 1.25rem auto 0;
        background: var(--vungani-accent);
        border-radius: 2px;
}

