/* ===== Common Components Styles ===== */

/* Category Tabs */
.category-tabs {
    margin-bottom: 0;
    background-color: #f1f1f1;
    text-align: left;
}

.category-tabs ul {
    border-bottom-color: #f0f0f0;
    display: inline-flex;
    justify-content: left;
}

.category-tabs li a {
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: #666;
    border-bottom-width: 2px;
    position: relative;
    transition: color 0.3s ease;
    border-bottom-color: #f0f0f0;
}

.category-tabs li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.category-tabs li a:hover {
    color: var(--primary-color);
    border-bottom-color: transparent;
}

.category-tabs li a:hover::after {
    width: 100%;
}

.category-tabs li.is-active a {
    color: var(--primary-color);
    border-bottom-color: transparent;
}

.category-tabs li.is-active a::after {
    width: 100%;
    background-color: var(--primary-color);
}

/* Filter Buttons */
.filter-section {
    padding: 1rem 0 0;
}

.filter-section .buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.filter-section .button {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    color: #666;
    transition: all 0.3s ease;
}

.filter-section .button.is-active,
.filter-section .button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Pagination */
.pagination-section {
    padding-top: 0;
    padding-bottom: 3rem;
}

.pagination-link {
    border-color: #e0e0e0;
    color: #666;
}

.pagination-link.is-current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination-previous,
.pagination-next {
    border-color: #e0e0e0;
    color: #666;
}

.pagination-previous[disabled],
.pagination-next[disabled] {
    color: #ccc;
}

/* Contact Form Section */

.contact-form-section{
    background-image: linear-gradient(to right, rgba(0, 153, 255, 0.9), rgba(0, 123, 255, 0.9));
    background-size: cover;
    padding: 3rem 0;
    padding: 4rem 0;
}

.contact-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
}

.blue-gradient .contact-form-container {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

.contact-form-section .title {
    color: #0099ff;
    margin-bottom: 2rem;
}

.blue-gradient .contact-form-section .title {
    color: #fff;
}

.contact-form .input,
.contact-form-container .input {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    height: 3rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.submit-btn,
.contact-form .button {
    background-color: transparent;
    border: 1px solid #fff;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover,
.contact-form .button:hover {
    background-color: #007acc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
    .category-tabs li a {
        padding: 0.5rem 1rem;
    }
}

@media screen and (max-width: 768px) {
    .filter-section .buttons {
        justify-content: center;
    }

    .contact-form .columns,
    .contact-form-container .columns {
        margin: 0;
    }

    .contact-form .column,
    .contact-form-container .column {
        padding: 0.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}
