/* General page styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}

header {
    background: #073b0b;
    color: white;
    padding: 20px 10px;
    text-align: center;
}

/* Navigation */
nav {
    background: #0e5a12;
    padding: 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    background: #0c4a10;
    border-radius: 4px;
}

nav a:hover {
    background: #0a3d0c;
}

/* Main content area */
main {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #073b0b;
    color: white;
    margin-top: 40px;
}

/* Search-specific styles */
.search-container {
    margin-bottom: 30px;
    border-bottom: 2px solid #0e5a12;
    padding-bottom: 20px;
}

.search-input {
    width: 70%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-soek, .btn-search {
    padding: 12px 24px;
    background: #0e5a12;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-soek:hover, .btn-search:hover {
    background: #073b0b;
}

.btn-clear {
    padding: 12px 20px;
    background: #f44336;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* ------------------ ADVERT STYLING ------------------ */

/* Advert container */
.advert-container {
    border: 2px solid #4a90e2 !important;       /* professional blue border */
    border-radius: 8px !important;
    margin: 15px 0 !important;
    padding: 16px !important;
    background-color: #f9f9f9 !important;       /* subtle neutral background */
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Hover effect */
.advert-container:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
    background-color: #eef4fc !important;       /* very subtle blue on hover */
}

/* Heading inside advert */
.advert-heading {
    font-weight: bold !important;
    font-size: 1.2em !important;
    color: #2c3e50 !important;                  /* dark slate heading */
    margin-bottom: 8px !important;
}

/* Advert content */
.advert-content {
    font-size: 1em !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

/* Remove link styling inside the advert content */
.advert-container .advert-content a {
    color: inherit !important;         
    text-decoration: none !important;  
    cursor: inherit !important;        
}
