/* base styling start */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
    
    /* Background image settings */
    background-image: url('images/labadi_3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
}

.page-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* base styling end */

/* Style the header */
.header {
    background-color: #0dfbb3;
    color: rgb(17, 16, 16);
    padding: 20px;
    text-align: center;
}

/* Turn the navigation bar into a responsive flex container */
.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    background-color: #0af16a;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a {
    color: rgb(34, 22, 22);
    text-decoration: none;
    font-weight: bold;
}

.navbar a:hover {
    text-decoration: underline;
    color: #fb580d;
}

/* Style the main content area */
.main-content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0);
}

/* Style the intro section */
.intro {
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.intro h2 {
    margin-bottom: 10px;
    color: white;
}

/* Use CSS Grid for robust article cards layout */
.card-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;    
}

/* Style each article card */
.card {
    background-color: #e9f1f79a;
    border: 1px solid #ccc;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    text-align: center;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
}

.card p {
    color: #0b0a0a;
    background-color: rgb(51, 217, 9);
    padding: 8px;
    border-radius: 4px;
}

/* Ensure spacing between form groups in the contact form */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px 20px; /* Responsive padding for mobile & desktop */
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #fbfcfc;
    text-align: left;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid #4808ec;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

/* Color change when clicking inside an input */
input:focus, select:focus, textarea:focus {
    border-color: #fc0606;
    box-shadow: 0 0 5px rgba(2, 24, 45, 0.5);
}

.button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

button {
    flex: 1; 
    padding: 10px;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}
        
/* Submit Button Color */
button[type="submit"] {
    background-color: #06bd12; 
}

button[type="submit"]:hover {
    background-color: #ef0b0b;
}

/* Style the footer */
.footer {
    background-color: #07b507;
    color: rgb(26, 30, 21);
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}