/*
Theme Name: AI Directory
Theme URI: https://worldailist.com
Author: Your Name
Author URI: https://worldailist.com
Description: Modern AI Tools Directory WordPress Theme
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-directory

Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* =========================================================
GLOBAL LAYOUT RESET
========================================================= */

html,
body {
  margin: 0;
  padding: 0;
}

.site-main {
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 0 18px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }
}

/* ================================
   SAFETY 
================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  overflow-x: hidden;
}
/* =========================================================
HEADER
========================================================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 15px;
}

/* LOGO */

.logo a {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* =========================================================
NAVIGATION MENU
========================================================= */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* MENU BUTTON */

.main-nav a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  background: #111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

/* HOVER EFFECT */

.main-nav a:hover {
  background: #2c5364;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .site-header .container {
    padding: 0 18px;
  }

  .main-nav ul {
    gap: 12px;
  }

  .main-nav a {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .site-header {
    padding: 14px 0;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
  }

  .main-nav a {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .logo a {
    font-size: 20px;
  }

  .main-nav ul {
    gap: 8px;
  }

  .main-nav a {
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .main-nav a {
    padding: 6px 8px;
    font-size: 11px;
  }
}
/* =========================================================
HERO SECTION
Homepage Top Area
========================================================= */

.hero {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  padding: 80px 0;
  width: 100%;
}

/* HERO INNER CONTAINER */

.hero-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

/* LEFT CONTENT */

.hero-left {
  max-width: 520px;
  width: 100%;
}

.hero-left h1 {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #ffffff;
  word-break: break-word;
}

.hero-left p {
  color: #cbd5f5;
  font-size: 16px;
  margin-bottom: 25px;
}

/* SEARCH BAR */

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 420px;
  width: 100%;
}

.hero-search input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  min-width: 0;
}

.hero-search button {
  padding: 14px 22px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
  white-space: nowrap;
}

.hero-search button:hover {
  background: #000;
}

/* RIGHT SIDE */

.hero-right {
  width: 520px;
  max-width: 100%;
}

/* SLIDER */

.hero-slider {
  width: 100%;
  position: relative;
}

/* SLIDES */

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
}

/* TOOL CARD */

.hero-tool-card {
  width: 100%;
  padding: 40px;
  background: #edf5ef;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  text-align: center;
  transition: 0.3s;
}

.hero-tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

/* TOOL IMAGE */

.hero-tool-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* TOOL TITLE */

.hero-tool-card h3 {
  font-size: 22px;
  margin-bottom: 20px;
  word-break: break-word;
}

/* BUTTON */

