/* GLOBAL TOGGLE SWITCH (FOR ALL PAGES) */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e74c3c;
    /* RED when inactive */
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "✖";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    color: #e74c3c;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2ecc71;
    /* GREEN when active */
}

input:checked+.slider:before {
    transform: translateX(30px);
    content: "✔";
    color: #2ecc71;
}

/* UNIVERSAL MODAL HEADER FIX */
#sliderModal .modal-header,
#aboutModal .modal-header,
#blogModal .modal-header,
.modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    position: relative !important;
}

/* Center title */
#blogModal .modal-header .modal-title,
.modal-header .modal-title {
    flex: 1;
    text-align: center;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* Perfect X alignment */
#blogModal .modal-header .close,
.modal-header .close {
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 22px !important;
    opacity: 1 !important;
    background: none !important;
    border: none !important;
}

/* Prevent text selection / highlight */
.modal-header .close,
.modal-header .close span {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* No outline on click */
.modal-header .close:focus,
.modal-header .close:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* ===========================
   VISUAL EDITOR OVERLAY UI
=========================== */

[data-ve-wrapper] {
    position: relative;
}

.ve-section-toolbar,
.ve-card-toolbar {
    position: absolute;
    display: flex;
    gap: 6px;
    z-index: 9999;
}

.ve-section-toolbar {
    top: 10px;
    right: 10px;
}

.ve-card-toolbar {
    top: 10px;
    left: 10px;
}

.ve-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: 0.15s;
    backdrop-filter: blur(3px);
}

.ve-btn:hover {
    transform: translateY(-2px);
    background: #2563eb;
}

.ve-btn-danger {
    background: #b91c1c !important;
}

.ve-btn-danger:hover {
    background: #ef4444 !important;
}




/* ==========================================
   AUTO-FIT IMAGE SIZES (User Request)
   ========================================== */

/* Landscape Cards (Events, Causes) */
.event-thumb img,
.donation-card-thumb img {
    width: 100%;
    height: 240px;
    object-fit: contain !important;
    /* Shows full image without cropping */
    /* background: #f8f9fa; */
    /* Light background for empty space */
    object-position: center;
}

/* Portrait Cards (Team) */
.team-thumb img {
    width: 100%;
    height: 350px;
    object-fit: contain !important;
    /* background: #f8f9fa; */
    object-position: top center;
}

/* Gallery Grid */
/* Gallery Grid */
.photo-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover !important;
    /* background: #f8f9fa; */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Testimonials (Avatar) */
.testimonial-thumb img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover !important;
    /* Avatars usually look better cropped to circle */
}

/* Blog Cards */
.blog-thumb img {
    width: 100%;
    height: 240px;
    object-fit: contain !important;
    /* background: #f8f9fa; */
}

/* ==========================================
   MOBILE MENU FIXES (Visual Editor & Live)
   ========================================== */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 10001;
    position: relative;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #ffff;
    position: absolute;
    transition: all 0.3s ease;
}

.mobile-menu-btn span::before {
    top: -6px;
}

.mobile-menu-btn span::after {
    top: 6px;
}

/* Active Menu State (X Icon) */
.mobile-menu-btn.active span {
    background: transparent;
}

