/*
Theme Name: Eesti Krav Maga Liit
Theme URI: https://www.kuvaja.ee
Author: Kuvaja
Description: A custom WordPress theme for EKML.
Version: 1.1
*/
*,
*::before,
*::after {
  display: revert;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open sans", serif;
  line-height: 1.8rem;
  background: url("img/page-bg.jpg") repeat-y center top;
}

a {
  color: #014bb5;
}

a:hover {
  color: #5391e9;
}

.main-link a {
  font-family: "Kdam Thmor Pro", sans-serif;
  font-size: 1.2rem;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Kdam Thmor Pro", sans-serif;
  font-weight: normal;
}

h1 {
  font-size: 2rem;
  line-height: 2.5rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

h4 {
  font-size: 1.2rem;
  line-height: 1.5rem;
  margin-bottom: 0;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

hr {
  border: 0;
  border-top: 1px solid #ddd !important;
  margin: 0;
}

p {
  margin-top: 5px;
}

#main-content,
#site-navigation,
#footer-widgets {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px;
}

.site-header {
  background: url("img/header-bg.svg") no-repeat center bottom;
  background-size: cover;
  padding: 0px;
}
.site-header .site-branding {
  padding: 0px;
  text-align: center;
  height: 150px;
  vertical-align: middle;
}
.site-header .site-branding img {
  height: 100px;
  margin-top: 16px;
  padding-left: 45px;
  transition: transform 0.35s ease-in-out;
}
.site-header .site-branding img:hover {
  transform: scale(1.1);
}

#site-navigation {
  text-transform: uppercase;
  font-family: "Kdam Thmor Pro", sans-serif;
  font-size: 1.1rem;
  padding-top: 10px;
  padding-bottom: 10px;
}
#site-navigation a {
  color: #000;
}
#site-navigation .main-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0;
  position: relative;
}
@media (max-width: 768px) {
  #site-navigation .main-menu {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
}
#site-navigation .main-menu li {
  position: relative;
  white-space: nowrap;
  padding-top: 2px;
}
@media (max-width: 768px) {
  #site-navigation .main-menu li {
    white-space: normal;
    padding-top: 10px;
  }
}
#site-navigation .main-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#site-navigation .main-menu a {
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  text-overflow: ellipsis;
}
#site-navigation .main-menu .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
  min-width: 200px;
  font-size: 0.9rem;
  z-index: 100;
}
#site-navigation .main-menu .sub-menu li {
  padding-top: 0;
  display: block;
  text-align: left;
}
#site-navigation .main-menu .sub-menu li a {
  display: block;
  padding: 8px 10px;
  transition: background 0.3s ease;
}
#site-navigation .main-menu .sub-menu li a:hover {
  background: #f0f0f0;
}
#site-navigation .main-menu .sub-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#site-navigation .main-menu li.facebook {
  padding-top: 0;
}
#site-navigation .main-menu li.facebook a {
  width: 27px;
  height: 27px;
  background: url("img/facebook.svg") no-repeat center;
  background-size: contain;
  text-indent: -9999px; /* Hide the text */
  overflow: hidden;
  transition: transform 0.35s ease-in-out;
}
#site-navigation .main-menu li.facebook a:hover {
  transform: scale(1.1);
}
#site-navigation .main-menu .current-menu-item > a,
#site-navigation .main-menu .current-menu-parent > a {
  border-bottom: 3px solid #014bb5;
  color: #014bb5;
}
#site-navigation .main-menu .current-menu-parent .current-menu-item > a {
  border: none;
}

#main-content .entry-content > .wp-block-group,
#main-content .entry-content > .wp-block-image {
  margin-bottom: 30px;
}

#site-footer {
  background: #242424;
  background-image: url("img/footer-bg.jpg");
  background-size: cover;
  color: #fff;
  border-top: 10px solid #014bb5;
}
#site-footer .wp-block-columns {
  margin: 0;
}
#site-footer figure {
  max-width: 120px;
  margin: 0 20px;
}

