@font-face {
    font-family: 'Komu A';
    src: url('Komu_A.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/*GLOBALNI HODNOTY*/
/**/

#mobile-menu, #mobile-menu-icon{
    display: none;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
body{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#stickerbar{
    background-color: #135428;
    width: 100%;
    min-height: 20px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    position: sticky;
    top: 0;
    left: 0;
}

#stickerbar div{
    margin-left: 5px;
    margin-right: 5px;
}

#stickerbar div span{
    font-weight: bold;
}

/*WRAPPER A JEHO OBSAH*/

#wrapper{
    width: calc(100% - 20px);
    min-height: 1000px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#header{
    width: 100%;
    height: 120px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo{
    background-color: white;
    width: 200px;
    height: 100%;

}

#logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#menu{
    width: 800px;
    height: 100%;
}

#menu ul{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    list-style-type: none;
}

#menu ul li{
    padding: 0 20px;
}

#menu ul li.has-submenu {
    position: relative;
    font-weight: normal;
}

#menu ul .submenu {
    display: block; /* Always block for transition */
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    height: auto;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#menu ul li.has-submenu:hover > .submenu,
#menu ul li.has-submenu:focus-within > .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#menu ul .submenu .backgroundSM {
    background-color: rgb(208, 223, 144);
    width: 100%;
    height: 100%;
    margin-top: 10px;
}



#menu ul .submenu li {
    padding: 10px 20px;
    white-space: nowrap;
}

#menu ul li.has-submenu:hover > .submenu {
    display: block;
}

/* Optional: submenu link styling */
#menu ul .submenu li a {
    color: #000;
    text-decoration: none;
    display: block;
}

#menu ul .submenu li a:hover {
    text-decoration: underline;
}

#menu ul li a {
    font-family: 'Komu A', Arial, Helvetica, sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: #135428;
    text-decoration: none;
}

#menu ul li.has-submenu > a::after {
    content: " ▼";
    font-size: 0.7em;
    color: #135428;
    margin-left: 4px;
    vertical-align: middle;
    
}

#socials{
    width: 80px;
    height: 100%;
    display: flex;
    align-items: center;
}

#socials a{
    margin-left: 10px;
}

#socials img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#slider {
    width: 100%;
    max-width: 100%;
    height: 500px;
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    background: #e7f3d7;
    border-radius: 20px;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-link {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    z-index: 1;
}

.slider-link.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.slider-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background-color: transparent;
    border: none;
    font-size: 2.5rem;
    padding: 0 18px;
    cursor: pointer;
    z-index: 2;
    user-select: none;
}

.slider-arrow-left {
    left: 20px;
}
.slider-arrow-right {
    right: 20px;
}
.slider-arrow:hover {
    color: #239e4a;
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.slider-dot {
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid #135428;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    opacity: 0.7;
    transition: background 0.2s, opacity 0.2s;
}
.slider-dot.active {
    background: #135428;
    opacity: 1;
}


/* DOČASNÁ STRÁNKA */
#infoButtons{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.bigBtn{
    width: 200px;
    height: 50px;
    background-color: #135428;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 10px;
    margin: 20px;
    cursor: pointer;
    user-select: none;
}
.bigBtn:hover{
    background-color: #239e4a;
}

#menu ul li a:hover {
    color: #239e4a;
    text-decoration: underline;
}

#content table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 50px;
}
#content table, #content th, #content td{
    border: 1px solid black;
}
#content th, #content td{
    padding: 10px;
    text-align: left;
}
#content th{
    background-color: #135428;
    color: white;
}
#content tr:nth-child(even){
    background-color: #f2f2f2;
}
#content tr:hover{
    background-color: #ddd;
}


/* FOOTER */
#footer{
    width: 100%;
    min-height: 150px;
    height: auto;
    background-color: #135428;
    margin-top: 50px;
}

#footer h3{
    color: white;
    margin-bottom: 15px;
    font-size: 25px;
    font-family: 'Komu A', Arial, Helvetica, sans-serif;
    font-weight: normal;
}

/* inner container matching #wrapper width and two columns */
.footer-inner{
    width: 800px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    padding: 30px 10px;
}

.footer-col{
    flex: 1;
    color: white;
}

.footer-col a{
    color: white;
    text-decoration: none;
}
.footer-col a:hover{
    text-decoration: underline;
}

