/* Custom Styles for Enterprise Website */

:root {
    --primary-color: #f58220; /* Brand Orange */
    --secondary-color: #343a40; /* Dark Grey */
    --accent-color: #ffc107;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    padding-top: 76px; /* Offset for fixed navbar */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 56px; /* Bootstrap navbar is shorter on mobile */
    }
    
    section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .carousel-item {
        height: 300px; /* Smaller height for mobile */
    }
    
    .display-4 {
        font-size: 2.5rem; /* Smaller hero text */
    }
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Carousel */
.carousel-item {
    height: 500px;
    background-color: #777;
    position: relative;
}
.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.carousel-caption {
    bottom: 20%;
}

/* Section Common */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.section-title h2 {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* About Section */
.about-section {
    background-color: #fff;
}

/* Product Section */
.product-section {
    background-color: var(--light-bg);
}
.product-card {
    transition: transform 0.3s;
    margin-bottom: 30px;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-card img {
    height: 200px;
    object-fit: cover;
}
.product-card .card-body {
    padding: 20px;
}
.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* News Section */
.news-section {
    background-color: #fff;
}
.news-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.news-item:last-child {
    border-bottom: none;
}
.news-date {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 15px;
}
.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}
.news-title:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 40px 0 20px;
}
footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}
footer ul {
    list-style: none;
    padding: 0;
}
footer ul li {
    margin-bottom: 10px;
}
footer ul li a {
    color: #adb5bd;
    text-decoration: none;
}
footer ul li a:hover {
    color: #fff;
}
footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar-widget {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}
.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.category-list li {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}
.category-list li a {
    color: #555;
    text-decoration: none;
    display: block;
}
.category-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    transition: 0.3s;
}

/* Contact Page */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}
