/*
Theme Name: Pravoblog
Theme URI: https://blog.subbotina-pravo.ru
Author: Your Name
Author URI: https://blog.subbotina-pravo.ru
Description: Кастомная тема для блога о праве
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: pravoblog
Tags: blog, custom, legal
*/

/* Основные стили */
/* новый код тут */

/* Дополнительные стили для правильных отступов */
/* nav div[class*="lg:flex"][class*="lg:gap-x-12"] {
    gap: 3rem !important;
}

nav div[class*="lg:flex"][class*="lg:gap-x-12"] > a {
    margin: 0 !important;
    padding: 0 !important;
}

nav .uppercase {
    text-transform: uppercase;
}

nav a {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5rem;
    color: #111827;
    text-decoration: none;
}

nav button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 0;
    border-radius: 0.375rem;
    background-color: #203E79;
    padding: 0.625rem 0.5rem;
    color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s;
}

nav button:hover {
    background-color: #3d8ef8;
} */

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 101;
}

#mobile-menu.hidden {
    display: none;
}

#mobile-menu > div:first-child {
    position: fixed;
    inset: 0;
    background-color: #6b7280;
    opacity: 0.75;
    transition: opacity 0.3s;
}

#mobile-menu > div:last-child {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    inset-y: 0;
    right: 0;
    z-index: 101;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: #fff;
    padding: 1.5rem;
}

.mobile-menu-services button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.75rem;
    color: #111827;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-services button:hover {
    background-color: #f9fafb;
}

.mobile-services-panel {
    margin-top: 0.5rem;
}

.mobile-services-panel.hidden {
    display: none;
}

.mobile-services-panel a {
    display: block;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.75rem;
    color: #111827;
    text-decoration: none;
}

.mobile-services-panel a:hover {
    background-color: #f9fafb;
}

/* Callback Modal */
#callback-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    overflow-y: auto;
}

#callback-modal.hidden {
    display: none;
}

#callback-modal > div:first-child {
    position: fixed;
    inset: 0;
    background-color: #6b7280;
    opacity: 0.75;
    transition: opacity 0.3s;
}

#callback-modal > div:last-child {
    display: flex;
    min-height: 100%;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

#callback-modal > div:last-child > div {
    position: relative;
    transform: translateY(0);
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #fff;
    padding: 1.25rem 1rem 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    width: 100%;
    max-width: 32rem;
}

#callback-form {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1rem;
}

#callback-form input {
    min-width: 0;
    flex: 1 1 auto;
    border-radius: 0.375rem;
    border: 0;
    padding: 0.5rem 0.875rem;
    color: #111827;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    outline: 1px solid transparent;
    outline-offset: 2px;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5rem;
}

#callback-form input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #3d8ef8;
}

#callback-form button[type="submit"] {
    min-width: 0;
    flex: 1 1 auto;
    border-radius: 0.375rem;
    background-color: #1f3e7a;
    padding: 0.625rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#callback-form button[type="submit"]:hover {
    background-color: #3d8ef8;
}

/* Footer стили */
footer {
    padding: 0 1rem;
    border-top: 1px solid;
    background-color: #212121 !important;
    color: #fff !important;
}

footer a {
    color: #fff !important;
}

footer a:hover {
    color: #3d8ef8 !important;
}

footer h3 {
    color: #fff !important;
}

footer .uppercase {
    color: #fff !important;
}

footer .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 0;
    margin: 0 auto;
    gap: 2rem;
    max-width: 80rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

footer .lg\:w-1\/3 {
    width: 33.333333%;
}

footer .lg\:w-2\/3 {
    width: 66.666667%;
}





footer .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
footer .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

footer .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.75rem;
    font-size: 0.875rem;
}
footer .space-y-3 > * + * {
    margin-top: 0.75rem;
}

footer .space-y-1 > * + * {
    margin-top: 0.25rem;
}

footer h3 {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #111827;
}

footer a {
    color: #fff !important;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

footer a:hover {
    color: #3d8ef8 !important;
}

footer .uppercase {
    text-transform: uppercase;
    color: #fff !important;
}

footer .flex {
    display: flex;
}

footer .flex-row {
    flex-direction: row;
}

footer svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Main content */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    padding-top: 120px; /* Отступ для фиксированного header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.posts-container {
    max-width: 800px;
    margin: 0 auto;
}

article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

article:last-child {
    border-bottom: none;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.entry-content {
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #005177;
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.no-posts {
    text-align: center;
    padding: 3rem 0;
}

.sidebar {
    margin-top: 2rem;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Утилиты */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-main {
    color: #1f3e7a;
}

.bg-main {
    background-color: #1f3e7a;
}

/* Footer дополнительные классы */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top-width: 1px;
}

.dark\:bg-gray-100 {
    background-color: #f3f4f6;
}

.dark\:text-gray-800 {
    color: #1f2937;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 2rem;
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.75rem;
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.25rem;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.dark\:text-gray-900 {
    color: #fff !important;
}

footer .dark\:text-gray-900 {
    color: #fff !important;
}

.justify-start {
    justify-content: flex-start;
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0.75rem;
}

.h-22 {
    height: 10rem;
}

.grid {
    display: grid;
}

.gap-x-3 {
    column-gap: 0.75rem;
}

.gap-y-8 {
    row-gap: 2rem;
}

.size-6 {
    width: 1.5rem;
    height: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.h-1\/2 {
    height: 50%;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.justify-center {
    justify-content: center;
}

.dark\:text-gray-600 {
    color: #4b5563;
}

.pr-4 {
    padding-right: 1rem;
}

.decoration-1 {
    text-decoration-thickness: 1px;
}

.hover\:text-main:hover {
    color: #1f3e7a;
}

/* Адаптивность */
@media (min-width: 1024px) {
    nav .lg\:flex {
        display: flex;
    }
    
    nav .lg\:hidden {
        display: none;
    }
    
    footer .lg\:flex-row {
        flex-direction: row;
    }
    
    footer .lg\:w-1\/3 {
        width: 33.333333%;
    }
    
    footer .lg\:w-2\/3 {
        width: 66.666667%;
    }
    
    footer .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    footer .hidden.lg\:block {
        display: block;
    }
}

@media (max-width: 1023px) {
    footer .container {
        flex-direction: column;
    }
    
    footer .lg\:w-1\/3,
    footer .lg\:w-2\/3 {
        width: 100%;
    }
}

footer ul {
	list-style-type: none!important;
	padding-left: 0!important;
}


/* ===============================
   FOOTER — сетка как на главном (на всякий случай)
   =============================== */
footer .grid {
    gap: 1.25rem !important; /* как gap-y-8 gap-x-3 */
}

/* Чтобы не сжимались колонки теряя вид 5 колонок */
footer .grid > div {
    min-width: 160px;
}