/* =============================================================================
   Project:        QaimAid Website
   File:           website.css
   Description:    Core layout, typography, and component styles for QaimAid.
                   Fully responsive with optimized mobile breakpoints.

   Developer:      Zahid Ali Rizvi (One10 Codester)
   Role:           Frontend Developer
   Contact:        ali@one10.net | github.com/one10-codester

   Version:        1.1.0
   Created:        2025-08-30
   Last Updated:   2025-09-01
   License:        MIT
   Notes:          Enhanced mobile responsiveness - preserves original design
============================================================================= */

/* ========== IMPORT STYLE ========== */
@import url('../../vendor/bootstrap-4.6.0/css/bootstrap.min.css');
@import url('../../vendor/fontawesome-6.5.2/css/all.css');
@import url('https://fonts.googleapis.com/css?family=Quicksand:400,500,600,700|Roboto:400,500,700&display=swap');

/* ========== GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    user-select: none;
    -webkit-tap-highlight-color: rgba(78, 115, 223, 0.1);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== PRELOADER STYLES ========== */
.load-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.logo {
    margin-bottom: 40px;
    text-align: center;
    padding: 0 20px;
}

.logo h1 {
    font-weight: 800;
    font-size: clamp(2rem, 8vw, 3rem);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo span {
    color: #4E73DF;
}

.logo i {
    background: linear-gradient(135deg, #fdbb2d, #b21f1f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.load-wrapper {
    text-align: center;
    padding: 0 20px;
}

.loading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(30px, 8vw, 50px) clamp(40px, 10vw, 80px);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.spin-icon {
    animation: spin 1.5s linear infinite;
    margin-right: 15px;
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #2575fc;
}

.loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-top: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========== SECTION PADDING & TITLE ========== */
.section-padding {
    padding: clamp(50px, 10vw, 80px) 0;
}

.section-title {
    margin-bottom: clamp(30px, 8vw, 50px);
    text-align: center;
    padding: 0 15px;
}

.section-title h2 {
    margin-bottom: 15px;
    font-weight: 700;
    color: #4e73df;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #858796;
    font-size: clamp(0.85rem, 3vw, 1rem);
    padding: 0 10px;
}

#programs .section-title h2,
#testimonials .section-title h2 {
    color: #858796;
}

#programs .section-title p,
#testimonials .section-title p {
    color: #858796;
}

.subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.subtitle-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4e73df, transparent);
    min-width: 30px;
}

.subtitle {
    display: inline-block;
    padding: 5px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: #fff;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: clamp(100px, 20vw, 150px) 0 clamp(60px, 12vw, 100px);
    color: #fff;
    background: linear-gradient(135deg, #020024 0%, #090979 35%, #00D4FF 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://t4.ftcdn.net/jpg/06/30/03/29/360_F_630032996_e9ani5VblvtTjKYYprfStjPwRgyhi6H7.jpg") center/cover no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.hero-transparent-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url("https://cdn.pixabay.com/photo/2017/01/31/00/09/abstract-2022436_1280.png") center/contain no-repeat;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.hero-slider {
    position: relative;
    height: clamp(200px, 40vw, 300px);
    margin-top: 40px;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 20px;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 90%;
    text-align: center;
}

.slide-icon-big {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.slide-icon {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.slide-text {
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.slider-dot {
    display: inline-block;
    width: clamp(8px, 3vw, 12px);
    height: clamp(8px, 3vw, 12px);
    margin: 0 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ========== ABOUT CREATIVE ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 8vw, 50px);
    align-items: center;
    padding: 0 15px;
}

.about-images-creative {
    position: relative;
    padding-right: 30px;
}

.image-main {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 9 / 6;
    box-shadow: 0 30px 60px rgba(78, 115, 223, 0.3);
}

.image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-main:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(15px, 5vw, 30px) clamp(15px, 4vw, 20px) clamp(15px, 4vw, 20px);
    background: linear-gradient(to top, rgba(78, 115, 223, 0.95), transparent);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.image-main:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h4 {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 5px;
}

.image-overlay p {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
}

.image-small {
    position: absolute;
    top: -30px;
    left: -30px;
    z-index: 3;
    width: clamp(100px, 25vw, 200px);
    height: clamp(100px, 25vw, 200px);
    border: 5px solid #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    background: #4e73df;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
    font-size: clamp(0.8rem, 3vw, 1rem);
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e73df, #224abe);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.shape-1 {
    width: clamp(150px, 40vw, 300px);
    height: clamp(150px, 40vw, 300px);
    top: -50px;
    right: -50px;
    animation: pulse 4s infinite;
}

.shape-2 {
    width: clamp(80px, 20vw, 150px);
    height: clamp(80px, 20vw, 150px);
    bottom: -60px;
    left: -60px;
    animation: pulse 3s infinite reverse;
}

.highlight-box {
    padding: clamp(20px, 5vw, 30px);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    margin-bottom: 30px;
}

.highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(78, 115, 223, 0.15);
}

.highlight-box h4 {
    color: #4e73df;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
}

.highlight-box p {
    font-size: clamp(0.85rem, 3vw, 1rem);
    line-height: 1.6;
}

.stats-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 3vw, 20px);
    margin-bottom: 30px;
}

