/*
Theme Name: Astra Child - Webwila
Author: Webwila
Description: Your description goes here
Version: 1.0
Template: astra

This is the child theme for Astra theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/*
#0F766E
#E2D2AE
#8C886B
#000     */

:root {
    --primary-color: #0F766E;
    --secondary-color: #E2D2AE;
    --tertiary-color: #8C886B;
    --text-color: #000;
    --site-border-radius: 5px;
    --site-card-border-radius: 1rem;
    --ww-container-padding-left: 15px;
    --ww-container-padding-right: 15px;
    --col-padding: 12px;
    --text-gray-1: #7B7B7B;
    --post-heading-size: 18px;
    --borderColor: #E5E5E5;
    --ww-section-padding-top: 80px;
    --ww-section-padding-bottom: 80px;
    --ww-section-margin-top: 80px;
    --ww-section-margin-bottom: 80px;
}

@media screen and (max-width:767px) {
    :root {
        --ww-section-padding-top: 50px;
        --ww-section-padding-bottom: 50px;
        --ww-section-margin-top: 50px;
        --ww-section-margin-bottom: 50px;
    }
}


* {
    outline: none !important;
}


.wp-block-button__link:hover,
.sib-form-block__button:hover,
.wp-element-button:hover {
    transition: .2s;
}


/* section margin */
.ww-section-margin-top {
    margin-top: var(--ww-section-margin-top) !important;
}

.ww-section-margin-bottom {
    margin-bottom: var(--ww-section-margin-bottom) !important;
}

/* section padding */
.ww-section-padding-top {
    padding-top: var(--ww-section-padding-top) !important;
}

.ww-section-padding-bottom {
    padding-bottom: var(--ww-section-padding-bottom) !important;
}


.heading-style-1 h1,
.heading-style-1 h2,
.heading-style-1 h3,
.heading-style-1 h4 {
    padding-left: 10px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-left: 3px solid;
    border-color: var(--primary-color);
}


/*  */
#secondary .wp-block-search__button {
    padding: 8px 32px;
}

.ast-separate-container {
    background-color: #fff;
}

/* Widget Container */

.ast-separate-container.ast-two-container #secondary .widget {
    border-radius: var(--site-border-radius);
}

aside#block-11 {
    background: var(--ast-bg-style-guide) !important;
}

/* Heading */
.ast-separate-container.ast-two-container #secondary .widget .wp-block-heading {
    margin-bottom: 1rem;
}

/* List Item */
.ast-separate-container.ast-two-container #secondary .widget .wp-block-latest-posts__list>li {
    line-height: 1.5;
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    align-items: flex-start;
}

/* Featured Image Wrapper */
.ast-separate-container.ast-two-container #secondary .widget .wp-block-latest-posts__featured-image {
    margin-bottom: 0;
    flex-shrink: 0;
    /* prevents shrinking */
}

/* Image (MAIN FIX) */
.ast-separate-container.ast-two-container #secondary .widget .wp-block-latest-posts__featured-image img {
    width: 100px;
    /* 🔥 fixed width */
    aspect-ratio: 83 / 50;
    /* 🔥 equal height */
    object-fit: cover;
    border-radius: var(--site-border-radius);
    display: block;
}

/* Title Link */
.ast-separate-container.ast-two-container #secondary .widget .wp-block-latest-posts__list>li a {
    margin-top: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    font-weight: 600;
}

/* Hover Effect */
.ast-separate-container.ast-two-container #secondary .widget .wp-block-latest-posts__list>li a:hover {
    color: var(--primary-color);
}

.post-content>.cat-links,
.post-content>.read-more,
.post-content>.tags-links {
    margin-bottom: 0;
}

.sidebar-main {
    position: sticky;
    top: 81px;

    .wp-block-categories {
        a:before {
            content: "";
            width: 7px;
            height: 7px;
            background-color: var(--primary-color);
            display: inline-block;
            transform: rotate(45deg);
            margin-bottom: 3.5px;
            margin-right: 10px;
        }
    }
}

