:root {
    --primary-color: #f39c12;
    /* Saffron */
    --secondary-color: #27ae60;
    /* Green */
    --dark-color: #2c3e50;
    --light-bg: #fffbf2;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: 'Philosopher', sans-serif;
    font-weight: 700;
}

/* Replaced inline styles with these classes */
.text-primary-custom {
    color: var(--primary-color);
}

.hero-subtitle {
    letter-spacing: 3px;
    color: var(--primary-color);
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Slide */
.hero-slide {
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-btn {
    min-width: 200px;
    padding: 14px 30px !important;
}

.hero-title {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-donate {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    transition: 0.3s;
}

.btn-donate:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    color: white;
}

.footer-social-icons a {
    font-size: 1.5rem;
    transition: 0.3s;
    color: #fff;
    text-decoration: none;
}

.footer-social-icons a.fb:hover {
    color: #1877f2 !important;
}

.footer-social-icons a.ig:hover {
    color: #e4405f !important;
}

.footer-social-icons a.yt:hover {
    color: #ff0000 !important;
}

.footer-social-icons a.wa:hover {
    color: #25d366 !important;
}

/* Mission Cards */
.card-service {
    border: none;
    border-bottom: 5px solid var(--primary-color);
    transition: 0.3s;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-service:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #fff3e0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Impact Section */
.impact-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
}

.counter-box h2 {
    font-size: 3rem;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #bdc3c7;
    padding: 50px 0 20px;
}

.footer-link {
    color: #bdc3c7;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-logo {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* --- NEW SECTIONS STYLING --- */

/* Mission for Gau Seva - Hover Effect: Border Glow */
.mission-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.mission-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.2);
    background: var(--light-bg);
}

/* Work in Action - Hover Effect: Image Zoom Overlay */
.work-box {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.work-box img {
    transition: transform 0.5s ease;
}

.work-box:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
}

/* Support Gau Seva Today - Hover Effect: Pulse Button */
.donate-highlight {
    background: #fff9f0;
    border-radius: 30px;
    border: 2px dashed var(--primary-color);
}

/* bg-cream utility class */
.bg-cream {
    background-color: var(--light-bg);
}

/* Stories of Hope - Hover Effect: Grayscale to Color */
.story-img {
    filter: grayscale(100%);
    transition: 0.5s;
    border-radius: 15px;
}

.story-img:hover {
    filter: grayscale(0%);
}

/* Voices of Compassion */
.testi-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contact Section */
.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

/* --- CATEGORY SECTION STYLING --- */
.category-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.4s;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.category-card:hover .category-img-wrapper img {
    transform: scale(1.1);
}

.category-icon {
    position: absolute;
    top: -25px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid white;
    font-size: 1.2rem;
}

.category-content {
    padding: 30px 20px 20px;
    text-align: center;
}

/* --- ABOUT US PAGE STYLING --- */
.text-theme {
    color: var(--primary-color) !important;
}

/* Universal Page Hero */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/gallery_moment_1.webp');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.story-img {
    border-radius: 30px;
    box-shadow: 20px 20px 0px var(--light-bg);
    border: 1px solid #ddd;
}

.pillar-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
    border-top: 5px solid var(--primary-color);
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.founder-box {
    background: var(--light-bg);
    border-radius: 30px;
    padding: 40px;
    margin-top: 50px;
}

.founder-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.trust-badge {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 15px;
    transition: 0.3s;
    background: white;
}

.trust-badge:hover {
    border-color: var(--secondary-color);
    background: #f0fff4;
}

.about-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/cow_rescue_mission.webp');
    background-size: cover;
}

/* --- CAUSES PAGE STYLING --- */

