/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


/*  Yt grid  */

.youtube-thumbnails-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
	justify-content: center;
}

/* Wrapper for each video + title */
.youtube-thumb-item-wrapper {
  flex: 1 1 calc(50% - 1rem);
  max-width: calc(50% - 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Video thumbnail container */
.youtube-thumb-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  width: 100%;
align-content: center;
}

.youtube-thumb-item img,
.youtube-thumb-item iframe {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
}

/* Video title below thumbnail */
.youtube-thumb-title {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
}

/* Yt pagination === */

.youtube-thumbnails-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
  font-family: Arial, sans-serif;
}

.youtube-thumbnails-pagination li {
  display: inline-block;
  margin: 0;
}

.youtube-thumbnails-pagination li a,
.youtube-thumbnails-pagination li span {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #0073aa;
  text-decoration: none;
  font-size: 0.9rem;
  min-width: 32px;
  text-align: center;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.youtube-thumbnails-pagination li a:hover {
  background-color: #0073aa;
  color: #fff;
}

.youtube-thumbnails-pagination .current,
.youtube-thumbnails-pagination li .current {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
  cursor: default;
}

.youtube-thumbnails-pagination .dots {
  border: none;
  cursor: default;
  padding: 0 0.5rem;
  color: #999;
}

@media (max-width: 768px) {
  .youtube-thumb-item-wrapper {
    flex: 1 1 calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
  }
}

@media (max-width: 480px) {
  .youtube-thumb-item-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .youtube-thumb-title {
    font-size: 0.9rem;
  }

  .youtube-thumbnails-pagination li a,
  .youtube-thumbnails-pagination li span {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    min-width: 28px;
  }
}

/* Pdf posts - Grid - (for both containers) */
.pdf-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  align-items: stretch;
}

.pdf-post-item {
  flex: 0 0 calc(25% - 1rem); /* 4 columns */
  max-width: calc(25% - 1rem);
  box-sizing: border-box;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pdf-post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.pdf-thumb img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .pdf-post-item {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 640px) {
	.pdf-posts-grid {
		justify-content: center;
	}
	
  .pdf-post-item {
    flex: 0 0 80%;
    max-width: 100%;
  }
}

/* PDF Pagination */

.pdf-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pdf-pagination::-webkit-scrollbar {
  display: none;
}

/* PDF Page Link One */
.pdf-page-link-one {
  display: inline-block;
  padding: 8px 14px;
  background-color: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
}

.pdf-page-link-one.current {
  background-color: #333;
  color: #fff;
  font-weight: bold;
  cursor: default;
}

.pdf-page-link-one:hover:not(.current) {
  background-color: #ccc;
}

.pdf-page-link-one.arrow {
  min-width: 36px;
  font-size: 16px;
}

/* PDF Page Link Two */
.pdf-page-link-two {
  display: inline-block;
  padding: 8px 14px;
  background-color: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
}

.pdf-page-link-two.current {
  background-color: #333;
  color: #fff;
  font-weight: bold;
  cursor: default;
}

.pdf-page-link-two:hover:not(.current) {
  background-color: #ccc;
}

.pdf-page-link-two.arrow {
  min-width: 36px;
  font-size: 16px;
}

@media (max-width: 480px) {
	
  .pdf-pagination {
    justify-content: center;
  }

  .pdf-page-link-one,
  .pdf-page-link-two {
    font-size: 15px;
    padding: 8px 12px;
    min-width: 36px;
  }

  .pdf-page-link-one.arrow,
  .pdf-page-link-two.arrow {
    min-width: 36px;
    font-size: 16px;
  }
}

/* Button of emailing Vesna */

.email-button {
  display: inline-block;
  background-color: #0073aa;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.email-button:hover {
  background-color: #005f88;
}