﻿/* Shared site styling -- customize as needed */

/* Ensure top bar sits away from page edges on wide screens */
body {
    background: #f5f6fb;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* footer style */
.site-footer {
    margin-top: 28px;
    color: #6b6b85;
}

/* Button outline style reused */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(46,42,107,0.12);
    color: #2e2a6b;
}

/* small helper to visually center page content */
.container {
    max-width: 1200px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}

/* Trust / promise styles */
.alert-primary {
    background: linear-gradient(180deg, #f5f6fb, #ffffff);
    color: #1f1f2e;
    border: 1px solid rgba(46,42,107,0.06);
}
.card .row .col-md-4 .btn-primary {
    background: #2e2a6b;
    border-color: #2e2a6b;
    border-radius: 8px;
}
@media (max-width: 767px) {
    .card .row { flex-direction: column; }
    .card .row .col-md-4 { text-align: center; padding-top: 12px; }
}

/* === Added hero, scroll, card, feature and partner styles === */

/* Hero */
.hero-panel { background: #3a2a64; border-radius: 18px; }
.hero-image img { min-height: 220px; object-fit: cover; }

/* Scroll containers and cards */
.scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 8px;
    scroll-behavior: smooth;

    /* enable smooth native scrolling on iOS */
    -webkit-overflow-scrolling: touch;

    /* allow horizontal panning inside the container */
    touch-action: pan-x;
    -ms-touch-action: pan-x;

    /* prevent the browser from overscrolling the whole page when swiping the slider */
    overscroll-behavior-x: contain;
}
.scroll-container::-webkit-scrollbar { height: 10px; }
.scroll-container::-webkit-scrollbar-thumb { background: #bfbfbf; border-radius: 6px; }

.cat-card {
    min-width: 140px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 18px 12px;
    flex: 0 0 auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.icon-placeholder { font-size: 28px; }
.cat-title { margin-top: 8px; color: #2b2b2b; font-weight: 600; }
.cat-icon { width: 48px; height: 48px; object-fit: contain; }

/* Feature cards */
.feature-card { background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.feature-media img { height: 140px; object-fit: cover; display: block; }
.feature-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.feature-body h5 { font-size: 1rem; }
.feature-body .btn-primary { background: #2e2a6b; border-color: #2e2a6b; border-radius: 10px; }

/* Partners carousel styling */
#partnersCarousel { padding: 12px 0 28px; }
.partner-logo {
    height: 150px;      /* 1.5 × 70px */
    width: auto;
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
}

@media (max-width: 1000px) {
    .partner-logo {
        height: 100px;   /* 1.5 × 54px */
        padding: 8px;
    }
}

/* responsive tweaks */
@media (max-width:767px) {
    .hero-panel { margin-bottom: 20px; }
    .hero-image { margin-top: 12px; }
    .partner-logo { height: 54px; padding: 6px; }
    .cat-icon { width: 36px; height: 36px; } /* adjust icons for smaller screens */
}
