/* Geografsko društvo – stilovi nakon prelaska s Nimble Buildera na Gutenberg (tema Hueman) */

/* ---------- Preneseno iz pluginu "Simple Custom CSS and JS" (Main CSS, #302) ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
.related-posts .post { margin-right: 15px; }
.image-border.wp-image-316.size-medium.alignleft,
.image-border.wp-image-319.size-medium.alignleft,
.image-border.wp-image-320.size-medium.alignleft {
  border: 1px solid white;
  padding: 5px;
  margin-right: 30px !important;
}
.entry img.alignleft { margin: 0 !important; }
.nav ul { width: 300px; }

/* ============================================================
   POCETNA STRANICA (stranica #14, sablon tools/frontpage.html)
   ============================================================ */
:root { --gd-blue: #1e73be; --gd-navy: #0d2b45; --gd-light: #f3f6f9; }

/* Hueman: na pocetnoj bez naslova stranice i bez unutrasnjeg paddinga, da cover ide od ruba do ruba */
.home .page-title { display: none; }
.home.page .main-inner { padding-top: 0; }
.home.page .content .pad { padding: 0; }
.home.page .entry-inner > *:not(.alignfull) { margin-left: 30px; margin-right: 30px; }

/* Hero (cover) */
.gd-hero { margin: 0 0 10px !important; padding: 70px 30px !important; }
/* Hueman ima ".entry img { height:auto }" sto razbija cover sliku -> vrati apsolutno pozicioniranje */
.entry .wp-block-cover .wp-block-cover__image-background {
  position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; margin: 0; object-fit: cover; border: 0; box-shadow: none;
}
.gd-hero .wp-block-cover__inner-container { max-width: 860px; margin: 0 auto; text-align: center; color: #fff; }
.gd-hero .gd-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; opacity: .85; margin: 0 0 .9em; }
.entry .gd-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.gd-hero .gd-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 720px; margin: 0 auto 1.8em; opacity: .95; }
.gd-hero .wp-block-buttons { gap: 12px; }
.entry .gd-hero .wp-block-button__link { padding: .8em 1.8em; border-radius: 3px; font-weight: 600; font-size: 1rem; }
.entry .gd-hero .gd-btn-primary .wp-block-button__link { background: #fff; color: var(--gd-navy); }
.entry .gd-hero .gd-btn-primary .wp-block-button__link:hover { background: var(--gd-blue); color: #fff; }
.entry .gd-hero .gd-btn-ghost .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .85); }
.entry .gd-hero .gd-btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .15); }

/* Sekcije */
.gd-section { margin-top: 50px !important; margin-bottom: 50px !important; }
.entry .gd-section-title { text-align: center; font-size: 1.8rem; margin: 0 0 1.2em; position: relative; padding-bottom: .5em; }
.entry .gd-section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 3px; margin-left: -28px; background: var(--gd-blue); }