#socials-footer{
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#socials-footer img{
    width: 40px;
    height: 40px;
    object-fit: contain;
}

#socials-footer img:hover{
    opacity: 0.8;
}

#cmmjlogo{
    width: 200px;
    height: auto;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 10px;
}

@media (max-width: 700px) {
    .footer-inner{
        flex-direction: column;
        gap: 12px;
        padding: 20px 12px;
        width: 100%;
    }
}

#content{
    width: calc(100% - 50px);
    max-width: 1000px;
    min-height: 400px;
    padding-bottom: 40px;
}

#content h1{
    font-family: 'Komu A', Arial, Helvetica, sans-serif;
    font-size: 32px;
    color: #135428;
    margin-bottom: 20px;
    font-weight: normal;
}

.separator h1{
    font-family: 'Komu A', Arial, Helvetica, sans-serif;
    color: #135428;
    margin-bottom: 20px;
    font-weight: normal;
    font-size: 60px;
}

.separator{
    border-bottom: #135428 2px solid;
    border-top: #135428 2px solid;
    vertical-align: middle;
    padding-top: 20px;
    margin-bottom: 30px;
    width: 100%;
    padding-left: 20%;
}

#content h3{
    margin-bottom: 15px;
}

#content p{
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333333;
}

#content ul, #content ol{
    margin-bottom: 20px;
    padding-left: 20px;
}

#content ul li, #content ol li{
    margin-bottom: 10px;
    font-size: 18px;
    color: #333333;
    list-style: upper-roman;
    font-weight: bold;
}

#content ul ul li, #content ol ul li, #content ol ol li{
    list-style: decimal;
    font-size: 16px;
    font-weight: normal;
}

#content ul ul, #content ol ul{
    padding-left: 20px;
}

#content ul ul ul li, #content ol ul ul li{
    margin-bottom: 8px;
    list-style: lower-alpha;
    font-size: 16px;
    font-weight: normal;
}

#content ul ul ul, #content ol ul ul{
    padding-top: 15px;
}

#content ol ol ul li{
    list-style-type: lower-alpha;
}
#content ol ol ul{
    padding-top: 5px;
}

#content #individual-table{
    margin-top: 20px;
    padding-left: 20px;
}

#content #individual-table > li{
    list-style: disc;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: normal;
    color: #333333;
} 

/* STANOVY */

#content .stanovy li{
    list-style: disc;
}


#stanovy-detail{
    margin-top: 20px;
    border-top: #333333 1px solid;
    padding-top: 20px;
}

#stanovy-detail h3{
    text-transform: uppercase;
    font-size: 25px;
    margin-bottom: 0px;
}

#stanovy-detail h4{
    font-size: 20px;
    margin-bottom: 25px;
    font-style: italic;
    font-weight: normal;
}

#stanovy-detail h5{
    font-size: 18px;
    margin-bottom: 10px;
}

#stanovy-detail p{
    
}

#stanovy-detail ul li{
    list-style: decimal;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: normal;
    color: #333333;
}
#stanovy-detail ul ul li{
    list-style: lower-alpha;
}



/* Newsletter form: make email input and button the same size
   Button uses Komu font and text color #135428 */
#newsletter{
    display: none;
}

#newsletter form{
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    max-width: 700px;
    width: 100%;
}

#newsletter h4{
    margin-bottom: 10px;
}

#newsletter input[type="email"],
#newsletter button{
    width: 100%;
    height: 48px;
    font-size: 16px;
    padding: 0 14px;
    border-radius: 8px;
    border: none;
    box-shadow: none;
}

#newsletter input[type="email"]{
    background: #ffffff;
    color: #135428;
}

#newsletter button{
    background: #ffffff;
    color: #135428;
    font-family: 'Komu A', Arial, Helvetica, sans-serif;
    font-weight: normal;
    cursor: pointer;
}

#newsletter button:hover{
    background: #e6e6e6;
}

@media (max-width: 700px) {
    #newsletter form{
        /* already column by default; keep spacing */
    }
}

#newsletter{
    margin-top: 20px;
}

/* Invalid state: light red background and subtle red border when email is invalid */
#newsletter input[type="email"][aria-invalid="true"]{
    background: #ffecec;
    border: 1px solid #ff8b8b;
}

#newsletter input[type="email"][aria-invalid="true"]:focus{
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 138, 138, 0.12);
}


