/*
 Theme Name:   Genesis Block Child
 Description:  Child theme for Genesis Block Theme
 Author:       ~unknown
 Author URI:   
 Template:     genesis-block-theme
 Version:      1.0.0
 Text Domain:  genesis-block-child
*/

/* Import parent theme styles */
@import url("../genesis-block/style-editor.css");

/* custom CSS goes below */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.top-banner {
    position: relative;
      margin-top: -131px;
}

.top-banner::before {
    content: '';
    position: absolute;
    inset: 0; /* replaces top/left/right/bottom */
    z-index: -1;
    border-radius: 0 0 60px 60px;
    background-image: url("/wp-content/uploads/2026/04/Resouce-banner.png");
    background-size: cover;
    min-height: 440px;
    background-repeat: no-repeat;
    background-position: center;
}

.news-banner::before {
    content: '';
    position: absolute;
    inset: 0; /* replaces top/left/right/bottom */
    z-index: -1;
    border-radius: 0 0 60px 60px;
    background-image: url("/wp-content/uploads/2026/04/newsbg-image.png");
    background-size: cover;
    min-height: 440px;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: -20px;
}


.top-banner .container{
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  gap: 24px;
}
.top-banner h1{
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  text-align: center;
  font-size: 40px;
  color: #1450A2;
  margin: 0px;
  display: -webkit-box;
  -webkit-line-clamp: 1;   /* number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-banner p{
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  margin: 0px;
  padding-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;   /* number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1450A2;
  text-align: center;
}
.top-titles{
  margin-top: 190px;
  margin-bottom: 105px;
}

.resource-banner{
  padding-top: 80px;
}

.container{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.resource-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.resource-title-c{
  text-align: center !important;
}


.resource-card {
  background: #fff;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

.resource-card .left {
  padding: 24px;
  width: 278px;
  padding-right: 10px;
}

.icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 10px;
}
.icon img{
  flex: 0 0 50px;
}
.resource-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
}

.resource-card .small {
  font-size: 12px;
  color: #1450A2;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
}

.resource-card .btn {
  margin-top: 20px;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid #cbd5e1;
  text-decoration: underline;
  width: calc(264px - 40px);
  text-align: center;
  font-size: 14px;
  color: #1e3a8a;
  font-family: "Open Sans", sans-serif;
  font-weight: bold;
  transition: 0.3s all ease-in-out;
}
.resource-card .btn:hover{
   color: #fff;
  background: #1e3a8a;
  transition: 0.3s all ease-in-out;

}
.resource-card .right img{
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
}

.resource-card .right {
  background: #0003;
  padding: 20px;
  color: #fff;
  writing-mode: sideways-lr;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 12px;

}

/* Colors */
.blue .right { background: #1450A2; }
.orange .right { background: #f0642f; }
.yellow .right { background: #e3b400; }

.side-info {
    display: none;
    overflow: hidden;
    padding: 0;
    transition: 0.4s ease, padding 0.3s ease;
}


.card-wrapper {
    display: flex;
    position: relative;
}
.resource-headr{
  margin-top: 250px !important;
}
/* When Open */
.card-wrapper.open .left { /* padding: 28px; */
    width: 264px;
    margin: 60px 20px;
    padding-right: 0px
  }
.card-wrapper.open .side-info {
    width: 100%;
    padding: 0px 40px 0px 40px;
    display: block;
    border-left: 1px solid #D0DCEC;
    margin: 60px 20px;
}
.card-wrapper.open{
    width: 100%;
}
.side-info h4{
   font-family: "Open Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.blue .side-info h4{
  color: #1450A2;
}
.orange .side-info h4{
  color: #f0642f;
}
.yellow .side-info h4{
  color: #e3b400;
}


.side-info p{
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000
}




.arrow-follow-txt{
  cursor: pointer;
  padding: 80px 0px;
  margin: 0 auto;
}

.arrow-follow-txt a{
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrow-follow-txt p{
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #1450A2;
  font-family: "Open Sans", sans-serif;
}


/* News code start here */
.resource-headr h1{
  text-align: center !important;
}

.arrow-follow-txt img{
  width: 28px;
  height: 28px;
  margin-left: 12px;
}

.news-list .news-row:nth-child(1) {
   padding-top: 0px;
   border-top: none;
}






.news-both{
  display: flex;
  gap: 90px;
  margin-top: 80px;
}
.news-list{
  width: 54%;
}
.full-view-nws{
  display: flex;
  flex-direction: column;
  width: 46%;
}
.nws-img-container{
  background-color: #D0DCEC;
  width: 500px;
  height: 500px;
}
.nws-img-container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-full-card{
  margin-bottom: 32px;
}
.news-full-card h2{
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-top: 40px;
  color: #1450A2;
}
.news-title{
  width: 60%;
}
.news-title a{
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1450A2;
  text-decoration: underline;
}
.news-full-card p{
   font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-top: 24px;
  margin-bottom: 0px;
  color: #000;
}
.red-mr-btn{
  display: flex;
  margin-top: 16px;
  align-items: center;
  justify-content: start;
  text-decoration: none;
}
.red-mr-btn span{
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1450A2;
}
.red-mr-btn img{
  width: 30px;
  height: 30px;
  margin-right: 10px;
}


.news-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid #d5e0ed;
    border-bottom: 1px solid #d5e0ed;
}

.news-title a {
    font-size: 20px;
    font-weight: 700;
    color: #0a4ea5;
    text-decoration: none;
    line-height: 1.4;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-image {
    width: 200px;
    height: 150px;
    background: #d4dfed;
}
.news-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top-titles {

    margin-top: 240px;
    margin-bottom: 0;
}
.news-section-all {
   
    padding-top: 250px;
}
.resource-banner{
  padding-top: 250px;
}
.left{
  display: flex;
  flex-direction: column;
}


/* Video popup css amir */
/* Video Modal CSS */
.video-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
}
.video-modal-content {
    position: relative;
    width: 85%;
    max-width: 800px;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.close-video {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}



























/* news detail page */
.inner-contioner{
  max-width: 1130px;
  padding: 0 20px;
  width: 100%;
  margin: 0 auto;
}
.news-detail-all {
  padding-top: 200px;
}
.date-f-news span{
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #1450A2;
}
.news-detail h2{
  font-family: "Open Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1450A2;
  margin-top: 16px;
}
.news-detail p{
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin-top: 24px;
}
.news-detail h3{
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-top: 32px;
}
.news-fetaure-container
{
  width: 100%;
  height: 500px;
  background: #1450A2;
  margin: 80px 0px;
}
.news-fetaure-container img{
  width: 100%;
  height: 100%;
  object-fit: cover; 
}
.more-news{
  display: flex;
  gap: 20px;
  margin-top: 40px;
}
.more-news{
  border-top: 1px solid #1450A2;
  border-bottom: 1px solid #1450A2;
  padding: 80px 0px;
  margin-top: 40px;
}
.more-news-gird{
  display: flex;
  gap: 20px;

}
.news-img-card{
  width: 200px;
  height: 150px;
  background: #d4dfed;
}
.news-img-card img{
  width: 100%;
  height: 100%;
  object-fit: cover; 
}
.news-card h2{
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1450A2;
  margin-top: 18px;
  margin-top: 20px;
}
.news-card{
  width: 25%;
}
.news-detail{
  margin-bottom: 80px;
}
.left-topper{
  display: flex;
  align-items: center;
  gap: 16px;
}






















@media (max-width: 1024px) {
  .news-both {
    flex-direction: column;
    gap: 40px;
}
.full-view-nws {
    margin-left: 0PX;
    width: 100%;
}
.news-list {
    width: 100%;
}
.nws-img-container {
    background-color: #1450A2;
    width: 100%;
    height: 500px;
}
.news-title a {
    font-size: 16px;
}
  .inner-contioner{
     padding: 0px;
  }
  .more-news-gird {
    flex-wrap: wrap;
    display: flex;
    gap: 20px;
}

  .news-fetaure-container {
    width: 100%;
    height: 340px;
    background: #1450A2;
    margin: 40px 0px;
}
}


@media (max-width: 768px) {
.card-wrapper {
    flex-direction: column;
    width: 100%;
}
.resource-card .right {
    writing-mode: unset;
}
.resource-card .right img {
    width: 24px;
    height: 24px;
    margin-bottom: 0px;
}
.left{
  display: flex;
  flex-direction: row;
}
.news-image {
    width: 100px;
    height: 75px;
    background: #d4dfed;
}
.arrow-follow-txt {
    cursor: pointer;
    padding: 40px 0px;
    margin: 0 auto;
}
.arrow-follow-txt p {
    font-size: 16px;
}
.nws-img-container {
    background-color: #1450A2;
    width: 100%;
    height: 340px;
}
  .news-img-card {
    width: 100%;
    height: 150px;
    background: #d4dfed;
}
.news-card{
  width: 100%;
}
.resource-card .left {
    padding: 24px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.resource-card .btn {
    margin-top: 0px;
}
.resource-card .btn {

    width: calc(192px - 40px);
}
.set-posi{
      position: absolute;
    right: 20px;
    top: 25px;
}
.arrow-follow-txt a {
    width: fit-content;
    position: relative;
    margin: 0 auto;
}
.card-wrapper.open .side-info {
    width: 90%;
    padding: 20px 0px 20px 0px;
    border-top: 0px;
    border-left: none;
    margin: 0px 20px 20px 20px;
}
.card-wrapper.open .left {
    /* padding: 28px; */
    width: 100%;
    margin: 0px 0px;
    padding-right: 0px;
}
.card-wrapper.open .left {
    padding-right: 12px;
    padding-bottom: 0px !important; 
}
.top-banner::before {
    border-radius: 0 0 24px 24px;
}
.news-banner::before {
    border-radius: 0 0 24px 24px;
}
.resource-card .right {
    padding: 10px;
}
.arrow-follow-txt img {
    width: 20px;
    height: 28px;
    margin-left: 0px;
}
.set-posi {
    position: absolute;
    right: 28px;
    top: 25px;
}
.resource-banner {
    padding-top: 196px;
}
.side-info p {
    font-size: 12px;
}
.side-info h4 {
    font-family: "Open Sans", sans-serif;
    font-size: 16px; 
}
.resource-card .btn {
    font-size: 10px;
}
.resource-card .left {
    padding: 12px;
}
.resource-card .btn {
    width: calc(140px - 40px);
    padding: 8px;
}
.resource-card .right img {
    transform: rotate(90deg);
    width: 12px;
    height: 24px;
    margin-left: 12px;
}
.resource-headr {
    margin-top: 140px !important;
}
.top-banner::before {
    min-height: 296px;
}
.resource-banner {
    padding-top: 150px;
}
.news-banner::before {
    min-height: 296px;
}
.news-section-all {
    padding-top: 160px;
}
.news-detail-all {
    padding-top: 120px;
}
.top-titles {
    margin-top: 150px;
}
}



