/*
Theme Name: Hello Child
Template: hello-elementor
Version: 1.0
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --text-main: #1f1f1f;
    --blue: #7a90a8;
    --light-blue: #b7d1e8;
    --button-blue: #6384a7;
    --bg-light: #f2f2f2;
    --white: #ffffff;

    --font-heading: 'Baskerville Display PT', 'Baskervville', 'Georgia', serif;
    --font-body: 'Avenir Next LT Pro', 'Avenir Next', 'Avenir', 'Helvetica Neue', sans-serif;
}

/* ==========================================================================
   Blog Page
   ========================================================================== */
.blog-page {
    background-color: var(--bg-light);
}

/* ==========================================================================
   Blog Hero Section
   ========================================================================== */
.blog-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(122, 144, 168, 0.4) 0%, rgba(183, 209, 232, 0.3) 100%),
                url('assets/images/Blog-hero.webp') center center / cover no-repeat;
    background-size: cover;
    background-position: center center;
}

.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(122, 144, 168, 0.3) 0%, rgba(183, 209, 232, 0.2) 100%);
}

.blog-hero__title {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 128px;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   Blog Content Layout
   ========================================================================== */
.blog-content {
    padding: 80px 0 100px;
}

.blog-content__container {
    max-width: 1370px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   Blog Posts Column
   ========================================================================== */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.blog-posts__empty {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
    text-align: center;
    padding: 40px 0;
}

/* ==========================================================================
   Blog Post Card
   ========================================================================== */
.blog-post-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 850px;
}

.blog-post-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.blog-post-card__date {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    line-height: 1;
    color: var(--blue);
}

.blog-post-card__title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}

.blog-post-card__line {
    width: 184px;
    height: 1px;
    background-color: var(--blue);
    margin-top: 8px;
}

.blog-post-card__image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.blog-post-card__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 832 / 529;
}

.blog-post-card__excerpt {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
}

.blog-post-card__excerpt p {
    margin: 0;
}

.blog-post-card__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--button-blue);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    transition: background-color 0.2s ease;
    align-self: center;
}

.blog-post-card__button:hover {
    background-color: var(--blue);
    color: var(--white);
}

.blog-post-card__button svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Blog Pagination
   ========================================================================== */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.blog-pagination__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 14px;
    color: var(--text-main);
    text-decoration: none;
}

.blog-pagination__arrow svg {
    width: 16px;
    height: 14px;
}

.blog-pagination__number {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 20px;
    color: var(--text-main);
    text-decoration: none;
    opacity: 0.5;
    padding: 0 4px;
}

.blog-pagination__number--active {
    opacity: 1;
}

.blog-pagination__number:hover {
    opacity: 1;
}

.blog-pagination__dots {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 20px;
    color: var(--text-main);
    opacity: 0.5;
    padding: 0 4px;
}

/* ==========================================================================
   Blog Sidebar
   ========================================================================== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 384px;
    flex-shrink: 0;
}

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

.blog-sidebar__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    color: var(--text-main);
    margin: 0 0 16px 0;
}

.blog-sidebar__label {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-main);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blog-sidebar__text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0 0 24px 0;
}

.blog-sidebar__social {
    display: flex;
    gap: 12px;
}

.blog-sidebar__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
}

.blog-sidebar__social svg {
    width: 30px;
    height: 30px;
}

/* ==========================================================================
   Blog Search Form
   ========================================================================== */
.blog-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-search-form__icon {
    position: absolute;
    left: 12px;
    width: 19px;
    height: 18px;
    pointer-events: none;
}

.blog-search-form__input {
    width: 100%;
    height: 39px;
    padding: 0 12px 0 44px;
    border: 1px solid var(--text-main);
    border-radius: 8px;
    background-color: transparent;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
}

.blog-search-form__input::placeholder {
    color: var(--text-main);
    opacity: 0.3;
}

.blog-search-form__input:focus {
    outline: none;
    border-color: var(--blue);
}

/* Search Autocomplete Dropdown */
.blog-search-form {
    position: relative;
}

.blog-search-form:has(.blog-search-dropdown--visible) .blog-search-form__input,
.blog-search-form--dropdown-open .blog-search-form__input {
    border-radius: 8px 8px 0 0;
}

.blog-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--text-main);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.blog-search-dropdown--visible {
    display: block;
}

.blog-search-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    border-bottom: 1px solid rgba(31, 31, 31, 0.1);
    transition: background-color 0.15s ease;
}

