/* ==========================================================================
   Sidebar Widgets & Newsletter Section (front-sidebar.css)
   ========================================================================== */

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #c2c2c2;
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
}

.widget-title {
    color: #5f6166;
    font-size: 17px;
    font-weight: bolder;
    text-decoration: none;
    text-shadow: 0px 0px 1px #CCC;
    background: rgba(0, 0, 0, 0.04);
    padding: 8px 10px;
    border-bottom: 1px solid #e2e2e2;
    text-align: center;
}

.widget-body {
    padding: 10px;
}

.news-marquee {
    height: 130px;
}

.news-item {
    padding: 6px 0;
    border-bottom: 1px dashed #dddddd;
    font-size: 13px;
}

.news-item a {
    color: #222222 !important;
    font-weight: 500;
}

.news-item a:hover {
    color: #000000 !important;
}


/* ==========================================================================
   Gallery Slider - 2 x 2 Grid
   ========================================================================== */

.swiper-gallery {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.swiper-gallery .swiper-wrapper {
    height: 100%;
}

.swiper-gallery .gallery-group {
    width: 100%;
    height: 150px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    box-sizing: border-box;
}

.swiper-gallery .gallery-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.swiper-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid #cccccc;
    border-radius: 2px;
    box-sizing: border-box;
}


/* ==========================================================================
   Newsletter Section
   ========================================================================== */

.newsletter-subtext {
    font-size: 13px;
    color: #667085;
    margin-bottom: 12px;
}

.newsletter-form .form-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.newsletter-form label {
    font-size: 13px;
    color: #667085;
    margin-right: 8px;
    width: 50px;
    text-align: right;
    font-weight: normal;
}

.newsletter-form .newsletter-input {
    flex: 1;
    padding: 5px 8px;
    border: 1px solid #9bb5ce;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    background-color: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.newsletter-form .newsletter-input:focus {
    border-color: #3b82f6;
}

.newsletter-form .btn-container {
    text-align: center;
    margin-top: 10px;
}

.newsletter-btn {
    background: linear-gradient(to bottom, #5cbbe8 0%, #2982c5 50%, #1c6ba7 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 18px;
    border: 1px solid #1c5d93;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    display: inline-block;
    transition: all 0.15s ease-in-out;
}

.newsletter-btn:hover {
    background: linear-gradient(to bottom, #6cd0ff 0%, #3293d8 50%, #2079bd 100%);
}

.newsletter-btn:active {
    background: linear-gradient(to bottom, #1c6ba7 0%, #2982c5 100%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}


/* ==========================================================================
   Visitor Counter Section
   ========================================================================== */

.visitor-widget-body {
    text-align: center;
}

.visitor-box {
    background: #f5f5f5;
    color: #555555;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #dcdcdc;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}


/* ==========================================================================
   Current Page Child Sidebar Menu
   ========================================================================== */

.ut-sidebar-menu {
    width: 100%;
    margin: 0 0 25px 0;
    padding: 0;
}

.ut-sidebar-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #003b70;
    text-transform: uppercase;

    padding: 0 2px 9px 2px;
    margin: 0 0 10px 0;

    border-bottom: 1px solid #999;
    line-height: 1.2;
}

.ut-sidebar-list {
    width: 100%;
    overflow: hidden;

    border-radius: 6px;
    background: #7d858e;
}

.ut-sidebar-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 0 17px;
    box-sizing: border-box;
    text-decoration: none !important;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    background: #7d858e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    transition: background-color 0.15s ease;
}

.ut-sidebar-item:last-child {
    border-bottom: none;
}

.ut-sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;
    min-width: 18px;

    margin-right: 7px;

    border-radius: 50%;

    background: #b8dbe9;
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
    line-height: 18px;

    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.15);
}

.ut-sidebar-text {
    display: block;
    line-height: 1.3;
    white-space: normal;
}

.ut-sidebar-item:hover {
    background: #707982;
    color: #ffffff !important;
}

.ut-sidebar-item.active {
    background: #737c85;
    color: #ffffff !important;
}

.ut-sidebar-item.active:hover {
    background: #6d757e;
}


/* ==========================================================================
   Sidebar Area
   Width is controlled by front-layout.css
   ========================================================================== */

.sidebar-area {
    border-right: 5px solid #ddd;
    padding-right: 15px;

    /*
     * Let flexbox stretch the sidebar to the
     * same height as the content.
     */
    align-self: stretch;
}


/* ==========================================================================
   Responsive Sidebar
   ========================================================================== */

@media (max-width: 991px) {

    .sidebar-area {
        width: 100%;
        border-right: none;
        border-bottom: 5px solid #ddd;
        padding-right: 0;
        padding-bottom: 15px;
    }
}

@media (max-width: 768px) {

    .ut-sidebar-title {
        font-size: 16px;
    }

    .ut-sidebar-item {
        min-height: 50px;
        padding: 0 16px;
        font-size: 14px;
    }
}