/*
Theme Name: K51comm
Theme URI: https://k51comm.com
Author: K51comm
Author URI: https://www.k51comm.com
Description: A modern, responsive WordPress theme with hero slider, product grid, team section and contact form.
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: k51comm
Tags: one-column, two-columns, left-sidebar, right-sidebar, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready
Requires at least: 5.0
Requires PHP: 7.4
*/

:root {
    --k51comm-primary: #FF0000;
    --k51comm-primary-dark: #CC0000;
    --k51comm-text: #333333;
    --k51comm-text-light: #666666;
    --k51comm-bg: #FFFFFF;
    --k51comm-bg-light: #F5F5F5;
    --k51comm-border: #E0E0E0;
    --k51comm-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --k51comm-transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--k51comm-text);
    background: var(--k51comm-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--k51comm-primary);
    text-decoration: none;
    transition: var(--k51comm-transition);
}

a:hover {
    color: var(--k51comm-primary-dark);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--k51comm-transition);
    text-align: center;
}

.btn-primary {
    background: var(--k51comm-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--k51comm-primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--k51comm-primary);
    color: var(--k51comm-primary);
}

.btn-outline:hover {
    background: var(--k51comm-primary);
    color: #fff;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: var(--k51comm-transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--k51comm-text);
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0;
    color: var(--k51comm-text);
    font-weight: 500;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--k51comm-primary);
    transition: var(--k51comm-transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--k51comm-text);
    margin: 5px 0;
    transition: var(--k51comm-transition);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: var(--k51comm-shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--k51comm-transition);
    }

    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--k51comm-border);
    }

    .main-navigation a {
        padding: 1rem 0;
    }
}

/* Language Switcher */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-switcher a {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: var(--k51comm-text-light);
    border: 1px solid var(--k51comm-border);
    border-radius: 4px;
}

.lang-switcher a.active,
.lang-switcher a:hover {
    color: var(--k51comm-primary);
    border-color: var(--k51comm-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 600px;
    padding: 5rem 2rem 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.hero-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid #fff;
    color: #fff;
    cursor: pointer;
    transition: var(--k51comm-transition);
}

.hero-btn:hover {
    background: var(--k51comm-primary);
    border-color: var(--k51comm-primary);
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--k51comm-transition);
}

.hero-dot.active {
    background: var(--k51comm-primary);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--k51comm-text);
}

.section-header p {
    color: var(--k51comm-text-light);
    font-size: 1.125rem;
}

