/*
Theme Name: WD
Theme URI: https://webdeal.com.au
Author: wd author
Author URI: 
Description: A clean business and lifestyle magazine theme inspired by Webdeal.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wd
Tags: blog, magazine, two-columns, right-sidebar, custom-menu, featured-images, theme-options
WD WordPress Theme, Copyright 2025 Webdeal
WD is distributed under the terms of the GNU GPL
*/
/* ==========================================================================
   CSS Variables / Design Tokens
   ========================================================================== */
:root {
  --wd-primary: #0078d4;
  --wd-primary-hover: #005a9e;
  --wd-foreground: #1e293b;
  --wd-muted: #64748b;
  --wd-background: #ffffff;
  --wd-surface: #f8fafc;
  --wd-surface-elevated: #ffffff;
  --wd-border: #e2e8f0;
  --wd-link: #0078d4;
  --wd-link-hover: #005a9e;
  --wd-heading: #1e293b;
  --wd-radius: 0.375rem;
  --wd-font-sans: 'Inter', system-ui, sans-serif;
  --wd-font-serif: 'Merriweather', Georgia, serif;
}
/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--wd-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--wd-foreground);
  background-color: var(--wd-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--wd-font-serif);
  color: var(--wd-heading);
  margin-top: 0;
}
a {
  color: var(--wd-link);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--wd-link-hover);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.site-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
}
@media (min-width: 1024px) {
  .site-content {
    grid-template-columns: 2fr 1fr;
  }
}
/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--wd-border);
  background-color: var(--wd-background);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--wd-primary);
  border-radius: var(--wd-radius);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.site-title a {
  color: var(--wd-heading);
}
.site-title a:hover {
  color: var(--wd-link);
}
.site-description {
  font-size: 0.75rem;
  color: var(--wd-muted);
  margin: 0;
}
/* Navigation */
.main-navigation {
  display: none;
}
@media (min-width: 768px) {
  .main-navigation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation li {
  position: relative;
}
.main-navigation a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: var(--wd-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-navigation a:hover {
  color: var(--wd-link);
}
/* Dropdown */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: var(--wd-background);
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  z-index: 50;
  flex-direction: column;
}
.main-navigation li:hover > .sub-menu {
  display: flex;
}
.main-navigation .sub-menu a {
  padding: 0.5rem 1rem;
}
.main-navigation .sub-menu a:hover {
  background-color: var(--wd-surface);
}
/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}
/* Mobile Navigation */
.mobile-navigation {
  display: none;
  border-top: 1px solid var(--wd-border);
  background-color: var(--wd-background);
}
.mobile-navigation.is-open {
  display: block;
}
@media (min-width: 768px) {
  .mobile-navigation {
    display: none !important;
  }
}
.mobile-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-navigation li {
  border-bottom: 1px solid var(--wd-border);
}
.mobile-navigation a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--wd-foreground);
}
.mobile-navigation a:hover {
  background-color: var(--wd-surface);
}
.mobile-navigation .sub-menu {
  background-color: var(--wd-surface);
}
.mobile-navigation .sub-menu a {
  padding-left: 2rem;
}
/* ==========================================================================
   Article Cards
   ========================================================================== */
.article-card {
  margin-bottom: 2.5rem;
}
.article-card .entry-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .article-card .entry-title {
    font-size: 1.875rem;
  }
}
.article-card .entry-title a {
  color: var(--wd-heading);
}
.article-card .entry-title a:hover {
  color: var(--wd-link);
}
.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--wd-muted);
  margin-bottom: 1rem;
}
.entry-meta a {
  color: var(--wd-link);
}
.post-thumbnail {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: var(--wd-radius);
}
.post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-thumbnail a:hover img {
  transform: scale(1.05);
}
.entry-summary {
  color: var(--wd-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.read-more {
  font-weight: 500;
  color: var(--wd-link);
}
.read-more:hover {
  color: var(--wd-link-hover);
}
.cat-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.cat-links span {
  color: var(--wd-muted);
}
.cat-links a {
  color: var(--wd-link);
}
/* ==========================================================================
   Sidebar
   ========================================================================== */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.widget {
  background-color: var(--wd-surface-elevated);
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius);
  padding: 1.5rem;
}
.widget-title {
  font-family: var(--wd-font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--wd-heading);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--wd-border);
}
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget li {
  margin: 0;
}
.widget a {
  display: block;
  padding: 0.375rem 0;
  color: var(--wd-link);
  transition: color 0.2s ease;
}
.widget a:hover {
  color: var(--wd-link-hover);
}
/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  color: var(--wd-link);
  border-radius: var(--wd-radius);
  transition: all 0.2s ease;
}
.pagination .page-numbers:hover {
  color: var(--wd-link-hover);
}
.pagination .page-numbers.current {
  background-color: var(--wd-primary);
  color: #fff;
}
.pagination .dots {
  padding: 0.5rem;
  color: var(--wd-muted);
}
/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--wd-surface);
  border-top: 1px solid var(--wd-border);
  margin-top: 4rem;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
  }
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-branding .site-logo {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
}
.footer-branding span {
  font-weight: 600;
  color: var(--wd-foreground);
}
.footer-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-navigation a {
  font-size: 0.875rem;
  color: var(--wd-link);
}
.site-info {
  font-size: 0.875rem;
  color: var(--wd-muted);
}
/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post .entry-header {
  margin-bottom: 1.5rem;
}
.single-post .entry-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .single-post .entry-title {
    font-size: 2.5rem;
  }
}
.single-post .entry-content {
  line-height: 1.8;
}
.single-post .entry-content p {
  margin-bottom: 1.5rem;
}
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--wd-border);
}
.comments-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--wd-border);
}
.comment-author {
  font-weight: 600;
}
.comment-meta {
  font-size: 0.875rem;
  color: var(--wd-muted);
  margin-bottom: 0.5rem;
}
.comment-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius);
  margin-bottom: 1rem;
}
.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}
.comment-form .submit {
  background-color: var(--wd-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--wd-radius);
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.comment-form .submit:hover {
  background-color: var(--wd-primary-hover);
}

/* -----------------------------
 * Tiles grid (main content)
 * ----------------------------- */
.wd-tiles {
    display: grid;
    gap: 32px;
}

.wd-tiles--one {
    grid-template-columns: 1fr;
}

.wd-tiles--two {
    grid-template-columns: repeat(2, minmax(0, 382px));
    justify-content: space-between;
}

@media (max-width: 900px) {
    .wd-tiles--two {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
}

/* Tile card */
.wd-tile {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.wd-tile-thumb {
    display: block;
    line-height: 0;
    aspect-ratio: 382 / 255;
    overflow: hidden;
}

.wd-tile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wd-tile-body {
    padding: 22px 22px 26px;
}

.wd-tile-title {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.25;
}

.wd-tile-title a {
    color: inherit;
    text-decoration: none;
}

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

.wd-tile-excerpt {
    margin: 0 0 18px;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.65;
}

.wd-tile-author {
    font-size: 14px;
    color: #111827;
}