/********** Template CSS **********/
:root {
    --primary: #E9491F;
    --secondary: #FFF0E6;
    --light: #F8F8F9;
    --dark: #001D23;
    --blue: #00264B;
    --gray: #EAEFF0;
    --primary-orange: #f15a24;
    --dark-blue: #0a1d37;   
    --text-gray: #555555;   
    --text-raven: #737B8C;
    --white: #ffffff;

    --main-font: 'Inter', sans-serif; /* تأكد من استدعاء الخط من Google Fonts */

}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
    font-family: var(--main-font);
    line-height: 1.6;
    background-color: #EAEFF0;
    overflow-x: hidden;
}

/* Add padding for fixed navbar on mobile */
@media (max-width: 991px) {
    body {
        padding-top: 0;
    }

    #home {
        padding-top: 80px;
        margin-top: -80px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 0;
    }

    #home {
        padding-top: 75px;
        margin-top: -75px;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/* تنسيق أيقونات الميزات الدائرية */
.btn-sm-square {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* إلغاء أي تأثير رفع (Hover) قد يكون موروثاً */
.slider-box {
    transform: none !important;
    transition: none !important;
}

.slider-box:hover {
    transform: none !important; /* يمنع تحرك البوكس للأعلى عند الوقوف عليه */
}

/* تنسيق الأسهم لتكون مطابقة للصورة */
.stats-prev-btn, .stats-next-btn {
    opacity: 0.8;
    transition: 0.3s;
}

.stats-prev-btn:hover, .stats-next-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2); /* تكبير بسيط للسهم فقط عند الهوفر */
}

/* لون السهم (البرتقالي الخاص بك) */
.text-primary {
    color: #e94d24 !important;
}
.background-image{
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('../img/banner.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
}

/* Mobile background optimization */
@media (max-width: 768px) {
    .background-image {
        background-attachment: scroll;
        background-position: center center;
    }

    /* Remove excessive margins on carousel */
    #home.container-fluid {
        padding: 0 !important;
        margin-bottom: 2rem !important;
    }

    .carousel {
        overflow: hidden;
    }
}
/* لون البرتقالي الأساسي */
.text-primary {
    color: #e94d24 !important;
}

/* تحسين شكل الـ Progress Bar */
.progress-bar {
    transition: width 1.5s ease-in-out;
}

/* تأثير عند المرور على البطاقة */
.stats-card {
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px); /* تأثير الزجاج الضبابي */
}

.stats-card:hover {
    transform: translateY(-5px);
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    color: var(--primary);
    background: transparent;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}


.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

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

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
    .navbar {
        background: var(--dark) !important;
        padding: 0.75rem 0 !important;
    }

    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .07);
        background: var(--dark);
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-collapse > .d-lg-none {
        color: rgba(255, 255, 255, 0.85);
        background: var(--dark);
        border-top: 1px solid rgba(255, 255, 255, .07);
    }

    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
        margin-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }

    .navbar-brand .logo {
        max-height: 50px !important;
        width: auto;
    }

    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1.25rem;
        border: 1px solid rgba(255, 255, 255, .1);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(233, 73, 31, 0.25);
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .navbar-brand .logo {
        max-height: 45px !important;
    }

    .fixed-top {
        position: fixed !important;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 29, 35, .8);
    z-index: 1;
}

/* Ensure all carousel items have consistent height */
#header-carousel .carousel-item {
    overflow: hidden;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 12px solid var(--primary-orange);
    border-radius: 3rem;
}