/* Kartice */
.gd-cards .wp-block-columns { gap: 24px; margin: 0; }
.entry .gd-card { background: var(--gd-light); border-top: 4px solid var(--gd-blue); padding: 26px 26px 18px; border-radius: 3px; transition: transform .15s, box-shadow .15s; }
.entry .gd-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13, 43, 69, .12); }
.entry .gd-card h3 { margin: 0 0 .5em; font-size: 1.3rem; color: var(--gd-navy); }
.entry .gd-card p { color: #555; font-size: .95rem; line-height: 1.6; }
.entry .gd-card-link a { font-weight: 600; text-decoration: none; color: var(--gd-blue); }
.entry .gd-card-link a:hover { text-decoration: underline; }

/* Najnovije objave (Query Loop) */
.entry .gd-posts .wp-block-post-template { gap: 28px; margin: 0; padding: 0; list-style: none; }
.entry .gd-posts .wp-block-post { margin: 0; background: #fff; border: 1px solid #e6e9ee; border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.entry .gd-posts .wp-block-post:hover { box-shadow: 0 8px 24px rgba(13, 43, 69, .12); }
.entry .gd-posts .wp-block-post > *:not(.wp-block-post-featured-image) { margin-left: 18px; margin-right: 18px; }
.entry .gd-posts .wp-block-post-featured-image { margin: 0 0 14px; }
.entry .gd-posts .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
/* objava bez istaknute slike: polje u bojama Drustva s logom */
.entry .gd-posts .wp-block-post:not(:has(.wp-block-post-featured-image))::before {
  content: ""; display: block; aspect-ratio: 3 / 2; margin-bottom: 14px;
  background: url("../../uploads/2020/09/Geografsko-drustvo-logo.png") center / 90px no-repeat, linear-gradient(135deg, var(--gd-navy), var(--gd-blue));
}
.entry .gd-posts .gd-post-date { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #888; margin-top: 0; margin-bottom: 6px; }
.entry .gd-posts .wp-block-post-title { font-size: 1.1rem; line-height: 1.35; margin: 0 0 8px; }
.entry .gd-posts .wp-block-post-title a { color: var(--gd-navy); text-decoration: none; }
.entry .gd-posts .wp-block-post-title a:hover { color: var(--gd-blue); }
.entry .gd-posts .wp-block-post-excerpt { font-size: .9rem; color: #666; margin-bottom: 18px; }
.entry .gd-posts .wp-block-post-excerpt__more-text { display: none; }
.gd-latest > .wp-block-buttons { margin-top: 30px; }
.entry .gd-latest .is-style-outline .wp-block-button__link { border: 2px solid var(--gd-blue); color: var(--gd-blue); background: transparent; padding: .6em 2em; border-radius: 3px; font-weight: 600; }
.entry .gd-latest .is-style-outline .wp-block-button__link:hover { background: var(--gd-blue); color: #fff; }

@media (max-width: 781px) {
  .gd-hero { padding: 50px 20px !important; min-height: 420px !important; }
  .home.page .entry-inner > *:not(.alignfull) { margin-left: 16px; margin-right: 16px; }
  .entry .gd-posts .wp-block-post-template { grid-template-columns: 1fr !important; }
}
@media (min-width: 782px) and (max-width: 1100px) {
  .entry .gd-posts .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- Komentari iskljuceni: Hueman ostavlja prazan <section id="comments"> ---------- */
#comments, .post-comments, .comments-link { display: none !important; }

/* ---------- Forme (Contact Form 7): izgled kao Nimble simple form ---------- */
.gd-form p { margin: 0 0 1.1em; }
.gd-form label { display: block; font-weight: 700; font-size: 0.95em; color: #333; }
.gd-form input[type="text"],
.gd-form input[type="email"],
.gd-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.35em;
  padding: 0.6em 0.75em;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  font-weight: 400;
  box-shadow: none;
}
.gd-form textarea { min-height: 9em; resize: vertical; }
.gd-form input:focus, .gd-form textarea:focus { border-color: #1e73be; outline: 2px solid rgba(30, 115, 190, .2); }
.gd-form-submit { text-align: center; }
.gd-form input[type="submit"] {
  background: #020202;
  color: #fff;
  border: 0;
  border-radius: 2px;
  padding: 0.6em 2em;
  font-size: 1em;
  cursor: pointer;
}
.gd-form input[type="submit"]:hover { background: #151515; }
.wpcf7 .wpcf7-not-valid-tip { font-weight: 400; font-size: 0.85em; }
.wpcf7 form .wpcf7-response-output { margin: 1em 0 0; padding: 0.75em 1em; }

/* ---------- Slike i dugmad ---------- */
.wp-block-image.gd-shadow img { box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.wp-block-image.gd-hover-opacity img { transition: opacity .2s; }
.wp-block-image.gd-hover-opacity a:hover img { opacity: .75; }
.wp-block-button.gd-btn-shadow .wp-block-button__link { box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .1s, box-shadow .1s; }
.wp-block-button.gd-btn-shadow .wp-block-button__link:active { transform: translateY(2px); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.entry .wp-block-button__link { text-decoration: none; }

/* Hueman stilizuje .entry ul/ol i tabele – zadrzati to i za Gutenberg blokove */
.entry .wp-block-separator { border: 0; border-top: 1px solid #e8e8e8; height: 0; background: none; margin: 1.5em 0; opacity: 1; }
.entry .wp-block-separator.has-background { border-top-color: currentColor; }
.entry .wp-block-table table { width: 100%; }

/* ---------- Kolone: obrnuti redoslijed na mobitelu (Kontakt: mapa ispod forme) ---------- */
@media (max-width: 781px) {
  .wp-block-columns.gd-reverse-mobile { flex-direction: column-reverse; }
}

/* ---------- Details (bivsi Nimble accordion) ---------- */
.entry .wp-block-details { border: 1px solid #e5e5e5; margin: 0 0 -1px; padding: 0; }
.entry .wp-block-details summary { cursor: pointer; padding: 0.9em 1.1em; font-weight: 600; background: #fff; }
.entry .wp-block-details[open] summary { border-bottom: 1px solid #e5e5e5; }
.entry .wp-block-details > *:not(summary) { margin: 0; padding: 0 1.1em; }
.entry .wp-block-details > p:first-of-type { padding-top: 0.9em; }
.entry .wp-block-details > *:last-child { padding-bottom: 0.9em; }

/* ---------- Mapa ---------- */
.gd-map iframe { display: block; max-width: 100%; }
@media (max-width: 781px) { .gd-map iframe { height: 336px !important; } }

/* ---------- Slider (bivsi Nimble img slider): galerija s klasom gd-slider ---------- */
.wp-block-gallery.gd-slider {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.wp-block-gallery.gd-slider::-webkit-scrollbar { display: none; }
.wp-block-gallery.gd-slider > .wp-block-image {
  flex: 0 0 100% !important;
  width: 100% !important;
  margin: 0 !important;
  scroll-snap-align: start;
}
.wp-block-gallery.gd-slider > .wp-block-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto !important; }
.gd-slider-wrap { position: relative; }
.gd-slider-wrap .gd-slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 22px; line-height: 42px;
  cursor: pointer; z-index: 2; padding: 0;
}
.gd-slider-wrap .gd-slider-btn:hover { background: rgba(0, 0, 0, .7); }
.gd-slider-wrap .gd-prev { left: 10px; }
.gd-slider-wrap .gd-next { right: 10px; }
