/*
Theme Name: Google Keyword Blog
Theme URI: https://github.com/google-keyword-blog
Author: Demo Theme
Author URI: #
Description: A pixel-perfect replica of the Google Keyword Blog (blog.google/intl/en-in/) with full WordPress functionality. Features hero post layout, category filters, responsive design, and Google-style typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: google-keyword-blog
Tags: blog, google, news, magazine, responsive, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===========================
   GOOGLE FONTS & VARIABLES
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@300;400;500;600;700&family=Google+Sans+Display:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --google-blue: #1a73e8;
  --google-red: #ea4335;
  --google-yellow: #fbbc04;
  --google-green: #34a853;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-tertiary: #80868b;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-hover: #f1f3f4;
  --border-color: #e8eaed;
  --nav-height: 64px;
  --font-main: 'Google Sans', 'Roboto', sans-serif;
  --font-display: 'Google Sans Display', 'Google Sans', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);
  --shadow-md: 0 1px 3px 0 rgba(60,64,67,.3),0 4px 8px 3px rgba(60,64,67,.15);
  --shadow-lg: 0 2px 6px 2px rgba(60,64,67,.15),0 1px 2px rgba(60,64,67,.3);
  --transition: all 0.2s ease;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--google-blue); text-decoration: none; transition: var(--transition); }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-main); }

/* ===========================
   SKIP LINK
   =========================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--google-blue);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 14px;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { top: 0; }

/* ===========================
   HEADER / NAVIGATION
   =========================== */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  height: var(--nav-height);
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.google-logo svg { width: 74px; height: 24px; }
.site-title-sep { width: 1px; height: 20px; background: var(--border-color); }
.site-title { font-family: var(--font-main); font-size: 18px; font-weight: 400; color: var(--text-primary); white-space: nowrap; }
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; color: var(--google-blue); }

/* Primary nav */
.main-navigation { flex: 1; }
.main-navigation ul { display: flex; gap: 4px; }
.main-navigation ul li a {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition);
  white-space: nowrap;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  background: var(--bg-hover);
  color: var(--text-primary);
  text-decoration: none;
}

