/*
Theme Name: BIP Theme
Author: Roman K
Description: A custom theme for Best International Project
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rut

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*
----------------------------------------------------------------------------------------------------
General Styles from HTML
----------------------------------------------------------------------------------------------------
*/
html {
    font-size: 130%; 
}

body {
    font-family: 'Inter', sans-serif; /* From HTML <style> */
    color: #333; /* From HTML <style> */
    /* bg-gray-50 from Tailwind is applied in body_class() or directly in header.php */
}

.article-card:hover {
    transform: translateY(-3px); /* From HTML <style> */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* From HTML <style> */
}

.article-card {
    transition: all 0.3s ease; /* From HTML <style> */
}

.date-badge {
    font-size: 0.75rem; /* From HTML <style> */
    padding: 2px 8px; /* From HTML <style> */
    border-radius: 4px; /* From HTML <style> */
    background-color: rgba(14, 42, 71, 0.1); /* From HTML <style> */
    color: #0e2a47; /* From HTML <style> */
}

.category-badge {
    font-size: 0.75rem; /* From HTML <style> */
    padding: 2px 8px; /* From HTML <style> */
    border-radius: 4px; /* From HTML <style> */
    background-color: rgba(230, 57, 70, 0.1); /* From HTML <style> */
    color: #e63946; /* From HTML <style> */
}

/* Styles for page.html filters */
.filter-button.active {
    background-color: #e63946; /* secondary color */
    color: white;
}
.filter-button {
    transition: all 0.2s ease;
}

/* Styles for single.html */
.social-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.social-share-btn:hover {
    transform: translateY(-2px);
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.article-content h1, /* Added h1 for consistency */
.article-content h2 {
    font-size: 1.5rem; /* Tailwind class text-2xl is roughly 1.5rem if base is 16px */
    font-weight: 700; /* Tailwind class font-bold */
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0f172a; /* primary color */
}
.article-content h3 {
    font-size: 1.25rem; /* Tailwind class text-xl is roughly 1.25rem */
    font-weight: 600; /* Tailwind class font-semibold */
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #0f172a; /* primary color */
}
.article-content h4, /* Added h4, h5, h6 for completeness */
.article-content h5,
.article-content h6 {
    font-size: 1.125rem; /* Tailwind class text-lg is roughly 1.125rem */
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #0f172a; /* primary color */
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-content ul li, .article-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.article-content ul {
    list-style-type: disc;
}
.article-content ol {
    list-style-type: decimal;
}
.article-content blockquote {
    border-left: 4px solid #e63946; /* secondary color */
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: #4b5563; /* Tailwind gray-600 */
}
.article-content blockquote footer { /* Added style for blockquote footer */
    margin-top: 0.5rem;
    font-size: 0.875rem; /* Tailwind text-sm */
    color: #6b7280; /* Tailwind gray-500 */
}
.article-content img {
    border-radius: 8px; /* DEFAULT border radius from Tailwind config */
    margin: 1.5rem 0;
    max-width: 100%; /* Ensure images are responsive */
    height: auto;
}
.article-content a {
    color: #0f172a; /* primary color */
    text-decoration: underline;
    text-decoration-color: rgba(14, 42, 71, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}
.article-content a:hover {
    text-decoration-color: #0f172a; /* primary color */
}
.toc-link.active {
    color: #e63946; /* secondary color */
    font-weight: 500; /* Tailwind font-medium */
}

/* Basic WordPress Core 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 {
    background: #fff;
    border: 1px solid #f0f0f0;
    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;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* style.css */
.wpcf7-form .wpcf7-list-item {
    margin-bottom: 0.5rem; /* mb-2 */
}
.wpcf7-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    font-size: 0.875rem; /* text-sm */
    color: #374151; /* text-gray-700 or your default text color */
    cursor: pointer;
}
.wpcf7-form .wpcf7-list-item input[type="radio"] {
    /* Tailwind's form reset might handle some of this if using the plugin */
    /* Otherwise, style directly */
    appearance: none;
    -webkit-appearance: none;
    width: 1rem; /* w-4 */
    height: 1rem; /* h-4 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 9999px; /* rounded-full */
    margin-right: 0.5rem; /* mr-2 */
    position: relative;
    outline: none;
    transition: all 0.2s ease;
}
.wpcf7-form .wpcf7-list-item input[type="radio"]:checked {
    border-color: #0f172a; /* primary color */
    background-color: #0f172a; /* primary color */
}
/* Optional: inner dot for checked state */
.wpcf7-form .wpcf7-list-item input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 0.5rem; /* w-2 */
    height: 0.5rem; /* h-2 */
    border-radius: 9999px; /* rounded-full */
    background-color: white; /* bg-white for the dot */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.wpcf7-form .wpcf7-list-item input[type="radio"].hidden {
    display: none; /* Якщо ви все ж хочете їх сховати для повністю кастомного рішення */
}

.contact__us .wpcf7-response-output {
	color: #fff;
}

body .slick-slide {
	height: 100vh;
	max-height: 560px;
}

body ul.slick-dots {
    bottom: 20px;
}

body .slick-dots li button {
    padding: 0;
}

body .slick-dots li button:before {
    color: #fff;
    font-size: 20px;
}

body .slick-dots li.slick-active button:before {
    color: #fff;
}

.line-clamp-3 p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ancor {
    position: absolute;
    top: -90px;
    height: 0;
}