/* CSS Variables */
:root {
    --base-font-size: 16px;
    --uni-waze-boing-regular: "WazeBoingRegular";
}

/* Base HTML and Body Styles */
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
    font-weight: 300;
    box-sizing: border-box;
    color: #202124;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: var(--base-font-size);
}

/* Typography Reset */
body, h1, h2, h3, h4, h5, h6, p, span, ul, li {
    margin: 0;
    padding: 0;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    margin-bottom: 10px;
}

h1 {font-size: 30px;}
h2 { font-size: 2rem; }
h3 {font-size: 1.8rem;}
h4 { font-size: 1.6rem; }

/* Paragraph and Link Styles */
p { 
    font-size: 1rem; 
    margin-bottom: 1rem; 
}

a { 
    color: #1a73e8; 
    text-decoration: none; 
    transition: color 0.3s; 
}

a:hover { 
    color: #007bff; 
    text-decoration: none; 
}

/* Image Styles */
img { 
    height: auto; 
    width: 100%; 
}

/* Content Link Styles */
.content-paragraphs a, .page-paragraphs a, .author-info a { 
    text-decoration: underline; 
}

.content-paragraphs a:hover, .page-paragraphs a:hover, .author-info a:hover { 
    text-decoration: none; 
}

/* Media Queries */
@media (min-width: 1024px) {
    .single-article-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    :root { 
        --base-font-size: 14px; 
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    p { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    :root { 
        --base-font-size: 12px; 
    }
    
    h1 {font-size: 1.5rem;}
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.0rem; }
    p { font-size: 0.8rem; }
}


/* Header Container */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 12px;
  flex-wrap: wrap; /* Allows items to wrap on smaller screens */
  max-width: 900px;
  margin: auto;
}

/* Logo and Title */
.logo-container {
  padding-left: 2.5rem;
  flex-shrink: 0;
}

.custom-logo-link {
    display: flex;
}

.custom-logo-link img {
    max-width: 100px;
    height: auto;
    max-height: 42px;
    width: auto;
}

.site-title-hidden {
    display: none;
}

.site-title {
  text-transform: uppercase;
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0;
}

.site-title a {
  color: #ffffff;
  background-image: linear-gradient(to right, #2c3a8b, #0797dc) ! IMPORTANT;
  border-radius: 10px;
  padding: 10px;
  text-decoration: none;
  transition: color 0.35s;
}

.site-title a:hover {
  color: #ffffff;
}

/* Navigation Menu  */
.header-navigation {
  flex-grow: 1; /* Allows the menu to take up available space */
  display: flex;
  height: 100%;
  justify-content: flex-start;
}

.header-menu {
  display: flex;
  height: 100%;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.header-menu > ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-menu-item {
  position: relative;
  height: 100%;
  display: flow;
  align-items: center;
  font-size: 0.85rem;
}

.header-menu-item a {
    text-decoration: overline;
    text-decoration-color: #ffc220;
    text-decoration-thickness: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    height: 100%;
    font-weight: 500;
    padding: 0 12px;
    color: #5f6368; /* text color */
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.35s, color 0.35s;
}

.header-menu-item a:hover {
  color: #4285f4;
  border-bottom-color: #4285f4;
}

/* Sub-Menu Styles */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background-color: #f1f1f1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #357ae8;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-menu-item:hover > .sub-menu {
  display: block;
}

.sub-menu li {
  width: 100%;
  white-space: nowrap;
}

.sub-menu li a {
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Dropdown Arrow */
.menu-item-has-children > a::after { /* Target the link within the parent */
    content: "";
    display: inline-block; /* Allows margin and positioning */
    margin-left: 5px; /* Space between text and arrow */
    border-color: #5f6368 transparent transparent;
    border-style: dotted; /* Changed to solid for better arrow rendering */
    border-width: 6px 6px 0px;
    vertical-align: middle; /* Aligns the arrow nicely with text */
}

.menu-item-has-children > a:hover:after {
    border-color: #1a73e8 transparent transparent transparent;
}

/* Search and PWA Button */
.search-container {
  padding-right: 2.5rem;
  position: relative;
  flex-basis: 20%;
  flex-grow: 1;
  max-width: 300px;
}

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.search-field {
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 13px 20px;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.85rem;
  padding-right: 40px; /* Space for the search icon */
}

.search-button {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #5f6368;
  padding: 0;
  min-width: 33px;
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  top: 55%;
  left: 55%;
  transform: translate(-70%, -70%);
}

.search-button::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 7px;
  border-radius: 10px;
  background-color: currentColor;
  transform: rotate(-45deg);
  top: 55%;
  left: 65%;
  transform: translate(0, 0) rotate(-45deg);
}

.pwa-button {
  flex-shrink: 0;
}

#installButton {
  padding: 8px 12px;
  border: 1px solid #1a73e8;
  background-color: #1a73e8;
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.35s;
}

