/*
Theme Name: RK Trimo Trebnje
Theme URI: http://www.imamo.si
Author: imamo.si
Description: Custom theme for RK Trimo Trebnje handball club
Version: 1.0
Reconstructed CSS based on original HTML structure
*/

/* ==================== RESET & BASE ==================== */
*, *:before, *:after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #333;
    background: #c8d8e8 url('img/bg.jpg') repeat-x top center;
    line-height: 1.5;
}

a { color: #00529c; text-decoration: none; }
a:hover { color: #cc2200; text-decoration: underline; }

img { border: 0; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px 0;
}

p { margin: 0 0 10px 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ==================== CONTAINER ==================== */
#container {
    width: 990px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

/* ==================== HEADER ==================== */
header {
    background: #00529c;
    width: 100%;
    overflow: visible;
}

#logo {
    float: left;
    padding: 10px 12px 8px 12px;
    width: 390px;
}
#logo h1 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}
#logo a { color: #fff; text-decoration: none; }
#logo a:hover { color: #ffd700; text-decoration: none; }

/* Sponsor slider */
#sponzhead {
    float: right;
    width: 585px;
    height: 79px;
    overflow: hidden;
    margin: 8px 8px 0 0;
    background: #003a70;
}
#sponzhead .bjqs {
    width: 585px;
    height: 79px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}
#sponzhead .bjqs li {
    position: absolute;
    top: 0; left: 0;
    width: 585px;
    height: 79px;
    display: none;
}
#sponzhead .bjqs li:first-child { display: block; }
#sponzhead .bjqs li img {
    width: 100%;
    height: 79px;
    object-fit: contain;
}

/* Navigation */
#menu {
    background: #003a70;
    clear: both;
    overflow: visible;
    border-top: 2px solid #ffd700;
    position: relative;
    z-index: 100;
}

#gumb {
    padding: 0;
    position: relative;
    z-index: 100;
}
#gumb .menu-glavni-top-meni-container {
    display: inline-block;
    overflow: visible;
}
#gumb ul#menu-glavni-top-meni {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}
#gumb ul#menu-glavni-top-meni > li {
    position: relative;
    display: inline-block;
    float: left;
}
#gumb ul#menu-glavni-top-meni > li > a {
    display: block;
    padding: 9px 14px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-right: 1px solid #005fbb;
}
#gumb ul#menu-glavni-top-meni > li > a:hover,
#gumb ul#menu-glavni-top-meni > li.current-menu-item > a {
    background: #ffd700;
    color: #003a70;
    text-decoration: none;
}
/* Submenu */
#gumb ul.sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #003a70;
    min-width: 220px;
    border: 1px solid #005fbb;
    border-top: 2px solid #ffd700;
    list-style: none;
    margin: 0;
    padding: 0;
    visibility: hidden;
}
#gumb ul#menu-glavni-top-meni > li:hover > ul.sub-menu {
    display: block !important;
    visibility: visible !important;
}
#gumb ul#menu-glavni-top-meni > li.menu-none:hover > ul.sub-menu {
    display: block !important;
    visibility: visible !important;
}
li#menu-item-116:hover > ul.sub-menu {
    display: block !important;
    visibility: visible !important;
}
li#menu-item-117:hover > ul.sub-menu {
    display: block !important;
    visibility: visible !important;
}
li#menu-item-358:hover > ul.sub-menu {
    display: block !important;
    visibility: visible !important;
}
#gumb ul.sub-menu.open {
    display: block !important;
    visibility: visible !important;
}
#gumb ul.sub-menu li a {
    display: block;
    padding: 7px 12px;
    color: #cce0f5;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #005190;
}
#gumb ul.sub-menu li a:hover { background: #ffd700; color: #003a70; }

