/* Theme Colors */
:root {
    --bs-primary: #2E8B57;
    --bs-primary-rgb: 46,139,87;
    --bs-primary-hover: #246B43;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: var(--bs-primary-hover);
    border-color: var(--bs-primary-hover);
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-check:checked + .btn-outline-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

body {
    font-family: "Lexend Deca", sans-serif;
    font-optical-sizing: auto;
}

/* Other */
.container-custom {
    max-width: 1024px;
}

.main-form-input form {
    padding: 20px;
    border-radius: 10px;
    background: var(--bs-primary);
    color: #fff;
    border: 5px solid rgb(26 135 83 / 20%);
}

.navbar-brand span {
    margin-left: 3px;
    margin-right: 3px;
    color: yellow;
    font-weight: 300;
}

.navbar-brand i {
    color: var(--bs-navbar-color);
}

#intro .alert {
    background-image: url('https://images.unsplash.com/photo-1634376991187-595999cb7b5c?q=80&w=2938&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
}

#intro .alert::before {
    content: ""; /* Required for pseudo-element */
    position: absolute; /* Position overlay over the alert */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75); /* White with 70% transparency */
    z-index: 1; /* Ensure overlay appears above the background */
    border-radius:5px;
}

#intro .alert * {
    position: relative; /* Keep text and other elements above the overlay */
    z-index: 2; /* Ensure text is above the overlay */
}

#blog-post {
    line-height: 2;
}

#blog-post .image-container {
  width: 100%; /* Full width of the container */
  aspect-ratio: 4 / 1; /* Maintain a 4:1 aspect ratio */
  overflow: hidden; /* Ensure no overflow if the image is larger */
}

#blog-post .image-container img {
  width: 100%; /* Scale image to fit width */
  height: 100%; /* Ensure it fills the container */
  object-fit: cover; /* Ensures the image covers the container while maintaining its aspect ratio */
  display: block; /* Removes inline spacing from the image */
}

/* Loading */
.loading {
    font-size: 1.2em;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 10px 0;
    color: #ccc;
    margin-top: 20px;
}