/*
Theme Name: DevTest
Author: Natalie Smith
Description: A standalone theme based on Twenty Twenty-Five as a starting point. This theme emphasizes simplicity and adaptability with flexible design options and various patterns for different page types.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devtest
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	/* outline-width: 2px;
	outline-style: solid; */
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	/* margin-bottom: 3px; */
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	/* outline-offset: 4px; */
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	/* outline-offset: 0; */
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

footer.wp-block-template-part {
	margin-top: 0;
}

@media only screen and (max-width: 600px) {
	header .login-btn {
	  display: none;
	}
  }

/* Testimonial carousel */
.testimonial-carousel-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.testimonial-carousel {
	width: 100%;
	position: relative;
}

.testimonial-carousel>.wp-block-group.slide {
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform: translateX(100%);
}

.testimonial-carousel>.wp-block-group.slide.current {
	position: relative;
	opacity: 1;
	transform: translateX(0);
	z-index: 2;
}

.testimonial-carousel>.wp-block-group.slide.prev {
	opacity: 1;
	transform: translateX(-100%);
	z-index: 1;
}

.testimonial-carousel>.wp-block-group.slide.next {
	opacity: 1;
	transform: translateX(100%);
	z-index: 1;
}

.testimonial-carousel-container .goToPrev,
.testimonial-carousel-container .goToNext {
	cursor: pointer;
	z-index: 3;
}

.carousel-dots {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	gap: 8px;
	min-height: 12px;
}

.carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent-6, #929292);
	border: none;
	padding: 0;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
	opacity: 1;
	background-color: var(--wp--preset--color--contrast, #4D5A5E);
	transform: scale(1.2);
}

.carousel-dot:hover {
	opacity: 0.8;
}

.carousel-dot:focus {
}

/* Details Block Custom Styling */
.wp-block-details summary {
    font-weight: 900;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wp-block-details summary::-webkit-details-marker {
    display: none;
}

.wp-block-details summary::after {
    content: '';
    display: inline-block;
    width: 51px;
    height: 51px;
    background-image: url('/wp-content/themes/devtest/assets/images/chevron.svg');
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s;
}

.wp-block-details[open] > summary::after {
    transform: rotate(180deg);
}

.wp-block-details p {
    font-weight: normal;
    font-size: 16px;
}
