.ret-plan-section{
background:#f2f2f2;
padding:40px 20px;
}

.ret-plan-box{
max-width:1100px;
margin:auto;
background:#fff;
border-radius:3px;
overflow:hidden;
font-family:Arial;
}


/* Header */

.ret-plan-header{
display:grid;
grid-template-columns:1fr 200px;
background:#2d78a8;
color:white;
font-weight:600;
padding:18px 22px;
font-size:18px;
}

.ret-plan-col3{
text-align:center;
}


/* Rows */

.ret-plan-row{
display:grid;
grid-template-columns:1fr 200px;
padding:18px 22px;
border-bottom:1px solid #e5e5e5;
align-items:center;
}


.ret-plan-text {
	font-size: 18px;
	color: #000000;
	line-height: 1.6;
	text-align: left;
}
.ret-plan-col1 {
	font-size: 20px;
	line-height: 1.6;
	text-align: left;
}
.ret-plan-col3 {
    text-align: center;
    font-size: 20px;
}

/* Section Titles */

.ret-plan-title {
	padding: 18px 22px;
	font-weight: 700;
	background: #ffffff;
	border-bottom: 1px solid #e5e5e5;
	font-size: 22px;
	text-align: left;
	color: #000000;
}


/* Icons */

.ret-plan-icon{
display:flex;
justify-content:center;
}

.ret-plan-icon:before{
content:"✓";
width:26px;
height:26px;
background:#e7b53d;
color:white;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
font-size:13px;
}


/* Footer Buttons */

.ret-plan-footer{
padding:35px 25px;
display:flex;
justify-content:flex-end;
gap:18px;
flex-wrap:wrap;
}


/* Button Style */

.ret-plan-btn {
	background: #E1AF3E;
	color: #fff;
	border: none;
	padding: 20px 24px;
	border-radius: 20px !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	cursor: pointer;
	transition: 0.3s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	height: auto;
	margin: 0;
	white-space: nowrap;
}

.ret-plan-btn:hover{
background:#d49f2d;
}


/* Responsive */

@media(max-width:768px){
.ret-plan-header, .ret-plan-row {
  grid-template-columns: 1fr 120px;
  padding: 14px;
}
.ret-plan-col1 {
  padding-top: 10px;
}
.ret-plan-section {
  padding: 0px !important;
}
.ret-plan-title {
  padding: 18px 12px !important;
  font-size: 20px !important;
}
.ret-plan-footer {
  padding: 35px 6px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}	
.ret-plan-btn {
  padding: 20px 12px;
}
.ret-plan-text{
  font-size:13px;
}

.ret-plan-footer{
text-align:center;
}

.ret-plan-btn{
width:100%;
max-width:260px;
}

}

.sotp-header {
    text-align: center;
    margin-bottom: 80px; 
    padding-top: 40px;
}

.sotp-title {
    margin: 0;
    font-weight: 700;
    font-size: 60px; 
    line-height: 1.1;
    color: #4382B4; 
    letter-spacing: -1px;
    font-family: inherit;
}

.sotp-subtitle {
    margin: 20px 0 0;
    font-weight: 400;
    font-size: 20px; 
    line-height: 1.4;
    color: #4B5563; 
    opacity: 0.9;
}

