/*
Theme Name: ApricotSpace
Theme URI: https://example.com/apricotspace
Author: Your Name
Author URI: https://example.com
Description: A minimal starter theme for WordPress with contact form functionality.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: apricotspace
*/

/* Base styles */


:root {
    --primary: #80CC42;
    --secondary: #787878;
    --tertiary: #707070;
    --black: #070707;
    --warn: #FF0000;
    --white: #FFFFFF;
    --btn-bg: #3F8D00;
    --shadow: 0px 1px 6px rgba(0, 0, 0, 0.52);
}

ul li,
ol li {
    list-style-type: none;
}

.relative{position: relative !important;}

h1 {
    font-size: 40px;
}

.max-heigth{
    max-height: fit-content;
}

.roboto-regular,
body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
}

.roboto-medium {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.sr-only {
    position: absolute;
    margin: -1px;
    padding: 0;
    height: 1px;
    width: 1px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    border: 0;
}

/* .d-none {
    display: none !important;
} */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.page-box {
    max-width: 100px;
    width: 100%;
    /* min-height: 756px; */
    max-height: 800px;
    height: 98vh;
    margin: auto;
    display: flex;
    /* justify-content: center; */
    /* align-items: baseline; */
}

.cotent {
    max-width: 1500px;
    padding: 30px 32px;
    width: 100%;
    height: 73vh !important;
    display: flex;
    justify-content: center;
    align-items: center;
}


.page-box-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 98vh;
    display: none;
}

.page-box-bg--desktop {
    display: block;
    max-height: inherit;

}

.header {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}



.about-us .text {
    margin-left: -15px;
}



.about-content p {
    font-size: 18px;
    line-height: 1.5;
    margin: 20px 0;
    word-break: break-word;
}

.logo {
    width: 148px;
    height: 150px;
    object-fit: contain;
}

.logo-mob {
    display: none;
}

.logo-wr {
    margin: 40px 50px 0 -20px;
}

.logo-wr::before {
    content: "";
    display: block;
    width: 90px;
    height: 373px;
    background-image: url("./img/globe-lines.svg") !important;
    background-position:  center;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    position: absolute;
    left: calc(100% - 26px);
    top: -83%;
}

/* curve lines */
.curve-lines {
    max-width: 720px;
    min-width: 525px;
    width: 100%;
    height: auto;
    max-height: 575px;
    object-fit: cover;
}

.curve-lines-mob {
    display: none;
}

.curve-lines__text {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.16);
    background-color: var(--white);
    font-size: 12px;
    line-height: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--secondary);
    padding: 8px 20px;
}

.curve-lines__text-1 {
    top: 10px;
    left: 33%;
}

.curve-lines__text-2 {
    top: 23%;
    left: 56%;
}

.curve-lines__text-3 {
    top: 42%;
    left: 1%;
}

.curve-lines__text-4 {
    top: 57%;
    left: 22%;
}

.curve-lines__text-5 {
    top: 75%;
    left: 66%;
}

.label__text {
    font-size: 16px;
    margin-bottom: 5px;
}

.form-control {
    border: 1px solid var(--tertiary);
    background: none;
    border-radius: 2px;
    color: var(--black);
    font-size: 16px;
    padding: 10px 16px;
    display: block;
    width: 100%;
    font-family: inherit;
    outline: none;
}

.form-control:disabled {
    color: var(--tertiary);
    pointer-events: none;
}

.form-control::placeholder {
    font-size: inherit;
    opacity: 0.4;
}

.form-control::-moz-placeholder {
    font-size: inherit;
    opacity: 0.4;
}

.error {
    color: var(--warn);
    font-size: 13px;
    position: absolute;
    top: 100%;
    left: 0;
}

.textarea {
    height: 71px;
    resize: none;
}

.textarea-wr::before {
    content: "";
    background: url("./img/icons/resize.svg") center/cover no-repeat;
    display: block;
    width: 15px;
    height: 15px;
    position: absolute;
    right: 5px;
    bottom: 5px;
}

.form__file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    padding-left: 38px;
}

.form__file .icon {
    width: 26px;
    height: 26px;
    position: absolute;
    left: 6px;
}

