/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    font-family: "Inter", sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 40px;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .content {
    text-align: left;
}

.hero h1 {
    font-weight: 700;
}

.hero p {
    color: #666;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #1b2434;
    color: #fff;
    padding: 60px 0;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    font-weight: 700;
    padding: 10px 30px;
}

.btn-secondary {
    background-color: #fff;
    border-color: #c60239;
    color: #c60239;
}

.btn-secondary:hover {
    background-color: #c60239;
    color: #fff;
    border-color: #c60239;
}

.btn-primary {
    background-color: #c60239;
    border-color: #c60239;
    color: #fff;
}

.btn-primary:hover {
    background-color: #a7012e;
    border-color: #a7012e;
    color: #fff;
}

/* ==========================================================================
   Cards (Shared Styles)
   ========================================================================== */
.card {
    border: none;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.card-img-top {
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

.card-title {
    font-weight: 700;
    color: #1b2434;
}

.card-text {
    color: #666;
}

/* ==========================================================================
   Splide & Swiper Components
   ========================================================================== */

/* Clients Splide */
.clients .splide {
    padding: 20px 0;
}

.clients .splide__slide img {
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.clients .splide__slide img:hover {
    filter: grayscale(0%);
}

/* Hero Splide */
.hero .splide__slide {
    aspect-ratio: 16 / 9;
    max-width: 100%;
    overflow: hidden;
}

.hero .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Swiper */
.testimonial .swiper,
.swiper-slide {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* Common section styles */
.testimonial,
.article-section,
.about-section,
.product-section {
    padding: 60px 0;
}

.testimonial,
.article-section,
.about-section,
.product-section {
    h2 {
        font-weight: 700;
        color: #1b2434;
        margin-bottom: 20px;
    }
}

/* Article & About content */
.article-section .article-content,
.about-section .content {
    color: #333;
    line-height: 1.8;
}

.article-section .article-content p,
.about-section .content p {
    color: #333;
    line-height: 1.8;
}

/* Article specific */
.article-section .article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.article-section .a2a_kit {
    margin-bottom: 20px;
}

/* Related articles & team cards */
.article-section .related-articles .card-img-top {
    height: 150px;
}

.team-section .card-img-top {
    height: 450px;
}

.product-section .card-img-top {
    height: 250px;
}

.article-section .related-articles .card-title,
.team-section .card-title,
.product-section .card-title {
    font-size: 1.1rem;
}

.team-section .card-title,
.product-section .card-title {
    font-size: 1.2rem;
}

.article-section .related-articles .card-text,
.team-section .card-text,
.product-section .card-text {
    font-size: 0.9rem;
}

/* About section alert */
.about-section .alert {
    background-color: #fff3cd;
    color: #664d03;
}

.about-section .alert .ti-alert-circle {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* ==========================================================================
   Floating Elements
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    text-decoration: none;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination .page-link {
    color: #c60239;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #c60239;
    border-color: #c60239;
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #a5022e;
}

/* ==========================================================================
   Map
   ========================================================================== */
.map-section {
    height: 400px;
    background: #e9ecef;
    border-radius: 8px;
}

/* ==========================================================================
   Dark Mode
   ========================================================================== */
[data-bs-theme="dark"] {
    background-color: #1b2434;
    color: #f8f9fa;
}

/* Dark Mode - Layout */
[data-bs-theme="dark"] .navbar {
    background-color: #2c3a4a;
}

[data-bs-theme="dark"] .clients,
[data-bs-theme="dark"] .hero,
[data-bs-theme="dark"] .testimonial,
[data-bs-theme="dark"] .article-section,
[data-bs-theme="dark"] .about-section,
[data-bs-theme="dark"] .blog-section,
[data-bs-theme="dark"] .product-section {
    background: #1e2a3b;
}

/* Dark Mode - Typography */
[data-bs-theme="dark"] .hero h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] .card-title {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .hero p,
[data-bs-theme="dark"] .article-section .article-meta,
[data-bs-theme="dark"] .article-section .article-content,
[data-bs-theme="dark"] .article-section .article-content p,
[data-bs-theme="dark"] .about-section .content,
[data-bs-theme="dark"] .about-section .content p,
[data-bs-theme="dark"] .card-text {
    color: #ced4da;
}

[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

/* Dark Mode - Buttons */
[data-bs-theme="dark"] .btn-secondary {
    background-color: #1e2a3b;
    border-color: #f3f8ff;
    color: #f3f8ff;
}

[data-bs-theme="dark"] .btn-secondary:hover {
    background-color: #2a3b50;
    border-color: #ffffff;
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-primary {
    background-color: #ff4d70;
    border-color: #ff4d70;
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-primary:hover {
    background-color: #ff3b60;
    border-color: #ff3b60;
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-outline-light {
    border-color: #ced4da;
    color: #ced4da;
}

[data-bs-theme="dark"] .btn-outline-light:hover {
    background-color: #ced4da;
    color: #1b2434;
}

/* Dark Mode - Cards */
[data-bs-theme="dark"] .card {
    background: #2c3a4a;
}

[data-bs-theme="dark"] .team-section .card-text {
    color: #adb5bd;
}

/* Dark Mode - Pagination */
[data-bs-theme="dark"] .pagination .page-link {
    color: #ff4d70;
    background-color: #2c3a4a;
    border-color: #4a5a6b;
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background-color: #ff4d70;
    border-color: #ff4d70;
    color: #fff;
}

[data-bs-theme="dark"] .pagination .page-link:hover {
    background-color: #3a4a5c;
    border-color: #4a5a6b;
    color: #ff7089;
}

/* Dark Mode - Misc */
[data-bs-theme="dark"] .map-section {
    background: #2c3a4a;
}

[data-bs-theme="dark"] .logo-img {
    filter: brightness(0) invert(1);
}

[data-bs-theme="dark"] .splide__slide img {
    filter: grayscale(0%);
}

[data-bs-theme="dark"] .about-section .alert {
    background-color: #664d03;
    color: #fff3cd;
}

/* Dark Mode - Theme Toggle */
[data-bs-theme="light"] #themeToggle svg {
    color: #1b3c53;
}

[data-bs-theme="dark"] #themeToggle svg {
    color: #f8f9fa;
}
