
/* Gathbandhan Guide Frontend UI System v3.0.5
   Scope is added only on non-admin, non-index frontend pages.
*/
html.gg-frontend-v305 body{
    color:#1f2937;
}

/* Main master-card width matches register.php */
html.gg-frontend-v305 body .gg-master-card-v305{
    width:calc(100% - 32px) !important;
    max-width:950px !important;
    margin:34px auto 50px !important;
    padding:42px 48px !important;
    background:#ffffff !important;
    border:1px solid #eee8df !important;
    border-radius:14px !important;
    box-shadow:0 12px 34px rgba(31,41,55,.10) !important;
    float:none !important;
    clear:both !important;
    box-sizing:border-box !important;
}

/* Wrappers inside the master card must not become another white card */
html.gg-frontend-v305 .gg-master-card-v305 .panel,
html.gg-frontend-v305 .gg-master-card-v305 .well,
html.gg-frontend-v305 .gg-master-card-v305 .card,
html.gg-frontend-v305 .gg-master-card-v305 .box-shadow-light,
html.gg-frontend-v305 .gg-master-card-v305 .bg-offwhite,
html.gg-frontend-v305 .gg-master-card-v305 .border-1px-light-grey{
    box-shadow:none !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .panel,
html.gg-frontend-v305 .gg-master-card-v305 .well,
html.gg-frontend-v305 .gg-master-card-v305 .bg-offwhite{
    background:#faf7f3 !important;
    border-color:#e4d8cb !important;
}

/* Prevent old legacy grid widths/offsets from escaping the master card */
html.gg-frontend-v305 .gg-master-card-v305 > .row,
html.gg-frontend-v305 .gg-master-card-v305 .row{
    max-width:100% !important;
}
html.gg-frontend-v305 .gg-master-card-v305 > [class*="xxl-"],
html.gg-frontend-v305 .gg-master-card-v305 > [class*="xl-"],
html.gg-frontend-v305 .gg-master-card-v305 > [class*="col-"],
html.gg-frontend-v305 .gg-master-card-v305 > form,
html.gg-frontend-v305 .gg-master-card-v305 > article{
    max-width:100% !important;
}
html.gg-frontend-v305 .gg-master-card-v305 > [class*="margin-left-"],
html.gg-frontend-v305 .gg-master-card-v305 > [class*="xxl-margin-left-"],
html.gg-frontend-v305 .gg-master-card-v305 > [class*="xl-margin-left-"]{
    margin-left:0 !important;
}

/* Typography */
html.gg-frontend-v305 .gg-master-card-v305 h1,
html.gg-frontend-v305 .gg-master-card-v305 h2,
html.gg-frontend-v305 .gg-master-card-v305 h3,
html.gg-frontend-v305 .gg-master-card-v305 h4,
html.gg-frontend-v305 .gg-master-card-v305 h5,
html.gg-frontend-v305 .gg-master-card-v305 h6{
    color:#1f2937 !important;
    font-weight:700;
}
html.gg-frontend-v305 .gg-master-card-v305 p,
html.gg-frontend-v305 .gg-master-card-v305 li,
html.gg-frontend-v305 .gg-master-card-v305 td,
html.gg-frontend-v305 .gg-master-card-v305 th,
html.gg-frontend-v305 .gg-master-card-v305 label{
    line-height:1.6;
}
html.gg-frontend-v305 .gg-master-card-v305 a:not(.btn){
    color:#66451c;
}
html.gg-frontend-v305 .gg-master-card-v305 a:not(.btn):hover,
html.gg-frontend-v305 .gg-master-card-v305 a:not(.btn):focus{
    color:#4f3516;
}

/* Forms */
html.gg-frontend-v305 .gg-master-card-v305 .form-control,
html.gg-frontend-v305 .gg-master-card-v305 input[type="text"],
html.gg-frontend-v305 .gg-master-card-v305 input[type="email"],
html.gg-frontend-v305 .gg-master-card-v305 input[type="password"],
html.gg-frontend-v305 .gg-master-card-v305 input[type="tel"],
html.gg-frontend-v305 .gg-master-card-v305 input[type="number"],
html.gg-frontend-v305 .gg-master-card-v305 input[type="date"],
html.gg-frontend-v305 .gg-master-card-v305 select,
html.gg-frontend-v305 .gg-master-card-v305 textarea{
    max-width:100% !important;
    min-height:46px;
    background:#fff !important;
    color:#1f2937 !important;
    border:1px solid #d8dde6 !important;
    border-radius:9px !important;
    box-shadow:none !important;
}
html.gg-frontend-v305 .gg-master-card-v305 textarea{
    min-height:110px;
}
html.gg-frontend-v305 .gg-master-card-v305 .form-control:focus,
html.gg-frontend-v305 .gg-master-card-v305 input:focus,
html.gg-frontend-v305 .gg-master-card-v305 select:focus,
html.gg-frontend-v305 .gg-master-card-v305 textarea:focus{
    border-color:#66451c !important;
    box-shadow:0 0 0 3px rgba(102,69,28,.14) !important;
    outline:none !important;
}
html.gg-frontend-v305 .gg-master-card-v305 input::placeholder,
html.gg-frontend-v305 .gg-master-card-v305 textarea::placeholder{
    color:#66717d !important;
    opacity:1 !important;
}

/* Chosen */
html.gg-frontend-v305 .gg-master-card-v305 .chosen-container{
    width:100% !important;
    max-width:100% !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .chosen-container-single .chosen-single{
    min-height:46px !important;
    line-height:44px !important;
    border:1px solid #d8dde6 !important;
    border-radius:9px !important;
    background:#fff !important;
    color:#1f2937 !important;
    box-shadow:none !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .chosen-container-multi .chosen-choices{
    min-height:46px !important;
    border:1px solid #d8dde6 !important;
    border-radius:9px !important;
    background:#fff !important;
    box-shadow:none !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .chosen-container .chosen-results li.highlighted{
    background:#66451c !important;
    color:#fff !important;
}

/* Buttons */
html.gg-frontend-v305 .gg-master-card-v305 .btn-primary,
html.gg-frontend-v305 .gg-master-card-v305 .btn-success,
html.gg-frontend-v305 .gg-master-card-v305 input[type="submit"],
html.gg-frontend-v305 .gg-master-card-v305 button[type="submit"]{
    min-height:44px;
    border-radius:9px !important;
    background:#66451c !important;
    border-color:#66451c !important;
    color:#fff !important;
    font-weight:700 !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .btn-primary:hover,
html.gg-frontend-v305 .gg-master-card-v305 .btn-success:hover,
html.gg-frontend-v305 .gg-master-card-v305 input[type="submit"]:hover,
html.gg-frontend-v305 .gg-master-card-v305 button[type="submit"]:hover{
    background:#4f3516 !important;
    border-color:#4f3516 !important;
    color:#fff !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .btn-default,
html.gg-frontend-v305 .gg-master-card-v305 .btn-secondary{
    background:#faf7f3 !important;
    border:1px solid #cdb99e !important;
    color:#66451c !important;
    border-radius:9px !important;
}

/* Tabs */
html.gg-frontend-v305 .gg-master-card-v305 .nav-tabs{
    border-bottom:1px solid #d8cbbb !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .nav-tabs > li > a{
    color:#4f3516 !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .nav-tabs > li.active > a,
html.gg-frontend-v305 .gg-master-card-v305 .nav-tabs > li.active > a:hover{
    color:#66451c !important;
    border-bottom-color:#66451c !important;
}

/* Tables */
html.gg-frontend-v305 .gg-master-card-v305 .table-responsive{
    width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
}
html.gg-frontend-v305 .gg-master-card-v305 table{
    max-width:100% !important;
}
html.gg-frontend-v305 .gg-master-card-v305 table thead th{
    background:#f3ece4 !important;
    color:#3e2b17 !important;
    border-color:#ded4c8 !important;
}

/* Alerts */
html.gg-frontend-v305 .gg-master-card-v305 .alert{
    border-radius:9px !important;
    box-shadow:none !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .alert-info{
    background:#f3f0eb !important;
    border-color:#d9cbbb !important;
    color:#4f3516 !important;
}

/* Media */
html.gg-frontend-v305 .gg-master-card-v305 img,
html.gg-frontend-v305 .gg-master-card-v305 video,
html.gg-frontend-v305 .gg-master-card-v305 iframe{
    max-width:100%;
}

/* Never let a page-specific loader permanently cover content */
html.gg-frontend-v305 #preloader.gg-preloader-hidden-v305{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
}

@media(max-width:991px){
    html.gg-frontend-v305 body .gg-master-card-v305{
        width:calc(100% - 24px) !important;
        padding:34px 28px !important;
        margin:24px auto 40px !important;
        border-radius:12px !important;
    }
}
@media(max-width:767px){
    html.gg-frontend-v305 body .gg-master-card-v305{
        width:calc(100% - 16px) !important;
        padding:24px 16px !important;
        margin:16px auto 30px !important;
        border-radius:10px !important;
    }
    html.gg-frontend-v305 .gg-master-card-v305 .row{
        margin-left:-8px !important;
        margin-right:-8px !important;
    }
    html.gg-frontend-v305 .gg-master-card-v305 [class*="col-"]{
        max-width:100% !important;
    }
}



/* ============================================================
   Frontend UI Safety & Flat Content Layer v3.0.6
   ============================================================ */

/* Box sizing everywhere inside the frontend shell prevents overlap. */
html.gg-frontend-v305 *,
html.gg-frontend-v305 *:before,
html.gg-frontend-v305 *:after{
    box-sizing:border-box !important;
}

/* No control may overflow its parent. */
html.gg-frontend-v305 .gg-master-card-v305 input,
html.gg-frontend-v305 .gg-master-card-v305 select,
html.gg-frontend-v305 .gg-master-card-v305 textarea,
html.gg-frontend-v305 .gg-master-card-v305 button,
html.gg-frontend-v305 .gg-master-card-v305 .btn,
html.gg-frontend-v305 .gg-master-card-v305 .chosen-container{
    max-width:100% !important;
}

/* Prevent inline action groups from colliding. */
html.gg-frontend-v305 .gg-master-card-v305 .btn + .btn,
html.gg-frontend-v305 .gg-master-card-v305 button + button,
html.gg-frontend-v305 .gg-master-card-v305 input[type="submit"] + input[type="button"],
html.gg-frontend-v305 .gg-master-card-v305 input[type="button"] + input[type="submit"]{
    margin-left:10px !important;
}

/* Forms and rows need enough spacing to avoid overlapping controls. */
html.gg-frontend-v305 .gg-master-card-v305 .form-group,
html.gg-frontend-v305 .gg-master-card-v305 .row > [class*="col-"]{
    min-width:0 !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .form-group{
    margin-bottom:16px !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .row{
    row-gap:14px !important;
}

/* Action row used by JS for Save/Cancel pairs. */
html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    gap:10px !important;
    width:100% !important;
    max-width:100% !important;
    margin-top:18px !important;
    clear:both !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306 .btn,
html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306 button,
html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306 input[type="submit"],
html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306 input[type="button"],
html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306 a{
    margin:0 !important;
    flex:0 0 auto !important;
}

/* One master white card only. All nested surfaces are flat or tinted. */
html.gg-frontend-v305 .gg-master-card-v305 .card,
html.gg-frontend-v305 .gg-master-card-v305 .panel,
html.gg-frontend-v305 .gg-master-card-v305 .well,
html.gg-frontend-v305 .gg-master-card-v305 .content-card,
html.gg-frontend-v305 .gg-master-card-v305 .profile-card,
html.gg-frontend-v305 .gg-master-card-v305 .member-card,
html.gg-frontend-v305 .gg-master-card-v305 .payment-card,
html.gg-frontend-v305 .gg-master-card-v305 .box-shadow-light{
    background:#faf7f3 !important;
    border:1px solid #e4d8cb !important;
    box-shadow:none !important;
}

/* Explicitly neutralize nested white-card classes/inline surfaces. */
html.gg-frontend-v305 .gg-master-card-v305 .bg-white,
html.gg-frontend-v305 .gg-master-card-v305 [style*="background:#fff"],
html.gg-frontend-v305 .gg-master-card-v305 [style*="background: #fff"],
html.gg-frontend-v305 .gg-master-card-v305 [style*="background:#ffffff"],
html.gg-frontend-v305 .gg-master-card-v305 [style*="background: #ffffff"]{
    box-shadow:none !important;
}

/* Readable contrast on light surfaces. */
html.gg-frontend-v305 .gg-master-card-v305,
html.gg-frontend-v305 .gg-master-card-v305 .bg-white,
html.gg-frontend-v305 .gg-master-card-v305 .bg-offwhite,
html.gg-frontend-v305 .gg-master-card-v305 .panel,
html.gg-frontend-v305 .gg-master-card-v305 .well,
html.gg-frontend-v305 .gg-master-card-v305 .card{
    color:#1f2937 !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .bg-white *,
html.gg-frontend-v305 .gg-master-card-v305 .bg-offwhite *,
html.gg-frontend-v305 .gg-master-card-v305 .panel *,
html.gg-frontend-v305 .gg-master-card-v305 .well *{
    text-shadow:none !important;
}

/* White text only on known dark/accent surfaces. */
html.gg-frontend-v305 .gg-master-card-v305 .btn-primary,
html.gg-frontend-v305 .gg-master-card-v305 .btn-primary *,
html.gg-frontend-v305 .gg-master-card-v305 .btn-success,
html.gg-frontend-v305 .gg-master-card-v305 .btn-success *,
html.gg-frontend-v305 .gg-master-card-v305 .bg-orange,
html.gg-frontend-v305 .gg-master-card-v305 .bg-orange *,
html.gg-frontend-v305 .gg-master-card-v305 [style*="#66451c"]{
    color:#ffffff !important;
}

/* Dark text must not remain on known dark backgrounds. */
html.gg-frontend-v305 .gg-master-card-v305 .bg-dark,
html.gg-frontend-v305 .gg-master-card-v305 .bg-black,
html.gg-frontend-v305 .gg-master-card-v305 .bg-primary,
html.gg-frontend-v305 .gg-master-card-v305 .bg-success,
html.gg-frontend-v305 .gg-master-card-v305 .bg-orange{
    color:#ffffff !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .bg-dark *,
html.gg-frontend-v305 .gg-master-card-v305 .bg-black *,
html.gg-frontend-v305 .gg-master-card-v305 .bg-primary *,
html.gg-frontend-v305 .gg-master-card-v305 .bg-success *,
html.gg-frontend-v305 .gg-master-card-v305 .bg-orange *{
    color:#ffffff !important;
}

/* Prevent long words/emails/IDs from causing layout overflow. */
html.gg-frontend-v305 .gg-master-card-v305 p,
html.gg-frontend-v305 .gg-master-card-v305 td,
html.gg-frontend-v305 .gg-master-card-v305 th,
html.gg-frontend-v305 .gg-master-card-v305 label,
html.gg-frontend-v305 .gg-master-card-v305 a{
    overflow-wrap:anywhere;
}

/* Responsive action pairs */
@media(max-width:767px){
    html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306{
        flex-direction:column !important;
        align-items:stretch !important;
    }
    html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306 .btn,
    html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306 button,
    html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306 input[type="submit"],
    html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306 input[type="button"],
    html.gg-frontend-v305 .gg-master-card-v305 .gg-action-row-v306 a{
        width:100% !important;
        text-align:center !important;
    }
}



/* ============================================================
   Member Content Cleanup v3.0.7
   Removes duplicate internal header/menu UI and presents content
   directly inside the existing master card.
   ============================================================ */
html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-intro-v307{
    display:flex !important;
    align-items:center !important;
    gap:18px !important;
    width:100% !important;
    margin:0 0 22px !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-intro-icon-v307{
    width:60px !important;
    height:60px !important;
    flex:0 0 60px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    background:#66451c !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-intro-icon-v307 i{
    color:#ffffff !important;
    font-size:22px !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-intro-copy-v307{
    min-width:0 !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-intro-copy-v307 > span{
    display:block !important;
    margin-bottom:4px !important;
    color:#66451c !important;
    font-size:12px !important;
    font-weight:800 !important;
    letter-spacing:.08em !important;
    text-transform:uppercase !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-intro-copy-v307 h1{
    margin:0 0 5px !important;
    color:#1f2937 !important;
    font-size:27px !important;
    line-height:1.25 !important;
    font-weight:700 !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-intro-copy-v307 p{
    margin:0 !important;
    color:#59636f !important;
    font-size:14px !important;
    line-height:1.6 !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-divider-v307{
    display:flex !important;
    align-items:center !important;
    gap:14px !important;
    width:100% !important;
    margin:0 0 22px !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-divider-v307:before,
html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-divider-v307:after{
    content:"" !important;
    height:1px !important;
    flex:1 !important;
    background:#ded4c8 !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-divider-v307 span{
    color:#66451c !important;
    font-size:13px !important;
    font-weight:700 !important;
    white-space:nowrap !important;
}

/* The old duplicate member header must never render within a master card. */
html.gg-frontend-v305 .gg-master-card-v305 .header-v2,
html.gg-frontend-v305 .gg-master-card-v305 #myHeader,
html.gg-frontend-v305 .gg-master-card-v305 #myHeader2,
html.gg-frontend-v305 .gg-master-card-v305 .sidepanel,
html.gg-frontend-v305 .gg-master-card-v305 .overlay{
    display:none !important;
}

/* Flatten legacy containers nested inside the master card. */
html.gg-frontend-v305 .gg-master-card-v305 > .container,
html.gg-frontend-v305 .gg-master-card-v305 > .container-fluid,
html.gg-frontend-v305 .gg-master-card-v305 .row > .container,
html.gg-frontend-v305 .gg-master-card-v305 .row > .container-fluid{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

/* No nested white content cards in these cleaned member pages. */
html.gg-frontend-v305 .gg-master-card-v305 .bg-white,
html.gg-frontend-v305 .gg-master-card-v305 .neBoxShdOffwhite-1px{
    box-shadow:none !important;
}
html.gg-frontend-v305 .gg-master-card-v305 .neBoxShdOffwhite-1px{
    background:#faf7f3 !important;
    border:1px solid #e4d8cb !important;
    border-radius:9px !important;
}

@media(max-width:767px){
    html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-intro-v307{
        align-items:flex-start !important;
        gap:13px !important;
    }
    html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-intro-icon-v307{
        width:50px !important;
        height:50px !important;
        flex-basis:50px !important;
    }
    html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-intro-copy-v307 h1{
        font-size:23px !important;
    }
    html.gg-frontend-v305 .gg-master-card-v305 .gg-member-page-divider-v307 span{
        white-space:normal !important;
        text-align:center !important;
    }
}
