@tailwind base;
@tailwind components;
@tailwind utilities;

/* Load Google Poppins Font */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Common Css */
/*******Fix footer at bottom of the page********/
html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
header.header-default {
    flex-shrink: 0;
}

main#primary {
    flex: 1;
}

footer {
    flex-shrink: 0;
}
/*******Fix footer at bottom of the page********/
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

body {@apply font-sans text-sm m-0;}

h3 {@apply text-xl text-grey font-bold my-5;}

p:empty {@apply hidden;}

#backToTop {
  @apply bg-white cursor-pointer size-8 hidden items-center justify-center border border-gray-300 rounded-full px-2 py-1 text-sm text-gray-500 hover:bg-gray-100 fixed bottom-20 right-2;
}

.custom-container {@apply container mx-auto px-4 md:px-6 py-10;}

.custom-container.with-sidebar {@apply grid grid-cols-1 lg:grid-cols-3 2xl:grid-cols-4 gap-6;}

.container-not-found {@apply custom-container h-full px-6 py-20 flex items-center justify-center;}

.content-area {@apply w-full col-span-1 lg:col-span-2 2xl:col-span-3 order-2 lg:order-1;}

.textarea,
input[type="text"],
input[type="email"],
input[type="url"] {
  @apply w-full border border-gray-300 rounded-md p-3 focus:ring-2 focus:ring-pink;
}

.textarea {@apply resize-none h-32;}

.button {
  @apply inline-block px-6 py-3 bg-grey hover:bg-pink cursor-pointer text-white rounded-full hover:bg-opacity-90 transition-all duration-300 ease-in-out mt-4;
}

/* Social Icons */
.social-icons {@apply list-none flex mb-0 flex-wrap gap-4;}

.social-icons li a {@apply text-grey hover:text-pink transition-all duration-300 ease-in-out;}

.social-icons .social-icons-title {@apply text-gray-500 hover:text-pink;}

.image-scale {
  @apply w-full h-full object-cover object-center group-hover:scale-110 transition-all duration-300 ease-in-out;
}

.floating-icon {
  @apply absolute right-4 w-10 h-10 flex items-center justify-center rounded-full bg-pink text-white shadow-lg;
}

/* Post Floating Icon */
.floating-icon-top {@apply -top-5;}

.floating-icon-bottom {@apply bottom-4;}

/****************************************************************************************/

/* Header Css */
header {@apply py-10 bg-white relative w-full !border-t-0 !border-l-0 !border-r-0 !px-0;}

.header-inner {@apply flex flex-col xxs:flex-row gap-4 justify-between lg:justify-normal xxs:items-center;}

#menu-header-menu,
.menu-header-menu-container {@apply h-full lg:h-auto;}

#menu-header-menu {@apply flex-col lg:flex-row m-0 lg:ml-12;}

.navbar-wrap {
  @apply shadow-lg lg:shadow-none fixed lg:relative -translate-x-full lg:translate-x-0 w-64 lg:w-auto h-screen lg:h-auto transition-all duration-300 ease-in-out bg-white top-0 left-0 lg:flex flex-1 items-center basis-0 py-5 lg:p-0 z-50;
}

.navbar-wrap.active {@apply translate-x-0;}

.mobile-menu-overlay {
  @apply fixed inset-x-0 inset-y-0 bg-grey/40 w-full h-full opacity-0 invisible flex items-start justify-end p-5 transition-all duration-300 ease-in-out z-50;
}

.mobile-menu-overlay.active {@apply visible opacity-100 lg:opacity-0 lg:invisible;}

.mobile-menu-overlay i {@apply text-grey bg-white rounded-full size-8 flex items-center justify-center text-sm;}

.navbar-wrap .menu {@apply lg:flex lg:flex-wrap lg:ms-12;}

.navbar-wrap .menu li.current_page_parent > a,
.navbar-wrap .menu li.current-menu-ancestor > a,
.navbar-wrap .menu li.current-menu-item > a {
  @apply text-pink;
}

.navbar-wrap .menu li .menu-arrow.is-open {transform: rotate(180deg);}

.navbar-wrap .menu li.current_page_parent > .menu-arrow,
.navbar-wrap .menu li.current-menu-ancestor > .menu-arrow,
.navbar-wrap .menu li.current-menu-item > .menu-arrow {
  @apply !text-pink;
}

