/*
 Theme Name:   Astra Child - Dr. Divya
 Theme URI:    https://drdivya.ddev.site
 Description:  Child theme for Dr. Divya - Cancer Specialist. Clean, professional, responsive.
 Author:       Dr. Divya
 Author URI:   https://drdivya.ddev.site
 Template:     astra
 Version:      1.0.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child-drdivya
*/

/* -------------------------------------------------------------------------
   Front page: full-width breakout (no sidebar, no narrow container)
   ------------------------------------------------------------------------- */
.drdivya-front-page .site-content .ast-container {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.drdivya-front-page .site-content {
	padding-top: 0;
}

.drdivya-front-wrap {
	width: 100%;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.drdivya-hero {
	position: relative;
	min-height: 72vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4rem 1.5rem 5rem;
	overflow: hidden;
}

.drdivya-hero-bg {
	position: absolute;
	inset: 0;
	background-color: #1e3a5f;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.drdivya-hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(ellipse 80% 50% at 50% 120%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
		url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h2v2H0V0zm4 0h2v2H4V0zm4 0h2v2H8V0zm4 0h2v2h-2V0zm4 0h2v2h-2V0zm4 0h2v2h-2V0zm4 0h2v2h-2V0z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
	z-index: 1;
	pointer-events: none;
}

.drdivya-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 720px;
	margin: 0 auto;
}

.drdivya-hero-label {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 0.75rem;
}

.drdivya-hero-title {
	font-size: clamp(2.5rem, 8vw, 4rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 1rem;
}

.drdivya-hero-subtitle {
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 2rem;
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
}

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

.drdivya-btn {
	display: inline-block;
	padding: 0.875rem 1.75rem;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.drdivya-btn-primary {
	background: #fff;
	color: #1e3a5f;
	border: 2px solid #fff;
}

.drdivya-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
	color: #1e3a5f;
}

.drdivya-btn-outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.7);
}

.drdivya-btn-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
	transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */
.drdivya-about {
	background: #f8fafc;
	padding: 5rem 1.5rem;
}

.drdivya-about-inner {
	max-width: 680px;
	margin: 0 auto;
}

.drdivya-section-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 0.5rem;
}

.drdivya-about-title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 1.5rem;
}

.drdivya-about-content {
	font-size: 1.125rem;
	line-height: 1.75;
	color: #334155;
}

.drdivya-about-content p {
	margin: 0 0 1rem;
}

.drdivya-about-content p:last-child {
	margin-bottom: 0;
}

.drdivya-link-arrow {
	display: inline-block;
	margin-top: 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
	transition: color 0.2s, gap 0.2s;
}

.drdivya-link-arrow::after {
	content: ' →';
}

.drdivya-link-arrow:hover {
	color: #1e40af;
}

/* -------------------------------------------------------------------------
   Blog section
   ------------------------------------------------------------------------- */
.drdivya-blog-section {
	background: #fff;
	padding: 5rem 1.5rem;
}

.drdivya-blog-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.drdivya-blog-title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 2rem;
}

.drdivya-blog-section .drdivya-section-label {
	margin-bottom: 0.5rem;
}

.drdivya-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.75rem;
}

.drdivya-post-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
	border: 1px solid #e2e8f0;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}

.drdivya-post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
	border-color: #cbd5e1;
}

.drdivya-post-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.drdivya-post-card-image {
	aspect-ratio: 16 / 10;
	background: linear-gradient(145deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%);
	overflow: hidden;
	position: relative;
}

.drdivya-post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.drdivya-post-card-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%);
}

.drdivya-post-card-placeholder::before {
	content: '';
	width: 48px;
	height: 48px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236366f1' stroke-opacity='0.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z'/%3E%3C/svg%3E") no-repeat center;
}

.drdivya-post-card-body {
	padding: 1.5rem;
}

.drdivya-post-card-title {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
	color: #0f172a;
	margin: 0 0 0.5rem;
	transition: color 0.2s;
}

.drdivya-post-card:hover .drdivya-post-card-title {
	color: #2563eb;
}

.drdivya-post-card-date {
	font-size: 0.875rem;
	color: #64748b;
}

.drdivya-blog-cta {
	text-align: center;
	margin-top: 2.5rem;
}

.drdivya-blog-empty {
	text-align: center;
	max-width: 480px;
	margin: 0 auto;
	color: #64748b;
	font-size: 1.05rem;
}

/* -------------------------------------------------------------------------
   Single post (blog node): better, nice layout
   ------------------------------------------------------------------------- */