.stat-item {
    padding: clamp(10px, 3vw, 15px);
    text-align: center;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: clamp(1.2rem, 5vw, 2rem);
    font-weight: 800;
    color: #4e73df;
    line-height: 1.2;
}

.stat-label {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #858796;
}

.stat-bar {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4e73df, #224abe);
    margin: 10px auto 0;
    border-radius: 3px;
    transition: width 0.3s;
}

.stat-item:hover .stat-bar {
    width: 70px;
}

/* ========== PROGRAMS ========== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
    margin-top: 30px;
    padding: 0 15px;
}

.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.program-img {
    height: clamp(180px, 30vw, 220px);
    background-size: cover;
    background-position: center;
    position: relative;
}

.program-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: clamp(35px, 8vw, 45px);
    height: clamp(35px, 8vw, 45px);
    background: linear-gradient(135deg, #4e73df, #224abe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1rem, 4vw, 1.3rem);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.program-content {
    padding: clamp(15px, 5vw, 25px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-content h4 {
    color: #4e73df;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: clamp(1.1rem, 4vw, 1.35rem);
}

.program-content p {
    color: #5a5c69;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

.program-content .btn {
    background: linear-gradient(135deg, #4e73df, #224abe);
    border: none;
    padding: clamp(8px, 2vw, 10px) clamp(20px, 5vw, 25px);
    border-radius: 30px;
    font-weight: 600;
    color: white;
    align-self: flex-start;
    transition: all 0.3s;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
}

.program-content .btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
}

/* ========== IMPACT MODERN ========== */
.impact-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 5vw, 40px);
    padding: 0 15px;
}

.impact-stories {
    padding: clamp(20px, 5vw, 30px);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.impact-story-item {
    display: flex;
    gap: clamp(15px, 4vw, 20px);
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e3e6f0;
    flex-wrap: wrap;
}

.impact-story-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.impact-story-icon {
    flex-shrink: 0;
}

.impact-story-image {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
}

.impact-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.impact-story-content {
    flex: 1;
    min-width: 180px;
}

.impact-story-content h5 {
    color: #4e73df;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: clamp(1rem, 4vw, 1.1rem);
}

.impact-story-content p {
    color: #5a5c69;
    font-style: italic;
    margin-bottom: 8px;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    line-height: 1.5;
}

.impact-story-meta {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    color: #858796;
}

.impact-vision {
    padding: clamp(25px, 6vw, 40px);
    border-radius: 20px;
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.impact-vision h3 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: clamp(1.3rem, 5vw, 1.75rem);
}

.impact-vision p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: clamp(0.85rem, 3vw, 1rem);
}

.impact-vision ul {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.impact-vision ul li {
    font-size: clamp(0.85rem, 3vw, 1rem);
    margin-bottom: 8px;
}

.impact-vision-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 3vw, 20px);
    margin-top: 30px;
}

.impact-vision-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(10px, 3vw, 15px);
    border-radius: 10px;
    text-align: center;
}

.impact-vision-stat .stat-number {
    display: block;
    font-size: clamp(1.1rem, 5vw, 2rem);
    font-weight: 700;
    color: #fff;
}

.impact-vision-stat .stat-label {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    color: #fff;
}

/* ========== EXPENDITURE CAROUSEL ========== */
.expenditure-carousel-wrapper {
    position: relative;
    padding: 20px clamp(20px, 5vw, 40px);
}

.expenditure-carousel {
    overflow: hidden;
}

.expenditure-inner {
    display: flex;
    gap: 25px;
    transition: transform 0.4s ease;
}

.expenditure-slide {
    flex: 0 0 calc(33.333% - 17px);
    min-width: calc(33.333% - 17px);
}

