  @font-face {
    font-family: vazir-r;
    src: url(../fonts/Vazir-FD.woff) format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: vazir-b;
    src: url(../fonts/Vazir-Bold-FD.woff) format("woff");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: vazir-m;
    src: url(../fonts/Vazir-Medium-FD.woff) format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: niafam-icons;
    src: url(../fonts/niafam-icons.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* شروع بخش اول ویدئویی */
 
.videos-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 15px;
  height: auto;
}

.main-video {
  height: 100%;
    border: 2px solid #ddd;
    border-radius: 12px;
}

.main-video video {
  width: 100%;
  height: 85%;
  object-fit: cover; 
  display: block;
  border-radius: 12px 12px 0 0;
}
.mainvideotitle{
font-size: 1.1rem;
    padding: 30px;
}

.side-videos {
  display: grid;
  grid-template-rows: repeat(3, 1fr); 
  gap: 12px;
  height: 100%;
}

.side-video {
  width: 100%;
  height: 100%;
border: 2px solid #ddd;
    border-radius: 14px;
}

.side-video video {
  width: 100%;
  height: 70%;
  object-fit: cover; 
  border-radius: 12px 12px 0px 0;
}
.leftvideotitle{
    font-size: 1rem;
    padding: 0 15px;
    line-height: 1.5;
}


@media(max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .side-videos {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr 1fr;
	display: flex;
	flex-direction: column;
  }

	.mainvideotitle {
	    font-size: 1rem;
        padding: 0 15px;
        line-height: 1.5;
		margin-top: 8px;
	}

	.main-video video {
		height: 70%;
	}
}


.section-header__border {
    border: solid 3px #9acccd;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    height: 1px;
}
.section-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 25px;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    margin-top: 40px;
}
.section-header__title {
    color: #292929;
    line-height: 1.2;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-left: 35px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* پایان بخش اول ویدئویی */
  
  :root {
    --primary: #0c234f;
    --primary-2: #16386d;
    --search: #cbdce4;
    --notes: #86b1c4;
    --pubs: #cbdce4;
    --footer: #0e3078;
    --text: #0c234f;
  }

  * {
    box-sizing: border-box
  }

  html,
  body {
    margin: 0
  }

  body {
    font-family: "Vazir", "Segoe UI", Tahoma, Arial, sans-serif;
    background: #fff;
    color: var(--text);
    line-height: 1.7
  }

  img {
    display: block;
    max-width: 100%;

  }

  a {
    color: inherit;
    text-decoration: none
  }
#heroCarousel img{
max-height: 550px;
    width: 100%;
    object-fit: cover;
}

#heroCarousel{
  margin-top: 20px;
}

  .mycontainer {
    max-width: 90%;
    margin: 0 auto
  }

  /* Header */
  /* header {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff
  } */


  .custom-header {
    position: relative;
    background-image: url(/uploads/7/dolattv/assets/img/headerBG.png);
    color: white;
    text-align: center;
    overflow: hidden;
  }

  /*.custom-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 500px;
  background: url('../img/rightpatterbg.png') no-repeat right center;
    background-size: contain;
  }*/


  /*.custom-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 500px;
    background: url('../img/leftpatterbg.png') no-repeat left center;
    background-size: contain;
  }*/


  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }

  .flag,
  .logo {
    max-width: 100%;
    overflow: hidden;
    position: relative;
  }

  .date {
    font-size: .95rem;
    opacity: .95
  }

  /* Navbar */
  nav {
    background: #cbdce4;
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0
  }

  .menu {
    display: flex;
    list-style: none;
    gap: 22px;
    margin: 0;
    padding: 0
  }

  .menu a {
   
    font-weight: 700;
    transition: .25s
  }

  .menu a:hover {
    color:#0b1e46;
  }

  .search-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color:#0b1e46;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(203, 220, 228, .35)
  }

  /* .search-btn:hover {
    background: rgba(255, 255, 255, .06)
  } */

  .ico {
    inline-size: 18px;
    block-size: 18px;
    display: inline-block;
    vertical-align: middle
  }

  /* Popup Search */
  .search-popup {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    z-index: 10000000;
    opacity: 0;
    transition: opacity .35s
  }

  .search-popup.active {
    display: grid;
    opacity: 1
  }

  .search-box {
    background: linear-gradient(145deg, #fff, #f3f6fb);
    width: min(92vw, 480px);
    border-radius: 20px;
    padding: 26px 22px 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    position: relative;
    animation: pop .35s ease
  }

  @keyframes pop {
    from {
      transform: scale(.92);
      opacity: 0
    }

    to {
      transform: scale(1);
      opacity: 1
    }
  }

  .search-box h3 {
    margin: 0 0 14px;
    text-align: center;
    color: var(--primary)
  }

  .search-row {
    display: flex;
    gap: 10px
  }

  .search-row input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #d4dbe3;
    border-radius: 10px;
    font-size: 1rem;
    outline: none
  }

  .search-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 35, 79, .12)
  }

  .btn {
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff
  }

  .btn-primary:hover {
    filter: brightness(1.05)
  }

  .btn-close {
    position: absolute;
    inset-inline-start: 10px;
    inset-block-start: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px
  }

  .btn-close:hover {
    background: #e74c3c
  }

  /* Slider (Hero) */
  .slider {
    position: relative;
    overflow: hidden;
    margin: 24px 0 10px;
    border-radius: 16px
  }

  .slides {
    display: flex;
    transition: transform .45s ease
  }

  .slide {
    min-width: 100%;
    position: relative
  }

  .slide .cap {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    padding: 16px 16px 18px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .15))
  }

  .slide h3 {
    margin: 0 0 6px
  }

  .hero-btn {
    position: absolute;
    inset-block: 50%;
    transform: translateY(-50%);
    background: rgba(12, 35, 79, .9);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer
  }

  .hero-btn:hover {
    filter: brightness(1.08)
  }

  .prev {
    inset-inline-end: 64px
  }

  .next {
    inset-inline-end: 16px
  }

  .dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 0
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cfd6de;
    cursor: pointer
  }

  .dot.active {
    background: var(--primary)
  }

  /* Section header */
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 42px 0 18px
  }