.navbar-wrap .menu li:hover:not(.current-menu-item):not(.current-menu-parent):not(.current-menu-ancestor) > .menu-arrow,
.navbar-wrap .menu li:hover:not(.current-menu-item):not(.current-menu-parent):not(.current-menu-ancestor) > a {
  @apply !text-grey;
}

.navbar-wrap .menu li a {
  @apply block lg:inline-block px-5 pe-14 lg:px-5 py-2 text-gray-500 text-sm no-underline transition-all duration-300 ease-in-out;
}
.navbar-wrap .menu li.menu-item-has-children > a {@apply lg:pe-10;}
.navbar-wrap .menu > li > a {@apply py-2 lg:py-6;}

.navbar-wrap .menu li.menu-item-has-children {@apply relative;}

.navbar-wrap .menu li.menu-item-has-children .menu-arrow {@apply text-gray-500 transition-all duration-300 ease-in-out lg:hidden;}

.navbar-wrap .menu > li.menu-item-has-children > .menu-arrow {@apply block;}

.navbar-wrap .menu > li.menu-item-has-children ul.sub-menu {
  @apply bg-white lg:border lg:border-gray-200 static lg:absolute lg:rounded min-w-44 opacity-0 invisible lg:z-0
    before:content-['']
    before:absolute
    before:-top-2
    before:left-5
    before:border-l-8
    before:border-r-8
    before:border-b-8
    before:border-l-transparent
    before:border-r-transparent
    before:border-b-gray-200;
}

.navbar-wrap .menu li.menu-item-has-children ul.sub-menu li a {@apply w-full lg:px-5;}

.navbar-wrap .menu > li.menu-item-has-children > ul.sub-menu > li > ul.sub-menu {
  @apply left-full top-0 
    before:top-2
    before:-left-4
    before:border-t-8
    before:border-t-transparent
    before:border-b-transparent
    before:border-r-gray-200;
}

.header-right {@apply flex flex-wrap gap-4 sm:gap-6 items-center w-full justify-between xxs:w-auto;}

.header-buttons {@apply flex lg:hidden flex-wrap items-center gap-4;}
/* #open-menu {@apply flex lg:hidden;} */
/* .main-post {@apply bottom-12 inset-x-12 absolute z-10;} */
/****************************************************************************************/

/* Main Post */
.main-post-wrapper {@apply grid grid-cols-1 md:grid-cols-2 xl:grid-cols-2 2xl:grid-cols-3 gap-4;}
.author-posts-wrapper {@apply grid md:grid-cols-2 xl:grid-cols-1 gap-4;}
.main-post-wrapper-without-sidebar {@apply grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-4;}

.main-post-image-wrapper {@apply relative max-h-60 h-60 overflow-hidden;}

.post-shadow {@apply bg-white rounded-xl shadow-md hover:shadow-xl transition-all duration-300 ease-in-out overflow-hidden;}

.post-title {@apply text-xl font-bold text-grey lowercase first-letter:capitalize mb-2 leading-snug group-hover:text-pink transition-all duration-300 ease-in-out break-words;}

.main-post-category {@apply flex flex-wrap gap-1;}
.main-post-category.with-tags {@apply mt-2;}

.main-post-category .post-text {@apply text-sm text-grey font-medium;}

.main-post-category .post-link {@apply text-gray-500 text-sm hover:text-pink transition-all;}

.main-post-excerpt {@apply text-gray-500 text-sm leading-relaxed mt-3;}

.read-more {@apply text-grey font-medium inline-block break-words;}

/* .wrap {@apply relative rounded-xl overflow-hidden; box-shadow: 0 8px 20px rgb(32 54 86 / 0.3);} */

/* Post Pagination */
.nav-links {@apply flex justify-center gap-2.5 mt-16 mb-6 w-full;}

.nav-links .page-numbers {
  @apply bg-white border border-gray-200 rounded-full size-10 flex items-center justify-center text-gray-500 hover:bg-pink hover:border-pink hover:text-white transition-all duration-300 ease-in-out;
}

.nav-links .page-numbers.next,
.nav-links .page-numbers.prev {
  @apply w-auto h-auto;
}

.nav-links .page-numbers.current {@apply bg-pink border-pink text-white;}
/****************************************************************************************/