#installButton:hover {
  background-color: #357ae8;
}

/* Mobile Responsiveness */
/* Hide menu toggle checkbox */
#menu-toggle {
  display: none;
}

/* Hide the toggle button by default */
.show-menu-button {
  display: none;
}
@media (max-width: 910px) {
  .search-container {
    display: none;
  }
}
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px;
    height: auto;
  }

  .logo-container {
    padding: 0 0.9rem;
    margin-right: auto;
  }
    
  .site-title {
    font-size: 1.2rem;
  }
    
  .header-navigation {
    flex-basis: 100%;
    order: 1; /* Forces the header container to a new line */
    display: none; /* Hide the menu by default */
  }

  /* Show the mobile menu button */
  .show-menu-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #2c3c8c;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
  }

  .search-container {
    display: none;
  }

  .pwa-button {
    margin-left: auto;
  }

  /* When the checkbox is checked, show the menu */
  #menu-toggle:checked + .show-menu-button ~ .header-navigation {
    display: block;
  }

  /* Style the mobile menu */
  .header-menu {
    flex-direction: column;
    width: 100%;
  }

  .header-menu > ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header-menu-item {
    width: 100%;
    border-bottom: 1px solid #dadce0;
  }

  .header-menu-item a {
    background: #f5f5f5;
    padding: 12px 24px;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    background-color: transparent;
    border-top: none;
  }

  .sub-menu li a {
    padding: 12px 24px;
  }

  .header-menu-item:hover > .sub-menu {
    display: block;
  }

  .menu-item-has-children:after {
    display: none;
  }
}

/* Main Content */
.content {
    display: flex;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 2px 0px inset;
    gap: 2.5rem;
    padding: 37px 0 42px;
    min-height: 100vh;
}

/* Main Content and Sidebar Wrapper */
.content-wrapper {
    display: flex;
    flex-wrap: inherit;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    justify-content: space-between;
}

/* Main Content */
.main-content {
    flex-basis: 100%;
    margin-right: 0;
}


/* Category */
.category-title {
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: initial;
}

.category-header {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    letter-spacing: -0.5px;
    margin: 0 0 48px;
    padding: 0 2.5rem;
}
@media screen and (max-width: 600px) {
.content {
    padding: 22px 0 22px;
}
}
/* Footer */
.site-footer {
    display: flex;
    max-width: 900px;
    margin: auto;
    align-items: center;
    justify-content: space-between;
    color: #202124;
    gap: 24px; /* Consistent spacing */
    flex-wrap: wrap;
}

/* Footer Logo */
.footer-logo {
    margin: 1.5rem 0;
    padding: 0 2.5rem;
    flex-shrink: 0;
}

.footer-logo .site-title a:hover {
    color: #4285f4;
}

/* Footer Copyright */
.footer-copyright {
    flex-shrink: 0;
    padding: 0 2.5rem;
    text-align: right;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.85rem;
}

/* Footer Menu */
.footer-menu {
    flex-grow: 1; /* Allows the menu to take up available space */
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#menu-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu-footer li {
    margin: 0;
}

#menu-footer a {
    color: #5f6368;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#menu-footer a:hover {
    background-color: #e8e8e8;
    color: #202124;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
    .site-footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-logo {
        margin-bottom: 10px;
    }

    .footer-menu {
        flex-grow: 0;
        width: 100%;
        /* order: 1; */ /* Pushes the menu below the logo */
    }

    .footer-copyright {
        text-align: center;
    }

    #menu-footer {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    #menu-footer li {
        width: 100%;
    }

    #menu-footer a {
        display: block;
        width: 100%;
        padding: 12px;
        box-sizing: border-box; /* Ensures consistent padding and width */
        background-color: #e9ecef;
    }
}