.card video{
  border-radius: 5px;
}

.notespart h2{
      margin: 0;
    background: #0b1b3d;
    /* -webkit-background-clip: text; */
    color: white;
    padding: 5px 60px;
    border-radius: 30px 0px 0px 30px;
    font-size: 1.5rem;
    display: flex;
}
  .link {
    color: var(--primary);
    font-weight: 700
  }

  /* News (5 columns responsive) */
  .card {
width:100%;
aspect-ratio:16/9;
overflow:hidden;
  }
.videboxmain h4{
margin-top: 10px;
font-size: 1rem;
  line-height: 1.5;
}
  .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px;
    margin-bottom: 20px;
  }
.videboxmain{
    background: #eee;
    padding: 13px;
    border-radius: 12px;
}
  .cardnewstitle i{
    color:#87b1c4;
    font-size: 1rem;
    margin-left: 5px;
  }
  .datacard i{
    font-size:0.8rem;
    margin-right: 5px;
  }


.card img{
  height: 170px;
    object-fit: cover;
    border-radius: 8px;
}
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12)
  }

  .card h4 {
    margin: 10px 0 6px;
    font-size: 1.05rem;
    color: #1c609d;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
  }
.cardnewsdetails{
   display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
}
  .meta {
    font-size: .85rem;
    color: #667;
    text-align: left;
  }

  /* Notes (slider 5, no bullets) */
  .notes {
    background: var(--notes);

  }

  .notes .section-head h2 {
    color: #fff;
    -webkit-text-fill-color: #fff
  }

  .strip {
    display: flex;
    gap: 16px;
    overflow: hidden
  }

  .note {
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08)
  }

  .strip-wrap {
    position: relative
  }

  .strip-btn {
    position: absolute;
    inset-block: 50%;
    transform: translateY(-50%);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff
  }

  .strip-prev {
    inset-inline-start: -10px
  }

  .strip-next {
    inset-inline-end: -10px
  }

  /* Media (3 columns) */
  .media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
  }

  .media-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px
  }

  .badge {
    position: absolute;
    inset: 9px 0 auto auto;
    /* background: rgba(255, 0, 0, .6); */
    color: rgba(11,27,61,1);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 45px;
  }

  .media-item:hover img {
    transform: scale(1.03)
  }

  .media-item img {
    transition: transform .25s
  }

  /* Publications */
  .shoranews{
    background: var(--pubs);
  }

  .pub-row {
    display: flex;
    gap: 16px;
    overflow: hidden
  }

  .pub {
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08)
  }

  .pub h5 {
    margin: 8px 0 4px
  }

  .pub span {
    font-size: .9rem;
    color: #555
  }

  .pub-wrap {
    position: relative
  }

  .pub-btn {
    position: absolute;
    inset-block: 50%;
    transform: translateY(-50%);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff
  }

  .pub-prev {
    inset-inline-start: -10px
  }

  .pub-next {
    inset-inline-end: -10px
  }

  /* Footer */
  .footerpart01 {
background-color: #0D3078;
    padding: 5rem 0;
    position: relative;
    background-image: url(../img/f-bg.png);
    background-repeat: no-repeat;
    background-position: center bottom;
  }
.copy{
  background: #0a2359;
  color: white;;
  padding: 20px 0;
}
  .foot {
display: flex;
    gap: 69px;
    justify-content: space-between;
    align-items: center;
  }

  .foot h4 {
    margin: 0 0 30px
  }

  .thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
  }

  .thumbs img {
    width: 64px;
    height: 64px;
    border-radius: 10px
  }

  .links {
    list-style: none;
    padding: 0;
    margin: 0
  }
  .link_image{
    display: flex;
    gap: 10px;
  }
.footerlogocenter img{
  margin: 0 auto;
}
  .links li {
    margin: 6px 0
  }
.multimedialinkfooter{
  color: white;
}
.usefulllink{
  color: white;
}
  .copy {
    border-top: 1px solid rgba(255, 255, 255, .25);
    text-align: center;

    font-size: .95rem
  }

  /* Responsive */
  @media (max-width:1200px) {
    .news-grid {
      grid-template-columns: repeat(4, 1fr)
    }
  }

  @media (max-width:992px) {
    .news-grid {
      grid-template-columns: repeat(3, 1fr)
    }

    .media-grid {
      grid-template-columns: repeat(2, 1fr)
    }
  }

  @media (max-width:768px) {
    .foot{
      gap:45px;
    }
    .container{
      width: 99%;
    }
    .footerpart01{
      padding: 2rem 1rem;
    }
    .top-bar {
      flex-direction: row;
      gap: 10px
    }

    .menu {
      flex-wrap: wrap;
      justify-content: center
    }

    .news-grid {
      grid-template-columns: repeat(2, 1fr)
    }

    .media-grid {
      grid-template-columns: 1fr
    }

    .foot {
      grid-template-columns: repeat(2, 1fr)
    }

    .prev,
    .next {
      display: none
    }

    /* دکمه‌های اسلایدر اصلی در موبایل حذف می‌شوند (سوییپ فعال است) */
  }

  @media (max-width:520px) {
    .news-grid {
      grid-template-columns: 1fr
    }

    .foot {
      grid-template-columns: 1fr
    }
  }