/*
 Theme Name:   Astra Child
 Theme URI:    https://example.com/astra-child/
 Description:  Дочірня тема для Astra
 Author:       LimeCredit
 Author URI:   https://limecredit.online
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

@import url("../astra/style.css");

/* header styles */
:root{
  --main-color: #706EAC;
  --text-color: #2F242C;
  --axent-color: #502274;
  --main-second-color: #706EAC;
  --axent-second-color: #3C3B60;
  --text-second-color: #A1A1A9;
  --backgroud-first-color: #FEB100;
  --background-header-color: rgba(0, 0, 0, 0.9);
}

a {
  text-decoration: none;
}

.h1_title{
  display: none;
}

h1, h2, p{
    margin: 0;
}




.header {
 /*  position: fixed; */
  width: 100%;
/*   top: 0;
  left: 0;
  z-index: 10000; */
  padding: 10px 0;
  background-color: var(--background-header-color);
  font-size: 14px;
  transition: 0.3s;
}

.headerInfo{
display: flex;
align-items: center;
padding: 10px;
width: 90%;
margin: auto;
}

.mainLogo{
  text-transform: uppercase;
  padding-right: 10px;
}

.secondPartLogo{
  font-size: 20px;
  color: var(--backgroud-first-color);
}

.firstPartLogo{
  font-size: 20px;
  color: #FFFFFF;
}


/* footer styles */
.legalInfo{
    margin-left: 10px;
    color:#EAEAEA;
}



.site-content{background:#f3f5f9;
              color:#1f2a44
              margin:0;
              padding:0;
              box-sizing:border-box;
              font-family:Arial,sans-serif;
}
              

.container{max-width:1100px;margin:0 auto;padding: 15px 15px}