/*  */
.sidebar-main #block-11 h2 {
    font-size: 1.375rem;
    text-align: center;
}

.sidebar-main #block-11 p {
    text-align: center;
    margin-top: 10px;
}

.ast-mobile-popup-drawer.active .menu-toggle-close:focus {
    outline: none;
    border: none !important;
}

.ast-builder-menu-1 .menu-item>.menu-link {
    color: #000;
}

.site-header {
    position: sticky !important;
    top: 0;
}


.trail-items * {
    color: #fff;
}

body.blog .site-content,
body.search-results .site-content,
body.archive .site-content {
    background-color: #fff7e4;
    background: linear-gradient(to bottom, #fff7e4 0, #fff7e4 100%) !important;
}

section.ast-archive-entry-banner {
    background-blend-mode: multiply;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color)), url("/wp-content/uploads/2026/04/beautiful-shot-altes-museum-berlin-germany_181624-4101.jpg");
    background-size: cover;
    background-position: center;
}

.ast-archive-entry-banner[data-post-type="post"] .ast-container h1,
.ast-archive-entry-banner[data-post-type="post"] .ast-container p {
    color: #fff !important;
}

.ast-archive-entry-banner[data-post-type="life_in_germany"] .ast-container h1 {
    color: #fff !important;
}

.ast-single-entry-banner[data-post-type="life_in_germany"] .entry-title {
    font-weight: 600;
}

.post-type-archive-life_in_germany aside#block-9 {
    display: none;
}

.blog #block-9 {
    display: none;
}

.post-type-archive-career #block-9 {
    display: none;
}

.single .site-content .content-area .entry-content h2 {
    font-size: 28px !important;
    font-weight: 600 !important;
}

.single .site-content .content-area .entry-content h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
}

.single .site-content .content-area .entry-content p {
    font-size: 17px !important;
    line-height: 1.6 !important;
}

.site-content .site-main .no-results {
    padding: 1rem !important;
}

/* change grid to 2 columns by vikas */

.site-content .ast-blog-layout-4-grid .ast-article-post {
    width: 50%;
}

.site-content .ast-grid-3 .ast-row .status-publish .ast-post-format- {
    background-color: #fff;
    border-radius: var(--site-border-radius);
    overflow: hidden;
}

.site-content .ast-grid-3 .ast-row .status-publish .ast-post-format- .post-content .entry-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 20px;
    font-weight: 600;
}

.site-content .ast-grid-3 .ast-row .status-publish .ast-post-format- .post-content .ast-excerpt-container p {
    display: -webkit-box;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.5;
}

.sidebar-main #block-11>p {
    margin: 0px !important;
}

.site-content .ast-grid-3 .ast-row .status-publish .ast-post-format- .post-content a img {
    aspect-ratio: 2 / 1 !important;
    min-height: 238px !important;
    object-fit: cover !important;
}

.ast-archive-entry-banner[data-post-type="post"] .ast-container h1 {
    font-size: 54px !important;
}

.author-card {
    background: #fff;
    border-radius: 12px;
    transition: 0.3s;
}

.author-card:hover {
    transform: translateY(-5px);
}

.author-img img {
    border-radius: 50%;
}

.author-info h5 {
    font-weight: 600;
}

.author-info p {
    font-size: 14px;

}

#reading-progress {
    position: fixed;
    top: 108px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f1f1f1;
    z-index: 9999;
}

@media screen and (max-width:922px) {
    #reading-progress {
        top: 101px;
    }
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transition: width 0.15s ease-out;
}

/*  */

body.single-post .site-content {
    background-color: #fff;
}

.ast-blog-layout-5-grid .ast-article-inner {
    border-radius: var(--site-border-radius);
    overflow: hidden;
}

