/*
Theme Name: G4Gems
Theme URI: https://wordpress.org/
Author: Your Name
Description: A clean, lightweight WordPress starter theme for writing your own HTML, CSS, PHP, and JavaScript. No page builder or external framework required.
Version: 1.0.0
Requires at least: 6.0
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: simple-custom-starter
Tags: custom-logo, custom-menu, featured-images, blog
*/

/* Base styling. Add your own styles in assets/css/custom.css. */
:root {
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-primary: #2563eb;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --container-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(calc(100% - 36px), var(--container-width));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 12px 16px;
  background: #fff;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 84px;
  padding-block: 14px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-branding .custom-logo {
  width: auto;
  max-width: 110px;
  max-height: 60px;
}

.site-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.site-title a {
  color: var(--color-text);
}

.site-description {
  margin: 5px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 600;
}

.nav-list a:hover,
.nav-list .current-menu-item>a {
  color: var(--color-primary);
}

.site-main {
  min-height: 55vh;
  padding-block: 55px;
}

.site-main h1 {
  margin-top: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.hero {
  padding: 70px 0;
  background: #f4f7ff;
  border-radius: 14px;
}

.hero .eyebrow {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 750px;
  margin-bottom: 12px;
}

.hero p {
  max-width: 690px;
}

.hero .button {
  display: inline-block;
  margin-top: 12px;
  padding: 11px 20px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 6px;
  font-weight: 700;
}

.section-title {
  margin: 0 0 24px;
}

.home-content {
  padding-top: 35px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.post-card .wp-post-image {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 6px;
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.post-card h2 a {
  color: var(--color-text);
}

.post-meta {
  margin: 0 0 15px;
  font-size: 13px;
  color: var(--color-muted);
}

.entry-content {
  overflow-wrap: break-word;
}

.entry-content>*:first-child {
  margin-top: 0;
}

.entry-content img {
  height: auto;
}

.entry-thumbnail {
  margin: 24px 0;
}

.page-heading {
  margin-bottom: 30px;
}

.pagination {
  margin-top: 30px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 22px 0;
  color: var(--color-muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner .nav-list a {
  font-weight: 400;
}

input[type='search'] {
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
}

button,
input[type='submit'] {
  cursor: pointer;
  padding: 10px 16px;
  border: 0;
  border-radius: 5px;
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-main {
    padding-block: 30px;
  }

  .hero {
    padding: 40px 22px;
  }

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