body {

	line-height: 1.3rem;
}

.news-content,
.blog-content,
.blog-content-archive,
.contact-content,
.midwife-content,
.facts,
.about-card {
	border: 5px solid#623e7791;
}

header {
	background-color: white !important;
	margin: 0;
	padding-top: 3em;
	padding-bottom: 3em;
	padding-left: 1em;
	padding-right: 1em;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.61);
}

.heading-link {
	text-decoration: none;
	color: inherit;
}

footer {
	position: relative;
	background-color: #544c71e9 !important;
	margin: 0;
	padding: 2em;
	width: 100%;
	height: auto;
	color: white;
	text-align: center;
}

.footer-bar {
	position: absolute;
	top: 0;
	left: 0;
	background-color: #8c82b3e8;
	width: 100%;
	height: 15px;
}

/* Front Page */
.front-page-background {
	background-image: url("../images/welcome-background.jpg");
	gap: 40px;
	padding: 1.6em;
	background-size: cover;
	background-position: center;
	position: relative;
}

.front-page-background::before,
.writing-background::before,
.midwife-backround::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.119);
}

.front-page-background>*,
.writing-background>*,
.midwife-backround>* {
	position: relative;
	z-index: 2;
}

.front-page-img {
	width: 100%;
	filter:
		drop-shadow(0 6px 8px rgba(0, 0, 0, 0.473)) drop-shadow(0 16px 22px rgba(0, 0, 0, 0.57)) drop-shadow(0 28px 38px rgba(0, 0, 0, 0.108));
}

.front-page-card,
.writing,
.news-content,
.midwife-content,
.blog-content,
.midwife-template,
.books-content {
	background-color: rgba(255, 255, 255, 0.722);
	border-radius: 10px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.blog-content-archive,
.contact-content {
	background-color: rgba(255, 255, 255, 0.858);
	border-radius: 20px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Menu & Navbar */
.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: end;
	gap: 12px;
}

.menu li {
	list-style: none;
	margin-left: 20px;
	position: relative;
}

.menu a {
	text-decoration: none;
	color: #333;
	font-family: 'Alice';
	font-size: 0.95rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: all 0.3s ease;
	position: relative;
	display: inline-block;
}

.menu a:hover {
	color: #8c6fa8;
}

.menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0%;
	height: 1px;
	background: #8c6fa8;
	transition: width 0.3s ease;
}

.menu a:hover::after {
	width: 100%;
}

.current_page_item>a,
.current-menu-item>a {
	color: #8c6fa8;
}

.menu .menu-item-has-children>a::after {
	width: 0 !important;
}

.menu .menu-item-has-children>a:hover {
	color: #333;
}

/* Dropdown */
.menu .menu-item-has-children {
	position: relative;
	cursor: pointer;
}

.menu .menu-item-has-children>.sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	list-style: none;
	margin: 0;
	padding: 0.7rem 0;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
	width: max-content;
	min-width: 220px;
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	cursor: pointer;
}

.menu .menu-item-has-children>.sub-menu li {
	margin: 0;
}

.menu .menu-item-has-children>.sub-menu a {
	display: block;
	padding: 0.55rem 1rem;
	white-space: nowrap;
	text-transform: uppercase;
}

.menu .menu-item-has-children.open>.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.menu .sub-menu a::after {
	display: none;
}

.navbar-toggler {
	border: none;
}

.navbar-toggler:focus {
	box-shadow: 0 0 0 2px #8c6fa8;
}

/* Mobile menu spacing */
@media (max-width: 991.98px) {
	.navbar-toggler {
		margin-top: 0.5rem;
	}

	.navbar-collapse {
		margin-top: 1rem;
	}

	.menu {
		gap: 22px;
	}
}

/* Cards Content */
.front-page-cards {
	position: relative;
	border-radius: 10px;
	height: 220px;
	width: 240px;
	overflow: hidden;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	cursor: pointer;
	display: flex;
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.front-page-cards:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2), 0 14px 32px rgba(0, 0, 0, 0.16);
}

