/* CIK Sport - Sliding Door Theme Rebuild */
/* Exact match of original WordPress Sliding Door theme */

@charset "UTF-8";

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5 url('images/header.jpg') no-repeat center top;
    background-attachment: fixed;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Wrapper */
#wrapper {
    width: 960px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-height: 100vh;
}

/* Header & Masthead */
#header {
    position: relative;
}

#masthead {
    position: relative;
}

#branding {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#site-title-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ImageMenu - Horizontal Accordion (Sliding Door) */
#imageMenu {
    width: 100%;
    height: 200px;
    z-index: 10;
}

#menu-slides {
    list-style: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

#menu-slides li {
    flex: 1;
    min-width: 135px;
    max-width: 310px;
    height: 100%;
    overflow: hidden;
    transition: flex 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 2px solid #fff;
    position: relative;
}

#menu-slides li:first-child {
    border-left: none;
}

#menu-slides li:first-child a {
    padding-left: 0;
}

#menu-slides li a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px 12px;
    color: transparent;
    font-size: 14px;
    font-weight: bold;
    text-shadow: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover expansion - the accordion effect */
#menu-slides:hover li {
    flex: 0 0 135px;
    max-width: 135px;
}

#menu-slides li:hover {
    flex: 0 0 310px;
    max-width: 310px;
    z-index: 20;
}

#menu-slides li:hover a {
    width: 310px;
}

/* Background images for each sport */
#menu-slides .bk0 a { background-image: url('images/handbold.jpg'); }
#menu-slides .bk1 a { background-image: url('images/fodbold.jpg'); }
#menu-slides .bk2 a { background-image: url('images/boksning.jpg'); }
#menu-slides .bk3 a { background-image: url('images/brydning.jpg'); }
#menu-slides .bk4 a { background-image: url('images/bordtennis.jpg'); }
#menu-slides .bk5 a { background-image: url('images/gymnastik.jpg'); }
#menu-slides .bk6 a { background-image: url('images/mma.jpg'); }

/* Access / Fallback Navigation */
#access {
    width: 100%;
    height: 38px;
    background: #000;
    z-index: 5;
}

#access .menu {
    list-style: none;
    display: flex;
    height: 100%;
    align-items: center;
    padding: 0 20px;
}

#access .menu li {
    margin-right: 20px;
}

#access .menu li a {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.2s;
}

#access .menu li a:hover,
#access .menu li.current_page_item a {
    background: #fff;
    color: #333;
    text-decoration: none;
}

/* Main Content Area */
#main {
    display: flex;
    padding: 20px 0;
}

/* Sidebar 1 - Left (Sportscenter menu + logos) */
#sidebar1 {
    width: 200px;
    padding: 0 20px 0 20px;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.widget-area .xoxo {
    list-style: none;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
    text-transform: uppercase;
}

.widget_nav_menu ul {
    list-style: none;
}

.widget_nav_menu li {
    margin-bottom: 5px;
}

.widget_nav_menu li a {
    display: block;
    padding: 8px 10px;
    color: #333;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    transition: all 0.2s;
}

.widget_nav_menu li a:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    text-decoration: none;
}

.widget_nav_menu li.current_page_item a {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.widget_media_image figure {
    margin: 0;
    text-align: center;
}

.widget_media_image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    padding: 5px;
    background: #fff;
}

/* Sidebar 2 - Right (Categories) */
#sidebar2 {
    width: 180px;
    padding: 0 20px;
    flex-shrink: 0;
}

#sidebar2 .widget ul {
    list-style: none;
}

#sidebar2 .widget li {
    margin-bottom: 5px;
}

#sidebar2 .widget li a {
    color: #666;
    font-size: 13px;
}

#sidebar2 .widget li a:hover {
    color: #0066cc;
}

/* Container & Content */
#container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
    padding: 0 30px;
    min-width: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #222;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p {
    margin-bottom: 15px;
    line-height: 1.7;
}

ul, ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

li {
    margin-bottom: 5px;
}

/* Post/Page styling */
.post, .page {
    margin-bottom: 40px;
}

.entry-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #222;
}

.entry-title a {
    color: #222;
}

.entry-title a:hover {
    color: #0066cc;
}

.entry-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.entry-content {
    font-size: 14px;
    line-height: 1.7;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* News posts on front page */
.news-post {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.news-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-post .entry-title {
    font-size: 20px;
}

.news-post .entry-meta {
    font-size: 11px;
}

/* Footer */
#footer {
    background: #333;
    color: #aaa;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    margin-top: auto;
}

#footer a {
    color: #ccc;
}

#footer a:hover {
    color: #fff;
}

/* Specific page content adjustments */
.hal-c-content img,
.stoetteforening-content img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border: 1px solid #ddd;
}

/* Responsive - basic */
@media (max-width: 980px) {
    #wrapper {
        width: 100%;
    }
    
    #imageMenu {
        width: 100%;
        max-width: 960px;
    }
    
    #access {
        width: 100%;
    }
    
    #main {
        flex-direction: column;
    }
    
    #sidebar1, #sidebar2, #container {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 20px;
    }
    
    #content {
        padding: 20px;
    }
}

/* Print styles */
@media print {
    #header, #sidebar1, #sidebar2, #access, #footer {
        display: none;
    }
    
    #wrapper {
        box-shadow: none;
        width: 100%;
    }
    
    #main {
        display: block;
    }
    
    #content {
        padding: 0;
    }
    
    body {
        background: white;
    }
}