/* ===== DKM BAITUL HASIB - INFO PAGE STYLES ===== */


/* Root Variables */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0891b2;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}


/* Base Styles */

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.font-arabic {
    font-family: 'Amiri', serif;
}


/* ===== NAVIGATION STYLES ===== */

.navbar {
    transition: var(--transition);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--box-shadow);
}

.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-brand {
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    border-radius: 8px;
    margin: 0 2px;
    padding: 10px 16px !important;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nav-link i {
    font-size: 0.85rem;
    margin-right: 6px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 8px;
    margin-top: 4px;
    min-width: 200px;
}

.dropdown-item {
    border-radius: 8px;
    transition: var(--transition);
    padding: 10px 16px;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-item i {
    font-size: 0.8rem;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}


/* ===== HERO SECTION ===== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 300px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    animation: floatElement 8s ease-in-out infinite;
}

.float-element-1 {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.float-element-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.float-element-3 {
    top: 80%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes floatElement {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* ===== STATISTICS SECTION ===== */

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 500;
    color: var(--secondary-color);
}


/* ===== FEATURE CARDS ===== */

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}


/* ===== SERVICE PREVIEW CARDS ===== */

.service-preview-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.service-preview-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}


/* ===== ISLAMIC QUOTE SECTION ===== */

.islamic-quote {
    background: var(--light-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.blockquote {
    font-size: 1.25rem;
    line-height: 1.8;
}


/* ===== FOOTER STYLES ===== */

.footer {
    /* background: linear-gradient(135deg, #6388bc 10%, #1069e7 100%); */
    position: relative;
    margin-top: auto;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerPattern" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M25 25m-2 0a2 2 0 1 1 4 0a2 2 0 1 1 -4 0" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPattern)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-section {
    position: relative;
    z-index: 2;
}


/* Footer Logo and Branding */

.footer-logo-icon img {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
}

.footer-logo-icon:hover img {
    transform: scale(1.05);
}

.footer-title {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}


/* Footer Statistics */

.footer-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}


/* Footer Section Titles */

.footer-section-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border-radius: 2px;
}


/* Footer Links */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}


/* Contact Information */

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-item i {
    /* color: var(--primary-color); */
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a {
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}


/* Social Media */

.social-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    padding-top: 15px!important;
    padding-left: 30px!important;
    padding-right: 10px!important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.social-link i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}


/* Social Platform Colors */

.social-link.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #4267B2);
    border-color: #1877f2;
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #E4405F, #C13584);
    border-color: #E4405F;
}

.social-link.whatsapp:hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-color: #25D366;
}

.social-link.youtube:hover {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    border-color: #FF0000;
}


/* Footer Bottom */

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.footer-links-bottom .separator {
    color: rgba(255, 255, 255, 0.4);
}


/* ===== BACK TO TOP BUTTON ===== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}


/* ===== LOADING OVERLAY ===== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
}


/* ===== CARDS & COMPONENTS ===== */

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.4);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
    /* margin-top: 2%; */
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}


/* ===== ANIMATIONS ===== */

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}


/* ===== RESPONSIVE DESIGN ===== */


/* Extra Large Desktop Screens */

@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }
    .hero-content h1 {
        font-size: 4.5rem;
        line-height: 1.1;
    }
    .feature-card {
        padding: 3.5rem;
    }
    .service-card {
        padding: 3rem;
    }
}


/* Large Desktop Screens */

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    .hero-content h1 {
        font-size: 4rem;
        line-height: 1.2;
    }
    .feature-card {
        padding: 3rem;
    }
    .service-card {
        padding: 2.5rem;
    }
}


/* Desktop/Laptop */

@media (max-width: 1199px) and (min-width: 993px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .feature-card {
        padding: 2.5rem;
    }
    .service-card {
        padding: 2rem;
    }
}


/* Tablet Portrait & Small Desktop */

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.3;
    }
    .hero-content .lead {
        font-size: 1.1rem;
    }
    .service-card,
    .service-preview-card {
        margin-bottom: 2rem;
        padding: 2rem;
    }
    .feature-card {
        padding: 2rem;
    }
    .stat-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    /* Navigation adjustments */
    .navbar-nav {
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        margin-top: 0.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    .nav-link {
        text-align: center;
        margin: 4px 8px;
        padding: 12px 20px !important;
        border-radius: 8px;
        font-size: 1rem;
    }
    .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin: 4px 8px;
        background: var(--light-color);
        border: 1px solid rgba(37, 99, 235, 0.1);
    }
    /* Gallery grid adjustments */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}


/* Tablet Landscape */

