/* Custom styles for Bartın Kombi Tamiri */

/* Slider styles */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide.active {
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .slide img {
        height: 250px;
        object-fit: cover;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    /* Adjust main content padding for mobile bottom nav */
    main {
        padding-bottom: 80px;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    main {
        padding-top: 80px; /* Account for fixed header */
    }
}

/* Blog post styles */
.blog-excerpt {
    line-height: 1.6;
}

.blog-content {
    line-height: 1.6;
}

.blog-content h1, .blog-content h2, .blog-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-content h1 {
    font-size: 1.875rem;
}

.blog-content h2 {
    font-size: 1.5rem;
}

.blog-content h3 {
    font-size: 1.25rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.blog-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #2563eb;
}

.blog-content blockquote {
    border-left: 4px solid #d1d5db;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #4b5563;
}

/* Line clamping for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Page content styles */
.page-content {
    line-height: 1.6;
}

.page-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.page-content p {
    margin-bottom: 1rem;
}

/* Contact form styles */
.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
}

.contact-form button {
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #2563eb;
}

/* WhatsApp button animation */
.whatsapp-float {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}