/* === RESPONSIVE DESIGN FOR MOBILE DEVICES === */
@media (max-width: 900px) {
    #wrapper {
        width: 100%;
        min-width: 0;
        padding: 10px 5vw 0 5vw;
    }
    #header {
        
        height: auto;
        margin-bottom: 30px;
        align-items: flex-start;
        justify-content: space-between;
    }
    #logo {
        width: 140px;
        height: 70px;
    }
    #menu {
        width: 100%;
        height: auto;
    }
    #menu ul {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 8px;
    }
    #menu ul li {
        padding: 8px 0;
    }
    #menu ul .submenu {
        position: static;
        min-width: 0;
        box-shadow: none;
        transform: none;
        transition: none;
        margin-top: 0;
    }
    #menu ul .submenu .backgroundSM {
        margin-top: 0;
    }
    #socials {
        width: 100%;
        height: 40px;
        margin-top: 10px;
    }
    #slider {
        height: 220px;
        border-radius: 10px;
    }
    .slider-image {
        height: 220px;
    }
    .slider-arrow {
        font-size: 2rem;
        padding: 0 10px;
    }
    .slider-dots {
        gap: 8px;
        bottom: 10px;
    }
    #infoButtons {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }
    .bigBtn {
        width: 90vw;
        max-width: 300px;
        margin: 10px 0;
        font-size: 18px;
        height: 44px;
    }
    #content table {
        font-size: 14px;
        margin-bottom: 30px;
    }
    #content th, #content td {
        padding: 6px;
    }
    .contact-info {
        font-size: 15px;
        word-break: break-word;
    }

    #menu, #socials {
        display: none;
    }

    #logo {
        width: 200px;
    }

    


}

/* === RESPONSIVE DESIGN FOR TABLETS === */
@media (max-width: 1200px) {
    #wrapper {
        width: 98vw;
        min-width: 0;
        padding: 10px 2vw 0 2vw;
    }
    #header {
        height: auto;
        margin-bottom: 35px;
        gap: 24px;
    }
    #logo {
        width: 160px;
        height: 80px;
    }
    #menu {
        width: 90vw;
        min-width: 0;
    }
    #menu ul {
        gap: 18px;
    }
    #menu ul li {
        padding: 0 12px;
    }
    #socials {
        width: 100px;
        height: 40px;
    }
    #slider {
        height: 320px;
        border-radius: 14px;
    }
    .slider-image {
        height: 320px;
    }
    .slider-arrow {
        font-size: 2.2rem;
        padding: 0 14px;
    }
    .slider-dots {
        gap: 10px;
        bottom: 14px;
    }
    #infoButtons {
        margin-top: 18px;
    }
    .bigBtn {
        width: 60vw;
        max-width: 260px;
        font-size: 19px;
        height: 48px;
    }
    #content table {
        font-size: 16px;
        margin-bottom: 40px;
    }
    #content th, #content td {
        padding: 8px;
    }
    .contact-info {
        font-size: 16px;
    }

    #menu, #socials {
        display: none;
    }

    

    #logo {
        width: 130px;
        height: auto;
    }

    #mobile-menu-icon {
        display: block;
        width: 40px;
        height: 40px;
    }
    #mobile-menu-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


    #mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        display: block;
        width: 100%;
        max-height: 100vh;
        height: auto;
        background-color: white;
        padding-top: 60px;
        padding-bottom: 20px;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* start hidden off-screen to avoid sliding on page load */
        transform: translateX(-100%);
        transition: transform 300ms ease;
        will-change: transform;
    }

    #mobile-menu ul {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 12px;
        padding-left: 30px;
    }
    #mobile-menu ul li a{
        padding: 12px 0;
        font-family: 'Komu A', Arial, Helvetica, sans-serif;
        font-weight: normal;
        text-decoration: none;
        color: #135428;
        font-size: 40px;
        list-style: none;
    }

    #mobile-menu ul li{
        padding: 10px 0;
    }

    #mobile-menu ul .has-submenu {
        margin-top: 10px;
        list-style: none;
    }

    #mobile-menu ul .submenu {
        list-style: none;
    }
    #mobile-menu ul .submenu li a{
        color: #333333;
    }

    #mobile-close-icon {
        display: block;
        width: 40px;
        height: 40px;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    #mobile-close-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Extra small screens */
