:root {
    --primary-color: #e74c3c;
    --primary-hover: #c0392b;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-light: #dee2e6;
    --bs-body-font-size: 1.1rem;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.krishna-header {
    background: url('/images/krishna-banner.jpg') center/cover no-repeat;
    height: 300px;
    position: relative;
}

.hidden {
    display: none;
}

#banner-background {
    background-image: url(../images/banner.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
}

/* Custom Styling - Author: Ajay */
body {
    font-family: 'Noto Sans', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: #333;
}

h3 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

h6 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Top Bar */
.top-bar {
    background-color: #f8f9fa;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1050;
    
    a {
        color: #666;
        text-decoration: none;
        margin-right: 20px;

        &:hover {
            color: #e74c3c;
      }
    }

    i {
        width: 16px;
        height: 16px;
        margin-right: 5px;
    }

    .right-section {
        text-align: right;
    }

    .dropdown-toggle {
        cursor: pointer;

        &::after {
            margin-left: 5px;
        }
    }

    .dropdown-menu {
        font-size: 14px;
        min-width: 120px;
        z-index: 1060;
    }

    .dropdown-item.active {
        background-color: #e74c3c;
        color: white;
    }
}

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: relative;
    z-index: 1040;
}

.navbar-brand img {
    height: 70px;
    margin-right: 15px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 8px 20px !important;
    transition: color 0.3s;

    &:hover {
        color: #e74c3c;
    }
}

.btn-donate, .btn-primary {
    background-color: #e74c3c;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    transition: background-color 0.3s;
    text-decoration: none;

    &:hover, &:active, &:focus {
        background-color: #c0392b;
        color: white;
    }

    &:active:focus, &:focus {
        box-shadow: none;
    }

    i {
        margin-right: 5px;
    }
}

/* Dropdown Submenu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 10px 20px;
    transition: background-color 0.3s;

    &:hover {
        background-color: #f8f9fa;
        color: #e74c3c;
    }
}

.dropdown-submenu {
    position: relative;

    .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
    }
}

/* Mobile responsive dropdown */
@media (max-width: 991px) {
    .dropdown-menu .dropdown-menu {
        position: static;
        margin-left: 20px;
    }
}

/* How Can You Contribute Section */
.contribute-section, .bg-section {
    background: linear-gradient(180deg, #ffecd2 0%, #fcb69f 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        top: -200px;
        left: -200px;
    }
}

.contribute-card {
    background: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;

    &:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 20px;
        color: #e74c3c;
        font-size: 60px;
    }
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(180deg, #fcb69f 0%, #ffecd2 100%);
    padding: 50px 0;
}


.date-filter {
    text-align: center;
    margin-bottom: 40px;
}

.date-filter select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;

    &::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100px;
        height: 60px;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 60"><path d="M0,30 Q25,0 50,30 T100,30 L100,60 L0,60 Z" fill="%23e8f5e9"/></svg>');
        opacity: 0.5;
    }

    .growth {
        font-size: 14px;
        color: #4caf50;
        font-weight: 600;
    }
}

/* Featured Projects Section */
.projects-section {
    background: linear-gradient(180deg, #ffecd2 0%, #fcb69f 100%);
    padding: 50px 0;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;

    &:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    p {
        margin-bottom: 20px;
    }
}

.project-card-body {
    padding: 25px;
    height: 280px;
}

.project-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;

    .raised {
        color: #333;
        font-weight: 600;
    }

    .goal {
        color: #999;
    }
}

.progress {
    height: 8px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
}

.progress-bar {
    background-color: #4caf50;
}

.btn-view-project {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 5px;
    text-align: center;
    display: block;
    border: 1px solid #e74c3c;
    border-radius: 5px;

    &:hover {
        color: #fff;
        background: #e74c3c;
        text-decoration: none;
    }
}

/* Pagination Buttons  */
.page-item.active .page-link {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
}

.page-link {
    color: #e74c3c;

    &:hover {
        color: #e74c3c;
        background-color: #f5d9d6;
        border-color: #f2c8c4;
    }

    &:focus {
        box-shadow: none;
        color: #e74c3c;
        background-color: #f5d9d6;
    }
}

/* Call To Action Section */
.action-section {
    background: linear-gradient(180deg, #fcb69f 0%, #ffecd2 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        bottom: -200px;
        right: -200px;
    }
}

.donation-card {
    margin-top: 30px;
    /*background: rgb(255 247 241 / 53%) background: #ffffff;*/
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.bank-logo {
    max-height: 48px;
}

.section-title {
    color: #f05a28;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.label {
    font-weight: 600;
    color: #333;
}

.value {
    color: #555;
}

.qr-box {
    background: #ffffff75;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);

    img {
        max-width: 220px;
        margin-bottom: 0;
    }
}

.qr-title {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.qr-subtitle {
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .donation-card {
        padding: 20px;
    }
}
/* Footer */
footer {
    background-color: #ffffff;
    padding: 30px 0;
    font-size: 14px !important;

    a {
        color: #6c757d;
        text-decoration: none;
        margin: 0 15px;
        font-size: 14px;

        &:hover {
            color: #e74c3c;
        }
    }
}
/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 300px;
    }

    .contribute-section h2,
    .statistics-section h2,
    .projects-section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .contribute-card,
    .stat-card,
    .project-card {
        margin-bottom: 30px;
    }

    .navbar-brand img {
        height: 50px;
    }
}
/* Donation Section */
.text-primary, .card-footer a {
    color: var(--primary-color) !important;
}
/* How It Works Design */
.how-it-works {
    padding: 60px 0;
}

