/**
 * About Section Styles
 *
 * @package Avraham_Theme
 */

/* ==========================================================================
   About Section Base
   ========================================================================== */

   .about-section {
    position: relative;
    padding: var(--space-16) 0;
    background-color: #FEF6F0;
}

/* Background Color Variants */
.about-section.about-bg-white {
    background-color: var(--color-white);
}

.about-section.about-bg-light {
    background-color: var(--color-gray-50);
}

.about-section.about-bg-cream {
    background-color: #FAF2ED;
}

.about-section.about-bg-primary {
    background-color: #153C6D;
}

.about-section.about-bg-primary .about-title,
.about-section.about-bg-primary .about-subtitle,
.about-section.about-bg-primary .about-description {
    color: var(--color-white);
}

/* Container - Two columns 50/50 */
.about-container {
    width: 100%;
    max-width: var(--container-3xl);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6rem;
}

/* ==========================================================================
   About Content (Right Side in RTL) - 50% width
   ========================================================================== */

.about-content {
    flex: 0 0 47%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Title - Black color */
.about-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
    line-height: var(--leading-tight);
}

/* Subtitle */
.about-subtitle {
    display: block;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-gray-600);
    margin-bottom: var(--space-2);
}

/* Description */
.about-description {
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-gray-800);
    line-height: var(--leading-relaxed);
}

.about-description p {
    margin-bottom: var(--space-4);
}

.about-description p:last-child {
    margin-bottom: 0;
}

/* Extended Description (Hidden by default) */
.about-extended-description {
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-gray-800);
    line-height: var(--leading-relaxed);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.about-extended-description p {
    margin-bottom: var(--space-4);
}

.about-extended-description p:last-child {
    margin-bottom: 0;
}

/* Expanded State */
.about-section.expanded .about-extended-description {
    max-height: 1000px;
    opacity: 1;
    margin-top: var(--space-4);
}

/* ==========================================================================
   Read More Button / Link - border-radius 100px
   ========================================================================== */

.about-read-more-btn,
.about-read-more-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background-color: #153C6D;
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: var(--space-4);
    width: fit-content;
}

.about-read-more-btn:hover,
.about-read-more-link:hover {
    background-color: #0e2a4d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-white);
}

/* Read More/Less Text Toggle */
.about-read-more-btn .read-less-text {
    display: none;
}

.about-section.expanded .about-read-more-btn .read-more-text {
    display: none;
}

.about-section.expanded .about-read-more-btn .read-less-text {
    display: inline;
}

/* Icon rotation on expand */
.about-read-more-btn .read-more-icon {
    transition: transform var(--transition-base);
}

.about-section.expanded .about-read-more-btn .read-more-icon {
    transform: rotate(180deg);
}

/* Link icon (arrow) */
.about-read-more-link .read-more-icon {
    transform: scaleX(-1); /* RTL flip */
}

/* ==========================================================================
   About Image - 50% width, bigger
   ========================================================================== */

/* Desktop Image (Left Side) - 50% */
.about-image-desktop {
    flex: 0 0 50%;
    max-width: 42%;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-image-desktop.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.about-image-desktop img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Mobile Image (Hidden on Desktop) */
.about-image-mobile {
    display: none;
    order: 2;
}

.about-image-mobile img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .about-section {
        padding: var(--space-12) 0;
    }
    
    .about-container {
        gap: var(--space-6);
    }
    
    .about-title {
        font-size: var(--text-2xl);
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    .about-section {
        padding: var(--space-10) 0;
    }
    
    .about-container {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    /* Hide desktop image */
    .about-image-desktop {
        display: none;
    }
    
    /* Show mobile image - bigger */
    .about-image-mobile {
        display: flex;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .about-content {
        flex: 1;
        max-width: 100%;
        text-align: center;
        align-items: center;
    }
    
    /* Reorder for mobile: Title (1) -> Image (2) -> Subtitle (3) -> Description (4) -> Extended (5) -> Button (6) */
    .about-title {
        order: 1;
        font-size: var(--text-2xl);
    }
    
    .about-image-mobile {
        order: 2;
        margin-top: var(--space-4);
        margin-bottom: var(--space-4);
    }
    
    .about-subtitle {
        order: 3;
        margin-bottom: 0;
    }
    
    .about-description {
        order: 4;
    }
    
    .about-extended-description {
        order: 5;
    }
    
    .about-read-more-btn,
    .about-read-more-link {
        order: 6;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .about-section {
        padding: var(--space-8) 0;
    }
    
    .about-container {
        padding: 0 var(--space-4);
    }
    
    .about-title {
        font-size: var(--text-xl);
    }
    
    .about-subtitle {
        font-size: var(--text-sm);
    }
    
    .about-description,
    .about-extended-description {
        font-size: var(--text-sm);
    }
    
    .about-image-mobile {
        max-width: 100%;
    }
    
    .about-read-more-btn,
    .about-read-more-link {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-sm);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .about-section {
        padding: var(--space-6) 0;
    }
    
    .about-container {
        padding: 0 var(--space-3);
    }
    
    .about-title {
        font-size: var(--text-lg);
    }
    
    .about-image-mobile {
        max-width: 100%;
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .about-content,
    .about-image-desktop {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .about-extended-description {
        transition: none;
    }
    
    .about-read-more-btn:hover,
    .about-read-more-link:hover {
        transform: none;
    }
}
.page-id-521 .about-container {

    flex-direction: row-reverse;
}
.page-id-521  .about-title {
    display: none;;
}
.about-section.about-bg-cream {
    background-color: #FEF6F0;
}
@media (max-width: 1024px) {
.page-id-521 .page-intro {
    text-align: center;
    padding: 55px var(--container-padding) 23px;
}
}
.page-template-page-blog-php  #blog-page{
    background: #FEF6F0;
}