.hero-tool-link {
  display: inline-block;
  padding: 12px 26px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.hero-tool-link:hover {
  background: #000;
}

.hero-rating {
  margin: 10px 0;
  text-align: center;
  font-size: 16px;
}

/* AD */

.hero-ad {
  margin: 30px 0;
}

.hero-ad .ad-widget {
  text-align: center;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-layout {
    gap: 40px;
  }

  .hero-left h1 {
    font-size: 36px;
  }

  .hero-right {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }

  .hero-layout {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-left h1 {
    font-size: 30px;
  }

  .hero-left p {
    font-size: 15px;
  }

  .hero-search {
    margin: 0 auto;
    flex-direction: column;
    gap: 10px;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-tool-card {
    padding: 25px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-left h1 {
    font-size: 26px;
  }

  .hero-tool-card img {
    width: 110px;
    height: 110px;
  }

  .hero-tool-card {
    padding: 20px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .hero-left h1 {
    font-size: 22px;
  }

  .hero-tool-card img {
    width: 90px;
    height: 90px;
  }
}
/* =================================
AI TOOLS GRID
================================= */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* TOOL CARD */

.tool-card {
  background: #f7f8fa;
  border-radius: 14px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* LOGO */

.tool-logo img {
  width: 70px;
  margin-bottom: 15px;
  max-width: 100%;
  height: auto;
}

/* TITLE */

.tool-title {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
  word-break: break-word;
}

/* DESCRIPTION */

.tool-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* CATEGORY BADGE */

.tool-category {
  display: inline-block;
  background: #eef2ff;
  color: #4f46e5;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 18px;
}

/* BUTTONS */

.tool-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.tool-details,
.tool-visit {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.tool-details {
  background: #111;
  color: #fff;
}

.tool-visit {
  background: #f3f3f3;
  color: #111;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .tools-grid {
    gap: 24px;
  }

  .tool-card {
    padding: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px auto;
  }

  .tool-card {
    padding: 22px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .tools-grid {
    padding: 0 15px;
  }

  .tool-card {
    padding: 18px;
  }

  .tool-title {
    font-size: 18px;
  }

  .tool-desc {
    font-size: 13px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .tool-card {
    padding: 15px;
  }
}
/* =========================================================
TOOL BUTTON ROW
========================================================= */

.tool-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  width: 100%;
}

/* DETAILS BUTTON */

.tool-details {
  background: #f4f4f4;
  color: #111;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: 0.25s;
  display: inline-block;
  white-space: nowrap;
}

/* VISIT BUTTON */

.tool-visit {
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: 0.25s;
  display: inline-block;
  white-space: nowrap;
}

/* HOVER */

.tool-details:hover {
  background: #e8e8e8;
}

.tool-visit:hover {
  background: #333;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .tool-buttons {
    gap: 8px;
  }

  .tool-details,
  .tool-visit {
    padding: 9px 14px;
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tool-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-details,
  .tool-visit {
    width: 100%;
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .tool-details,
  .tool-visit {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .tool-details,
  .tool-visit {
    font-size: 11px;
    padding: 7px 10px;
  }
}



/* ===== HOMEPAGE LAYOUT (GRID SYSTEM) ===== */

.home-layout {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 170px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.home-layout .sidebar-left {
    justify-self: end;
}

.home-layout .sidebar-right {
    justify-self: start;
}

/* Center content */
.home-center {
    min-width: 0;
}

/* Tools grid */
.tools-grid {
    margin-top: 10px;
}

/* Sidebar widgets (keep clean design) */
.sidebar-widget {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

/* =========================
RESPONSIVE SETTINGS
========================= */

/* ===== LARGE DESKTOP (1400px+) ===== */
@media (max-width: 1400px) {
    .home-layout {
        max-width: 1200px;
    }
}

/* ===== LAPTOP ===== */
@media (max-width: 1200px) {
    .home-layout {
        grid-template-columns: 100px minmax(0, 1fr) 100px;
        gap: 18px;
    }
}

/* ===== TABLET ===== */
@media (max-width: 992px) {
    .home-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-layout .sidebar-left,
    .home-layout .sidebar-right {
        justify-self: stretch;
    }
}

/* ===== MOBILE LARGE ===== */
@media (max-width: 768px) {
    .home-layout {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
}

/* ===== MOBILE SMALL ===== */
@media (max-width: 480px) {
    .home-layout {
        gap: 12px;
        padding: 0 8px;
    }

    .tool-card {
        padding: 15px;
    }
}

/* ===== EXTRA SMALL (320px) ===== */
@media (max-width: 320px) {
    .home-layout {
        padding: 0 5px;
    }

    .tool-title {
        font-size: 18px;
    }
}

/* =========================================================
SINGLE TOOL PAGE
========================================================= */

.tool-single .layout {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 120px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.sidebar-left {
    justify-self: end;
}

.sidebar-right {
    justify-self: start;
}

/* Sidebar */
.sidebar-left,
.sidebar-right {
    width: 100%;
}

/* Content */
.single-content {
    min-width: 0;
}


.tool-single {
  max-width: 100%;
  margin: 60px auto;
  padding: 80px 10px;
}

.tool-single-container {
  background: #fff;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.tool-single-logo img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
}

/* TITLE */

.tool-single-title {
  font-size: 32px;
  margin-bottom: 10px;
  word-break: break-word;
}

/* CONTENT */

.tool-single-content {
  margin-top: 20px;
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

/* VISIT */

.tool-single-visit {
  margin-top: 30px;
}

/* ===== LAPTOP ===== */
@media (max-width: 1200px) {
    .tool-single .layout {
        grid-template-columns: 100px minmax(0, 1fr) 100px;
    }
}

/* ===== TABLET ===== */
@media (max-width: 992px) {
    .tool-single .layout {
        grid-template-columns: 1fr;
    }

    .sidebar-left,
    .sidebar-right {
        justify-self: stretch;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .tool-single {
        margin: 60px auto;
        padding: 15px 10px;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .tool-single-container {
        padding: 15px;
    }

    .tool-single-title {
        font-size: 24px;
    }
}

/* ===== EXTRA SMALL ===== */
@media (max-width: 320px) {
    .tool-single-container {
        padding: 12px;
    }

    .tool-single-title {
        font-size: 20px;
    }
}

/* =================================
RELATED TOOLS
================================= */

.related-tools-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-tool-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
  height: 100%;
}

.related-tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.related-tool-card img {
  max-width: 70px;
  height: auto;
  margin-bottom: 10px;
}

.related-tool-card h4 {
  font-size: 16px;
  margin: 0;
  color: #111;
  word-break: break-word;
}

.related-tool-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .tool-single-container {
    padding: 30px;
  }

  .tool-single-title {
    font-size: 28px;
  }

  .related-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tool-single {
    margin: 40px auto;
    padding: 15px;
  }

  .tool-single-container {
    padding: 25px;
  }

  .tool-single-title {
    font-size: 24px;
  }

  .tool-single-content {
    font-size: 15px;
  }

  .related-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .tool-single-container {
    padding: 20px;
  }

  .tool-single-title {
    font-size: 22px;
  }

  .related-tools-title {
    font-size: 20px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .tool-single-title {
    font-size: 20px;
  }
}

/* =================================
AI TOOL CATEGORY PAGE
================================= */

.ai-category-page {
  padding: 40px 20px;
}

.ai-category-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ai-category-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
}

/* CATEGORY GRID */

.ai-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* CATEGORY CARD */

.ai-category-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  height: 100%;
}

.ai-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ICON */

.category-icon {
  font-size: 48px;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}

/* TITLE */

.category-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  word-break: break-word;
}

/* COUNT */

.category-count {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

/* BUTTON */

.category-view-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

.category-view-btn:hover {
  background: #000;
}

.category-icon i {
  font-size: 50px;
  width: 40px;
  height: 40px;
}


/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .ai-category-title {
    font-size: 30px;
  }

  .ai-category-grid {
    gap: 24px;
  }

  .ai-category-card {
    padding: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .ai-category-page {
    padding: 30px 15px;
  }

  .ai-category-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .ai-category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ai-category-card {
    padding: 22px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .ai-category-title {
    font-size: 22px;
  }

  .category-title {
    font-size: 18px;
  }

  .category-count {
    font-size: 13px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .ai-category-card {
    padding: 18px;
  }
}

/* =================================
 SINGLE BLOG PAGE
================================= */

.single-blog-page {
  padding: 40px 20px;
}

.single-blog-container {
  max-width: 800px;
  margin: auto;
  width: 100%;
}

/* TITLE */

.single-blog-title {
  font-size: 36px;
  margin-bottom: 10px;
  word-break: break-word;
}

/* META */

.single-blog-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

/* IMAGE */

.single-blog-image img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  height: auto;
}

/* CONTENT */

.single-blog-content {
  font-size: 16px;
  line-height: 1.7;
}

/* BLOG META */

.blog-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.blog-meta span {
  margin-right: 10px;
}

/* PAGINATION */

.blog-pagination {
  margin-top: 40px;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 4px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
}

.blog-pagination .current {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* RELATED POSTS */

.related-posts {
  margin-top: 50px;
}

.related-title {
  font-size: 22px;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.related-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  height: auto;
}

.related-post-title {
  font-size: 16px;
  word-break: break-word;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .single-blog-title {
    font-size: 30px;
  }

  .single-blog-content {
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .single-blog-page {
    padding: 30px 15px;
  }

  .single-blog-title {
    font-size: 26px;
  }

  .single-blog-content {
    font-size: 15px;
    line-height: 1.6;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .single-blog-title {
    font-size: 22px;
  }

  .related-title {
    font-size: 20px;
  }

  .related-post-title {
    font-size: 15px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .single-blog-title {
    font-size: 20px;
  }
}

/* ===============================
RELATED TOOLS CARD ALIGNMENT 
================================ */
.related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Image control */

.related-card img {
  height: 120px;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 1024px) {
  .related-card img {
    height: 110px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .related-card {
    height: auto;
  }

  .related-card img {
    height: 100px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .related-card img {
    height: 90px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .related-card img {
    height: 80px;
  }
}

/* =================================
 TOOL CATEGORY FILTER
================================= */

.tool-filter {
  margin: 40px 0 20px;
  text-align: center;
  padding: 0 10px;
}

.filter-btn {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  border: 1px solid #ddd;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
}

/* HOVER & ACTIVE */

.filter-btn:hover,
.filter-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .filter-btn {
    padding: 7px 14px;
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tool-filter {
    text-align: left;
  }

  .filter-btn {
    margin: 5px 6px 5px 0;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .filter-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .filter-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
}
/* =================================
 HOMEPAGE CATEGORY LIMIT
================================= */

.all-categories-btn {
  text-align: center;
  margin-top: 20px;
  padding: 0 10px;
}

.all-categories-btn a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #111;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  white-space: nowrap;
  transition: 0.2s;
}

.all-categories-btn a:hover {
  background: #111;
  color: #fff;
}

/* ================================
   RESPONSIVE 
================================ */

/* Mobile */
@media (max-width: 768px) {
  .all-categories-btn a {
    padding: 10px 16px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .all-categories-btn a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .all-categories-btn a {
    font-size: 13px;
    padding: 10px;
  }
}

/* =================================
 AI TOOLS ARCHIVE PAGE
================================= */

.tools-archive-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px 80px;
  width: 100%;
}

.tools-archive-title {
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
  word-break: break-word;
}

/* LAYOUT */

.tools-archive-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

/* SIDEBAR */

.tools-sidebar {
  border-right: 1px solid #eee;
  padding-right: 20px;
}

/* CATEGORY LIST */

.tool-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-categories li {
  margin-bottom: 12px;
}

.tool-categories a {
  text-decoration: none;
  color: #333;
  display: inline-block;
}

/* HOVER */

.tool-categories a:hover {
  font-weight: 600;
}

/* ACTIVE CATEGORY */

.tool-categories li.active-category a {
  font-weight: 600;
  color: #000;
  background: #f3f3f3;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .tools-archive-layout {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .tools-archive-title {
    font-size: 30px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tools-archive-container {
    padding: 30px 15px 60px;
  }

  .tools-archive-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tools-sidebar {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
  }

  .tools-archive-title {
    font-size: 26px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .tools-archive-title {
    font-size: 22px;
  }

  .tool-categories a {
    font-size: 14px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .tool-categories a {
    font-size: 13px;
  }
}

/* ===============================
SIDEBAR CATEGORY DESIGN
================================ */

.tools-sidebar {
  border-right: 1px solid #eee;
  padding-right: 20px;
}

/* CATEGORY LIST */

.tool-categories {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.tool-categories li {
  margin-bottom: 10px;
}

/* LINKS */

.tool-categories a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  word-break: break-word;
}

.tool-categories a:hover {
  background: #f5f5f5;
  color: #000;
}

/* ACTIVE */

.tool-categories li.active-category a {
  background: #111;
  color: #fff;
}

/* SIDEBAR AD */

.sidebar-ad {
  margin-top: 30px;
}


/* ===== SINGLE PAGE  ===== */

.tool-single {
  max-width: 1100px;
  margin: 0 auto;
}

.single-layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

/* content */
.single-content {
  flex: 1;
  min-width: 0;
  max-width: 800px;
}

/* sidebars */
.sidebar-left,
.sidebar-right {
  width: 260px;
  flex-shrink: 0;
}
/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .tool-categories a {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tools-sidebar {
    border-right: none;
    padding-right: 0;
  }

  .tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tool-categories li {
    margin-bottom: 0;
  }

  .tool-categories a {
    padding: 8px 10px;
    background: #f5f5f5;
  }

  .tool-categories li.active-category a {
    background: #111;
    color: #fff;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .tool-categories a {
    font-size: 13px;
    padding: 7px 10px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .tool-categories a {
    font-size: 12px;
    padding: 6px 8px;
  }
}
/* ===============================
TOOLS PAGINATION
================================ */

.tools-pagination {
  margin-top: 40px;
  text-align: center;
  padding: 0 10px;
}

.tools-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 4px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  min-width: 36px;
}

.tools-pagination .current {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .tools-pagination .page-numbers {
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tools-pagination {
    text-align: left;
  }

  .tools-pagination .page-numbers {
    margin: 3px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .tools-pagination .page-numbers {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .tools-pagination .page-numbers {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* ===============================
HORIZONTAL TRENDING TOOLS
================================ */

.trending-tools {
  padding: 20px 20px 5px;
}

.trending-container {
  max-width: 1200px;
  margin: auto;
}

.trending-title {
  font-size: 20px;
  margin-bottom: 15px;
  text-align: center;
  word-break: break-word;
}

/* GRID */

.trending-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

/* CARD */

.trending-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}

.trending-card:hover {
  background: #f7f7f7;
  transform: translateY(-2px);
}

/* LOGO */

.trending-logo img {
  width: 26px;
  height: auto;
  max-width: 100%;
}

/* NAME */

.trending-name {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .trending-grid {
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .trending-grid {
    justify-content: flex-start;
    gap: 14px;
  }

  .trending-card {
    padding: 8px 12px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .trending-title {
    font-size: 18px;
  }

  .trending-name {
    font-size: 13px;
  }

  .trending-card {
    padding: 7px 10px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .trending-name {
    font-size: 12px;
  }
}

/* ===============================
TOOL RATING
================================ */

.tool-rating {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #f59e0b;
}

.rating-stars {
  color: #f5b301;
  font-size: 16px;
  letter-spacing: 2px;
}

.rating-number {
  font-size: 13px;
  color: #555;
}

/* Responsive */

@media (max-width: 480px) {
  .tool-rating {
    font-size: 13px;
  }

  .rating-stars {
    font-size: 14px;
  }
}

/* ===============================
BLOG MAGAZINE SECTION
================================ */

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 50px;
  word-break: break-word;
}

/* MAGAZINE */

.blog-magazine {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.blog-featured-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

.blog-featured-title {
  font-size: 26px;
  margin-top: 15px;
  word-break: break-word;
}

/* SIDE POSTS */

.blog-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-small a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.blog-small img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

/* GRID POSTS */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.blog-post-title {
  font-size: 20px;
  margin-top: 15px;
  word-break: break-word;
}

.blog-meta {
  font-size: 13px;
  color: #777;
  margin: 10px 0;
}

.blog-read-more {
  display: inline-block;
  padding: 8px 16px;
  background: #111;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}

/* PAGINATION */

.blog-pagination {
  margin-top: 60px;
  text-align: center;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .blog-magazine {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-title {
    font-size: 30px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured-image img {
    height: 250px;
  }

  .blog-title {
    font-size: 26px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .blog-title {
    font-size: 22px;
  }

  .blog-post-title {
    font-size: 18px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .blog-post-title {
    font-size: 16px;
  }
}

/* =========================
HOMEPAGE BLOG SECTION
========================= */

.home-blog-section {
  margin-top: 80px;
}

.home-blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TITLE */

.home-blog-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  word-break: break-word;
}

/* GRID */

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* CARD */

.home-blog-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

/* IMAGE */

.home-blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* TITLE */

.home-blog-post-title {
  font-size: 20px;
  margin-top: 15px;
  word-break: break-word;
}

/* META */

.home-blog-meta {
  font-size: 13px;
  color: #777;
  margin: 10px 0;
}

/* EXCERPT */

.home-blog-excerpt {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* BUTTON */

.home-blog-read-more {
  display: inline-block;
  padding: 8px 16px;
  background: #111;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .home-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-blog-title {
    font-size: 28px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .home-blog-grid {
    grid-template-columns: 1fr;
  }

  .home-blog-title {
    font-size: 24px;
  }

  .home-blog-excerpt {
    font-size: 13px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .home-blog-title {
    font-size: 22px;
  }

  .home-blog-post-title {
    font-size: 18px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .home-blog-post-title {
    font-size: 16px;
  }
}

/* ================================
PREMIUM FOOTER DESIGN
================================ */

.site-footer {
  background: #111827;
  padding: 80px 0 40px;
  color: #cbd5f5;
  margin-top: 80px;
}

/* container */

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* grid */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* column title */

.footer-col h2,
.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 600;
}

/* text */

.footer-col p {
  font-size: 15px;
  line-height: 1.7;
  color: #94a3b8;
}

/* links */

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

/* ===============================
SECTION BACKGROUND BALANCE
================================ */

/* Tools Grid Section */
.tools-grid {
  background: #f9fafb;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Blog Section */
.home-blog-section {
  background: #ffffff;
}

/* Category Section */
.ai-category-page {
  background: #f8fafc;
}

/* =========================
SOCIAL ICON PREMIUM
========================= */

.footer-col .wp-block-social-icons {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.footer-col .wp-social-link {
  width: 46px;
  height: 46px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* ICON CENTER FIX */

.footer-col .wp-social-link svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: auto;
}

/* HOVER EFFECT */

.footer-col .wp-social-link:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* =========================
BOTTOM AREA
========================= */

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 50px;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #64748b;
}

/* ================================
   RESPONSIVE 
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .site-footer {
    padding: 60px 0 30px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer-col ul li a:hover {
    padding-left: 0;
  }

  .footer-col .wp-block-social-icons {
    justify-content: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .site-footer {
    padding: 50px 0 25px;
  }

  .footer-col h2,
  .footer-col h3,
  .footer-col h4 {
    font-size: 16px;
  }

  .footer-col p,
  .footer-col ul li a {
    font-size: 14px;
  }
}

/* Extra Small */
@media (max-width: 320px) {
  .footer-col p,
  .footer-col ul li a {
    font-size: 13px;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}


/* ===============================
THEME BACKGROUND POLISH
(Subtle contrast for better UX)
================================ */

/* Main content sections */

.tools-archive-container,
.ai-category-page,
.home-blog-section {
    background: #f8fafc;
}

/* Keep cards white (no change) */

.tool-card,
.related-card,
.blog-card,
.ai-category-card {
  background: #ffffff;
}