.single-post .site-content,
.single .site-content {
	background: #f1f5f9;
	padding-top: 2rem;
	padding-bottom: 3rem;
}

.single-post .site-content .ast-container,
.single .site-content .ast-container {
	max-width: 1200px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 2rem;
	padding-right: 2rem;
}

.single-post .drdivya-single-article-wrap,
.single .drdivya-single-article-wrap,
.single-post #primary,
.single #primary {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

/* Article card with top accent */
.single-post .site-content #primary > div,
.single .site-content #primary > div,
.single-post .drdivya-single-article-wrap > div,
.single .drdivya-single-article-wrap > div {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
	padding: 0;
	margin-top: 0;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	position: relative;
}

.single-post .site-content #primary > div::before,
.single .site-content #primary > div::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #2563eb, #1e40af);
}

.single-post .site-content #primary > div .entry-header,
.single .site-content #primary > div .entry-header {
	padding: 2.5rem 2.5rem 1.25rem;
	padding-top: 2rem;
}

.single-post .site-content #primary > div .entry-content,
.single .site-content #primary > div .entry-content,
.single-post .site-content #primary > div .drdivya-post-meta-bar,
.single .site-content #primary > div .drdivya-post-meta-bar {
	padding-left: 2.5rem;
	padding-right: 2.5rem;
}

.single-post .site-content #primary > div .entry-content {
	padding-bottom: 2.5rem;
}

.single-post .site-content #primary > div .drdivya-post-meta-bar {
	padding-top: 0;
	padding-bottom: 1.25rem;
}

/* Entry header */
.single-post .entry-header,
.single .entry-header {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.single-post .entry-header .entry-title,
.single .entry-header .entry-title {
	font-size: clamp(1.75rem, 4.5vw, 2.35rem);
	font-weight: 700;
	line-height: 1.25;
	color: #0f172a;
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
}

/* Hide duplicate meta from Astra, style ours */
.single-post .entry-header .posted-on,
.single .entry-header .posted-on {
	display: none;
}

/* Meta bar */
.drdivya-post-meta-bar {
	font-size: 0.9rem;
	color: #64748b;
	gap: 1.25rem;
	margin-bottom: 0;
	border-bottom: 1px solid #f1f5f9;
}

/* Content typography */
.single-post .entry-content,
.single .entry-content {
	font-size: 1.125rem;
	line-height: 1.85;
	color: #334155;
}

.single-post .entry-content p,
.single .entry-content p {
	margin-bottom: 1.35em;
}

/* Template note: first para "Drag your own photos..." — subtle */
.single-post .entry-content > p:first-of-type,
.single .entry-content > p:first-of-type {
	font-size: 0.9rem;
	color: #94a3b8;
	font-style: italic;
	margin-bottom: 1.5rem;
	padding: 0.75rem 1rem;
	background: #f8fafc;
	border-radius: 8px;
	border-left: 3px solid #e2e8f0;
}

/* Second paragraph = lead (slightly larger) */
.single-post .entry-content > p:nth-of-type(2),
.single .entry-content > p:nth-of-type(2) {
	font-size: 1.2rem;
	line-height: 1.7;
	color: #475569;
}

.single-post .entry-content blockquote,
.single .entry-content blockquote {
	border-left: 4px solid #2563eb;
	padding: 1rem 1.25rem 1rem 1.5rem;
	margin: 1.75rem 0;
	background: #f8fafc;
	border-radius: 0 8px 8px 0;
	color: #475569;
	font-style: italic;
}

.single-post .entry-content img,
.single .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Related posts section */
.single-post .site-content .rpt-related-posts,
.single .site-content .rpt-related-posts,
.single-post .site-content [class*="related"],
.single .site-content [class*="related"] {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid #e2e8f0;
}

.single-post .site-content .rpt-related-posts h3,
.single .site-content [class*="related"] h3 {
	font-size: 1.25rem;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 1rem;
}

/* Single post meta bar (view count, reading time, share) */
.drdivya-post-meta-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	font-size: 0.9rem;
	color: #64748b;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e2e8f0;
}

.drdivya-post-meta-bar span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.drdivya-hero {
		min-height: 65vh;
		padding: 3rem 1rem 4rem;
	}
	.drdivya-hero-actions {
		flex-direction: column;
	}
	.drdivya-btn {
		width: 100%;
		max-width: 280px;
		text-align: center;
	}
	.drdivya-about,
	.drdivya-blog-section {
		padding: 3.5rem 1rem;
	}
	.drdivya-posts-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

@media (max-width: 480px) {
	.drdivya-hero-title {
		font-size: 2rem;
	}
}