/* Header right actions */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search-btn,
.header-share-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.header-search-btn:hover,
.header-share-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.region-select {
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.region-select:hover { background: var(--bg-hover); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: var(--transition); }

/* ===========================
   HERO / FEATURED POST
   =========================== */
.hero-section { padding: 40px 24px 0; max-width: 1280px; margin: 0 auto; }
.hero-post {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background: #000;
  box-shadow: var(--shadow-md);
  margin-bottom: 8px;
}
.hero-post-image {
  position: relative;
  overflow: hidden;
}
.hero-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-post:hover .hero-post-image img { transform: scale(1.03); }
.hero-post-content {
  padding: 48px 40px;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.hero-post-category {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  color: var(--google-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-post-category:hover { text-decoration: none; opacity: 0.8; }
.hero-post-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
}
.hero-post-title a { color: inherit; }
.hero-post-title a:hover { color: var(--google-blue); text-decoration: none; }
.hero-post-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--google-blue);
  margin-top: 8px;
}
.hero-post-read-more:hover { text-decoration: none; gap: 10px; }
.hero-post-read-more svg { transition: transform 0.2s ease; }
.hero-post-read-more:hover svg { transform: translateX(3px); }

/* ===========================
   SECONDARY POSTS ROW
   =========================== */
.secondary-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.secondary-post {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.secondary-post:hover { box-shadow: var(--shadow-sm); border-color: transparent; }
.secondary-post-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.secondary-post-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.secondary-post:hover .secondary-post-image img { transform: scale(1.04); }
.secondary-post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.post-category-tag {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  color: var(--google-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-category-tag:hover { text-decoration: none; opacity: 0.8; }
.secondary-post-title {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
}
.secondary-post-title a { color: inherit; }
.secondary-post-title a:hover { color: var(--google-blue); text-decoration: none; }
.secondary-post-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.secondary-post-read-more {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--google-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.secondary-post-read-more:hover { text-decoration: none; gap: 8px; }

/* ===========================
   MAIN CONTENT AREA
   =========================== */
.site-main { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.section-title {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}
.section-view-all {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--google-blue);
}
.section-view-all:hover { text-decoration: none; opacity: 0.8; }

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* Standard card */
.post-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}
.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-card-title {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--google-blue); text-decoration: none; }
.post-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.post-card-date {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-main);
}
.post-card-read {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--google-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.post-card-read:hover { text-decoration: none; gap: 7px; }

/* ===========================
   CATEGORY PILLS / FILTER
   =========================== */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.category-pill {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: var(--bg-primary);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.category-pill:hover,
.category-pill.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
  text-decoration: none;
}

/* ===========================
   LOAD MORE
   =========================== */
.load-more-wrap { text-align: center; padding: 32px 0; }
.load-more-btn {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--google-blue);
  padding: 10px 28px;
  border-radius: 20px;
  border: 1px solid var(--google-blue);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}
.load-more-btn:hover {
  background: var(--google-blue);
  color: #fff;
}

/* ===========================
   SINGLE POST
   =========================== */
.single-post-wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.single-post-header { margin-bottom: 32px; }
.single-post-category {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  color: var(--google-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: inline-block;
}
.single-post-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.post-meta-author { font-weight: 500; color: var(--text-primary); }
.post-meta-sep { color: var(--border-color); }
.post-featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16/9;
}
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.post-content {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
}
.post-content p { margin-bottom: 24px; }
.post-content h2 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin: 40px 0 16px; }
.post-content h3 { font-family: var(--font-main); font-size: 20px; font-weight: 500; margin: 32px 0 12px; }
.post-content a { color: var(--google-blue); }
.post-content ul, .post-content ol { margin: 0 0 24px 28px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 4px solid var(--google-blue);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
}

/* Share bar */
.post-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 40px 0;
}
.share-label { font-family: var(--font-main); font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.share-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.share-icon-btn:hover { border-color: var(--google-blue); color: var(--google-blue); background: rgba(26,115,232,0.06); }

/* Related posts */
.related-posts { margin-top: 56px; }
.related-posts h3 {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===========================
   FOOTER
   =========================== */
#colophon {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-nav ul li a {
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 16px;
  transition: var(--transition);
}
.footer-nav ul li a:hover { background: var(--bg-hover); color: var(--text-primary); text-decoration: none; }
.footer-social { display: flex; align-items: center; gap: 4px; }
.footer-social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-social-link:hover { background: var(--bg-hover); color: var(--text-primary); text-decoration: none; }
.footer-copyright {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===========================
   FOLLOW US SECTION
   =========================== */
.follow-us-section {
  border-top: 1px solid var(--border-color);
  padding: 24px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.follow-us-label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.follow-us-links { display: flex; gap: 12px; flex-wrap: wrap; }
.follow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.follow-link:hover { border-color: var(--google-blue); color: var(--google-blue); background: rgba(26,115,232,0.05); text-decoration: none; }

/* ===========================
   WIDGETS / SIDEBAR
   =========================== */
.widget { margin-bottom: 32px; }
.widget-title {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--google-blue);
}
.widget ul li { border-bottom: 1px solid var(--border-color); }
.widget ul li a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 10px 0;
  transition: var(--transition);
}
.widget ul li a:hover { color: var(--google-blue); padding-left: 4px; text-decoration: none; }

/* ===========================
   SEARCH FORM
   =========================== */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1;
  font-family: var(--font-main);
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}
.search-form input[type="search"]:focus {
  border-color: var(--google-blue);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}
