/* 1. Global Box Sizing and Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* 2. Container */
.container {
    width: 100%;
    padding: 15px;
    margin: 0 auto;
}

/* 3. Navbar and Card Header */
.navbar, .card-header {
    background-color: #0a64bf;
    color: #fff;
    padding: 10px;
    text-align: center;
}

.navbar a, .card-header a {
    color: #fff;
    text-decoration: none;
}

.navbar a:hover, .card-header a:hover {
    text-decoration: underline;
}

/* 4. Headings and Paragraphs */
h1, h2, h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    text-align: center;
}

p, label {
    font-size: 1rem;
}

/* 5. Buttons */
.btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    font-size: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    /* Prevent buttons from overflowing */
    max-width: 100%;
    word-wrap: break-word;
}

.btn:hover {
    background-color: #0056b3;
}

/* 6. Form Elements */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

/* 7. Tables */
.table {
    width: 100%;
    margin-bottom: 15px;
    border-collapse: collapse;
}

.table th, .table td {
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
}

.table th {
    background-color: #f1f1f1;
}

/* 8. QR Code */
.qr-code img {
    width: 100px;
    height: auto;
}

/* 9. Responsive Design */
@media (max-width: 768px) {
    h1, h2, h3 {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 0.9rem;
    }

    .table th, .table td {
        padding: 5px;
    }

    /* Ensure buttons inside flex or grid containers don't overflow */
    .flex-container, .grid-container {
        flex-direction: column;
    }

    .flex-container .btn, .grid-container .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    /* Additional adjustments for very small screens if necessary */
    h1, h2, h3 {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.8rem;
    }
    
}

.site-footer {
    background-color: #0a64bf !important; /* Enforce blue background */
    color: #ffffff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    position: relative; /* Ensure visibility */
    z-index: 1; /* Ensure it's above other elements */
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1 1 250px;
    margin: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #ffcc00; /* Accent color */
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p,
.footer-section ul,
.footer-section a {
    font-size: 1rem;
    line-height: 1.6em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffcc00; /* Hover color matches accent */
}

.footer-section.contact .socials {
    margin-top: 10px;
}

.footer-section.contact .socials a {
    color: #ffffff;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-section.contact .socials a:hover {
    color: #ffcc00; /* Hover color matches accent */
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #ffffff;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* 11. Responsive Footer Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 10px 0;
        text-align: center;
    }

    .footer-section.contact .socials a {
        margin-right: 10px;
    }
}

/* 12. Accessibility: Focus States */
.footer-section ul li a:focus,
.footer-section.contact .socials a:focus {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}
