html, body{
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body{
    font-family: "Poppins", sans-serif;
    background: #f8f9fa;
    color: #333;
}

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

header{
    background: #4facfe;
    padding: 15px 0;
    color: white;
    position: sticky;
    top: 0;
    z-index: 999;
    /* Keep header full-width but use .container for content sizing */
}

.header-flex{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title{
    font-size: 1.8rem;
    font-weight: bold;
}

nav a{
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover{
    color: yellow;
}

.hero{
    background: linear-gradient(135deg, #0a1628 0%, #142240 100%);
    color: white;
    padding: 70px 60px;
    border-radius: 16px;
    margin-bottom: 0;
    position: relative;
    margin-top: 30px;
}

.hero::before{
    display: none;
}

.hero-title, .hero-text{
    position: relative;
    z-index: 1;
}

.hero-title{
    font-family: "Poppins", sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.hero-text{
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.75;
    font-weight: 400;
    color: rgba(255,255,255,0.82);
    text-align: left;
}

.about-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 40px;
    text-align: center;
}

.about-section img.about-photo {
    display: block;
    width: 280px;
    max-width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: contain;
    background: #f0f6ff;
    margin: 0 auto 1.25rem;
    border: 4px solid #4facfe;
    box-shadow: 0 4px 16px rgba(79,172,254,0.25);
    float: none;
}

.about-section h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #063b9e;
    margin-bottom: 1.5rem;
}

.about-content {
    text-align: left;
    max-width: 740px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.1rem;
}

.about-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #063b9e;
    border-left: 4px solid #4facfe;
    padding-left: 0.75rem;
    margin: 2rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-content hr {
    border: none;
    border-top: 1px solid #eaeaea;
    margin: 2rem 0;
}

.about-content a {
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
}

.about-content a:hover {
    color: #ffa751;
}

.blog-preview{
    display: flex;
    align-items: center;
    background: white;
    margin: 25px 0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-preview img{
    width: 45%;
    border-radius: 10px;
}

.blog-preview .content{
    width: 55%;
    padding: 0 20px;
}

.blog-preview h2{
    margin-top: 0;
    color: #4facfe;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border-top: 4px solid #4facfe;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.1rem;
  color: #1a2a3a;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.service-audience {
  color: #4facfe !important;
  font-style: italic;
  font-size: 0.85rem !important;
  flex-grow: 1;
}

.service-card .read-more {
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.post-date {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 0.4rem 0;
}

.read-more{
    display: inline-block;
    /* margin: 10px; */
    background: #4facfe;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.read-more:hover{
    background: #00c9a7;
}

.page-content{
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.page-content img{
    max-width: 100%;
    margin: 15px 0;
    border-radius: 10px; 
}

.blog-preview.reverse{
    flex-direction: row-reverse;
}

.contact-section{
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
}

.contact-section img{
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
}

.contact-section h1{
    font-size: 2.5rem;
    font-weight: 800;
    color: #4facfe;
    margin-bottom: 20px;
}

.contact-section h2{
    font-size: 1.6rem;
    margin: 20px 0 10px;
    color: #00c9a7;
}

.contact-section p, .contact-section li{
    font-size: 1.1rem;
    line-height: 1.8rem;
    color: #444;
}

.contact-section ul{
    list-style: none;
    padding: 0;
}

.contact-section ul li{
    padding: 8px 0;
}

.contact-section a{
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
}

.contact-section a:hover{
    color: #ffa751;
}


/* ── Product pages ── */
.product-page {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
    margin-bottom: 40px;
}

.product-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2.5rem;
    background: linear-gradient(transparent, rgba(10,22,40,0.85));
}

.product-hero-overlay h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.product-body {
    padding: 2.5rem 3rem;
    max-width: 820px;
    margin: 0 auto;
}

.product-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #063b9e;
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eef3fb;
}

.product-body p {
    font-size: 0.97rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

.product-body strong {
    color: #063b9e;
}

.product-body em {
    color: #555;
}

.product-body a {
    color: #4facfe;
    font-weight: 600;
    text-decoration: none;
}

.product-body a:hover {
    color: #ffa751;
}

/* Feature lists (>-) */
.product-body blockquote {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.25rem;
    background: #f7f9ff;
    border-left: 4px solid #4facfe;
    border-radius: 0 8px 8px 0;
}

.product-body blockquote ul,
.product-body blockquote ol {
    margin: 0;
    padding-left: 1.25rem;
}

.product-body blockquote li,
.product-body blockquote p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333;
    margin: 0;
    padding: 0.15rem 0;
}

/* Stat callouts (>>-) — outer wrapper unstyled, inner amber */
.product-body blockquote:has(> blockquote) {
    background: transparent;
    border-left: none;
    padding: 0;
}

.product-body blockquote blockquote {
    background: rgba(255, 182, 50, 0.07);
    border-left: 4px solid #ffb632;
    border-radius: 0 8px 8px 0;
    margin: 0 0 1.25rem;
}

/* Regular lists */
.product-body ul,
.product-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.product-body ul li,
.product-body ol li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #444;
    padding: 0.2rem 0;
}

@media (max-width: 700px) {
    .product-hero              { height: 260px; }
    .product-hero-overlay h1   { font-size: 1.4rem; }
    .product-body              { padding: 1.5rem; }
}

/* ── How it works ── */
.how-it-works {
    background: #ffffff;
    border-radius: 16px;
    margin-top: 16px;
    padding: 50px 40px 40px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #063b9e;
    margin-bottom: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step {
    background: white;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    text-align: center;
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #4facfe;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #063b9e;
    margin: 0 0 0.5rem;
}

.step p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ── Product cards ── */
.products-section {
    background: #eef3fb;
    border-radius: 16px;
    margin-top: 16px;
    padding: 50px 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
}

.product-grid--logos .product-card img {
    object-fit: contain;
    object-position: center;
    background: #f7f9ff;
    padding: 1.5rem;
}

.product-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4facfe;
    margin: 0 0 0.6rem;
}

.product-card-body p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 1.25rem;
}

/* ── Signpost ── */
.signpost {
    background: #ffffff;
    border-radius: 16px;
    margin-top: 16px;
    margin-bottom: 40px;
    padding: 50px 40px 50px;
}

.signpost-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.signpost-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    border-top: 4px solid #4facfe;
}

.signpost-card:last-child {
    border-top-color: #00c9a7;
}

.signpost-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #063b9e;
    margin: 0 0 0.6rem;
}