.search-form button[type="submit"] {
  background: var(--google-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-form button[type="submit"]:hover { background: #1557b0; }

/* ===========================
   PAGINATION
   =========================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 32px 0; }
.page-numbers {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.page-numbers:hover { background: var(--bg-hover); text-decoration: none; color: var(--text-primary); }
.page-numbers.current { background: var(--google-blue); color: #fff; }

/* ===========================
   BREADCRUMBS
   =========================== */
.breadcrumbs {
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a { color: var(--text-tertiary); }
.breadcrumbs a:hover { color: var(--google-blue); text-decoration: none; }
.breadcrumbs .sep { color: var(--border-color); }

/* ===========================
   COMMENTS — REDESIGNED
   =========================== */
.comments-area {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 0 24px 48px;
}
.comments-title {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.comments-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 20px;
  background: var(--google-blue);
  border-radius: 2px;
}

/* Comment list */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.comment-list .children {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual comment */
.gkb-comment {
  padding: 0;
  margin: 0;
}
.gkb-comment-inner {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition);
}
.gkb-comment:last-child > .gkb-comment-inner {
  border-bottom: none;
}

/* Avatar */
.gkb-comment-avatar {
  flex-shrink: 0;
}
.gkb-avatar-img,
.gkb-comment-avatar img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
  border: 2px solid var(--border-color);
}

/* Comment body */
.gkb-comment-body {
  flex: 1;
  min-width: 0;
}
.gkb-comment-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.gkb-comment-author {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.gkb-comment-author a {
  color: inherit;
  text-decoration: none;
}
.gkb-comment-author a:hover { color: var(--google-blue); }
.gkb-comment-meta-sep {
  color: var(--text-tertiary);
  font-size: 12px;
}
.gkb-comment-date {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: none;
}
.gkb-comment-date:hover { color: var(--google-blue); }
.gkb-comment-edit-link {
  font-size: 12px;
}
.gkb-comment-edit-link a {
  color: var(--google-blue);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(26,115,232,0.08);
}
.gkb-comment-moderation {
  font-size: 13px;
  color: var(--google-yellow);
  font-style: italic;
  margin-bottom: 8px;
  background: rgba(251,188,4,0.08);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--google-yellow);
}
.gkb-comment-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.gkb-comment-text p { margin-bottom: 8px; }
.gkb-comment-text p:last-child { margin-bottom: 0; }
.gkb-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.comment-reply-link {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  color: var(--google-blue);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid rgba(26,115,232,0.3);
  border-radius: 12px;
  transition: var(--transition);
}
.comment-reply-link:hover {
  background: var(--google-blue);
  color: #fff;
  border-color: var(--google-blue);
}

/* Comments closed */
.comments-closed {
  color: var(--text-tertiary);
  font-size: 14px;
  padding: 16px 0;
  font-style: italic;
}

/* Comment reply title */
.comment-reply-title {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.comment-reply-title small a {
  font-size: 13px;
  font-weight: 400;
  color: var(--google-blue);
  text-decoration: none;
}

/* Comment form */
.comment-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 32px;
}
.comment-form label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
}
.comment-form .required { color: var(--google-red); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--google-blue);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}
.comment-form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}
.comment-form-cookies-consent label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  display: inline;
  cursor: pointer;
}
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.gkb-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--google-blue);
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.2px;
}
.gkb-submit-btn:hover {
  background: #1557b0;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.gkb-submit-btn:active { transform: translateY(0); }

/* Comment pagination */
.comments-pagination {
  display: flex;
  gap: 8px;
  margin: 24px 0 0;
}
.comments-pagination a,
.comments-pagination .current {
  font-family: var(--font-main);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}
.comments-pagination a:hover { border-color: var(--google-blue); color: var(--google-blue); }
.comments-pagination .current { background: var(--google-blue); color: #fff; border-color: var(--google-blue); }

/* ===========================
   AUTHOR BOX — REDESIGNED
   =========================== */
.gkb-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 40px 0 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.gkb-author-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--google-blue) 0%, var(--google-green) 50%, var(--google-yellow) 100%);
}
.gkb-author-box:hover {
  box-shadow: var(--shadow-sm);
}