/* Search */
#iskanje {
    float: right;
    padding: 6px 10px;
}
#iskanje #searchform { display: flex; }
#iskanje input[type="text"] {
    padding: 5px 8px;
    font-size: 12px;
    border: 1px solid #005fbb;
    background: #002d56;
    color: #cce0f5;
    width: 180px;
    border-radius: 2px 0 0 2px;
}
#iskanje input[type="text"]:focus { outline: none; background: #003a70; color: #fff; }
#iskanje input[type="submit"] {
    padding: 5px 10px;
    background: #ffd700;
    color: #003a70;
    border: none;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
}
#iskanje input[type="submit"]:hover { background: #ffcc00; }

/* Ticket button */
#vstop {
    float: right;
    padding: 6px 6px 6px 0;
}
#vstop a {
    display: block;
    width: 44px;
    height: 30px;
    background: #e82000;
    text-align: center;
    line-height: 30px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
    text-transform: uppercase;
}
#vstop a:hover { background: #cc0000; }

/* ==================== RK INFO BAR ==================== */
#rkinfo {
    background: #f0f5fa;
    border-bottom: 3px solid #00529c;
    overflow: hidden;
    display: flex;
}

.clani-napovednik {
    flex: 0 0 300px;
    padding: 10px 12px;
    border-right: 1px solid #c8d8e8;
}
.clani-napovednik aside h3 {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #00529c;
    padding: 4px 8px;
    margin: 0 0 6px 0;
    text-transform: uppercase;
}
.clani-napovednik aside h3 span { font-size: 12px; }
.clani-napovednik h4 {
    font-size: 13px;
    color: #00529c;
    text-align: center;
    margin: 4px 0;
}
.clani-napovednik p { font-size: 12px; text-align: center; color: #555; margin: 2px 0; }

.napovednik {
    flex: 0 0 300px;
    padding: 10px 12px;
    border-right: 1px solid #c8d8e8;
    overflow: hidden;
}
.napovednik h3 {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #00529c;
    padding: 4px 8px;
    margin: 0 0 6px 0;
    text-transform: uppercase;
}
.napovednik h3 span { font-size: 12px; }
.napovednik .bjqs { height: 100px; }
.napovednik .bjqs li { padding: 4px 0; }
.napovednik h4 {
    font-size: 12px;
    font-weight: 700;
    color: #003a70;
    margin: 0 0 2px 0;
}
.napovednik p { font-size: 11px; color: #555; margin: 0; }

.himna {
    flex: 1;
    padding: 10px 12px;
}
.himna h3 {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #00529c;
    padding: 4px 8px;
    margin: 0 0 6px 0;
    text-transform: uppercase;
}
.himna h3 span { font-size: 12px; }

/* ==================== TEASER (FEATURED NEWS TABS) ==================== */
#teaser {
    background: #fff;
    border-bottom: 3px solid #00529c;
    overflow: hidden;
}

#tabs {
    width: 100%;
    overflow: hidden;
}

/* Tab list (thumbnails) */
#tabs > ul {
    float: left;
    width: 148px;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #003a70;
}
#tabs > ul > li {
    border-bottom: 1px solid #005fbb;
}
#tabs > ul > li > a {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    text-decoration: none;
    color: #cce0f5;
    font-size: 11px;
    line-height: 1.3;
}
#tabs > ul > li > a img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: cover;
    margin-right: 6px;
}
#tabs > ul > li > a span {
    display: block;
    font-size: 10px;
    color: #cce0f5;
    line-height: 1.2;
}
#tabs > ul > li:hover > a,
#tabs > ul > li.ui-state-active > a {
    background: #005fbb;
    color: #fff;
}

/* Tab content panels */
#tabs > div {
    display: none;
    margin-left: 148px;
    padding: 10px 12px;
    min-height: 200px;
}
#tabs > div:first-of-type,
#tabs > div.ui-tabs-panel { display: block; }
#tabs > div img {
    float: left;
    margin: 0 12px 8px 0;
    max-width: 300px;
}
#tabs > div h2 {
    font-size: 16px;
    color: #003a70;
    margin: 0 0 6px 0;
    clear: right;
}
#tabs > div h2 a { color: #003a70; text-decoration: none; }
#tabs > div h2 a:hover { color: #cc2200; }
#tabs > div p { font-size: 12px; color: #555; line-height: 1.5; }
a.readmore {
    display: inline-block;
    padding: 3px 10px;
    background: #e85c00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    margin-top: 4px;
}
a.readmore:hover { background: #cc4400; text-decoration: none; }

/* ==================== MAIN CONTENT ==================== */
#main {
    display: flex;
    align-items: flex-start;
    background: #fff;
    padding: 14px 12px;
    gap: 16px;
}