/* --- Global & Typography --- */
.wpb_wrapper .front-heading h1 {
    color: #000 !important;
    line-height: 52px !important;
}
.retirement-header h2 {
    line-height: 65px;
}
.sotp-section {
    position: relative;
    padding: 20px 0 10px;
    overflow: hidden;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.retirement-card {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.retirement-card.open {
  max-height: 5000px; /* enough height */
}

/* --- Background Decor --- */
.sotp-bg {
    position: absolute;
    width: 600px; height: 600px;
    right: 0; bottom: 0;
    background: linear-gradient(315deg, rgba(30, 140, 69, 0.05) 0%, rgba(30, 140, 69, 0) 100%);
    filter: blur(32px);
    border-radius: 9999px;
    pointer-events: none;
}
.sotp-wrap {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Timeline Main Line --- */
.sotp-timeline {
    position: relative;
    margin-top: 30px;
    padding: 10px 0 40px;
}

.row .col img {
	margin-bottom: 0px;
	max-width: 100%;
	height: auto;
}

.sotp-divider {
    position: absolute;
    left: 45px !important; /* Fixed left position for all rows */
    top: 0; bottom: 0;
    width: 3px;
    transform: none !important;
    background: linear-gradient(180deg, #EFC345 0%, #1A365D 50%, #EFC345 100%);
    border-radius: 999px;
    z-index: 1;
}

/* --- Rows Layout (Forces All Content Right of Icon) --- */
.sotp-row {
    display: grid !important;
    grid-template-columns: 90px 1fr !important; /* Column 1 for Icon, Column 2 for Text */
    gap: 20px;
    margin-bottom: 40px;
    text-align: left !important;
    position: relative;
}

/* Clean up: Remove old alternating logic */
.sotp-row--left, .sotp-row--right {
    display: grid !important;
    grid-template-columns: 90px 1fr !important;
}

/* --- Node (Icon) --- */
.sotp-node {
    grid-column: 1 / 2 !important; /* Always in first column */
    grid-row: 1 !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    z-index: 2;
}
.sotp-node__ring {
    width: 70px; height: 70px;
    background: #ffffff;
    border: 3.8px solid #EFC345;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.sotp-node__icon {
    width: 40px; 
    height: 40px; 
    object-fit: contain;
}

/* --- Card (Text Content) --- */
.sotp-card {
    grid-column: 2 / 3 !important; /* Always in second column */
    grid-row: 1 !important;
    justify-self: start !important;
    width: min(750px, 100%);
    background: #ffffff;
    box-shadow: 0px 1.45px 2.9px rgb(0 0 0 / 18%);
    border-radius: 17.4px;
    padding: 34px 40px;
    text-align: left !important;
    margin-top: 0 !important; /* Resetting old top margin */
}
.sotp-card__title {
    margin: 0;
    font-weight: 700;
    font-size: 28.7px;
    line-height: 41px;
    color: #1F75AE;
}
.sotp-card__text {
    margin: 16px 0 0;
    font-weight: 400;
    font-size: 21.5px;
    line-height: 38px;
    color: #4B5563;
}

/* --- Buttons --- */
.sotp-actions {
    margin-top: 54px;
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}
.sotp-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border-radius: 100px;
    padding: 18px 34px;
    font-weight: 700;
    font-size: 22.6px;
    color: #ffffff;
}
.sotp-btn--gold { background: #EFC345; }
.sotp-btn--blue { background: #1F75AE; }

/* ================= TESTIMONIALS GRID ================= */
.sotp-testimonials {
  padding: 120px 0;
  background: #ffffff;
}

.sotp-testimonials__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sotp-testimonials__header {
  text-align: center;
  margin-bottom: 44px;
}

.sotp-testimonials__title {
  font-size: 40px;
  font-weight: 700;
  color: #1F75AE;
}

.sotp-testimonials__subtitle {
  margin-top: 12px;
  font-size: 16px;
  color: #4B5563;
}

.sotp-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.sotp-testimonial {
  background: #F9FAFB;
  border-radius: 16px;
  padding: 32px;
}

.sotp-testimonial__stars {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.sotp-star {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-image: url("https://investordna.ca/wp-content/uploads/2026/01/start-reviews.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.35;
}

.sotp-star.is-active {
  opacity: 1;
}

.sotp-testimonial__text {
  font-size: 15px;
  line-height: 26px;
  color: #374151;
}

.sotp-testimonial__name {
  margin-top: 18px;
  font-weight: 600;
  color: #1F75AE;
}

/* CTA */
/* CTA wrapper */
.sotp-testimonials__cta {
  margin-top: 48px;
  text-align: center;
}

/* Outline button */
.sotp-btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 12px;
  border: 2px solid #1F75AE;
  color: #1F75AE;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
}



.sotp-btn--outline:hover {
  background: rgba(31, 117, 174, 0.05);
}

.sotp-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sotp-btn__icon img {
  width: 18px !important;
  height: 18px !important;
  display: block;
  margin: 0 !important;
}

.sotp-btn__text {
  line-height: 1;
}

.sotp-btn--outline:hover .sotp-btn__icon--right {
  transform: translateX(2px);
  transition: transform 0.2s ease;
}


/* =========================
   TABLET & BELOW (≤1024px)
========================= */
@media (max-width: 1024px) {
    .sotp-row {
        grid-template-columns: 80px 1fr !important;
        gap: 16px;
    }
    .sotp-divider { left: 40px !important; }
    .sotp-title { font-size: 40px; }
    .sotp-subtitle { font-size: 18px; }
    .sotp-card__title { font-size: 24px; }
    .sotp-card__text { font-size: 18px; }
    .sotp-node__ring { width: 68px; height: 68px; }
    .sotp-btn { width: 80% !important; justify-content: center; font-size: 15px; }
}

/* =========================
   MOBILE (≤768px)
========================= */
@media (max-width: 768px) {
    .sotp-wrap { padding: 0 15px; }
    .sotp-row {
        grid-template-columns: 70px 1fr !important;
        gap: 10px;
    }
    .sotp-divider { left: 35px !important; }
    .sotp-card { padding: 22px; }
    .sotp-card__title { font-size: 20px; line-height: 28px; }
    .sotp-card__text { font-size: 16px; line-height: 26px; }
    .sotp-node__ring { width: 56px; height: 56px; }
    .sotp-node__icon { width: 24px; height: 24px; }
    
    .wpb_wrapper .front-heading h1 {
        font-size: 48px !important;
    }
}

/* =========================
   SMALL PHONES (≤480px)
========================= */
@media (max-width: 500px) {
    .sotp-title { font-size: 32px; }
    .sotp-subtitle { font-size: 16px; }
    .sotp-divider { left: 28px !important; }
    .sotp-row { grid-template-columns: 55px 1fr !important; }
    .sotp-node__ring { width: 48px; height: 48px; }
    .sotp-card { padding: 18px; }
    .sotp-btn { width: 100% !important; font-size: 14px; padding: 14px; }
    
    .sotp-row .sotp-node img:not([srcset]) {
        width: 20px !important;
        padding-top: 5px !important;
    }
	.display-center .yellow-btn {
		padding-bottom: 14px !important;
	}
	.sotp-testimonials__header{
       padding: 20px !important;	
   }
	.sotp-testimonials__inner {
		max-width: 1200px;
		margin: 0 auto;
		padding: 0 !important;
   }
	.sotp-testimonials {
        padding: 60px 0 !important;
   }
	.sotp-testimonials__grid {
		display: grid;
		grid-template-columns: repeat(1, 1fr) !important;
		gap: 32px;
	}
}