/*
Theme Name: Custom Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Кастомная тема WordPress с двумя типами страниц и гибкими настройками цветов
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-theme
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

img.aligncenter,
.wp-block-image.aligncenter img,
.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

img.alignleft,
.wp-block-image.alignleft,
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

img.alignright,
.wp-block-image.alignright,
.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

figure {
    margin: 0;
}

.wp-block-image figcaption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

a {
    text-decoration: none;
}

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

/* Header */
.site-header {
    padding: 20px 0 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
    height: 100%;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: inherit;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    display: inline-block;
    position: relative;
}

/* Create invisible bridge between menu item and dropdown */
.main-navigation li::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.main-navigation li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.main-navigation li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Dropdown/Sub-menu */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.main-navigation li:hover > ul,
.main-navigation li.focus > ul {
    display: flex;
}

.main-navigation ul ul li {
    display: block;
    width: 100%;
    position: relative;
}

.main-navigation ul ul li a {
    padding: 12px 20px;
    color: #333333;
    font-weight: 400;
    border-radius: 0;
    white-space: nowrap;
}

.main-navigation ul ul li a:hover {
    background-color: #f5f5f5;
    color: #378f6a;
}

/* Sub-menu indicator arrow */
.main-navigation .menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Nested sub-menus (third level) */
.main-navigation ul ul ul {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 8px;
}

.main-navigation ul ul ul::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #ffffff;
}

/* Keep dropdown visible when hovering over it */
.main-navigation ul ul:hover {
    display: flex;
}

/* Header Buttons */
.header-buttons {
    flex-shrink: 0;
    display: flex;
    gap: 15px;
}

.header-button {
    padding: 10px 25px;
    background: #0066cc;
    color: white !important;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    display: inline-block;
}

.header-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    position: relative;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    display: block;
    position: absolute;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 12px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 12px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background-color: #378f6a;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background-color: #378f6a;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Body padding for fixed header */
body {
    padding-top: 0;
}

body.menu-open {
    overflow: hidden;
}

/* Banner */
.page-banner-wrapper {
    width: 100%;
    margin: 0 auto;
    margin-top: 90px; /* header height (80px) + 10px */
}


.page-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.page-banner-img.js-banner-click {
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-banner-img.js-banner-click:hover {
    opacity: 0.9;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hide desktop banner on mobile, show mobile banner */
@media (max-width: 768px) {
    .page-banner-wrapper:not(.mobile-banner-wrapper) {
        display: none;
    }
    .page-banner-wrapper.mobile-banner-wrapper {
        display: block;
        width: 100%;
    }
    .mobile-banner-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
    }
    .page-banner-img.js-banner-click {
        cursor: pointer;
    }
}

/* Hide mobile banner on desktop */
@media (min-width: 769px) {
    .page-banner-wrapper.mobile-banner-wrapper {
        display: none;
    }
}

/* Content */
.site-content {
    padding: 20px 0;
    margin-top: 80px; /* header height - default when no banner */
}

/* Remove padding when breadcrumbs exist */
.site-content:has(.breadcrumbs) {
    padding: 0;
}

/* When banner exists, reduce top margin since banner already has margin from header */
.page-banner-wrapper + .site-content {
    margin-top: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 10px 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    margin-top: 0;
    margin-bottom: 10px;
}

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

.breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #999;
    font-size: 16px;
    font-weight: normal;
}

.breadcrumb-item a {
    color: #378f6a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2a6d52;
    text-decoration: underline;
}

.breadcrumb-item span {
    color: #666;
    font-weight: 500;
}

/* Table of Contents */
.table-of-contents-wrapper {
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
}

.toc-toggle {
    padding: 15px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    user-select: none;
}

.toc-toggle:hover {
    background-color: #f0f0f0;
}

.toc-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.toc-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.table-of-contents-wrapper.active .toc-icon {
    transform: rotate(180deg);
}

.table-of-contents {
    display: none;
    list-style: none;
    padding: 15px 20px;
    margin: 0;
    background-color: #ffffff;
    column-count: 3;
    column-gap: 20px;
    column-fill: balance;
}

.table-of-contents-wrapper.active .table-of-contents {
    display: block;
}

.toc-item {
    margin-bottom: 8px;
    padding-left: 0;
    break-inside: avoid;
    page-break-inside: avoid;
}

.toc-item:last-child {
    margin-bottom: 0;
}

.toc-link {
    display: flex;
    align-items: flex-start;
    color: #378f6a;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.toc-link:hover {
    color: #2a6d52;
    text-decoration: underline;
}

.toc-number {
    font-weight: 600;
    margin-right: 6px;
    color: #378f6a;
    flex-shrink: 0;
}

.toc-text {
    flex: 1;
}

/* Smooth scroll for TOC links - faster */
html {
    scroll-behavior: smooth;
}

