/* ===========================================================
   NETPEAR RESOURCES PAGE ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â FINAL SEO WORKS VISUAL MATCH
   Compatible with Bootstrap 5.3
   =========================================================== */

.np-resources-section {
  padding: 80px 0;
  background: #fafafa;
  font-family: "Poppins", sans-serif;
}

/* ---------- FILTER BAR ---------- */
.np-resources-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.np-resources-category,
.np-resources-search {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px 25px;
  flex: 1;
  min-width: 220px;
}

.np-resources-category label,
.np-resources-search label {
  display: block;
  font-weight: 700;
  color: #444;
  margin-bottom: 10px;
  font-size: 16px;
}

.np-resources-category select,
.np-resources-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  font-size: 15px;
  color: #333;
}

.np-resources-search input::placeholder {
  color: #aaa;
}

/* ---------- TAGS ---------- */
.np-resources-tags {
  margin-bottom: 30px;
}

.np-resources-tags p {
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.np-resources-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.np-resources-tag {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.np-resources-tag:hover,
.np-resources-tag.active {
  background: #85BD41;
  color: #fff;
  border-color: #85BD41;
}

/* ---------- GRID ---------- */
.np-resources-grid {
  display: block;
}
.np-resources-grid .row {
  row-gap: 35px;
}


/* ---------- CARD ---------- */
.download-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #222;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  position: relative;
  transition: all 0.35s ease;
  cursor: pointer;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ---------- IMAGE SECTION ---------- */
.download-card .image-section {
  background: #e9e9e9;
  height: 307px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.download-card .image-inner {
   position: relative;
  z-index: 1;

  align-items: center;
    display: flex;
    height: 80%;
    justify-content: center;
    max-width: 80%;
    width: auto;
}

.download-card .image-inner img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  object-position: left center;
  transition: all .4s;
  width: auto;
  max-width: 100%;
}

.download-card:hover .image-inner img {
  transform: scale(1.15);
}

/* ---------- TEXT SECTION ---------- */
.download-card .text-section {
  position: relative;
  padding: 30px 25px 25px;
  background: #fff;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.download-card .cog {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  opacity: 0.06;
  pointer-events: none;
}

/* ---------- CATEGORY BADGE ---------- */
.download-card .category {
border-radius: 5px;
    left: 25px;
    overflow: hidden;
    padding: 10px 12px 6px;
    position: absolute;
    text-align: center;
    top: -17px;
    transition: all .4s;
    z-index: 3;
}

.download-card .category .background {
height: 100%;
    left: 0;
    opacity: .75;
    position: absolute;
    top: 0;
    transition: all .4s;
    width: 100%;
    z-index: 0;
}

.download-card .category p {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    position: relative;
    transition: all .4s;
    white-space: nowrap;
    z-index: 1;
}

/* ---------- TITLE & EXCERPT ---------- */
.download-card .top-section {
  position: relative;
  z-index: 1;
}

.download-card .top-section .title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.4;
}

.download-card .excerpt p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ---------- ACCESS BUTTON STRIP ---------- */
.download-card .bottom-section {
  margin-top: auto;
  padding-top: 25px;
}

.download-card .read-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(133,189,65,0.08);
  border-radius: 6px;
  padding: 12px 16px;
  transition: background 0.3s ease;
}

.download-card .read-more p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #85BD41;
}

.download-card .read-more svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.download-card:hover .read-more svg {
  transform: translateY(-2px);
}

.download-card:hover .read-more {
  background: rgba(133,189,65,0.15);
}

/* ---------- EQUAL HEIGHT IN BOOTSTRAP ROWS ---------- */
#np-resources-grid .col-12 {
  display: flex;
}
#np-resources-grid .download-card {
  width: 100%;
}