.ast-blog-layout-5-grid .ast-article-inner .ast-excerpt-container p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.ast-single-entry-banner[data-post-type="post"],
.ast-single-entry-banner[data-post-type="article"],
.ast-single-entry-banner[data-post-type="career"],
.ast-single-entry-banner[data-post-type="life_in_germany"],
.ast-single-entry-banner[data-post-type="education"] {
    * {
        color: #000000;
    }

    background: linear-gradient(to bottom, #edf6ee 0, #fff 100%) !important;
    padding-bottom: 0 !important;

    .post-thumb-img-content {
        margin-top: 30px;

        img {
            width: 100%;
            border-radius: var(--site-border-radius);
            object-fit: cover;
        }
    }
}


.single-post,
.single-article,
.single-career,
.single-life_in_germany,
.single-education {

    ol,
    ul {
        padding-left: 1rem;
    }

    .ast-related-post-content .entry-header .ast-related-post-title,
    .ast-related-post-content .entry-header .ast-related-post-title a {
        line-height: 1.3;
    }

    .ast-single-related-posts-container {
        padding: 0 var(--ww-container-padding-right) 0 var(--ww-container-padding-left) !important;
        max-width: 1290px;
        margin-bottom: var(--ww-section-margin-bottom) !important;
        margin-left: auto;
        margin-right: auto;
        background-color: transparent;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .ast-article-single {
        padding: 0;
    }
}

section.no-results.not-found {
    padding: 0;
    text-align: center;
}

.search-results .ast-blog-layout-4-grid {
    .entry-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .ast-excerpt-container p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .ast-article-inner .wp-post-image {
        aspect-ratio: 170 / 110;
        object-fit: cover;

    }
}

/* author-card */
.ww-author-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(1rem, 2.5vw, 30px);
    margin-top: 30px;
    background: var(--ast-bg-style-guide);
    border-radius: var(--site-card-border-radius);
    border-left: 5px solid var(--primary-color);
}

/* Left Content */
.ww-author-card .author-image {
    flex: 0 0 100px;
}

.ww-author-card .author-name {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ww-author-card .author-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Social Icons */
.ww-author-card .author-social {
    display: flex;
    gap: 12px;
}

.ww-author-card .author-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border-radius: 50%;
    color: #0f766d;
    font-size: 16px;
    transition: 0.3s;
}

.ww-author-card .author-social a:hover {
    background: #0f766d;
    color: #fff;
}

/* Right Image */
.ww-author-card .author-image img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/*  */
.related-posts {
    margin-top: 40px;
    margin-bottom: 40px;
}

.related-posts h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

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

.related-post-grid .related-item {
    border-radius: var(--site-border-radius);
    overflow: hidden;
}

.related-item img {
    width: 100%;
    aspect-ratio: 2 / 1 !important;
    min-height: 238px !important;
    object-fit: cover !important;
}

.related-item h4 {
    font-size: clamp(1rem, 2.5vw, 20px);
    padding: 1rem;
    background-color: var(--ast-bg-style-guide);
}

.related-item a {
    text-decoration: none;
}


.ast-builder-grid-row-4-equal .ast-builder-grid-row {
    /* grid-template-columns: 30% 18% 30% 22%; */
    padding-left: var(--col-padding, 12px);
    padding-right: var(--col-padding, 12px);
}

.site-below-footer-wrap[data-section="section-below-footer-builder"].ast-footer-row-tablet-stack .site-footer-section {
    margin-bottom: 0;
}


.ast-hfb-header .site-footer {
    padding-left: 0px;
    padding-right: 0;
}

@media (max-width: 544px) {
    #astra-footer-menu {
        margin-bottom: 0rem !important;
    }

    .site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
        gap: 1rem !important;
    }

    .ast-separate-container #content .ast-container {
        padding-left: var(--ww-container-padding-left) !important;
        padding-right: var(--ww-container-padding-right) !important;
    }

    /* footer */
    .ast-builder-grid-row-4-equal .ast-builder-grid-row {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

@media screen and (max-width:767px) {
    .ww-author-card {
        flex-wrap: wrap;
    }

    .ast-header-break-point #masthead .ast-mobile-header-wrap .ast-primary-header-bar {
        padding-left: var(--ww-container-padding-left) !important;
        padding-right: var(--ww-container-padding-right) !important;
    }

    .ast-separate-container #primary {
        margin: 0px;
        padding-bottom: 0 !important
    }

    .ast-separate-container #secondary {
        margin: 16px 0px;
    }

    .ast-single-entry-banner[data-post-type="post"],
    .ast-single-entry-banner[data-post-type="article"],
    .ast-single-entry-banner[data-post-type="career"],
    .ast-single-entry-banner[data-post-type="life_in_germany"],
    .ast-single-entry-banner[data-post-type="education"] {
        padding: 16px !important;
        margin-bottom: 10px !important;
    }

    .site-content .ast-blog-layout-4-grid .ast-article-post {
        width: 100%;
    }



    /* Related post */
    .related-post-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr) !important;
    }

}


