:root {
    --modern-font: 'Plus Jakarta Sans', sans-serif;
    --heading-font: 'Outfit', sans-serif;
}

body {
    font-family: var(--modern-font) !important;
}

.charity-home-content h1 {
    font-family: var(--heading-font) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.charity-home-content h3 {
    font-family: var(--modern-font) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Modern Button Redesign */
.charity-home-content .arrow-btn {
    background: #fff;
    color: #000 !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px !important;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-left: 0 !important;
}

.charity-home-content .arrow-btn .icon {
    background: #000 !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0 !important;
    transition: transform 0.4s ease;
}

.charity-home-content .arrow-btn .icon i {
    color: #fff;
    font-size: 16px;
}

.charity-home-content .arrow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: #f8f9fa;
}

.charity-home-content .arrow-btn:hover .icon {
    transform: translateX(5px);
}

.charity-home-content .arrow-btn .icon img,
.charity-home-content .arrow-btn .icon::after {
    display: none !important;
}

/* Brighten Slider Overlay */
.charity-style .charity-home-slider .home-charity::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%) !important;
    opacity: 0.5 !important;
}

/* Marquee Fixes - Straight and Modern */
.quote.ad-quote {
    transform: rotate(0deg) translateY(0) !important;
    margin-top: -1px !important; /* Slight overlap to prevent subpixel gaps */
    background-color: #000 !important;
    border: none !important;
    position: relative;
    z-index: 20;
}

.quote.ad-quote li span {
    font-style: normal !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}

@media (max-width: 991px) {
    .quote.ad-quote {
        transform: rotate(0deg) translateY(0) !important;
    }
}

/* Redesigned Floating Social Widget */
.modern-social-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
}