.form__file-text {
    color: var(--tertiary);
}

.form__files {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form__files-item,
.form__files-name-wr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.form__files-name {
    word-break: break-word;
}

.form__files-item .icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.form__files-item .file-delete {
    cursor: pointer;
}

.form__submit {
    width: auto;
    margin: 0 auto;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 500;
}

.form__submit:not(:disabled) {
    cursor: pointer;
    pointer-events: auto;
    background-color: var(--btn-bg);
    color: var(--white);
    border: none;
}


.social-links__item-wr {
    list-style-type: none;
}

.social-links__item {
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 43px;
    height: 43px;
    box-shadow: 0px 1px 13px rgba(0, 0, 0, 0.39);
    padding: 7px;
    border-radius: 9px;
}

.social-links__item .icon {
    width: auto;
    max-width: 28px;
    height: 26px;
    display: block;
}

/* Request Button */
.request-btn-wr {
    display: none;
}

.request-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 12px;
    width: 100%;
    font-size: 19px;
    font-family: inherit;
    letter-spacing: 1.52px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: var(--btn-bg);
    border-radius: 12px;
    border: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.52);
    cursor: pointer;
}

/* Blog Layout */
.blog-layout {
    display: flex;
    gap: 32px;
    margin: 32px 0;
    width: 100%;
    min-width: 525px;
    width: 100%;
    height: 100%;
    max-height: 717px;
    object-fit: cover;
    overflow: auto;
    padding: 10px 60px;
}
.blog-main {
    flex: 3;
    display: flex;
    flex-direction: column;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.post-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.post-thumbnail img, .post-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}