.blog-search-dropdown__item:last-child {
    border-bottom: none;
}

.blog-search-dropdown__item:hover,
.blog-search-dropdown__item--active {
    background-color: var(--bg-light);
}

.blog-search-dropdown__thumb {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--bg-light);
}

.blog-search-dropdown__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-search-dropdown__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-search-dropdown__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.blog-search-dropdown__title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-search-dropdown__title mark {
    background-color: var(--light-blue);
    color: var(--text-main);
    padding: 0 2px;
    border-radius: 2px;
}

.blog-search-dropdown__date {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 12px;
    color: var(--blue);
}

.blog-search-dropdown__empty {
    padding: 16px 12px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-main);
    opacity: 0.6;
}

/* ==========================================================================
   Blog Popular Posts
   ========================================================================== */
.blog-sidebar__popular {
    gap: 24px;
}

.blog-popular-post {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-popular-post__title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}

.blog-popular-post__title a {
    color: inherit;
    text-decoration: none;
}

.blog-popular-post__title a:hover {
    color: var(--blue);
}

.blog-popular-post__excerpt {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

/* ==========================================================================
   Blog Podcast Section
   ========================================================================== */
.blog-podcast {
    background-color: var(--white);
    padding: 0 0 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-podcast__image {
    position: relative;
    height: 410px;
    overflow: visible;
    width: 100%;
}

.blog-podcast__image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-podcast__phone {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    width: 165px;
    height: 328px;
    border-radius: 33px;
    box-shadow: 4px 4px 13.7px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.blog-podcast__phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-podcast__content {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 0 20px;
}

.blog-podcast__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
    color: var(--text-main);
    margin: 0;
}

.blog-podcast__line {
    width: 141px;
    height: 1px;
    background-color: var(--blue);
}

.blog-podcast__info {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 9px;
}

.blog-podcast__spotify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-podcast__spotify-icon svg {
    width: 25px;
    height: 29px;
}

.blog-podcast__label {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1;
    color: var(--blue);
    text-transform: uppercase;
}

.blog-podcast__episode-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

.blog-podcast__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 216px;
    height: 50px;
    background-color: var(--light-blue);
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--button-blue);
    margin-top: 20px;
    align-self: center;
    transition: background-color 0.2s ease;
}

.blog-podcast__button:hover {
    background-color: var(--blue);
    color: var(--white);
}

.blog-podcast__button:hover svg circle {
    stroke: var(--white);
}

.blog-podcast__button:hover svg path {
    fill: var(--white);
}

.blog-podcast__button svg {
    width: 36px;
    height: 36px;
}

/* ==========================================================================
   Single Post Page
   ========================================================================== */
.single-post-page {
    background-color: var(--light-gray);
}

.single-post-content {
    padding: 80px 0 100px;
}

.single-post-content__container {
    max-width: 1370px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.single-post-main {
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.single-post-article {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Single Post Header */
.single-post-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.single-post-header__date {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    line-height: 1;
    color: var(--blue);
}

.single-post-header__title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 36px;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}

.single-post-header__line {
    width: 184px;
    height: 1px;
    background-color: var(--blue);
    margin-top: 8px;
}

/* Single Post Image */
.single-post-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Single Post Body */
.single-post-body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
}

.single-post-body p {
    margin: 0 0 24px;
}

.single-post-body p:last-child {
    margin-bottom: 0;
}

.single-post-body h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-main);
    margin: 48px 0 24px;
}

.single-post-body h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.4;
    color: var(--text-main);
    margin: 32px 0 16px;
}

.single-post-body ul,
.single-post-body ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.single-post-body li {
    margin-bottom: 8px;
}

.single-post-body blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    border-left: 4px solid var(--blue);
    background-color: var(--white);
    font-style: italic;
}

.single-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Single Post Related */
.single-post-related {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.single-post-related__title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    line-height: 55px;
    color: var(--text-main);
    margin: 0;
}

.single-post-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.single-post-related__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.single-post-related__card:hover {
    opacity: 0.8;
}

.single-post-related__image {
    width: 100%;
    aspect-ratio: 261 / 166;
    border-radius: 8px;
    overflow: hidden;
}

.single-post-related__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-related__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.single-post-related__date {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 14px;
    line-height: 1;
    color: var(--blue);
}

.single-post-related__card-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}

.single-post-related__line {
    width: 184px;
    height: 1px;
    background-color: var(--blue);
}

