/*
Theme Name: Eduget Custom Theme
Author: Digvijay Singh
Description: A custom WordPress theme with TailwindCSS.
Version: 2.0.0
*/


.bannerModule {
    padding: 150px 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.bannerModule:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    top: 0;
    left: 0;
}

.bannerModuleInner {
    position: relative;
}

.bannerTitle h1 {
    color: #fff;
    font-size: 50px;
    font-weight: 700;
}

.bannerContent {
    padding-top: 10px;
    color: #fff;
    font-size: 20px;
}

.ctaBG {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.ctaBG:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    top: 0;
    left: 0;
}

.ctaInner {
    position: relative;
}

.categories-list-neighboring a {
    display: inline-block;
}

.cta a {
    display: inline-block;
    text-align: center;
}

.searchCustom {
    width: 100%;
    color: var(--left-menu-bg);
    font-weight: 400;
    line-height: 16px;
    border-radius: 100px;
    border: 1px solid var(--light-grey);
    background: #deefff;
    padding: .5rem 3rem;
    -webkit-transition: all .3s;
    font-size: 16px;
    transition: all .3s;
}

input.searchCustom:focus-visible {
    outline: none;
    border-color: #25333F;
    box-shadow: 0 0 0 1px rgb(22 103 114);
}

.post-date-updated {
    color: #6b7280;
}

.post-author-meta {
    flex: 1;
}

.post-card-avatar {
    width: 45px;
    height: 45px
}

.buttonLink a {
    width: 3rem;
    display: block;
    height: 3rem;
}

.post-link-icon {
    width: 3rem;
    height: 3rem;
    display: block;
    border-radius: 50%;
    border: 1px solid #18232b;
    background: url(./assets/images/arr-right-dark.svg) center center / 12px auto no-repeat;
    opacity: 1;
    -webkit-transform: rotate(0);
    -ms-transform: rotate(0);
    transform: rotate(0);
    -webkit-transition: all .15s ease-in;
    transition: all .15s ease-in;
}

.post-card:focus .post-link-icon,
.post-card:hover .post-link-icon,
.one-column:hover .post-link-icon {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    text-decoration: none;
    background-color: #18232B;
    background-image: url(./assets/images/arr-right-white.svg);
}

.one-column {
    margin-bottom: 30px;
}

.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.three-column-grid-wrapper {
    overflow: hidden;
    width: 100%;
}

.three-column-grid {
    display: flex;
    gap: 2rem;
}

.three-column-grid .post-card {
    flex: 0 0 400px;
    margin-right: 2rem;
}


