/**
 * Shakerin Astra - Homepage Styles
 */

/* ============================================
   Section Padding
   ============================================ */
.section-padding {
    padding: var(--spacing-xxl) 0;
}

.section-part {
    padding: var(--spacing-xxl) 0;
    margin-bottom: 0;
}

.section-part + .section-part {
    margin-top: 0;
}

.activities-section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.about-section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.cta-section {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.volunteer-section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.posts-section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.faq-section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.supporters-section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

@media (max-width: 767px) {
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    
    .section-part {
        padding: var(--spacing-xl) 0;
    }
    
    .activities-section,
    .about-section,
    .volunteer-section,
    .posts-section,
    .faq-section,
    .supporters-section {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.section-more {
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    transition: var(--transition);
}

.section-more:hover {
    color: var(--color-primary-dark);
    gap: var(--spacing-sm);
}

@media (max-width: 767px) {
    .section-title {
        font-size: 24px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: var(--color-white);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
}

.btn-hero {
    background: linear-gradient(135deg, var(--color-danger), #B91C1C);
    color: var(--color-white);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(220, 38, 38, 0.3);
    color: var(--color-white);
}

@media (max-width: 767px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .btn-hero {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
}

/* ============================================
   Activities Section
   ============================================ */
.activities-slider .activity-item {
    padding: 0 var(--spacing-sm);
}

.activity-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.activity-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.activity-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: var(--transition);
}

.activity-card:hover .activity-overlay {
    transform: translateY(0);
}

.activity-title {
    color: var(--color-white);
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: 1.5;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    padding: var(--spacing-lg);
}

.about-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-xl);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

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

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 991px) {
    .about-content {
        margin-bottom: var(--spacing-xl);
    }
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
}

.cta-section.section-padding {
    padding-top: calc(var(--spacing-xxl) * 0.67) !important; /* دو سوم ارتفاع قبلی */
    padding-bottom: calc(var(--spacing-xxl) * 0.67) !important; /* دو سوم ارتفاع قبلی */
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.cta-text {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: calc(var(--spacing-md) * 0.5) calc(var(--spacing-xl) * 0.5); /* نصف ارتفاع قبلی */
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    flex-direction: row-reverse; /* در RTL: آیکن سمت راست (چپ بصری) */
}

.btn-cta-text {
    order: 2; /* متن بعد از آیکن */
}

.btn-cta i {
    order: 1; /* آیکن قبل از متن */
}

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

.btn-cta-primary:hover {
    background-color: #B91C1C;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

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

.btn-cta-secondary:hover {
    background-color: var(--color-gray-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--color-primary);
}

@media (max-width: 767px) {
    .cta-title {
        font-size: 24px;
    }
    
    .cta-text {
        font-size: var(--font-size-base);
    }
    
    .btn-cta {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
}

/* ============================================
   Volunteer Section
   ============================================ */
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    position: relative;
}

.volunteer-image-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.volunteer-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(100%);
}

.volunteer-image-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.volunteer-content {
    padding: var(--spacing-lg);
}

.volunteer-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-xl);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-secondary), #059669);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

@media (max-width: 991px) {
    .volunteer-content {
        margin-top: var(--spacing-xl);
    }
}

/* ============================================
   Posts Section
   ============================================ */
.posts-slider .post-item {
    padding: 0 var(--spacing-sm);
}

.post-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.post-title a {
    color: var(--color-gray-dark);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.post-link {
    color: var(--color-danger);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition);
}

.post-link:hover {
    gap: var(--spacing-sm);
    color: #B91C1C;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--color-gray-light);
}

.faq-question h4 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.faq-icon {
    font-size: 24px;
    color: var(--color-primary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 var(--spacing-lg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--spacing-lg) var(--spacing-md);
}

.faq-answer p {
    color: var(--color-gray-dark);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   Supporters Section
   ============================================ */
.supporters-slider .supporter-item {
    padding: 0 var(--spacing-md);
}

.supporter-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border-radius: 8px;
    padding: var(--spacing-md);
    height: 120px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.supporter-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.supporter-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.supporter-logo:hover img {
    filter: grayscale(0%);
}

/* ============================================
   Owl Carousel Customization
   ============================================ */
.owl-carousel {
    position: relative;
}

.owl-carousel .owl-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.owl-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
    cursor: pointer;
}

.owl-carousel .owl-nav button:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.1);
}

.owl-carousel .owl-nav button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.owl-carousel .owl-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-gray);
    border: none;
    transition: var(--transition);
    cursor: pointer;
    padding: 0;
}

