/*!
Theme Name: an7
Theme URI: https://them.es/starter
Author: Ankur Mhatre
Author URI: https://ankurm.com
Description: ankurm theme
Version: 3.7.4
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: an7
*/

/* Don't overwrite this file. Compile "/assets/main.scss" to "/build/main.css" */

/* From http://codex.wordpress.org/CSS */

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 96%;
	/* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}

.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}

.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}

.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

/* Post-author comments are already marked with the "Author" badge (see
   .comment-author-badge in main.scss) — no need to bold the whole comment. */

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

/* Medium Design Overrides */
:root {
	--medium-font-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--medium-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--medium-black: #242424;
	--medium-grey: #6B6B6B;
	--medium-light-grey: #F2F2F2;
	--medium-bg: #FFFFFF;
	--medium-accent: #0675C4;
	/* WordPress.com Blue */
}

body {
	font-family: var(--medium-font-sans);
	/* Changed to sans-serif as per target */
	color: var(--medium-black);
	background-color: var(--medium-bg);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--medium-font-sans);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 0.5em;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--medium-accent);
}

/* Header */
.site-header {
	border-bottom: 1px solid var(--medium-light-grey);
	background: white;
}

/* Layout Containers */
.container-fluid-custom {
	max-width: 1400px;
	/* Wider container for 3 columns */
	margin: 0 auto;
	padding: 0 24px;
}

/* Post List Styles */
.post-list-item {
	margin-bottom: 48px;
}

.post-list-image {
	margin-bottom: 16px;
	border-radius: 4px;
	overflow: hidden;
}

.post-list-image img {
	width: 100%;
	height: auto;
	display: block;
}

.post-category {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--medium-accent);
	margin-bottom: 8px;
	display: block;
}

.post-list-title {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 8px;
	color: var(--medium-black);
}

.post-list-meta {
	font-size: 0.85rem;
	color: var(--medium-grey);
	margin-bottom: 12px;
}

.post-list-excerpt {
	font-size: 1rem;
	color: var(--medium-black);
	line-height: 1.6;
	margin-bottom: 16px;
}

.continue-reading {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--medium-accent);
}

.navbar-brand {
	font-family: var(--medium-font-sans);
	font-weight: 900;
	font-size: 1.5rem;
	letter-spacing: -0.05em;
	color: var(--medium-black) !important;
}

.navbar-nav .nav-link {
	font-family: var(--medium-font-sans);
	font-size: 0.9rem;
	color: var(--medium-grey) !important;
	padding-left: 1rem !important;
	padding-right: 1rem !important;
}

.navbar-nav .nav-link:hover {
	color: var(--medium-black) !important;
}

/* Layout Containers */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.medium-container {
	max-width: 680px;
	margin: 0 auto;
}

/* Article Layout */
.single-post-article {
	margin-top: 48px;
}

.article-header h1 {
	font-family: var(--medium-font-serif);
	/* Medium titles are often serif */
	font-size: 2.5rem;
	line-height: 1.2;
	margin-bottom: 16px;
}

.article-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
	font-family: var(--medium-font-sans);
	font-size: 0.9rem;
	color: var(--medium-grey);
}

.article-content {
	font-size: 1.25rem;
	line-height: 1.6;
}

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

/* Latest Section - List Layout */
.latest-posts-section {
	padding: 48px 0;
	border-top: 1px solid var(--medium-light-grey);
}

.section-title {
	font-family: var(--medium-font-sans);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 32px;
}

.post-list-item {
	display: flex;
	gap: 24px;
	margin-bottom: 0;
	/* Handled by HR */
	align-items: flex-start;
}

.post-list-image {
	flex: 0 0 160px;
	/* Slightly smaller than before to match screenshot ratio */
	width: 160px;
	height: 107px;
	/* 3:2 ratio */
	overflow: hidden;
	background-color: var(--medium-light-grey);
}

.post-list-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-list-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.post-list-title {
	font-family: var(--medium-font-sans);
	font-weight: 800;
	/* Bolder title */
	font-size: 1.4rem;
	/* Larger title */
	margin-bottom: 8px;
	line-height: 1.2;
	color: var(--medium-black);
}

.post-list-excerpt {
	font-family: var(--medium-font-sans);
	/* Sans-serif for excerpt as seen in screenshot */
	font-size: 1rem;
	color: var(--medium-grey);
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
}

.post-list-meta {
	font-family: var(--medium-font-sans);
	font-size: 0.85rem;
	color: var(--medium-grey);
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--medium-light-grey);
	padding: 24px 0;
	text-align: center;
	font-family: var(--medium-font-sans);
	font-size: 0.9rem;
	color: var(--medium-grey);
}

/* Footer */
.site-footer {
	background-color: #101828 !important;
	/* Dark blue-grey */
	font-family: var(--medium-font-sans);
}

.site-footer h5,
.site-footer h6 {
	color: #FFFFFF;
	font-weight: 600;
}

.site-footer a.text-white-50:hover {
	color: #FFFFFF !important;
	transition: color 0.2s ease;
}

/* Comments */
.comment-list {
	list-style: none;
	padding: 0;
}

.comment-author-avatar img {
	border-radius: 50%;
}

.comment-author-info .fn {
	font-family: var(--medium-font-sans);
	color: var(--medium-black);
}

.comment-date {
	font-family: var(--medium-font-sans);
	font-size: 0.85rem;
}

.comment-content {
	font-family: var(--medium-font-sans);
	/* Changed to Sans-serif to match screenshot */
	font-size: 1rem;
	color: var(--medium-black);
	line-height: 1.6;
}

.comment-content p {
	margin-bottom: 1rem;
}

.badge.bg-secondary {
	background-color: #8da3b6 !important;
	/* Muted blue for author badge */
	font-weight: normal;
}