.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
.post-excerpt {
    color: #333;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    line-height: 1.5em;
    word-break: break-word;
}
.blog-pagination {
    margin: 32px 0 0 0;
}
.blog-social {
    display: flex;
    gap: 16px;
    margin: 32px 0 0 0;
    justify-content: center;
}
.social-icon {
    width: 36px;
    height: 36px;
    display: inline-block;
    background: #eaeaea;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}
.social-icon.instagram { background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/instagram.svg'); }
.social-icon.facebook { background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/facebook.svg'); }
.social-icon.linkedin { background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/linkedin.svg'); }

.blog-sidebar {
    /* padding: 24px 20px; */
    width: 25%;
    min-width: 240px;
    max-width: 380px;
    height: fit-content;
}
.sidebar-title {
    font-size: 26px;
    font-weight: 900;
    padding-bottom: 14px;
    margin-bottom: 0 !important;
}
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.category-list li {
    font-size: 1rem;
    color: #222;
    padding: 14.5px 0 12px 0;
    border-bottom: 1px solid #d2d2d2;
    font-weight: 500;
}
.category-list li:last-child {
    border-bottom: none;
}
.category-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.category-list a:hover {
    color: var(--primary);
}
@media (max-width: 900px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        margin-left: 0;
        margin-top: 32px;
        max-width: 100%;
    }
}

.content-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.primary-menu {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    gap: 3px;
}

.site-header{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    justify-self: anchor-center;
    height: auto;
    width: 100%;
    margin-top: -4px;

    
    a{
        text-decoration: none;
        color: var(--white);
        font-size: 1.30vw;
        font-weight: 500;   
        text-wrap-mode: nowrap;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}


.site-branding{
    background-image: url('./img/logo-bg-new.svg');
    width: -webkit-fill-available;
    display: flex;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    align-items: center;
    aspect-ratio: 4.7/1;
    max-width: 312px;   
}

.header-logo{
    max-height: 75%;    
}

.site-title{
   
    padding: 10px 20px;
    /* margin-bottom: 20px; */
}
.site-title--home {
    background-image: url('./img/logo-bg-active.svg'); /* Example: different background for homepage */
}

.site-branding{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 17%;
    background-position: center center;
}

.site-navigation{
    width: 83%;
}

.menu-item{
    /* border: 1px solid var(--black); */
    /* height: max-content; */
    width: -webkit-fill-available;
    display: flex;
    justify-content: center;
    padding: 10px 20px;
    /* margin-bottom: 20px; */
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('./img/menu-item-bg-new.svg');
    background-position: center center;
    align-items: center;
    aspect-ratio: 4.4/1;
    /* max-width: 312px;  */
    margin-left: -50px;
    z-index: 1;
    max-width: 24%;
}

.current-menu-item{
        background-image: url('./img/menu-item-hever-new.svg');
        }


.menu-item:last-child{
    background-image: url('./img/last-item-bg-new.svg');
    max-height: 78px;
    padding-right: 0;
}


.page-template-page-blog-archive .current-menu-item {
    background-image: url('./img/last-item-bg-new-hover.svg') !important;
}

.site-main {
    display: flex;
    align-content: center;
    height: 100%;
    width: 100%;
    /* max-height: 73vh; */
}


.main-inner {
    padding: 0px 60px;
    max-height: 74%;
    overflow: auto;
    /* justify-content: center; */
    height: -webkit-fill-available;
    width: 98%;

}

.archive .other-page-content,
.category .other-page-content{
    width: 100%;
}

.other-page-content {
    align-self: flex-start;
    height: 70vh;
    width: 100%;
    place-self: anchor-center;
    overflow: auto;
    margin: 0px 8px 30px 23px;
    padding-right: 52px;
    img {
        border-radius: 20px;
    }

    h1{
        margin-bottom: 30px;
    }   
    
    h2{
        margin-bottom: 20px;
    }
    /* flex-direction: column;
    justify-content: center; */

    p{
        line-height: 1.5; 
    }
}



.page-title{
    font-size: 40px;
    padding-bottom:30px;
}

.wp-block-media-text__content{
    padding:0 !important; 
}

.wp-block-media-text{
    gap: 18px !important;
}

p{
    font-size: 18px;
    line-height: 1.5;
}

::-webkit-scrollbar {
  width: 5px;
  height: 10px;
}

::-webkit-scrollbar-button {
  display: none;
}

::-webkit-scrollbar-thumb {
  background-color: #707070;
  border-radius: 5px;
}

::-webkit-scrollbar-track {
  background-color: #C9C9C9;
}

.about-us{
    top: 0 ;    
    left: 0.3% ;
    width: 99% ;
    gap: 5.5px;
}

.content {
    /* max-width: 1500px; */
    /* min-width: 525px; */
    width: 100%;
    /* height: 100%; */
    max-height: 717px;
    object-fit: cover;
    /* overflow: auto; */
    /* padding: 10px 50px; */
}

.blog-archive{
    display: flex;
}

/* Blog Archive Grid (for page-blog-archive.php) */
.posts-grid {
    display: flex;
    gap: 13px;
    /* margin-top: 32px; */
    article{
        width: auto;
    }
}

.blog-content{
    gap:40px;
    height: 125%;
}


.post-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    overflow: hidden;
    display: flex;
    max-width: 386px;
    flex-direction: column;
    transition: box-shadow 0.2s;
    min-height: 340px;
}
.post-item:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.16);
}
.post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.post-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
/* .post-content {
    display: flex;
    flex-direction: column;
} */
.post-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    /* Truncate to two lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3em;
    max-height: 2.6em;
    word-break: break-word;
}
.post-excerpt {
    font-size: 1rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    line-height: 1.5em;
    word-break: break-word;
}


@media (min-width: 1700px) {
    .site-header a{font-size: 0.85em;}
}



@media (min-width: 3000px) {
    .site-header a{font-size: 0.85em;}
}


@media (max-width: 1700px) {
    header{ max-width: 1700px;}
}

@media (max-width: 900px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .flex-row {
            flex-direction: column !important;
            align-items: center;
    }
}

/* Mobile navigation (burger) */
.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    width: 42px;
    height: 42px;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 1001;
}
.menu-toggle:focus { outline: 2px solid #80CC42; outline-offset: 2px; }
.menu-toggle__bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #070707;
    border-radius: 2px;
}
.menu-toggle__bar + .menu-toggle__bar { margin-top: 5px; }

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
}

@media (min-width: 670px) {
    .menu-close{
        display: none;
    }
}   