/* Single Page Css */
.breadcrumbs {@apply text-sm text-gray-500 mb-4;}

.breadcrumbs span:last-child {@apply break-words;}

.single-post-image-wrapper {@apply relative rounded-lg overflow-hidden w-full xl:w-full max-w-full;}

.single-post-title {@apply text-2xl lg:text-4xl font-bold text-grey mb-4 leading-snug lowercase first-letter:capitalize break-words;}
.single-post-category {@apply flex flex-wrap gap-2 pb-6;}

.single-post-category-title {@apply bg-pink text-white text-sm px-4 py-1 rounded-full;}

.single-post-share-icons {@apply grid grid-cols-2 items-start py-10 border-t border-gray-200;}

.single-post-share-icons-inner {@apply flex gap-2 flex-col;}

.single-post-share-icons-inner .share-text {@apply block text-sm text-gray-500 font-semibold;}

.post-description p {@apply mb-6 last:mb-0;}

.post-description {@apply text-gray-500 text-sm py-10 leading-relaxed;}

.post-description blockquote {
  @apply p-8 my-16 relative text-lg text-center;
}
.post-description blockquote:before {
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    content: "\f10d";  
    position: absolute;
    left: 50%;
    top: -32px;
    transform: translateX(-50%); 
    font-size: 44px;
    color: #203656;
    z-index: 1;

    font-style: italic;
    background-color: #fff;
    text-align: center;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    padding-right: 5px;
}
.post-description blockquote:after {
    border: 1px solid #e5e7eb;
    border-left: 0;
    border-right: 0;
    bottom: 0;
    content: "";
    display: block;
    left: 50%;
    margin-left: -4.5em;
    position: absolute;
    top: 0;
    width: 9em;
    z-index: 0;
}

.post-description ul,
.post-description ol {
  @apply list-none my-10 last:mb-0 flex flex-col gap-2 pl-10;
}
.post-description ul li,
.post-description ol li {@apply pl-4 relative before:absolute before:content-[''] before:left-0 before:size-1.5 before:bg-gray-500 before:top-2 before:rounded-full;}

.post-description a {@apply text-grey hover:text-pink underline transition-all duration-300 ease-in-out;}

/* Single Page Pagination */
.single-post .nav-links {@apply flex-col sm:flex-row justify-between gap-6 mt-0 mb-0;}

.single-post .nav-links .nav-previous a,
.single-post .nav-links .nav-next a {
  @apply rounded-lg bg-white border border-gray-200 inline-block p-8 text-lg leading-6 text-grey font-bold hover:text-pink transition-all duration-300 ease-in-out w-full sm:max-w-96 sm:min-w-96 h-full;
}

.single-post .nav-links .nav-next {@apply text-end;}

.single-post-pagination {@apply flex justify-between items-center my-10 border-y py-10;}

.single-post-pagination .pagination-text {@apply text-gray-500 text-sm font-normal inline-block mb-2;}

.single-post-pagination .pagination-link {@apply block font-bold break-words;}

.post-media {@apply mt-10;}

.post-media img {@apply w-full rounded-lg;}

.post-media iframe {@apply w-full h-[210px] sm:h-[333px] md:h-[405px] lg:h-[362px] xl:h-[457px] 2xl:h-[625px] rounded-lg;}

.swiper-button-next,
.swiper-button-prev {
  @apply !size-6  text-white hover:text-pink transition-all duration-300 ease-in-out !top-56;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  @apply text-2xl text-gray-500 hover:text-pink;
}

/****************************************************************************************/

/* Comment Form */
.children {@apply ml-2.5 md:ml-10 mt-4 pl-5 border-l border-gray-200 space-y-4;}

.comment-reply-link {@apply hover:text-pink transition;}

.comment-reply-title {@apply mb-0;}

.comment-notes,
.logged-in-as {
  @apply text-grey text-sm mb-2;
}

.logged-in-as a {@apply text-grey  font-semibold hover:text-pink transition-all duration-300 ease-in-out;}

.logged-in-as .required-field-message {@apply hidden;}

.required-field-message {@apply block;}

.required-field-message .required {@apply text-red-400;}

#commentform label {@apply text-sm font-bold text-grey;}

#commentform .comment-form-cookies-consent label {@apply font-normal;}