@media screen and (max-width:1025px) {

    .ast-single-entry-banner[data-post-type="post"],
    .ast-single-entry-banner[data-post-type="article"],
    .ast-single-entry-banner[data-post-type="career"],
    .ast-single-entry-banner[data-post-type="life_in_germany"],
    .ast-single-entry-banner[data-post-type="education"] {
        padding: 20px 20px 0px 20px !important;
    }


    .ast-separate-container #primary {
        margin: 0px;
    }



    /* Related post */
    .related-post-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* footer */
    .ast-builder-grid-row-4-equal .ast-builder-grid-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ast-builder-footer-grid-columns {
        grid-column-gap: 32px !important;
    }
}


/*  */
.ww-share-buttons {
    margin-top: 32px;
    display: flex;
    gap: 20px;
    align-items: center;
}


.ww-share-buttons h6 {
    margin-bottom: 0;
}

.ww-share-buttons a {
    max-width: 40px;
}

/* footer */


.site-footer {
    background-color: #012926;
}

section#nav_menu-3 li {
    margin-bottom: 0px;
}

section#nav_menu-3 li:last-child {
    margin-bottom: 0;
}

.site-footer .widget-title,
.widget .wp-block-heading {
    margin-bottom: clamp(1rem, 2.5vw, 2rem);
}

.ast-builder-footer-grid-columns {
    gap: 30px;
}

.ast-builder-footer-grid-columns .widget {
    margin: 0px;
}

.widget p:empty {
    display: none;
    margin: 0 !important;
}

.widget .newsletter p {
    margin-bottom: 20px;
    line-height: 1.3;
    font-size: 14px;
    color: inherit;
}

.widget .mc4wp-alert p {
    font-size: 16px;
    line-height: 1.3;
}

.ast-builder-footer-grid-columns p {
    margin: 0px;
}

.ast-builder-footer-grid-columns .site-footer-above-section-1 #block-14 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.wp-block-social-links .wp-social-link {
    background: var(--ast-global-color-0);
    color: #fff;
}

.wp-block-social-links .wp-social-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.ast-builder-footer-grid-columns .site-footer-above-section-1 #block-42 {
    margin-top: 8px;
    margin-bottom: 16px;
}

.ast-builder-footer-grid-columns .site-footer-above-section-1 #block-42 h5 {
    color: #fff;
}

.ast-builder-footer-grid-columns .site-footer-above-section-1 #block-14 p {
    color: #fff;
}

.ast-builder-footer-grid-columns .site-footer-above-section-2 #block-43 h5 {
    color: #fff;
}

.ast-builder-footer-grid-columns .site-footer-above-section-3 #block-17 h4 {
    color: #fff;
}

.ast-builder-footer-grid-columns .site-footer-above-section-4 #block-46 h5 {
    color: #fff;
}

.footer-widget-area[data-section="sidebar-widgets-footer-widget-2"].footer-widget-area-inner a,
.footer-widget-area[data-section="sidebar-widgets-footer-widget-3"].footer-widget-area-inner a,
.footer-widget-area[data-section="sidebar-widgets-footer-widget-4"].footer-widget-area-inner a {
    color: #ffffff;
}


