/**
 * Dayaa Branding Overrides
 * Replaces template purple gradient with Dayaa brand colors
 * Primary Gradient: #0F69F3 → #170AB5
 */

/* ============================================
   PRIMARY BUTTONS - Dayaa Gradient
   ============================================ */

/* Main gradient buttons */
.pp-theme-btn:not(.pp-style-2),
.pp-theme-btn-2,
.theme-btn,
.theme-btn-2,
.mean-container .mean-nav ul li a.mean-expand,
.pp-footer-widget-items .social-icon a:hover,
.pp-header-top-btn a,
.header-button a:not(.pp-style-2),
.pp-cta-video-btn a,
.cta-video-btn a,
.pp-breadcrumb-thumb .breadcrumb-search-form button,
.breadcrumb-search-form button {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Gradient button hover states */
.pp-theme-btn:not(.pp-style-2):hover,
.pp-theme-btn-2:hover,
.theme-btn:hover,
.theme-btn-2:hover {
    background: linear-gradient(135deg, #0d5ad4 0%, #140998 100%) !important;
}

/* ============================================
   TRANSPARENT/BORDERED BUTTONS - Keep Original
   ============================================ */

   .pp-hero-button a.pp-theme-btn{
    background: transparent !important;
   }
   .pp-cta-button a.pp-theme-btn{
    color: black !important;
    background: white !important;
   }
/* Transparent buttons with border - keep them as they were */
.pp-theme-btn.pp-style-2 {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* Style-2 button after pseudo element - Dayaa gradient */
.pp-theme-btn.pp-style-2::after {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Style-2 button hover */
.pp-theme-btn.pp-style-2:hover {
    border: 1px solid transparent !important;
    color: #ffffff !important;
}

/* Style-2 buttons in light background sections - Dark border and text for visibility */
.section-bg .pp-theme-btn.pp-style-2,
.section-bg-2 .pp-theme-btn.pp-style-2,
section:not(.pp-hero-section):not(.pp-cta-section):not(.pp-how-work-section) .pp-theme-btn.pp-style-2 {
    border: 2px solid #0F69F3 !important;
    color: #0F69F3 !important;
    background: transparent !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

/* Hover state for bordered buttons in light sections */
.section-bg .pp-theme-btn.pp-style-2:hover,
.section-bg-2 .pp-theme-btn.pp-style-2:hover,
section:not(.pp-hero-section):not(.pp-cta-section):not(.pp-how-work-section) .pp-theme-btn.pp-style-2:hover {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(15, 105, 243, 0.25) !important;
}

/* Text gradient for headings and special text */
.text-gradient,
.pp-section-title span,
.section-title span {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title span::before {
    position: absolute;
    top: 8px;
    left: 0;
    content: "";
    color: var(--pp-theme);
    width: 32px;
    height: 4px;
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}
.section-title span::after {
    position: absolute;
    top: 2px;
    left: 16px;
    content: "";
    background: linear-gradient(270deg, #0F69F3 0%, #170AB5 100%) !important;
    width: 16px;
    height: 16px;
    border-radius: 16px;
}
/* ============================================
   ICONS & DECORATIVE ELEMENTS - Dayaa Gradient
   ============================================ */

/* Primary color for icons */
.pp-service-card-item .pp-service-card-icon i,
.service-card-icon i,
.pp-service-card-icon i,
.pp-features-card-item .pp-features-card-icon i,
.pp-features-card-item:hover .pp-features-card-icon i,
.features-card-icon i,
.pp-feature-card-icon i,
.feature-card-icon i,
.pp-how-work-icon i,
.how-work-icon i,
.pp-pricing-card-item.active .pp-pricing-card-head,
.pricing-card-head,
.pp-team-card-social a:hover,
.team-card-social a:hover {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Icon boxes with gradient background */
.pp-service-card-icon,
.pp-features-card-icon,
.pp-feature-card-icon,
.pp-how-work-icon {
    background: linear-gradient(135deg, rgba(15, 105, 243, 0.1) 0%, rgba(23, 10, 181, 0.1) 100%) !important;
    border-color: rgba(15, 105, 243, 0.3) !important;
}

/* Section title decorative elements (before/after) */
.pp-section-title::before,
.pp-section-title::after,
.section-title::before,
.section-title::after,
.pp-section-title .pp-title-shape,
.section-title .title-shape,
.pp-section-title .pp-shape,
.section-title .shape {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Wow animated elements */
.wow-icon,
.animated-icon,
.pp-animated-icon,
[class*="wow-"]::before,
[class*="wow-"]::after {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Background colors */
.pp-service-card-item:hover,
.service-card-item:hover,
.pp-features-card-item:hover,
.features-card-item:hover {
    background: linear-gradient(135deg, rgba(15, 105, 243, 0.05) 0%, rgba(23, 10, 181, 0.05) 100%) !important;
}

/* Border colors */
.pp-pricing-card-item.active,
.pricing-card-item.active,
.pp-service-card-item:hover,
.service-card-item:hover {
    border-color: #0F69F3 !important;
}

/* Links and hover states */
a:hover,
.pp-header-menu ul li a:hover,
.header-menu ul li a:hover,
.pp-footer-widget-items ul li a:hover,
.footer-widget-items ul li a:hover {
    color: #0F69F3 !important;
}

/* Active menu items */
.pp-header-menu ul li.active a,
.header-menu ul li.active a,
.mean-container .mean-nav ul li a.mean-expand.mean-clicked {
    color: #0F69F3 !important;
}

/* Progress bars and loaders */
.preloader .animation-preloader .txt-loading .letters-loading {
    color: #0F69F3 !important;
}

/* ============================================
   PRELOADER LOGO ANIMATION
   ============================================ */

.preloader-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.preloader-logo {
    max-width: 200px;
    height: auto;
    opacity: 0;
    animation: fadeInUp 1.2s ease-in-out forwards;
}

.loading-text {
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out 0.5s forwards;
    color: #0F69F3;
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive logo size */
@media (max-width: 767px) {
    .preloader-logo {
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    .preloader-logo {
        max-width: 120px;
    }
}

/* Scroll to top button */
.scroll-up {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

.scroll-up:hover {
    background: linear-gradient(135deg, #0d5ad4 0%, #140998 100%) !important;
}

/* Form elements focus state */
input:focus,
textarea:focus,
select:focus,
.nice-select:focus {
    border-color: #0F69F3 !important;
}

/* Badges and tags */
.badge,
.tag,
.label {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    color: #ffffff !important;
}

/* Pagination */
.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    border-color: #0F69F3 !important;
}

/* ============================================
   HERO SECTION - Dayaa Gradient Background
   ============================================ */

/* Hero section gradient overlay */
.pp-hero-section::before,
.pp-hero-wrapper::before,
.hero-wrapper::before,
.pp-hero-1::before,
.pp-hero-2::before,
.hero-section::before {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}


/* CTA sections */
.pp-cta-section,
.cta-section {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Blockquotes and highlights */
blockquote {
    border-left-color: #0F69F3 !important;
}

/* Social media icons */
.social-icon a,
.social-links a {
    transition: all 0.3s ease;
}

.social-icon a:hover,
.social-links a:hover {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    color: #ffffff !important;
}

/* Navigation dropdown */
.pp-header-menu ul li ul.submenu,
.header-menu ul li ul.submenu {
    border-top-color: #0F69F3 !important;
}

/* Shop/Cart badge */
.cart-badge,
.notification-badge {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Testimonial cards */
.pp-testimonial-card-item.active,
.testimonial-card-item.active {
    border-color: #0F69F3 !important;
}

/* Feature boxes */
.pp-feature-box:hover,
.feature-box:hover {
    box-shadow: 0 10px 30px rgba(15, 105, 243, 0.2) !important;
}

/* Video play button */
.video-play-btn,
.play-btn {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

.video-play-btn:hover,
.play-btn:hover {
    background: linear-gradient(135deg, #0d5ad4 0%, #140998 100%) !important;
}

/* Newsletter form */
.newsletter-form button,
.subscribe-form button {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

.newsletter-form button:hover,
.subscribe-form button:hover {
    background: linear-gradient(135deg, #0d5ad4 0%, #140998 100%) !important;
}

/* Swiper pagination */
.swiper-pagination-bullet-active {
    background: #0F69F3 !important;
}

/* Section backgrounds with gradient */
.gradient-bg {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Counter/Stats sections */
.counter-item .counter-icon,
.stats-item .stats-icon {
    color: #0F69F3 !important;
}

/* Timeline elements */
.timeline-item::before,
.timeline-dot {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Accordion active state */
.accordion-button:not(.collapsed),
.faq-item.active .faq-question {
    background: linear-gradient(135deg, rgba(15, 105, 243, 0.1) 0%, rgba(23, 10, 181, 0.1) 100%) !important;
    color: #0F69F3 !important;
}

/* Price tables - featured plan */
.pricing-table.featured,
.price-card.featured {
    border-color: #0F69F3 !important;
    box-shadow: 0 10px 40px rgba(15, 105, 243, 0.15) !important;
}

/* Loading spinner */
.spinner,
.loader {
    border-top-color: #0F69F3 !important;
}

/* Success messages */
.alert-success,
.success-message {
    background: linear-gradient(135deg, rgba(15, 105, 243, 0.1) 0%, rgba(23, 10, 181, 0.1) 100%) !important;
    border-left-color: #0F69F3 !important;
}

/* Custom checkboxes and radio buttons */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    border-color: #0F69F3 !important;
}

/* Tab navigation */
.nav-tabs .nav-link.active,
.tabs .tab-link.active {
    color: #0F69F3 !important;
    border-bottom-color: #0F69F3 !important;
}

/* Progress bars */
.progress-bar {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Tooltips */
.tooltip {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Star ratings */
.star-rating .star.active,
.rating .star.filled {
    color: #0F69F3 !important;
}

/* ============================================
   SPECIFIC PURPLE TO DAYAA CONVERSIONS
   ============================================ */

/* Replace all instances of purple gradient with Dayaa gradient */
[style*="#A121CA"],
[style*="#7B1FE4"],
[style*="rgba(161, 33, 202"],
[style*="rgba(123, 31, 228"] {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Number counters and stats */
.pp-counter-items .pp-counter-number,
.counter-number,
.pp-stats-number,
.stats-number {
    color: #0F69F3 !important;
}

/* Brand logos hover */
.pp-brand-item:hover,
.brand-item:hover {
    filter: brightness(0) saturate(100%) invert(42%) sepia(95%) saturate(2619%) hue-rotate(206deg) brightness(99%) contrast(93%) !important;
}

/* List item markers - Visible Dayaa Gradient Bullets */
/* Exclude footer from bullet styling */
.pp-list-area:not(.pp-footer-widget-items .pp-list-area) li::before,
.list-area:not(.pp-footer-widget-items .list-area) li::before,
ul.check-list li::before {
    content: "" !important;
    position: absolute !important;
    top: 8px !important;
    left: 0 !important;
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Positioning for general list items - Exclude footer */
.pp-list-area:not(.pp-footer-widget-items .pp-list-area) li,
.list-area:not(.pp-footer-widget-items .list-area) li,
ul.check-list li {
    position: relative !important;
    padding-left: 24px !important;
    list-style: none !important;
}

.pp-list-area:not(.pp-footer-widget-items .pp-list-area),
.list-area:not(.pp-footer-widget-items .list-area),
ul.check-list {
    list-style: none !important;
    padding-left: 0 !important;
}

/* Explicitly remove bullets from footer links */
.pp-footer-widget-items .pp-list-area li::before,
footer .pp-list-area li::before,
.pp-footer-section .pp-list-area li::before {
    display: none !important;
}

.pp-footer-widget-items .pp-list-area li,
footer .pp-list-area li,
.pp-footer-section .pp-list-area li {
    position: static !important;
    padding-left: 0 !important;
    list-style: none !important;
}

/* Key feature content lists with Dayaa gradient bullets */
.pp-key-feature-content ul li::before,
.key-feature-content ul li::before {
    content: "" !important;
    position: absolute !important;
    top: 5px !important;
    left: 0 !important;
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    display: block !important;
}

.pp-key-feature-content ul li,
.key-feature-content ul li {
    position: relative !important;
    padding-left: 28px !important;
    list-style: none !important;
}

.pp-key-feature-content ul,
.key-feature-content ul {
    list-style: none !important;
    padding-left: 0 !important;
}

/* Step numbers in process/workflow sections */
.pp-step-number,
.step-number,
.pp-process-number,
.process-number {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    color: #ffffff !important;
}

/* Dividers and separators */
.pp-divider,
.divider,
hr.gradient {
    background: linear-gradient(90deg, transparent 0%, #0F69F3 50%, transparent 100%) !important;
}

/* Quote/Testimonial accent */
.pp-testimonial-quote,
.testimonial-quote,
.quote-icon {
    color: #0F69F3 !important;
}

/* Category badges */
.pp-category-badge,
.category-badge,
.pp-tag,
.tag-item {
    background: linear-gradient(135deg, rgba(15, 105, 243, 0.1) 0%, rgba(23, 10, 181, 0.1) 100%) !important;
    color: #0F69F3 !important;
}

/* Hover effects on cards */
.pp-card:hover,
.card-hover:hover {
    box-shadow: 0 10px 30px rgba(15, 105, 243, 0.15) !important;
}

/* Active states */
.active-item,
.is-active,
.current {
    color: #0F69F3 !important;
}

/* Underlines and text decorations */
.pp-underline,
.text-underline,
.link-underline:hover {
    border-bottom-color: #0F69F3 !important;
}

/* Circle/Dot indicators */
.pp-dot,
.dot-indicator,
.circle-indicator {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Image overlays */
.pp-image-overlay,
.image-overlay {
    background: linear-gradient(135deg, rgba(15, 105, 243, 0.7) 0%, rgba(23, 10, 181, 0.7) 100%) !important;
}

/* ============================================
   SPECIFIC TEMPLATE ELEMENTS
   ============================================ */

/* How it works section numbers */
.pp-how-work-items .pp-how-work-number,
.how-work-number {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    color: #ffffff !important;
}

/* Feature list checkmarks - Dayaa Gradient */
.pp-feature-list li::before,
.feature-list li::before {
    content: "" !important;
    position: absolute !important;
    top: 5px !important;
    left: 0 !important;
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Ensure feature list items have proper positioning */
.pp-feature-list li,
.feature-list li {
    position: relative !important;
    padding-left: 28px !important;
    list-style: none !important;
}

.pp-feature-list,
.feature-list {
    list-style: none !important;
    padding-left: 0 !important;
}

/* Testimonial Navigation Buttons - Dayaa Gradient */
.pp-array-buttons button,
.array-buttons button,
.pp-array-buttons .array-prev,
.pp-array-buttons .array-next {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    color: #ffffff !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.pp-array-buttons button:hover,
.array-buttons button:hover,
.pp-array-buttons .array-prev:hover,
.pp-array-buttons .array-next:hover {
    background: linear-gradient(135deg, #0d5ad4 0%, #140998 100%) !important;
    transform: scale(1.05) !important;
}

/* Pricing plan popular badge */
.pp-pricing-badge,
.pricing-badge,
.popular-badge {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Service hover state */
.pp-service-card-item:hover {
    border-color: #0F69F3 !important;
}

/* Blog/Article category */
.pp-blog-category,
.blog-category,
.article-category {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
    color: #ffffff !important;
}

/* Read more links */
.pp-read-more,
.read-more-link {
    color: #0F69F3 !important;
}

.pp-read-more:hover,
.read-more-link:hover {
    color: #0d5ad4 !important;
}

/* Newsletter input focus */
.pp-newsletter-form input:focus,
.newsletter-form input:focus {
    border-color: #0F69F3 !important;
}

/* Back to top button circle */
#pp-back-top,
.back-to-top {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Mobile menu toggle */
.header-bar span {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Breadcrumb active */
.breadcrumb-item.active {
    color: #0F69F3 !important;
}

/* ============================================
   ENSURE NO PURPLE REMAINS
   ============================================ */

/* Force override any remaining purple colors */
*[style*="background: linear-gradient(270deg, #A121CA"] {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

*[style*="background: linear-gradient(270deg, rgba(161, 33, 202"] {
    background: linear-gradient(135deg, rgba(15, 105, 243, 0.1) 0%, rgba(23, 10, 181, 0.1) 100%) !important;
}

/* Override CSS variables if template uses them */
:root {
    --pp-theme: #0F69F3 !important;
    --pp-theme-rgb: 15, 105, 243 !important;
    --primary-color: #0F69F3 !important;
    --secondary-color: #170AB5 !important;
    --gradient-start: #0F69F3 !important;
    --gradient-end: #170AB5 !important;
}

/* Section title span decorative elements - Dayaa gradient */
.pp-section-title span::before {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

.pp-section-title span::after {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

/* Offer box icon - Dayaa gradient */
.pp-offer-box-item .pp-offer-icon {
    background: linear-gradient(135deg, #0F69F3 0%, #170AB5 100%) !important;
}

.pp-how-work-items h6 {
    
    background: linear-gradient(270deg, #0F69F3 0%, #170AB5 100%) !important;
   
}
.pp-hero-section h1.wow.fadeInUp {
    color: white !important;
}
.pp-hero-section p.wow.fadeInUp {
    color: white !important;
}
.pp-hero-section a.wow.fadeInUp {
    color: white !important;
}
.pp-hero-section a.wow.fadeInUp:hover {
    color: #0F69F3 !important;
}
.pp-cta-content h2 {
    color: white !important;
}
.pp-cta-content p {
    color: white !important;
}
.pp-cta-content a {
    color: white !important;
}
.pp-cta-content a:hover {
    color: #0F69F3 !important;
}

/* ============================================
   DONATION DEVICE CARDS - Consistent Design
   ============================================ */

.pp-device-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.pp-device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(15, 105, 243, 0.12);
}

.pp-device-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 105, 243, 0.03) 0%, rgba(23, 10, 181, 0.03) 100%);
}

.pp-device-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.pp-device-card:hover .pp-device-image-wrapper img {
    transform: scale(1.05);
}

.pp-device-content {
    padding: 30px 25px;
    text-align: center;
}

.pp-device-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.pp-device-card:hover .pp-device-content h3 {
    color: #0F69F3;
}

.pp-device-content .pp-theme-btn {
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pp-device-image-wrapper {
        height: 260px;
    }

    .pp-device-content {
        padding: 25px 20px;
    }

    .pp-device-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .pp-device-image-wrapper {
        height: 220px;
    }

    .pp-device-content {
        padding: 20px 15px;
    }

    .pp-device-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* ============================================
   MOBILE VIEW FIXES - Remove Black Space Above Footer
   ============================================ */

@media (max-width: 991px) {
    /* Remove extra padding/margin from sections in mobile view */
    section.section-padding {
        padding-bottom: 60px !important;
    }

    /* Specifically target the last section before footer - Add spacing */
    section.section-padding:last-of-type,
    section.pp-cta-section {
        padding-bottom: 60px !important;
        margin-bottom: 80px !important; /* Add space between CTA and footer */
    }

    /* Remove any extra space from footer top */
    .pp-footer-section,
    footer {
        margin-top: 0 !important;
        padding-top: 60px !important;
    }

    /* Fix any section background issues */
    .section-bg,
    .section-bg-2 {
        padding-bottom: 60px !important;
    }

    /* FIX: Reduce the large black area above footer in tablet view */
    .pp-footer-section::before {
        top: -15% !important; /* Reduce from -50% to -15% */
    }

    /* Hide the top shape image in tablet view to reduce footer size */
    .pp-footer-section .top-shape {
        display: none !important;
    }

    /* Reduce footer widget padding in tablet view */
    .pp-footer-widget-wrapper {
        padding: 60px 0 70px !important;
    }

    /* Make footer logo bigger in tablet view for better visibility */
    .pp-footer-logo img {
        max-height: 180px !important;
    }
}

@media (max-width: 767px) {
    /* Further reduce padding on smaller screens */
    section.section-padding {
        padding-bottom: 40px !important;
    }

    /* Add spacing between CTA section and footer in mobile view */
    section.section-padding:last-of-type,
    section.pp-cta-section {
        padding-bottom: 40px !important;
        margin-bottom: 80px !important; /* Add space between CTA and footer */
    }

    .pp-footer-section,
    footer {
        padding-top: 40px !important;
    }

    .section-bg,
    .section-bg-2 {
        padding-bottom: 40px !important;
    }

    /* FIX: Almost eliminate the black area above footer in mobile view */
    .pp-footer-section::before {
        top: 0 !important; /* Remove the -50% offset completely */
        height: auto !important;
    }

    /* Hide the top shape image in mobile view */
    .pp-footer-section .top-shape {
        display: none !important;
    }

    /* Make footer more compact in mobile view */
    .pp-footer-widget-wrapper {
        padding: 40px 0 50px !important;
    }

    /* Make footer logo bigger in mobile view for better visibility */
    .pp-footer-logo img {
        max-height: 150px !important;
    }

    /* Reduce footer widget padding */
    .pp-footer-widget-items {
        margin-bottom: 30px !important;
        margin-top: 20px !important;
    }
}

@media (max-width: 576px) {
    /* Add spacing between CTA section and footer in small mobile view */
    section.section-padding:last-of-type,
    section.pp-cta-section {
        margin-bottom: 80px !important; /* Add space between CTA and footer */
    }

    /* Extra compact footer for very small mobile screens */
    .pp-footer-section::before {
        top: 0 !important;
        height: auto !important;
    }

    .pp-footer-widget-wrapper {
        padding: 30px 0 40px !important;
    }

    /* Footer logo bigger on very small screens for better visibility */
    .pp-footer-logo img {
        max-height: 120px !important;
    }

    /* Compact footer widgets */
    .pp-footer-widget-items {
        margin-bottom: 20px !important;
        margin-top: 15px !important;
    }

    /* Reduce footer bottom padding */
    .footer-bottom3 {
        padding: 20px 0 !important;
    }
}

/* ============================================
   PRODUCT CARDS - Square Images on All Devices
   ============================================ */

/* Force square aspect ratio for all product images */
.pp-offer-box-item .product-image,
.product-image {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important; /* 1:1 aspect ratio */
    overflow: hidden !important;
    border-radius: 24px !important;
}

.pp-offer-box-item .product-image img,
.product-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 24px !important;
}

/* Ensure product cards maintain consistent layout */
.pp-offer-box-item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.pp-offer-box-item .pp-offer-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Mobile specific product card fixes */
@media (max-width: 991px) {
    .pp-offer-box-item .product-image,
    .product-image {
        padding-bottom: 100% !important; /* Maintain square */
    }
}

@media (max-width: 767px) {
    .pp-offer-box-item .product-image,
    .product-image {
        padding-bottom: 100% !important; /* Maintain square */
        margin-bottom: 15px !important;
    }

    /* Ensure product cards stack properly */
    .pp-offer-box-item {
        margin-bottom: 20px !important;
    }
}

@media (max-width: 576px) {
    .pp-offer-box-item .product-image,
    .product-image {
        padding-bottom: 100% !important; /* Maintain square */
    }
}

/* ============================================
   LEGAL PAGES - Responsive Headings
   ============================================ */

/* Tablet view - Reduce heading size */
@media (max-width: 991px) {
    .legal-section h3,
    .pp-legal-content h3 {
        font-size: 1.35rem !important;
        padding: 12px 20px !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Mobile view - Further reduce heading size */
@media (max-width: 767px) {
    .legal-section h3,
    .pp-legal-content h3 {
        font-size: 1.15rem !important;
        padding: 10px 15px !important;
        line-height: 1.35 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Reduce content padding on mobile */
    .pp-legal-content {
        padding: 30px 20px !important;
    }
}

/* Small mobile view - Smallest heading size */
@media (max-width: 576px) {
    .legal-section h3,
    .pp-legal-content h3 {
        font-size: 1rem !important;
        padding: 8px 12px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    /* Further reduce content padding on small mobile */
    .pp-legal-content {
        padding: 20px 15px !important;
    }
}

/* ============================================
   CARD SPACING - Add Margin Bottom to All Cards
   ============================================ */

/* Add margin-bottom to all offer box items (cards) for proper spacing */
.pp-offer-box-item {
    margin-bottom: 30px !important;
}

/* Tablet view - Slightly reduce margin */
@media (max-width: 991px) {
    .pp-offer-box-item {
        margin-bottom: 25px !important;
    }
}

/* Mobile view - Standard spacing */
@media (max-width: 767px) {
    .pp-offer-box-item {
        margin-bottom: 20px !important;
    }
}

/* Small mobile view - Compact spacing */
@media (max-width: 576px) {
    .pp-offer-box-item {
        margin-bottom: 20px !important;
    }
}