/**
 * About Section Styles
 *
 * @package elegant
 */

/* ========================================
   About Section
   ======================================== */
.about-section {
    position: relative;
    padding: 100px 20px;
    background: #f8f9fa;
    overflow: hidden;
}

/* Background Pattern */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(245, 166, 35, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(26, 26, 26, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* About Container */
.about-container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 1;
}

/* ========================================
   Image Side
   ======================================== */
.about-image {
    position: relative;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.about-image .image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover .image-wrapper img {
    transform: scale(1.05);
}

.about-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Placeholder */
.about-image .image-wrapper.placeholder {
    height: 500px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image .placeholder-icon {
    color: var(--primary-color, #f5a623);
    opacity: 0.3;
}

.about-image .placeholder-icon i {
    font-size: 80px;
}

/* Decorative Frame */
.about-image .image-frame {
    position: absolute;
    top: 30px;
    right: -30px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color, #f5a623);
    border-radius: 20px;
    z-index: 1;
    transition: all 0.4s ease;
}

.about-image:hover .image-frame {
    top: 20px;
    right: -20px;
}

/* RTL Frame Position */
[dir="rtl"] .about-image .image-frame {
    right: auto;
    left: -20px;
}

[dir="rtl"] .about-image:hover .image-frame {
    left: -20px;
}

/* ========================================
   Content Side
   ======================================== */
.about-content {
    padding: 20px 0;
}

/* Section Header */
.section-header {
    margin-bottom: 25px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(245, 166, 35, 0.1);
    color: var(--primary-color, #f5a623);
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color, #f5a623);
    margin-top: 15px;
    border-radius: 2px;
}

/* Subtitle */
.about-subtitle {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color, #f5a623);
    margin: 0 0 20px 0;
    padding-right: 20px;
    border-right: 3px solid var(--primary-color, #f5a623);
}

[dir="rtl"] .about-subtitle {
    padding-right: 0;
    padding-left: 20px;
    border-right: none;
    border-left: 3px solid var(--primary-color, #f5a623);
}

/* About Text */
.about-text {
    margin-bottom: 30px;
}

.about-text p {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin: 0;
}

/* ========================================
   Features List
   ======================================== */
.about-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1rem;
    color: #333;
}

.about-features li i {
    color: var(--primary-color, #f5a623);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ========================================
   About Button
   ======================================== */
.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--primary-color, #f5a623);
    color: #1a1a1a;
    text-decoration: none;
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(245, 166, 35, 0.3);
}

.about-btn:hover {
    background: #e09000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.4);
}

.about-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.about-btn:hover i {
    transform: translateX(-5px);
}

[dir="rtl"] .about-btn:hover i {
    transform: translateX(5px);
}

/* ========================================
   RTL Support
   ======================================== */
[dir="rtl"] .about-container {
    direction: rtl;
}

[dir="rtl"] .about-content {
    text-align: right;
}

[dir="rtl"] .about-features li {
    flex-direction: row;
}

[dir="rtl"] .about-btn {
    flex-direction: row;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
    .about-section {
        padding: 80px 20px;
    }
    
    .about-container {
        gap: 40px;
    }
    
    .about-image .image-wrapper img,
    .about-image .image-wrapper.placeholder {
        height: 450px;
    }
    
    .about-image .image-frame {
        top: 20px;
        right: -20px;
    }
    
    [dir="rtl"] .about-image .image-frame {
        left: -20px;
    }
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about-content {
        order: 2;
        text-align: center;
    }
    
    .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-subtitle {
        border-right: none;
        border-left: none;
        padding: 0;
        border-bottom: 3px solid var(--primary-color, #f5a623);
        display: inline-block;
        padding-bottom: 10px;
    }
    
    [dir="rtl"] .about-subtitle {
        border-left: none;
        padding-left: 0;
    }
    
    .about-features {
        align-items: right;
    }
    
    .about-features li {
        justify-content: right;
    }
    
    [dir="rtl"] .about-features li {
        flex-direction: row;
    }
    
    .about-btn {
        justify-content: center;
    }
    
    [dir="rtl"] .about-btn {
        flex-direction: row;
    }
    .about-image .image-wrapper img, .about-image .image-wrapper.placeholder{height: auto;}
    #site-navigation{display: none;}
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 20px;
    }
    
    .about-image .image-wrapper img,
    .about-image .image-wrapper.placeholder {
        height: 350px;
    }
    
    .about-image .image-frame {
        top: 15px;
        right: -15px;
    }
    
    [dir="rtl"] .about-image .image-frame {
        left: -15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 50px 15px;
    }
    
    .about-image .image-wrapper img,
    .about-image .image-wrapper.placeholder {
        height: 380px;
    }
    
    .about-image .image-frame {
        top: 10px;
        right: -10px;
        border-width: 2px;
    }
    
    [dir="rtl"] .about-image .image-frame {
        left: -10px;
    }
    
    .section-badge {
        font-size: 0.85rem;
        padding: 6px 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-title::after {
        width: 50px;
        height: 3px;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .about-features li {
        font-size: 0.95rem;
    }
    
    .about-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    .section-title::after{margin-right: 0;}
}

/* ========================================
   Animation on Scroll (optional)
   ======================================== */
.about-image,
.about-content {
    opacity: 1;
    transform: translateY(0);
}

/* If you want to add scroll animations later */
.about-section.animate .about-image {
    animation: fadeInLeft 0.8s ease forwards;
}

.about-section.animate .about-content {
    animation: fadeInRight 0.8s ease 0.2s forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[dir="rtl"] .about-section.animate .about-image {
    animation-name: fadeInRight;
}

[dir="rtl"] .about-section.animate .about-content {
    animation-name: fadeInLeft;
}

/* ========================================
   Mission & Vision Section
   ======================================== */
.mission-vision-section {
    position: relative;
    padding: 100px 20px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* Overlay */
.mv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Container */
.mv-container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: stretch;
    z-index: 2;
}

/* ========================================
   Mission/Vision Block
   ======================================== */
.mv-block {
    padding: 50px 40px;
    text-align: center;
    transition: all 0.4s ease;
}

/* Title */
.mv-title {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    position: relative;
}

/* Text */
.mv-text {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Decoration */
.mv-decoration {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.mv-decoration span {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color, #f5a623), transparent);
    border-radius: 2px;
}

/* ========================================
   Divider
   ======================================== */
.mv-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.divider-line {
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--primary-color, #f5a623), transparent);
}

.divider-icon {
    width: 50px;
    height: 50px;
    background: rgba(245, 166, 35, 0.1);
    border: 2px solid var(--primary-color, #f5a623);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.divider-icon i {
    font-size: 1.2rem;
    color: var(--primary-color, #f5a623);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(245, 166, 35, 0.2);
    }
}

/* ========================================
   RTL Support
   ======================================== */
[dir="rtl"] .mv-container {
    direction: rtl;
}

[dir="rtl"] .mv-block {
    text-align: center;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
    .mission-vision-section {
        padding: 80px 20px;
        background-attachment: scroll;
    }
    
    .mv-container {
        gap: 30px;
    }
    
    .mv-block {
        padding: 40px 30px;
    }
    
    .mv-icon {
        width: 80px;
        height: 80px;
    }
    
    .mv-icon i {
        font-size: 1.8rem;
    }
    
    .mv-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 900px) {
    .mv-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 600px;
    }
    
    .mv-divider {
        flex-direction: row;
        padding: 10px 0;
    }
    
    .divider-line {
        width: 80px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-color, #f5a623), transparent);
    }
}

@media (max-width: 768px) {
    .mission-vision-section {
        padding: 60px 20px;
    }
    
    .mv-block {
        padding: 35px 25px;
    }
    
    .mv-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
    }
    
    .mv-icon i {
        font-size: 1.5rem;
    }
    
    .mv-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .mv-text {
        font-size: 1rem;
    }
    
    .divider-icon {
        width: 45px;
        height: 45px;
    }
    
    .divider-icon i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .mission-vision-section {
        padding: 50px 15px;
    }
    
    .mv-block {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .mv-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .mv-icon i {
        font-size: 1.3rem;
    }
    
    .mv-title {
        font-size: 1.3rem;
    }
    
    .mv-text {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .mv-decoration {
        margin-top: 20px;
    }
    
    .divider-line {
        width: 50px;
    }
    
    .divider-icon {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .mission-vision-section {
        background-attachment: scroll;
    }
    
    .divider-icon {
        animation: none;
    }
    
    .mv-block:hover {
        transform: none;
    }
    
    .mv-block:hover .mv-icon {
        transform: none;
    }
}