.footer-widget-area[data-section="sidebar-widgets-footer-widget-2"].footer-widget-area-inner a:hover,
.footer-widget-area[data-section="sidebar-widgets-footer-widget-3"].footer-widget-area-inner a:hover,
.footer-widget-area[data-section="sidebar-widgets-footer-widget-4"].footer-widget-area-inner a:hover {
    color: var(--ast-global-color-0);
}

/* .footer-widget-area .nav_menu-3 .menu-menu-container .menu .menu-item .sub-menu .menu-item-type-taxonomy
{
    display: none !important;
} */
.site-footer-above-section-3 .footer-widget-area .menu-item-type-taxonomy {
    display: none !important;
}



.ast-builder-footer-grid-columns .site-footer-above-section-3 #block-43 h5 {
    color: #fff;
}

.ast-builder-footer-grid-columns .site-footer-above-section-4 .footer-widget-area {
    margin-top: 0px;
}

.ast-builder-footer-grid-columns .site-footer-above-section-4 #block-7 h2 {
    display: none;
}

.ast-builder-footer-grid-columns .site-footer-above-section-4 #block-7 p {
    color: #fff;
}

.ast-builder-footer-grid-columns .site-footer-above-section-4 #block-7 .newsletter .input-wrapper input[type="email"] {
    color: #fff !important;
}

.ast-builder-footer-grid-columns .site-footer-above-section-4 .newsletter .input-wrapper,
.sidebar-main .newsletter .input-wrapper {
    border: none !important;
    flex-wrap: wrap;
    row-gap: 10px;
}

.sidebar-main .newsletter .input-wrapper>*,
.ast-builder-footer-grid-columns .site-footer-above-section-4 .newsletter .input-wrapper>* {
    flex: 0 0 100% !important;
    width: 100% !important;
}

.sidebar-main .newsletter .input-box,
.ast-builder-footer-grid-columns .site-footer-above-section-4 .newsletter .input-box {
    border: 1px solid var(--primary-color) !important;
    position: relative;
    border-radius: var(--site-border-radius);
}

.sidebar-main .newsletter .input-wrapper input,
.ast-builder-footer-grid-columns .site-footer-above-section-4 .newsletter .input-wrapper input {
    width: 100%;
    padding-left: 40px;
}

.site-below-footer-wrap .site-footer-below-section-1 .footer-widget-area {
    margin-bottom: 0px;
}

.sidebar-main .newsletter button,
.ast-builder-footer-grid-columns .site-footer-above-section-4 #block-7 .newsletter button {
    border-radius: var(--site-border-radius) !important;
    width: 50% !important;
}

/* footer */
.ast-builder-footer-grid-columns .site-footer-above-section-3 #block-49 ul li {
    line-height: 1.5;
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    margin-top: 0 !important;
    align-items: flex-start;
    border-bottom: 1px solid #ffffff14;
}

.ast-builder-footer-grid-columns .site-footer-above-section-3 #block-49 ul li:last-child {
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
}

.ast-builder-footer-grid-columns .site-footer-above-section-3 #block-49 ul li a {
    margin-top: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.4;
    color: #fff;
    font-size: 16px;
    margin-bottom: 0;
}

.ast-builder-footer-grid-columns .site-footer-above-section-3 #block-49 ul li .wp-block-latest-posts__featured-image img {
    max-width: 100px;
    aspect-ratio: 83 / 50;
    object-fit: cover;
    border-radius: var(--site-border-radius);
    display: block;
}

.site-footer-above-section-2 .menu a:before,
.site-footer-above-section-3 .menu a:before,
.site-footer-above-section-4 .menu a:before {
    content: "";
    width: 7px;
    height: 7px;
    background-color: var(--secondary-color) !important;
    display: inline-block;
    transform: rotate(45deg);
    margin-bottom: 3.5px;
    margin-right: 10px;
}



/*  */
.mc4wp-alert p {
    text-align: center;
    margin-top: 10px;
}



@media screen and (max-width:767px) {
    .site-footer-above-section-3.site-footer-section.site-footer-section-3 {
        margin-bottom: 0 !important;
    }

}

