﻿/* -------------------------
   Gradient Text & Underline
-------------------------- */
.gradient-text {
    background: linear-gradient(90deg, #7D162B, #B9375F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700; /* stronger for gradient visibility */
    display: inline-block;
}

.underline {
    width: 70px;
    height: 3px;
    background-color: #7D162B;
    border-radius: 3px;
    margin: 0.5rem auto 1rem auto;
}

/* -------------------------
   Typography
-------------------------- */
h1.display-4, h2 {
    font-weight: 700;
}

p, ul, li, label {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

    ul li {
        margin-bottom: 0.5rem;
    }

/* -------------------------
   Buttons
-------------------------- */
.btn-volunteer {
    background: linear-gradient(135deg,#7D162B,#B9375F);
    color: #fff;
    border-radius: 30px;
    padding: 12px 20px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}

    .btn-volunteer:hover {
        opacity: 0.9;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(125,22,43,0.3);
    }

/* Optional Bootstrap button override */
.btn:focus {
    box-shadow: none;
}

/* -------------------------
   Form Inputs
-------------------------- */
.form-control, .form-select {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .form-control:focus, .form-select:focus {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(125,22,43,0.15);
    }

/* -------------------------
   Volunteer Section Container
-------------------------- */
.volunteer-section .col-lg-8 {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

/* -------------------------
   Page Title & Headings
-------------------------- */
.page-title {
    background: #fff;
    padding: 0; /* removed top and bottom padding */
    text-align: center; /* optional for better centering on mobile */
}

    .page-title h1, .page-title h2 {
        margin-bottom: 0.5rem;
        font-size: 2rem; /* keep your desired font size */
    }

/* -------------------------
   Responsive Page Title
-------------------------- */
@media (max-width: 768px) {
    .page-title {
        padding: 0; /* removed padding on mobile */
    }

        .page-title h1, .page-title h2 {
            font-size: 1.5rem; /* smaller font size on mobile */
        }
}

/* -------------------------
   Alerts
-------------------------- */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

/* -------------------------
   Responsive Fixes
-------------------------- */
@media(max-width:768px) {
    .volunteer-section .col-lg-8 {
        padding: 2rem 1.5rem;
    }
}

/* -------------------------
   Testimonials Section
-------------------------- */
.testimonial-section {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

    .testimonial-section h2 {
        font-weight: 700;
        margin-bottom: 2rem;
        color: #7D162B;
    }

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    max-width: 300px;
    flex: 1 1 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit; /* consistent font */
}

    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    }

    .testimonial-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #555;
        margin-bottom: 1rem;
    }

.testimonial-card {
    font-style: italic;
    color: #7D162B;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive */
@media(max-width:768px) {
    .testimonial-cards {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        max-width: 90%;
    }
}

/* -------------------------
   Event Cards
-------------------------- */
.event-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    }

.panel-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.panel-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.panel-text {
    flex-grow: 1;
    margin-bottom: 10px;
    overflow: hidden;
    max-height: 3.6em; /* roughly 2 lines */
}

.countdown {
    font-weight: 600;
    color: #7D162B;
}

.event-footer {
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: #555;
}

/* -------------------------
   Programs
-------------------------- */
.program-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .program-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .program-card img {
        height: 220px;
        object-fit: cover;
    }

    .program-card .card-body {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        padding: 20px;
    }

    .program-card .card-text {
        flex-grow: 1; /* ensures all cards have equal height */
    }

/* -------------------------
   What we do
-------------------------- */
.service-box {
    display: flex;
    flex-direction: column;
}

.card-body {
    display: flex;
    flex-direction: column;
}

.card-text {
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* limit text to 4 lines */
    -webkit-box-orient: vertical;
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ensures full image fits inside container */
}

.gradient-title {
    font-size: 1.2rem; /* slightly smaller */
    background: linear-gradient(90deg, #7D162B, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-box:hover .service-img-container img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.razorpay-btn {
    background-color: #3399cc;
    color: #fff;
    border: none;
    transition: 0.3s;
}

    .razorpay-btn:hover {
        background-color: #2d89b8;
        color: #fff;
    }

.phonepe-btn {
    background-color: #5f259f;
    color: #fff;
    border: none;
    transition: 0.3s;
}

    .phonepe-btn:hover {
        background-color: #4c1f7d;
        color: #fff;
    }

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }

    #receipt-section, #receipt-section * {
        visibility: visible;
    }

    #receipt-section {
        position: absolute;
        left: 0;
        top: 40px; /* ✅ Added top margin */
        width: 100%;
    }

    .no-print {
        display: none !important;
    }
}


/* Brand Buttons */
.btn-brand {
    background: linear-gradient(90deg, #7D162B, #FF4D6D);
    border: none;
    color: #fff;
    transition: opacity 0.4s ease-in-out;
}

    .btn-brand:hover {
        opacity: 0.85; /* ✅ Fade animation */
    }

.btn-outline-brand {
    border: 2px solid #7D162B;
    color: #7D162B;
    background: transparent;
    transition: all 0.4s ease-in-out;
}

    .btn-outline-brand:hover {
        background: #7D162B;
        color: #fff;
        border-color: #7D162B;
    }