/* Featured image inside single resource header */
.featured-header-image {
  width: 35%;
  max-width: 170px;
  height: auto;
  object-fit: contain;
  transform-origin: right center;
   transition: all 0.3s ease-in-out;
 position: absolute;
    bottom: 20px;
    color: #fff;
    width: 100% !important;
     right: 0;
    margin-left: auto;
    margin-right: auto;
}

.featured-header-image:hover {
 }


/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .np-resources-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .np-resources-filter-header {
    flex-direction: column;
    align-items: stretch;
  }

  .np-resources-category,
  .np-resources-search {
    width: 100%;
  }

  .download-card .text-section {
    padding: 22px 18px 18px;
  }

  .download-card .top-section .title {
    font-size: 17px;
  }

  .download-card .excerpt p {
    font-size: 14px;
  }

  .download-card .image-section {
    height: 333px;
  }
}
/* Responsive adjustments */
@media (max-width: 991px) {
  .featured-header-image {
    width: 50%;
    max-width: 200px;
    transform: translateY(-10px) scale(1);
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .featured-header-image {
    width: 60%;
    max-width: 180px;
    transform: translateY(0) scale(1);
    margin: 20px auto 0;
    display: block;
  }
}

/* ===========================================================
   SINGLE RESOURCE HEADER ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â Above .over Layer
   =========================================================== */

.headerpostim {
  position: relative;
  overflow: visible;
  z-index:10 !important;
}

/* Keep your background image structure */
.postheaderxx {
  position: relative;
  width: 100%;
  height: 440px;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Existing overlay (kept below) */
.headerpostim .over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 440px;
  background: rgb(0 0 0 / 52%);
  z-index: 2;
  max-height: 441px;
}

/* Cover sits ABOVE the overlay */
.resource-download-cover {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

/* Inner content layout */
.resource-download-cover .cover-inner-content {
  position: relative;
  z-index: 4;
}

.resource-download-cover .category {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
  background-color: rgba(133,189,65,0.85);
}

.resource-download-cover .category p {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.resource-download-cover h1.entry-title {
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  font-size: 30px;
  line-height: 1.25;
}

.resource-download-cover .controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 25px;
}

.resource-download-cover .control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 6px;
  background: rgb(55 211 139 / 63%);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.25s ease;
}

.resource-download-cover .control-button:hover {
  background: rgba(255,255,255,0.25);
}

.resource-download-cover .download-button {
  background: #37d38b;
  color: #fff;
  border: none;
}

.resource-download-cover .download-button:hover {
  background: #4dabba;
}

/* Right-side featured image overlay */
.featured-header-image.img-fluid {
  max-width: 146px;
  height: auto;
  position: absolute;
  bottom: 0;
  right: 60px;
  z-index: 4;
  transform: translateY(10px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .postheaderxx,
  .headerpostim .over,
  .resource-download-cover {
    height: 360px;
  }

  .resource-download-cover {
    text-align: center;
    align-items: flex-end;
    padding-bottom: 40px;
  }

  .featured-header-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .resource-download-cover h1.entry-title {
    font-size: 28px;
  }
}

.search-and-filter.container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding: 0;
}

/* Shared box styling */
.filter-box {
  flex: 1 1 30%;
  min-width: 260px;
  background: #f9f9f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  transition: box-shadow 0.2s;
  background: #dfdfdf;
  height: 66px;
}

.filter-box:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Category dropdown */
.category-filter {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.category-filter p {
  margin: 8px 0 8px 0;
  font-weight: 500;
  color: #555;
}

.category-filter .arrow-holder {
  background: #37d38b;
  padding: 6px;
  border-radius: 5px;
}

.category-filter .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  list-style: none;
  margin-top: 5px;
  z-index: 10;
  padding: 16px;
}

.category-filter.open .dropdown {
  display: block;
}

.dropdown-item {
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: #f2f2f2;
}

/* Filter by tags */
.filter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}

.filter-button .text p {
  font-weight: 600;
  margin: 0;
  color: #444;
}