@media (max-width: 544px) {
    .ast-separate-container #content .ast-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* footer */
    .ast-builder-grid-row-4-equal .ast-builder-grid-row {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* arrow  function*/
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
}

.read-more .arrow {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    position: relative;
    top: 1px;
}


/* home page */

/*  */
.ww-btn-border-home .wp-block-uagb-buttons .uagb-button__wrapper .uagb-buttons-repeater {
    border: none;
}

.ww-articles {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

/* Card */
.ww-articles .article-row {
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
}


.ww-articles .article-row .read-more {
    margin-top: 10px;
}



/* Education */
.ww-education-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card */
.ww-education-cards .education-card {
    padding: 1rem;
    border-radius: var(--site-card-border-radius);
    border: 1px solid var(--borderColor);
    transition: 0.3s;
}

.ww-education-cards .education-card:hover {
    border-color: var(--primary-color);
}

/* Title */
.education-card .card-title {
    font-size: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.education-card .card-title a {
    text-decoration: none;
}

/* Image */
.education-card .card-img img {
    width: 100%;
    aspect-ratio: 379 / 260;
    object-fit: cover;
    border-radius: var(--site-card-border-radius);
    margin-bottom: 1rem;
}

/* Content */
.education-card .card-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-gray-1);
    margin-bottom: 10px;
}

/* Meta */
.education-card .meta {
    font-size: 14px;
    font-weight: semibold;
    color: #7B7B7B;
    display: flex;
    gap: 15px;
    align-items: center;
}

.education-card .meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.education-card .meta img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 992px) {
    .ww-education-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .ast-separate-container #primary,
    .ast-separate-container.ast-left-sidebar #primary,
    .ast-separate-container.ast-right-sidebar #primary {
        padding-bottom: 0 !important;
    }

}

@media (max-width: 576px) {
    .ww-education-cards {
        grid-template-columns: 1fr;
    }
}

/*old news section start */

/* GRID (FIXED CLASS NAME) */
.ww-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* ✅ equal width */
    gap: 25px;
}

/* CARD */
.ww-news-grid .card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    padding: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ww-news-grid .card img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

/* BIG CARD */
.ww-news-grid .large img {
    height: 320px;
    object-fit: cover;
}

.ww-news-grid .large .content {
    padding: 18px 10px 10px;
    text-align: center;
}

.ww-news-grid .large h2 {
    font-size: 24px;
    margin: 10px 0;
}

/* RIGHT SIDE */
.ww-news-grid .right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* SMALL CARD */
.ww-news-grid .small {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
}

.ww-news-grid .small .text {
    flex: 1;
}

.ww-news-grid .small img {
    width: 270px;
    height: 250px;
    object-fit: cover;
    border-radius: 18px;
}

/* TEXT */
.ww-news-grid .meta {
    font-size: 14px;
    display: flex;
    gap: 15px;
    align-items: center;
    color: #7B7B7B;
    margin-bottom: 6px;
}

.ww-news-grid .meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ww-news-grid .meta img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.ww-news-grid .desc {
    font-size: 18px;
    line-height: 27px;
    color: #7B7B7B;
    margin-bottom: 8px;
}

.ww-news-grid .small h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

/* READ MORE */
.ww-news-grid .small a {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
}

