/* Main Styles for Perak Government Website */

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #005a87;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 80px;
}

.search-container {
    display: flex;
}

.search-container input[type="text"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 250px;
}

.search-container button {
    background-color: #005a87;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.language-selector a {
    padding: 0 5px;
    font-size: 0.9em;
}

.language-selector a.active {
    font-weight: bold;
}

/* Navigation Menu */
.main-nav {
    background-color: #005a87;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.main-nav li a {
    display: block;
    color: white;
    padding: 15px;
    font-weight: bold;
}

.main-nav li a:hover {
    background-color: #004669;
    text-decoration: none;
}

/* Banner Section */
.banner {
    margin: 20px 0;
}

.banner-slider img {
    width: 100%;
    border-radius: 5px;
}

/* Content Boxes */
.sidebar-box, .content-box {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 15px;
}

.sidebar-box h3 {
    color: #005a87;
    border-bottom: 2px solid #005a87;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.content-box h2 {
    color: #005a87;
    border-bottom: 2px solid #005a87;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Sidebar Links */
.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    display: block;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 3px;
}

.sidebar-links a:hover {
    background-color: #e9e9e9;
    text-decoration: none;
}

/* Service Buttons */
.service-buttons li {
    margin-bottom: 10px;
}

.btn-service {
    display: flex;
    align-items: center;
    background-color: #f0f8ff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.btn-service:hover {
    background-color: #e6f2ff;
    text-decoration: none;
}

.btn-service img {
    margin-right: 10px;
    width: 50px;
}

/* Announcements Section */
.announcement-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.announcement-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.announcement-item h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

/* News Section */
.news-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-image {
    margin-right: 15px;
}

.news-content {
    flex: 1;
}

.news-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.news-item h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

/* Visitor Stats */
.visitor-stats p {
    margin-bottom: 8px;
}

/* Operation Hours */
.operation-hours p {
    margin-bottom: 15px;
}

/* Footer Styles */
footer {
    background-color: #005a87;
    color: white;
    padding: 30px 0 15px;
    margin-top: 30px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

footer h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
}

.social-media {
    margin-top: 20px;
}

.social-media a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
}

.social-media a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
}

/* Chatbot Container (Hidden initially) */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
}

#chatbot-container.visible {
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .search-container {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .news-image img {
        width: 100%;
    }
}