/**
 * About Page Styles (Про нас)
 * Modern card-based design
 */

/* ===================================
   BASE STYLES
   =================================== */

.about-page {
    position: relative;
    width: 100%;
    background: var(--color-bg, #F9F6F0);
    padding: 0;
}

.site-main.about-page {
    margin-bottom: 0 !important;
}

body.page-about-template .footer-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-about-template #page {
    padding: 0 40px;
    box-sizing: border-box;
}

.about-page .container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible !important;
}

/* Allow image to overflow outside containers */
body.page-about-template,
body.page-about-template #page,
body.page-about-template .site-main,
body.page-about-template .about-content {
    overflow: visible !important;
}

/* ===================================
   ARTICLE & HEADER
   =================================== */

.about-page .about-article {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.about-page .about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-page .about-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: var(--color-black, #1A1A1A);
    margin: 0 0 15px 0;
}

.about-page .about-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
}

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

.about-page .about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-page .about-hero__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-page .about-hero__text p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-black, #1A1A1A);
    margin: 0;
}

.about-page .about-hero__text p strong {
    color: #80C242;
    font-weight: 600;
}

.about-page .about-hero__image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.about-page .about-hero__image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* ===================================
   FEATURES GRID
   =================================== */

.about-page .about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.about-page .about-feature {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-page .about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(128, 194, 66, 0.15);
}

.about-page .about-feature__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #80C242 0%, #6BA832 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(128, 194, 66, 0.3);
}

.about-page .about-feature__title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: var(--color-black, #1A1A1A);
    margin: 0 0 12px 0;
}

.about-page .about-feature__text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
}

/* ===================================
   CTA SECTION
   =================================== */

.about-page .about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 50px;
    background: linear-gradient(135deg, #80C242 0%, #6BA832 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(128, 194, 66, 0.3);
}

.about-page .about-cta__content {
    flex: 1;
}

.about-page .about-cta__title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 8px 0;
}

.about-page .about-cta__text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.about-page .about-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #FFFFFF;
    color: #80C242;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.about-page .about-cta__btn:hover {
    background: #FFEAC4;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

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

.about-page .about-hero {
    animation: fadeInUp 0.6s ease both;
}

.about-page .about-feature {
    animation: fadeInUp 0.6s ease both;
}

.about-page .about-feature:nth-child(1) { animation-delay: 0.1s; }
.about-page .about-feature:nth-child(2) { animation-delay: 0.2s; }
.about-page .about-feature:nth-child(3) { animation-delay: 0.3s; }
.about-page .about-feature:nth-child(4) { animation-delay: 0.4s; }

.about-page .about-cta {
    animation: fadeInUp 0.6s ease 0.5s both;
}

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

@media (max-width: 1200px) {
    body.page-about-template #page {
        padding: 0 30px;
    }

    .about-page .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    body.page-about-template #page {
        padding: 0 20px;
    }

    .about-page .about-article {
        padding: 30px 0 50px;
    }

    .about-page .about-title {
        font-size: 40px;
    }

    .about-page .about-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .about-page .about-hero__image img {
        height: 250px;
    }

    .about-page .about-cta {
        flex-direction: column;
        text-align: center;
        padding: 35px 30px;
    }

    .about-page .about-cta__content {
        text-align: center;
    }

    .about-page .about-cta__title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    body.page-about-template #page {
        padding: 0 15px;
    }

    .about-page .container {
        padding: 0 10px;
    }

    .about-page .about-header {
        margin-bottom: 30px;
    }

    .about-page .about-title {
        font-size: 32px;
    }

    .about-page .about-subtitle {
        font-size: 16px;
    }

    .about-page .about-hero {
        padding: 24px;
        margin-bottom: 40px;
    }

    .about-page .about-hero__text p {
        font-size: 16px;
    }

    .about-page .about-hero__image img {
        height: 200px;
    }

    .about-page .about-features {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .about-page .about-feature {
        padding: 24px 16px;
    }

    .about-page .about-feature__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .about-page .about-feature__icon svg {
        width: 28px;
        height: 28px;
    }

    .about-page .about-feature__title {
        font-size: 17px;
    }

    .about-page .about-feature__text {
        font-size: 14px;
    }

    .about-page .about-cta {
        padding: 28px 20px;
        border-radius: 20px;
        gap: 20px;
    }

    .about-page .about-cta__title {
        font-size: 24px;
    }

    .about-page .about-cta__text {
        font-size: 14px;
    }

    .about-page .about-cta__btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body.page-about-template #page {
        padding: 0 10px;
    }

    .about-page .about-article {
        padding: 20px 0 40px;
    }

    .about-page .about-header {
        margin-bottom: 24px;
    }

    .about-page .about-title {
        font-size: 28px;
    }

    .about-page .about-subtitle {
        font-size: 15px;
    }

    .about-page .about-hero {
        padding: 20px;
        gap: 20px;
        margin-bottom: 30px;
        border-radius: 16px;
    }

    .about-page .about-hero__text p {
        font-size: 15px;
    }

    .about-page .about-hero__image img {
        height: 180px;
        border-radius: 12px;
    }

    .about-page .about-features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }

    .about-page .about-feature {
        padding: 20px;
        border-radius: 16px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .about-page .about-feature__icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin: 0;
    }

    .about-page .about-feature__icon svg {
        width: 24px;
        height: 24px;
    }

    .about-page .about-feature__content {
        flex: 1;
    }

    .about-page .about-feature__title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .about-page .about-feature__text {
        font-size: 13px;
    }

    .about-page .about-cta {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .about-page .about-cta__title {
        font-size: 20px;
    }

    .about-page .about-cta__text {
        font-size: 13px;
    }

    .about-page .about-cta__btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ===================================
   TEXT SECTION - WordPress Content
   =================================== */

.about-page .about-text-section {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease both;
    overflow: visible !important;
}

.about-page .about-text-section p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: #555555;
    margin: 0 0 20px 0;
}