@media (max-width: 670px) {
    .menu-toggle { 
        display: flex;
        flex-direction: column;
    }
    .site-title--home{
        background: none;
    }
    .site-branding{
        width: unset;
    }

    .site-branding{
    background: none;
    }

    .site-navigation .primary-menu{
        align-items: center;
        margin-top: 70px;
        li{
            margin: 0;
        }

    }

    .accordion-header{
        font-size: 18px !important;
        padding: 10px !important;
    }

    .accordion-body{
        padding: 15px;
    }

    .other-page-content{
        margin: 0;
    }

    .page-content{
        padding: 55px 5px 75px !important;
        h1{
            font-size: 28px !important;
        }

        h2{
            font-size: 22px !important;
        }

        h3{
            font-size: 18px !important;
        }

        p{
            font-size: 16px !important;
        }
    }

    .site-header a{
        font-size: 16px !important;
    }

    .site-navigation {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: min(86vw, 360px);
        background: #FFFFFF;
        transform: translateX(100%);
        transition: transform 200ms ease-in-out;
        box-shadow: -2px 0 16px rgba(0,0,0,0.15);
        padding: 24px 20px;
        z-index: 1002;
    }
    .site-navigation.open { transform: translateX(0%); }

    /* Stack menu items vertically on mobile */
    .site-navigation .primary-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Override desktop visuals for mobile list */
    .site-navigation .menu-item {
        background-image: none !important;
        margin-left: 0;
        max-width: none;
        width: 100%;
        aspect-ratio: auto;
        justify-content: flex-start;
        padding: 12px 6px;
        border-bottom: 1px solid #eaeaea;
    }
    .site-navigation .menu-item:last-child { border-bottom: 0; }
    .site-navigation a { color: #070707; font-size: 18px; }

    /* Header layout tweaks for small screens */
    .site-header { gap: 8px; }
    .site-branding { max-width: 220px; }

    /* Close (X) button inside mobile menu */
    .menu-close {
        position: absolute;
        top: 6px;
        right: 8px;
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        color: #070707;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        border-radius: 6px;
        box-sizing: unset;
        padding: 9px;
    }
    .menu-close:focus { outline: 2px solid #80CC42; outline-offset: 2px; }
}


.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-start {
    justify-content: flex-start;
    align-items: start !important;
}

.flex-row {
    display: flex;
    flex-direction: row;
}


.blog-sidebar h2,
.blog-sidebar li {
    border-bottom: 1px solid #707070 !important;
}


.cat-item a{
    font-size: 1.04em;
}


.tags {
    margin-top: 33px;

    a{
        color: #070707;
        margin-right: 33px;
        font-size: 18px;
        font-weight: 700;
    }
}


.post-item .post-content {
    padding: 18px 18px 12px 18px;
}

.content img{border-radius: 16px;}



.first-menu-item picture{
    height: 90%;
    align-content: center;
}

.privacy-link-in-popup{
     width: 87%; 
     margin: 30px auto 0;
     /* display: none; */
}

.form-in-popup{
    display: flex;
    flex-direction: column;
}

.posts-grid{
    flex-wrap: wrap;
}

.post-item .post-thumbnail{
    min-height: 272px;
}

.posts-grid .post-item{
    min-height: 429px;
}

.single-post .content,
.archive  .content,
.category  .content {
    gap: 40px;
    /* img{
        max-height: 395px;
        max-width: 560px;
    } */
}

.wp-block-spacer{
    height: 30px !important;
}


@media (max-height: 810px) {
  .form{ padding: 25px 37px 40px !important; }
  .form__title{ margin-bottom: 29px !important; }
  .about-us { top:1% !important;}
  /* .page-box { min-height: 740px !important;} */
  /* .page-box-bg { top: -22px !important;} */
  /* .footer { bottom: 4vh !important;} */

}

@media (min-width: 1000px) and (max-width: 1300px){
    .page-box-bg {
        top: -28px !important;
        height: 98vh;
    }
}

.privacy-link{
    width: 90%;
    margin: 0 auto;
    font-size: 16px;
}


.accordion-item * {
    color: black;
}


p{
    min-height: 28px !important;
}