.social-trigger {
    width: 55px;
    height: 55px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.social-trigger i {
    font-size: 24px;
    transition: transform 0.4s ease;
}

.social-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.modern-social-widget:hover .social-options,
.modern-social-widget.active .social-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.modern-social-widget:hover .social-trigger {
    background: #333;
    transform: scale(1.05);
}

.modern-social-widget:hover .social-trigger i,
.modern-social-widget.active .social-trigger i {
    transform: rotate(90deg);
}

.social-opt {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
}

.social-opt:hover {
    transform: scale(1.15);
}

.opt-fb { background: #1877F2; }
.opt-ig { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.opt-wa { background: #25D366; }
.opt-yt { background: #FF0000; }

/* Tooltip styling */
.social-opt::before {
    content: attr(data-label);
    position: absolute;
    left: 65px;
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-opt:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Logo Brightness Fix */
.footer-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.ad-footer {
    background-color: #f8f9fa !important; /* Light grey background */
    border-top: 1px solid #eee;
}

.ad-footer .ad-copyright {
    border-bottom: 1px solid #eee !important;
}

.ad-footer .ad-copyright h6 {
    color: #333 !important;
}

.footer-logo img {
    /* Remove the invert filter if logo is already dark */
    filter: none !important;
    max-height: 85px;
    margin-bottom: 10px;
    width: auto;
}

.ad-footer .footer-title h5 {
    color: #000 !important;
}

.ad-footer .footer-content li a {
    color: #555 !important;
}

.ad-footer .footer-content li:hover a {
    color: #000 !important;
}

.ad-footer .footer-content p {
    color: #666 !important;
}

/* Ensure social icons in footer are visible if any */
.ad-footer .social-icons a i {
    color: #333 !important;
}

.ad-footer .bg-effect div {
    opacity: 0.15 !important; /* Subtle background glow for light theme */
}

.ad-footer .footer-content li img {
    /* brightness(0) makes icons black, then we can adjust if needed */
    /* But since they are blue, let's keep them or slightly darken */
    filter: brightness(0.8);
}
/* Gallery Improvements */
.portfolio-gallery .grid-item {
    margin-bottom: 30px;
}

.portfolio-gallery .blog-box {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.portfolio-gallery .blog-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.portfolio-gallery .img-box {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.portfolio-gallery .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-gallery .blog-box:hover .img-box img {
    transform: scale(1.1);
}

.portfolio-transform-content {
    padding: 15px 12px;
    text-align: left;
    background: #fff;
}

.portfolio-transform-content h5 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-transform-content h6 {
    font-family: var(--modern-font);
    font-weight: 400;
    font-size: 12px;
    color: #888;
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-tabs-portfolio.filter {
    margin-bottom: 40px;
}

.nav-tabs-portfolio .nav-pills .nav-link {
    background: #f8f9fa;
    color: #555;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    margin: 0 5px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.nav-tabs-portfolio .nav-pills .nav-link.active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000;
}

/* Fancybox Polish */
.fancybox__container {
  --fancybox-bg: rgba(24, 24, 27, 0.98);
  --fancybox-color: #fff;
  --fancybox-accent-color: #000;
}

.fancybox__caption {
  font-family: var(--modern-font);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.fancybox__caption b {
  font-family: var(--heading-font);
  font-size: 20px;
  display: block;
  margin-bottom: 5px;
}

.fancybox__toolbar {
  padding: 10px;
}

.fancybox__nav {
  --fancybox-nav-color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-social-widget {
        bottom: 20px;
        left: 20px;
    }
    .social-trigger {
        width: 50px;
        height: 50px;
    }
    .social-opt {
        width: 42px;
        height: 42px;
    }
}

/* Portfolio/Blog Image Zoom and Filter Disable */
.blog-scale-img img, 
.blog-img img,
.blog-list-box:hover .blog-scale-img img,
.recent-post .recent-item .recent-img img,
.recent-post .recent-item:hover .recent-img img,
.blog-page-section .blog-list-box:hover .blog-img .blog-scale-img,
.blog-page-section .blog-grid-box:hover .blog-img .blog-scale-img {
    transform: none !important;
    transition: none !important;
    filter: none !important;
}

/* Modern decorative background instead of orange */
.ad-about .about-img .bg-effect {
    display: block !important;
    opacity: 0.6;
}

.ad-about .bg-effect .yellow-effect,
.ad-about .bg-effect .theme-effect {
    background: #0a2c56 !important; /* KEA Blue */
    filter: blur(60px) !important;
}

/* Remove solid orange frame */
.ad-about .about-img::after {
    display: none !important;
}

/* Blog Page Grid Redesign */
.blog-list-box {
    display: flex;
    flex-direction: column; /* Stack vertically: image top, text bottom */
    margin-bottom: 30px;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

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

.blog-list-box .blog-img {
    width: 100% !important;
    height: 350px !important;
    min-width: 100% !important;
}

.blog-list-box .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-list-box .blog-content {
    padding: 20px !important;
    width: 100% !important;
}

.blog-list-box .blog-title h6 {
    font-size: 20px !important;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-list-box p {
    font-size: 14px !important;
    color: #666;
    margin-bottom: 15px;
}

@media (max-width: 767px) {
    .blog-list-box .blog-img {
        height: 250px !important;
    }
}


/* Hide lines in about section if any remained */
.ad-about .line, .ad-about .about-img .line {
    display: none !important;
}

/* Slider Customizations */
.charity-home-content h1 {
    text-shadow: 0 4px 25px rgba(0,0,0,0.9);
    opacity: 1 !important;
    visibility: visible !important;
    font-size: calc(32px + 32 * (100vw - 320px) / 1600) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2;
}

/* Ensure slider content is centered only on desktop and hidden on mobile via CSS overrides */
.charity-home-content {
    display: none !important; /* Default to hidden (mobile) */
}

@media (max-width: 767px) {
    .charity-style .charity-home-slider .swiper-slide {
        height: 100vh !important;
    }
    .charity-style .charity-home-slider .home-charity {
        height: 100vh !important; /* Full height on mobile too to avoid 'breaks' */
        min-height: 500px;
        padding: 0 !important; /* Remove padding that might cause gaps */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }
}

@media (min-width: 768px) {
    .charity-style .charity-home-slider .home-charity {
        height: 100vh !important;
        min-height: 700px;
    }
    .charity-style .charity-home-slider .home-charity .charity-home-content {
        display: flex !important; /* Visible on desktop/tablet */
        flex-direction: column;
        justify-content: center !important;
        align-items: center !important;
        height: 100% !important;
        width: 100% !important;
        position: relative;
        z-index: 5;
    }
}

/* Ensure background images cover correctly */
@media (max-width: 767px) {
    header .btn-solid {
        font-size: 10px !important;
        padding: 6px 10px !important;
        white-space: nowrap !important;
        letter-spacing: -0.2px;
        display: inline-block;
    }
    .brand-logo img {
        width: 90px !important;
    }
    .header-content {
        gap: 5px;
    }
}

.charity-home-slider .bg-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100.2% !important; /* Slight bleed to prevent subpixel gaps */
    object-fit: cover !important;
    z-index: -1 !important;
}

.charity-style .charity-home-slider .home-charity::after {
    z-index: 0 !important; /* Move overlay in front of image but behind content */
}

/* Ensure content is above everything */
.charity-home-content, .social-icon {
    position: relative;
    z-index: 10 !important;
}

.consultancy-testimonials-section {
    padding: 100px 0 !important;
    background-color: #f8f9fa !important;
}

.consultancy-testimonials-section h2 {
    text-align: center !important;
    margin-bottom: 50px !important;
    font-weight: 700 !important;
}

/* Testimonials Section Fixes */
.consultancy-testimonials-section .testimonials-box {
    display: block !important;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.consultancy-testimonials-section .testimonials-box .testimonials-img {
    display: none !important;
}

.consultancy-testimonials-section .testimonials-box .testimonials-content {
    width: 100% !important;
    display: block !important;
    text-align: center;
}

.consultancy-testimonials-section .testimonials-box .testimonials-content .profile-box {
    justify-content: center !important;
    margin-bottom: 25px;
}

.consultancy-testimonials-section .testimonials-box .testimonials-content .profile-box .profile-name {
    border-left: none !important;
    padding-left: 0 !important;
}

.consultancy-testimonials-section .testimonials-box .testimonials-content .profile-box img {
    display: none; /* Hide quote icon to keep it clean, or keep it? User said "resimsiz" - usually means profile pics, but maybe icons too */
}

.consultancy-testimonials-section .testimonials-box .testimonials-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 80px;
}

.consultancy-testimonials-section .testimonials-box .testimonials-content .profile-box {
    margin-bottom: 15px;
}

/* Navigation Menu Adjustments for additional item */
@media (min-width: 1200px) {
    .sidebar-nav .menu-items > .expand-btn {
        padding-inline: 8px !important;
    }
    .sidebar-nav .menu-items > .expand-btn > .menu-item {
        font-size: 18px !important;
        font-weight: 500;
        white-space: nowrap;
    }
    .header-content {
        gap: 8px !important;
    }
    /* Shrinking the CTA button to save space */
    .main-header .btn-solid {
        padding: 10px 14px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }
}

@media (min-width: 1200px) and (max-width: 1450px) {
    .sidebar-nav .menu-items > .expand-btn {
        padding-inline: 4px !important;
    }
    .sidebar-nav .menu-items > .expand-btn > .menu-item {
        font-size: 16px !important;
    }
    .header-content {
        gap: 4px !important;
    }
    .main-header .btn-solid {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
}
