﻿body {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    min-height: 100vh;
}

.card {
    border: none;
    background: #fff;
}

.btn-primary {
    background: #16a34a;
    border: none;
}

    .btn-primary:hover {
        background: #15803d;
    }

@media (max-width: 575.98px) {
    .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .card {
        border-radius: 1rem !important;
    }

    .card-body {
        padding: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    #tagsag-logo{
        width:120px;
    }
    .card {
        border-radius: 1rem !important;
    }

    .card-body {
        padding: 1.5rem !important;
    }
}


.tsg-banner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 420px;
    display: grid;
    align-items: center;
    padding: 28px;
    isolation: isolate;
}

@media (min-width: 768px) {
    .tsg-banner {
        min-height: 520px;
        padding: 44px;
    }
}

.tsg-banner__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: center;
}

@media (max-width: 900px) {
    .tsg-banner__grid {
        grid-template-columns: 1fr;
    }
}

.tsg-banner__title {
    font-size: 38px;
    font-family: 'cursive';
    line-height: 1.05;
    margin: 0;
}

@media (min-width: 768px) {
    .tsg-banner__title {
        font-size: 54px;
    }
}

.tsg-banner__sub {
    margin: 14px 0 0;
    font-size: 16px;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .tsg-banner__sub {
        font-size: 18px;
    }
}

.tsg-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.25);
}

.tsg-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.26);
    color: #fff;
}

.tsg-banner__imgWrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tsg-banner__img {
    max-width: min(360px, 92%);
    max-height: 420px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.25));
    transform: translateY(6px);
}

/* background shapes */
.tsg-shape {
    position: absolute;
    inset: auto;
    z-index: -1;
    opacity: 0.9;
    filter: blur(0px);
}

.tsg-shape--a {
    width: 520px;
    height: 520px;
    right: -220px;
    top: -220px;
    border-radius: 50%;
}

.tsg-shape--b {
    width: 440px;
    height: 440px;
    left: -220px;
    bottom: -220px;
    border-radius: 34% 66% 60% 40% / 40% 35% 65% 60%;
}

.tsg-shape--c {
    width: 220px;
    height: 220px;
    right: 12%;
    bottom: 8%;
    border-radius: 28px;
    transform: rotate(14deg);
    opacity: 0.45;
}



.tsg-banner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 420px;
    padding: 28px;
    display: grid;
    align-items: center;
    transition: opacity 280ms ease;
}

    .tsg-banner.is-fading {
        opacity: .15;
    }

@media (min-width: 768px) {
    .tsg-banner {
        min-height: 520px;
        padding: 44px;
    }
}

.tsg-banner__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: center;
}

@media (max-width: 900px) {
    .tsg-banner__grid {
        grid-template-columns: 1fr;
    }
}

.tsg-banner__title {
    font-size: 40px;
    margin: 12px 0 0;
}

.tsg-banner__sub {
    margin-top: 10px;
    opacity: .9;
}

.tsg-banner__badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(255,255,255,.25);
    display: inline-block;
}

.tsg-banner__cta {
    margin-top: 18px;
    display: inline-block;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    background: rgba(0,0,0,.25);
    color: #fff;
    font-weight: 700;
}

.tsg-banner__img {
    max-width: 360px;
    width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,.25));
}

.tsg-shape {
    position: absolute;
    z-index: -1;
}

    .tsg-shape.a {
        width: 520px;
        height: 520px;
        right: -220px;
        top: -220px;
        border-radius: 50%;
    }

    .tsg-shape.b {
        width: 420px;
        height: 420px;
        left: -200px;
        bottom: -200px;
        border-radius: 40%;
    }


.tsg-banner {
    width: 100%;
    max-width: 100%;
    min-height: 360px;
    /* Safe: height derives from width, but width is pinned */
    aspect-ratio: 16 / 10;
}
@media (min-width: 480px) {
    .tsg-banner {
        min-height: 420px;
    }
}

@media (min-width: 768px) {
    .tsg-banner {
        min-height: 520px;
        aspect-ratio: auto;
    }
}




