/* ===========================
   Bootstrap 5 Custom Styles
   Matching original color scheme
   =========================== */

body {
    background-color: #d8d8d8;
    background-image: url('body-bg.jpg');
    background-repeat: repeat;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #333;
}

/* ---- PAGE WRAPPER ---- */
.page-wrapper {
   /* max-width: 1000px;*/
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

/* ---- HEADER ---- */
.site-header {
    background: #fff url('header-bg.jpg') repeat-x bottom;
    padding: 10px 16px 30px 16px;
    min-height: 110px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    max-width: 100px;
    height: auto;
}

.site-logo h1 {
    font-size: 22px;
    margin: 0;
    padding-bottom: 0 !important; /* Override 15px bottom padding from style.css */
    /* color removed — use CMS inline styles or specific selectors */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
}

.site-logo h1 span {
    font-size: 15px;
    display: block;
    /* color intentionally not set here — CMS admin panel inline color styles apply */
}

.social-icons {
    text-align: right;
    margin-bottom: 6px;
}

.social-icons a {
    display: inline-block;
    margin-left: 4px;
}

.social-icons img {
    width: 28px;
    height: 28px;
}

.search-form {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.search-form .form-control {
    font-size: 12px;
    max-width: 200px;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 3px 8px;
    height: 28px;
    color: #999;
}

.search-form .search-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.search-form .search-btn img {
    width: 28px;
    height: 28px;
}

/* ---- NAVBAR ---- */
.site-navbar {
    background: transparent;
    border: none;
	padding-top: 10px;
	padding-bottom: 10px;
    margin-top: -39px;
    margin-bottom: -39px;
    position: relative;
    z-index: 10;
}

.nav-pill-wrapper {
    background: #cc0000;
    border: 2px solid #aa0000;
    border-radius: 50px;
    max-width: 1050px;
    margin: 0 auto;
    padding: 6px 25px;
}

.site-navbar .navbar-nav .nav-link {
    color: #fff !important;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 25px;
}

.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-item.active .nav-link {
    background-color: #aa0000;
    color: #fff !important;
}

.site-navbar .dropdown-menu {
    background: #cc0000;
    border: 1px solid #aa0000;
    border-radius: 0;
    min-width: 180px;
    margin-top: 0;
    padding: 0;
}

.site-navbar .dropdown-item {
    color: #fff;
    font-size: 14px;
    padding: 9px 16px;
    border-bottom: 1px solid #aa0000;
}

.site-navbar .dropdown-item:last-child {
    border-bottom: none;
}

.site-navbar .dropdown-item:hover {
    background-color: #990000;
    color: #fff;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
    padding: 4px 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- BANNER / SLIDER ---- */
.site-banner {
    background: #000;
    overflow: hidden;
    border-bottom: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    margin-bottom: 4px;
}

/* Large screens: taller banner */
@media (min-width: 992px) {
    .site-banner img,
    .carousel-item img {
        max-height: 380px;
    }
}

.site-banner img,
.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 275px;
    object-fit: cover;
    display: block;
}

/* Caption overlay: dark gradient bottom-up */
.site-banner .carousel-caption {
    padding-top: 0;
    padding-bottom: 28px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 60%, transparent 100%);
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
    padding-left: 36px;
}

.site-banner .carousel-caption h5 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
    margin-bottom: 10px;
    color: #ffffff;
}

.site-banner .carousel-caption .caption-cta {
    display: inline-block;
    background: #c00000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 20px;
    border-radius: 25px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 3px 10px rgba(192,0,0,0.4);
}

.site-banner .carousel-caption .caption-cta:hover {
    background: #a00000;
    transform: translateY(-2px);
}

/* Red-accent indicator dots */
.site-banner .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.45);
    border: none;
    margin: 0 4px;
    transition: background-color 0.3s, transform 0.3s;
}

.site-banner .carousel-indicators .active {
    background-color: #c00000;
    transform: scale(1.25);
}

