/* ==========================================================
   Roads Dept Web Page - Updated Styles
   ========================================================== */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    padding: auto;
}

header a {
    color: #000;
    font-size: 1rem;
}

header .nav-item {
    padding: 10px 20px;
}

/* Main Section Styles */
#main {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    margin: 1rem auto;
    width: 100%;
}

.cert-title {
    margin: 3rem auto;
    padding-bottom: 0;
    width: 100%;
    font-size: 2.5rem;
}

.content {
    margin-bottom: 40px;
}

.content p {
    margin-bottom: 20px;
}

.content a {
    color: #007bff;
}

.content a:hover {
    color: #0056b3;
}

/* Sidebar Styles */
.sidebar-container {
    width: 25%;
    margin-left: 0;
    height: fit-content;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    background-color: #fff !important;
    border-radius: 0.75rem;
    padding: 1rem;
    justify-content: center;
    text-align: center;
}

.sidebar-container .sidebar-logo {
    border-radius: 0.75rem;
    width: 50%;
    height: auto;
    margin: 1rem auto 0 auto;
    object-fit: cover;
    margin-bottom: 1rem;
    border-bottom: none;
    box-shadow: none;
}

/* Info-card Styles */
.info-card-container {
    width: 100%;
    padding: 0;
    margin: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

footer a {
    color: #007bff;
}

footer a:hover {
    text-decoration: underline;
}

/* Section Titles */
section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

section h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007bff;
    margin-top: 10px;
}

/* Buttons */
.btn-custom {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-custom:hover {
    background-color: #0056b3;
}

/* Utility Classes */
.text-center {
    text-align: center !important;
}

.text-muted {
    color: #6c757d !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

/* Button Containers for Cards */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-card .btn {
    flex: 1;
    max-width: 180px;
}

/* ----------------------------------------------------------
   Responsive Styles
---------------------------------------------------------- */

/* Hide sidebar and expand content below tablet */
@media (max-width: 992px) {
    .sidebar-container {
        display: none !important;
    }

    .content,
    #main {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 20px 15px;
    }
}

/* Adjustments for tablets and smaller */
@media (max-width: 768px) {
    #main {
        padding: 30px 15px;
    }

    .cert-title {
        font-size: 2rem;
    }

    .content h1 {
        font-size: 1.6rem;
    }

    .info-card .btn {
        width: 100%;
        max-width: none;
    }
}

/* Mobile styles */
@media (max-width: 576px) {
    .content h1,
    .content h2 {
        font-size: 1.5rem;
    }

    .sidebar img {
        width: 100%;
    }

    .sidebar a {
        font-size: 1rem;
        padding: 0.6rem;
    }
}