.expenditure-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.expenditure-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
}

.expenditure-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.expenditure-item:hover img {
    transform: scale(1.08);
}

.expenditure-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(12px, 4vw, 20px);
    background: linear-gradient(to top, rgba(78, 115, 223, 0.95), transparent);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.expenditure-item:hover .expenditure-overlay {
    transform: translateY(0);
}

.expenditure-overlay h5 {
    font-size: clamp(0.85rem, 3vw, 1rem);
    margin-bottom: 4px;
}

.expenditure-overlay p {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    margin-bottom: 0;
}

.expenditure-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(35px, 6vw, 45px);
    height: clamp(35px, 6vw, 45px);
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #4e73df;
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expenditure-nav-btn:hover {
    background: #4e73df;
    color: #fff;
}

.expenditure-prev {
    left: clamp(0px, 2vw, -20px);
}

.expenditure-next {
    right: clamp(0px, 2vw, -20px);
}

.expenditure-dots {
    text-align: center;
    margin-top: 35px;
}

.expenditure-dot {
    display: inline-block;
    width: clamp(8px, 3vw, 10px);
    height: clamp(8px, 3vw, 10px);
    margin: 0 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.expenditure-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    animation: zoom 0.3s;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: clamp(15px, 5vw, 25px);
    right: clamp(15px, 5vw, 35px);
    font-size: clamp(30px, 8vw, 45px);
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: 0.2s;
}

.modal-close:hover {
    color: #4e73df;
}

.modal-caption {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    padding: clamp(10px, 4vw, 15px) clamp(15px, 5vw, 20px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: clamp(0.8rem, 3.5vw, 1.1rem);
    font-weight: 500;
}

/* ========== DONATION BOX & TESTIMONIALS ========== */
.donation-box {
    padding: clamp(25px, 6vw, 40px);
    border-radius: 20px;
    background: #f8f9fc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.donation-box h3 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
}

.testimonial-card {
    height: 100%;
    padding: clamp(20px, 5vw, 30px);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #5a5c69;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author h5 {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-bottom: 2px;
}

.testimonial-author p {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
}

/* ========== FOOTER ========== */
.footer {
    background: #5a5c69;
    color: #fff;
    padding: clamp(40px, 10vw, 60px) 0 30px;
}

.footer .container {
    padding: 0 20px;
}

.footer h5 {
    margin-bottom: 20px;
    font-size: clamp(1rem, 4vw, 1.25rem);
}

.footer p {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    line-height: 1.6;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    transition: 0.3s;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: #4e73df;
    transform: translateY(-3px);
    text-decoration: none;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
}

.copyright p {
    margin-bottom: 0;
}

.copyright a {
    color: #fff;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: #4e73df;
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: 0.3s;
}

.back-to-top:hover {
    background: #224abe;
    color: #fff;
    transform: translateY(-3px);
    text-decoration: none;
}

.back-to-top i {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
}

/* ========== NAVBAR OVERRIDES ========== */
.navbar {
    padding: 10px 0;
}

.navbar-brand img {
    height: clamp(35px, 6vw, 45px);
    width: auto;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.3);
}