/* ==========================================================================
   Search Results Page
   ========================================================================== */
.search-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 40px;
}

.search-info__query {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

.search-info__count {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--blue);
    margin: 0;
}

.search-no-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 60px 0;
}

.search-no-results__message {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

.search-no-results__hint {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

.search-no-results__hint a {
    color: var(--button-blue);
    text-decoration: underline;
}

.search-no-results__hint a:hover {
    color: var(--blue);
}

/* ==========================================================================
   Responsive - Tablet (max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
    .blog-content__container {
        padding: 0 48px;
        gap: 48px;
    }

    .blog-sidebar {
        width: 320px;
    }

    .blog-hero__title {
        font-size: 96px;
    }

    /* Single Post Tablet */
    .single-post-content__container {
        padding: 0 48px;
        gap: 48px;
    }

    .single-post-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Responsive - Mobile (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .blog-hero {
        height: 208px;
    }

    .blog-hero__title {
        font-size: 48px;
        line-height: 1.1;
    }

    .blog-content {
        padding: 40px 0 60px;
    }

    .blog-content__container {
        padding: 0 20px;
        flex-direction: column;
        gap: 80px;
    }

    .blog-sidebar {
        width: 100%;
    }

    .blog-posts {
        gap: 80px;
        align-items: center;
    }

    .blog-post-card {
        gap: 24px;
        align-items: center;
    }

    .blog-post-card__header {
        gap: 8px;
    }

    .blog-post-card__title {
        font-size: 18px;
        line-height: 1.6;
    }

    .blog-post-card__line {
        width: 100%;
        max-width: 390px;
        margin-top: 16px;
    }

    .blog-post-card__image {
        width: 100%;
        max-width: 390px;
    }

    .blog-post-card__image img {
        aspect-ratio: 390 / 248;
    }

    .blog-post-card__excerpt {
        width: 100%;
        max-width: 390px;
    }

    .blog-post-card__button {
        margin-top: 0;
    }

    /* Sidebar mobile */
    .blog-sidebar {
        gap: 48px;
    }

    .blog-sidebar__title {
        font-size: 32px;
    }

    .blog-sidebar__text {
        max-width: 390px;
    }

    .blog-search-form__input {
        max-width: 390px;
    }

    .blog-search-dropdown {
        max-width: 390px;
    }

    .blog-search-dropdown__thumb {
        width: 50px;
        height: 50px;
    }

    .blog-popular-post__title {
        max-width: 390px;
    }

    .blog-popular-post__excerpt {
        max-width: 390px;
    }

    /* Podcast mobile */
    .blog-podcast {
        max-width: 384px;
        margin: 0 auto;
    }

    .blog-pagination {
        margin-top: 20px;
    }

    /* Search Results Mobile */
    .search-info {
        text-align: center;
        margin-bottom: 20px;
    }

    .search-no-results {
        padding: 40px 0;
    }

    /* Single Post Mobile */
    .single-post-content {
        padding: 40px 0 60px;
    }

    .single-post-content__container {
        padding: 0 20px;
        flex-direction: column;
        gap: 60px;
    }

    .single-post-main {
        max-width: 100%;
        gap: 60px;
    }

    .single-post-header__title {
        font-size: 24px;
        line-height: 1.6;
    }

    .single-post-body h2 {
        font-size: 28px;
    }

    .single-post-related__title {
        font-size: 32px;
        line-height: 1.2;
    }

    .single-post-related__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .single-post-related__card {
        flex-direction: row;
        gap: 16px;
        align-items: flex-start;
    }

    .single-post-related__image {
        width: 144px;
        flex-shrink: 0;
        aspect-ratio: 144 / 124;
    }

    .single-post-related__info {
        align-items: flex-start;
        text-align: left;
    }

    .single-post-related__line {
        display: none;
    }
}

/* ==========================================================================
   Responsive - Small Mobile (max-width: 430px)
   ========================================================================== */
@media (max-width: 430px) {
    .blog-content__container {
        padding: 0 20px;
    }

    .blog-post-card__title {
        font-size: 18px;
    }

    .blog-sidebar__about .blog-sidebar__text,
    .blog-popular-post__title,
    .blog-popular-post__excerpt,
    .blog-search-form__input,
    .blog-post-card__excerpt,
    .blog-post-card__image,
    .blog-post-card__line {
        max-width: 100%;
        width: 100%;
    }
}
