/* styles.css */
:root {
    --primary-color: #00dfdf;
    --primary-dark: #28bdb5;
    --secondary-color: #667eea;
    --accent-color: #f093fb;

    --error-color: #d10000;
    --danger-color: #f73c3c;
    --text-dark: #2D3748;
    --text-light: #718096;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

@font-face {
    font-family: "Peyda-main";
    src: url("../fonts/peydabold.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  
  @font-face {
    font-family: "vazir-main";
    src: url("../fonts/vazir.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: "lalezar-main";
    src: url("../fonts/lalezar.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
 
  
* {
    font-family:"Peyda-main" ;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{
    text-decoration: none;
}
body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Islamic Pattern Backgrounds */
.islamic-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/pattern.png);
    background-repeat: repeat;
    background-size: 200px 200px;
   
    pointer-events: none;


}


.islamic-pattern-overlay::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(../img/wave2.png);
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
   bottom: -2px;
   
}

.row_box{
    display: flex;
    width: 90%;
    
}


.col_box30{
z-index: 99;
    width: 30%;
    justify-content: center;
    display: flex;
}
.col_box70{
    width: 70%;
}
.col_box50{
    width: 50%;
}
.mokaup{
    width: 350px;
}
/* Header Styles */
.main-header {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    position: relative;
    color: white;
    padding-bottom: 50px;
    height: fit-content;
}

.navbar {
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    background: rgba(0, 119, 113, 0.705);
    backdrop-filter: blur(4px);
    border-radius: var(--border-radius);
    padding: 15px 25px;
}
.nav-menu .logo{
    display: none;
 }

.menu-header {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.user-wallet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    width: 100%;
    
}

.user-info-menu{
    margin:10px ;
    display: flex;
    justify-content: space-between;
    
    width: 100%;
}
.user-wallet svg {
    color: white;
}

.level-badge {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8);
    color: #2D3748;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
}
.user-wallet{

    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
    text-align: center;
}
.user-level{
width: 100%;
text-align: center;
}


.menu-list {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu-list a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 8px;
}

.menu-list a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-list .icon {
    font-size: 18px;
}



.btn-danger {
    background: rgba(223, 31, 31, 0.678);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;

}

.btn-success {
    background: rgba(8, 221, 175, 0.466);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-danger:hover {
    background: white;
    color: var(--danger-color);
}

.btn-success:hover {
    background: white;
    color: var(--primary-dark);
}


p{align-content: center;}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 10px;
    font-weight: 400;
}


.box_download{
    position: relative; margin-bottom: 20px; 
}
.box_download a{

    position: absolute;margin: auto; left: 0;right: 0;top: 27%; z-index: 200;font-size: 24px; font-weight: 900; text-decoration: none; color: var(--text-dark);

}
 
.box_download img{
    width: 300px; z-index: 199;position: relative;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: fit-content;
    margin: 0 auto;
}

.stat-item {
    background-image: url(../img/eslamicbox2.png);
    background-repeat: no-repeat;
    background-position:center;
    background-size: 100% 100%;
    padding: 16px;
    transition: var(--transition);
    color: var(--text-dark);
    height: 70px;
width: 120px;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 14px;
    font-weight: 800;
    direction: ltr;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    margin-top: 50px;
}

/* Section Styles */
.featured-section,
.categories-section,
.community-section,
.organizations-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
}

/* Slider Controls */

.funding-progress {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    direction: ltr;
    width: 100%;
}

.funding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.funding-stats {
    width: 100%;
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.stat-raised,
.stat-goal {
    display: flex;
    flex-direction: column;
}

.stat-amount {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #00dfdf 0%, #28bdb5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.funding-percentage {
    background: linear-gradient(135deg, #00dfdf 0%, #28bdb5 100%);
    padding:0 5px 0 5px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    animation: pulse 2s ease-in-out infinite;
    width: 70px;
}

.percentage-value {
    font-size: 16px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.progress-range {
    width: 100%;
    margin-top: 15px;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 10px;
    background: #e0e5ec;
    border-radius: 50px;
    overflow: visible;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.15);
}

.progress-fill {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, #66ead4 0%, #4ba281 50%, #93fbf2 100%);
    border-radius: 50px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 15px rgba(102, 234, 227, 0.5);
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.progress-glow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

.progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: white;
    border: 4px solid #66d6ea;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(102, 234, 234, 0.5);
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 2;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #66dbea;
}



.progress-thumb:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 6px 25px rgba(55, 129, 126, 0.7);
}

.thumb-value {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.thumb-value::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

.progress-thumb:hover .thumb-value {
    opacity: 1;
}

.progress-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 5px;
}

.marker {
    font-size: 11px;
    color: #999;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .funding-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .funding-stats {
        justify-content: space-between;
        gap: 20px;
    }

    .funding-percentage {
        text-align: center;
    }

    .stat-amount {
        font-size: 12px;
    }

    .percentage-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .funding-progress {
        padding: 20px;
    }

    .funding-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-amount {
        font-size: 10px;
    }

    .percentage-value {
        font-size: 12px;
    }

    .progress-track {
        height: 16px;
    }

    .progress-thumb {
        width: 30px;
        height: 30px;
    }

    .progress-thumb::before {
        width: 12px;
        height: 12px;
    }
}



.slider-container {
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.sidebar-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-item.active {
    background: linear-gradient(135deg, #00dfdf 0%, #28bdb5 100%);
    border-color: #07cebd;
    box-shadow: 0 5px 20px rgba(102, 203, 234, 0.4);
}

.sidebar-item.active .item-title {
    color: white;
}

.item-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.main-display {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 500px;
    background: #f8f9fa;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-image {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.slide-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    line-height: 1.6;
    text-decoration: none;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(135deg, #00dfdf 0%, #28bdb5 100%);
    width: 0%;
    transition: width 0.1s linear;
}

/* Responsive Design */
@media (max-width: 968px) {
    .slider-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar {
        display: none;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .sidebar-item {
        min-width: 200px;
    }

    .main-display {
        height: 400px;
    }

    .slide-title {
        font-size: 24px;
    }

    .slide-description {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .slider-container {
        padding: 20px;
    }

    .sidebar-item {
        min-width: 150px;
        padding: 10px;
    }

    .item-icon {
        width: 40px;
        height: 40px;
    }

    .item-title {
        font-size: 14px;
    }

    .main-display {
        height: 350px;
    }

    .slide {
        padding: 20px;
        height: fit-content;
    }

    .slide-image {
        width: 150px;
        height: 150px;
    }

    .slide-title {
        font-size: 20px;
    }

    .slide-description {
        font-size: 14px;
    }
}

/* Scrollbar styling for sidebar */
.sidebar::-webkit-scrollbar {
    height: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #66ead8;
    border-radius: 10px;
}

.btn-slide{
    width: 70%;
    text-decoration: none;
    margin-top: 10px;
    background: linear-gradient(135deg,rgb(104, 0, 223) 0%, #28bdb5 100%);
    color: white;
    border-radius: 16px;
    padding:2px 10px   2px 10px;

}










/* Project Card */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-card.featured {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.project-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #66ead4, #4ba281);

    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card.featured:hover::before {
    opacity: 1;
}

/* Card Image */
.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.project-card:hover .card-image::after {
    background: rgba(0, 0, 0, 0.2);
}

/* Badge */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
}

.badge.urgent {
    background: rgba(255, 107, 107, 0.9);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.badge.hot {
    background: rgba(250, 177, 60, 0.9);
    color: white;
    box-shadow: 0 4px 15px rgba(250, 177, 60, 0.4);
}

.badge.new {
    background: rgba(88, 214, 141, 0.9);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 214, 141, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Card Content */
.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-content p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #66ead4 0%, #4ba281 50%, #93fbf2 100%);
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(5px);
}

/* Progress Info */
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.progress-info span:first-child {
    font-weight: 600;
    color: #667eea;
}

/* Contribute Button */
.btn-contribute {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-contribute::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-contribute:hover::before {
    width: 300px;
    height: 300px;
}

.btn-contribute:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-contribute:active {
    transform: translateY(0);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #667eea;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.dot.active {
    background: #667eea;
    width: 30px;
    border-radius: 6px;
}

.dot:hover:not(.active) {
    background: #95a5a6;
    transform: scale(1.2);
}

/* Empty/Error States */
.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .slide {
        min-width: 50%;
    }
    
    .slider-wrapper {
        display: flex;
        flex-wrap: nowrap;
    }
}

@media (min-width: 1024px) {
    .slide {
        min-width: 33.333%;
    }
}

@media (max-width: 767px) {
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-header h2::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .card-content h3 {
        font-size: 1.2rem;
    }
    
    .featured-section {
        padding: 40px 0;
    }
}

/* Touch/Swipe Support Indicators */
.slider-container {
    touch-action: pan-y;
    user-select: none;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide {
    animation: fadeIn 0.6s ease-out;
}

/* Tabs */
.tabs-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);

}

.tabs-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #E2E8F0;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* خودکار واکنش‌گرا */
    gap: 20px; /* فاصله بین کارت‌ها */
    justify-content: center; /* وسط‌چین شدن کل شبکه */
    align-items: start;
    margin: 0 auto; /* وسط‌چین در ستون صفحه */
    padding: 20px;
    justify-items: center;
}

.category-card {
    background-image: url(../img/btnbox1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    width: 220px;
    height: 220px;
    text-decoration: none;
}

.category-card:hover {
    background-image: url(../img/btnbox2.png);

    transform: translateY(-8px);
}


.category-card.active {
    background-image: url(../img/btnbox2.png);
    color: #38B2AC;

}
.category-card.active h3 {
    color: #38B2AC;

}

.category-card.high-demand {
    background: linear-gradient(135deg, #FFF5F5 0%, #a1fff6 100%);
}

.category-card.special {
    background: linear-gradient(135deg, #E6FFFA 0%, #B2F5EA 100%);
}

.category-card.occasion {
    background: linear-gradient(135deg, #FFFFF0 0%, #FEFCBF 100%);
}

.category-icon {
    background-image: url(../img/icon_box1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    font-size: 40px;
    margin-bottom: 15px;
    padding: 30px;
    display: flex;
    justify-content:center;
    align-items: center;
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
}

.demand-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF6B6B;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Subsections */
.subsection-title {
    font-size: 22px;
    color: var(--text-dark);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    border-radius: var(--border-radius);
}

.coming-soon-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.coming-soon h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.coming-soon p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 10px;
}

.coming-soon .note {
    color: var(--primary-color);
    font-weight: 600;
}

/* Community Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.post-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-info h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.post-time {
    font-size: 12px;
    color: var(--text-light);
}

.level-badge-small {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.level-badge-small.silver {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8);
    color: #2D3748;
}

.level-badge-small.bronze {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: white;
}

.post-content {
    margin-bottom: 15px;
}

.post-content p {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.7;
}

.post-image {
    margin-top: 15px;
}

.post-footer {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #E2E8F0;
}

.post-action {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-action:hover {
    color: var(--primary-color);
}

/* Organizations */
.orgs-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.org-card {
 
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
   
    transition: var(--transition);
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.org-logo img{
    background-color: white;
    padding: 10px;
width: 100px;
height: 100px;
border-radius: 50%;
margin-bottom: 5px;

}

.org-card h4 {
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.org-card p {
    color: var(--text-light);
    font-size: 10px;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    color: white;
    position: relative;
    margin-top: 80px;
    padding: 60px 0 30px;
}

.islamic-pattern-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px);
    opacity: 0.5;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-slogan {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width:1200px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0px;
        right: -100%;
        width: 300px;
        height: 100vh;
        flex-direction: column;
        transition: right 0.3s ease;
        overflow-y: auto;
        border-radius: 0;
    }
    .nav-menu .logo{
        display: flex;
     }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .menu-list {
        flex-direction: column;
        width: 100%;
    }
    
    .menu-list a {
        width: 100%;
        padding: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
 
    
    .section-title {
        font-size: 24px;
    }
    
    
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
 
    
    .tabs-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    .row_box{
        width: 100%;
       flex-direction: column;
       flex-direction:column-reverse;
    }

    .col_box30{

        width: 100%;
    }
    .col_box70{
    
        width: 100%;
    }
    .col_box50{
    
        width: 100%;
    }
    .mokaup{
        width: 300px;
    }
    .main-header {
      
        height: fit-content;
    }
}
@media (max-width: 720px) {
    .stats-row {
        
        grid-template-columns: repeat(3, 1fr);
      
    }

    .category-card {
      
        width: 150px;
        height: 150px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    .category-card h3 {
        font-size: 12px;
        margin-bottom: 8px;
        color: var(--text-dark);
    }
}

@media (max-width: 480px) {
    .stats-row {
        
        grid-template-columns: repeat(3, 1fr);
      
    }
    .hero-title {
        font-size: 26px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .stat-number {
        font-size: 14px;
    }
    .box_download img{
        width: 300px;
    }
    .box_download a{
       top: 27%;
    }

    
}


@media (max-width: 320px) {
    .stats-row {
        
        grid-template-columns: repeat(1, 1fr);
      
    }
    .categories-grid {
        grid-template-columns: repeat(1, 1fr);
      }

    
}
