body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f8f9f9;
  color: #333;
}

header.hero-header {
  padding: 0 3rem;
  height: 280px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../images/banner.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: #fff;
}

.hero-header .hero-text {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}



.hero-header p {
  font-size: 1.25rem;
  margin: 0 auto;
  margin-top: -10px;
  max-width: 700px;
  color: #e0e0e0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-header h1 {
  padding-left: 40px; /* tweak this */
}

.hero-header p {
  padding-left: 40px; /* same value for consistency */
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.hero h2,
.affiliate h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  text-align: center;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2980b9;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.button:hover {
  background-color: #1c6ea4;
}

.affiliate a {
  color: #2980b9;
  text-decoration: underline;
}

.blog-preview ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.tile-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(32,80,129,0.9);
  color: white;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tool-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}


.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 400px);
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  margin: 0 auto;
  box-sizing: border-box;
  max-width: 1300px;
}

.tool-tile {
  display: flex;
  flex-direction: column;
  height: 600px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 0;
  position: relative;
  box-sizing: border-box;
}

.tile-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px 20px;
}

.tile-img {
  height: 150px;
  text-align: center;
  padding: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-img img {
  max-height: 150px;
  max-width: 100%;
  border-radius: 8px;
}

.tile-content h3 {
  margin-top: 0;
  color: #205081;
  font-size: 1.2rem;
}

.subtitle {
  font-weight: 500;
  color: #333;
  margin-top: -8px;
  margin-bottom: 16px;
}

.tile-content p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 12px;
  text-align: justify;
}

.tile-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.tile-btn {
  background-color: #4B7F52;
  color: #FF9900 !important;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  text-align: center;
  text-shadow: none;
  transition: background-color 0.2s ease;
}

.tile-btn:hover {
  background-color: #3e6b45;
  color: #FF9900 !important;
  text-decoration: none;
}

.blog-article {
  margin-bottom: 1rem;
}

.blog-article .excerpt {
  display: none;
}

.blog-article.expanded .excerpt {
  display: block;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: linear-gradient(to bottom right, #ffffff, #f7f9fc);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
}

.modal-content h3 {
  font-size: 1.6rem;
  color: #205081;
  margin-bottom: 1rem;
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
  width: 90%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.modal-content button[type="submit"] {
  background-color: #4B7F52;
  color: #FF9900;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.modal-content button[type="submit"]:hover {
  background-color: #3e6b45;
}

/* Badge + Button in Header */
.subscribe-button,
.canadian-badge {
  position: absolute;
  bottom: 10px;
}

.subscribe-button {
  right: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 400;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.subscribe-button:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

.canadian-badge {
  left: 20px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 400;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
}

/* Sticky Bar */
.sticky-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  color: #fff;
}

#sticky-clone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('images/banner.jpg');
  background-size: cover;
  background-position: center bottom;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 999;
  display: none;
}

.sticky-bar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

/* Mobile Adjustments */
@media (max-width: 800px) {
  .canadian-badge span,
  .subscribe-button span {
    display: none;
  }


  #sticky-clone.is-sticky .subscribe-button span {
    display: inline;
  }

  .subscribe-button,
  .canadian-badge {
    bottom: 10px;
    z-index: 2;
  }

  .hero-header .hero-text {
    z-index: 1;
    padding: 2rem;
  }
  
  .hero-header p{
	  margin-top: -15px;
  }
	  
	.hero-header h1{
		line-height: 1.1;
	}
	  
}

.tile-starburst {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.tile-starburst span {
  position: absolute;
  top: 26px;
  right: -35px;
  width: 140px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0;
  background-color: #e53935;
  color: white;
  transform: rotate(45deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Color variants */
.tile-starburst.red span {
  background-color: #e53935;
}

.tile-starburst.yellow span {
  background-color: #fbc02d;
  color: #333;
}

.tile-starburst.green span {
  background-color: #43a047;
}

@keyframes pulse {
  0% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.05); }
  100% { transform: rotate(45deg) scale(1); }
}

.tile-starburst span {
  animation: pulse 2.5s infinite ease-in-out;
}

.tile-heading {
  display: flex;
  align-items: flex-start; /* Align tops instead of vertical center */
  gap: 10px;
  margin: 0 0 1.2rem; /* More space below */
}

.tile-heading-icon {
  font-size: 1.4rem;
  line-height: 1.2;
  padding-top: 3px; /* Nudge down slightly if needed */
  flex-shrink: 0;
  margin-top: 0;
}

.tile-heading-text {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #205081;
  line-height: 1.35;
}