/* News list */
#vsebina {
    flex: 1;
    min-width: 0;
}
#vsebina h2 {
    font-size: 16px;
    color: #003a70;
    border-bottom: 2px solid #00529c;
    padding-bottom: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post {
    overflow: hidden;
    padding: 10px 0;
    border-bottom: 1px solid #dde8f2;
}
.post:last-child { border-bottom: none; }

.front-thumb {
    float: left;
    margin: 0 10px 6px 0;
}
.front-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #c8d8e8;
    display: block;
}

.datum {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
}

.post h3 {
    font-size: 14px;
    margin: 0 0 5px 0;
}
.post h3 a { color: #003a70; text-decoration: none; }
.post h3 a:hover { color: #cc2200; text-decoration: underline; }

.post p {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Sidebar */
#stranska {
    flex: 0 0 240px;
    font-size: 12px;
}

#stranska aside {
    background: #f5f9fd;
    border: 1px solid #c8d8e8;
    margin-bottom: 12px;
    overflow: hidden;
}
#stranska aside h5 {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #003a70;
    padding: 5px 8px;
    margin: 0;
    text-transform: uppercase;
}
#stranska aside .textwidget {
    padding: 8px 10px;
}
#stranska aside table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
#stranska aside table td {
    padding: 3px 4px;
    border-bottom: 1px solid #dde8f2;
    vertical-align: top;
}
#stranska aside table tr:nth-child(odd) td { background: #eef4fa; }
#stranska aside .textwidget a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #003a70;
    font-size: 11px;
    margin-bottom: 6px;
    text-decoration: none;
}
#stranska aside .textwidget a:hover { color: #cc2200; }
#stranska aside .textwidget a img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ==================== BOX CONTAINERS ==================== */
#boxcontainer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #003a70;
    padding: 14px 12px;
    border-top: 3px solid #ffd700;
}

.box {
    flex: 1 1 200px;
    background: #fff;
    border: 1px solid #c8d8e8;
    padding: 10px;
    border-radius: 2px;
}
.box.margin { margin-top: 0; }

.box h4 {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #00529c;
    padding: 4px 8px;
    margin: -10px -10px 8px -10px;
    text-transform: uppercase;
}

.box p { font-size: 11px; color: #555; margin: 0 0 4px 0; }
.box a { color: #003a70; font-size: 11px; }
.box a:hover { color: #cc2200; }

.videotekme { display: block; font-size: 11px; margin-bottom: 3px; }
.videotekme a { color: #003a70; text-decoration: none; }
.videotekme a:hover { color: #cc2200; text-decoration: underline; }

/* Gallery box */
.ngg-widget img {
    margin: 2px;
    border: 1px solid #c8d8e8;
    width: 75px;
    height: 50px;
    object-fit: cover;
}

/* ==================== FOOTER ==================== */
footer {
    background: #002d56;
    color: #aac8e8;
    padding: 12px 16px;
    text-align: center;
    border-top: 3px solid #ffd700;
    overflow: hidden;
}

.legal {
    font-size: 12px;
    color: #aac8e8;
    float: left;
    margin: 0;
}
.izdelava {
    font-size: 12px;
    color: #aac8e8;
    float: right;
    margin: 0;
}
footer a { color: #ffd700; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ==================== PRELOADER ==================== */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #003a70;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

/* ==================== CLEARFIX ==================== */
.cf:after, footer:after { content: ''; display: table; clear: both; }

/* ==================== UTILITY ==================== */
.recentcomments a { display: inline !important; padding: 0 !important; margin: 0 !important; }