.nav-link {
    font-weight: 600;
    transition: 0.3s;
    color: #5a5c69 !important;
    padding: 8px 15px !important;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

.nav-link:hover {
    color: #4e73df !important;
    transform: translateY(-2px);
}

.btn-donate {
    background: #7EC9B2;
    border-color: #17A2B8;
    color: white;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    white-space: nowrap;
}

.btn-donate:hover {
    background: #80CAB6;
    border-color: #80CAB6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 74, 59, 0.3);
}

.btn-signin {
    border: 2px solid #4e73df;
    background: transparent;
    color: #4e73df;
    font-weight: 600;
    padding: 6px 18px;
    margin-right: 15px;
    border-radius: 30px;
    transition: 0.3s;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    white-space: nowrap;
}

.btn-signin:hover {
    background: #4e73df;
    color: #fff;
    text-decoration: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.address-box {
    padding: clamp(25px, 5vw, 40px);
    border-radius: 20px;
    background: #f8f9fc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.address-box h4 {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
}

.address-box h5 {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
}

.address-box p {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    word-break: break-word;
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.15; }
    100% { transform: scale(1); opacity: 0.1; }
}

@keyframes zoom {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ========== PRIMARY RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 1199px) {
    .expenditure-slide {
        flex: 0 0 calc(33.333% - 17px);
        min-width: calc(33.333% - 17px);
    }
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-images-creative {
        max-width: 500px;
        margin: 0 auto;
        padding-right: 0;
    }
    .image-small {
        width: 120px;
        height: 120px;
        top: -20px;
        left: -20px;
    }
    .impact-modern {
        grid-template-columns: 1fr;
    }
    .expenditure-slide {
        flex: 0 0 calc(50% - 13px);
        min-width: calc(50% - 13px);
    }
    .hero-section {
        padding: 110px 0 70px;
    }
    .hero-slider {
        height: 260px;
    }
    .navbar-nav {
        padding: 15px 0;
    }
    .navbar-nav .nav-item {
        text-align: center;
    }
    .navbar .ml-auto {
        margin-top: 10px;
        justify-content: center;
        gap: 10px;
    }
    .btn-signin, .btn-donate {
        margin: 5px;
        text-align: center;
    }
    .stats-modern {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .stats-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .image-small {
        width: 90px;
        height: 90px;
        top: -12px;
        left: -12px;
        border-width: 3px;
    }
    .hero-slider {
        height: 220px;
        margin-top: 30px;
    }
    .expenditure-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .expenditure-carousel-wrapper {
        padding: 20px 15px;
    }
    .expenditure-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .program-img {
        height: 180px;
    }
    .section-padding {
        padding: 50px 0;
    }
    .section-title {
        margin-bottom: 35px;
    }
    .programs-grid {
        gap: 20px;
    }
    .impact-story-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .impact-story-icon {
        margin-bottom: 0;
    }
    .impact-vision-stats {
        gap: 12px;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .hero-section .display-5 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .hero-section .d-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-section .btn {
        width: 100%;
        text-align: center;
        margin-right: 0 !important;
    }
    .footer .col-lg-4, 
    .footer .col-lg-2 {
        margin-bottom: 30px;
        text-align: center;
    }
    .footer .social-links {
        justify-content: center;
    }
    .footer .input-group {
        flex-direction: column;
        gap: 10px;
    }
    .footer .input-group .form-control,
    .footer .input-group-append {
        width: 100%;
    }
    .footer .input-group-append .btn {
        width: 100%;
        border-radius: 30px;
    }
    .donation-box .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    .donation-box .mr-4 {
        margin-right: 0 !important;
        text-align: center;
    }
    .donation-box h4 {
        font-size: 1.2rem;
    }
    .contact-form-section .form-row {
        flex-direction: column;
    }
    .address-box {
        margin-top: 30px;
        text-align: center;
    }
    .address-box .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
    .subtitle-wrapper {
        gap: 8px;
    }
    .subtitle {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 25px;
        padding-right: 25px;
    }
    .hero-slider {
        height: 200px;
    }
    .slide-text {
        font-size: 0.85rem;
    }
    .slide-icon {
        font-size: 1.8rem;
    }
    .program-card {
        margin: 0 5px;
    }
    .program-content {
        padding: 18px;
    }
    .impact-vision {
        padding: 20px;
    }
    .impact-story-content {
        min-width: auto;
    }
    .expenditure-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    .expenditure-prev {
        left: -5px;
    }
    .expenditure-next {
        right: -5px;
    }
    .testimonial-card {
        padding: 18px;
    }
    .donation-box {
        padding: 20px;
    }
    .modal-content {
        max-width: 95%;
    }
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }
}

/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */
@media (hover: none) and (pointer: coarse) {
    .program-card:hover,
    .expenditure-item:hover,
    .stat-item:hover,
    .highlight-box:hover {
        transform: none;
    }
    
    .image-main:hover img {
        transform: none;
    }
    
    .image-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(78, 115, 223, 0.95), rgba(78, 115, 223, 0.7));
    }
    
    .expenditure-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(78, 115, 223, 0.95), rgba(78, 115, 223, 0.7));
    }
    
    .program-content .btn:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
    
    .btn-donate:hover,
    .btn-signin:hover {
        transform: none;
    }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .image-small {
        animation: none;
    }
    
    .shape-1,
    .shape-2 {
        animation: none;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar,
    .hero-section::before,
    .hero-transparent-image,
    .back-to-top,
    .btn-donate,
    .btn-signin,
    .footer,
    #preloader,
    .expenditure-nav-btn,
    .slider-nav {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .hero-section {
        background: #f8f9fc;
        color: black;
        padding: 20px 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}