/* ---------------------------------------------------------
   GLOBAL STYLES
--------------------------------------------------------- */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------
   HERO — mirrors tally_education .edu-hero
--------------------------------------------------------- */
.tallysync-hero {
    background: #eef2f7;
    padding: 60px 40px 0 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #003366;
}

.tallysync-hero-inner {
    max-width: 1200px;
    height: 250px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 40px;
}

.tallysync-hero-text {
    flex: 1;
    padding-bottom: 60px;
    animation: fadeIn 1s ease;
}

.tallysync-hero-text h1 {
    color: #0a1628;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.tallysync-hero-visual {
    flex: 0 0 400px;
    height: 250px;              /* match hero height */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.tallysync-hero-visual img.tallysync_hero-illustration {
    width: 100%;
    height: 100%;               /* fill container */
    object-fit: contain;        /* keep full image visible */
    display: block;
}

/* IMAGE PLACEHOLDER */
.tallysync_hero-img-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #dde6ef;
    border: 2px dashed #94afc0;
    border-radius: 14px;
    text-align: center;
    padding: 30px 20px;
}

.tallysync_hero-img-placeholder span { font-size: 48px; margin-bottom: 12px; }
.tallysync_hero-img-placeholder p    { color: #4a6880; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tallysync_hero-img-placeholder small{ color: #7a96aa; font-size: 12px; }

/* ---------------------------------------------------------
   SHARED LABEL & TITLE — same as education page
--------------------------------------------------------- */
.tallysync_section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tallysync_section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.tallysync_section-label span {
    width: 36px; height: 3px;
    background: #e63329;
    display: inline-block;
    border-radius: 2px;
}

.tallysync_section-label p {
    color: #e63329;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #0a1628;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-title span { color: #e63329; }

/* ---------------------------------------------------------
   ABOUT SECTION — mirrors .edu-about
--------------------------------------------------------- */
.tallysync-about {
    background: #f7f9fc;
    padding: 80px 40px;
}

.tallysync-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tallysync-about-text p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 16px;
}

/* Highlight bullets — mirrors .edu-about-highlights */
.tallysync-about-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.highlight-dot {
    width: 10px; height: 10px;
    background: #e63329;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.highlight-item p {
    color: #0a1628;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

/* About cards — mirrors .edu-about-cards */
.tallysync-about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.about-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border-top: 4px solid transparent;
    transition: border-color 0.25s, transform 0.25s;
}

.about-card:hover { border-color: #e63329; transform: translateY(-4px); }

.about-card-icon {
    width: 46px; height: 46px;
    background: #fff0ef;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.about-card h4 { color: #0a1628; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.about-card p  { color: #6b7280; font-size: 12.5px; line-height: 1.7; }

/* ---------------------------------------------------------
   WHY CHOOSE — mirrors .edu-why
--------------------------------------------------------- */
.tallysync-why {
    background: #f8fbfd;
    padding: 80px 40px;
}

.tallysync-why .section-title { color: #003366; }

.tallysync-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.why-card {
    background: rgba(15,15,15,0.04);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 14px;
    padding: 32px 26px;
    transition: background 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #e63329;
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.why-card:hover::before { transform: scaleX(1); }
.why-card:hover { background: rgba(255,255,255,0.8); transform: translateY(-5px); }

.why-card-icon {
    width: 54px; height: 54px;
    background: rgba(230,51,41,0.12);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.why-card h3 { color: #003366; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.why-card p  { color: #333; font-size: 13.5px; line-height: 1.75; }

/* ---------------------------------------------------------
   BOTTOM CTA — mirrors .edu-cta
--------------------------------------------------------- */
.tallysync-cta {
    background: linear-gradient(135deg, #0d183d 0%, #b82a21 100%);
    padding: 70px 40px;
    position: relative;
    overflow: hidden;
}

.tallysync-cta::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.tallysync-cta::after {
    content: '';
    position: absolute;
    bottom: -80px; left: 10%;
    width: 250px; height: 250px;
    background: rgba(0,0,0,0.07);
    border-radius: 50%;
}

.tallysync-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tallysync-cta-text h2 {
    color: #fff;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
}

.tallysync-cta-text p {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    line-height: 1.7;
    max-width: 560px;
}

.tallysync-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-white {
    background: #fff;
    color: #e63329;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}

.btn-white:hover { background: #f0f0f0; transform: translateY(-2px); }

.btn-white-outline {
    background: transparent;
    color: #fff;
    padding: 13px 28px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.25s, background 0.25s;
    display: inline-block;
}

.btn-white-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 900px) {
    .tallysync-hero-inner  { flex-direction: column; gap: 0; align-items: center; }
    .tallysync-hero-text   { padding-bottom: 30px; }
    .tallysync-hero-visual { flex: none; width: 100%; max-width: 340px; }
    .tallysync-about-grid  { grid-template-columns: 1fr; gap: 40px; }
    .tallysync-why-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .tallysync-hero, .tallysync-about, .tallysync-why, .tallysync-cta { padding: 60px 20px; }
    .tallysync-why-grid    { grid-template-columns: 1fr; }
    .tallysync-about-cards { grid-template-columns: 1fr; }
    .tallysync-cta-inner   { flex-direction: column; }
}