.posts-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.posts-container h2 {
  margin: 0;
}

.post-item {
  display: flex;
  align-items: top;
  gap: 50px;
}

/* Responsive Layout: Image on Top for Small Screens */
@media (max-width: 768px) {
  .post-item {
    flex-direction: column; /* Stack items vertically */
    gap: 20px;
  }
  .post-thumbnail {
    max-width: 100%; /* Allow full width */
  }
}
.post-thumbnail {
  flex: 1;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.placeholder-thumbnail {
  width: 100%;
  height: 150px; /* Adjust height as needed */
  background: #ddd; /* Light gray */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #777;
  border-radius: 8px;
}

.post-content {
  flex: 2;
}

.single-page,
.posts-container,
.single-post article {
  max-width: 1000px;
  margin: 0 auto;
}

.single-post .entry-header {
  margin-bottom: 20px;
}
.single-post .entry-title {
  font-size: 2rem;
  margin-bottom: 10px;
}
.single-post .post-thumbnail {
  text-align: center;
  margin-bottom: 20px;
}
.single-post .entry-content {
  font-size: 1rem;
  line-height: 1.8;
}
.single-post .entry-footer {
  margin-top: 40px;
  text-align: center;
}
.single-post .post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.single-post .post-navigation a {
  text-decoration: none;
  font-weight: bold;
  color: #0073aa;
}
.single-post .post-navigation a:hover {
  color: #014bb5;
}

.is-style-rounded img {
  border-radius: 20px;
}

div.drop-shadow,
figure.drop-shadow img {
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
}

.gray-box {
  background: #ededed;
  border: 1px solid #ddd;
  border-radius: 20px;
  -moz-column-gap: 50px;
       column-gap: 50px;
  padding: 0 50px 20px;
}
.gray-box figure {
  transition: transform 0.35s ease-in-out;
}
.gray-box figure:hover {
  transform: scale(1.1);
}

.top-margin-60 {
  margin-top: 60px;
}

.no-margin-bottom {
  margin-bottom: 0;
}

.padding-bottom {
  padding-bottom: 30px;
}

.oversize-image {
  scale: 1.05;
  transform-origin: bottom center; /* Scale from the bottom */
  transform: translateY(23px); /* Adjust position */
}

/* Styling for the Instructor Block */
.instructor-block {
  margin: 60px 0;
}

.instructor figure {
  margin: 0 !important;
  max-width: 750px;
}
.instructor figure img {
  border-radius: 20px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
}

.instructor-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
@media (max-width: 768px) {
  .instructor-container {
    grid-template-columns: 1fr; /* Each instructor takes full width on small screens */
  }
}
.instructor-container .instructor-column {
  display: flex;
}
.instructor-container .instructor {
  padding: 5px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distributes space evenly inside */
  align-items: center; /* Ensures content is centered */
}
.instructor-container .instructor .instructor-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  transition: transform 0.35s ease-in-out;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.05);
}
.instructor-container .instructor .instructor-thumbnail img:hover {
  transform: scale(1.1);
}
.instructor-container .instructor .instructor-title {
  font-size: 1.3rem;
  margin: 10px 0 0;
}
.instructor-container .instructor .instructor-content {
  flex-grow: 1; /* Ensures the content takes equal space */
}

.embed-container {
  position: relative;
  width: 100%; /* Makes it responsive */
  padding-top: 56.25%; /* Aspect ratio: 16:9 */
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.wp-block-post-excerpt {
  margin-bottom: 20px;
}

/* Ensure bullets appear in wp-block-list */
.wp-block-list ul {
  list-style-type: disc; /* Adds bullet points */
  padding-left: 20px; /* Ensures proper spacing */
}

/* Ensure numbering appears in ordered lists */
.wp-block-list ol {
  list-style-type: decimal;
  padding-left: 20px;
}/*# sourceMappingURL=style.css.map */