@media (max-width: 500px) {
    
    #slider {
        height: 120px;
    }
    .slider-image {
        height: 120px;
    }
    .bigBtn {
        font-size: 16px;
        height: 38px;
    }
    #content table {
        font-size: 12px;
    }
    .contact-info {
        font-size: 13px;
    }

    
}

#infoButtons a {
    text-decoration: none;
}

/* ── Blog post list (blog.html) ───────────────────────────── */

#posts-list {
    width: 100%;
    padding: 10px 0;
}

.post-list-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
}

.post-list-item:hover .post-list-title {
    color: #135428;
}

.post-list-thumb {
    width: 140px;
    height: 90px;
    flex-shrink: 0;
    margin-right: 24px;
    overflow: hidden;
}

.post-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 6px;
}

.post-list-title {
    font-size: 16px;
    font-family: 'Komu A', Arial, Helvetica, sans-serif;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.post-list-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #7c7c7c;
}

.posts-empty {
    color: #7c7c7c;
    margin-top: 20px;
}

/* ── Reset custom list styles inside Quill editor (blog posts) ── */

#content .ql-editor ul,
#content .ql-editor ol {
    margin-bottom: 0;
    padding-left: 1.5em;
}

#content .ql-editor ul li,
#content .ql-editor ol li {
    list-style: initial;
    font-size: 16px;
    font-weight: normal;
    color: #2c3e50;
    margin-bottom: 4px;
}

#content .ql-editor ul li {
    list-style: disc;
}

#content .ql-editor ol li {
    list-style: decimal;
}

#content .ql-editor ul ul li,
#content .ql-editor ol ol li,
#content .ql-editor ul ol li,
#content .ql-editor ol ul li {
    list-style: initial;
    font-size: 16px;
    font-weight: normal;
}

#content .ql-editor ul ul,
#content .ql-editor ol ol,
#content .ql-editor ul ol,
#content .ql-editor ol ul {
    padding-top: 0;
}

/* ── Post detail content blocks (post.html) ───────────────── */

.post-blocks {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 10px 0;
}

.post-block-row {
    display: flex;
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

.post-block-row.full {
    flex-direction: column;
}

.post-block-col {
    flex: 1;
}

.post-block-text.ql-editor {
    padding: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
    min-height: 0;
    border: none;
    box-shadow: none;
}

.post-block-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .post-block-row {
        flex-direction: column;
    }
}


/* ---------------------------------------------------------------------
   Everything above this line is the approved theme's style.css, copied
   verbatim (byte-identical) from https://damyceskemyslivosti.cz/style.css
   — do not hand-edit those rules; re-copy from the live site instead if
   the approved design changes.

   Everything below is new, for dcm_master features that have no
   precedent in the original static site, so they don't render unstyled.
   --------------------------------------------------------------------- */

/* The original static site never needed a generic image constraint —
   every image (logo, slider, icons) had explicit CSS dimensions set
   per-component. Freely-uploaded content images have no such sizing, so
   without this an image wider than #content (e.g. a camera-original
   photo) overflows it and forces horizontal scroll on the whole page. */
#content img {
  max-width: 100%;
  height: auto;
}

/* Multi-column block layout (the block editor's "columns" block type)
   — the original site never had this feature. #content's generic
   selectors above already style whatever's nested inside each column
   (headings/paragraphs/tables), this just lays the columns out. */
.dcm-c-columns {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.dcm-c-columns--1 {
  grid-template-columns: 1fr;
}

.dcm-c-columns--2 {
  grid-template-columns: repeat(2, 1fr);
}

.dcm-c-columns--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .dcm-c-columns--2,
  .dcm-c-columns--3 {
    grid-template-columns: 1fr;
  }
}

/* Pagination on the post list (includes/render/post_list_render.php) —
   the original static site had no pagination, it just listed everything. */
.dcm-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  font-size: 0.9rem;
}

/* Session-gated draft-preview banner (admin UX feature, not part of the
   club's public branding) — shown to a logged-in admin viewing an
   unpublished page/post at its real URL before publishing. */
.dcm-draft-banner {
  background: #fdf3d8;
  color: #7a5b00;
  border: 1px solid #f0dfa0;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* The verbatim stickerbar rule (position: sticky) has no z-index, so
   other positioned elements with an explicit one (the nav dropdown at
   z-index:10, the mobile menu panel at z-index:1000) can end up
   painting over it. Force it above everything on the page. */
#stickerbar {
  z-index: 2000;
}