.comment-wrapper {@apply bg-gray-100 hover:!bg-gray-300 transition rounded-md px-3 py-2;}

.comment-text {@apply text-sm text-gray-700 leading-relaxed;}

.author-badge {@apply text-[10px] bg-pink text-white px-1.5 py-0.5 leading-3 rounded-full font-medium;}

.author-username {@apply font-semibold text-sm text-[#283656] capitalize;}

.comment-meta-wrapper {@apply flex items-center gap-4 mt-1 text-xs text-gray-500;}

.comment-respond {@apply mt-12;}
/****************************************************************************************/

/* Archive Page */
.archive-main-wrap {@apply pt-10 pb-0 px-4 md:px-6;}

.archive-main-wrap p {@apply text-sm text-gray-500 mt-2;}

.archive-wrapper {@apply text-xl font-bold text-gray-800 leading-snug flex flex-col-reverse sm:flex-row gap-4 sm:items-center justify-between flex-wrap;}

.archive-wrapper .archive-selected-category {@apply inline-block px-3 py-1.5 rounded-full border border-gray-200 text-gray-500 text-sm font-normal ms-2;}

.archive-wrapper-wtih-filter {@apply justify-between;}

.tags-wrapper {@apply my-10 flex flex-wrap gap-x-2 gap-y-2;}

.category-wrapper {@apply my-10;}
.category-list .category-wrapper {
  @apply grid grid-cols-4 gap-2;
}
.category-list .category-wrapper .topics-wrapper {
  @apply after:hidden border border-gray-200 rounded p-2.5;
}

.tags {
  @apply inline-block px-3 py-1.5 rounded-full border border-gray-200 text-gray-500 text-sm font-normal hover:border-pink hover:text-pink transition-all duration-300 ease-in-out;
}
.view-all-categories,
.view-all-tags {@apply text-center;}
.view-all-categories a,
.view-all-tags a {
  @apply text-grey text-xs font-medium lowercase inline-block first-letter:capitalize underline hover:text-pink;
}
.clear-all {@apply flex items-center gap-1 no-underline text-sm text-grey hover:text-pink transition-all;}

/******************************************************************************************************/

/* Author Page */
.author-wrapper {@apply flex items-center text-sm text-gray-400 mb-4 space-x-3;}

.author-wrapper .author-name {@apply block capitalize text-grey text-sm font-medium;}

.author-link {@apply hover:text-pink transition;}

.author-date {@apply text-tiny text-gray-500;}

.author-details-wrapper {@apply p-6 bg-author rounded-lg flex flex-col sm:flex-row gap-2 sm:gap-5 items-start;}

.author-details-wrapper .author-image-link {@apply inline-block w-16 h-16 md:w-24 md:h-24 rounded-full overflow-hidden;}

.author-details-wrapper .author-info {@apply text-xl font-bold text-grey capitalize;}

.author-details-wrapper .author-text-link {@apply font-bold hover:text-pink transition;}

.author-details-wrapper .author-bio {@apply text-gray-500 text-sm mt-2 leading-relaxed;}
.author-details-wrapper .social-icons {@apply mt-3;}
.author-post-wrapper {@apply flex flex-col xl:flex-row flex-wrap xl:py-6 xl:px-6 xl:gap-6;}

.author-post-image {@apply relative max-h-60 h-60 xl:w-72 xl:rounded-lg overflow-hidden;}

.author-post-content {@apply relative p-6 xl:p-0 w-full xl:w-[calc(100%-312px)];}

/********************************************************************************************************/

/* 404 Page */
.not-found-title {@apply text-5xl text-grey font-bold mb-0 mt-0 capitalize;}

.not-found-sub-title {@apply text-xl font-semibold text-grey mb-4 mt-2;}

.not-found-description {@apply text-gray-500 text-sm leading-relaxed my-3;}


/**********************************************************************************************************************************************/
/* Search Form */
.search-form {@apply relative flex-1;}

.search-form input[type="search"] {
  @apply border border-gray-200 rounded-lg overflow-hidden ps-3 pe-10 py-2 w-full text-sm text-gray-400 placeholder:text-gray-500;
}

.search-form button {@apply absolute right-3 top-1/2 -translate-y-1/2 text-gray-200;}

/**********************************************************************************************************************************************/

/* Responsive Css */
@media screen and (max-width: 1023px) {
  .navbar-wrap .menu > li.menu-item-has-children ul.sub-menu {
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
  }
  
  .navbar-wrap .menu li.menu-item-has-children.submenu-open > ul.sub-menu {
    height: auto; overflow:visible; opacity: 1; visibility: visible;
  }
  
    .navbar-wrap .menu > li.menu-item-has-children ul.sub-menu::before {display: none;}
    
    .navbar-wrap .menu li.menu-item-has-children > .sub-menu > li > a {padding-left: 36px;}

    .navbar-wrap .menu li.menu-item-has-children > .sub-menu > li.menu-item-has-children > ul.sub-menu > li > a {padding-left: 52px;}
  }
  @media screen and (min-width: 1024px) {
    .navbar-wrap .menu > li.menu-item-has-children:hover > ul.sub-menu,
    .navbar-wrap .menu > li.menu-item-has-children:focus-within > ul.sub-menu {opacity: 1; visibility: visible; z-index: 50;}

    .navbar-wrap .menu > li.menu-item-has-children > ul.sub-menu > li.menu-item-has-children:hover > ul.sub-menu,
    .navbar-wrap .menu > li.menu-item-has-children > ul.sub-menu > li.menu-item-has-children:focus-within > ul.sub-menu {opacity: 1; visibility: visible; z-index: 50;}
}
/**********************************************************************************************************************************************/

/* Plugin Css */
/* Sidebar About Content Css */
.sidebar-area .sidebar {
  @apply lg:sticky lg:top-[108px];
}
.sidebar-area {
  @apply w-full col-span-1 lg:col-span-1 order-1 lg:order-2;
}
.sidebar .sidebar-wrapper {
  @apply py-6 sm:py-8 px-4 sm:px-6 bg-white border border-gray-200 rounded-xl mb-5;
}
.sidebar .sidebar-about-wrapper > div {@apply min-h-36;}
.sidebar .sidebar_about_logo {
  @apply flex flex-col text-center gap-6 relative;
}
.sidebar .sidebar_about_logo ul {
  @apply justify-center;
}
.sidebar .sidebar_about_logo img {
  @apply mx-auto;
}
.sidebar-tags-wrapper ul li.active-tag a,
.sidebar-categories-wrapper ul li.active-category a {
  @apply text-pink;
}
.sidebar-tags-wrapper ul li.active-tag a {
  @apply border-pink;
}
.sidebar-title {
  @apply text-center mb-4 mt-0;
}
.archive-main-wrap .sidebar-title {
  @apply text-start;
}
.sidebar-title-border {
  @apply flex justify-center mb-2;
}
.archive-main-wrap .sidebar-title-border {@apply justify-start;}
.sidebar-about-map {
  @apply w-auto absolute inset-x-0 z-0 h-full max-h-40 mx-auto;
}
.category-title-wrapper {
  @apply flex items-center justify-between gap-2 mb-4;
}
.category-title-wrapper .sidebar-title {@apply mb-0;}
.topics-wrapper {
  @apply flex items-center justify-between py-3 last:pb-0 relative after:content-[''] after:block after:h-[1px] after:w-full after:bg-fade-right after:top-0 after:absolute;
}
.topics-wrapper .topics {
  @apply text-grey text-sm font-semibold hover:text-pink relative pl-9;
}
.topics-wrapper .topics-icon {
  @apply absolute left-0 top-1 text-xs text-pink;
}
.topics-wrapper .topics-count {
  @apply text-tiny text-gray-500;
}
.sidebar-about-content {
  @apply text-sm text-gray-500;
}
/****************************************************************************************/
/* Popular Post Css */
.popular-post-wrapper {
  @apply relative flex gap-4 xl:gap-6 py-3 sm:py-6 last:pb-0 after:content-[''] after:block after:h-[1px] after:w-full after:bg-fade-left after:bottom-0 after:absolute last:after:hidden;
}
.popular-post-image {@apply w-12 h-12 xl:w-16 xl:h-16 rounded-full overflow-hidden shrink-0;}

.popular-post-content-wrapper {@apply text-sm text-grey;}

.popular-post-title {
  @apply block lowercase first-letter:capitalize font-semibold leading-5 group-hover:text-pink transition-all duration-300 ease-in-out;
}
.about-title {
  @apply m-0;
}