.front-page-cards::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.095);
	z-index: 1;
	transition: background 0.15s ease 0.2s;
}

.front-page-cards:hover::before {
	background: rgba(255, 255, 255, 0);
}

.card-1,
.card-2,
.card-3 {
	background-size: cover;
	background-position: center;
}

.card-1 {
	background-image: url("../images/flower.jpg");
}

.card-2 {
	background-image: url("../images/books.jpg");
}

.card-3 {
	background-image: url("../images/flower-book.jpg");
}

.card-tag {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	max-width: 90%;
	padding: 6px 16px;
	text-align: center;
	background-color: rgba(255, 255, 255, 0.895);
}

/* About Me */
.about-me-container,
.midwife {
	padding-top: 3rem;
	background: linear-gradient(to bottom, #fbfaf9, #f6f3f7);
	min-height: calc(100vh - 220px);
}

.about-me {
	gap: 30px;
	padding: 2rem 1rem;
}

.about-card {
	width: 100%;
	background-color: rgba(255, 255, 255, 0.784);
	border-radius: 20px;
	gap: 30px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.about-me-image-wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}

.about-me-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 5px;
	border: 10px solid #7679a2;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* About me section */
.about-me-section {
	padding: 1em 1em;
}

.facts {
	background-color: rgba(255, 255, 255, 0.784);
	gap: 0;
	border-radius: 25px;
	margin-top: 0;
	margin-bottom: 1.5rem;
	width: 100%;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	align-items: stretch;
	padding-left: 1.75rem;
	padding-right: 1.75rem;
}

.fact-flexbox {
	width: 100%;
}

.fact-flexbox-1 {
	padding-top: 1.75rem;
}

.fact-flexbox-2 {

	padding-bottom: 1.75rem;
}

.fact-item {
	margin-bottom: 20px;
}

.writing-background,
.midwife-background,
.archive-background,
.books-background,
.contact-background {
	background-image: url("../images/flower-book-2.jpg");
	gap: 40px;
	padding: 3em 1.5em;
	background-size: cover;
	background-position: center;
	position: relative;
	min-height: calc(100vh - 120px);
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.archive-background,
.contact-background {
	background-image: url("../images/welcome-background.jpg");
}

/* Writing */

.writing {
	padding: 2.2em
}

.writing-container {
	background: linear-gradient(to bottom, #fbfaf9, #f6f3f7);
	min-height: calc(100vh - 220px);
}

.writing-image-wrapper {
	flex: 0 1 260px;
	display: flex;
	justify-content: center;
}

.writing-img {
	width: 100%;
	max-width: 280px;
	height: auto;
	display: block;
	object-fit: contain;
}

/* News & Midwife */

.news,
.midwife {
	gap: 30px;
	padding: 2rem 1rem;
}


.news-content {
	width: min(1100px, 90vw);
	padding: 2rem;
	display: flex;
	gap: 3rem;
	align-items: center;

}

.midwife-container {
	background: linear-gradient(to bottom, #fbfaf9, #f6f3f7);
	min-height: calc(100vh - 220px);
}

.midwife-content {
	width: min(1100px, 90vw);
	padding: 2rem;

}

.news-content.has-image {
	flex-direction: row;
}

.news-content.no-image {
	display: block;
}

.news-image-wrapper {
	flex: 0 0 280px;
}

.news-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	border-radius: 10px;
}

.news-text {
	flex: 1;
}

/* Midwife */

.cropped-img-wrapper {
	overflow: hidden;
	border-radius: 15px;
}

.cropped-img-wrapper-text {
	overflow: hidden;
	border-radius: 15px;
	background-color: white;
	padding: 12px
}

.cropped-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.midwife-template {
	padding: 2em
}


/* Buttons */
.main-btn {
	background-color: #6074B7;
	color: white;
	border: none;
	box-shadow: none;
	outline: none;
	padding: 10px 20px;
	min-height: 40px;
	height: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	text-transform: uppercase;
	transition: transform 30ms ease-in-out;
	margin-top: 20px;
	text-align: center;
	text-decoration: none;
}

.article-download-btn {
	margin-top: 0;
}

/* Blog */
.blog-content {
	width: min(900px, 90vw);
	padding: 2rem;
	display: block;

}

.blog-content-archive {
	width: min(900px, 90vw);
	padding: 2rem;
	display: block;

}

.blog-btn-wrapper {
	width: auto;
	display: flex;
	justify-content: flex-end;
}

.blog-btn {
	background-color: #6074B7;
	color: white;
	border: none;
	box-shadow: none;
	outline: none;
	padding: 10px 20px;
	min-height: 40px;
	height: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	text-transform: uppercase;
	transition: transform 30ms ease-in-out;
	text-align: center;
}

.main-btn:hover,
.blog-btn:hover {
	background-color: #5267aa;
	cursor: pointer;
}


/* Books */

.books-image-wrapper {
	flex: 0 0 auto;
	width: 100%;
	height: 310px;
	overflow: hidden;
	border-radius: 10px;
}

.books-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: top;
	border-radius: 10px;

}

.books-content {
	width: min(300px, 80vw);
	padding: 2rem;
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: center;
}

/* Books image trigger */
.books-trigger {
	position: relative;
	cursor: pointer;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.books-trigger:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2), 0 14px 32px rgba(0, 0, 0, 0.16);
}

.books-trigger::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.095);
	transition: background 0.15s ease 0.2s;
	border-radius: 10px;
}