.page-content {
    letter-spacing: -0.5px;
    padding: 0 48px;
}

.article-title {
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: initial;
}


/* Button Styles */
button {
    background-color: #1a73e8;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

button a { 
    color: #fff; 
}

/* Single Post Styles */
.single-article {
    display: grid;
    grid-template-columns: repeat(12,minmax(0,1fr));
    grid-template-rows: auto 1fr;
}

.article-header {
    grid-column: 2 / span 10;
    letter-spacing: -0.5px;
    margin: 0 0 48px;
}

.single-article-title {
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: initial;
}

.article-meta {
    border-left: 5px solid #dadce0;
    display: flex;
    gap: 20px;
    letter-spacing: -0.5px;
    margin: 10px 0 0;
    padding-left: 10px;
}

.read-aloud {
    grid-column: 2 / span 10;
    letter-spacing: -0.5px;
    padding: 0 0 20px;
    text-align: center;
}

#settings-button {
    background-color: #6C757D;
    color: #fff;
}

.settings {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: none;
    margin-top: 10px;
    padding: 10px;
    text-align: left;
    z-index: 1;
}

label {
    font-weight: bold;
}

#voice-select {
    margin-top: 5px;
    padding: 5px;
    width: 100%;
}

input[type="range"] {
    margin-top: 5px;
    width: 100%;
}

.close-button {
    margin-top: 10px;
    text-align: center;
}

#settings-open-button {
    background-color: #6C757D;
    color: #fff;
}

#settings-closed-button {
    background-color: #6C757D;
    color: #fff;
}

@media screen and (max-width: 600px) {
    .settings {
        left: 0;
        padding: 10px;
        right: 0;
    }
}

.article-content {
    grid-column: 2 / span 10;
    letter-spacing: -0.5px;
}

.content-paragraphs {
    letter-spacing: -0.5px;
    padding: 0 48px;
}

.content-paragraphs p {
    color: #333333;
    letter-spacing: 0;
    line-height: 1.625;
}

.content-paragraphs ul {
    margin-block-end: 1em;
    padding-inline-start: 40px;
}

.content-paragraphs li {
    margin-block-end: 0.5em;
}

.wp-caption {
    max-width: fit-content;
}

.wp-caption p {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
}

/* Post Tags */
.post-tags {
    grid-column: 2 / span 10;
    letter-spacing: -0.5px;
    margin-top: 10px;
}