.filter-button .icon-holder {
  background: #37d38b;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search box */
.search-label {
  display: flex;
  align-items: center;
  width: 100%;
}

.blog-search {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 12px;
  border-radius: 6px 0 0 6px;
  color: #555;
  outline: none;
}

.blog-search-button {
  background: #37d38b;
  border: none;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tags {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0;
}
.tags.open {
  max-height: 600px; /* or enough for your tags */
  padding: 15px 0 10px;
}
.tag-selector-button.active {
  background: #85BD41;
  color: #fff;
  border-color: #85BD41;
}


/* hide the ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œSelect the TagsÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¦ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â line by default */
.tags p {
  display: none;
  margin: 0;
  padding: 15px 0 10px;
  font-weight: 600;
  color: #444;
}

/* show text when expanded */
.tags.open p {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-selector-button {
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.tag-selector-button:hover {
  background: #e0e0e0;
}


.resource-main-content p{
    font-size: 18px !important;

  text-align:left!important;
  
}

.highlight-text{
color: #0ab063 !important;
   text-align:left!important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 140%;
    margin: 0 0 7px;

  
}
.quform.quform-3 {background:#e6e6e6;padding: 19px;margin:0;border-radius:10px;}


.sidebar-section.resources h4{
  text-align:left!important;

  
}
.sidebar-section.resources p{
  text-align: left !important;
  font-size:16px !important;
}

#fill-out-form{padding-bottom:20px;}


.sidebar-section.resources{

background: #f8f8f8;
border-radius: 5px;
padding: 40px;  
}

.resource-holder{align-items: center;background-color: #f1eeee;border-radius: 5px;display: flex;flex-direction: row;gap: 20px;justify-content: space-between;padding: 16px 20px;text-decoration: none;transition: all .3s;}
.resource-holder:hover{
  background-color: #e9e7e7;
}
  
.page-template-page-resources-php .category {
border-radius: 5px;
color: #fff;
padding: 3px 14px 2px;
width: -moz-fit-content;
width: fit-content;
}

.category p{
    font-size: 14px;
    font-weight: 600;
    line-height: 140%;
    margin: 0;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.sidebar-section.resources .resource-title {
    color: rgba(62, 64, 66, .5);
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 100%;
    margin: 14px 0 0;
    text-decoration: none !important;
    line-height: 20px !important;
}
.sidebar-section.resources .resource-holder .resource,
.sidebar-section.resources .resource-holder .resource * {
  text-decoration: none !important;
}


.sidebar-section.resources .np-arrow{

/* flex: 0 0 38px; */

/* height: 38px; */

/* width: 38px; */

/* overflow: hidden; */

/* vertical-align: middle; */
}
.sidebar-section.resources .resource-holder .resource .np-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffffff;           /* white background */
  color: #3e4042;                /* dark gray arrow */
  border-radius: 50%;            /* makes it circular */
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* subtle depth */
  transition: all 0.25s ease;
  margin-left: 35px;
}

.author-cta.mt-5{
align-items: center;
    background-color: #d8f9ea;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    padding: 24px;
  
}

.alibut{background-color: #27a5da;transition: all .3s;border-radius: 5px;color: #fff;display: block;font-size: 16px;font-weight: 600;padding: 10px 20px;text-decoration: none;transition: all .3s;width: -webkit-fit-content;width: -moz-fit-content;width: fit-content;text-transform: capitalize;text-align: center;}
.author-cta.mt-5 .description{

  text-align:left !important;
  font-size:16px!important;
}

.page-id-1553 .faqss{padding-bottom:80px !important}

.dropdown-item:hover{

    background-color: #e9e9e9 !important;

  
}
.dropdown-item{

padding:2px !important;
  
}


.no-results-message {
  text-align: center;
  padding: 40px 0;
}
.no-results-message p {
  font-size: 18px;
  margin-bottom: 10px;
}
.no-results-message .back-button {
  background: #333;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
}
.no-results-message .back-button:hover {
  background: #555;
}

/* Base section styling */
.resource-download-cover {
  padding: 60px 0;
}

.resource-download-cover .controls-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.resource-download-cover .control-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
  background-color: #f8f9fa;
  color: #333;
}

.resource-download-cover .control-button:hover {
  background-color: #4cc7e0;
  color: #fff;
}

.resource-download-cover .download-button {
  background-color: #4cc7e0;
  color: #fff;
}

/* ---------- MOBILE OPTIMIZATION ---------- */
@media (max-width: 767px) {
  .resource-download-cover {
    padding: 30px 15px;
    text-align: center;
  }

  .resource-download-cover .row {
    flex-direction: column-reverse;
  }

  .resource-download-cover .col-md-8,
  .resource-download-cover .col-md-4 {
    width: 100%;
    max-width: 100%;
    text-align: center !important;
  }

  .resource-download-cover .featured-header-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .resource-download-cover .category {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 20px;
  }

  .resource-download-cover .entry-title {
    font-size: 22px;
    line-height: 1.3;
    margin: 10px 0 20px;
  }

  /* Keep buttons in a row, slightly smaller and centered */
  .resource-download-cover .controls-row {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }

  .resource-download-cover .control-button {
    flex: 1;
    min-width: auto;
    font-size: 13px;
    padding: 8px 10px;
    white-space: nowrap;
  }
}

/* Base section styling */
.resource-download-cover {
  padding: 60px 0;
}

.resource-download-cover .controls-row {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.resource-download-cover .control-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
  background-color: #f8f9fa;
  color: #333;
}

.resource-download-cover .control-button:hover {
  background-color: #4cc7e0;
  color: #fff;
}

.resource-download-cover .download-button {
  background-color: #4cc7e0;
  color: #fff;
}

/* ---------- MOBILE OPTIMIZATION ---------- */
@media (max-width: 767px) {
  .resource-download-cover {
    padding: 0 0 101px 0;
    text-align: center;
  }

  .resource-download-cover .row {
    flex-direction: column-reverse;
  }

  .resource-download-cover .col-md-8,
  .resource-download-cover .col-md-4 {
    width: 100%;
    max-width: 100%;
    text-align: center !important;
  }

  .resource-download-cover .featured-header-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .resource-download-cover .category {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 20px;
  }

  .resource-download-cover .entry-title {
    font-size: 22px;
    line-height: 1.3;
    margin: 10px 0 20px;
  }

  /* Keep buttons in a row, slightly smaller and centered */
  .resource-download-cover .controls-row {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }

  .resource-download-cover .control-button {
    flex: 1;
    min-width: auto;
    font-size: 13px;
    padding: 8px 10px;
    white-space: nowrap;
  }
}

/* ---------- TABLET & MID DESKTOP (800px–1400px) ---------- */
@media (min-width: 800px) and (max-width: 1400px) {
  .resource-download-cover {
    padding: 17px  0   83px 0;
  }

  .resource-download-cover .entry-title {
    font-size: 26px;
    line-height: 1.4;
  }

  .resource-download-cover .category p {
    font-size: 16px;
  }

  .resource-download-cover .featured-header-image {
    max-height: 380px;
    width: 100%;
    height: auto;
  }

  .resource-download-cover .controls-row {
    gap: 14px;
    margin-top: 25px;
  }

  .resource-download-cover .control-button {
    font-size: 15px;
    padding: 10px 22px;
  }
}


@media (max-width: 1199px) {
  .resource-download-cover .col-md-8 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .resource-download-cover .col-md-4 {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin-top: 25px;
  }

  .resource-download-cover .featured-header-image {
    width: 100%;
    height: auto;
    max-height: 380px;
  }
}
@media (max-width: 1199px) {
  .resource-download-cover .col-md-4 {
    display: none !important;
  }

  .resource-download-cover .col-md-8 {
    width: 100% !important;
    max-width: 100% !important;
  }
}
