/* Custom Styles for pro-ser.com Redesign */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
    --primary-color: #0d47a1;
    --secondary-color: #29b6f6;
    --accent-color: #ff6f00;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #efefef;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 60px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin-left: 15px;
    font-size: 1.05rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.lang-flag {
    height: 24px;
    width: auto;
    margin-left: 5px;
    transition: transform 0.2s;
}

.lang-flag:hover {
    transform: scale(1.1);
}

/* Hero Carousel - Horizontal Layout Style (1111.PNG style) */
#proserCarousel {
    margin-bottom: 40px;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    max-width: 984px;
    /* Maintain original width */
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    /* Rounded corners like 1111.PNG */
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: auto;
    min-height: 250px;
    padding: 0;
    transition: opacity 0.6s ease-in-out;
    /* Smooth fade instead of slide if desired, but sticking to slide */
}

/* Flex container for the slide content */
.slide-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Center vertically */
    justify-content: flex-start;
    padding: 10px;
    gap: 30px;
    /* Space between image and text */
}

.slide-image {
    flex: 0 0 405px;
    /* Fixed width for image container */
    max-width: 405px;
}

.slide-image img {
    width: 100%;
    height: auto;
    /* Allow height to adjust naturally or fix to 226px */
    max-height: 226px;
    object-fit: contain;
    display: block;
}

.slide-text {
    flex: 1;
    /* Take remaining width */
    text-align: left;
}

.slide-text h2 {
    color: var(--text-dark);
    /* Dark grey/black */
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-text p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Carousel Indicators overrides - Move outside or bottom */
.carousel-indicators {
    bottom: -10px;
}

.carousel-indicators [data-bs-target] {
    background-color: #ccc;
    height: 4px;
    width: 30px;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--primary-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    opacity: 0.2;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 15px;
    background-size: 50%;
}

/* Search Bar */
.search-form .form-control {
    border-radius: 20px 0 0 20px;
    border-color: #e0e0e0;
}

.search-form .btn {
    border-radius: 0 20px 20px 0;
    background-color: var(--primary-color);
    color: white;
}

/* Info Bar (Top) */
.info-bar {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    padding: 5px 0;
}

.info-bar a {
    color: white;
    margin-right: 15px;
}

/* Product Cards */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    height: 100%;
    background: var(--white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.card-body ul {
    list-style: none;
    padding: 0;
}

.card-body ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.card-body ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.card-body ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.card-body ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Welcome Section */
.welcome-section {
    background: var(--white);
    padding: 60px 0;
    margin-top: 40px;
    border-top: 5px solid var(--accent-color);
}

.welcome-text {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding: 60px 0 20px;
    margin-top: 60px;
}

footer h5 {
    color: var(--white);
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

footer a {
    color: #b0b0b0;
}

footer a:hover {
    color: var(--white);
    text-decoration: none;
}

.contact-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .slide-content {
        flex-direction: column;
        text-align: center;
    }

    .slide-image {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .slide-text {
        text-align: center;
    }
}

/* Search Results Dropdown */
.search-results-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    margin-top: 5px;
    border: 1px solid rgba(0, 0, 0, .15);
}

.search-results-dropdown .list-group-item {
    border-left: none;
    border-right: none;
    padding: 10px 15px;
    cursor: pointer;
}

.search-results-dropdown .list-group-item:first-child {
    border-top: none;
}

.search-results-dropdown .list-group-item:hover {
    background-color: #f8f9fa;
}