/* Mobile carousel improvements */
@media (max-width: 991px) {
    #header-carousel .carousel-item {
        min-height: 850px !important;
        height: 850px !important;
    }

    .background-image {
        min-height: 850px !important;
        height: 850px !important;
        padding: 100px 0 50px 0;
    }

    .carousel-caption {
        height: 100%;
        display: flex;
        align-items: center;
        padding-left: 10% !important;
        padding-right: 10% !important;
    }

    .carousel-caption .container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .carousel-item .display-6 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    /* Hide right column on tablets/mobile */
    .carousel-caption .row .col-lg-6:last-child {
        display: none !important;
    }

    /* Make left column full width */
    .carousel-caption .row .col-lg-6:first-child {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    /* Hide stats box on tablets */
    .slider-box {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 800px !important;
        height: 800px !important;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Set consistent carousel height */
    .background-image {
        min-height: 800px !important;
        height: 800px !important;
        padding: 90px 0 40px 0;
    }

    .min-vh-120 {
        min-height: 800px !important;
        height: 800px !important;
    }

    .carousel-caption {
        position: relative !important;
        background: rgba(0, 29, 35, .8);
        padding: 2rem 0;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .carousel-caption .container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 1rem;
    }

    /* Optimize heading sizes */
    .carousel-item .display-6 {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
        margin-bottom: 1rem !important;
    }

    /* Better paragraph spacing */
    .carousel-caption p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Hide feature badges on mobile */
    .d-flex.flex-wrap.gap-4.mb-5 {
        display: none !important;
    }

    /* Button group improvements */
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats row at bottom */
    .carousel-caption .row.g-4 .col-4 {
        padding: 0 0.5rem !important;
    }

    .carousel-caption .row.g-4 h2 {
        font-size: 1.5rem !important;
    }

    .carousel-caption .row.g-4 small {
        font-size: 0.7rem !important;
    }

    /* Hide stats card on mobile */
    .carousel-caption .row .col-lg-6:last-child {
        display: none !important;
    }

    /* Stats card optimization */
    .slider-box {
        display: none !important;
    }

    /* Carousel controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 12%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
        border: 8px solid var(--primary-orange);
    }

    /* Push caption content inward to clear the arrows */
    .carousel-caption {
        padding-left: 13% !important;
        padding-right: 13% !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    #header-carousel .carousel-item {
        min-height: 750px !important;
        height: 750px !important;
    }

    .background-image {
        min-height: 750px !important;
        height: 750px !important;
        padding: 170px 0 30px 0 !important;
    }

    .min-vh-120 {
        min-height: 750px !important;
        height: 750px !important;
    }

    .carousel-caption {
        padding: 1.5rem 16% !important;
        height: 100%;
    }

    .carousel-caption .container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0.75rem !important;
    }

    .carousel-item .display-6 {
        font-size: 1.35rem !important;
    }

    .carousel-caption p {
        font-size: 0.875rem !important;
    }

    .carousel-caption .row.g-4 h2 {
        font-size: 1.25rem !important;
    }

    .carousel-caption .row.g-4 small {
        font-size: 0.65rem !important;
    }

    /* Ensure slider box stays hidden */
    .slider-box {
        display: none !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }
}

.page-header {
    padding-top: 8rem;
    padding-bottom: 2rem;
    background: linear-gradient(rgba(0, 29, 35, .8), rgba(0, 29, 35, .8)), url(../img/about.webp) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Causes ***/
.causes-item .progress {
    height: 5px;
    border-radius: 0;
    overflow: visible;
}

.causes-item .progress .progress-bar {
    position: relative;
    overflow: visible;
    width: 0px;
    border-radius: 0;
    transition: 5s;
}

.causes-item .progress .progress-bar span {
    position: absolute;
    top: -7px;
    right: 0;
    width: 40px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--primary);
    color: #FFFFFF;
}

.causes-item .causes-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
     border-radius: 0 0 12px 12px ;
}

.causes-item:hover .causes-overlay {
    height: 100%;
    opacity: 1;
    
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    border-radius: 12px;
}

.vision-card {
    /* لون الخلفية مع شفافية */
    background: rgba(255, 255, 255, 0.1); 
    
    /* تأثير الضباب (Blur) للخلفية */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* حواف دائرية */
    border-radius: 20px;
    
    /* إطار خفيف جداً ليعطي شكل الزجاج */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* التأكد من أن النص يظهر بوضوح */
    color: white;
}

.vision-card h4 {
    font-weight: 500;
}

.vision-card p {
    font-size: 1.1rem;
    margin-bottom: 0;
}
.line-container {
    width: 100%; /* لضمان امتداد الحاوية */
    text-align: center;
}

.line-container::before,
.line-container::after {
    content: "";
    flex: 1; /* يجعل الخطوط تأخذ كل المساحة المتاحة يميناً ويساراً */
    height: 1px; /* سمك الخط */
    background: rgba(47, 32, 32, 0.2); /* لون الخط (رمادي خفيف ليناسب الخلفية الداكنة) */
}






/* إضافة مسافة بسيطة بين النص والخطوط */
.line-container::before {
    margin-right: 15px;
}

.line-container::after {
    margin-left: 15px;
}
/*** Donate ***/
.donate {
    background: rgba(0, 29, 35, .8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
}


/*** CTA ***/
.cta {
    background: rgba(0, 29, 35, .8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
    margin-top: 20px;
}


/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
    border-radius: 20px ;
    border: 1px solid var(--primary);
}

.team-item:hover img {
    top: 0px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
    border-radius: 0 0 20px 20px;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
    border-radius: 0 0 20px 20px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}









/*** Contact ***/

.contact .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--primary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.contact .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-right: 10px;
}