/* Faster scroll for TOC */
.toc-link {
    scroll-margin-top: 80px;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Lists in content */
.page-content ul,
.page-content ol {
    margin: 15px 0;
    padding-left: 30px;
    line-height: 1.8;
}

.page-content ul {
    list-style-type: disc;
}

.page-content ol {
    list-style-type: decimal;
}

.page-content li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.page-content ul ul,
.page-content ol ol,
.page-content ul ol,
.page-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 25px;
}

.page-content ul ul {
    list-style-type: circle;
}

.page-content ul ul ul {
    list-style-type: square;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 15px;
    margin-bottom: 15px;
}

.page-content p {
    margin-bottom: 20px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: #2c3e50;
}

thead th {
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 15px 20px;
    font-size: 16px;
}

tbody tr {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
    background: #f8f9fa;
}

tbody tr:hover {
    background: #e3f2fd;
}

tbody td {
    padding: 15px 20px;
    color: #333333;
}

tbody tr:last-child {
    border-bottom: none;
}

/* Table wrapper for mobile scroll */
.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    -webkit-overflow-scrolling: touch;
}

/* Reviews Section */
.reviews-section {
    margin: 20px 0;
}

.reviews-section h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 36px;
    position: relative;
    padding-bottom: 20px;
}

.reviews-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #f39c12, #f1c40f);
}

.review-item {
    background: #f9f9f9;
    padding: 35px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #f39c12;
}

.review-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.review-author-info {
    flex: 1;
}

