/*
Theme Name: Dr. Gokul Raj Custom Theme
Theme URI: https://drgokulraj.in
Author: Dr. Gokul Raj
Description: Custom lightweight WordPress theme preserving the exact HTML/CSS design of drgokulraj.in with full blog/articles support and Cal.com integration.
Version: 1.0
*/

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --primary: #1e3a34;
  --primary-accent: #2d5a52;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0px;
  z-index: 50;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0px auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: var(--primary);
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  background-color: var(--primary);
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
  color: rgb(255, 255, 255) !important;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(30, 58, 52, 0.05);
}

/* Sections & Hero (Home Page) */
section {
  padding: 3.5rem 1.5rem;
  max-width: 1100px;
  margin: 0px auto;
}

.hero {
  text-align: center;
  max-width: 800px;
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(30, 58, 52, 0.08);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.tag-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary-accent);
  font-weight: 600;
}

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.85rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

/* Resume / CV Page Styles */
.resume-wrapper {
  max-width: 950px;
  margin: 3.5rem auto;
  padding: 0px 1.5rem;
}

.header-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.header-text h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.header-text .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.meta-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.meta-links a:hover {
  text-decoration: underline;
}

.cv-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.cv-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgb(238, 242, 240);
  padding-bottom: 0.5rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  border-left: 2px solid rgb(203, 213, 225);
}

.timeline-item:last-child {
  margin-bottom: 0px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-item .header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  font-weight: 600;
}

.timeline-item .period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.timeline-item .inst {
  font-size: 0.95rem;
  color: var(--primary-accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-item .desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.timeline-item ul {
  margin-left: 1.25rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.timeline-item li {
  margin-bottom: 0.35rem;
}

.entry-item {
  padding: 1.25rem 0px;
  border-bottom: 1px solid rgb(241, 245, 249);
}

.entry-item:first-child {
  padding-top: 0px;
}

.entry-item:last-child {
  border-bottom: none;
  padding-bottom: 0px;
}

.entry-item h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.entry-item .meta {
  font-size: 0.9rem;
  color: var(--primary-accent);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.entry-item .details {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.entry-item .paper-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.4rem;
}

.entry-item .paper-link:hover {
  text-decoration: underline;
}

.subheading {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin: 1.5rem 0px 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Consultations & Cal.com Page Styles */
.title-block {
  text-align: center;
  max-width: 700px;
  margin: 0px auto 3rem;
}

.title-block h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.title-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.price-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.1s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card:hover {
  border-color: var(--primary-accent);
  transform: translateY(-2px);
}

.price-card.active {
  border-color: var(--primary);
  background: rgb(253, 253, 252);
}

.price-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.price-card .fee {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0.75rem 0px;
}

.price-card .meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.price-card .select-btn {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.price-card.active .select-btn {
  background: var(--primary);
  color: rgb(255, 255, 255);
}

.booking-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

#my-cal-inline {
  width: 100%;
  min-height: 650px;
  overflow: hidden;
  margin-top: 1rem;
}

/* Blog / Informational Posts Styles */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-accent);
}

.post-card .post-meta {
  font-size: 0.82rem;
  color: var(--primary-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

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

.post-card h2 a:hover {
  text-decoration: underline;
}

.post-card .post-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.read-more-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.read-more-link:hover {
  text-decoration: underline;
}

/* Single Article / Post View */
.article-container {
  max-width: 800px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}

.article-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow);
}

.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.article-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.25rem;
  color: var(--primary);
  line-height: 1.3;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.article-content {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.4rem;
}

.article-content h2,
.article-content h3 {
  font-family: "Playfair Display", serif;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.article-content ul,
.article-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin: 0px 0.5rem;
}

@media (max-width: 640px) {
  .header-panel {
    flex-direction: column;
    text-align: center;
  }
  .meta-links {
    justify-content: center;
  }
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .timeline-item .header-row {
    flex-direction: column;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .article-box {
    padding: 2rem 1.25rem;
  }
}
/* Apply Arial font only to posts with the auto-generated new-arial-post class */
.new-arial-post,
.new-arial-post .article-content,
.new-arial-post h1, 
.new-arial-post h2, 
.new-arial-post h3, 
.new-arial-post p, 
.new-arial-post li {
  font-family: Arial, Helvetica, sans-serif !important;
}