.signpost-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .steps,
    .product-grid,
    .signpost-grid {
        grid-template-columns: 1fr;
    }
}

footer{
    margin-top: 40px;
    text-align: center;
    background: #222;
    color: #ccc;
    padding: 10px;
}


/* This section is for the form in contact me */
.   /* Form styles: improve spacing, centering, and sizing */

/* make sizing predictable so padding/border don't cause overflow */
*, *::before, *::after {
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    text-align: left; /* labels above and left-aligned */
}

input, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fafafa;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79,172,254,0.08);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

button {
    background-color: #4facfe;
    color: white;
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

button:hover:not(:disabled) {
    background-color: #3aa0f0;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.message {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: none;
}

.message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Container that holds the form; center the form within the page content */
.contactMeForm {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* Scoped form styling to prevent affecting other forms */
.contactMeForm form,
.page-content form {
    width: 75%;        /* occupy up to 75% of available width */
    max-width: 900px;  /* but don't grow beyond this */
    padding: 22px 24px;
    border: 1px solid #ececec;
    background: #ffffff;
    border-radius: 10px;
    margin: 0 auto;    /* center the form horizontally */
}

/* ensure inputs don't touch the right edge of the form */
.contactMeForm form .form-group,
.page-content form .form-group {
    padding-right: 6px;
}

/* Responsive: on narrow screens make form nearly full-width */
@media (max-width: 880px) {
    .contactMeForm form,
    .page-content form {
        width: 92%;
        padding: 18px;
    }
}
