/*
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: calc(100vh - 132px);
	max-height: 630px;
}

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

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

body .slick-prev:before, body .slick-next:before {
	display: none;
}

@media(max-width:991px) {
body button.slick-prev {
    left: auto;
    right: 98px;
}
}

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;
}


.wpcf7-form-control.wpcf7-select:invalid {
    color: #9ca3b7; 
}

.wpcf7-form-control.wpcf7-select {
    color: #111827; 
}


.wpcf7-form-control.wpcf7-select option {
    color: #111827!important; 
} 



form.sent .form-inputs-wrapper {
    display: none !important;
}


form.sent .wpcf7-response-output {
    display: block !important;
    font-size: 25px !important;      
    line-height: 1.5 !important;
    font-weight: 600 !important;     
    color: #16a34a !important;       
    text-align: center !important;    
    border: none !important;         
    padding: 40px 20px !important;   
    background-color: #f0fdf4;        
    border-radius: 8px;              
    margin: 0 0 40px !important;
}


/* Burger Menu Styles */
#burger-menu-trigger {
    transition: all 0.3s ease;
    margin-top: 12px; /* Трохи опускаємо для візуального центрування з текстом меню */
}

.burger-line {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-line-1 { top: 8px; }
.burger-line-2 { top: 15px; }
.burger-line-3 { top: 22px; }

#burger-menu-trigger.active .burger-line-1 {
    top: 15px;
    transform: rotate(45deg);
}
#burger-menu-trigger.active .burger-line-2 {
    opacity: 0;
    transform: scale(0);
}
#burger-menu-trigger.active .burger-line-3 {
    top: 15px;
    transform: rotate(-45deg);
}

/* Updated Overlay Styles */
#burger-menu-overlay {
    position: fixed;
    top: var(--header-height, 120px);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height, 120px));
    background-color: #050505; /* primary color */
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Start from top instead of centering */
    padding-top: 40px; /* Space from header */
    padding-bottom: 40px;
    overflow-y: auto; /* Scroll if content is too long */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

#burger-menu-overlay.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 768px) {
    #burger-menu-overlay {
        width: 330px; /* Width on desktop */
        top: var(--header-height, 132px);
        height: calc(100vh - var(--header-height, 132px));
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 60px; /* Desktop spacing */
        padding-left: 60px;
        padding-right: 60px;
        /* border-right: 1px solid rgba(255, 255, 255, 0.1); */
        height: fit-content;
    }
    
    #burger-menu-overlay nav {
        align-items: flex-start;
    }
}

.burger-nav-link {
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

#burger-menu-overlay.active .burger-nav-link {
    opacity: 1;
    transform: translateX(0);
}

#burger-menu-overlay.active .burger-nav-link:nth-child(1) { transition-delay: 0.1s; }
#burger-menu-overlay.active .burger-nav-link:nth-child(2) { transition-delay: 0.15s; }
#burger-menu-overlay.active .burger-nav-link:nth-child(3) { transition-delay: 0.2s; }
#burger-menu-overlay.active .burger-nav-link:nth-child(4) { transition-delay: 0.25s; }
#burger-menu-overlay.active .burger-nav-link:nth-child(5) { transition-delay: 0.3s; }
#burger-menu-overlay.active .burger-nav-link:nth-child(6) { transition-delay: 0.35s; }

.burger-social-links {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.5s;
}

#burger-menu-overlay.active .burger-social-links {
    opacity: 1;
    transform: translateY(0);
}

.burger-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e63946;
    transition: width 0.3s ease;
}

.burger-nav-link:hover::after {
    width: 100%;
}

body.menu-open {
    overflow: hidden;
}

/* WhatsApp Floating Button */
.rut-pdf-export-btn {
    position: fixed;
    right: 30px;
    bottom: 105px;
    z-index: 9999;
    border: 0;
    border-radius: 9999px;
    background: #0f172a;
    color: #fff;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.rut-pdf-export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.32);
}

.rut-pdf-export-btn.is-loading,
.rut-pdf-export-btn:disabled {
    cursor: wait;
    opacity: 0.85;
    transform: none;
}

body.rut-pdf-export-mode,
body.rut-pdf-export-mode #page {
    background: #ffffff !important;
}

body.rut-pdf-export-mode .rut-pdf-export-btn,
body.rut-pdf-export-mode .whatsapp-floating-btn,
body.rut-pdf-export-mode #backToTopBtn,
body.rut-pdf-export-mode #wpadminbar,
body.rut-pdf-export-mode #burger-menu-overlay {
    display: none !important;
}

body.rut-pdf-export-mode.admin-bar {
    margin-top: 0 !important;
}

body.rut-pdf-export-mode,
body.rut-pdf-export-mode * {
    animation: none !important;
    transition: none !important;
}

.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4), 0 0 30px rgba(37, 211, 102, 0.2);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    text-decoration: none;
    animation: pulse-glow 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.whatsapp-floating-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.6), 0 0 50px rgba(37, 211, 102, 0.4);
    color: white;
    animation: none;
}

.whatsapp-floating-btn svg {
    width: 32px;
    height: 32px;
    transition: transform 0.4s ease;
}

.whatsapp-floating-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(37, 211, 102, 0.4), 0 0 30px rgba(37, 211, 102, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(37, 211, 102, 0.7), 0 0 50px rgba(37, 211, 102, 0.5);
    }
}
@media (max-width: 768px) {
    .rut-pdf-export-btn {
        right: 20px;
        bottom: 82px;
        padding: 12px 18px;
        font-size: 13px;
    }

    .whatsapp-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-floating-btn svg {
        width: 26px;
        height: 26px;
    }
}

.grecaptcha-badge {
    opacity: 0;
}

/*
----------------------------------------------------------------------------------------------------
Header Scroll & Transparency Behavior
----------------------------------------------------------------------------------------------------
*/
header {
    background-color: transparent !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002 !important;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.0) !important;
}

body:not(.home) header {
    background-color: #050505 !important;
}

body.page-template-page-awards header {
    background-color: transparent !important;
}

header.scrolled, body.page-template-page-awards header.scrolled {
    background-color: #050505 !important; /* solid cinematic black background */
    border-bottom: 1px solid rgba(118, 109, 89, 0.3) !important; /* subtle gold borders */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}


header nav a[aria-current="page"] {
    color: #fff !important;
    text-decoration: underline;
    /* text-decoration-thickness: 2px; */
    text-underline-offset: 12px;
}

div#content>section, div#content>main>section {
    padding-top: 6rem;
}