/* Circular semi-transparent arrow buttons */
.carousel-control-prev,
.carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    margin: 0 12px;
    opacity: 0.6;
    transition: opacity 0.25s, background 0.25s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(192,0,0,0.75);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

/* ---- MARQUEE BAR ---- */
.marquee-bar {
    background: #fffbe6;
    border-top: 1px solid #e0c900;
    border-bottom: 1px solid #e0c900;
    padding: 5px 10px;
    font-size: 12px;
    color: #333;
}

/* ---- MAIN CONTENT ---- */
.main-content {
    background: #fff;
    padding: 20px 24px;
}

.main-content h1 {
    font-size: 22px;
    color: #cc0000;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    border: none;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.txt {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    text-align: left;
}

/* ---- RIGHT SIDEBAR ---- */
.sidebar {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 14px;
    border-radius: 2px;
}

.sidebar h3 {
    font-size: 17px;
    color: #cc0000;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.sidebar-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-service-list li {
    padding: 7px 0;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-service-list li:last-child {
    border-bottom: none;
}

.sidebar-service-list li img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.sidebar-service-list li a {
    font-size: 13px;
    color: #0000cc;
    text-decoration: underline;
}

.sidebar-service-list li a:hover {
    color: #cc0000;
}

/* ---- SITE FOOTER ---- */
.site-footer {
    background-color: transparent; 
    color: #ffffff;
    font-size: 14px;
    padding: 0;
    text-align: center;
    position: relative;
}

#footer {
    background: linear-gradient(135deg, #1a365d, #0f233f);
    border-top: 3px solid #c00000;
    padding: 20px 0 0 0; 
}

.footer-links-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links-row {
    margin-bottom: 6px;
    line-height: 1.8;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links-row a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 12px;
    font-weight: normal;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.footer-links-row a:hover {
    color: #e0f2f1;
    text-decoration: underline;
}

.footer-separator {
    opacity: 0.4; 
    margin: 0 4px;
    color: #ffffff;
}

/* Social icons styling - uniform circular badges with hover lift */
.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 12px 0;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-social-icons a:hover {
    transform: translateY(-3px); /* Hover lift */
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-social-icons a img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    /* No filter — display original icon colours */
}

/* Footer bottom area with darker gradient matching shade background */
.footer-bottom-wrapper {
    background-color: #0b1a2e; 
    padding: 8px 0;
    margin-top: 10px;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

.hit-counter-container {
    flex: 1;
    text-align: left;
}

.hit-counter-container img {
    /* Counter image from hitwebcounter.com — display as-is */
    display: inline-block;
    vertical-align: middle;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.footercopy {
    flex: 2;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.8;
}

.footercopy a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

.footercopy a:hover {
    text-decoration: underline;
}

.footer-spacer {
    flex: 1;
    display: block;
}

@media (max-width: 767px) {
    .footer-bottom-row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .hit-counter-container, .footercopy, .footer-spacer {
        text-align: center;
        flex: none;
        width: 100%;
    }
    .footer-spacer {
        display: none;
    }
}

/* ---- FORMS ---- */
.inner-form {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.inner-form label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #1a365d; /* Dark navy color */
}

.inner-form .form-control,
.inner-form .form-select {
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    padding: 10px 14px;
    transition: all 0.2s ease-in-out;
}

.inner-form .form-control:focus,
.inner-form .form-select:focus {
    border-color: #c00000;
    box-shadow: 0 0 0 4px rgba(192, 0, 0, 0.12);
}

.submit-btn,
.btn-submit {
    background: #c00000;
    color: #fff !important;
    border: none;
    padding: 10px 32px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.2);
}

.submit-btn:hover,
.btn-submit:hover {
    background: #a00000;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(192, 0, 0, 0.3);
}

.required-note {
    color: #777;
    font-size: 12px;
}

/* ---- JOB OPENINGS ---- */
.job-card {
    border: 1px solid #ddd;
    border-left: 4px solid #cc0000;
    padding: 14px;
    margin-bottom: 14px;
    background: #fafafa;
    border-radius: 2px;
}

.job-card:hover {
    background: #fff5f5;
}

.job-hea a {
    font-size: 15px;
    font-weight: bold;
    color: #cc0000;
    text-decoration: none;
}

.job-hea1 a {
    font-size: 12px;
    color: #888;
    text-decoration: none;
}

.job-txt {
    font-size: 13px;
    color: #555;
    margin-top: 6px;
}

.job-apply-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 16px;
    background: #cc0000;
    color: #fff !important;
    font-size: 12px;
    border-radius: 2px;
    text-decoration: none !important;
    font-weight: bold;
}

.job-apply-btn:hover {
    background: #aa0000;
}

/* ---- CPE STATUS ---- */
.cpe-form-box {
    background: #BBC7CD;
    padding: 24px;
    border-radius: 4px;
}

/* ---- THANKS PAGE ---- */
.thanks-box {
    text-align: center;
    padding: 30px 10px;
}

.thanks-box img {
    max-width: 100%;
    height: auto;
}

/* ---- ALERT OVERRIDE ---- */
.alert-info {
    background: #fff5f5;
    border-color: #ffcccc;
    color: #cc0000;
}
h1 br{ display:none;}
/* ---- RESPONSIVE ---- */
/* Sidebar default desktop styling */
.sidebar-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
}

@media (min-width: 991px) {
	 .site-navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    /* Hide the dropdown arrow caret on desktop (optional, cleaner look) */
    .site-navbar .nav-link.dropdown-toggle::after {
        vertical-align: middle;
    }
}
@media (max-width: 991px) {
    .site-navbar .dropdown-menu {
        background: #aa0000;
        border: none;
    }
	.site-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #cc0000;
        padding: 0 12px 10px 12px;
        box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    }

    .site-navbar {
        position: relative;   
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        background-color: #cc0000 !important; /* solid branding red background */
        box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
        padding: 10px 16px !important;
        border-radius: 0 !important; /* full width layout */
    }

    .site-navbar .navbar-brand {
        font-weight: bold !important;
        font-size: 18px !important;
        letter-spacing: 0.5px !important;
        color: #ffffff !important;
    }

    /* Sidebar card styling for mobile/tablet screens */
    .sidebar-card {
        background-color: #f8f9fa !important; /* soft grey/off-white background that stands out on white page */
        border: 1px solid #e2e8f0 !important; /* more distinct border */
        border-top: 4px solid #c00000 !important; /* red accent line to group news & notices */
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        padding: 24px 20px !important;
        margin-top: 24px !important;
        margin-bottom: 12px !important;
    }
    
    .sidebar-card h3 {
        font-size: 18px !important;
        font-weight: 700 !important;
        border-bottom: 2px solid #e2e8f0 !important;
        padding-bottom: 10px !important;
        margin-bottom: 16px !important;
        color: #c00000 !important;
    }

    .sidebar-card strong {
        font-size: 13px !important;
        color: #c00000 !important; /* Highlight date */
        margin-bottom: 8px !important;
    }

    .sidebar-card .sidebar-service-list li {
        padding: 10px 0 !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        margin-bottom: 0 !important;
    }

    .sidebar-card .sidebar-service-list li:last-child {
        border-bottom: none !important;
    }

    .sidebar-card .sidebar-service-list li a {
        font-size: 14px !important;
        color: #1a365d !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 767px) {
    .site-logo h1 {
        font-size: 17px;
    }

    .site-logo h1 span {
        font-size: 13px;
    }

    .social-icons {
        text-align: left;
        margin-top: 6px;
    }

    .search-form {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .search-form .form-control {
        max-width: 100%;
    }

    .main-content {
        padding: 14px;
    }

    .main-content h1 {
        font-size: 18px;
    }

    .site-banner img,
    .carousel-item img {
        max-height: 180px;
    }

    .sidebar {
        margin-top: 10px;
    }

    .page-wrapper {
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .site-logo h1 {
        font-size: 15px;
    }

    .footer-links a {
        display: inline-block;
        margin: 3px 5px;
    }
}
