@font-face {
    font-family: 'kurdish-font'; /* Name your font family */
    src: url('../font/kurdish.ttf'); /* Locate the .ttf file within your directory*/
  }

body, h1, h2, h3, h4, h5, h6, p,
blockquote, pre, q, blockquote,
s, span, strong, sub, sup, strong,
.h1, .h2, .h3, .h4, .h5, .h6, a{
    font-family: 'kurdish-font', sans-serif !important; /* Use the font family */
    color: #0F4667;
  }

  :root{
    --background-dark: #0F4667;
    --background-dark-70: rgba(15, 70, 103, 0.7);
    --text-light: rgba(255,255,255,0.6);
    --text-lighter: rgba(255,255,255,1);
    --spacing-s: 8px;
    --spacing-m: 16px;
    --spacing-l: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 64px;
    --width-container: 1200px;
  }

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


  body{
    height: 100%;
  }

  .hero-section{
    align-items: flex-start;
    /* background-image: linear-gradient(15deg, #0f4667 0%, #2a6973 150%); */
    display: flex;
    min-height: 100%;
    justify-content: center;
    padding: var(--spacing-xxl) var(--spacing-l);
  }

  a{
    cursor: pointer !important;
  }

  .card-grid{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: var(--spacing-l);
    grid-row-gap: var(--spacing-l);
    max-width: var(--width-container);
    width: 100%;
  }

  @media(min-width: 540px){
    .card-grid{
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media(min-width: 960px){
    .card-grid{
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .card{
    list-style: none !important;
    position: relative !important;
    background-color: none !important;
    border: none;
    display: block;
    overflow: hidden;
    border-radius: var(--spacing-l);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); /* Bottom shadow */
    transition: box-shadow 0.3s ease; /* Smooth transition for hover effect */
  }

  .card:before{
    content: '';
    display: block;
    padding-bottom: 150%;
    width: 100%;
  }

  .card__background{
    background-size: cover;
    background-position: center;
    border-radius: var(--spacing-l);
    bottom: 0;
    filter: brightness(0.75) saturate(1.2) contrast(0.85);
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform-origin: center;
    transform: scale(1) translateZ(0);
    transition:
      filter 200ms linear,
      transform 200ms linear;
    background-color: none !important;
  }

  /* Gradient overlay */
.card__background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}


  .card:hover .card__background{
    transform: scale(1.05) translateZ(0);
  }

  .card-grid:hover > .card:not(:hover) .card__background{
    filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
  }

  .card__content{
    right: 0 !important;
    padding: var(--spacing-l);
    position: absolute !important;
    bottom: 0 !important;
    width: 100%;
  }

  .card__category{
    right: 0 !important;
    padding: 5px;
    position: absolute !important;
    margin: 15px;
    top: 0 !important;
    background-color: none !important;
    color: var(--text-lighter);
    font-size: 0.9rem;
    text-align: center;
    background-color: #0F4667;
  }

  .card__heading{
    color: var(--text-lighter);
    font-size: 16px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
    line-height: 1.4;
    text-align: start;
    bottom: 0 !important;
  }


  img {
    max-width: 100%;
    height: auto;
}
        section {
            /* padding: 20px 0; */
            /* min-height: 100vh; */
        }
span, a, a:hover {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.blog img{
    max-width: 100%;
}
.blog-head {
  margin-bottom: 70px;
}

.blog-head h6{
  color: var(--background-dark);
  position: relative;
  display: inline-block;
  text-transform: capitalize;
}

.blog-head h6:after, .blog-head h6:before{
  position: absolute;
  content: "";
  width: 50px;
  height: 3px;
  background: var(--background-dark);
  top: 50%;
}

.blog-head h6:after{
  right: 120%;
}

.blog-head h6:before{
  left: 120%;
}


.overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: var(--background-dark-70);
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: .5s ease;
}

.item {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.item:hover .overlay {
  bottom: 0;
  height: 100%;
  width: 100%;
}

.top-overlay {
    bottom: 100%;
    height: 0;
}
.item:hover .top-overlay {
  bottom: 0;
}
.bottom-overlay {
    top: 100%;
}

.item:hover .bottom-overlay {
  top: 0;
}

.right-overlay {
    left: 100%;
    height: 100%;
}

.item:hover .right-overlay {
  left : 0;
}

.left-overlay {
    right: 100%;
    height: 100%;
    left:auto;
}

.item:hover .left-overlay {
  right : 0;
}
.fade-overlay {
    height: 100%;
    opacity: 0;
}

.item:hover .fade-overlay {
  opacity: 1;
}
.title-overlay {
    height: auto;
    top: auto;
    opacity: 0;
}
.item:hover .title-overlay {
    opacity: 1;
    height: auto;
    padding: 50px 0;
}
.text {
    color: white;
    font-size: 1.2vw;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}

.load-more-btn{
    margin: 20px 0;
    text-align: center;
    text-decoration: none;
    padding: 5px 50px;
    display: inline-block;
    background-color: #0F4667;
    color: #fff;
    transition: 0.3s;
}

.load-more-btn:hover{
    background-color: #0f4567e4;
    color: #fff;
    transition: 0.3s;
}