.owl-carousel .owl-dots button.active {
    background-color: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .owl-carousel .owl-nav {
        margin-top: var(--spacing-md);
    }
    
    .owl-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ============================================
   Section Title with Line
   ============================================ */
.section-title.has-line {
    position: relative;
    z-index: 0;
    padding-bottom: var(--spacing-md);
}

.section-title.has-line > strong {
    background: var(--color-white);
    padding: 0.25rem 1rem;
    position: relative;
    z-index: 1;
}

.section-title.has-line::after,
.section-title.has-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    z-index: 0;
}

.section-title.has-line::before {
    background: linear-gradient(to left, transparent, var(--color-primary), transparent);
}

.section-title.has-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title.has-more .f-1 {
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.section-title.has-more .f-1:hover {
    color: var(--color-primary-dark);
    gap: var(--spacing-sm);
}

/* ============================================
   Post Slider Styles
   ============================================ */
.post-slider .owl-stage {
    display: flex;
    align-items: stretch;
}

.post-slider .owl-item {
    display: flex;
    height: 100%;
}

.post-slider .item {
    padding: 1.5rem 0.75rem;
    width: 100%;
}

.post-slider .post {
    display: block;
    text-align: start;
    background: var(--color-white);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.post-slider .post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-slider .post .post-img {
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: block;
}

.post-slider .post .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: inherit;
}

.post-slider .post:hover .post-img > img {
    transform: scale(1.1);
}

.post-slider .post .post-title {
    position: absolute;
    z-index: 2;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    padding: 10px 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.5s;
    height: 50px;
    display: flex;
    align-items: center;
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.4;
}

.post-slider .post .post-img:hover .post-title {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    height: auto;
    min-height: 50px;
    padding: 15px;
}

/* ============================================
   About Section - In One Look
   ============================================ */
.about-section .section-content {
    margin-top: 1rem;
}

.about-section-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

.about-inner-wrapper {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.about-section .bg-light {
    background-color: var(--color-gray-light) !important;
}

.about-section .about-text-box {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    background: var(--color-white);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-section .text-justify {
    text-align: justify;
}

.about-section .lh-2 {
    line-height: 2;
}

.about-section .max-line {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.about-section .max-10 {
    max-height: none;
}

.about-section .d-block {
    display: block;
    margin-bottom: var(--spacing-sm);
}

.about-section .btn-outline-danger {
    color: var(--color-danger);
    border-color: var(--color-danger);
    background: transparent;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.about-section .btn-outline-danger:hover {
    background: var(--color-danger);
    color: var(--color-white);
}

.about-section .about-more-btn-wrapper {
    text-align: left; /* در RTL: سمت چپ */
    padding: 0;
    margin-top: var(--spacing-md);
}

/* ============================================
   Plyr Replaced Slider (About Image Slider)
   ============================================ */
.about-section .plyrReplacedSlider.owl-carousel {
    padding: 0;
    height: 400px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.about-section .plyrReplacedSlider .owl-stage-outer {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.about-section .plyrReplacedSlider .owl-stage {
    display: flex;
    height: 100%;
}

.about-section .plyrReplacedSlider .owl-item {
    display: flex;
    height: 100%;
    width: 100%;
}

.about-section .plyrReplacedSlider .item {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.about-section .plyrReplacedSlider .item img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.about-section .about-content-row {
    min-height: 400px;
    display: flex;
    flex-direction: row-reverse; /* معکوس کردن ترتیب: تصویر سمت چپ (بصری)، متن سمت راست (بصری) */
    align-items: center; /* قرار دادن هر دو ستون در وسط عمودی */
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.about-section .about-image-col {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 50%;
    flex: 0 0 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center; /* قرار دادن اسلایدر در وسط عمودی */
    flex-direction: column; /* برای قرار دادن محتوا به صورت عمودی */
}

.about-section .about-image-col > .row {
    width: 100%;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.about-section .about-image-col .col-12 {
    width: 100%;
    padding: 0;
}

.about-section .about-image-col .plyrReplacedSlider {
    width: 100%;
    position: relative;
}

.about-section .about-text-col {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 50%;
    flex: 0 0 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center; /* قرار دادن کادر متن در وسط عمودی */
}

.about-section .about-text-box {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .about-section .about-content-row {
        flex-direction: column; /* در موبایل: تصویر بالا، متن پایین */
    }
    
    .about-section .about-image-col {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .about-section .about-text-col {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .about-section .about-text-box {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 991px) {
    .about-section .col-lg-6 {
        margin-bottom: var(--spacing-xl);
    }
    
    .about-section .about-text-box {
        min-height: auto;
    }
    
    .about-section .plyrReplacedSlider .item {
        min-height: 300px;
    }
}

