@import url("https://fonts.googleapis.com/css2?family=Sen:wght@400;700;800&display=swap");

:root {
    --heading-font: 1.75rem;
    --heading-font-sm: 1.625rem;
    --fs-2: 2rem;
}

body {
    font-family: 'Sen', sans-serif;
}

a.recent-Head {
    color: #000;
}

.navbar-inner .menu-icon span.comm {
    background: #fff;
}
.ml-auto.menu-icon.community {
    border-color: white;
}
.menu-icon.community:hover {
    background: transparent;
    border-color: #fff;
}

.community-heading {
    font-size: var(--heading-font);
    font-weight: 800;
    color: #000;
}

.community-heading-alt {
    font-size: var(--fs-2);
}

.community-heading-alt span {
    font-weight: bold;
}

.community-heading-secondary {
    font-size: 1rem;
    color: #66676E;
}

.community-heading-two {
    font-size: var(--heading-font-sm);
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.community-hero {
    position: relative;
    height: clamp(30rem, 60vh, 40rem);
    /* background-color: #000; */
    background-image: url("https://chatimgs.blob.core.windows.net/community/Community-Banner-Image.png");
    background-position: center;
    background-size: cover;
    z-index: 9;
    clip-path: ellipse(80% 60% at 50% 40%);
}

.community-hero-text {
    margin-top: 5rem;
}

.community-hero-text h1 {
    color: #fff;
    text-align: center;
}

.community-hero-text p {
    color: #fff;
    text-align: center;
}

.custom-input {
    background-color: #fff;
    border-radius: 10vw;
    display: flex;
    padding: 5px 5px 5px 15px;
    width: 1000px;
    max-width: 90%;
    align-items: center;
    gap: .5rem;
    margin-block: 2rem;
    position: relative;
}

.custom-input select, .custom-input input, .custom-input button {
    border: none;
    background: none;
    outline: none;
}

.custom-input select {
    margin-left: 5px;
}

.custom-input .separator {
    width: 1px;
    background-color: #c4c4c4;
    height: 80%;
}

.custom-input .search-btn {
    background-color: #000;
    width: 3rem;
    height: 3rem;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    /* position: absolute; */
    /* right: 5px; */
    /* top: 0; */
    /* bottom: 0; */
    /* margin-block: auto; */
}

.custom-input input {
    color: #000;
    flex: 1;
}

.custom-input input::placeholder {
    color: #66676E !important;
}

.popular-tags-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popular-tags-wrapper p {
    color: #fff;
    margin-bottom: 0;
}

.popular-tags-wrapper .popular-tag {
    display: block;
    font-size: .875rem;
    color: #fff;
    padding: .3rem 1rem;
    border: 1px solid #fff;
    border-radius: 5px;
}

.popular-tags-wrapper .popular-tag:hover {
    background-color: #fff;
    color: #000;
}

.community-categories {
    position: relative;
    background-color: #fff;
    padding: 2rem 0;
    z-index: 9;
}

.community-categories h2{
    text-align: center;
    margin-bottom: 3rem;
}

.community-categories .categories-wrapper {
    display: flex;
    padding: 1rem 2rem;
    overflow-y: auto;
    gap: 2rem;
    /* justify-content: center; */
}

.community-categories .categories-wrapper::-webkit-scrollbar {
    height: 5px;
}

.community-categories .categories-wrapper::-webkit-scrollbar-thumb {
    background-color: #ced9e3;
    border-radius: 5vw;
}

.community-categories .category:first-child {
    margin-left: auto;
}
.community-categories .category:last-child {
    margin-right: auto;
}

.community-categories .category {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.community-categories .category .category-icon{
    width: 5rem;
    min-height: 5rem;
    height: 5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0ABEFF;
    transition: background-color .3s ease;
}

.community-categories .category .category-icon:hover {
    background-color: #000;
}


.community-categories .category .category-icon .iconify, 
.community-categories .category .category-icon img {
    width: 50%;
    height: auto;
    color: #fff;
    transition: transform .3s ease;
}

.community-categories .category .category-icon:hover .iconify,
.community-categories .category .category-icon:hover img {
    transform: scale(1.13);
}

.community-categories .category .category-name {
    color: #000;
    font-weight: 600;
    text-align: center;
    min-width: max-content;
}

.recent-articles {
    position: relative;
    background-color: #fff;
    z-index: 9;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.recent-head-text .community-heading {
    color: #000;
}

.recent-articles .carousel-container {
    height: 30rem;
    width: 100%;
    position: relative;
    /* overflow: hidden; */
}

.recent-articles .carousel-container .carousel-btn {
    position: absolute;
    top: 50%;
    background-color: #000;
    width: 3rem;
    height: 3rem;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    outline: none;
}

.recent-articles .carousel-container .carousel-prev {
    left: 0;
    transform: translate(-50%, -50%);
}

.recent-articles .carousel-container .carousel-next {
    right: 0;
    transform: translate(50%, -50%);
}

.recent-articles .slide-container {
    width: 100%;
    min-width: 100%;
    height: 100%;
    border-radius: .5rem;
    overflow: hidden;
    margin-top: 2rem;
}

.slide-track {
    height: 100%;
    display: flex;
    transition: transform .5s ease-out;
}

.recent-articles .slide-container .slide {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    height: 100%;
    border: 1px solid #E5EAF4;
    border-radius: .5rem;
    overflow: hidden;
    min-width: 100%;
}



/* .recent-articles .slide-container .slide .slide-img {
    border: 1px solid black;
} */

.recent-articles .slide-container .slide .slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-articles .slide-container .slide .slide-content {
    padding: 1.5rem 4rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.recent-articles .slide-container .slide .slide-content:hover a {
    color: #0ABEFF !important;
}

.recent-articles .slide-container .slide .slide-content:hover .post-text h3 {
    color: #3aa0ff;
}

.recent-articles .slide-container .slide .slide-content .post-tag {
    margin-bottom: 1rem;
}

.recent-articles .slide-container .slide .slide-content .tag {
    font-size: .875rem;
    padding: .5rem 1rem;
    border-radius: 10vw;
    color: #36B37E;
    background-color: hsla(155, 54%, 46%, 0.1);
    display: inline-block;
}

.recent-articles .slide-container .slide .slide-content .post-text h3 {
    font-size: var(--heading-font-sm);
    font-weight: 700;
}

.recent-articles .slide-container .slide .slide-content .post-text p {
    font-size: 1.125rem;
    color: #5a7184;
}

.recent-articles .slide-container .slide .slide-content .post-metadata {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .875rem;
    color: #5a7184;
}

.recent-articles .slide-container .slide .slide-content .post-metadata .author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recent-articles .slide-container .slide .slide-content .post-metadata .author-info .author-info-img {
    width: 3rem;
    height: 3rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #0ABEFF;
}

.recent-articles .slide-container .slide .slide-content .post-metadata .author-info .author-info-text p {
    margin-bottom: 0;
}
.recent-articles .slide-container .slide .slide-content .post-metadata .author-info .author-info-text i{
    display: flex;
    align-items: center;
    gap: .3rem;
}
.recent-articles .slide-container .slide .slide-content .post-metadata .author-info .author-info-text i .verified-icon{
    width: 1rem;
    height: 1rem;
    background-color: #36b37e26;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #36B37E;
}

.trending-topics {
    position: relative;
    background-color: #fff;
    z-index: 9;
    padding-bottom: 5rem;
}

.trending-topics .trending-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: .5rem;
    width: 100%;
    margin-top: 2rem;
}

.trending-topics .trending-topics-grid .topic {
    min-height: 10rem;
    background-color: #c4c4c4;
    width: 100%;
    max-width: 100%;
    border-radius: .5rem;
    overflow: hidden;
    position: relative;
}

.trending-topics .trending-topics-grid .topic:hover img{
    transform: scale(1.2);
}

.trending-topics .trending-topics-grid .topic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    transition: transform .3s ease;
}

.trending-topics .trending-topics-grid .topic .topic-name {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: .5rem 1rem;
    background-color: #ffffff50;
    z-index: 5;
    color: #fff;
    border-radius: .5rem;
}

@media screen and (min-width:60em) {
    .trending-topics .trending-topics-grid .topic:first-child {
        grid-column: 1/3;
        grid-row: 1/3;
    }
}

.top-articles {
    position: relative;
    z-index: 9;
    background-color: #fff;
    padding-bottom: 5rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 4rem;
    row-gap: 2rem;
    margin-top: 3rem;
}

@media screen and (max-width: 1000px) {
    .post-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 636px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

.top-article-card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #E5EAF4;
    transition: box-shadow 300ms linear, transform 150ms ease;
    display: flex;
    flex-direction: column;
}

.top-article-card:hover {
    box-shadow: 0px 32px 108px rgba(0, 0, 0, 0.07);
    transform: scale(1.02);
    border: 1px solid transparent;
}

.top-article-card .article-metadata {
    display: flex;
    align-items: center;
    margin-block: .8rem;
    color: #66676e;
}

.top-article-card .article-metadata p {
    margin-bottom: 0;
    font-size: .875rem;
}

.top-article-card .article-metadata .separator {
    width: 1px;
    background-color: #000;
    margin-inline: .5rem;
    height: 100%;
}

.top-article-card:hover .article-heading {
    color: #0ABEFF;
}

.top-article-card .article-img {
    width: 100%;
    aspect-ratio: 1/.6;
    background-color: #66676E;
    border-radius: 1rem;
    object-fit: cover;
}

.top-article-card .article-heading {
    font-size: 1.125rem;
    font-weight: 700;
}

.top-article-card .article-desc {
    color: #66676E;
}

.top-article-card .article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.top-article-card .article-actions .read-more-btn {
    color: #000;
    font-weight: 600;
}

.top-article-card .article-actions .share-article-btn {
    width: 2.5rem;
    height: 2.5rem;
    aspect-ratio: 1;
    background-color: #0ABEFF;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    display: none;
}

.top-article-card .article-actions .share-article-btn .iconify {
    width: 50%;
    height: auto;
}

.load-more-btn {
    border: none;
    background-color: #0ABEFF;
    color: #fff;
    font-size: 1.125rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: .5rem;
}

.features-section {
    position: relative;
    background-color: #fff;
    z-index: 9;
    padding-bottom: 5rem;
}

.gap-big {
    column-gap: 4rem !important;
}

.features-section .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 1rem;
    align-items: center;
}



.features-section .section-content-text > h1 {
    font-size: 1.75rem;
    font-weight: 700;
    max-width: 26ch;
}

.features-section .section-content-text > p {
    color: #262729;
    max-width: 50ch;
}

.features-section .feature-list {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-section .feature-list-item {
    display: flex;
    gap: 1rem;
}

.features-section .feature-list-item .icon {
    width: 3rem;
    height: 3rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #0ABEFF;
    box-shadow: 0 0 2rem #0ABEFF80;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.features-section .feature-list-item .icon .iconify {
    width: 40%;
    height: auto;
}

.features-section .feature-list-item .text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    /* max-width: 26ch; */
}

.features-section .feature-list-item .text p {
    color: #262729b3;
    max-width: 60ch;
}

.features-section .section-content-image-grid {
    display: grid;
    grid-template-columns: 14rem 14rem;
    row-gap: 1.5rem;
    column-gap: 1rem;
    place-content: center;
}

/* .features-section .section-content-image-grid .row-2 {
    display: grid;
    grid-template-columns: 10rem 10rem;
    gap: 1.5rem;
} */

.features-section .section-content-image-grid img:nth-child(1) {
    align-self: flex-end;
    transform: translateX(-1.5rem);
}
.features-section .section-content-image-grid img:nth-child(2) {
    /* transform: scale(1.3); */
    width: 18rem;
    height: auto;
    transform-origin: bottom left;
}
/* .features-section .section-content-image-grid img:nth-child(3) {
} */
.features-section .section-content-image-grid img:nth-child(4) {
    transform: translate(1.5rem, 1.5rem);
}

.features-section .section-content-image-grid img {
    object-fit: cover;
    width: 100%;
    border-radius: .5rem;
    transition: transform .3s ease;
    aspect-ratio: 1;
}

.section-content-image-grid {
    pointer-events: none;
}

.section-content-image-grid img {
    pointer-events: auto;
}

.section-content-image-grid:hover .grid-img:not(:hover) {
    transform: scale(.9);
}

.features-section .section-content-image-grid img:hover {
    transform: scale(1.1);
}

.newsletter {
    position: relative;
    background-color: #000;
    z-index: 9;
    padding-block: 4rem;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    gap: 5rem;
}

.newsletter-content .content-form h1 {
    /* font-family: "Poppons", sans-serif;
    font-size: 1.75rem;
    font-weight: 700; */
    color: #fff;
}

.newsletter-input-group {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.newsletter-input-group input {
    background-color: #fff;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: .8rem 1rem;
    border: none;
    outline: none;
    flex: 1;
}

.newsletter-input-group input::placeholder {
    color: #5A7184;
}

.newsletter-input-group button {
    background-color: #0ABEFF;
    color: #fff;
    padding: .8rem 1rem;
    border-radius: 5px;
    position: relative;
    left: -5px;
    border: none;
    outline: none;
}

.newsletter-content .content-form > p {
    color: #fff;
}

.newsletter .content-graphic {
    padding: 2rem 3rem;
}

.newsletter .temp-article {
    background-color: #fff;
    padding: 0.5rem;
    border-radius: .5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.newsletter .temp-article .temp-img {
    background-color: #0ABEFF;
    border-radius: .5rem;
    aspect-ratio: 1/.5;
    margin-bottom: 1rem;
}

.newsletter .temp-article h3 {
    font-size: 1.5rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    padding: 0 1rem;
}

.newsletter .temp-article p {
    color: #5A7184;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.newsletter .temp-article::before,
.newsletter .temp-article::after {
    position: absolute;
    content: "";
    width: 10rem;
    height: 10rem;
    border-radius: 1rem;
    z-index: -1;
}

.newsletter .temp-article::after {
    background-color: #222;
    left: -2rem;
    bottom: -2rem;
}

.newsletter .temp-article::before {
    background-color: #0ABEFF;
    top: 2rem;
    right: -2rem;
}

@media screen and (max-width: 900px) {
    .recent-articles .slide-container .slide {
        grid-template-columns: 1fr 1.5fr;
    }
}

@media screen and (max-width: 768px) {

    :root {
        --fs-2: 1.8rem;
    }

    html {
        font-size: 12px;
    }

    .features-section .section-content {
        grid-template-columns: 1fr;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
    }

    /* .recent-articles .slide-container .slide {
        grid-template-columns: 1fr;
    } */

    /* .recent-articles .slide-container .slide .slide-img {
        display: none;
    } */
    .recent-articles .slide-container .slide {
        grid-template-columns: 1fr;
        grid-template-rows: 6rem 1fr;
    }

    .recent-articles .slide-container .slide .slide-content {
        padding: 1rem 2rem;
    }
    .community-hero {
        height: 100vh;
    }
    .recent-articles .slide-container .slide .slide-img img {
        object-fit: cover !important;
    }
        
}

@media screen and (max-width: 450px) {
    .popular-tags-wrapper {
        /* display: none; */
        flex-wrap: wrap;
    }
    
    .recent-articles .slide-container .slide .slide-content .post-text p {
        height: 10ch;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .custom-input select {
        display: none !important;
    }

    .custom-input .separator {
        display: none !important;
    }
}

@media screen and (max-width: 500px) {
    .community-hero {
        height: 100vh;
    }

    .features-section .section-content-image-grid {
        grid-template-columns: 1fr 1fr;
    }

    .features-section .section-content-image-grid img {
        width: 100% !important;
        aspect-ratio: 1 !important;
    }

    .features-section .section-content-image-grid img:nth-child(1) {
        transform: translateX(0);
    }

    .features-section .section-content-image-grid img:nth-child(2) {
        width: 100%;
        transform-origin: bottom left;
    }

    .features-section .section-content-image-grid img:nth-child(4) {
        transform: translate(0, 0);
    }
}

@media screen and (max-width: 1600px) {
    html {
        font-size: 14px;
    } 
}

@media screen and (max-width: 1400px) {
    html {
        font-size: 13px;
    }
}

@media screen and (min-width: 1601px) {
    html {
        font-size: 15px;
    }
}