/* HERO */
.hero{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom: 12px}
.hero-text{flex:1}
.hero h1{font-size:24px;margin:10px 0}
.hero p{color:#6b7280;margin-bottom:20px}
.badges{display:flex;gap:10px;font-size:13px;color:#4caf50}
.cta{background:#ff5a1f;color:#fff;padding:14px 22px;border-radius:10px;text-decoration:none;display:inline-block;margin:15px 0}
.features{
    display:flex;
    justify-content: space-around;
    font-size:14px;
    margin-top:10px
}

.hero-img{flex:1;background:#e9eef6;height:350px;border-radius:16px}

/* TABLE */
.table-section{background:#fff;border-radius:16px;padding: 24px;margin-bottom:12px}
.table-title{font-size:20px}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:14px;border-bottom:1px solid #eee;text-align:left;font-size:14px}
.table th{background:#0f1f3d;color:#fff}
.badge-green{background:#e6f7ec;color:#2e7d32;padding:4px 8px;border-radius:6px;font-size:12px}


/* TOP CARDS */
.cards{
    display:flex;
    gap:20px;
    justify-content: space-around;
    margin-bottom:24px;
}
.card{flex:1;background:#fff;border-radius:16px;padding:20px;border:1px solid #e5e7eb}
.card h3{margin:10px 0}
.card .meta{display:flex;justify-content:space-between;font-size:13px;margin:10px 0;color:#555}

/* CRITERIA */
.criteria{
    display:flex;
    justify-content: space-around;
    margin-bottom:30px
}
.criterion{
    max-width: 190px;
    flex:1;
    border-radius:12px;
    padding:0px 15px;
    font-size:14px}

/* FAQ */
.faq, .crit_wrap, .top_wrap{
    background:#fff;
    border-radius:16px;
    padding: 24px;
    margin-bottom: 12px;
}

.footer_h3{
    color: #fff;
}

.faq-item{
    padding:0px 12px;
    border-bottom:1px solid #eee
}

.faq-item:last-child{border:none}

/* CTA FOOTER */
.footer-cta{background:#0f1f3d;color:#fff;border-radius:16px;padding:25px;display:flex;justify-content:space-between;align-items:center}
.footer-cta button{background:#ff5a1f;border:none;color:#fff;padding:14px 20px;border-radius:10px}

/* RESPONSIVE */
@media(max-width:768px){
.hero{flex-direction:column}
.cards{flex-direction:column}
.criteria{flex-direction:column}
.footer-cta{flex-direction:column;gap:15px;text-align:center}
}

.cover{
    display: block;
    border-radius: 10px;
    padding: 5px;
}
.update{
background-color: #dcdfe6;
color: #181b25;

  display: flex;
  align-items: center;

}

.update::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url('img/update-icon.svg') no-repeat center/contain;
  margin-right: 8px;
}

.check_all::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url('img/check-alt.svg') no-repeat center/contain;
  margin-right: 8px;
}



.check_all{
background-color: #f3fcf7;
color: #0d7e2a;
}

/* базова кнопка */
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 20px;

  background: #eef2f7;
  border: none;

  font-size: 14px;
  color: #1f2a44;
  cursor: pointer;

  transition: background 0.2s ease;
}

/* hover */
.sort-btn:hover {
  background: #e2e8f0;
}

/* іконка */
.sort-btn__icon {
  display: inline-block;
  width: 16px;
  height: 16px;
}

/* варіант активного стану */
.sort-btn--active {
  background: #dbeafe;
}

.table_title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.crit_cover{
    display: flex;
    align-items: flex-start;
}

.criterion_img{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background-color: #d5e8fa;
    
}

.features_img{
    align-items: center;
    width: 12px;
    height: 12px;
    margin-right: 6px;
}

.features_cover{
    display: flex;
    align-items: center;
}

.criterion_img img{
    width: 20px;
    height: 20px;
}

.crit_h1{
    color: #061138;
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.crit_detail{
    font-size: 12px;
    color: #5a6076;
}

.rate{
    font-size: 16px;
    font-weight: 700;
}

.rating{

    color:#3f464b
}
.rating_wrap{
    display: flex;
    align-items: center;
}
.rate_star{
margin-right: 5px;
}

.table {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.table-head {
  display: table-header-group;
}

.table-body {
  display: table-row-group;

}

.tr {
  display: table-row;
  height: 45px;
  text-align: center;
}

.th, .td {
  display: table-cell;
  padding: 12px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  font-size: 14px;
}
    
.td div{
    display: block;
    max-height: 45px;
    width: 150px;
    text-align: center;
}



.td .img_container{
  width: 75%;
  height: 75%;
  object-fit: cover;
}

.offer-logo .img_container{
  width: 100%;
  object-fit: cover;
}

.th {
  background: #0f1f3d;
  color: #fff;
  font-weight: bold;
}

.rating_wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rate_star {
  width: 14px;
}

.btn {
  background: #ff5a1f;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.badge-green {
  background: #e6f7ec;
  color: #2e7d32;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}
.table-head .th:first-child {
  border-top-left-radius: 12px;
}

.table-head .th:last-child {
  border-top-right-radius: 12px;
}

.percent{
    font-size: 16px;
    font-weight: 700;
}

.top_h2, .wp-block-heading{
    margin-bottom: 12px;
    font-size: 24px;
}

.top_p{
    margin-bottom: 0px;
    font-size: 16px;
}


.offer-card {
  max-width: 320px;
  padding: 16px;
  border-radius: 16px;
  
}

/* badge */
.offer-badge {
  display: inline-block;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

/* header */
.offer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.offer-logo {
  width: 88px;
  height: 44px;
  padding:0px 5px;
  background: #fff;
  font-weight: bold;
  font-size: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-badge_1 {
  background: #d8f3dc;
  color: #2e7d32;
}

.offer-card_1 {
  border: 2px solid #9fd0ad;
  background: #eef6f0;
}

.meta-item_1 {
  background: #dfeee4;
}

.offer-badge_2 {
  background: #d7e7fc;
  color: #1e67bd;
}

.offer-card_2 {
  border: 2px solid #c5d9f6;
  background: #f4f8ff;
}

.meta-item_2 {
  background: #dfebfb;
}

.offer-badge_3 {
  background: #fee9d3;
  color: #3c3b40;
}

.offer-card_3 {
  border: 2px solid #ffe7d0;
  background: #fef8f1
}

.meta-item_3 {
  background: #fdecd9;
}



.offer-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.offer-rating {
  font-size: 13px;
  color: #666;
}

.stars {
  color: #ff9800;
  margin-right: 5px;
}

/* meta */
.offer-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.meta-item {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

.meta-value {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 12px;

}

.meta-label {
  font-size: 12px;
  color: #555;
}

/* button */
.offer-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff5a1f, #ff7a3d);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}


.faq {
  
}

.faq-title {
  margin-bottom: 15px;
}

.faq-item {
  background: #f3f5f9;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  cursor: pointer;
}

.arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.faq-item.active .arrow {
  transform: rotate(-135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  font-size: 14px;
  color: #555;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 14px;
}


@media(max-width:480px){
    .faq-item.active .faq-answer {
    max-height: 250px;
}

.cards {
    align-items: center;
}

.hero-img{
    width: 100%;
    height: auto;
}

.hero p {
    margin-bottom: 12px;
}

.cta{
    margin: 0 auto;
}
}


/* за замовчуванням мобільний блок схований */
.mobile-offers {
  display: none;
}

/* мобільна версія */
@media (max-width: 768px) {

  .table, .table-section {
    display: none;
  }

  .mobile-offers {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
  }

  .m-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    width: 320px;
  }

  .m-logo {
    max-width: 120px;
    margin-bottom: 10px;
  }

  .m-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
  }

  .m-row span:first-child {
    color: #6b7280;
  }

  .m-btn {
    width: 100%;
    margin-top: 10px;
  }
}

/* News */
/* HERO */
.news-hero{
  background:#fff;
  border-radius:16px;
  padding:25px;
  margin-bottom:12px;
}
.news-hero h1{font-size:28px;margin-bottom:10px}
.news-hero p{color:#6b7280}

/* FEATURED */
.featured{
  display:flex;
  gap:20px;
  background:#fff;
  border-radius:16px;
  padding:20px;
  margin-bottom:20px;
}
.featured img{
  width:40%;
  border-radius:12px;
  object-fit:cover;
}
.featured-content{flex:1}
.featured-content h2{margin-bottom:10px}
.featured-content p{color:#6b7280;margin-bottom:10px}


/* CATEGORIES */
.categories{
  display:flex;
  gap:10px;
  margin-bottom:20px;
  flex-wrap:wrap;
}
.cat{
  padding:8px 14px;
  background:#eef2f7;
  border-radius:20px;
  font-size:13px;
  cursor:pointer;
}

/* GRID */
.news-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin-bottom:20px;
}

.news-wrap {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}
.news-card{
  background: #fff;
  border-radius: 14px;
  padding:14px;
  border-bottom: 2px solid #f3f5f9;
}

.news-top{
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 12px;
}
.news-card img{
  width:100%;
  border-radius:10px;
  margin-bottom:10px;
}
.news-card h3{
  font-size:24px;
  margin-bottom:6px;
}
.news-card span{
  font-size:12px;
  color:#6b7280;
}
.news-card p{
  font-size:13px;
  color:#555;
  margin-top:6px;
}

/* OFFERS BLOCK */
.offers-cta{
  background:#0f1f3d;
  color:#fff;
  padding:20px;
  border-radius:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

/* POPULAR */
.popular{
  background:#fff;
  border-radius:16px;
  padding:20px;
  margin-bottom:20px;
}
.popular h3{margin-bottom:10px}
.popular ul{list-style:none}
.popular li{margin-bottom:8px;font-size:14px}

/* SEO TEXT */
.seo-text{
  background:#fff;
  border-radius:16px;
  padding:20px;
  font-size:14px;
  color:#555;
  line-height:1.5;
}

/* MOBILE */
@media(max-width:768px){
  .featured{flex-direction:column}
  .featured img{width:100%}
  .news-grid{grid-template-columns:1fr}
  .offers-cta{flex-direction:column;gap:10px;text-align:center}
}



.invisible{
    display: none; 
}


/* block meta */
.meta-section{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.meta-card{
  display:flex;
  gap:18px;

  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;

  padding:22px;
}

.meta-icon{
  min-width:54px;
  height:54px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#eef4ff;
  border-radius:14px;
}

.meta-icon img{
  width:24px;
  height:24px;
}

.meta-content{
  width:100%;
}

.meta-label{
  display:block;

  font-size:13px;
  font-weight:700;

  color:#6b7280;

  margin-bottom:8px;

  text-transform:uppercase;
  letter-spacing:.5px;
}

.meta-title{
  font-size:22px;
  line-height:1.4;
  color:#111827;
  margin: 0;
}

.meta-description{
  font-size:15px;
  line-height:1.7;
  color:#4b5563;
}

.meta-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.meta-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:8px 14px;

  background:#f3f5f9;
  border-radius:30px;

  font-size:14px;
  color:#1f2a44;
}

@media(max-width:768px){

  .meta-card{
    flex-direction:column;
  }

  .meta-title{
    font-size:18px;
  }

  .meta-description{
    font-size:14px;
  }

}