.about-page .about-text-section p:last-child {
    margin-bottom: 0;
}

.about-page .about-text-section strong {
    font-weight: 700;
    color: #80C242;
}

.about-page .about-text-section h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
    color: var(--color-black, #1A1A1A);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #80C242;
    display: inline-block;
}

.about-page .about-text-section h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: var(--color-black, #1A1A1A);
    margin: 30px 0 16px 0;
}

/* Image in WordPress content - rotated */
.about-page .about-text-section img {
    transform: rotate(90deg) !important;
    transform-origin: center center !important;
    max-width: 300px !important;
    height: auto !important;
    display: block !important;
    margin: 70px auto 70px auto !important;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15)) !important;
    position: relative;
    z-index: 10;
}

/* ===================================
   FLOATING IMAGE SECTION
   =================================== */

body.page-about-template .about-floating-image {
    position: relative;
    width: 100%;
    margin-top: -20px;
    padding-bottom: 0;
    overflow: visible;
    z-index: 5;
}

body.page-about-template .about-floating-image__wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 400px;
    margin-bottom: -150px; /* Overlaps with footer */
}

body.page-about-template .about-floating-image__wrapper img,
body.page-about-template .about-floating-image__wrapper .wp-post-image {
    transform: rotate(90deg) !important;
    transform-origin: center center !important;
    max-width: 500px !important;
    height: auto !important;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15)) !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Footer adjustment for seamless effect */
body.page-about-template .footer-section {
    position: relative;
    z-index: 1;
    padding-top: 180px !important;
    margin-top: 0 !important;
}

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

.about-page .about-cta__btn:focus {
    outline: 3px solid #FFFFFF;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .about-page .about-hero,
    .about-page .about-feature,
    .about-page .about-cta,
    .about-page .about-text-section {
        animation: none;
    }

    .about-page .about-feature,
    .about-page .about-cta__btn {
        transition: none;
    }
}

/* ===================================
   RESPONSIVE - FLOATING IMAGE
   =================================== */

@media (max-width: 1024px) {
    .about-floating-image__wrapper {
        min-height: 350px;
        margin-bottom: -120px;
    }

    .about-floating-image__wrapper img {
        max-width: 400px;
    }

    body.page-about-template .footer-section {
        padding-top: 150px !important;
    }
}

@media (max-width: 768px) {
    .about-page .about-text-section {
        padding: 35px 25px;
        border-radius: 20px;
        margin-bottom: 40px;
    }

    .about-page .about-text-section p {
        font-size: 16px;
    }

    .about-page .about-text-section h2 {
        font-size: 26px;
    }

    .about-floating-image__wrapper {
        min-height: 300px;
        margin-bottom: -100px;
    }

    .about-floating-image__wrapper img {
        max-width: 320px;
    }

    body.page-about-template .footer-section {
        padding-top: 130px !important;
    }
}

@media (max-width: 480px) {
    .about-page .about-text-section {
        padding: 25px 20px;
        border-radius: 16px;
        margin-bottom: 30px;
    }

    .about-page .about-text-section p {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-page .about-text-section h2 {
        font-size: 22px;
    }

    .about-page .about-text-section h3 {
        font-size: 18px;
    }

    .about-floating-image__wrapper {
        min-height: 250px;
        margin-bottom: -80px;
    }

    .about-floating-image__wrapper img {
        max-width: 250px;
    }

    body.page-about-template .footer-section {
        padding-top: 110px !important;
    }
}