.review-author {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.review-date {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
}

.review-rating {
    color: #f39c12;
    font-size: 22px;
    letter-spacing: 3px;
    flex-shrink: 0;
}

.review-text {
    line-height: 1.8;
    color: #555;
}

.review-text p {
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin: 20px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 32px;
}

.faq-item {
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f5f5f5;
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #efefef;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 20px;
    display: none;
    line-height: 1.8;
    background: #ffffff;
}

.faq-answer.active {
    display: block;
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    margin-top: 60px;
}

/* Footer Widgets */
.footer-widgets {
    padding: 60px 0 40px;
    border-top: 1px solid #e0e0e0;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-widget-column {
    min-width: 0;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget:last-child {
    margin-bottom: 0;
}

.footer-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: inherit;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-widget ul li a:hover {
    opacity: 0.7;
}

/* Footer Bottom */
.footer-bottom {
    padding: 40px 0 30px;
    border-top: 1px solid #e0e0e0;
}

.footer-main-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo .custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title-footer {
    font-size: 24px;
    font-weight: bold;
}

.site-title-footer a {
    color: inherit;
    text-decoration: none;
}

.footer-links-columns {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    flex: 1;
}

.footer-column {
    min-width: 150px;
}

.footer-column-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: inherit;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list li:last-child {
    margin-bottom: 0;
}

.footer-links-list a {
    text-decoration: none;
    transition: opacity 0.3s;
    color: inherit;
}

.footer-links-list a:hover {
    opacity: 0.7;
}

/* Footer Contacts */
.footer-contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-label {
    font-weight: 600;
    font-size: 14px;
    color: inherit;
    opacity: 0.9;
}

.footer-contact-value {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.footer-contact-value:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Slots Grid */
.slots-grid-wrapper {
    margin: 40px 0;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.slot-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.slot-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.slot-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
}

.slot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.slot-item:hover .slot-image {
    transform: scale(1.1);
}

.slot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.slot-item:hover .slot-overlay {
    opacity: 1;
}

.slot-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #f5690a;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    transform: translateY(10px);
    box-shadow: 0 4px 12px rgba(245, 105, 10, 0.3);
}

.slot-item:hover .slot-button {
    transform: translateY(0);
}

.slot-button:hover {
    background-color: #d45a08;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 105, 10, 0.4);
}

.slot-title {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 15px 15px 15px;
    color: #333;
    line-height: 1.4;
    padding: 0;
    text-align: center;
}

/* Slots Grid Responsive */
@media (max-width: 1400px) {
    .slots-grid {
        gap: 18px;
    }
}

@media (max-width: 1200px) {
    .slots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .slot-title {
        font-size: 15px;
        margin: 12px;
    }
    
    .slot-button {
        padding: 10px 24px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .slot-title {
        font-size: 14px;
        margin: 10px;
    }
    
    .slot-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .slot-title {
        font-size: 13px;
        margin: 8px;
    }
    
    .slot-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.footer-content {
    text-align: center;
}

.copyright {
    text-align: center;
    margin-top: 20px;
}

.footer-custom-text {
    margin-top: 20px;
    line-height: 1.8;
    text-align: center;
}

.footer-custom-text p {
    margin-bottom: 15px;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

/* Buttons */
.button,
button,
input[type="submit"],
input[type="button"],
.read-more {
    display: inline-block;
    padding: 12px 30px;
    background: #0066cc;
    color: white !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 500;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.read-more:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

/* Content Buttons Wrapper */
.content-buttons-wrapper {
    text-align: center;
    margin: 10px 0;
    padding: 0px 0;
}

.content-button {
    display: inline-block;
    padding: 12px 30px;
    color: white !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 500;
    margin: 0 10px 10px 10px;
}

.content-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.content-button:first-child {
    margin-left: 0;
}

.content-button:last-child {
    margin-right: 0;
}

/* Clickable images */
.clickable-image-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.clickable-image-link:hover {
    opacity: 0.9;
}

.clickable-image-link img {
    cursor: pointer;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0066cc;
}

/* Screen Reader Text */
.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;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    .site-header {
        height: 60px;
        padding: 15px 0 15px 0;
    }
    
    .page-banner-wrapper {
        margin-top: 60px; /* header height on mobile */
    }
    
    .site-content {
        margin-top: 60px; /* header height on mobile - default when no banner */
    }
    
    /* Remove padding when breadcrumbs exist on mobile */
    .site-content:has(.breadcrumbs) {
        padding: 0;
    }
    
    /* When banner exists on mobile, reduce top margin since banner already has margin from header */
    .page-banner-wrapper + .site-content {
        margin-top: 20px;
    }
    
    /* Table mobile scroll */
    .page-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    thead th,
    tbody td {
        padding: 12px 15px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .site-header {
        padding: 15px 0;
    }
    
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: white;
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 70px 30px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        justify-content: flex-start;
        display: flex;
        flex-direction: column;
    }
    
    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        text-align: left;
        width: 100%;
        margin-top: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid #eee;
        width: 100%;
        position: relative;
    }
    
    .main-navigation li a {
        display: block;
        padding: 15px 0;
        color: #333333;
        font-weight: 500;
    }
    
    .main-navigation li a:hover {
        background-color: transparent;
        color: #378f6a;
    }
    
    /* Mobile dropdown/sub-menu */
    .main-navigation ul ul {
        position: static;
        display: none;
        background-color: #f9f9f9;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        margin-left: 20px;
        margin-top: 0;
        min-width: auto;
    }
    
    .main-navigation li.menu-item-has-children.active > ul {
        display: block;
    }
    
    .main-navigation ul ul li {
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation ul ul li a {
        padding: 12px 0;
        font-size: 14px;
        color: #666666;
    }
    
    .main-navigation ul ul li a:hover {
        background-color: transparent;
        color: #378f6a;
    }
    
    /* Mobile sub-menu indicator */
    .main-navigation .menu-item-has-children > a::after {
        content: '▶';
        float: right;
        transition: transform 0.3s ease;
    }
    
    .main-navigation .menu-item-has-children.active > a::after {
        transform: rotate(90deg);
    }
    
    /* Nested sub-menus in mobile */
    .main-navigation ul ul ul {
        margin-left: 20px;
    }
    
    /* Hide header buttons in header on mobile */
    .site-header .header-buttons {
        display: none;
    }
    
    /* Show header buttons only inside active mobile menu */
    .main-navigation.active .header-buttons {
        display: flex;
        position: relative;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding: 20px 0 0 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        transition: none;
        z-index: 1000;
        margin-top: auto;
        order: 2;
    }
    
    .header-button {
        text-align: center;
        width: 100%;
    }
    
    /* Make navigation menu order first, then buttons */
    .main-navigation ul {
        order: 1;
        flex: 0 0 auto;
    }

    .footer-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Breadcrumbs mobile */
    .breadcrumbs {
        padding: 12px 0;
    }
    
    .breadcrumbs .container {
        padding: 0 15px;
    }
    
    .breadcrumb-item {
        font-size: 13px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 6px;
        font-size: 14px;
    }
    
    /* Table of Contents mobile */
    .table-of-contents-wrapper {
        margin: 20px 0;
    }
    
    .toc-toggle {
        padding: 12px 15px;
    }
    
    .toc-title {
        font-size: 15px;
    }
    
    .table-of-contents {
        padding: 12px 15px;
        column-count: 1;
        column-gap: 0;
    }
    
    .toc-link {
        font-size: 13px;
    }
    
    /* Lists in content mobile */
    .page-content ul,
    .page-content ol {
        padding-left: 25px;
        margin: 12px 0;
    }
    
    .page-content li {
        margin-bottom: 6px;
    }
    
    .page-content ul ul,
    .page-content ol ol,
    .page-content ul ol,
    .page-content ol ul {
        padding-left: 20px;
        margin-top: 6px;
        margin-bottom: 6px;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-main-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links-columns {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .footer-widgets {
        padding: 40px 0 30px;
    }
    
    .reviews-section h2 {
        font-size: 28px;
    }
    
    .review-item {
        padding: 25px 20px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-author {
        font-size: 18px;
    }
    
    .review-rating {
        font-size: 20px;
    }
}