@media (max-width: 992px) {

    .ww-news-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* make big card full width */
    .ww-news-grid .large {
        grid-column: span 2;
    }

    /* break right wrapper */
    .ww-news-grid .right {
        display: contents;
    }

    .ww-news-grid .small {
        flex-direction: column;
        align-items: flex-start;
    }

    .ww-news-grid .small img {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 768px) {

    .ww-news-grid {
        grid-template-columns: 1fr;
    }

    .ww-news-grid .large {
        grid-column: span 1;
    }

    /* .ww-news-grid .right {
        display: block;
    } */

    .ww-news-grid .large img {
        height: 200px;
    }

    .ww-news-grid .large .content {
        text-align: left;
    }
}

/* old news section end*/

/* MAIN GRID */
.ww-latest-news {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 1rem;
}

/* news LEFT */
.ww-latest-news-post {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.ww-latest-news-post .ww-post-meta {
    color: #fff;
    margin-bottom: 0;
}

.ww-latest-news-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DARK OVERLAY */
.ww-latest-news .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* CONTENT OVER IMAGE */
.ww-latest-news .featured-content {
    padding: 0 1rem 0 1rem;
    left: 50%;
    transform: translate(-50%, -1rem);
    position: absolute;
    width: 100%;
    bottom: 0;
    height: max-content;
    color: #fff;
}

.ww-latest-news .featured-content h2 {
    font-size: 24px;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
}


.ww-latest-news .category {
    font-size: 15px;
    opacity: 0.8;
}

.ww-latest-news .featured-content .meta {
    font-size: 12px;
    color: #fff;
    opacity: 0.8;
    display: flex;
    gap: 15px;
    align-items: center;
}

.ww-latest-news .featured-content .meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ww-latest-news .featured-content .meta img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.ww-post-meta {
    font-size: 12px;
    color: var(--text-gray-1, #7B7B7B);
    margin-bottom: 5px;
}


.ww-post-meta svg {
    height: 1em;
    width: 1em;
    position: relative;
    top: 2px;
}

.ww-post-meta img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* RIGHT POSTS */
.ww-latest-news .right-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* SMALL POST */

.right-posts .ww-post-card:nth-child(-n+4) {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--borderColor);
}

/* Post card start */

.ww-post-card {
    display: flex;
    gap: 16px;
    border-radius: var(--site-border-radius, 5px);
    transition: all .2s ease;
}

.ww-post-card:hover {
    transform: translate(0, -4px);
    transition: all .2s ease;
    border-bottom-color: var(--primary-color) !important;
}

/* .ww-post-card:hover img{
    transform: scale(1.03);
    transition: .2s;
} */

.ww-post-card a img {
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 132 / 132;
    /* height: 100%; */
}

.ww-post-card .text {
    flex: 0 0 calc(100% - 132px - 1rem);
}

.ww-post-card h4 {
    font-size: var(--post-heading-size, 20px);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}


.ww-post-card .desc {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--text-gray-1, #7B7B7B);
}

.ww-post-card .desc a {
    color: inherit;
}

/* Post card end */


.ww-hero-sec-post-type img {
    contain-intrinsic-size: unset !important;
}

/* RESPONSIVE */
@media screen and (max-width:1099px) {
    .ww-hero-sec-post-type {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .ww-hero-section {
        display: block !important;
    }

    .ww-hero-section>.uagb-container-inner-blocks-wrap {
        gap: 0 !important;
        flex-wrap: wrap !important;
        row-gap: 20px !important;
    }

    .ww-hero-section>.uagb-container-inner-blocks-wrap>div:first-child {
        max-width: 50%;
        order: 1 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .ww-hero-section>.uagb-container-inner-blocks-wrap>div:last-child {
        max-width: 50%;
        order: 2 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .ww-hero-sec-post-type {
        max-width: 100% !important;
        order: 3 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
    .ww-latest-news .right-posts {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
}


@media (max-width: 992px) {
    .ww-latest-news {
        grid-template-columns: 1fr;
    }

    .right-posts {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 767px) {
    .ww-latest-news .right-posts {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 18px;
    }

    .ast-separate-container .ast-blog-layout-4-grid .ast-article-post {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

/* germany */
/* MAIN LAYOUT */
.ww-germany-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* LEFT */
.ww-germany-layout .ww-post-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--borderColor);
}

.ww-germany-layout .ww-post-card:first-child {
    padding-top: 0 !important;
}

/* SIDEBAR */
.ww-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ww-sidebar {
    position: sticky;
    top: 100px;
    /* adjust if header height changes */
    align-self: start;
    transition: all 0.3s ease;
}

.ww-widget {
    border: 1px solid var(--borderColor);
    padding: 1rem;
    border-radius: var(--site-card-border-radius);
}

.ww-widget h4 {
    margin-bottom: 12px;
    font-size: 23px;
}

/* CATEGORY CARDS */
/* .cat-card {
    background: #ddd;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
} */

.widget.widget_block p:empty {
    display: none !important;
}

.widget.widget_block .ww-widget h4 {
    display: none !important;
}

body:not(.post-type-archive-career):not(.post-type-archive-life_in_germany) aside#block-57 {
    display: none !important;
}

aside#block-57 .wp-block-heading+p {
    display: none;
}

aside#block-57 .ww-widget {
    margin-top: 0 !important;
}

.ww-sidebar .cat-card,
.widget.widget_block .cat-card {
    display: block;
    position: relative;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    text-decoration: none;
}

.ww-sidebar .cat-card:last-child,
.widget.widget_block .cat-card:last-child {
    margin-bottom: 0px !important;
}

.ww-sidebar .cat-card::before,
.widget.widget_block .cat-card::before {
    content: "";
    position: absolute;
    inset: 0px;
    background: rgba(0, 0, 0, 0.45);
}

.ww-sidebar .cat-card span,
.widget.widget_block .cat-card span {
    position: absolute;
    left: 12px;
    bottom: 5px;
    color: rgb(255, 255, 255);
    font-weight: 600;
}


/* POPULAR */
.ww-sidebar .ww-widget .popular-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ww-sidebar .popular-item .text .read-more {
    font-size: 14px;
}

.ww-sidebar .popular-item img {
    width: 80px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.ww-sidebar .popular-item p {
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

/* impressum information page */
.ww-information-content h2 {
    font-size: 28px !important;
    font-weight: 600 !important;
}

.ww-information-content h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
}

.ww-information-content p {
    font-size: 17px !important;
    line-height: 1.6 !important;
}

/*  */
.ww-author-card {
    display: none;
}

/* RESPONSIVE */


@media (max-width: 992px) {
    .ww-germany-layout {
        grid-template-columns: 1fr;
    }


    .ww-sidebar {
        order: 2;
    }

    .ww-germany-layout .left-germany {
        order: 1;
    }
}



@media (max-width: 576px) {

    /* Sidebar widgets */
    .ww-widget {
        padding: 15px;
    }

    .ww-widget h4 {
        font-size: 18px;
    }

    /* Category cards */
    .cat-card {
        height: 35px;
    }

    .cat-card span {
        font-size: 13px;
    }

    /* Popular posts */
    .popular-item {
        gap: 8px;
    }

    .popular-item img {
        width: 65px;
        height: 55px;
    }

    .popular-item p {
        font-size: 14px;
    }
}

@media screen and (min-width:993px) {}

@media screen and (min-width:1024px) {

    .site-above-footer-wrap[data-section="section-above-footer-builder"] {
        padding-left: 0;
        padding-right: 0;
    }

    .ast-builder-footer-grid-columns.site-above-footer-inner-wrap.ast-builder-grid-row {
        grid-template-columns: 30% 20% 20% 30%;
        gap: 0rem;
        padding-left: 0;
        padding-right: 0;
    }

    .ast-builder-footer-grid-columns.site-above-footer-inner-wrap.ast-builder-grid-row>div {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-footer-above-section-1.site-footer-section.site-footer-section-1 {
        padding-right: 2rem !important;
    }


    .ww-articles {
        grid-template-columns: repeat(2, 1fr);
    }

    .ast-single-entry-banner[data-post-type="post"],
    .ast-single-entry-banner[data-post-type="article"],
    .ast-single-entry-banner[data-post-type="career"],
    .ast-single-entry-banner[data-post-type="life_in_germany"],
    .ast-single-entry-banner[data-post-type="education"] {
        padding: 30px 0px 0px !important;

        .entry-title {
            font-size: 42px;
        }
    }


    .ast-separate-container #content .ast-container {
        padding-left: 20px;
        padding-right: 20px;
    }


}