/*
Theme Name: Dholera Theme
Theme URI: https://dholera.info/
Author: P3 Multisolutions IT Services Private Limited
Author URI: https://p3multisolutions.com/
Description: A clean, modern blog theme inspired by Popupsmart blog design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dholera-theme
Tags: blog, responsive, modern, minimal
*/

/* ================== GOOGLE FONTS ================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Merriweather:wght@700&display=swap');

/* ================== BASE TYPOGRAPHY ================== */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin: 0;
  background: #fff;
  color: #111;
}
h1, h2, h3 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
}
.meta {
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ================== CONTAINERS ================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* ================== HEADER ================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-branding img { height: 40px; width: auto; }
.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: #111;
}
.site-nav .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}
.site-nav .menu li a {
  font-weight: 500;
  color: #333;
  transition: color 0.2s;
}
.site-nav .menu li a:hover { color: #0073e6; }

/* ================== HERO ================== */
.hero {
  background: #f9fafb;
  padding: 4rem 0;
}
.hero-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.125rem;
  color: #444;
  line-height: 1.6;
}
.hero-feature {
  flex: 1;
  min-width: 280px;
  text-align: center;
}
.hero-feature img.hero-static-img {
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ================== SECTION HEADINGS ================== */
.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-left: 5px solid #0073e6;
  padding-left: 10px;
  color: #111;
}

/* ================== ARTICLE CARDS ================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.article-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.article-thumb { position: relative; }
.article-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #0073e6;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
}
.article-content {
  padding: 1.25rem;
  flex: 1;
}
.article-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}
.article-title-link:hover h2 { color: #0073e6; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.author-avatar { border-radius: 50%; }
.author-text { display: flex; flex-direction: column; font-size: 0.85rem; color: #555; }
.author-name { font-weight: 600; color: #111; }
.post-date { font-size: 0.8rem; color: #777; }

/* ================== CATEGORIES ================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.cat-card {
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(135deg, #0073e6, #00c6ff);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
}
.cat-card:nth-child(2n) { background: linear-gradient(135deg, #ff6f61, #ffb199); }
.cat-card:nth-child(3n) { background: linear-gradient(135deg, #42e695, #3bb2b8); }
.cat-card:nth-child(4n) { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.cat-card:nth-child(5n) { background: linear-gradient(135deg, #ff9a9e, #fad0c4); }
.cat-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.cat-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.cat-card span { font-size: 0.9rem; font-weight: 400; }

/* ================== SINGLE POST LAYOUT ================== */
.single-layout {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 2rem;
  margin-top: 2rem;
}
.single-main { max-width: 100%; }
.single-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.single-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}
.single-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #222;
}
.single-content h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
}
.single-content h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem;
}

/* TOC (Left Sidebar) */
.single-left {
  position: sticky;
  top: 100px;
  height: fit-content;
  align-self: start;
}
.toc-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.toc-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #0073e6;
}
.toc-widget li { margin-bottom: 0.5rem; }
.toc-widget a { text-decoration: none; color: inherit; }
.toc-widget a:hover { text-decoration: underline; }

/* Right Sidebar */
.single-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-self: start;
}

/* Enquiry Form */
.enquiry-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.enquiry-widget form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.enquiry-widget input,
.enquiry-widget textarea {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
}
.enquiry-widget button {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.enquiry-widget button:hover { background: #005bb5; }

/* Advisor Widget */
.advisor-widget {
  text-align: center;
  padding: 1.25rem;
  border: 1px solid #eee;
  border-radius: 12px;
}
.advisor-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.advisor-widget h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.advisor-widget p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}
.advisor-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  text-align: left;
}
.advisor-list li { margin-bottom: 0.4rem; }
.advisor-btn {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.advisor-btn:hover { background: #1DA851; }

/* ================== RESPONSIVE ================== */
@media (max-width: 1100px) {
  .single-layout {
    grid-template-columns: 200px 1fr;
  }
  .single-right {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .single-right > * { flex: 1 1 45%; }
}
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text h1 { font-size: 2rem; }
  .article-thumb img { height: 180px; }
  .single-layout { grid-template-columns: 1fr; }
  .single-left { display: none; }
  .single-right { flex-direction: column; }
}