.mobile-menu-btn.active span::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active span::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Ensure Menu Overlay Works */
.mean-container {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.mean-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mean-container .mean-nav {
    background: #fff !important;
}

.mean-container .mean-nav ul li a {
    color: #333 !important;
    border-top: 1px solid #eee !important;
    padding: 12px 20px !important;
}

/* ==========================================
   TEAM CARD STYLES (Fixed)
   ========================================== */
.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Reduced height constraint */
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.team-thumb {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.team-thumb img {
    width: 100%;
    height: 300px;
    /* Reduced from 350px */
    object-fit: cover !important;
    object-position: top center;
    transition: transform 0.5s ease;
}

.team-card:hover .team-thumb img {
    transform: scale(1.05);
}

.team-content {
    padding: 20px 15px;
    /* Tighter padding */
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-content h4 {
    margin: 0 0 5px;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
}

.team-content p {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hide empty paragraph if designation is missing */
.team-content p:empty {
    display: none;
    margin: 0;
}

.team-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f4f7f6;
    color: #1a1a1a;
    transition: 0.3s;
    margin-top: auto;
}

/* ==========================================
   PLANS SECTION STYLES (Moved from inline)
   ========================================== */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.plan-content ul {
    list-style: none;
    padding-left: 0;
}

.plan-content li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    /* Increased spacing */
}

.plan-content li:before {
    content: "\f00c";
    /* check icon */
    /* Try multiple font family names to catch Pro/Free/5/6 */
    font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    color: var(--primary-color, #28a745);
    position: absolute;
    left: 0;
    top: 2px;
}

/* Button Fixes */
.plan-btn,
a.plan-btn {
    background: var(--primary-color, #007bff) !important;
    border: 1px solid var(--primary-color, #007bff) !important;
    color: #fff !important;
    transition: all 0.4s ease !important;
    position: relative;
    z-index: 1;
    box-shadow: none !important;
    background-image: none !important;
    /* Eliminate gradients */
}

/* Grey Hover State - Forced */
.plan-btn:hover,
.plan-btn:focus,
.plan-btn:active,
a.plan-btn:hover,
a.plan-btn:focus,
a.plan-btn:active {
    background: #6c757d !important;
    /* Grey */
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    transform: translateY(-2px);
}

/* Remove any pseudo-element overlays causing dual colors */
.plan-btn:before,
.plan-btn:after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* ==========================================
   TESTIMONIAL STARS FIX
   ========================================== */
/* Force dark color for stars on the highlighted (yellow) card */
.slick-center .testimonial-card .testimonial-card-rating li,
.slick-center .testimonial-card .testimonial-card-rating li i,
.slick-center .testimonial-card .testimonial-card-rating.rating-1 li:nth-child(-n+1),
.slick-center .testimonial-card .testimonial-card-rating.rating-2 li:nth-child(-n+2),
.slick-center .testimonial-card .testimonial-card-rating.rating-3 li:nth-child(-n+3),
.slick-center .testimonial-card .testimonial-card-rating.rating-4 li:nth-child(-n+4),
.slick-center .testimonial-card .testimonial-card-rating.rating-5 li:nth-child(-n+5) {
    color: #333333 !important;
    /* White Stars */
}

/* ==========================================
   PREMIUM PLANS UI (User Requested)
   ========================================== */

/* Section Background & Spacing */
.plans-section {
    background: linear-gradient(135deg, #feffff 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.plans-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.05);
    /* Blue tint */
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

.plans-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 193, 7, 0.05);
    /* Yellow tint */
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

/* Card Styling */
.plans-section .card {
    border: none !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.plans-section .card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Card Content Padding */
.plans-section .card-body {
    padding: 2.5rem !important;
}

/* Title Typography */
.plans-section .card-title {
    font-size: 1.5rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 30px !important;
}

.plans-section .card-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color, #007bff);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Feature List */
.plan-content li {
    font-size: 0.95rem;
    color: #555;
    padding-left: 35px !important;
    margin-bottom: 15px !important;
    display: flex;
    align-items: flex-start;
}

.plan-content li:before {
    /* Using standard checkmark if FA is tricky */
    content: "\f00c";
    /* Force FA family if needed, but existing CSS has it */
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    top: 1px;
    background: rgba(0, 123, 255, 0.1);
    /* Primary light */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color, #007bff) !important;
}

/* Button Refinement */
.plans-section .plan-btn {
    border-radius: 50px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3) !important;
}

.plans-section .plan-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4) !important;
    background: #333 !important;
    /* Force dark on hover */
    border-color: #333 !important;
}

/* ===========================
   PREMIUM PRICING PLANS
=========================== */
.pricing-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #ff9933 0%, #ff7700 100%);
    color: #fff;
    border-color: #ff9933;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 153, 51, 0.3);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.plan-icon {
    margin-bottom: 20px;
    color: #ff9933;
}

.pricing-card.featured .plan-icon {
    color: #fff;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    margin: 20px 0 30px;
}

.plan-price .currency {
    font-size: 24px;
    font-weight: 600;
    vertical-align: super;
}

.plan-price .amount {
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
}

.plan-price .period {
    font-size: 16px;
    color: #666;
    display: inline-block;
    margin-left: 5px;
}

.pricing-card.featured .plan-price .period {
    color: rgba(255, 255, 255, 0.9);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 15px;
    position: relative;
    padding-left: 25px;
}

.plan-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Pro';
    position: absolute;
    left: 0;
    color: #ff9933;
    font-weight: 900;
}

.pricing-card.featured .plan-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pricing-card.featured .plan-features li:before {
    color: #fff;
}

.plan-cta {
    display: inline-block;
    padding: 15px 40px;
    background: #ff9933;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    margin-top: 10px;
}

.plan-cta:hover {
    background: #ff7700;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
}

.pricing-card.featured .plan-cta {
    background: #fff;
    color: #ff9933;
}

.pricing-card.featured .plan-cta:hover {
    background: #f8f8f8;
    color: #ff7700;
}

/* Fix Invisible Buttons on White Background */
.hq-outline-btn {
    color: var(--hq-primary-color, #333) !important;
    border: 2px solid var(--hq-primary-color, #333) !important;
    background: transparent !important;
    border-radius: 50px;
    padding: 10px 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
}

.hq-outline-btn:hover {
    background: var(--hq-primary-color, #333) !important;
    color: #fff !important;
    transform: translateY(-2px);
}