/*
// Single Template Styles //
*/

.cp--heading-section {
  display: flex;
  align-items: center;
}

.cp--logo {
  width: 200px;
  height: 200px;
  margin: 20px;
  border: 1px solid #dfdfdf;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.cp--logo img {
  max-width: 100%;
}

.cp--title-and-url {
  display: flex;
  flex-direction: column;
  margin: 0px 20px 0 0;
}

.cp--title-and-url h1 {
  margin: 0 0 20px;
}

.cp--general-section {
  background: #fefefe;
  box-shadow: 0 5px 10px -2px #a8a8ac;
  display: flex;
  flex-direction: column;
  margin: 20px;
  border: 1px solid #dfdfdf;
}

.cp--general-section h4 {
  border-bottom: 1px solid #dfdfdf;
  margin: 0;
  padding: 20px;
}

.cp--general-section p {
  margin: 0;
  padding: 20px;
}

.cp--general-section hr {
  margin: 0 20px;
}

.cp--pricing-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

.cp--pricing-tier {
  box-shadow: 0 5px 10px -2px #a8a8ac;
  display: flex;
  flex-direction: column;
  width: 200px;
  border: 1px solid #dfdfdf;
}

.cp--pricing-tier h5 {
  background: #ededed;
  text-align: center;
  padding: 10px;
  margin: 0;
}

.cp--pricing-tier p {
  margin: 0;
  font-size: 2em;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.cp--pricing-tier p span {
  font-size: 0.5em;
}

.cp--screenshots {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
}

.cp--screenshots div {
  width: 200px;
  height: 200px;
  border: 1px solid #dfdfdf;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px;
  box-sizing: border-box;
}

.cp--screenshots div:hover img {
  filter: brightness(1.1);
}

.cp--screenshots img {
  max-width: 100%;
  height: auto;
}

.cp--feature-list {}

.cp--feature-list h5 {
  margin: 0;
  background: #ededed;
  padding: 10px;
  border-bottom: 1px solid #dfdfdf;
}

.cp--feature-list h5:not(:nth-child(1)) {
  border-top: 1px solid #dfdfdf;
}

.cp--feature-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.cp--feature-list ul li {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp--feature-list ul li.cp--missing-feature {
  opacity: 0.5;
}

.cp--feature-list ul li span {
  color: green;
}

.cp--feature-list ul li.cp--missing-feature span {
  color: red;
}

.cp--feature-list ul li:not(:nth-child(1)) {
  border-top: 1px solid #dfdfdf;
}

/*
// Comparison Template Styles //
*/

.comparison-section {
  display: flex;
  width: 100%;
}

.compare-col {
  width: 50%;
  box-sizing: border-box;
}

.compare-col:nth-child(1) {
  border-right: 1px solid #dfdfdf;
}

.cp--heading-section .compare-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cp--heading-section .compare-col .cp--title-and-url {
  text-align: center;
}

.compare-col .cp--pricing-tiers {
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.compare-col .cp--pricing-tiers .cp--pricing-tier {
  margin: 0;
  border: 0;
  box-shadow: unset;
  width: 100%;
}

.compare-col .cp--pricing-tiers .cp--pricing-tier h5 {
  text-align: left;
}

.compare-col .cp--pricing-tiers .cp--pricing-tier p {
  text-align: left;
  display: block;
  padding: 5px 20px;
  font-size: 1.3em;
}

/*
// Archive Template Styles //
*/

.cp--platform-preview {
  background: #fefefe;
  box-shadow: 0 5px 10px -2px #a8a8ac;
  display: flex;
  flex-direction: row;
  margin: 20px;
  border: 1px solid #dfdfdf;
}

.cp--platform-preview-details {
  width: calc(100% - 240px);
  display: flex;
  flex-direction: column;
  padding: 20px 20px 20px 0;
  box-sizing: border-box;
}

.cp--platform-preview-details h4 {
  margin: 0;
}

.cp--platform-preview-details ul {
  list-style: none;
  padding: none;
  margin-left: 0;
}

.cp--platform-preview-button-wrapper {
  display: flex;
  justify-content: flex-end;
}

.cp--platform-preview-button-wrapper a {
  text-decoration: none;
  background: #ededed;
  padding: 10px 20px;
}

.cp--platform-preview-button-wrapper a:hover {
  filter: brightness(0.9);
}

/*
// Alternative Platforms Styles //
*/

.cp--alternative-platforms-section {
  background: #fefefe;
  box-shadow: 0 5px 10px -2px #a8a8ac;
  display: flex;
  flex-direction: column;
  margin: 20px;
  border: 1px solid #dfdfdf;
}

.cp--alternative-platforms-section h4 {
  border-bottom: 1px solid #dfdfdf;
  margin: 0;
  padding: 20px;
}

.cp--alternative-platforms-wrapper {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}

.cp--alternative-platform {
  border: 1px solid #dfdfdf;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cp--alternative-platform .cp--logo {
  width: 100px;
  height: 100px;
}

.cp--alternative-platform a {
  text-decoration: none;
  text-align: center;
}

.cp--alternative-platform a:nth-child(1) {
  margin-bottom: 10px;
}

.cp--alternative-platform a.cp--view-platform-button,
.cp--alternative-platform a.cp--compare-platform-button {
  text-decoration: none;
  background: #ededed;
  padding: 10px;
  margin-bottom: 20px;
  text-align: center;
  min-width: calc(100% - 60px);
}

.cp--alternative-platform a.cp--compare-platform-button {
  background: #cbcbcb;
}

.cp--alternative-platform a.cp--view-platform-button:hover,
.cp--alternative-platform a.cp--compare-platform-button:hover {
  filter: brightness(0.9);
}

/*
// Screenshot Modal Styles //
*/

#cp--screenshot-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #ffffffe6;
  display: none;
  justify-content: center;
  align-items: center;
}

#cp--screenshot-modal.cp--modal-open {
  display: flex;
}

.cp--screenshot-modal-inner {
  width: 90%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  height: 90%;
  max-height: 800px;
  border: 1px solid #dfdfdf;
  position: relative;
}

#cp--screenshot-modal .cp--close-modal-button {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #959595;
  cursor: pointer;
}