/* Blog listing container */
.blog-listing {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Search section */
.archive-search {
    margin-bottom: 2rem;
}

.search-container {
    padding: 0 2.5rem;
    margin-bottom: 1rem;
}

.search-form {
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #166772;
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #166772;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.search-tip {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    margin-top: 8px;
}

/* Categories navigation */
.categories-section {
    padding: 0 2.5rem;
    margin: 2rem 0;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.category-link {
    padding: 05px 15px;
    background-color: #166772;
    color: white;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-link.active {
    background-color: #0d3d44;
}

/* Posts grid */
.posts-container {
    padding: 0 2.5rem;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.featured-post:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Post card styles */
.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.post-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, #2F404F 0%, #60829F 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-post .post-thumbnail {
    height: 100%;
    min-height: 300px;
}

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

.post-content {
    padding: 2rem;
}

.post-meta {
    margin-bottom: 1rem;
}

.post-category {
    color: #166772;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #1a202c;
}

.featured-post .post-title {
    font-size: 2.2rem;
}

.post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #166772;
}

.post-excerpt {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

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

.post-author {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.post-date {
    font-size: 14px;
    color: #6b7280;
}

.post-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

/* Pagination */
.pagination-container {
    margin-top: 3rem;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    text-decoration: none;
    color: #166772;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #166772;
    color: white;
}

.pagination .current {
    background-color: #166772;
    color: white;
}

.single-post .single-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Post header */
.single-post .post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.single-post .post-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 2rem;
}

.single-post .post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #6b7280;
}

.single-post .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post .meta-updated {
    color: #166772;
    font-weight: 600;
}

.single-post .meta-read-time {
    color: #6b7280;
}

.single-post .meta-author {
    color: #6b7280;
}

.single-post .meta-author strong {
    color: #1a202c;
    font-weight: 600;
}

/* Post thumbnail */
.single-post .post-featured-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* Post content */
.single-post .post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 3rem;
}

.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6 {
    color: #1a202c;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.single-post .post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.single-post .post-content h3 {
    font-size: 1.5rem;
}

.single-post .post-content p {
    margin-bottom: 1.5rem;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post .post-content li {
    margin-bottom: 0.5rem;
}

.single-post .post-content blockquote {
    border-left: 4px solid #166772;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
}

.single-post .post-content a {
    color: #166772;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.single-post .post-content a:hover {
    color: #134a52;
    text-decoration: underline;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-post .post-content pre {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
}

.single-post .post-content code {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Post navigation */
.single-post .post-navigation {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

.single-post .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.single-post .nav-previous,
.single-post .nav-next {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.single-post .nav-previous:hover,
.single-post .nav-next:hover {
    border-color: #166772;
    box-shadow: 0 8px 25px rgba(22, 103, 114, 0.15);
    transform: translateY(-2px);
}

.single-post .nav-previous {
    text-align: left;
}

.single-post .nav-next {
    text-align: right;
}

.single-post .nav-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.single-post .nav-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.single-post .nav-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.single-post .nav-previous .nav-meta {
    justify-content: flex-start;
}

.single-post .nav-next .nav-meta {
    justify-content: flex-end;
}

.single-post .nav-thumbnail {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(180deg, #2F404F 0%, #60829F 100%);
}

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

.single-post .nav-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post .nav-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.single-post .nav-date {
    color: #9ca3af;
}

/* Single column when only one nav item */
.single-post .nav-links.single-nav {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

/* No posts message */
.single-post .no-navigation {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}


@media (max-width:991px) {
    .three-column-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .single-post .single-container {
        max-width: 90%;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .blog-listing {
        padding: 2rem 0;
    }

    .search-container,
    .categories-section,
    .posts-container {
        padding: 0 1rem;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }


    .featured-post .post-thumbnail,
    .post-thumbnail {
        min-height: 250px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .featured-post .post-title {
        font-size: 1.8rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .categories-list {
        flex-direction: column;
        gap: 8px;
    }

    .category-link {
        text-align: center;
    }

    .single-post .single-container {
        padding-top: 40px;

    }

    .single-post .post-title {
        font-size: 2.5rem;
    }

    .single-post .post-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .single-post .nav-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .single-post .nav-next {
        text-align: left;
    }

    .single-post .nav-next .nav-meta {
        justify-content: flex-start;
    }

    .single-post .post-content {
        font-size: 1rem;
    }

    .two-column-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .three-column-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .post-excerpt {
        display: none;
    }

    .single-post .post-navigation {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}


@media (max-width: 480px) {
    .post-content {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.1rem;
    }

    .featured-post .post-title {
        font-size: 1.6rem;
    }

    .post-excerpt {
        font-size: 1rem;
    }

    .single-post .post-title {
        font-size: 2rem;
    }

    .single-post .single-container {
        padding: 40px 0.5rem;
    }

    .single-post .nav-previous,
    .single-post .nav-next {
        padding: 1rem;
    }

    .buttonLink a,
    .post-link-icon {
        width: 2rem;
        height: 2rem;
    }

    .single-post .post-content,
    .post-navigation {
        margin-bottom: 10px;
    }

    .single-post .post-navigation {
        margin-top: 0;
        padding-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    .three-column-grid-wrapper {
        overflow: visible !important;
        padding: 20px 0 !important;
    }

    .three-column-grid {
        display: block !important;
        width: 100% !important;
        transform: none !important;
    }

    .three-column-grid .post-card {
        width: 100%;
        margin: 0 0 30px 0;
    }
}