@media (max-width: 768px) and (min-width: 577px) {
    .hero-section {
        min-height: 70vh;
        padding: 3rem 0;
        text-align: center;
    }
    .hero-content h1,
    .display-4 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .hero-content .btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    .hero-logo {
        max-width: 200px;
        margin-bottom: 2rem;
    }
    .floating-elements {
        display: none;
    }
    .feature-card,
    .service-preview-card {
        padding: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .stat-card {
        padding: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .islamic-quote {
        padding: 2rem;
    }
    .blockquote {
        font-size: 1.1rem;
    }
    .footer-section {
        margin-bottom: 2rem;
    }
    /* Footer mobile adjustments */
    .footer-stats {
        padding: 1rem;
    }
    .stat-item .stat-number {
        font-size: 1.1rem;
    }
    .stat-item .stat-label {
        font-size: 0.75rem;
    }
    .social-links {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .social-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    .footer-links a {
        font-size: 0.85rem;
    }
    .contact-item {
        font-size: 0.85rem;
    }
    .footer-links-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-links-bottom .separator {
        display: none;
    }
    .footer-content {
        padding: 2.5rem 0;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    /* Program cards adjustments */
    .program-card {
        margin-bottom: 1.5rem;
    }
    .program-card-body {
        padding: 1.25rem;
    }
    /* Gallery responsive */
    .gallery-item {
        margin-bottom: 1rem;
    }
}


/* Mobile Portrait */

@media (max-width: 576px) {
    /* Base adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        padding: 2.5rem 0;
        text-align: center;
    }
    .hero-content h1,
    .display-4 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    .hero-content .lead,
    .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    .hero-content .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    .hero-content .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero-logo {
        max-width: 180px;
        margin-bottom: 1.5rem;
    }
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
    .navbar-brand img {
        height: 35px;
    }
    .navbar-toggler {
        border: none;
        padding: 6px 10px;
        font-size: 1.1rem;
    }
    .navbar-nav {
        text-align: center;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        margin-top: 0.5rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    .nav-link {
        margin: 4px 12px;
        padding: 12px 20px !important;
        font-size: 1rem;
        border-radius: 8px;
        font-weight: 500;
    }
    .nav-link i {
        margin-right: 8px;
    }
    .dropdown-menu {
        position: static !important;
        float: none;
        width: calc(100% - 24px);
        margin: 4px 12px;
        background: rgba(248, 250, 252, 0.9);
        border: 1px solid rgba(37, 99, 235, 0.1);
        border-radius: 8px;
        box-shadow: none;
        padding: 8px;
    }
    .dropdown-item {
        text-align: center;
        padding: 10px 16px;
        font-size: 0.95rem;
        border-radius: 6px;
        margin: 2px 0;
    }
    .dropdown-item i {
        margin-right: 8px;
    }
    /* Action Buttons Mobile */
    .navbar-nav .nav-item:last-child {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(37, 99, 235, 0.1);
    }
    .navbar-nav .btn {
        width: auto;
        min-width: 120px;
        margin: 4px;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    /* Donate button mobile */
    .nav-item-special {
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(37, 99, 235, 0.1);
        text-align: center;
    }
    .btn-donate-header {
        width: auto;
        min-width: 160px;
        padding: 12px 24px !important;
        font-size: 1rem !important;
        border-radius: 30px !important;
    }
    /* Cards and Content */
    .feature-card,
    .service-preview-card {
        padding: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .feature-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    .service-card .btn {
        width: 100%;
        margin-top: 1rem;
    }
    .stat-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .service-preview-icon {
        font-size: 2.5rem;
    }
    /* Program Cards */
    .program-card {
        margin-bottom: 1.5rem;
    }
    .program-card-header {
        height: 160px;
    }
    .program-card-body {
        padding: 1rem;
    }
    .program-card-body h5 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    .program-card-body p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    .program-card-body .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    /* Featured Program Cards */
    .featured-program-card .program-content {
        padding: 1.5rem;
    }
    .featured-program-card .program-stats .col-4 {
        margin-bottom: 1rem;
    }
    .featured-program-card .program-stats h5 {
        font-size: 1rem;
    }
    .featured-program-card .program-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .gallery-item {
        margin-bottom: 1rem;
    }
    .gallery-item img {
        border-radius: 8px;
    }
    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    .modal-header {
        padding: 1rem;
    }
    .modal-body {
        padding: 1rem;
        max-height: 60vh;
    }
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    .modal-footer .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    /* Sections */
    .py-5 {
        padding: 2.5rem 0 !important;
    }
    .py-4 {
        padding: 2rem 0 !important;
    }
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    /* Text adjustments */
    .display-1 {
        font-size: 2.5rem;
    }
    .display-2 {
        font-size: 2.25rem;
    }
    .display-3 {
        font-size: 2rem;
    }
    .display-5 {
        font-size: 1.5rem;
    }
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    h4 {
        font-size: 1.1rem;
    }
    h5 {
        font-size: 1rem;
    }
    /* Forms and Buttons */
    .form-control {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    /* Islamic Quote */
    .islamic-quote {
        padding: 1.5rem;
    }
    .blockquote {
        font-size: 1rem;
    }
    /* Back to top button */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}


/* Extra Small Mobile (iPhone SE, etc.) */

@media (max-width: 375px) {
    .hero-content h1,
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    .hero-content .lead {
        font-size: 0.9rem;
    }
    .feature-card,
    .service-preview-card {
        padding: 1rem;
    }
    .service-card {
        padding: 1rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .program-card-body {
        padding: 0.75rem;
    }
    .featured-program-card .program-content {
        padding: 1rem;
    }
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    .modal-body {
        padding: 0.75rem;
    }
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .hero-logo {
        max-width: 150px;
    }
    /* Navigation for very small screens */
    .navbar-brand {
        font-size: 1rem;
    }
    .navbar-brand img {
        height: 30px;
    }
    .nav-link {
        margin: 3px 8px;
        padding: 10px 16px !important;
        font-size: 0.95rem;
    }
    .dropdown-menu {
        width: calc(100% - 16px);
        margin: 4px 8px;
    }
    .dropdown-item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    .navbar-nav .btn {
        min-width: 100px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    /* Donate button very small screens */
    .btn-donate-header {
        min-width: 140px;
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
    }
    /* Footer adjustments for very small screens */
    .footer-stats .row {
        gap: 0.5rem;
    }
    .footer-stats .col-4 {
        flex: 1;
        min-width: 70px;
    }
    .stat-item .stat-number {
        font-size: 1rem;
    }
    .stat-item .stat-label {
        font-size: 0.7rem;
    }
    .footer-section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .footer-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    .contact-item {
        margin-bottom: 0.75rem;
    }
    .social-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}


/* Landscape Orientation for Mobile */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    .hero-content .lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .hero-content .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
    .py-5 {
        padding: 1.5rem 0 !important;
    }
    .py-4 {
        padding: 1.25rem 0 !important;
    }
}


/* ===== UTILITY CLASSES ===== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.1) !important;
}

.shadow-strong {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15) !important;
}

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color), #047857) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color), #b45309) !important;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--info-color)) 1;
}


/* Navigation Utility Classes */

.nav-item-highlight {
    position: relative;
}

.nav-item-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item-highlight:hover::after {
    width: 80%;
}

.navbar-fixed-spacing .nav-item {
    min-width: 100px;
}

.navbar-fixed-spacing .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ===== DONATE BUTTON STYLES ===== */

.nav-item-special {
    margin-left: 0.5rem;
}

.btn-donate-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

.btn-donate-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-donate-header:hover::before {
    left: 100%;
}

.btn-donate-header:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4) !important;
}

.btn-donate-header.active {
    background: linear-gradient(135deg, #a93226, #922b21) !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5) !important;
}

.btn-donate-header i {
    font-size: 0.85rem;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%,
    50%,
    100% {
        transform: scale(1);
    }
    25%,
    75% {
        transform: scale(1.1);
    }
}


/* Pulse effect for extra attention */

.btn-donate-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100%;
        height: 100%;
        opacity: 0;
    }
}


/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .btn-donate-header i {
        animation: none !important;
    }
    .btn-donate-header::after {
        animation: none !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ===== PRINT STYLES ===== */

@media print {
    .navbar,
    .back-to-top,
    .loading-overlay,
    .floating-elements {
        display: none !important;
    }
    .hero-section {
        background: white !important;
        color: black !important;
    }
    .card,
    .feature-card,
    .service-preview-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}


/* Mobile Performance Optimizations */

@media (max-width: 768px) {
    /* Reduce GPU layer creation */
    .floating-elements,
    .hero-bg::before,
    .service-card::before {
        will-change: auto;
        transform: none;
    }
    /* Optimize hover states for touch devices */
    .program-card:hover,
    .feature-card:hover,
    .service-card:hover {
        transform: none;
    }
    /* Touch-friendly button sizes */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    /* Optimize images */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    /* Improve text rendering on mobile */
    body {
        -webkit-text-size-adjust: 100%;
        text-rendering: optimizeLegibility;
    }
}


/* Touch device optimizations */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .program-card:hover,
    .feature-card:hover,
    .service-card:hover,
    .nav-link:hover,
    .btn:hover {
        transform: none;
        box-shadow: inherit;
    }
    /* Larger touch targets */
    .nav-link,
    .dropdown-item,
    .btn {
        padding: 12px 16px;
    }
    /* Touch feedback */
    .btn:active,
    .nav-link:active {
        background-color: rgba(0, 0, 0, 0.1);
        transition: background-color 0.1s ease;
    }
    .btn-donate-header:active {
        transform: scale(0.95) !important;
        background: linear-gradient(135deg, #a93226, #922b21) !important;
    }
}


/* iOS Safari specific fixes */

@supports (-webkit-touch-callout: none) {
    /* Fix iOS Safari 100vh issue */
    .hero-section {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
    /* Prevent zoom on input focus */
    input,
    textarea,
    select {
        font-size: 16px;
    }
    /* Fix sticky positioning */
    .navbar {
        position: -webkit-sticky;
        position: sticky;
    }
}