/*
Theme Name:   HDFK
Theme URI:    https://www.bozooart.com
Author:       BozooArt
Author URI:   https://www.bozooart.com
Version:      1.0.9
*/

:root {
  --primary: #05e8ed;
  --green: #0b5d3f;
  --navy: #0a1f3a;
  --text: 'Noto Serif', serif;
  --title: 'Source Serif 4', serif;
  --anim: all 0.5s ease;
  --slow: all 0.7s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--text);
  line-height: 1.6;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1.25rem 0 1rem;
  font-family: var(--title);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.125rem; color: var(--navy); font-weight: 500; }
h2 { font-size: 2.7rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin: 1rem 0; }

a { color: inherit; text-decoration: none; transition: var(--anim); color: var(--primary) }
a:hover { color: #000 }
a:focus,
input { outline: none; }

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

img,
iframe,
video { max-width: 100%; height: auto; display: block; }

button,
input,
textarea,
select { font-family: inherit; }

.container { width: min(100%, 1290px); margin: 0 auto; padding: 0 20px; }

.main.page .entry-content,
.single-wrapper { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.header { background: #fff; border-bottom: 1px solid #eee; position: relative; z-index: 999; }
.header a { color: #000 }
.inner-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.site-logo img { height: 55px; width: auto; transition: transform 0.3s ease; }
.site-logo img:hover { transform: translateY(-5px); }
.site-desc { flex: 1; text-align: center; padding: 0 2.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.site-nav ul { display: flex; gap: 1.875rem; }
.site-nav a { font-size: .9rem; text-transform: uppercase; letter-spacing: 0.5px; color: #000 }
.header a:hover,
.site-nav a:hover { color: var(--primary); }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.625rem; }
.mobile-menu-toggle span { width: 24px; height: 2px; background: #000; display: block; margin: 5px 0; transition: 0.3s; }

/* MOBILNI MENU */
.mobile-nav { position: fixed; top: 70px; right: -100%; width: 100%; height: calc(100vh - 70px); background: #000; padding: 0 3.125rem; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; transition: right 0.5s ease; z-index: 9999; }
.mobile-nav.active { right: 0; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.25rem; justify-content: center; height: 100%; }
.mobile-nav a { color: #fff; font-size: 1.15rem; padding: 0 0.9375rem; }

/* FOOTER */
.site-footer { padding: 3.75rem 1.25rem 2.5rem; border-top: 1px solid #000; margin-top: 6.25rem; font-size: 0.9375rem; }
.footer-inner { margin: 0 auto; display: grid; grid-template-columns: 3fr 1fr 1fr;; gap: 6rem; }
.footer-title { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.25rem; }
.footer-col { font-size: 1.1rem; line-height: 1.3 }
.footer-col a:hover { border-bottom: 1px solid var(--primary); }
.footer-col.contact { text-align: right; }
.footer-col.contact li { margin-bottom: 5px;  }
.site-footer a { color: #000 }
.site-footer a:hover { color: var(--primary) }

.searchform { display: flex;  margin: 20px 0; }
.searchform div { display: flex; width: 100%; max-width: 500px; }
.searchform input[type="text"] { flex: 1; padding: 12px 16px; font-size: 1rem; border: 2px solid #ccc; outline: none; transition: border-color 0.3s, box-shadow 0.3s; }
.searchform input[type="text"]:focus { border-color: #000; box-shadow: 0 0 8px rgba(0,0,0,0.2); }
.searchform input[type="submit"] { padding: 12px 24px; font-size: 1rem; font-weight: 600;  border-left: none; background: #000; color: #fff; cursor: pointer; transition: background 0.3s, color 0.3s; }
.searchform input[type="submit"]:hover { background: var(--primary); color: #000; }
.searchform label.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); padding: 0; border: 0; height: 1px; width: 1px; overflow: hidden; }

/* ENTER TITLE */
.enter-title { background:  url('img/bc-pattern.png') right 0 no-repeat; min-height: 200px; display: flex; align-items: center; }
.enter-title .container { justify-content: center; }
.enter-title h1 { font-size: 2.6rem; text-transform: uppercase; letter-spacing: 0.2em; color: #000; margin: 0; text-align: center }

/* TABLICA */
.table { width: 100%; border-collapse: collapse; border: 1px dashed var(--green); margin: 2rem 0; }
.table th,
.table td { padding: 0.625rem; border: 1px dashed var(--green); text-align: left; }
.table thead tr { background: rgba(0,0,0,.1); font-weight: bold; }
.table tbody tr:nth-child(even) { background: rgba(0,0,0,.05); }

/* ANIMACIJE */
.animation { opacity: 0; filter: blur(3px); transform: translateY(200px); transition: all .7s ease-out; }
.animation.fadeup { opacity: 1; filter: blur(0); transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }
.delay-6 { transition-delay: .6s; }
.delay-7 { transition-delay: .7s; }
.delay-8 { transition-delay: .8s; }
.delay-9 { transition-delay: .9s; }
.delay-late { transition-delay: 1.5s; }

/* POSTS GRID */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 100px; margin: 60px auto; padding: 0 20px; }
.posts-grid article { display: flex; gap: 20px; background: url(img/border-black.png) repeat-y top left; padding-left: 25px; transition: var(--anim); }
.posts-grid article:hover { transform: translateY(-4px); background: url(img/border-teal.png) repeat-y top left; }
.posts-grid .post-thumbnail img { width: 100%;  filter: grayscale(100%); transition: filter 0.35s ease; display: block;  }
.posts-grid article:hover .post-thumbnail img { filter: grayscale(0%); }
.posts-grid .entry-content { flex: 0 0 60%; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0; }
.posts-grid .cat-links a { text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-weight: 600; }
.posts-grid .entry-title { font-size: 1.6rem; margin: -10px 0 8px; line-height: 1.3; font-weight: 600; }
.posts-grid .entry-title a { color: #000; }
.posts-grid .entry-title a:hover { color: var(--primary); }
.posts-grid .entry-summary { line-height: 1.5; font-size: 1.1rem }

/* SINGLE */
.entry-meta { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.9375rem; }
.entry-title { font-size: 2.6rem; line-height: 1.2; font-weight: 700; margin: 0 0 1rem; }
.entry-content { line-height: 1.8; color: #222;  }
.entry-content p { margin: 1.25rem 0; }
.entry-content.text,
.author-text,
.entry-tags,
.stripe { background: url(img/border-black.png) repeat-y top left; padding: 0 30px; font-size: 1.2rem;  container-type: inline-size; }
.single-wrapper .featured-image,
.author-text  { margin-bottom: 30px;  }
.entry-content.text a,
.entry-tags a { color: var(--primary) }
.entry-content.text a:hover,
.entry-tags a:hover { color: #000; }
.entry-content img {
    max-width: 100% !important;
    width: 100% !important;       
    height: auto !important;        
    display: block !important;
    box-sizing: border-box;
}
.entry-content .wp-caption {
    width: 100% !important;
    max-width: 100% !important;
}


/* MEMBERS */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; margin-top: 20px; }
.member-item { background: #fff;  padding: 20px;  text-align: center; transition: var(--anim); }
.member-item:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.1); transform: translateY(-5px); }
.member-item img {  margin: 0 auto }
.member-excerpt { line-height: 1.2 }
.member-item h3 { font-size: 1.3rem }
.members-search-wrapper { margin-bottom: 60px; text-align: center  }
.member-item a { color: #000 }
.member-item:hover a { color: var(--primary) }

/* SEARCH */
#members-search { width: 100%; max-width: 550px; padding: .5rem 1.25rem; font-size: 1.25rem; border: 1px solid #ccc; margin-bottom: 10px;  }

/* LATEST ARTICLES SLIDER */
.latest-articles-section { padding: 3.75rem 0 2.5rem; overflow: hidden;  }
.latest-articles { margin-top: 200px;  }
.latest-slider { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 0; scroll-behavior: smooth; }
.latest-slider::-webkit-scrollbar { display: none; }
.latest-item { flex: 0 0 300px; max-width: 300px; background: #fff; overflow: hidden; transition: transform 0.3s; }
.latest-item:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }
.latest-thumb img { height: 200px; object-fit: cover; }
.latest-post-title { padding: 15px; font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: #000; }
.latest-item:hover .latest-post-title  { color: var(--primary) }

/* SWIPER CUSTOM */
#latestSlider .swiper-button-next, 
#latestSlider .swiper-button-prev { width:54px; height:54px; border-radius:50%; background:rgba(255,255,255,0.15); backdrop-filter:blur(6px); color:#fff; display:flex; align-items:center; justify-content:center; transition:all .3s ease; box-shadow:0 4px 16px rgba(0,0,0,0.15); margin-top:0!important; top:50%; transform:translateY(-50%); }
#latestSlider .swiper-button-next:hover, 
#latestSlider .swiper-button-prev:hover { background:rgba(255,255,255,0.25); transform:scale(1.07); box-shadow:0 8px 20px rgba(0,0,0,0.25); }
#latestSlider .swiper-button-prev:after, 
#latestSlider .swiper-button-next:after { font-size:16px; font-weight:600; }
#latestSlider .swiper-pagination-bullet { width:12px; height:12px; background:#d0d0d0; opacity:1; transition:all .3s ease; margin:0 6px!important; border-radius:50%; }
#latestSlider .swiper-button-prev:hover:after, 
#latestSlider .swiper-button-next:hover:after { color: var(--primary) }
#latestSlider .swiper-pagination-bullets.swiper-pagination-horizontal { bottom: -5px !important; }

.search-page-wrapper { padding: 4rem 0 6rem; background: #fff; }
.search-header { text-align: center; margin-bottom: 4rem; max-width: 860px; margin-left: auto; margin-right: auto; }
.search-title { font-size: 2.8rem; margin-bottom: 1.8rem; line-height: 1.1; }
.search-title span { color: var(--primary); font-style: italic; }

/* MODERNO SEARCH POLJE */
.search-form-modern { position: relative; max-width: 580px; margin: 0 auto; }
.search-field-modern { width: 100%; padding: 1.4rem 4rem 1.4rem 1.8rem; font-size: 1.15rem; font-family: var(--text); background: #fff; border: 3px solid #000; border-radius: 0; transition: var(--anim); box-shadow: none; letter-spacing: 0.5px; }
.search-field-modern:focus { border-color: var(--primary); box-shadow: 0 0 0 6px rgba(5, 232, 237, 0.2); outline: none; }
.search-field-modern::placeholder { color: #666; font-style: italic; }
.search-submit-modern { position: absolute; right: 6px; top: 6px; width: 56px; height: 56px; background: #000; color: #fff; border: none; border-radius: 0; cursor: pointer; transition: var(--anim); display: flex; align-items: center; justify-content: center; }
.search-submit-modern:hover { background: var(--primary); transform: scale(1.05); }
.search-submit-modern svg { stroke: currentColor; }

/* REZULTATI */
.search-results-grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
.search-result-item { display: flex; gap: 1.8rem; background: #fff; padding: 1.8rem; border: 1px solid #eee; transition: var(--anim); }
.search-result-item:hover { border-color: #000; transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.search-result-thumb { flex: 0 0 180px; overflow: hidden; }
.search-result-thumb img { width: 100%; height: 140px; object-fit: cover; transition: transform 0.4s ease; }
.search-result-item:hover .search-result-thumb img { transform: scale(1.08); }
.search-result-content { flex: 1; display: flex; flex-direction: column; }
.search-result-title { font-size: 1.45rem; margin: 0 0 0.5rem; line-height: 1.3; }
.search-result-title a { color: #000; transition: var(--anim); }
.search-result-title a:hover { color: var(--primary); }
.search-result-meta { font-size: 0.875rem; color: #666; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.search-result-meta span + span::before { content: "Â· "; margin: 0 0.5rem; color: #aaa; }
.search-result-excerpt { color: #444; line-height: 1.7; margin-bottom: 1rem; flex-grow: 1; font-size: 1.1rem; margin: 0}
.search-result-link { color: var(--primary); font-weight: 600; font-size: 0.95rem; align-self: flex-start; }
.search-result-link:hover { text-decoration: underline; }

/* NO RESULTS */
.search-no-results { text-align: center; padding: 4rem 2rem; font-size: 1.2rem; color: #444; }
.search-no-results h2 { font-size: 2.2rem; margin-bottom: 1rem; color: #000; }

/* PAGINACIJA */
.pagination,
.search-pagination,
.posts-navigation,
.page-links { margin: 4rem 0 2rem; text-align: center; font-family: var(--title); }

.pagination .page-numbers,
.search-pagination .page-numbers,
.posts-navigation .nav-links a,
.page-links a,
.page-links span.current,
.posts-navigation .nav-links .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  margin: 0 6px;
  padding: 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  transition: var(--anim);
}

.pagination .page-numbers:hover,
.search-pagination .page-numbers:hover,
.posts-navigation .nav-links a:hover,
.page-links a:hover { background: #000; color: #fff; border-color: #000; }

.pagination .page-numbers.current,
.search-pagination .page-numbers.current,
.page-links span.current,
.posts-navigation .nav-links .current { background: #000; color: #fff; border-color: #000; }

.pagination .page-numbers.dots,
.search-pagination .page-numbers.dots { border: none; background: transparent; color: #666; cursor: default; }


.pagination .page-numbers.prev::before { margin-right: 8px; font-weight: bold; }
.pagination .page-numbers.next::after { margin-left: 8px; font-weight: bold; }

.search-pagination .page-numbers.prev::before { font-weight: 600; }
.search-pagination .page-numbers.next::after { font-weight: 600; }

iframe[src*="youtube.com"] {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* RESPONSIVE */
@media (max-width: 1400px) { 
  .container { padding: 0 40px; } 
}

@media (max-width: 1300px) { 
  .container { width: 100%; padding: 0 30px; } 
}

@media (max-width: 1080px) { 
  .posts-grid { gap: 40px 60px; } 
}

@media (max-width: 980px)  { 
  .site-desc { padding: 0 20px; font-size: 0.875rem; } 
}

@media (max-width: 860px)  { 
  .posts-grid { grid-template-columns: 1fr; } 
  .posts-grid .post-thumbnail { flex: 0 0 120px; height: 120px; } 
    .container { width: 100%; padding: 0 15px; } 
    .posts-grid { padding: 0 }
}

@media (max-width: 768px)  { 
  .site-desc { display: none; }
  .mobile-menu-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #eee; padding: 20px; display: none; }
  .site-nav.active { display: block; }
  .site-nav ul { flex-direction: column; gap: 15px; }
  .site-nav a { display: block; padding: 8px 0; font-size: 0.9375rem; }
  .latest-item { flex: 0 0 280px; max-width: 280px; }
  .entry-title { font-size: 2.125rem; }
  .search-result-item { flex-direction: column; }
  .search-result-thumb { flex: none; }
  .search-result-thumb img { height: 200px; width: 100%; }
  .search-title { font-size: 2.2rem; }
  .search-field-modern { padding: 1.2rem 4rem 1.2rem 1.4rem; font-size: 1.1rem; }
  .footer-col .search-form { max-width: 100%; }
  .footer-col .search-form .search-field { padding-left: 3.8rem; font-size: 1.1rem; }
}

@media (max-width: 480px)  { 
  .container { padding: 0 20px; } 
  .posts-grid { gap: 0; padding: 0}  
  .posts-grid article { flex-direction: column; padding: 0; background: none; margin-bottom: 30px; }
  .posts-grid .post-thumbnail { width: 100%; height: auto; }
  .single-wrapper { margin: 40px auto; padding: 0 15px; }
  .entry-title { font-size: 1.75rem; }
  .site-footer { padding: 3.125rem 15px 1.875rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .search-header { padding: 0 1rem; }
  .search-field-modern { padding: 1.1rem 3.8rem 1.1rem 1.2rem; }
  .pagination .page-numbers,
  .search-pagination .page-numbers { min-width: 30px; height: 40px; margin: 0 4px; font-size: 0.9375rem; }
}

@media (max-width: 360px)   { 
  h1 { font-size: 2.5rem; } 
  .enter-title h1 { font-size: 2rem; } 
}

/* RESPONSIVE FOOTER */
@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
  }
  
  .footer-col.contact {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .footer-col.contact {
    grid-column: auto;
    margin-top: 0;
  }
  
  .site-footer {
    padding: 3rem 0 2rem;
  }
}

/* MOBILNI MENU TOGGLE */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.625rem;
    position: relative;
    z-index: 10000;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #000;
    display: block;
    margin: 5px 0;
    transition: var(--anim);
    transform-origin: center;
}

/* HAMBURGER ANIMACIJA U X */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILNI MENU */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #000;
    padding: 5rem 3.125rem 3.125rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    transition: right 0.5s ease;
    z-index: 9999;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.mobile-nav a {
    color: #fff;
    font-size: 1.15rem;
    padding: 0.625rem 0;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a:hover {
    color: var(--primary);
}


.single-clanovi .featured-image { text-align: center;  }
.single-clanovi .featured-image img { display: block; margin: 0 auto }

.back-to-clanovi {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 15px 25px;
    font-size: 17px;                         
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(12px);               
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 1);
    transition: all 0.22s cubic-bezier(0.2, 0, 0, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    color: #000; 
    margin: 30px 0 0 30px; 
}

.back-to-clanovi:hover,
.back-to-clanovi:focus-visible {
    background: rgb(255, 255, 255, 0.95);
    transform: translateY(-1px);
    color: var(--primary)
}

.back-to-clanovi:active {
    transform: translateY(0);
    background: rgb(245, 245, 247, 0.95);
    transition-duration: 0.1s;
}


.wp-caption-text {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    text-align: center;
    font-style: italic;
    padding: 0 10px;
}

.footer-bottom {padding: 30px 0 30px; display:flex;justify-content:space-between;align-items:center;position:relative; margin-top: 60px; border-top: 1px solid #ccc;  }
.footer-bottom::before {content:"";position:absolute;top:0;left:50px;right:50px;height:1px;background:rgba(255,255,255,.5);}
.copy {margin:0;font-size:14px;opacity:0.8;}
.copy::before { margin-right:4px; }
.master {margin:0;font-size:14px;opacity:0.8;}

.footer-col li { margin-bottom: 5px; }
.footer-col li:last-child { margin: 0 }

.wrap {
    display: flex;
    justify-content: flex-end;
}
.subscribe { padding: 12px 30px; border: 2px solid #000; color: #000; text-transform: uppercase; margin: -50px 0 0; display: inline-block; position: relative; z-index: 10   }
.subscribe:hover { background: var(--primary) }

/* MOBILNI CLOSE BUTTON */
.mobile-close-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    z-index: 10001;
    padding: 0.5rem;
}

.mobile-close-btn svg {
    width: 24px;
    height: 24px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-close-btn {
        display: block;
    }
    
    .site-nav {
        display: none;
    }
    
    .inner-header {
        position: relative;
    }
    .subscribe  { margin: 25px auto 30px;  }

    .pagination { margin: 0;  }
    .searchform div { max-width: 100%  }
    .searchform input[type="text"] { width: 200px;  }

    .footer-bottom {
        flex-direction: column;
        gap: 15px; /* razmak između elemenata */
        text-align: center;
    }
    
}

@media (max-width: 480px) {
    .mobile-nav {
        padding: 4rem 1.25rem 1.25rem;
    }
    
    .mobile-nav ul {
        margin-top: 1rem;
    }
    
    .mobile-nav a {
        font-size: 1rem;
    }
}


.members { list-style-type: decimal }