.section-title {
    color: var(--k51comm-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* About Section */
.about-section {
    background: var(--k51comm-bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--k51comm-shadow);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-feature i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--k51comm-primary);
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.about-content > .btn-outline {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--k51comm-shadow);
    transition: var(--k51comm-transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--k51comm-transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--k51comm-text);
    margin: 0 0.25rem;
}

.product-overlay a:hover {
    background: var(--k51comm-primary);
    color: #fff;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-price .current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--k51comm-primary);
}

.product-price .original {
    font-size: 1rem;
    color: var(--k51comm-text-light);
    text-decoration: line-through;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Features Section */
.features-section {
    background: var(--k51comm-text);
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--k51comm-shadow);
    transition: var(--k51comm-transition);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--k51comm-primary);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.875rem;
    color: var(--k51comm-text-light);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.news-excerpt {
    color: var(--k51comm-text-light);
    font-size: 0.875rem;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Team Section */
.team-section {
    background: var(--k51comm-bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--k51comm-shadow);
    transition: var(--k51comm-transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--k51comm-transition);
}

.team-card:hover .team-social {
    opacity: 1;
}

.team-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--k51comm-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-social a:hover {
    background: var(--k51comm-primary);
    color: #fff;
}

.team-info {
    padding: 1.25rem;
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.875rem;
    color: var(--k51comm-text-light);
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Partners Section */
.partners-section {
    padding: 3rem 0;
    background: var(--k51comm-bg-light);
}

.partners-slider {
    display: flex;
    gap: 3rem;
    overflow: hidden;
    animation: scroll 30s linear infinite;
}

.partner-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--k51comm-transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .partners-slider {
        gap: 2rem;
    }

    .partner-item img {
        height: 40px;
    }
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 1.25rem;
}

.contact-form {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--k51comm-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.form-captcha {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-captcha input {
    max-width: 150px;
}

.captcha-image {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: 3px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background: var(--k51comm-text);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-widget h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-widget p,
.footer-widget a {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
    display: block;
}

.footer-widget a:hover {
    color: var(--k51comm-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
}

.footer-social a:hover {
    background: var(--k51comm-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Floating Bar */
.floating-bar {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.floating-bar a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: var(--k51comm-transition);
}

.floating-bar a.phone {
    background: #28a745;
}

.floating-bar a.wechat {
    background: #07c160;
}

.floating-bar a.buy {
    background: var(--k51comm-primary);
}

.floating-bar a:hover {
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--k51comm-text);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--k51comm-transition);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--k51comm-primary);
}

/* Page Templates */
.page-header {
    padding: 8rem 0 4rem;
    background: var(--k51comm-bg-light);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    color: var(--k51comm-text-light);
    font-size: 0.875rem;
}

.page-header .breadcrumb a {
    color: var(--k51comm-text);
}

.page-header .breadcrumb a:hover {
    color: var(--k51comm-primary);
}

/* Content */
.site-content {
    padding: 4rem 0;
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 8rem 0;
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--k51comm-primary);
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.25rem;
    color: var(--k51comm-text-light);
    margin-bottom: 2rem;
}

/* Search Results */
.search-form {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-form form {
    display: flex;
    gap: 1rem;
}

.search-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--k51comm-border);
    border-radius: 4px;
    font-size: 1rem;
}

.search-form button {
    padding: 1rem 2rem;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--k51comm-shadow);
    display: flex;
}

.post-item .post-image {
    flex: 0 0 300px;
    overflow: hidden;
}

.post-item .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-item .post-content {
    padding: 1.5rem;
    flex: 1;
}

.post-item .post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--k51comm-text-light);
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
    }

    .post-item .post-image {
        flex: none;
        aspect-ratio: 16/9;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--k51comm-border);
    border-radius: 4px;
    color: var(--k51comm-text);
}

.pagination a:hover,
.pagination .current {
    background: var(--k51comm-primary);
    border-color: var(--k51comm-primary);
    color: #fff;
}

/* Sidebar */
@media (min-width: 992px) {
    .has-sidebar {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 3rem;
    }

    .has-sidebar .content-area {
        max-width: none;
    }
}

/* Widgets */
.widget {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--k51comm-shadow);
    margin-bottom: 2rem;
}

.widget h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--k51comm-primary);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--k51comm-border);
}

.widget li:last-child {
    border-bottom: none;
}

/* Gutenberg Blocks */
.wp-block-image {
    margin-bottom: 1.5rem;
}

.wp-block-gallery {
    margin-bottom: 1.5rem;
}

.wp-block-quote {
    border-left: 4px solid var(--k51comm-primary);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--k51comm-text-light);
    margin: 1.5rem 0;
}

.wp-block-pullquote {
    border-top: 4px solid var(--k51comm-primary);
    border-bottom: 4px solid var(--k51comm-primary);
    padding: 2rem 0;
    text-align: center;
    font-style: italic;
    margin: 2rem 0;
}

/* RTL Support */
[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .main-navigation ul {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-grid {
    direction: rtl;
}

[dir="rtl"] .footer-bottom {
    direction: rtl;
}

/* Accessibility */
.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;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--k51comm-primary);
    outline-offset: 2px;
}

/* Print */
@media print {
    .site-header,
    .floating-bar,
    .back-to-top,
    .hero-controls,
    .hero-dots {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}