.contact .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.contact .btn.btn-square {
    color: var(--blue);
    border: 1px solid #00264B;
}

.contact .btn.btn-square:hover {
    color: var(--primary);
    border-color: var(--primary);
}























/*** Footer ***/

.footer{
        background: url('../img/con-bg.png');
    background-position: right;
    background-repeat: no-repeat;
    background-color: #00264B;
    color: white;
    padding: 80px 0 20px;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255,255,255,0.5);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.5);
}

.footer .btn.btn-square:hover {
    color: var(--secondary);
    border-color: var(--light);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

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


/* Project Tabs */
.project-nav .nav-link {
    color: var(--dark);
    text-align: left;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: .3s;
    border: 1px solid transparent;
}

.project-nav .nav-link:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.project-nav .nav-link.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Project Cards */
.project-card {
    transition: .3s;
    border-radius: 15px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.project-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}


/* منع الـ caption من أخذ كامل الشاشة بطريقة تغطي المحتوى */
.full-screen-caption {
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    text-align: left !important;
    padding-top: 50px;
    padding-bottom: 50px;
}

@media (max-width: 991px) {
    .full-screen-caption {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 768px) {
    .full-screen-caption {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Logo responsive sizing */
.navbar-brand .logo {
    max-height: 70px;
    width: auto;
    transition: all 0.3s ease;
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .display-6 {
        font-size: 2rem;
    }
    .stats-card {
        margin-top: 30px;
    }

    /* Text alignment on mobile */
    .text-start {
        text-align: center !important;
    }
}

/* Mobile-specific fixes for better UX */
@media (max-width: 768px) {
    /* Better spacing for service cards */
    .service-item {
        margin-bottom: 1rem;
    }

    /* Improve touch targets for social media */
    .btn-square {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }

    /* Better spacing for sections */
    .container-xxl.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Center align text on mobile for carousel */
    .carousel-caption .text-start {
        text-align: center !important;
    }

    /* Make left column full width when right is hidden */
    .carousel-caption .row .col-lg-6:first-child {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    /* Better feature icons layout */
    .btn-sm-square {
        width: 30px;
        height: 30px;
    }

    /* Improve list items in slider */
    .slider-box ul {
        padding-left: 1rem;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 576px) {
    /* Better button sizing */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Improve contact tabs */
    .nav-pills .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Optimize award items */
    .award-item img {
        max-width: 80px;
    }
}

/* Custom 5 columns responsive layout */
@media (max-width: 575px) {
    /* Mobile - show 2 items per row */
    .custom-5-cols .col-lg {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    /* Tablet - show 2 items per row */
    .custom-5-cols .col-lg {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    /* Desktop - show 5 items per row */
    .custom-5-cols .col-lg {
        flex: 0 0 20%;
        max-width: 20%;
    }

    /* Navbar brand for very small screens */
    .navbar-brand .logo {
        max-height: 40px !important;
    }

    .full-screen-caption {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Landscape phones */
@media (max-width: 896px) and (orientation: landscape) {
    .min-vh-120,
    .carousel-item {
        min-height: 550px !important;
        height: 550px !important;
    }

    .background-image {
        min-height: 550px !important;
        height: 550px !important;
        padding: 90px 0 40px 0 !important;
    }

    .carousel-caption {
        padding: 1.5rem 13% !important;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .carousel-caption .container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .slider-box {
        margin-top: 1rem;
        padding: 1rem !important;
        display: none !important;
    }

    .carousel-item .display-6 {
        font-size: 1.4rem !important;
    }

    .carousel-caption .row.g-4 {
        display: none;
    }
}

/* Specific fixes for iPhone and similar devices */
@media (max-width: 428px) {
    .navbar-brand .logo {
        max-height: 38px !important;
    }

    .navbar-toggler {
        padding: 0.4rem;
    }

    .carousel-item .display-6 {
        font-size: 1.25rem !important;
    }

    .slider-box {
        border-radius: 15px !important;
    }

    /* Extra padding for very small phones (360px CSS width) */
    .carousel-caption {
        padding: 1.5rem 20% !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 14%;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .service-item:hover,
    .team-item:hover img,
    .causes-item:hover .causes-overlay {
        transform: none;
    }

    /* Better touch feedback */
    .btn:active,
    .nav-link:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}