.progress-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 4px;
    background-color: var(--border-light);
    transform: translateY(-50%);
    overflow: hidden;

    &::after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0%;
        background-color: var(--primary-color);
        animation: progressFill 1.6s ease-out forwards;
    }
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}
/* ===============================
        STEP CARDS
=============================== */
.step-card {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    height: 100%;
    text-align: center;
    border: 1px solid var(--border-light);

    .step-number {
        width: 46px;
        height: 46px;
        margin: 0 auto 12px;
        border-radius: 50%;
        background-color: var(--primary-color);
        color: #ffffff;
        font-weight: 600;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.step-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.step-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.cta-section {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-top: 60px;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);

    &:hover {
        background-color: #cf3f31;
        border-color: #cf3f31;
    }
}

@media (max-width: 768px) {
    .progress-line {
        display: none;
    }
}

.form-check-input {

    &:focus {
        box-shadow: none;
    }

    &:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
}

.form-control {

    &:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
        border-color: var(--primary-color);
    }
}

/* Project Detail Section */
.item-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    gap: 30px;

    &:last-child {
        border-bottom: none;
    }
}

.item-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 0;

    &:disabled {
        cursor: not-allowed;
    }

    &:checked {
        accent-color: #10b981;
    }
}

.item-name {
    flex: 1;
    font-size: 16px;
    color: #333;
    font-weight: 400;
    margin-bottom: 0;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.status-required {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-raised {
    background-color: #d1fae5;
    color: #059669;
}

.amount-display {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 16px;
    color: #374151;
    min-width: 120px;
    text-align: right;
}

@media (max-width: 768px) {
    .item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .item-name {
        width: 100%;
    }

    .status-badge,
    .amount-display {
        width: 100%;
    }

    .amount-display {
        text-align: left;
    }
}

/* Project Detail Section End */

/* User Type Forms Design */
label .required {
    color: var(--primary-color);
}

.cat-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;

    .form-title {
        color: var(--primary-color);
        font-weight: 700;
        margin-bottom: 30px;
        text-align: center;
        font-size: 2rem;
    }
}


label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15);
}

.form-control:hover, .form-select:hover {
    border-color: #bdc3c7;
}

.file-upload-wrapper {
    position: relative;

    input[type="file"] {
        opacity: 0;
        position: absolute;
        z-index: -1;
    }
}

.file-upload-label {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #555;

    &:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
        background: #fff5f5;
    }
}

.file-name {
    display: inline-block;
    margin-left: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.section-divider {
    border-top: 2px solid #ecf0f1;
    margin: 30px 0;
}

/* User Type Forms Design End */


.detail-container {
    max-width: 700px;
    margin: 0 auto;
}

.detail-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 25px;
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 25px 30px;
    border: none;
}

    .card-header-custom h4 {
        margin: 0;
        font-weight: 600;
        font-size: 1.5rem;
    }

    .card-header-custom p {
        margin: 8px 0 0 0;
        opacity: 0.95;
        font-size: 0.95rem;
    }

.card-body-custom {
    padding: 30px;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

    .detail-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.detail-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.detail-value {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

.project-description {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.items-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

    .item-row:last-child {
        border-bottom: none;
    }

.item-name {
    color: var(--text-dark);
    font-weight: 500;
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
}

.summary-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .summary-row:last-child {
        margin-bottom: 0;
    }

.summary-label {
    color: #555;
    font-size: 1rem;
}

.summary-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.total-row {
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
    margin-top: 10px;
}

.total-label {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.total-value {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.action-buttons {
/*    display: flex;*/
/*    gap: 15px;*/
    margin-top: 30px;
}

.btn-cancel {
    flex: 1;
    padding: 8px 25px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-text-decoration: none;
    text-decoration: none;
    line-height: 1.5
}

    .btn-cancel:hover {
        background: var(--primary-color);
        color: white;
/*        transform: translateY(-2px);*/
/*        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);*/
    }

.btn-pay {
    flex: 2;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

    .btn-pay:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
        background: var(--primary-color);
        color: white;
    }

    .btn-pay i {
        margin-right: 8px;
    }

.donation-type-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 8px;
}

@media (max-width: 576px) {
    .detail-container {
        padding: 0 15px;
    }

    .card-body-custom {
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-cancel, .btn-pay {
        width: 100%;
    }
}

.thankyou-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.thankyou-icon {
    font-size: 70px;
    color: #198754;
    margin-bottom: 15px;
}

.thankyou-card h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.thankyou-card p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 25px;
}

.donation-id {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 25px;
}

.btn-custom {
    padding: 10px 22px;
    border-radius: 8px;
}

.receipt-container .card {
    width: 80%;
}