/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: #f4f7fa;
    color: #333;
}

/* Header */
.header {
    background: linear-gradient(90deg, #2a5298, #1e3c72);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo-placeholder {
    width: 50px;
    height: 50px;
    overflow: hidden;
}
.logo-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.logo-placeholder a {
    display: block; /* Ensure the link takes full space */
    text-decoration: none; /* Remove underline */
}
.site-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 20px;
    text-decoration: none; /* Remove underline from the text itself */
}
.site-title a {
    color: #fff;
    text-decoration: none; /* Ensure no underline on the link */
}
.site-title a:hover {
    color: #ddd; /* Slight color change on hover */
}
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    width: 50%;
}
.ticker {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    z-index: 1;
}
.ticker-message {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.language-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    width: 100%;
}
.language-icons i {
    font-size: 22px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.language-icons i:hover {
    opacity: 1;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.category-filter label {
    font-weight: 600;
    color: #2a5298;
}
.category-filter .form-select {
    border-radius: 8px;
    border: 1px solid #2a5298;
    padding: 8px 15px;
}
.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.category-link {
    text-decoration: none;
    color: #2a5298;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}
.category-link:hover {
    background: #2a5298;
    color: #fff;
}
.category-link.active {
    background: #2a5298;
    color: #fff;
}

/* Content */
.content {
    min-height: calc(100vh - 200px);
}
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.image-wrapper {
    position: relative;
    overflow: hidden;
}
.product-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: filter 0.3s ease;
}
.product-card:hover img {
    filter: brightness(70%);
}
.product-card .card-body {
    padding: 20px;
}
.product-card .card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.product-card .category {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}
.product-card .description {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}
.product-card .popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    z-index: 10;
}
.product-card .btn-preview,
.product-card .btn-contact {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
}
.product-card .btn-preview {
    background: #ff6b6b;
    transform: translateY(-100%);
    margin-bottom: 10px;
}
.product-card .btn-contact {
    background: #4ecdc4;
    transform: translateY(100%);
}
.product-card:hover .btn-preview,
.product-card:hover .btn-contact {
    opacity: 1;
    transform: translateY(0);
}
.product-card .btn-preview:hover {
    background: #ff8787;
}
.product-card .btn-contact:hover {
    background: #66e0d8;
}

/* Preview Page Styles */
.preview-content {
    min-height: calc(100vh - 150px);
}
.preview-content .img-fluid {
    max-width: 100%;
    height: auto;
}
.button-group .btn {
    margin-right: 10px;
}
.login-details, .description {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.sidebar {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}
.sidebar .btn {
    background: #28a745;
    color: #fff;
}
.sidebar .btn:hover {
    background: #218838;
}

/* Modal Styles */
.modal-dialog {
    max-width: 90%;
}
.carousel-inner img {
    object-fit: contain;
    max-height: 500px;
}

/* Footer */
.footer {
    background: #2a5298;
    color: #fff;
    padding: 20px 0;
}
.footer p {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-card img {
        height: 150px;
    }
    .product-card .card-title {
        font-size: 18px;
    }
    .product-card .description {
        font-size: 14px;
    }
    .category-links {
        gap: 10px;
    }
    .product-card .popup {
        width: 90%;
    }
    .logo-placeholder {
        width: 40px;
        height: 40px;
    }
    .site-title {
        font-size: 24px;
        margin: 0 10px;
    }
    .header-right {
        width: 50%;
    }
    .language-icons {
        gap: 10px;
    }
    .language-icons i {
        font-size: 18px;
    }
    .ticker-message {
        font-size: 12px;
    }
    .preview-content .img-fluid {
        max-width: 100%;
    }
    .button-group .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .sidebar {
        position: static;
        margin-top: 20px;
    }
    .modal-dialog {
        max-width: 100%;
    }
    .carousel-inner img {
        max-height: 300px;
    }
}