/* Font Faces */
@font-face {
    font-family: 'Roboto-Regular';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto-Bold';
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto-SemiBold';
    src: url('../fonts/Roboto-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto-Medium';
    src: url('../fonts/Roboto-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto-Light';
    src: url('../fonts/Roboto-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto-ExtraLight';
    src: url('../fonts/Roboto-ExtraLight.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto-Thin';
    src: url('../fonts/Roboto-Thin.ttf') format('truetype');
}

/* Base Styles */
body {
    font-family: 'Roboto-Regular';
}

p {
    margin: 0;
}

/* Containers */
.custom-container,
.custom-container-80 {
    max-width: 1400px;
    margin: 0 auto;
}

.custom-container {
    width: 100%;
}

.custom-container-80 {
    width: 80%;
}

/* Utility Classes */
.pt-100 {
    padding-top: 100px;
}

.pt-80 {
    padding-top: 80px;
}

.pt-50 {
    padding-top: 50px;
}

.pt-45 {
    padding-top: 45px;
}

.pt-15 {
    padding-top: 15px;
}

.pb-15 {
    padding-bottom: 15px;
}

.pb-25 {
    padding-bottom: 25px;
}

.pb-50 {
    padding-bottom: 50px;
}

.pb-80 {
    padding-bottom: 80px;
}

.mw_90 {
    max-width: 90%;
}

.mw_80 {
    max-width: 80%;
}

/* Accessibility */
.h1-home {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
}

/* Banner Heading */
.title-banner {
    background-size: cover;
    background-position: center;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.page-heading {
    margin: 0;
    font-size: 36px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.navbar-container {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-content-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo .navbar-brand img {
    width: 120px;
    height: auto;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.nav-links ul li {
    display: inline;
}

.nav-links ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: color 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-links ul li a:hover {
    color: #dddffb;
}

.nav-links a.active,
.navbar-nav a.active {
    color: #dddffb;
    font-weight: bold;
    border-bottom: 2px solid #dddffb;
}

.nav-links a:not(.no-underline)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-links a:not(.no-underline):hover::after {
    width: 100%;
}


/* Search Icon */
.search-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    transition: filter 0.3s;
}

@keyframes fadePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.search-icon:hover {
    animation: fadePulse 1.5s infinite ease-in-out;
    transform: scale(1);
}

/* Mobile Navigation */
.custom-toggler {
    display: none;
}

.custom-toggler-icon {
    width: 50px;
    height: 50px;
    background-color: #FFFFFF33;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.hamburger-icon {
    width: 20px;
    height: 3px;
    background-color: white;
    position: relative;
}

.hamburger-icon:before,
.hamburger-icon:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.hamburger-icon:before {
    top: -8px;
}

.hamburger-icon:after {
    top: 8px;
}

.mobile-nav-right {
    display: none;
}

#offcanvasNavbar {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
}

#offcanvasNavbar .nav-link,
#offcanvasNavbar .offcanvas-title {
    color: white !important;
}

.offcanvas-header {
    justify-content: space-between;
}

/* Search Form */
.search-form {
    margin-bottom: 30px;
}

.search-form input {
    padding: 10px;
    width: 60%;
    max-width: 400px;
    margin-right: 10px;
}

.search-form button {
    padding: 10px 20px;
}

.search-field {
    padding: 10px 20px;
    border-radius: 40px;
    border: 1px solid #000;
    font-size: 14px;
    width: 60%;
    max-width: 400px;
    outline: none;
    transition: 0.3s ease-in-out;
}

.search-field:focus {
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.search-submit {
    background-color: #000000;
    border-radius: 40px;
    font-size: 14px;
    color: #ffffff;
    padding: 10px 30px;
    transition: 0.3s ease-in-out;
    min-width: 120px;
    border: 1px solid #000000;
}

.search-submit:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Search Results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.search-result-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.result-thumb img {
    width: 150px;
    height: auto;
    object-fit: cover;
}

.result-content {
    flex: 1;
}

.search-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Carousel */
.carousel-item {
    position: relative;
    height: 500px;
    color: white;
    background-size: cover;
    background-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.carousel-content {
    max-width: 700px;
    text-align: center;
}

.cat-label-carousel {
    justify-content: center;
}

.carousel-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-meta {
    font-size: 0.9rem;
    color: #ccc;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 60% 60%;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #525CEB;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: #3f48cc;
}

/* Category Colors */
/* :root {

    --cat-games: #e74c3c;
    --cat-games-bg: #fdecea;
    --cat-tech: #3498db;
    --cat-tech-bg: #e8f4fd;
    --cat-news: #2ecc71;
    --cat-news-bg: #e6f9ee;
    --cat-lifestyle: #f39c12;
    --cat-lifestyle-bg: #fef5e7;
    --cat-uncategorized: #95a5a6;
    --cat-uncategorized-bg: #f8f9fa;
    
    
    --cat-hogwarts: #8e44ad;
    --cat-hogwarts-bg: #f4ecf7;
    --cat-fifa: #27ae60;
    --cat-fifa-bg: #e8f8f0;
    --cat-cod: #c0392b;
    --cat-cod-bg: #fadbd8;
    --cat-programming: #2980b9;
    --cat-programming-bg: #eaf2f8;
    --cat-gadgets: #e67e22;
    --cat-gadgets-bg: #fbeee6;
    --cat-smartphones: #16a085;
    --cat-smartphones-bg: #e8f6f3;
    --cat-world-news: #d35400;
    --cat-world-news-bg: #fdf2e9;
    --cat-local-news: #7f8c8d;
    --cat-local-news-bg: #f8f9fa;
    --cat-health: #e91e63;
    --cat-health-bg: #fce4ec;
    --cat-travel: #009688;
    --cat-travel-bg: #e0f2f1;
    --cat-default: #6c757d;
    --cat-default-bg: #f8f9fa;
} */

/* Category Classes */
/* .cat-01 { --bloghash-primary: var(--cat-games); --bloghash-primary_80: var(--cat-games-bg); }
.cat-02 { --bloghash-primary: var(--cat-tech); --bloghash-primary_80: var(--cat-tech-bg); }
.cat-03 { --bloghash-primary: var(--cat-news); --bloghash-primary_80: var(--cat-news-bg); }
.cat-04 { --bloghash-primary: var(--cat-lifestyle); --bloghash-primary_80: var(--cat-lifestyle-bg); }
.cat-99 { --bloghash-primary: var(--cat-uncategorized); --bloghash-primary_80: var(--cat-uncategorized-bg); }

.child-cat-01 { --bloghash-primary: var(--cat-hogwarts); --bloghash-primary_80: var(--cat-hogwarts-bg); }
.child-cat-02 { --bloghash-primary: var(--cat-fifa); --bloghash-primary_80: var(--cat-fifa-bg); }
.child-cat-03 { --bloghash-primary: var(--cat-cod); --bloghash-primary_80: var(--cat-cod-bg); }
.child-cat-04 { --bloghash-primary: var(--cat-programming); --bloghash-primary_80: var(--cat-programming-bg); }
.child-cat-05 { --bloghash-primary: var(--cat-gadgets); --bloghash-primary_80: var(--cat-gadgets-bg); }
.child-cat-06 { --bloghash-primary: var(--cat-smartphones); --bloghash-primary_80: var(--cat-smartphones-bg); }
.child-cat-07 { --bloghash-primary: var(--cat-world-news); --bloghash-primary_80: var(--cat-world-news-bg); }
.child-cat-08 { --bloghash-primary: var(--cat-local-news); --bloghash-primary_80: var(--cat-local-news-bg); }
.child-cat-09 { --bloghash-primary: var(--cat-health); --bloghash-primary_80: var(--cat-health-bg); }
.child-cat-10 { --bloghash-primary: var(--cat-travel); --bloghash-primary_80: var(--cat-travel-bg); }
.child-cat-default { --bloghash-primary: var(--cat-default); --bloghash-primary_80: var(--cat-default-bg); } */

/* Category Links */
.cat-links-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.post-category .cat-links a {
    --bloghash-radius: 0;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    font-size: 12px;
    padding: 7px 18px 7px 12px;
    letter-spacing: 0.06em;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    border-radius: var(--bloghash-radius);
    color: var(--bloghash-primary);
    background-color: var(--bloghash-primary_80);
    transition: all 0.3s ease;
}

.post-category .cat-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-post {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

@media (min-width: 768px) {
    .blog-post {
        flex-direction: row;
        align-items: stretch;
        /* important: ensures both children fill equal height */
    }
}

.blog-img {
    flex: 1 1 50%;
    overflow: hidden;
    position: relative;
}

.blog-img img {
    position: absolute;
    inset: 0;
    /* shorthand for top: 0; right: 0; bottom: 0; left: 0; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}

/**/
.blog-post {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    background: #fff;
    /* border-radius: 0.5rem; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

@media (min-width: 768px) {
    .blog-post {
        flex-direction: row;
    }

    /* Swap image and content for even posts if you want */
    .blog-post:nth-child(even) .blog-img {
        order: 2;
    }

    .blog-post:nth-child(even) .blog-content {
        order: 1;
    }
}

.blog-img {
    flex: 1 1 50%;
}

.blog-content {
    flex: 1 1 50%;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-content a.fw-semibold {
    margin-top: auto;
    align-self: flex-end;
    /* Default: move button to bottom-right */
    text-decoration: none;
    color: #525CEB;
}

/* For even blog posts, align Read More button to bottom-left */
.blog-post:nth-child(even) .blog-content a.fw-semibold {
    align-self: flex-start;
}

@media (max-width: 768px) {

    .blog-post:nth-child(even) .blog-content a.fw-semibold {
        align-self: flex-end;
    }

    .blog-img img {
        position: static;
        max-height: 250px;
    }
}


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

/* Preview Cards */
.preview-card {
    background: #fff;
    box-shadow: 0px 3px 10px rgba(34, 35, 58, 0.2);
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.preview-card:hover {
    transform: translateY(-10px);
}

.preview-card__image-container {
    position: relative;
    overflow: hidden;
}

.preview-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.preview-card__content {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.preview-card__text-container {
    flex-grow: 1;
}

.preview-card__code {
    color: #7b7992;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.preview-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #0d0925;
    margin-bottom: 10px;
}

.preview-card__title a {
    text-decoration: none;
    color: #0d0925;
}

.preview-card__text {
    color: #4e4a67;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-card__button {
    display: inline-block;
    background: linear-gradient(147deg, #000 0%, #000 74%);
    padding: 10px 25px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-family: 'Roboto-Medium';
    transition: 0.3s;
}

.preview-card__button:hover {
    background: #333;
}

.preview-card__image-container .post-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.preview-card__image-container .cat-links a {
    font-size: 11px;
    padding: 6px 16px 6px 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.pagination-wrapper ul {
    display: inline-flex;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-wrapper li {
    display: inline;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-block;
    padding: 8px 14px;
    background: #f1f1f1;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.pagination-wrapper a:hover {
    background: #0073aa;
    color: #fff;
}

.pagination-wrapper .current {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}

/* Entry Meta */
.sticky-sidebar {
    position: sticky;
    top: 65px;
}

.entry-meta {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.entry-meta span {
    display: flex;
    align-items: center;
}

.meta-light {
    color: darkblue;
}

.meta-icon {
    width: 14px;
    height: 14px;
    margin: 0 5px;
    vertical-align: middle;
    opacity: 0.7;
}

.entry-date::before {
    content: "•";
    margin: 0 8px;
    color: #aaa;
    font-weight: bold;
}

/* Contact Form */
.form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
    padding: 20px 15px;
}

.cont-btn-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cont-btn-row p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-input {
    border: none;
    border-bottom: 2px solid #6c757d;
    border-radius: 0px;
    padding: 10px 0;
    width: 100%;
}

.contact-input:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    outline: 0;
    border-color: #6c757d;
    box-shadow: none;
}

.contact-input::placeholder {
    font-size: 14px;
}

.contact-btn {
    background-color: #000000;
    border-radius: 40px;
    font-size: 14px;
    color: #ffffff;
    padding: 10px 30px;
    transition: 0.3s ease-in-out;
    min-width: 120px;
    border: 1px solid #000000;
}

.contact-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-top: 100px;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #000000;
}

.footer-content-wrap {
    background-color: #ffffff;
    color: #000000;
    margin-top: 50px;
}

.footer-logo .footer-brand img {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    display: inline;
}

.footer-links ul li a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    transition: color 0.3s ease-in-out;
    position: relative;
}

.footer-links ul li a:hover {
    color: #007bff;
}

.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-row-one {
    margin-bottom: 50px;
}

.copyright {
    gap: 20px;
    display: flex;
    justify-content: center;
}

.newsletter-column {
    display: flex;
    justify-content: end;
}

.footer-newsletter p {
    color: #000000;
    padding-bottom: 15px;
    font-size: 16px;
}

.sub-btn {
    background-color: #000000;
    border-radius: 40px;
    font-size: 14px;
    color: #ffffff;
    padding: 10px 30px;
    transition: 0.3s ease-in-out;
    min-width: 120px;
    margin-left: 15px;
}

.sub-btn:hover {
    background-color: var(--main-btn-hover);
    color: #000000;
}

.newsletter-inp-box {
    border: 1px solid #707070;
    width: 280px;
    border-radius: 0;
    padding: 0px 10px;
}

.newsletter-inp-box::placeholder {
    color: #8D8D8D;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: -80px;
    right: 30px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    width: auto;
    height: auto;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.back-to-top img {
    width: 25px;
    height: 25px;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.back-to-top:hover img {
    transform: translateY(-5px);
}

/*Advertisement*/
.ad-container {
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically if needed */
    width: 100%;
    padding: 20px 0;
    /* Optional: spacing above/below */
}

iframe {
    display: block;
    max-width: 100%;
}