/* Avatar */
.gkb-author-avatar-link {
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
  transition: var(--transition);
}
.gkb-author-avatar-link:hover { opacity: 0.85; transform: scale(1.04); }
.gkb-author-avatar,
.gkb-author-box img.avatar {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

/* Initials fallback (when avatars fully disabled) */
.gkb-author-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--google-blue);
  color: #fff;
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

/* Author info */
.gkb-author-info {
  flex: 1;
  min-width: 0;
}
.gkb-author-label {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.gkb-author-name {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: var(--transition);
}
.gkb-author-name:hover { color: var(--google-blue); }
.gkb-author-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}
.gkb-author-posts-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--google-blue);
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid rgba(26,115,232,0.35);
  border-radius: 14px;
  transition: var(--transition);
}
.gkb-author-posts-link:hover {
  background: var(--google-blue);
  color: #fff;
  border-color: var(--google-blue);
}

/* Responsive */
@media (max-width: 540px) {
  .gkb-author-box { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
  .gkb-author-posts-link { align-self: center; }
  .gkb-comment-inner { gap: 10px; }
  .gkb-avatar-img,
  .gkb-comment-avatar img { width: 36px !important; height: 36px !important; }
  .comment-form { padding: 20px 16px; }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero-post { grid-template-columns: 1fr; min-height: auto; }
  .hero-post-image { aspect-ratio: 16/9; }
  .hero-post-content { padding: 28px 24px; }
  .secondary-posts { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-navigation { display: none; }
  .main-navigation.open { display: block; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--bg-primary); border-bottom: 1px solid var(--border-color); padding: 16px; z-index: 999; }
  .main-navigation.open ul { flex-direction: column; }
  .header-actions .region-select { display: none; }
  .hero-section { padding: 16px 16px 0; }
  .secondary-posts { grid-template-columns: 1fr; }
  .hero-post-title { font-size: 22px; }
  .site-main { padding: 24px 16px; }
  .posts-grid { grid-template-columns: 1fr; }
  .single-post-title { font-size: 26px; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .site-title { font-size: 15px; }
  .hero-post-content { padding: 20px 16px; }
  .hero-post-title { font-size: 19px; }
  .post-card-body { padding: 14px; }
  .category-filter { gap: 6px; }
  .category-pill { font-size: 12px; padding: 6px 14px; }
}

/* ===========================
   UTILITY / MISC
   =========================== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal !important;
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-tertiary); text-align: center; margin-top: 8px; }

/* Color badge per category */
.badge-ai { background: rgba(26,115,232,0.1); color: var(--google-blue); }
.badge-products { background: rgba(52,168,83,0.1); color: var(--google-green); }
.badge-company { background: rgba(234,67,53,0.1); color: var(--google-red); }
.badge-learning { background: rgba(251,188,4,0.1); color: #f29900; }

/* ===========================
   CUSTOMIZER: LOGO OVERRIDES
   =========================== */

/* Header logo — custom image uploaded via Site Identity */
.site-logo-link { display:flex; align-items:center; flex-shrink:0; text-decoration:none; }
.site-logo-link:hover { opacity:0.85; text-decoration:none; }
.header-custom-logo { max-height:40px; width:auto; display:block; object-fit:contain; }

/* When a custom logo is present, keep branding clean */
.has-custom-logo .google-logo svg { display:none; }

/* Footer logo */
.footer-logo-wrap { display:flex; align-items:center; text-decoration:none; flex-shrink:0; }
.footer-logo-wrap:hover { opacity:0.8; text-decoration:none; }
.footer-custom-logo { max-height:32px; width:auto; display:block; object-fit:contain; }

/* Footer inner layout updated to handle logo link */
.footer-inner { display:flex; align-items:center; flex-wrap:wrap; gap:16px; justify-content:space-between; }
