/* Additional styles beyond what is in style.css */

/* Contact form specific styles */
.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--k51comm-primary);
}

/* Hero section animation */
.hero-slide.active .hero-content {
    animation: slideInUp 1s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section.no-animation {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Product card hover effect */
.product-overlay a {
    transform: scale(0);
    transition: transform 0.3s ease;
}

.product-card:hover .product-overlay a {
    transform: scale(1);
}

.product-card:hover .product-overlay a:nth-child(2) {
    transition-delay: 0.1s;
}

/* Team card social icons */
.team-social a {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-social a {
    transform: translateY(0);
    opacity: 1;
}

.team-card:hover .team-social a:nth-child(2) {
    transition-delay: 0.1s;
}

.team-card:hover .team-social a:nth-child(3) {
    transition-delay: 0.2s;
}

/* Partner logo hover */
.partner-item img {
    transition: all 0.3s ease;
}

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

/* Form validation styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545 !important;
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #28a745 !important;
}

/* Page transitions */
.page-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Single post featured image */
.post-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 0;
}
.post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Single post header elements */
.page-header .post-category {
    margin-bottom: 1rem;
}
.page-header .post-category a {
    display: inline-block;
    background: var(--k51comm-primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.page-header .post-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--k51comm-heading);
}
.page-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    color: var(--k51comm-text-light);
    font-size: 0.9rem;
}
.page-header .post-meta a {
    color: var(--k51comm-primary);
}
.page-header .post-meta i {
    margin-right: 4px;
}

/* Related posts card content matching .post-item .post-content */
.post-item .entry-content {
    padding: 1.5rem;
}

/* Post navigation */
.post-navigation {
    padding: 2rem 0;
    border-top: 1px solid var(--k51comm-border);
    border-bottom: 1px solid var(--k51comm-border);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 45%;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: flex;
    flex-direction: column;
}

.post-navigation .nav-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--k51comm-text-light);
    margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
    font-weight: 600;
}

/* Related posts */
.related-posts {
    padding: 4rem 0;
    background: var(--k51comm-bg-light);
}

.related-posts-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Author bio */
.author-bio {
    padding: 3rem 0;
    border-top: 1px solid var(--k51comm-border);
}

.author-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-info img {
    border-radius: 50%;
}

.author-details {
    flex: 1;
}

.author-name {
    margin-bottom: 0.5rem;
}

.author-description {
    color: var(--k51comm-text-light);
    margin: 0;
}

/* Page links */
.page-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--k51comm-border);
}

.page-links a {
    padding: 0.25rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid var(--k51comm-border);
    border-radius: 4px;
}

.page-links a:hover {
    background: var(--k51comm-primary);
    border-color: var(--k51comm-primary);
    color: #fff;
}

/* Comments */
.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--k51comm-border);
}

.comment-author {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    font-style: normal;
}

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

.comment-content {
    margin-top: 1rem;
}

.reply {
    margin-top: 0.5rem;
}

.reply a {
    font-size: 0.875rem;
    color: var(--k51comm-primary);
}

/* Comment form */
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--k51comm-border);
    border-radius: 4px;
    font-size: 1rem;
}

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

/* 404 page */
.error-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-search {
    margin: 2rem 0;
}

.error-search form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

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

.error-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--k51comm-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--k51comm-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--k51comm-text-light);
}

/* Selection styling */
::selection {
    background: var(--k51comm-primary);
    color: #fff;
}

/* RTL specific adjustments */
[dir="rtl"] .form-row {
    direction: rtl;
}

[dir="rtl"] .post-navigation .nav-previous {
    text-align: right;
}

[dir="rtl"] .post-navigation .nav-next {
    text-align: left;
}

/* Placeholder fallback for empty image src */
.product-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-image img[src=""],
.product-image img:not([src]) {
    visibility: hidden;
}

.team-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.team-image img[src=""],
.team-image img:not([src]) {
    visibility: hidden;
}

.about-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.about-image img[src=""],
.about-image img:not([src]) {
    display: none;
}

.news-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.news-image img[src=""],
.news-image img:not([src]) {
    display: none;
}

.partner-item {
    background: var(--k51comm-bg-light);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-placeholder {
    color: var(--k51comm-text-light);
    font-size: 0.875rem;
    opacity: 0.5;
}

/* Hero slide without background image - show gradient */
.hero-slide.no-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Hero dots - prevent overlap with controls */
.hero-controls {
    bottom: 4rem;
}

.hero-dots {
    bottom: 1.5rem;
}

/* Print styles */
@media print {
    .site-header,
    .floating-bar,
    .back-to-top,
    .hero-controls,
    .hero-dots,
    .post-navigation,
    .related-posts,
    .author-bio {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-content {
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    .page-content {
        padding: 0;
    }
}