#cp--screenshot-modal img {
  width: 90%;
  max-width: 600px;
  height: auto;
}

/*
// Media Queries // 
*/

/*/ Single Template Styles /*/

@media screen and (max-width: 860px) {
  .cp--alternative-platforms-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 760px) {
  .cp--pricing-tier {
    box-shadow: 0 5px 10px -2px #a8a8ac;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #dfdfdf;
  }

  .cp--pricing-tier p {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 5px;
  }
}

@media screen and (max-width: 620px) {
  .cp--screenshots {
    justify-content: center;
  }
}

@media screen and (max-width: 560px) {
  .cp--alternative-platforms-wrapper {
    grid-template-columns: 1fr;
  }
}

/*/ Archive Template Styles /*/

@media screen and (max-width: 680px) {
  .cp--platform-preview {
    flex-direction: column;
    align-items: center;
  }

  .cp--platform-preview-details {
    width: 100%;
    padding: 20px;
  }
}

@media screen and (max-width: 500px) {
  .cp--logo {
    width: 100px;
    height: 100px;
  }
}


/*Custom css for compare page*/
.select-post-title-compare {
  font-size: 20px;
}

.update-comparison {
  padding: 20px 40px;
  text-align: center;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
}

.update-comparison h3 {
  font-size: 28px;
  margin-top: 0;
  margin: 0;
}

.comparison-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.comparison-form {
  margin: 0;
}

.comparison-select {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Arial, sans-serif;
}

.vs-text {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}


/* Visit website button CSS */
.save-button {
  display: inline-block;
  width: 100px;
  background-color: #007cba;
  /* WordPress blue */
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
}

.save-button:hover {
  background-color: #005a9c;
  /* Darker blue on hover */
}

/* Additional links CSS */
.additional-links {
  font-size: 18px;
}

.top-additional-links {
  padding-right: 0 !important;
}

.top-additional-links-heading {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 0;
}

.additional-links-bottom {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

.additional-resource-section {
  background: #fefefe;
  display: flex;
  flex-direction: column;
  margin: 20px;
  border: 1px solid #dfdfdf;
  padding-left: 20px;
  padding-right: 20px;
}

.comparison-heading-footer {
  padding-bottom: 0 !important;
}

/* Visit website CSS */

.visit-website-block {
  text-align: left;
  width: fit-content;
}

.visit-website-block h1 {
  margin-bottom: 10px;
}

.button-wrapper {
  text-align: center;
}

.save-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.save-button:hover {
  background-color: #005780;
}

.header-dropdown {
  background: #ededed;
  text-align: center;
}

.header-dropdown h1 {
  margin-bottom: 0;
}

/* .sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
} */

.cp--heading-section-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white; /* Adjust background color */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none; /* Initially hidden */
    transition: all 0.3s ease-in-out;
}