.post-tags a {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    background-image: linear-gradient(to right, #F44336, #FF5722) ! IMPORTANT;
    border-radius: 3px;
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
}

.post-tags a:hover {
    background-color: #0073e6;
    color: #fff;
}

/* Post Navigation */
.articles-navigation {
    align-items: center;
    border-top: 1px solid #DEDEDE;
    display: flex;
    grid-column: 2 / span 10;
    justify-content: space-between;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.previous-article,
.next-article {
    align-items: center;
    background-color: #ffffff;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    display: flex;
    margin: 5px;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.previous-article:hover,
.next-article:hover {
    background-color: #f4f4f4;
}

.previous-article a,
.next-article a {
    color: inherit;
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    width: 100%;
}

.previous-article a:hover,
.next-article a:hover {
    color: #0073e6;
}

/* Table Styles */
table {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-collapse: separate;
    border-radius: 8px;
    border-spacing: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    max-width: 100%;
    width: 100%;
}

th {
    background-color: #f2f2f2;
    border: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    padding: 12px;
    text-align: left;
}

td {
    border: 1px solid #e0e0e0;
    padding: 12px;
}

tr:nth-child(even) {
    background-color: #f5f5f5;
}

tr:hover {
    background-color: #e0e0e0;
}

tr {
    transition: background-color 0.3s;
}

/* Breadcrumbs */
.breadcrumb-nav {
    display: grid;
    grid-template-columns: repeat(12,minmax(0,1fr));
    grid-template-rows: auto 1fr;
}

.breadcrumb-cat-nav {
    padding: 0 2.5rem;
}

.breadcrumbs {
    align-items: center;
    display: inline-flex;
    height: 48px;
    justify-content: flex-start;
    padding: 0;
    margin-inline-end: -14px;
    margin-inline-start: -14px;
    grid-column: 2 / span 10;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 1.5;
    text-transform: uppercase;
}

.h_title {
	width: 48px;
    color: #1a73e8;
}

.breadcrumb-link {
    align-items: center;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    padding: 0;
}

.breadcrumb-home {
    display: inline-flex;
    justify-content: center;
    padding: 0;
    height: 16px;
    width: 16px;
}

.breadcrumb-link:hover {
    background-color: #e8f0fe;
    border-radius: 48px;
    color: #174ea6;
    outline: none;
}

.breadcrumb-separator {
    color: #5f6368;
    margin: 0 5px;
}

.c_title {
    color: #1a73e8;
    padding: 0 12px;
}

/* Media Queries for Breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        margin-left: 5px;
    }
    
    .breadcrumb-nav {
        padding-left: 20px;
        align-items: center;
        display: flex;
    }
}

@media (max-width: 600px) {
    .breadcrumb-nav {
        padding-left: 0px;
    }
}

/* Article Category */
.category-container {
    display: grid;
    grid-template-columns: repeat(12,minmax(0,1fr));
    grid-template-rows: auto 1fr;
}

.article-category {
    grid-column: 2 / span 10;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 1.5;
    text-transform: uppercase;
}

.category-link {
    align-items: center;
    display: inline-flex;
    height: 48px;
    justify-content: center;
}

.category-link:hover {
    background-color: #e8f0fe;
    border-radius: 48px;
    color: #1a73e8;
    padding: 0 12px;
    color: #174ea6;
    outline: none;
}

/* Media Queries for Article Category */
@media (max-width: 768px) {
    .category-container {
        display: flex;
        margin-left: 10px;
    }
}


/* Main Category List */
.main-categories-list {
    padding: 0 2.5rem;
}

.main-categories-list h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.main-categories-list ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.main-categories-list li {
    margin-bottom: 10px;
    margin-right: 10px;
}

.main-categories-list a {
    background-color: #FF5722;
    border-radius: 4px;
    color: #ffffff;
    display: inline-block;
    font-weight: 700;
    font-family: Arial, sans-serif;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-categories-list a:hover {
    background-color: #0073e6;
    color: #fff;
}

/* Sub Category List */
.sub-categories-list {
    margin-top: 30px;
    padding: 0 2.5rem;
}

.sub-categories-list h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.sub-categories-list ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.sub-categories-list a {
    margin-bottom: 10px;
    margin-right: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #333;
    display: inline-block;
    font-weight: 700;
    font-family: Arial, sans-serif;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sub-categories-list a:hover {
    background-color: #0073e6;
    color: #fff;
}

/* Featured Image */
.article-image {
    grid-column: 2 / span 10;
    letter-spacing: -0.5px;
    margin: 0;
}

.featured-image {
    margin-bottom: 30px;
    max-height: 436px;
    overflow: hidden;
}

figure {
    margin: 0;
}

.featured-image img {
    display: block;
    height: auto;
    max-height: 436px;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.featured-image img:hover {
    transform: scale(1.05);
}

/* Sidebar */
.sidebar {
    background-color: #fff;
    display: flex;
    flex-basis: calc(33% - 0px);
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    padding-right: 2.5rem;
}



@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        flex-basis: 100%;
        margin-top: 20px;
        padding: 0 2.5rem;
    }
    .post-tags {
        grid-column: 1 / -1;
        padding: 0 2.5rem;
    }
    .article-header, .article-content {
        grid-column: 1/-1;
        padding: 0 2.5rem;
    }
    
    .article-image {
        grid-column: 1/-1;
    }
    
    .content-paragraphs {
        padding: 0;
    }
    
    .featured-image {
        border-radius: 0;
        margin-inline-end: 0;
        margin-inline-start: 0;
    }
    
    .term-content {
        padding: 0 48px;
    }
}

@media (max-width: 600px) {

    .article-header, .article-content {
        grid-column: 1/-1;
        padding: 0 16px;
    }
    .post-tags {
        grid-column: 1 / -1;
        padding: 0 16px;
    }
  }

.widget {
    border-radius: 8px;
    flex-basis: auto;
    transition: all .3s;
}

.article-related-bottom .widget {
    margin: 25px 0 25px;
}

.article-related-bottom {
    background-color: #fff;
    display: block;
    margin: 25px 0 25px;
    padding: 0 24px;
}

/* Widget Title */
.widget-title {
    margin-bottom: 10px;
}

/* Archive Styles */
.archive-title {
    margin-bottom: 20px;
}

.archive-article {
    margin-bottom: 30px;
}

.archive-article h1 {
    margin-bottom: 10px;
}

.archive-article p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Search Results */
.search-title {
    margin-bottom: 20px;
}

.search-article {
    margin-bottom: 30px;
}

.search-article h1 {
    margin-bottom: 10px;
}

.search-article p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* No Results */
.no-results {
    color: #888;
    margin-top: 20px;
}

/* Page Styles */
.page h1 {
    margin-bottom: 15px;
}

.page p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	grid-gap: 24px;
    padding: 0 2.5rem;
}

/* Featured Posts */
.featured-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    padding: 0 2.5rem;
}

.latest-post {
	position: relative;
	border: 1px solid #dadce0;
	border-radius: 8px;
	display: grid;
	grid-template-columns: repeat(12,minmax(0,1fr));
	margin: 0 0 50px;
	transition: all .3s;
}

.latest-post .post-thumbnail {
    grid-column: 1/9;
}

.latest-post .thumbnail-image {
    height: min(100%, 505px);
}

.latest-post .post-category {
    background: white;
    border-radius: 8px 0;
    padding: 10px;
    position: absolute;
    z-index: 999;
}

.featured-info {
    grid-column: 9/13;
    margin-top: 24px;
}

.featured-card {
    display: grid;
    grid-column: 1/14;
    grid-template-columns: repeat(12,minmax(0,1fr));
}

.latest-post .thumbnail-container {
    border-radius: 8px 0 0 8px;
    background-position: 50%;
    background-size: cover;
    display: block;
    height: 0;
    min-height: 351px;
    padding-top: 0;
    transform: translateZ(0);
}

.latest-post:hover {
    box-shadow: 0 2px 3px rgba(54,64,67,.3), 0 6px 10px 4px rgba(54,64,67,.15);
}

.bi-arrow-right {
    background: #dadce0;
    border-radius: 8px 0 0 8px;
    fill: #1a73e8;
    height: 32px;
    padding: 0 36px;
    transition: fill 0.3s ease-in-out;
    width: 32px;
}

.nowrap {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
}

.nowrap a {
    line-height: 0;
}

/* Responsive Font Sizes */
@media (max-width: 1030px) {
    .latest-post {
        align-items: normal;
        border-radius: 8px;
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        max-width: 100%;
        transition: all .3s;
    }
    
    .latest-post .thumbnail-container {
        border-radius: 8px 8px 0 0;
    }
    
    .featured-card {
        align-items: normal;
        border-radius: 8px;
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        max-width: 100%;
    }
    
    .bi.bi-arrow-right {
        border-radius: 8px 0;
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    }
    
    .featured-posts {
        grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    }
    
    .latest-post .thumbnail-container { 
        min-height: 300px; 
    }
}

@media screen and (max-width: 600px) {
.breadcrumb-cat-nav {
    padding: 0;
}
.category-header {margin: 0 0 15px;padding: 0 16px;}
.main-categories-list {
    padding: 0 16px;
}
.sub-categories-list {
    margin-top: 15px;
    padding: 0 16px;
}
.featured-posts {
    padding: 0 16px;
}
.grid-container {
    padding: 0 16px;
}
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .featured-posts {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .latest-post .thumbnail-container { 
        min-height: 250px; 
    }
}

@media (max-width: 280px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .featured-posts {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Grid Item */
.grid-item {
    align-items: normal;
    border: 1px solid #dadce0;
    border-radius: 8px;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    margin: 0 0 25px;
    padding: 0 0 0;
    transition: all .3s;
}

.grid-item:hover {
    box-shadow: 0 2px 3px rgba(54,64,67,.3), 0 6px 10px 4px rgba(54,64,67,.15);
}

.post-category {
    padding: 0 36px;
}

.post-category a {
    align-items: center;
    display: inline-flex;
    flex-direction: row;
    height: 48px;
}

/* Post Title */
.post-title {
    color: #202124;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    margin: 0;
    padding: 0 36px 36px 36px;
}

a:hover .post-title {
    text-decoration: underline;
}

.post-title a {
    color: #202124;
}

/* Post Content */
.post-content {
    color: #202124;
    line-height: 1.6;
    max-height: 139px;
    overflow: hidden;
    padding: 0 36px 36px;
}

.post-content p {
    margin-bottom: 0;
}

/* Thumbnail */
.post-thumbnail {
    margin-top: 0;
}

.thumbnail-link {
    display: block;
    text-decoration: none;
}

.thumbnail-container {
    background: #f1f1f1;
    border: initial;
    border-radius: 0 0 8px 8px;
    margin: 0;
    max-height: 160px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.thumbnail-image {
    height: 160px;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.thumbnail-caption {
    background-color: rgba(0, 0, 0, 0.7);
    bottom: 0;
    color: #fff;
    left: 0;
    padding: 10px;
    position: absolute;
    width: 100%;
}

.img-after-load { 
    filter: opacity(0); 
}

.image-blur { 
    background: #1a73e8; 
    filter: blur(100px);  
}

.image-animation {
  position: relative;
  display: block;
  overflow: hidden;
}

.image-animation::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2; /* sits above the image */
  background: #f1f1f1; /* solid base color */
}

.image-animation::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3; /* sits above base color */
  background: linear-gradient(
    90deg,
    rgba(241,241,241,0) 0%,
    rgba(220,220,220,0.9) 50%,
    rgba(241,241,241,0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1s infinite linear;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Hover Effects */
.thumbnail-container:hover .thumbnail-image {
    transform: scale(1.05);
}

.feed-article:hover .thumbnail-image, 
.link-content:hover .thumbnail-image {
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-numbers {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.page-numbers.current {
    background-color: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

.page-numbers:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Related Posts Widget */
.list-widget-related-posts, 
.grid-widget-related-posts {
    display: grid;
    gap: 24px;
    justify-content: center;
}

.list-widget-related-posts {
    grid-template-columns: repeat(auto-fill, minmax(300px, 2fr));
}

.grid-widget-related-posts {
    grid-template-columns: repeat(auto-fill, minmax(130px, 2fr));
}

.list-related-articles-cards {
    background-color: #fff;
    border-bottom: 1px solid #e9e9e9;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.grid-item-sidebar {
    border: 1px solid #dadce0;
    border-radius: 5px;
    transition: all .3s;
}

.list-related-cards-img {
    border-radius: 10px;
    margin: 0;
    max-height: 160px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.grid-related-cards-img {
    border-radius: 10px 10px 0 0;
    margin: 0;
    max-height: 130px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.list-related-cards-img img {
    border-radius: 10px;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.grid-related-cards-img img {
    height: 130px;
    object-fit: cover;
    transform: scale(0.8);
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.list-related-cards-img img:hover, 
.grid-related-cards-img img:hover {
    transform: scale(1.05);
}

.list-related-a {
    color: #333;
    display: block;
    margin: 0 10px;
    padding: 10px 0;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.grid-related-a {
    color: #333;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.list-related-a h3 {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    padding: 10px;
}

.grid-related-a h3 {
    font-size: 12px;
    font-weight: 300;
    margin: 0;
    height: 28px;
    overflow: hidden;
    padding: 8px;
}

/* Top View Widget */
.widget-related-posts.top-view {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(275px, 2fr));
    position: relative;
    text-align: left;
}

.top-item {
    background: #fff;
    border-radius: 5px;
    height: 124px;
    max-height: 100%;
    overflow: hidden;
    position: relative;
}

.top-related-a {
    display: block;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.top-related-cards-img img {
    border-radius: 5px 5px 0 0;
    height: 124px;
    max-height: 100%;
    object-fit: cover;
    width: 100%;
}

.top-related-a h3 {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
    bottom: 0;
    color: #fff;
    font-size: 18px;
    left: 0;
    margin: 0;
    max-width: 100%;
    padding: 10px;
    position: absolute;
    text-shadow: 0px 1px 0px #000;
    width: -webkit-fill-available;
}

/* Related by Keywords */
.related-by-keywords {
    display: block;
    margin-bottom: 20px;
}

.widget-by-keywords h3 {
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
}

.by-keyword {
    align-items: center;
    display: flex;
    margin-right: 20px;
}

.related-keyword-thumbnail {
    padding-right: 10px;
}

.related-keyword-thumbnail img {
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 64px;
    width: 64px;
}

.by-keyword h3 {
    flex-grow: 1;
    font-size: 16px;
    text-align: left;
    text-transform: capitalize;
}

.by-keyword h3 a {
    color: #333;
    text-decoration: none;
}

.by-keyword h3 a:hover {
    text-decoration: underline;
}

/* Same Category Posts */
.same-category-posts-widget-item a {
    border-left: 5px solid #dadce0;
    color: #333;
    display: block;
    font-size: 16px;
    margin: 10px 0 0;
    padding-block: 10px;
    padding-left: 10px;
    text-align: -webkit-match-parent;
    text-transform: capitalize;
}

.same-category-posts-widget-list li {
    border-bottom: 1px solid #efefef;
    display: block;
}

/* Superscript */
sup {
    background: #e8e8e8;
    border-radius: 3px;
    margin: 2px;
    padding: 2px;
}

/* Author */
.author-picture img {
    border-radius: 100%;
    width: 150px;
}

.author-bio {
    letter-spacing: -0.5px;
    margin-top: 1rem;
    padding: 0 48px;
}

.author-posts {
    letter-spacing: -0.5px;
    margin: 50px 0 30px;
    padding: 0 2.5rem;
    text-align: center;
}

.author-container {
    letter-spacing: -0.5px;
    padding: 0 48px;
    text-align: center;
}

/* Form Elements */
input {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    padding: 10px;
}

#searchsubmit {
    background-color: #1a73e8;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    padding: 10px 10px;
    transition: background-color 0.3s ease;
}

.screen-reader-text {
    display: none;
}

#sidebar ul {
    display: block;
    list-style-type: none;
    margin: 10px 0;
    padding: 0 10px;
}
.product-info {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 1rem;
    padding: 15px;
    background: #f1faff;
    border: 2px solid #607D8B;
}
.product-info h2 {
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.625;
    font-size: 18px;
}

.product-info p {
    margin-bottom: 0;
    font-size: 18px;
}

/* pro Tags */
.pro-tags {
    display: inline-flex;
}
.tag-is {
    background-image: linear-gradient(to right, #F44336, #FF5722) ! IMPORTANT;
    padding: 6px 8px;
    border-radius: 8px 0;
}
.tpro-tags {
    display: inline-flex;
    position: absolute;
    bottom: 0;
    gap: 6px;
    background-image: linear-gradient(to right, #F44336, #FF5722) ! IMPORTANT;
    padding: 6px 8px;
    border-radius: 0 8px;
    z-index: 2;
}
.tpro-tags a, .pro-tags a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
}
.tpro-tags:hover, .tag-is:hover {
    background-image: linear-gradient(to right, #FF5722, #F44336) ! IMPORTANT;
}

.widget > h3 {
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 18px;
}

.cat-item-1 {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  background: #0073e6 !important;
  color: #ffffff !important;
  font-weight: 700;
  font-family: Arial, sans-serif;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  position: relative;
  transition: all 0.15s ease !important;
}

/* Spark effect using only CSS */
.cat-item-1::before {
  content: "\2726";
  font-size: 16px;
  color: #ffc220;
  line-height: 1;
}

/* Hover/focus state */
.cat-item-1:hover,
.cat-item-1:focus {
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  text-decoration: none;
}

.grid-related-a h3 {
    font-weight: 500;
}

.product-price {
    color: #DE1263;
}

.product-sale_price {
    color: #9400D3;
}
.product-info h2 a {
    color: #186EDD;
}

/* ads css old line hight .link-column a.topic line-height: 1.2;*/
 .link-unit {
    max-width: 728px;
    width: 100%;
    min-height: 90px;
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(#ffffff, #f7f9fc);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .label {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
  }

  .link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    width: 100%;
  }

  .link-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .link-column a.topic {
    font-weight: 500;
    line-height: 1.5;
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;

  }

  .link-column a.topic:hover {
    text-decoration: underline;
  }

.dynamic-infinite-ad, .dynamic-link-ad {
    display: flex;
    justify-content: center;
	  margin-bottom: 21px;
}

.author-info {
    line-height: 1.25rem;
    font-size: 12px;
    letter-spacing: 0.5px;
}