/* -------------------------------------------------
   FONTS + GLOBAL
------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');

body {
    overflow-x: hidden;
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
}

.spacer {
    padding: 5rem 0;
}

.spacer-banner {
    padding: 5rem 0;
}

/* -------------------------------------------------
   HEADER
------------------------------------------------- */
.header {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 9999;
    background: linear-gradient(166deg, #FFF 10%, #398BE4 150%);
}

    .header.bg-color {
        background-color: rgba(255,255,255,0.833);
    }

    .header .brand img {
        width: 100%;
    }

    .header .navItems {
        display: flex;
        gap: 1em;
        list-style: none;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .header a.nav-item {
        font-weight: 500;
        font-size:18px;
        text-decoration: none;
        color: black;
    }

        .header a.nav-item.active {
            color: #144E92;
        }

/* Scroll offset for anchor links */
#register-section,
#about-aster,
#aster_GeriatricDiabeticCare {
    scroll-margin-top: 120px;
}

.header .navbar {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .header .navbar-collapse {
        background-color: white;
        padding: 16px;
    }
}

.collapse:not(.show) {
    display: none;
}

.navbar-toggler:focus {
    outline: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
}

.theme-primary {
    padding: 6px 16px;
    text-decoration: none;
    color: #fff;
    background: #144E92;
    border-radius: 18px;
    display: flex;
    justify-content: center;
}

.theme-date {
    padding: 6px 16px;
    text-decoration: none;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(90deg, #E6695F 2.28%, #795C81 97.93%);
    pointer-events: none;
}

/* -------------------------------------------------
   BANNER + COMMON SECTIONS
------------------------------------------------- */
.background-image {
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
}

.widget-banner .widget_bannerHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    position: relative;
    z-index: 1050;
}

.widget_bannerHeader h4,
.widget_content h4 {
    color: #144E92;
}

.widget_bannerHeader .main-heading {
    font-size: 54px !important;
}

.widget_bannerHeader .sub-heading {
    font-size: 42px !important;
}

.widget_bannerHeader .theme-date {
    font-size: 24px !important;
}

.widget-banner .diabetes-logo {
    width: 20%;
}

.widget-banner .widget-tile,
.widget_content .widget-tile {
    font-style: normal;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.2;
    padding-top: 66px;
    color: #144E92;
}

    .widget-banner .widget-tile span {
        display: block;
    }

.theme-paragraph p {
    font-weight: 700;
    font-size: 20px;
    color: #000;
}

.spacer-p {
    padding-bottom: 49px;
}

/* -------------------------------------------------
   RESPONSIVE BANNER FIX FOR MOBILE
------------------------------------------------- */
@media (max-width: 700px) {
    .widget-banner .widget-tile {
        font-size: 24px !important;
        padding-top: 20px;
    }

    .widget_bannerHeader .main-heading {
        font-size: 32px !important;
    }

    .widget_bannerHeader .sub-heading {
        font-size: 22px !important;
        font-weight: 600;
    }

    .widget_bannerHeader .theme-date {
        font-size: 16px !important;
    }

    .theme-primary {
        font-size: 13px;
        width: 100%;
    }

    .theme-paragraph p {
        font-size: 16px !important;
    }
}

/* -------------------------------------------------
   ABOUT / HERO SECTION
------------------------------------------------- */
.hero-section {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 32px 16px;
}

.hero-content {
    max-width: 699px;
    width: 100%;
}

.hero-text {
    font-weight: 700;
    color: #124f91;
    font-size: 32px;
    text-align:center;
    line-height: 48px;
}
.read-more-container{
    text-align: center;
}

@media (max-width: 768px) {
    .hero-text {
        font-size: 14px !important;
        line-height: normal !important;
        line-height: 32px;
    }
}
@media (max-width: 1400px) {
.hero-text{
    font-size:22px !important;
}
}


    /* -------------------------------------------------
   TITLE BANNER
------------------------------------------------- */
    .section-title-container {
        width: 100%;
        /* display: flex; */
        text-align: center;
        justify-content: center;
        /* padding: 48px 16px; */
    }

    @media (min-width: 1023px) {
        .navbar-brand{
            width:235px !important;
        }
        .section-title-container {
            width: 52% !important;
        }
       
    }

    .section-title-wrapper {
        /* width: 689px; */
        /* height: 109px; */
        position: relative;
    }

    .section-title-bg {
        /* position: absolute; */
        top: 0;
        left: 4px;
        padding: .7rem;
        /* width: auto; */
        padding: bottom;
        /* height: 109px; */
        background: #134e8f;
        border-radius: 23px;
    }

    .section-title {
        /* position: absolute; */
        top: 21px;
        /* width: 691px; */
        /* height: 65px; */
        font-weight: 700;
        color: white;
        text-align: center;
        font-size: 50px;
        text-align: center;
    }

    @media (max-width: 768px) {
        .section-title {
            font-size: 36px;
        }
    }

    @media (max-width: 376px) {
        .section-title {
            font-size: 26px !important;
        }
    }

    /* -------------------------------------------------
   SERVICES GRID
------------------------------------------------- */
    .services-section {
        width: 100%;
        padding: 32px 16px;
    }

    .services-grid {
        margin: 7rem auto 0 auto; /* Top margin + center */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 80px 45px;
        max-width: 1400px;
        padding: 0 20px;
    }
@media (max-width: 1023px) {
    .header a.nav-item {
        font-size: 16px !important;
    }
}

    @media (max-width: 991px) {
        .services-grid {
            grid-template-columns: 1fr;
            gap: 72px;
        }
    }

    .service-card {
        position: relative;
        background: white;
        border-radius: 10px;
        box-shadow: 5px 8px 8px rgba(0,0,0,0.25);
        padding: 120px 32px 32px; /* Increased top padding for icon */
        text-align: center;
    }

    .service-icon-wrapper {
        position: absolute;
        margin-top: 30px;
        top: -85px; /* FIX: Use fixed pixel offset instead of percentage */
        left: 50%;
        transform: translateX(-50%);
        width: 136px;
        height: 136px;
        background: white;
        border: 8px solid #124f91;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Text style */
    .service-title {
        font-weight: 800;
        color: #c76d2d;
        font-size: 35px;
        margin-bottom: 24px;
    }

    .service-list {
        font-weight: 600;
        color: #124f91;
        font-size: 30px;
        line-height: 1.5;
    }

    /* ------------------ MOBILE FIXES ------------------ */
    @media (max-width: 991px) {
        .service-card {
            padding: 74px 24px 24px;
        }

        .service-icon-wrapper {
            width: 110px;
            height: 110px;
            top: -85px; /* Smaller offset for smaller icon */
            border-width: 6px;
        }

        .service-title {
            font-size: 26px;
        }

        .service-list {
            font-size: 18px;
        }
    }

    /* -------------------------------------------------
   REGISTER FORM
------------------------------------------------- */
.blue-section {
    width: 100%;
    background-image: url('/cosmos/assets/images/Background/RegisterpageBackground.png') !important;
    background-size: cover !important;
    background-position: bottom !important;
    background-repeat: no-repeat !important;
    padding: 48px 16px;
}

    .register-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }

    .register-title {
        font-weight: 700;
        color: white;
        font-size: 48px;
        text-align: center;
    }

    .register-form {
        background: #f0f7ff;
        border-radius: 45px;
        box-shadow: 0px 4px 4px rgba(0,0,0,0.25);
        padding: 15px;
    }

    .form-title {
        font-weight: 800;
        color: #124f91;
        font-size: 35px;
        text-align: center;
        margin-bottom: 32px;
    }

    .form-fields {
        display: flex;
        flex-direction: column;
        /*        gap: 24px;*/
    }

    .select-field,
    .textarea-field,
    .radio-field {
        background: white;
        border-radius: 10px;
        padding: 20px;
    }

    .field-label {
        font-weight: 700;
        font-size: 22px;
    }

    textarea {
        width: 100%;
        border: none;
        outline: none;
        resize: none;
        font-family: Lato, sans-serif;
        font-weight: 700;
        font-size: 22px;
    }

    .radio-field {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .radio-options {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
    }

    .submit-button {
        width: 100%;
        max-width: 660px; /* same width as your form container */
        height: 75px;
        background: #E87F26; /* orange color */
        border-radius: 12px;
        font-weight: 700;
        font-size: 38px; /* large text */
        color: #fff;
        border: none;
        cursor: pointer;
        display: block;
        margin: 0px auto 0 auto; /* center it horizontally + spacing above */
    }

    button[disabled] {
        opacity: 0.75;
        pointer-events: none !important;
    }

    .submit-button {
        transform: translateY(30px);
    }

    /* MOBILE FIX FORM */
    @media (max-width: 768px) {
        .register-title {
            font-size: 32px;
        }

        .form-title {
            font-size: 28px;
        }

        .field-label,
        .radio-label {
            font-size: 18px;
        }

        textarea {
            font-size: 17px;
        }

        .submit-button {
            font-size: 28px;
            height: 60px;
        }
    }
    /* Ensure floating labels always have room */
    .form-floating > .form-select {
        min-height: 3.6rem; /* force correct height */
        padding-top: 1.2rem; /* room for label */
        padding-bottom: 0.6rem;
    }

    /* Make sure label floats properly */
    .form-floating > label {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        opacity: 0.8;
    }

    /* -------------------------------------------------
   OTHER COMPONENTS
------------------------------------------------- */
    .hero-section {
        background-position: center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }

    .date-input {
        cursor: pointer !important;
    }

    .home-slide .item-home1 img {
        height: 100vh;
        width: 100%;
        object-fit: cover;
    }


    .form-floating > .form-select {
        padding-top: 2.5rem;
        padding-bottom: 0.8rem;
        font-weight: 500;
        font-size: 0.88rem;
    }

    .form-select:valid {
        font-size: 18px;
        padding-top: 1rem !important;
    }

    .form-floating > label {
        font-size: 0.95rem;
        font-weight: 400;
        padding-left: 0.75rem;
    }


    @media (max-width: 576px) {
        .form-floating > .form-select {
            font-size: 0.9rem !important;
            min-height: 3.4rem !important;
        }

        .form-floating > label {
            font-size: 0.85rem !important;
        }
    }


    /* Floating textarea wrapper */
    .textarea-wrapper {
        position: relative;
        width: 100%;
    }

    /* Textarea appearance */
    .textarea-floating {
        width: 100%;
        min-height: 120px;
        resize: vertical;
        padding: 16px 12px 10px 12px; /* top padding leaves room for label as placeholder */
        font-size: 18px;
        line-height: 1.4;
        border: 1px solid #ccc;
        border-radius: 6px;
        background: #fff;
        transition: border-color .15s ease, box-shadow .15s ease;
        box-sizing: border-box;
    }

    .textarea-label {
        position: absolute;
        left: 12px;
        top: 12px;
        color: rgb(33, 37, 41);
        font-size: 20px !important;
        font-weight: 600;
        pointer-events: none;
        transition: transform .18s ease, top .18s ease, font-size .18s ease, color .18s ease;
        /*background: rgb(240, 247, 255);*/
        padding: 0 4px;
        transform-origin: left top;
        z-index: 2;
    }


    .textarea-floating:focus {
        outline: none;
        border-color: #2b7be4;
        box-shadow: 0 0 0 3px rgba(43,123,228,0.08);
    }


    .textarea-wrapper.focused .textarea-label,
    .textarea-wrapper.filled .textarea-label {
        top: -12px;
        font-size: 18px;
        background-color: rgb(240, 247, 255);
        color: rgb(33, 37, 41);
        background: rgb(240, 247, 255);
        padding-bottom: 0px;
        border-radius: 8px;
    }

    .textarea-wrapper.focused .textarea-floating,
    .textarea-wrapper.filled .textarea-floating {
        padding-top: 24px;
    }


    @media (max-width: 576px) {
        .textarea-wrapper.focused .textarea-label,
        .textarea-wrapper.filled .textarea-label {
            font-size: 11px;
            top: -9px;
        }

        .textarea-floating {
            font-size: 14px;
        }

        .textarea-label {
            position: absolute;
            left: 4px;
            font-size: 12px !important;
            margin-right: 5px;
            border-radius: 8px;
        }

        .last-qu {
            font-size: 12px !important;
            font-weight: 700;
        }
    }

    .question-box {
        background-color: white;
        border-radius: 10px;
    }

    .submit-button-wrapper {
        margin-bottom: -10px;
    }

    .last-qu {
        font-size: 20px;
        font-weight: 700;
    }

    .read-more {
        background-color: #134E8F;
        color: #ffffff;
        border: none;
        padding-block: 5px;
        padding-inline: 40px;
        font-size: 25px;
        font-weight: 00;
        border-radius: 20px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

        .read-more:hover {
            color: white;
        }

    .cosmos-content {
        color: #124F91;
    }

    .cosmos-section {
        margin-bottom: 40px;
        padding-left: 40px
    }

    .cosmos-heading {
        font-size: 49px;
        line-height: 130%;
        letter-spacing: 0%;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .cosmos-section p {
        font-size: 36px;
        letter-spacing: 0;
        font-weight: 500;
        line-height: 130%;
        margin-bottom: 16px;
    }

    .cosmos-list {
        font-size: 36px;
        list-style: disc;
        padding-left: 20px;
    }

        .cosmos-list li {
            margin-bottom: 5px;
            letter-spacing: 0;
            font-weight: 500;
            line-height: 130%;
        }

    .overview-container {
        background-image: url("../images/overview_bg.png");
        background-repeat: no-repeat;
        background-size: cover;
    }

    @media (max-width: 1200px) {

        .cosmos-heading {
            font-size: 40px;
        }

        .cosmos-section p,
        .cosmos-list {
            font-size: 28px;
        }

        .cosmos-section {
            padding-left: 24px;
        }

        /*    .section-title-bg {
        width: 420px !important;
    }*/
        .section-title {
            font-size: 30px;
        }
    }

    /* ---------- Tablets ---------- */
    @media (max-width: 992px) {
        .overview-container {
            padding: 40px 24px !important;
            background-size: cover;
        }

        .read-more-container,
        .hero-text {
            text-align: center;
        }

        .cosmos-heading {
            font-size: 34px;
        }

        .cosmos-section p,
        .cosmos-list {
            font-size: 24px;
        }

        .cosmos-section {
            padding-left: 16px;
            margin-bottom: 32px;
        }

        /*    .section-title-bg {
        width: 360px !important;
    }*/
    }

    /* ---------- Mobile ---------- */
    @media (max-width: 768px) {
        .overview-container {
            padding: 30px 16px !important;
        }

        .section-title-bg {
            width: 100% !important;
        }

        .cosmos-heading {
            font-size: 26px;
            line-height: 1.3;
        }

        .cosmos-section p,
        .cosmos-list {
            font-size: 18px;
            line-height: 1.5;
        }

        .cosmos-section {
            padding-left: 0;
            margin-bottom: 24px;
        }

        .cosmos-list {
            padding-left: 18px;
        }

        .read-more {
            background-color: #134E8F;
            color: #ffffff;
            border: none;
            padding-block: 5px;
            padding-inline: 40px;
            font-size: 18px;
            font-weight: 00;
            border-radius: 20px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .read-more-container {
            text-align: center;
        }
    }

    /* ---------- Small mobile ---------- */
    @media (max-width: 480px) {
        .cosmos-heading {
            font-size: 22px;
        }

        .cosmos-section p,
        .cosmos-list {
            font-size: 16px;
        }
    }