.cause-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cause-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.cause-img-box {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.cause-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.cause-card:hover .cause-img-box img {
    transform: scale(1.1);
}

.badge-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--dark-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.badge-tax {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.cause-body {
    padding: 25px;
    flex-grow: 1;
    position: relative;
}

/* Custom Progress Bar for Causes */
.cause-progress {
    height: 10px;
    border-radius: 10px;
    background: #eee;
    margin: 20px 0 15px;
    overflow: visible;
    position: relative;
}

.cause-progress-bar {
    background: var(--secondary-color);
    border-radius: 10px;
    height: 100%;
    position: relative;
}

.progress-val {
    position: absolute;
    right: 0;
    top: -25px;
    font-weight: bold;
    color: var(--dark-color);
    font-size: 12px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.btn-donate-cause {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-donate-cause:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.02);
}

/* --- CONTACT PAGE STYLING --- */

.info-card {
    background: white;
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    text-align: center;
    height: 100%;
    border-top: 5px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.2);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.contact-form-wrapper {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.custom-input {
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #eee;
    background: #f9f9f9;
}

.custom-input:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background: #fff;
}

.rescue-bar {
    background: var(--secondary-color);
    color: white;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
}

.rescue-icon {
    font-size: 3rem;
    margin-right: 20px;
    animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.map-container {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.social-btn-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- GALLERY PAGE STYLING --- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');

.gallery-tabs {
    margin: 50px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-btn {
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
}

.gallery-item {
    display: block;
    transition: 0.4s all ease-in-out;
}

.polaroid-card {
    background: white;
    padding: 12px 12px 45px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    border-radius: 4px;
    height: 100%;
}

.polaroid-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 2px;
}

.polaroid-card:hover {
    transform: scale(1.02) rotate(-0.5deg);
    box-shadow: 0 15px 45px rgba(243, 156, 18, 0.2);
    z-index: 5;
}

.card-caption {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #555;
    text-align: center;
    margin-top: 15px;
}

.quote-card {
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

/* --- DONATE DASHBOARD STYLING --- */
.dashboard-wrapper {
    margin-top: 50px;
    margin-bottom: 50px;
}

.side-selection {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.payment-methods-grid {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.amount-chip, .amount-chip-home {
    border: 2px solid #f1f1f1;
    background: #f9f9f9;
    padding: 10px 5px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--dark-color);
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

.amount-chip:hover,
.amount-chip.active,
.amount-chip-home:hover,
.amount-chip-home.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.05);
}

/* Home input group styling */
.input-group-text {
    border: none;
}
.form-control:focus {
    box-shadow: none;
}

.method-card {
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.method-card:hover {
    border-color: var(--primary-color);
    background: #fffbf2;
}

.qr-placeholder {
    width: 220px;
    height: 220px;
    background: white;
    border: 1px solid #eee;
    margin: 0 auto 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    margin-bottom: 5px;
}

.benefit-badge {
    background: #eef9f1;
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- FOUNDER MESSAGE SECTION --- */
.founder-msg-section {
    padding: 80px 0;
    background: #fff;
}

.founder-img-box {
    position: relative;
    padding-left: 20px;
}

.founder-img-box img {
    border-radius: 30px;
    box-shadow: 20px 20px 0 var(--light-bg);
    border: 1px solid #eee;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.upi-copy-box {
    transition: 0.2s;
}

.upi-copy-box:hover {
    background-color: #f8f9fa !important;
    border-color: var(--primary-color) !important;
}

/* Custom Input Group Styling */
.input-group-text {
    border-right: 1px solid #eee !important;
}

#customAmount:focus {
    background-color: white !important;
    box-shadow: none !important;
    border: none !important;
}

.input-group:focus-within {
    outline: 2px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2) !important;
}

.copy-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    pointer-events: none;
}

/* --- TEAM PAGE STYLING --- */
.team-slider-section {
    padding: 80px 0 120px;
    background: var(--light-bg);
    overflow: visible;
}

/* Scoped Team Carousel Arrows (Outside) */
#teamCarousel .carousel-control-prev,
#teamCarousel .carousel-control-next {
    opacity: 1;
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
}

#teamCarousel .carousel-control-prev {
    left: -30px;
}

#teamCarousel .carousel-control-next {
    right: -30px;
}

#teamCarousel .carousel-control-prev-icon,
#teamCarousel .carousel-control-next-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color) !important;
    background-size: 50%;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Scoped Hero Carousel Arrows (Inside) */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 100px;
    opacity: 0;
    transition: 0.4s;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}

#heroCarousel .carousel-control-prev {
    left: 20px;
}

#heroCarousel .carousel-control-next {
    right: 20px;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 60px;
    height: 60px;
    background-color: transparent !important;
    background-size: 100%;
    border: none;
    border-radius: 0;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

#heroCarousel .carousel-control-prev-icon:hover,
#heroCarousel .carousel-control-next-icon:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

.member-card {
    background: white;
    border-radius: 20px;
    padding: 40px 15px;
    text-align: center;
    transition: 0.4s;
    border: 1px solid #eee;
    margin: 15px 5px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid transparent;
}

.member-card.border-saffron {
    border-top-color: #f39c12;
}

.member-card.border-green {
    border-top-color: #27ae60;
}

.member-card.border-blue {
    border-top-color: #3498db;
}

.member-card.border-orange {
    border-top-color: #e67e22;
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
    padding: 5px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    color: #f39c12;
    border: 1px solid #f39c12;
    border-radius: 50%;
    margin: 0 5px;
    transition: 0.3s;
    text-decoration: none;
    font-size: 1rem;
}

.team-social a:hover {
    background: #fffcf0;
    transform: scale(1.1);
}

.team-social a.yt:hover {
    color: #ff0000;
    border-color: #ff0000;
}

.team-social a.wa:hover {
    color: #25d366;
    border-color: #25d366;
}

.team-social a.fb:hover {
    color: #1877f2;
    border-color: #1877f2;
}

.team-social a.ig:hover {
    color: #e4405f;
    border-color: #e4405f;
}

.principle-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #eee;
    border-bottom: 5px solid var(--secondary-color);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.principle-card:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(x, y, z, 0.1);
}

.principle-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    transition: 0.3s;
}

.principle-card:hover i,
.principle-card:hover h4,
.principle-card:hover p {
    color: white !important;
}

.principle-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}
/* --- UPI APP CHOOSER MODAL --- */
.upi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
}

.upi-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 30px 30px 0 0;
    padding: 30px;
    animation: slide-up 0.3s ease-out;
    text-align: center;
}

@keyframes slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.upi-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.upi-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    color: var(--dark-color);
}

.upi-app-item:hover {
    transform: translateY(-5px);
}

.upi-app-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.upi-app-item span {
    font-size: 0.85rem;
    font-weight: 600;
}

.close-upi-modal {
    background: #f1f1f1;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 15px;
    margin-top: 25px;
    font-weight: 600;
}

.join-cta {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)),
        url('../images/join_team_bg.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
    margin-top: 50px;
}