.books-trigger:hover::after {
	background: rgba(255, 255, 255, 0);
}

.books-overlay-hint {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	background-color: #6074B7;
	color: white;
	padding: 10px 20px;
	border-radius: 10px;
	font-family: 'Alice', serif;
	font-size: 0.85rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 3;
	white-space: nowrap;
}

.books-card-tag {
	position: absolute;
	bottom: 0%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 16px;
	background-color: rgba(255, 255, 255, 0.895);
	letter-spacing: 1px;
	color: #333;
	white-space: nowrap;
	transition: opacity 0.3s ease;
}

.books-trigger:hover .books-overlay-hint {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.books-trigger:hover .books-card-tag {
	opacity: 0;
}

/* Modal overlay */
.books-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(84, 76, 113, 0.55);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.books-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Modal box – matchar .books-content */
.books-modal {
	background-color: rgba(255, 255, 255, 0.97);
	border-radius: 20px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

	padding: 3rem;
	width: min(700px, 90vw);
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
	transform: translateY(-16px);
	transition: transform 0.3s ease;
}

.books-modal-overlay.active .books-modal {
	transform: translateY(0);
}

.books-modal-title {
	font-family: 'Alice', serif;
	letter-spacing: 1px;
	margin-bottom: 1.5rem;
	color: #544c71;
}

.books-modal-content {
	font-family: 'Alice', serif;
	letter-spacing: 1px;
	line-height: 1.7rem;
}

/* Stängknapp */
.books-modal-close {
	position: absolute;
	top: 1rem;
	right: 1.2rem;
	background: none;
	border: none;
	font-size: 1.8rem;
	color: #8c82b3;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s ease;
}

.books-modal-close:hover {
	color: #544c71;
}

/* Förhindra scroll bakom modal */
body.modal-open {
	overflow: hidden;
}

/* Contact */
.contact-icon {
	margin: 2rem 0 0 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	padding-right: 10%;
}

.contact-icon svg {
	width: 100%;
	max-width: 260px;
	height: auto;
}

.contact-background {
	background-image: url("../images/flower-book-2.jpg");
	gap: 40px;
	padding: 3em 1.5em;
	background-size: cover;
	background-position: center;
	position: relative;
	min-height: calc(100vh - 120px);
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.contact-content {
	width: min(900px, 90vw);
	padding: 2.2rem;
	display: flex;
	flex-direction: column;
	gap: 2em;
	background-color: rgba(255, 255, 255, 0.722);
	border-radius: 20px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.contact-info p {
	margin-bottom: 0.5rem;
}

.contact-info a {
	color: #6074B7;
	text-decoration: none;
	transition: color 0.2s ease;
}

.contact-info a:hover {
	color: #5267aa;
}

/* Contact Form 7-fält */
.contact-form {
	text-align: left;
	margin-top: 0px;
}

.contact-form input:not([type="submit"]),
.contact-form textarea {
	width: 100%;
	border: 1px solid rgba(140, 130, 179, 0.3);
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 1rem;
	font-family: 'Alice', serif;
	background-color: rgba(255, 255, 255, 0.85);
}

.contact-form input[type="submit"] {
	background-color: #6074B7;
	color: white;
	border: none;
	box-shadow: none;
	outline: none;
	padding: 10px 30px;
	min-height: 40px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.contact-form input[type="submit"]:hover {
	background-color: #5267aa;
}

.contact-socials {
	gap: 12px;
}

.social-link {
	background-color: #6074B7;
	color: white;
	padding: 10px 20px;
	border-radius: 10px;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 1px;
	transition: background-color 0.2s ease;
}

.social-link:hover {
	background-color: #5267aa;
}



/* Fonts */
.brand-title {
	font-family: 'Dawning of a New Day', cursive;
	font-size: 2rem;
	font-weight: 600;
}

h1,
h2,
h3,
h4,
h6,
small,
span,
p {
	font-family: 'Alice', serif;
	letter-spacing: 1px;
}

h6 {
	font-size: 1.35rem;
	font-weight: 600;
}

.italic {
	font-style: italic;
}

/* M / ML screens: larger phone / small tablet, 500px–767px */
@media (min-width: 500px) {
	header {
		padding: 3em;
	}

	.midwife-template {
		padding: 3em
	}

	.news-img {
		max-height: 420px;
		object-fit: cover;
		object-position: top;
	}

	.writing-background,
	.midwife-background {
		padding: 5em
	}

	.cropped-img-wrapper {
		height: 300px;
	}

	.cropped-img {
		height: 100%;
		object-fit: cover;
		object-position: top;
	}



	.midwife-content {
		padding: 3rem;

	}



}

/* Tablet / M-L screens: 768px–1199px */
@media (min-width: 768px) and (max-width: 1199px) {
	header {
		padding: 3em;
	}

	.midwife-template {
		padding: 3em
	}

	.contact-form {
		margin-top: 40px;
	}

	.writing,
	.midwife-template {
		max-width: 95%;
	}

	.writing-image-wrapper {
		flex-basis: 260px;
	}

	.writing-img {
		max-width: 260px;
	}

	.news-content,
	.midwife-content {
		width: min(900px, 90vw);
		padding: 3rem;
	}

	.books-content {
		padding: 3rem;
	}

	.news-img {
		max-width: 320px;
	}

	.writing-background,
	.midwife-background {

		padding: 5em
	}

	.contact-content {
		width: min(900px, 90vw);
		padding: 3rem;
		display: flex;
		flex-direction: row;
		gap: 2em;
		background-color: rgba(255, 255, 255, 0.722);
		border-radius: 20px;
		box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	}

	.contact-text {
		width: 400px
	}
}

/* L screens and up: desktop, 992px+ */
@media (min-width: 992px) {
	header {
		padding: 3em;
	}

	.midwife-template {
		padding: 3em
	}

	.contact-form {
		margin-top: 40px;
	}

	.menu {
		flex-direction: row;
		align-items: center;
		gap: 40px;
	}

	.menu .menu-item-has-children::after {
		content: "";
		position: absolute;
		left: 0;
		top: 100%;
		width: 100%;
		height: 12px;
	}

	.menu .menu-item-has-children>.sub-menu {
		top: 100%;
		left: 0;
		right: auto;
		align-items: flex-start;
	}

	.menu .menu-item-has-children:hover>.sub-menu,
	.menu .menu-item-has-children>.sub-menu:hover {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}

	.brand-title {
		font-size: 3rem;
	}

	.front-page-background {
		padding: 0;
		height: 50em;
	}

	.front-page-img {
		width: 80%;
	}

	.front-page-card {
		width: 40%;
	}

	.about-me,
	.facts {
		width: min(1100px, 90vw);
		margin-left: auto;
		margin-right: auto;
		flex-direction: row;
	}

	.about-me {
		margin-top: 5rem;
		margin-bottom: 2rem;
		padding: 0;
		gap: 30px;
		align-items: stretch;
	}

	.about-card {
		flex: 0 1 42%;
		max-height: 490px;
	}

	.about-me-image-wrapper {
		flex: 0 1 58%;
		display: flex;
		align-items: stretch;
		justify-content: center;
		max-height: 430px;
	}

	.about-me .about-me-img {
		width: 100%;
		height: 100%;
		max-width: none;
		max-height: 430px;
		object-fit: cover;
		border-radius: 5px;
		border: 18px solid #8376a2d2;
	}

	.facts {
		margin-top: 0;
		margin-bottom: 1.5rem;
	}


	.fact-flexbox {
		padding: 1.75rem;
		flex: 1;
	}

	.fact-flexbox-1 {
		padding-top: 1.75rem;
		padding-left: 1.75rem;
	}

	.fact-flexbox-2 {
		padding-right: 1.75rem;
		padding-bottom: 1.75rem;
	}

	.writing,
	.midwife-template {
		max-width: 85%;
	}

	.writing {
		padding: 3em
	}

	.main-btn {
		margin-top: 30px;
	}

	.writing-background,
	.midwife-background {

		padding: 5em
	}

	.midwife-content {
		padding: 3rem;
	}

	.blog-content-archive {

		padding: 3rem;


	}

	.contact-content {
		width: min(900px, 90vw);
		padding: 3rem;
		display: flex;
		flex-direction: row;
		gap: 2em;
		background-color: rgba(255, 255, 255, 0.722);
		border-radius: 20px;
		box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	}

	.contact-text {
		width: 400px
	}
}

/* XL screens: stor desktop, 1200px+ */
@media (min-width: 1200px) {
	.books-content {
		width: min(350px, 90vw);
	}

	.books-image-wrapper {

		height: 380px;

	}

	header {
		padding: 3em;
	}

	.midwife-template {
		padding: 3em
	}

	.blog-content-archive {

		padding: 3rem;


	}

	.contact-form {
		margin-top: 40px;
	}

	.writing,
	.midwife-template {
		max-width: 68%;
	}

	.writing {
		padding: 3em
	}

	.writing-card,
	.midwife-card {
		flex: 0 1 60%;
	}

	.writing-image-wrapper {
		flex: 0 1 35%;
	}

	.writing-img {
		max-width: 320px;
	}

	.news-image-wrapper {
		flex: 0 0 320px;
	}

	.news-img {
		max-width: 320px;
	}

	.writing-background,
	.midwife-background {
		height: 720px;
		padding: 5em
	}

	.midwife-content {
		padding: 3rem;
		width: min(900px, 90vw);

	}

	.books-content {
		padding: 3rem;
	}

	.contact-content {
		width: min(900px, 90vw);
		padding: 3rem;
		display: flex;
		flex-direction: row;
		gap: 2em;
		background-color: rgba(255, 255, 255, 0.722);
		border-radius: 20px;
		box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	}

	.contact-text {
		width: 400px
	}
}

.article-download-btn {
	margin-top: 0;
}