
/* Scoped education detail styling, matching the approved donate-products-detail layout */
#tg-main.education-detail-redesign{background:#fff8fb;padding-bottom:28px;color:#17365d}

#tg-main.education-detail-redesign .banner-image>figure{position:relative;margin:0}
#tg-main.education-detail-redesign .banner-image>figure>img{display:block;width:100%;height:clamp(220px,24vw,300px);object-fit:cover;object-position:center}
#tg-main.education-detail-redesign .banner-image figcaption{position:absolute;inset:0;display:flex;align-items:flex-end;padding:20px 0;background:linear-gradient(90deg,rgba(13,30,52,.78),rgba(13,30,52,.28) 65%,rgba(13,30,52,.08))}

#tg-main.education-detail-redesign .tg-figcaptioncontent h1{color:#fff;font-size:clamp(25px,2.7vw,36px);line-height:1.2;font-weight:800;margin:0 0 13px;overflow-wrap:anywhere}
#tg-main.education-detail-redesign .tg-donationgoal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;max-width:700px;margin:0 0 12px}
#tg-main.education-detail-redesign .tg-donationgoal .tg-goal,#tg-main.education-detail-redesign .tg-donationgoal .tg-raised,#tg-main.education-detail-redesign .education-hero-remaining{display:flex;flex-direction:column;gap:4px;min-width:0;padding:9px 11px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.23);border-radius:10px}
#tg-main.education-detail-redesign .tg-donationgoal h4,#tg-main.education-detail-redesign .education-hero-remaining span{margin:0;color:#fff;font-size:12px}
#tg-main.education-detail-redesign .tg-donationgoal span,#tg-main.education-detail-redesign .education-hero-remaining strong{color:#fff;font-size:17px;font-weight:800;overflow-wrap:anywhere}
#tg-main.education-detail-redesign .tg-donationgoal .tg-skillbar{grid-column:1/-1;height:7px;margin:0;border-radius:50px;overflow:hidden;background:rgba(255,255,255,.25)}
#tg-main.education-detail-redesign .tg-donationgoal .tg-skillbarbar{height:100%;background:#ed287b;border-radius:50px}
#tg-main.education-detail-redesign .tg-figcaptioncontent .tg-btn{margin:0 7px 0 0;padding:10px 16px}
#tg-main.education-detail-redesign .tg-twocolumns{padding:0}

#tg-main.education-detail-redesign .education-main-column{grid-column:1;grid-row:1;float:none;width:auto;min-width:0;padding:0;margin:0}

#tg-main.education-detail-redesign .education-share-card h3{margin:0 0 10px;color:#17365d;font-size:14px;font-weight:800;line-height:1.35}
#tg-main.education-detail-redesign .education-share-card .sharethis-inline-share-buttons{display:block!important;width:100%;min-height:38px;text-align:left!important}
#tg-main.education-detail-redesign .education-share-card .st-btn{margin:0 6px 0 0!important}
#tg-main.education-detail-redesign .education-sidebar-column{grid-column:2;grid-row:1/span 2;float:none;width:auto;min-width:0;padding:0;margin:0}
#tg-main.education-detail-redesign #tg-content,#tg-main.education-detail-redesign .tg-themetabs{width:100%;min-width:0}
#tg-main.education-detail-redesign .tg-themetabs{overflow:hidden;background:#fff;border:1px solid #f2dce7;border-radius:12px;box-shadow:0 5px 18px rgba(30,18,30,.04)}
#tg-main.education-detail-redesign .tg-themetabnav{display:flex;flex-wrap:nowrap;gap:0;margin:0;padding:0;background:#fff;border-bottom:1px solid #f2dce7}
#tg-main.education-detail-redesign .tg-themetabnav>li{flex:1 1 0;min-width:0}
#tg-main.education-detail-redesign .tg-themetabnav>li>a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 5px;text-align:center;font-size:11px;line-height:1.3;white-space:normal}
#tg-main.education-detail-redesign .tg-themetabnav>li.active>a{background:#ed287b;color:#fff}
#tg-main.education-detail-redesign .tg-themetabcontent{padding:14px}
#tg-main.education-detail-redesign .tg-tabpanetitle h2{color:#17365d;font-size:19px;line-height:1.3;margin:0 0 12px}
#tg-main.education-detail-redesign .tg-description{color:#4d5b70;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
#tg-main.education-detail-redesign #carousel-example-generic{position:relative;margin:0 0 14px;border:1px solid #f2dce7;border-radius:10px;overflow:hidden;background:#fbf3f7}
#tg-main.education-detail-redesign #carousel-example-generic .carousel-inner>.item{text-align:center}
#tg-main.education-detail-redesign #carousel-example-generic .carousel-inner>.item>img{display:inline-block;width:auto;max-width:100%;height:clamp(190px,22vw,270px);object-fit:contain;padding:8px}
#tg-main.education-detail-redesign #carousel-example-generic .carousel-control{width:36px;background:transparent;color:#17365d;text-shadow:none;opacity:.9}
#tg-main.education-detail-redesign #carousel-example-generic .carousel-control .glyphicon{top:50%;margin-top:-14px;padding:7px;background:#fff;border-radius:50%;box-shadow:0 2px 8px #17365d18}
#tg-main.education-detail-redesign .education-fee-card{margin:14px 0;background:#fff;border:1px solid #f2dce7;border-radius:10px;overflow:hidden}
#tg-main.education-detail-redesign .education-fee-date{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;padding:12px 14px;border-bottom:1px solid #f3e7ed}
#tg-main.education-detail-redesign .education-meta-label,#tg-main.education-detail-redesign .education-fee-item span{color:#7b8798;font-size:10px}
#tg-main.education-detail-redesign .education-fee-date strong{font-size:12px;overflow-wrap:anywhere}
#tg-main.education-detail-redesign .education-fee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
#tg-main.education-detail-redesign .education-fee-item{display:flex;flex-direction:column;gap:4px;padding:11px 14px;min-width:0;border-bottom:1px solid #f3e7ed}
#tg-main.education-detail-redesign .education-fee-item:nth-child(odd){border-right:1px solid #f3e7ed}
#tg-main.education-detail-redesign .education-fee-item strong{color:#17365d;font-size:13px;overflow-wrap:anywhere}
#tg-main.education-detail-redesign .education-fee-remaining{background:#fff1f7}
#tg-main.education-detail-redesign .education-fee-remaining strong{color:#d91d6c}
#tg-main.education-detail-redesign .tg-campaigndocument{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #f2dce7;border-radius:10px;background:#fff;min-width:0}
#tg-main.education-detail-redesign .tg-campaigndocument h3{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}
#tg-main.education-detail-redesign .tg-campaigndocument .fa-file-pdf-o{color:#e8297b;font-size:20px}
#tg-main.education-detail-redesign .tg-donors{display:grid;gap:8px}
#tg-main.education-detail-redesign .tg-donor{display:flex;align-items:center;gap:8px;min-width:0;padding:9px;border:1px solid #f2dce7;border-radius:10px;background:#fff}
#tg-main.education-detail-redesign .tg-donor figure{flex:0 0 34px;width:34px;height:34px;margin:0;overflow:hidden;border-radius:50%}
#tg-main.education-detail-redesign .tg-donor figure img{width:100%;height:100%;object-fit:cover}
#tg-main.education-detail-redesign .tg-donorcontent{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:1;min-width:0}
#tg-main.education-detail-redesign .tg-donorcontent .tg-leftbox,#tg-main.education-detail-redesign .tg-donorcontent .tg-rightbox{width:auto!important;min-width:0}
#tg-main.education-detail-redesign .tg-donorcontent h6{margin:0;font-size:11px;overflow-wrap:anywhere}
#tg-main.education-detail-redesign .tg-donorcontent .tg-rightbox h6{color:#d91d6c;white-space:nowrap}
#tg-main.education-detail-redesign .rank-box{flex:0 0 20px;font-size:13px}
#tg-main.education-detail-redesign .education-contribute-card,#tg-main.education-detail-redesign .education-progress-card,#tg-main.education-detail-redesign .education-sidebar-column .tg-widget{width:100%;min-width:0;margin:0 0 12px;overflow:hidden;background:#fff;border:1px solid #f2dce7;border-radius:12px;box-shadow:0 5px 18px rgba(30,18,30,.04)}
#tg-main.education-detail-redesign .education-contribute-card{padding:16px 14px}
#tg-main.education-detail-redesign .education-contribute-card .tg-sectiontitle{margin:0 0 14px;padding:0 0 10px;border-bottom:1px solid #f2dce7}
#tg-main.education-detail-redesign .education-contribute-card .tg-sectiontitle h2{margin:0;color:#17365d;font-family:Georgia,serif;font-size:20px;font-weight:700}
#tg-main.education-detail-redesign .education-contribute-card .tg-sectiontitle:after{content:"";display:block;width:48px;height:3px;margin-top:8px;background:#ed287b;border-radius:4px}
#tg-main.education-detail-redesign .education-contribute-card .tg-steptitle h3{margin:0 0 12px;padding-bottom:11px;border-bottom:1px solid #f2dce7;color:#17365d;font-size:12px;line-height:1.45}
#tg-main.education-detail-redesign .education-contribute-card .tg-amountboxes{width:100%;margin:0}
#tg-main.education-detail-redesign .education-contribute-card .tg-amountboxes>.row{display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px;margin:0!important}
#tg-main.education-detail-redesign .education-contribute-card .tg-amountboxes>.row>[class*="col-"]{float:none!important;width:100%!important;min-width:0;padding:10px !important;margin:0!important}
#tg-main.education-detail-redesign .education-contribute-card label{display:block;margin:0 0 6px;font-size:11px;font-weight:700}
#tg-main.education-detail-redesign .education-contribute-card select.form-control{height:44px;width:100%;border:1px solid #ead4df;border-radius:8px;box-shadow:none;padding:8px 10px;font-size:11px}
#tg-main.education-detail-redesign #calculated_amount_box{margin:12px 0 0!important;padding:12px!important;background:#fff5fa!important;border:1px solid #f2dce7!important;border-radius:10px;overflow-wrap:anywhere;font-size:12px}
#tg-main.education-detail-redesign #calculated_amount{color:#e21f76;font-size:19px!important}
#tg-main.education-detail-redesign #calculation_text{color:#53627a;font-size:10px}
#tg-main.education-detail-redesign #rd{width:100%;margin:12px 0 0!important;padding:12px;border:1px solid #f2dce7;border-radius:10px;background:#fff;box-sizing:border-box}
#tg-main.education-detail-redesign #contribute_action{display:flex!important;flex-wrap:wrap;gap:8px;width:100%;margin:0!important}
#tg-main.education-detail-redesign .education-auth-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
#tg-main.education-detail-redesign .education-auth-button,#tg-main.education-detail-redesign #loggedInContributeBtn{display:inline-flex!important;flex:1 1 100px;align-items:center;justify-content:center;min-width:0;min-height:40px;max-width:100%;margin:0!important;padding:9px 10px;border:0;border-radius:8px;background:#ed287b;color:#fff!important;font-size:10px;font-weight:800;text-align:center;text-decoration:none;white-space:normal;line-height:1.3}
#tg-main.education-detail-redesign .education-progress-heading,#tg-main.education-detail-redesign .education-sidebar-column .tg-widgettitle{padding:12px 14px;border-bottom:1px solid #f2dce7;background:#fff8fb}
#tg-main.education-detail-redesign .education-progress-heading h3,#tg-main.education-detail-redesign .education-sidebar-column .tg-widgettitle h3{margin:0;color:#17365d;font-family:Georgia,serif;font-size:14px;font-weight:700}
#tg-main.education-detail-redesign .education-progress-body,#tg-main.education-detail-redesign .education-sidebar-column .tg-widgetcontent{padding:12px 14px}

#tg-main.education-detail-redesign .education-progress-amounts>span{min-width:0;font-size:10px;overflow-wrap:anywhere}
#tg-main.education-detail-redesign .education-progress-amounts strong{color:#ed287b;font-size:12px}
#tg-main.education-detail-redesign .education-progress-amounts small{color:#6d7788;font-size:9px}
#tg-main.education-detail-redesign .education-progress-track{height:7px;margin:0 0 8px;border-radius:50px;background:#f8e5ee;overflow:hidden}
#tg-main.education-detail-redesign .education-progress-track span{display:block;height:100%;border-radius:50px;background:linear-gradient(90deg,#ed287b,#f35b9c)}
#tg-main.education-detail-redesign .education-progress-meta{display:flex;justify-content:space-between;gap:8px;padding-bottom:10px;border-bottom:1px solid #f2dce7;color:#6d7788;font-size:9px}
#tg-main.education-detail-redesign .education-progress-meta strong{color:#ed287b}
#tg-main.education-detail-redesign .education-progress-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding-top:10px}
#tg-main.education-detail-redesign .education-progress-stats>div{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;text-align:center}
#tg-main.education-detail-redesign .education-progress-stats>div+div{border-left:1px solid #f2dce7}
#tg-main.education-detail-redesign .education-stat-icon{color:#63748c;font-size:15px;line-height:1.1}
#tg-main.education-detail-redesign .education-progress-stats strong{font-size:12px;color:#17365d}
#tg-main.education-detail-redesign .education-progress-stats small{font-size:9px;color:#6d7788}
#tg-main.education-detail-redesign .education-sidebar-column #tg-sidebar{display:flex;flex-direction:column;gap:0;width:100%;min-width:0}
#tg-main.education-detail-redesign .education-sidebar-column .tg-widgetcontent>ul{margin:0;padding:0;list-style:none}
#tg-main.education-detail-redesign .education-sidebar-column .tg-widgetcontent>ul>li{display:flex;gap:9px;align-items:flex-start;min-width:0}
#tg-main.education-detail-redesign .education-sidebar-column .tg-widgetcontent figure{flex:0 0 48px;width:48px;height:48px;margin:0;overflow:hidden;border-radius:50%}
#tg-main.education-detail-redesign .education-sidebar-column .tg-widgetcontent figure img{width:100%!important;height:100%;object-fit:cover}
#tg-main.education-detail-redesign .education-sidebar-column .tg-causecontent{flex:1;min-width:0}
#tg-main.education-detail-redesign .education-sidebar-column .tg-causecontent h4{margin:0 0 6px;font-size:12px;overflow-wrap:anywhere}
#tg-main.education-detail-redesign .education-sidebar-column .tg-postmetadata{display:grid;gap:5px;margin:0;padding:0;list-style:none}
#tg-main.education-detail-redesign .education-sidebar-column .tg-postmetadata li{font-size:10px;overflow-wrap:anywhere}
#tg-main.education-detail-redesign .education-sidebar-column .tg-widgetrelatedcauses .tg-donors{padding:0 12px 12px}
#tg-main.education-detail-redesign .tg-commentsarea .tg-comment{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid #f2dce7}
#tg-main.education-detail-redesign .tg-commentsarea .tg-comment figure{flex:0 0 42px;width:42px;height:42px;overflow:hidden;border-radius:50%;margin:0}
#tg-main.education-detail-redesign .tg-commentsarea .tg-comment figure img{width:100%!important;height:100%;object-fit:cover}
#tg-main.education-detail-redesign .tg-formleavecomment .form-control{min-height:42px;border:1px solid #ead4df;border-radius:8px;box-shadow:none;font-size:12px}
#tg-main.education-detail-redesign .tg-formleavecomment textarea.form-control{min-height:110px;resize:vertical}
@media (max-width: 640px){
 #tg-main.education-detail-redesign .tg-detailpage > .container > .row{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;width:calc(100% - 32px);gap:14px;margin-top:16px}
 #tg-main.education-detail-redesign .education-main-column{grid-column:1;grid-row:1}
 #tg-main.education-detail-redesign .education-share-card{grid-column:1;grid-row:2;margin-top:0}
 #tg-main.education-detail-redesign .education-sidebar-column{grid-column:1;grid-row:3}
}
@media(max-width:767px){
 #tg-main.education-detail-redesign .banner-image>figure>img{height:270px}
 #tg-main.education-detail-redesign .banner-image figcaption{padding:16px 0}
 #tg-main.education-detail-redesign .tg-donationgoal{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #tg-main.education-detail-redesign .tg-donationgoal .tg-skillbar{grid-column:1/-1}
 #tg-main.education-detail-redesign .tg-detailpage > .container > .row{width:calc(100% - 24px);margin-top:12px}
 #tg-main.education-detail-redesign .tg-themetabnav{flex-wrap:wrap}
 #tg-main.education-detail-redesign .tg-themetabnav>li{flex:1 1 45%}
 #tg-main.education-detail-redesign .tg-themetabcontent{padding:12px}
 #tg-main.education-detail-redesign .education-contribute-card{padding:14px 12px}
 #tg-main.education-detail-redesign .education-share-card{padding:13px}
}


/* FINAL LIVE REPAIR — full-width mobile layout and stable reference columns */
#tg-main.education-detail-redesign .tg-detailpage > .container > .row {display:grid;grid-template-columns:minmax(0,1.85fr) minmax(260px,.95fr);grid-template-rows:auto auto;column-gap:18px;row-gap:0;align-items:start;width:min(1040px,calc(100% - 40px));margin:18px auto 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1.85fr) minmax(260px, .95fr) !important;
    grid-template-rows: auto !important;
    column-gap: 20px !important;
    row-gap: 0 !important;
    align-items: start !important;
    width: min(1120px, calc(100% - 40px)) !important;
    max-width: 1120px !important;
    margin: 20px auto 0 !important;
    box-sizing: border-box !important;
}
#tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-main-column {
    grid-column: 1 !important;
    grid-row: 1 !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
#tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-sidebar-column {
    grid-column: 2 !important;
    grid-row: 1 !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
#tg-main.education-detail-redesign .education-main-column,
#tg-main.education-detail-redesign .education-sidebar-column,
#tg-main.education-detail-redesign #tg-content,
#tg-main.education-detail-redesign .tg-themetabs,
#tg-main.education-detail-redesign #tg-sidebar {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
#tg-main.education-detail-redesign .education-share-card {grid-column:1;grid-row:2;align-self:start;width:100%;min-width:0;margin:10px 0 0;padding:14px 16px;background:#fff;border:1px solid #f2dce7;border-radius:12px;box-shadow:0 5px 18px rgba(30,18,30,.04);text-align:left;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 10px 0 0 !important;
}
#tg-main.education-detail-redesign .education-contribute-card,
#tg-main.education-detail-redesign .education-progress-card,
#tg-main.education-detail-redesign .education-sidebar-column .tg-widget {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
#tg-main.education-detail-redesign .education-progress-amounts {display:flex;justify-content:space-between;gap:8px;margin-bottom:10px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
}
#tg-main.education-detail-redesign .education-progress-amounts > span {
    min-width: 0 !important;
    max-width: 49% !important;
    overflow-wrap: anywhere !important;
}
#tg-main.education-detail-redesign .education-progress-amounts > span:last-child {
    text-align: right !important;
}
#tg-main.education-detail-redesign .education-contribute-card .tg-amountboxes > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
}
#tg-main.education-detail-redesign .education-contribute-card .tg-amountboxes > .row > [class*="col-"] {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
#tg-main.education-detail-redesign #contribute_action,
#tg-main.education-detail-redesign .education-auth-actions {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#tg-main.education-detail-redesign .education-auth-button,
#tg-main.education-detail-redesign #loggedInContributeBtn {
    flex: 1 1 110px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
@media (max-width: 767px) {
    #tg-main.education-detail-redesign .banner-image > figure > img {
        height: 250px !important;
    }
    #tg-main.education-detail-redesign .banner-image figcaption {
        padding: 14px 0 !important;
    }
    #tg-main.education-detail-redesign .tg-donationgoal {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 100% !important;
    }
    #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        width: calc(100% - 24px) !important;
        max-width: none !important;
        margin: 12px auto 0 !important;
        column-gap: 0 !important;
        row-gap: 12px !important;
    }
    #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-main-column {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-sidebar-column {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    #tg-main.education-detail-redesign .tg-themetabnav {
        flex-wrap: wrap !important;
    }
    #tg-main.education-detail-redesign .tg-themetabnav > li {
        flex: 1 1 45% !important;
    }
    #tg-main.education-detail-redesign .tg-themetabcontent {
        padding: 12px !important;
    }
    #tg-main.education-detail-redesign .education-contribute-card {
        padding: 14px 12px !important;
    }
}
@media (max-width: 420px) {
    #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
        width: calc(100% - 20px) !important;
    }
    #tg-main.education-detail-redesign .tg-donationgoal .tg-goal,
    #tg-main.education-detail-redesign .tg-donationgoal .tg-raised,
    #tg-main.education-detail-redesign .education-hero-remaining {
        padding: 7px !important;
    }
}


/* Final supporting polish */
#tg-main.education-detail-redesign .tg-description p { overflow-wrap:anywhere; }
#tg-main.education-detail-redesign .tg-donationgoal .tg-goal,
#tg-main.education-detail-redesign .tg-donationgoal .tg-raised,
#tg-main.education-detail-redesign .education-hero-remaining { min-width:0; }
#tg-main.education-detail-redesign .tg-figcaptioncontent {color:#fff;max-width:760px; width:100%; }
#tg-main.education-detail-redesign .education-progress-meta > span { overflow-wrap:anywhere; }


/* DOM STRUCTURE FIX: main and sidebar are now sibling columns in the same row */
@media (min-width: 701px) {
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1.85fr) minmax(260px, .95fr) !important;
    grid-template-rows: auto !important;
    column-gap: 20px !important;
    row-gap: 0 !important;
    align-items: start !important;
    width: min(1120px, calc(100% - 40px)) !important;
    max-width: 1120px !important;
    margin: 20px auto 0 !important;
    float: none !important;
    box-sizing: border-box !important;
  }
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-main-column {
    grid-column: 1 !important;
    grid-row: 1 !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-sidebar-column {
    grid-column: 2 !important;
    grid-row: 1 !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
@media (max-width: 700px) {
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin: 12px auto 0 !important;
    gap: 12px !important;
  }
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-main-column {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-sidebar-column {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}


/* HERO ONLY: match the Donate Products Detail page's full-width title banner */
#tg-main.education-detail-redesign .banner-image {position:relative;overflow:hidden;
    position: relative !important;
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    left: 50% !important;
    margin-left: -50vw !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #24334b !important;
}
#tg-main.education-detail-redesign .banner-image > figure {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: clamp(300px, 20vw, 390px) !important;
    margin: 0 !important;
    overflow: hidden !important;
}
#tg-main.education-detail-redesign .banner-image > figure > img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center 42% !important;
}
#tg-main.education-detail-redesign .banner-image > figure > figcaption {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 0 38px !important;
    margin: 0 !important;
    background: linear-gradient(90deg, rgba(13, 28, 49, .78) 0%, rgba(13, 28, 49, .48) 42%, rgba(13, 28, 49, .12) 100%) !important;
    box-sizing: border-box !important;
}
#tg-main.education-detail-redesign .banner-image > figure > figcaption > .container {
    width: min(1120px, calc(100% - 48px)) !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
#tg-main.education-detail-redesign .banner-image > figure > figcaption > .container > .row,
#tg-main.education-detail-redesign .banner-image .tg-figcaptioncontent {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
#tg-main.education-detail-redesign .banner-image .tg-figcaptioncontent h1 {
    max-width: 780px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: clamp(32px, 3.2vw, 54px) !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em !important;
    text-shadow: 0 2px 14px rgba(0,0,0,.2) !important;
}
#tg-main.education-detail-redesign .banner-image .tg-donationgoal,
#tg-main.education-detail-redesign .banner-image .tg-btnshare,
#tg-main.education-detail-redesign .banner-image .tg-figcaptioncontent > .tg-btn {
    display: none !important;
}
@media (max-width: 767px) {
    #tg-main.education-detail-redesign .banner-image > figure {
        height: 290px !important;
    }
    #tg-main.education-detail-redesign .banner-image > figure > figcaption {
        padding-bottom: 26px !important;
    }
    #tg-main.education-detail-redesign .banner-image > figure > figcaption > .container {
        width: calc(100% - 32px) !important;
    }
    #tg-main.education-detail-redesign .banner-image .tg-figcaptioncontent h1 {
        font-size: clamp(28px, 7vw, 38px) !important;
    }
}


/* === TYPOGRAPHY + COMPONENT SCALE MATCH ===
   Match the Donate Products Detail page's readable font and card sizing.
   Scoped only to Education Detail; existing layout and functionality remain unchanged. */
#tg-main.education-detail-redesign {
  font-size: 15px !important;
  line-height: 1.65 !important;
}
#tg-main.education-detail-redesign .tg-figcaptioncontent h1 {
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1.15 !important;
}
#tg-main.education-detail-redesign .tg-themetabnav > li > a {
  min-height: 50px !important;
  padding: 10px 7px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
#tg-main.education-detail-redesign .tg-themetabcontent {
  padding: clamp(18px, 3vw, 30px) !important;
}
#tg-main.education-detail-redesign .tg-tabpanetitle h2 {
  font-size: 22px !important;
  line-height: 1.3 !important;
  margin: 0 0 20px !important;
}
#tg-main.education-detail-redesign .tg-description {
  font-size: 15px !important;
  line-height: 1.8 !important;
}
#tg-main.education-detail-redesign .education-fee-date {
  padding: 15px 18px !important;
  gap: 6px 14px !important;
}
#tg-main.education-detail-redesign .education-meta-label,
#tg-main.education-detail-redesign .education-fee-item span {
  font-size: 12px !important;
  line-height: 1.4 !important;
}
#tg-main.education-detail-redesign .education-fee-date strong,
#tg-main.education-detail-redesign .education-fee-item strong {
  font-size: 15px !important;
  line-height: 1.4 !important;
}
#tg-main.education-detail-redesign .education-fee-item {
  gap: 6px !important;
  padding: 15px 18px !important;
  min-height: 82px !important;
}
#tg-main.education-detail-redesign .tg-campaigndocument {
  gap: 12px !important;
  padding: 14px 16px !important;
}
#tg-main.education-detail-redesign .tg-campaigndocument h3 {
  font-size: 14px !important;
  line-height: 1.45 !important;
}
#tg-main.education-detail-redesign .tg-donor {
  gap: 11px !important;
  padding: 11px !important;
}
#tg-main.education-detail-redesign .tg-donor figure {
  flex-basis: 44px !important;
  width: 44px !important;
  height: 44px !important;
}
#tg-main.education-detail-redesign .tg-donorcontent h6 {
  font-size: 13px !important;
  line-height: 1.4 !important;
}
#tg-main.education-detail-redesign .rank-box {
  flex-basis: 28px !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 14px !important;
}
#tg-main.education-detail-redesign .education-contribute-card {
  padding: 22px 20px !important;
}
#tg-main.education-detail-redesign .education-contribute-card .tg-sectiontitle h2 {
  font-size: 25px !important;
  line-height: 1.25 !important;
}
#tg-main.education-detail-redesign .education-contribute-card .tg-steptitle h3 {
  font-size: 15px !important;
  line-height: 1.4 !important;
}
#tg-main.education-detail-redesign .education-contribute-card label {
  font-size: 13px !important;
  line-height: 1.4 !important;
}
#tg-main.education-detail-redesign .education-contribute-card select.form-control {
  min-height: 46px !important;
  height: auto !important;
  padding: 11px 13px !important;
  font-size: 13px !important;
}
#tg-main.education-detail-redesign #calculated_amount_box {
  padding: 14px 16px !important;
  font-size: 14px !important;
}
#tg-main.education-detail-redesign #calculated_amount {
  font-size: 22px !important;
}
#tg-main.education-detail-redesign #calculation_text {
  font-size: 12px !important;
}
#tg-main.education-detail-redesign .education-auth-button,
#tg-main.education-detail-redesign #loggedInContributeBtn {
  min-height: 46px !important;
  padding: 12px 14px !important;
  font-size: 12px !important;
}
#tg-main.education-detail-redesign .education-progress-heading,
#tg-main.education-detail-redesign .education-sidebar-column .tg-widgettitle {
  padding: 17px 19px !important;
}
#tg-main.education-detail-redesign .education-progress-heading h3,
#tg-main.education-detail-redesign .education-sidebar-column .tg-widgettitle h3 {
  font-size: 18px !important;
  line-height: 1.35 !important;
}
#tg-main.education-detail-redesign .education-progress-body,
#tg-main.education-detail-redesign .education-sidebar-column .tg-widgetcontent {
  padding: 18px !important;
}
#tg-main.education-detail-redesign .education-progress-amounts > span {
  font-size: 12px !important;
  line-height: 1.4 !important;
}
#tg-main.education-detail-redesign .education-progress-amounts strong {
  font-size: 15px !important;
}
#tg-main.education-detail-redesign .education-progress-amounts small {
  font-size: 11px !important;
}
#tg-main.education-detail-redesign .education-progress-track {
  height: 10px !important;
}
#tg-main.education-detail-redesign .education-progress-meta {
  font-size: 12px !important;
  line-height: 1.4 !important;
}
#tg-main.education-detail-redesign .education-progress-stats strong {
  font-size: 14px !important;
}
#tg-main.education-detail-redesign .education-progress-stats small {
  font-size: 11px !important;
}
#tg-main.education-detail-redesign .education-sidebar-column .tg-causecontent h4 {
  font-size: 15px !important;
  line-height: 1.4 !important;
}
#tg-main.education-detail-redesign .education-sidebar-column .tg-postmetadata li {
  font-size: 12px !important;
}
#tg-main.education-detail-redesign .tg-formleavecomment .form-control {
  font-size: 14px !important;
  min-height: 46px !important;
}
#tg-main.education-detail-redesign .tg-formleavecomment textarea.form-control {
  min-height: 120px !important;
}
@media (max-width: 767px) {
  #tg-main.education-detail-redesign .tg-themetabcontent {
    padding: 16px !important;
  }
  #tg-main.education-detail-redesign .education-contribute-card {
    padding: 18px 16px !important;
  }
  #tg-main.education-detail-redesign .education-fee-item {
    padding: 12px !important;
  }
}


/* === Final layout alignment with causedetail.php and donate-products-detail.php === */
html body #tg-main.education-detail-redesign {
  display:block!important; width:100%!important; max-width:100%!important;
  margin:0!important; padding:0 0 32px!important; box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .banner-image {
  position:relative!important; display:block!important; width:100vw!important;
  max-width:100vw!important; left:50%!important; margin-left:-50vw!important;
  margin-right:0!important; padding:0!important; overflow:hidden!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .banner-image > figure {
  position:relative!important; display:block!important; width:100%!important;
  height:clamp(205px,22vw,300px)!important; margin:0!important; overflow:hidden!important;
}
html body #tg-main.education-detail-redesign .banner-image > figure > img {
  position:absolute!important; inset:0!important; display:block!important;
  width:100%!important; height:100%!important; max-width:none!important;
  object-fit:cover!important; object-position:center 42%!important;
}
html body #tg-main.education-detail-redesign .banner-image > figure > figcaption {
  position:absolute!important; inset:0!important; display:flex!important; align-items:flex-end!important;
  width:100%!important; height:100%!important; padding:0 0 28px!important; margin:0!important;
  background:linear-gradient(90deg,rgba(13,28,49,.78),rgba(13,28,49,.32) 65%,rgba(13,28,49,.12))!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .banner-image > figure > figcaption > .container {
  width:min(1120px,calc(100% - 48px))!important; max-width:1120px!important;
  margin:0 auto!important; padding:0!important;
}
html body #tg-main.education-detail-redesign .banner-image .tg-figcaptioncontent h1 {
  max-width:780px!important; margin:0!important; padding:0!important; color:#fff!important;
  font-size:clamp(27px,3.2vw,44px)!important; font-weight:800!important;
  line-height:1.14!important; letter-spacing:-.02em!important;
}
html body #tg-main.education-detail-redesign .banner-image .tg-donationgoal,
html body #tg-main.education-detail-redesign .banner-image .tg-btnshare,
html body #tg-main.education-detail-redesign .banner-image .tg-figcaptioncontent > .tg-btn {
  display:none!important;
}
html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
  display:grid!important; grid-template-columns:minmax(260px,1fr) minmax(0,1.6fr)!important;
  grid-template-rows:auto auto!important; align-items:start!important;
  column-gap:24px!important; row-gap:18px!important;
  width:min(1320px,calc(100% - 48px))!important; max-width:1320px!important;
  margin:28px auto 48px!important; padding:0!important; float:none!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .education-sidebar-column,
html body #tg-main.education-detail-redesign .education-main-column {
  display:block!important; position:static!important; float:none!important; clear:none!important;
  width:auto!important; max-width:none!important; min-width:0!important;
  margin:0!important; padding:0!important; transform:none!important; box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .education-sidebar-column {
  grid-column:1!important; grid-row:1 / span 2!important;
}
html body #tg-main.education-detail-redesign .education-main-column {
  grid-column:2!important; grid-row:1!important;
}
html body #tg-main.education-detail-redesign .education-share-card {
  grid-column:2!important; grid-row:2!important; display:block!important;
  width:100%!important; max-width:100%!important; min-width:0!important;
  margin:10px 0 0!important; box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .education-main-column,
html body #tg-main.education-detail-redesign .education-sidebar-column,
html body #tg-main.education-detail-redesign #tg-content,
html body #tg-main.education-detail-redesign .tg-themetabs,
html body #tg-main.education-detail-redesign #tg-sidebar {
  min-width:0!important; max-width:100%!important; box-sizing:border-box!important;
}
@media(max-width:900px) {
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
    grid-template-columns:minmax(0,1fr)!important; grid-template-rows:auto auto auto!important;
    width:calc(100% - 32px)!important; max-width:none!important;
    margin:20px auto 32px!important; gap:18px!important;
  }
  html body #tg-main.education-detail-redesign .education-sidebar-column {grid-column:1!important;grid-row:1!important;}
  html body #tg-main.education-detail-redesign .education-main-column {grid-column:1!important;grid-row:2!important;}
  html body #tg-main.education-detail-redesign .education-share-card {grid-column:1!important;grid-row:3!important;margin-top:0!important;}
  html body #tg-main.education-detail-redesign .banner-image > figure {height:200px!important;}
}
@media(max-width:767px) {
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
    width:calc(100% - 24px)!important; margin:16px auto 28px!important; gap:14px!important;
  }
  html body #tg-main.education-detail-redesign .banner-image > figure {height:180px!important;}
  html body #tg-main.education-detail-redesign .banner-image > figure > figcaption {padding-bottom:18px!important;}
  html body #tg-main.education-detail-redesign .banner-image > figure > figcaption > .container {width:calc(100% - 32px)!important;}
}


/* LIVE WIDTH FIX — force the real page shell and columns to use the viewport width */
html body #tg-main.education-detail-redesign,
html body #tg-main.education-detail-redesign .tg-detailpage {
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0 0 32px!important;
  float:none!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign #tg-twocolumns,
html body #tg-main.education-detail-redesign .tg-detailpage > .container {
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
  display:grid!important;
  grid-template-columns:minmax(280px, .92fr) minmax(0, 1.85fr)!important;
  grid-template-rows:auto auto!important;
  gap:20px 24px!important;
  align-items:start!important;
  width:min(1320px,calc(100% - 48px))!important;
  max-width:1320px!important;
  margin:28px auto 48px!important;
  padding:0!important;
  float:none!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-sidebar-column {
  grid-column:1!important;
  grid-row:1 / span 2!important;
  display:block!important;
  float:none!important;
  position:relative!important;
  inset:auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-main-column {
  grid-column:2!important;
  grid-row:1!important;
  display:block!important;
  float:none!important;
  position:relative!important;
  inset:auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .education-main-column > #tg-content,
html body #tg-main.education-detail-redesign .education-main-column > .education-share-card {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .education-main-column .tg-themetabs {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
html body #tg-main.education-detail-redesign .education-sidebar-column #tg-sidebar,
html body #tg-main.education-detail-redesign .education-sidebar-column .education-contribute-card,
html body #tg-main.education-detail-redesign .education-sidebar-column .education-progress-card,
html body #tg-main.education-detail-redesign .education-sidebar-column .tg-widget {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
@media(max-width:900px) {
 html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
   grid-template-columns:minmax(0,1fr)!important;
   grid-template-rows:auto auto!important;
   width:calc(100% - 32px)!important;
   max-width:none!important;
   margin:20px auto 32px!important;
   gap:16px!important;
 }
 html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-sidebar-column {
   grid-column:1!important; grid-row:1!important;
 }
 html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-main-column {
   grid-column:1!important; grid-row:2!important;
 }
}
@media(max-width:767px) {
 html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
   width:calc(100% - 24px)!important; margin:16px auto 28px!important;
 }
}



/* ROOT FIX: education main and sidebar are now sibling columns, matching causedetail.php */
html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) minmax(0,1.6fr)!important;
  grid-template-rows:auto auto!important;
  align-items:start!important;
  column-gap:24px!important;
  row-gap:18px!important;
  width:min(1320px,calc(100% - 48px))!important;
  max-width:1320px!important;
  margin:28px auto 48px!important;
  padding:0!important;
  float:none!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-sidebar-column {
  grid-column:1!important; grid-row:1 / span 2!important;
  display:block!important; position:static!important; float:none!important;
  width:auto!important; max-width:none!important; min-width:0!important;
  margin:0!important; padding:0!important; transform:none!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-main-column {
  grid-column:2!important; grid-row:1!important;
  display:block!important; position:static!important; float:none!important;
  width:auto!important; max-width:none!important; min-width:0!important;
  margin:0!important; padding:0!important; transform:none!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .education-main-column #tg-content,
html body #tg-main.education-detail-redesign .education-main-column .tg-themetabs,
html body #tg-main.education-detail-redesign .education-sidebar-column #tg-sidebar,
html body #tg-main.education-detail-redesign .education-sidebar-column .education-contribute-card,
html body #tg-main.education-detail-redesign .education-sidebar-column .education-progress-card,
html body #tg-main.education-detail-redesign .education-sidebar-column .tg-widget {
  width:100%!important; max-width:100%!important; min-width:0!important;
  box-sizing:border-box!important;
}
html body #tg-main.education-detail-redesign .education-main-column > .education-share-card {
  display:block!important; width:100%!important; max-width:100%!important;
  margin:14px 0 0!important; box-sizing:border-box!important;
}
@media(max-width:900px) {
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    width:calc(100% - 32px)!important;
    max-width:none!important;
    margin:20px auto 32px!important;
    gap:16px!important;
  }
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-sidebar-column {
    grid-column:1!important; grid-row:1!important;
  }
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-main-column {
    grid-column:1!important; grid-row:2!important;
  }
}
@media(max-width:767px) {
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
    width:calc(100% - 24px)!important; margin:16px auto 28px!important;
  }
}


/* Manual contribution amount field */
html body #tg-main.education-detail-redesign .education-manual-amount-row {
  margin: 12px 0 0 !important;
}
html body #tg-main.education-detail-redesign .education-manual-amount-row > [class*="col-"] {
  padding: 0 !important;
}
html body #tg-main.education-detail-redesign #manual_amount {
  width: 100% !important;
  min-height: 46px !important;
  padding: 11px 13px !important;
  border: 1px solid #ead4df !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}
html body #tg-main.education-detail-redesign .education-manual-amount-help {
  display: block;
  margin-top: 6px;
  color: #6d7788;
  font-size: 11px;
  line-height: 1.45;
}


/* User-requested cleanup: remove extra decorative lines around contribution steps */
html body #tg-main.education-detail-redesign .education-contribute-card .tg-sectiontitle:after {
  display: none !important;
  content: none !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card .tg-steptitle h3 {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card .tg-steptitle,
html body #tg-main.education-detail-redesign .education-contribute-card .tg-steptitle:before,
html body #tg-main.education-detail-redesign .education-contribute-card .tg-steptitle:after {
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* All three contribution controls use equal full width, 10px padding, and equal height */
html body #tg-main.education-detail-redesign .education-contribute-card #support_type,
html body #tg-main.education-detail-redesign .education-contribute-card #support_period,
html body #tg-main.education-detail-redesign .education-contribute-card #manual_amount {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 10px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid #ead4df !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 24px !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card .tg-amountboxes > .row {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card .tg-amountboxes > .row > [class*="col-"] {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card .education-manual-amount-row {
  margin-top: 10px !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card .education-manual-amount-help {
  margin-top: 6px !important;
}


/* FINAL SPACING FIX: stack all three controls with a real 10px vertical gap */
html body #tg-main.education-detail-redesign .education-contribute-card .tg-amountboxes {
  display: block !important;
  width: 100% !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card .tg-amountboxes > .row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card .tg-amountboxes > .row > [class*="col-"] {
  display: block !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card #support_type,
html body #tg-main.education-detail-redesign .education-contribute-card #support_period,
html body #tg-main.education-detail-redesign .education-contribute-card #manual_amount {
  display: block !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 10px !important;
  line-height: 24px !important;
  box-sizing: border-box !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card .education-manual-amount-row {
  width: 100% !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card .education-manual-amount-row .col-sm-12 {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
html body #tg-main.education-detail-redesign .education-contribute-card .education-manual-amount-help {
  margin: 6px 0 0 !important;
}


/* Contribution form: fix Bootstrap row/column overlap and give all controls equal spacing */
html body #tg-main.education-detail-redesign #contribute .tg-amountboxes {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
html body #tg-main.education-detail-redesign #contribute .tg-amountboxes > .row,
html body #tg-main.education-detail-redesign #contribute .tg-amountboxes > .education-manual-amount-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
html body #tg-main.education-detail-redesign #contribute .tg-amountboxes > .row > [class*="col-"],
html body #tg-main.education-detail-redesign #contribute .tg-amountboxes > .education-manual-amount-row > [class*="col-"] {
  display: block !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  box-sizing: border-box !important;
}
html body #tg-main.education-detail-redesign #contribute #support_type,
html body #tg-main.education-detail-redesign #contribute #support_period,
html body #tg-main.education-detail-redesign #contribute #manual_amount {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid #ead4df !important;
  border-radius: 8px !important;
  line-height: 24px !important;
  box-sizing: border-box !important;
}
html body #tg-main.education-detail-redesign #contribute #period_wrap {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}
html body #tg-main.education-detail-redesign #contribute .education-manual-amount-help {
  display: block !important;
  position: static !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  line-height: 1.45 !important;
  clear: both !important;
}
html body #tg-main.education-detail-redesign #contribute .education-manual-amount-row {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
html body #tg-main.education-detail-redesign #contribute .education-manual-amount-row label,
html body #tg-main.education-detail-redesign #contribute .tg-amountboxes label[for="support_type"],
html body #tg-main.education-detail-redesign #contribute .tg-amountboxes label[for="support_period"] {
  display: none !important;
}


/* STRUCTURAL FIX: use three independent field wrappers, not Bootstrap .row/.col floats */
html body #tg-main.education-detail-redesign #contribute .education-support-fields {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
html body #tg-main.education-detail-redesign #contribute .education-support-fields > .education-support-field {
  display: block;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}
html body #tg-main.education-detail-redesign #contribute .education-support-fields #period_wrap {
  display: none;
}
html body #tg-main.education-detail-redesign #contribute .education-support-fields #period_wrap[style*="display: block"] {
  display: block !important;
}
html body #tg-main.education-detail-redesign #contribute .education-support-fields #support_type,
html body #tg-main.education-detail-redesign #contribute .education-support-fields #support_period,
html body #tg-main.education-detail-redesign #contribute .education-support-fields #manual_amount {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid #ead4df !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 24px !important;
  box-sizing: border-box !important;
}
html body #tg-main.education-detail-redesign #contribute .education-support-fields .education-manual-amount-help {
  display: block !important;
  position: static !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  color: #6d7788 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}


/* FINAL DONATION FIELD VISIBILITY FIX (2026-10-21) */
html body #tg-main.education-detail-redesign #contribute form#educationDonationForm .education-support-fields {
  display:flex !important; flex-direction:column !important; align-items:stretch !important; gap:12px !important;
  width:100% !important; height:auto !important; min-height:0 !important; overflow:visible !important;
}
html body #tg-main.education-detail-redesign #contribute form#educationDonationForm .education-support-fields > .support-type-field,
html body #tg-main.education-detail-redesign #contribute form#educationDonationForm .education-support-fields > .manual-amount-field {
  display:block !important; visibility:visible !important; opacity:1 !important; position:relative !important;
  width:100% !important; height:auto !important; min-height:46px !important; overflow:visible !important;
}
html body #tg-main.education-detail-redesign #contribute form#educationDonationForm #support_type,
html body #tg-main.education-detail-redesign #contribute form#educationDonationForm #manual_amount,
html body #tg-main.education-detail-redesign #contribute form#educationDonationForm #support_period {
  display:block !important; visibility:visible !important; opacity:1 !important; position:relative !important;
  width:100% !important; height:46px !important; min-height:46px !important; max-height:none !important;
  color:#25364a !important; background:#fff !important; border:1px solid #ead4df !important;
  padding:10px 12px !important; margin:0 !important; box-sizing:border-box !important;
  clip:auto !important; transform:none !important; text-indent:0 !important;
}
html body #tg-main.education-detail-redesign #contribute form#educationDonationForm #period_wrap {
  display:none !important; visibility:visible !important; opacity:1 !important;
  width:100% !important; height:auto !important; min-height:0 !important; overflow:visible !important;
}
html body #tg-main.education-detail-redesign #contribute form#educationDonationForm #period_wrap[style*="display: block"] {
  display:block !important;
}
html body #tg-main.education-detail-redesign #contribute form#educationDonationForm .education-support-field label {
  position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important;
  overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important;
}


/* FINAL LAYOUT FIX: sidebar 1fr, main content 2fr */
@media (min-width: 901px) {
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
  }
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-sidebar-column {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    min-width: 0 !important;
  }
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-main-column {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }
}
@media (max-width: 900px) {
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row {
    display: flex !important;
    flex-direction: column !important;
    width: calc(100% - 32px) !important;
    max-width: 100% !important;
    gap: 20px !important;
  }
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-sidebar-column,
  html body #tg-main.education-detail-redesign .tg-detailpage > .container > .row > .education-main-column {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Centered separator between support-type/period selection and manual amount */
#contribute .education-support-or {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 10px 0;
    text-align: center;
}

#contribute .education-support-or::before,
#contribute .education-support-or::after {
    content: "";
    flex: 1 1 auto;
    min-width: 0;
    height: 1px;
    background: #e72b83;
}

#contribute .education-support-or span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: #e72b83;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .04em;
}


/* OR separator visual fix only: keep it centered and highlighted */
html body #tg-main.education-detail-redesign #contribute .education-support-fields > .education-support-or {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 10px 0 !important;
    text-align: center !important;
}
html body #tg-main.education-detail-redesign #contribute .education-support-fields > .education-support-or::before,
html body #tg-main.education-detail-redesign #contribute .education-support-fields > .education-support-or::after {
    content: "" !important;
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 1px !important;
    background: #e72b83 !important;
}
html body #tg-main.education-detail-redesign #contribute .education-support-fields > .education-support-or > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 76px !important;
    min-height: 54px !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    background: #e72b83 !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}


/* Contribution form: match the approved donate-products-detail.php controls.
   Scoped to the education contribution card only; other education page styling is unchanged. */
html body #tg-main.education-detail-redesign #contribute .education-donation-flow .tg-steptitle { margin:0 0 14px!important; }
html body #tg-main.education-detail-redesign #contribute .education-donation-flow .tg-steptitle h3 { margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#172f59!important;font-size:16px!important;font-weight:800!important;line-height:1.4!important; }
html body #tg-main.education-detail-redesign #contribute .education-support-fields { display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%!important;margin:0!important;padding:0!important;overflow:visible!important;box-sizing:border-box!important; }
html body #tg-main.education-detail-redesign #contribute .education-support-fields > .education-support-field { display:block!important;position:relative!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;float:none!important;box-sizing:border-box!important; }
html body #tg-main.education-detail-redesign #contribute .education-preset-amounts { display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;width:100%!important;margin:0!important;padding:0!important; }
html body #tg-main.education-detail-redesign #contribute .education-amount-option { display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:48px!important;width:100%!important;margin:0!important;padding:9px 8px!important;border:1px solid #ed287b!important;border-radius:10px!important;background:#fff!important;color:#18345d!important;font-size:15px!important;font-weight:800!important;line-height:1.2!important;cursor:pointer!important;transition:background .18s ease,color .18s ease,box-shadow .18s ease!important; }
html body #tg-main.education-detail-redesign #contribute .education-amount-option:hover,
html body #tg-main.education-detail-redesign #contribute .education-amount-option.is-selected { color:#fff!important;background:linear-gradient(135deg,#f20b78,#ed287b)!important;border-color:#ed287b!important;box-shadow:0 5px 14px #ed287b2b!important; }
html body #tg-main.education-detail-redesign #contribute .education-support-or { display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;width:100%!important;margin:16px 0!important;padding:0!important;text-align:center!important; }
html body #tg-main.education-detail-redesign #contribute .education-support-or:before,
html body #tg-main.education-detail-redesign #contribute .education-support-or:after { content:""!important;display:block!important;flex:1 1 auto!important;min-width:0!important;height:2px!important;background:#ed287b!important;opacity:.95!important; }
html body #tg-main.education-detail-redesign #contribute .education-support-or span { display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 70px!important;width:70px!important;height:40px!important;margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:#ed287b!important;color:#fff!important;font-size:15px!important;font-weight:800!important;line-height:1!important;box-shadow:0 5px 14px #ed287b25!important; }
html body #tg-main.education-detail-redesign #contribute .education-manual-amount>label,
html body #tg-main.education-detail-redesign #contribute .education-support-field>label { display:block!important;margin:0 0 8px!important;color:#172f59!important;font-size:15px!important;font-weight:800!important; }
html body #tg-main.education-detail-redesign #contribute .education-manual-input { display:flex!important;align-items:stretch!important;width:100%!important;min-height:48px!important;overflow:hidden!important;border:1px solid #e5d8e1!important;border-radius:10px!important;background:#fff!important;box-sizing:border-box!important; }
html body #tg-main.education-detail-redesign #contribute .education-manual-input>span { display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 46px!important;width:46px!important;background:#fff0f7!important;color:#ed1674!important;font-size:19px!important;font-weight:800!important;border-right:1px solid #f3d5e4!important; }
html body #tg-main.education-detail-redesign #contribute #manual_amount { display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0 14px!important;border:0!important;border-radius:0!important;background:#fff!important;color:#18345d!important;font-size:15px!important;box-shadow:none!important;outline:none!important;box-sizing:border-box!important; }
html body #tg-main.education-detail-redesign #contribute #support_type,
html body #tg-main.education-detail-redesign #contribute #support_period { display:block!important;width:100%!important;min-width:0!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0 13px!important;border:1px solid #e5d8e1!important;border-radius:10px!important;background:#fff!important;color:#18345d!important;font-size:15px!important;box-shadow:none!important;box-sizing:border-box!important; }
html body #tg-main.education-detail-redesign #contribute .education-support-fields #period_wrap { display:none!important;width:100%!important;max-width:100%!important;margin-top:12px!important; }
html body #tg-main.education-detail-redesign #contribute .education-support-fields #period_wrap[style*="display: block"] { display:block!important; }
html body #tg-main.education-detail-redesign #contribute #calculated_amount_box { margin:16px 0 0!important;padding:16px!important;border:1px solid #ffb6d4!important;border-radius:13px!important;background:linear-gradient(135deg,#fff7fb,#ffedf5)!important;color:#18345d!important; }
html body #tg-main.education-detail-redesign #contribute #calculated_amount { color:#ed1674!important;font-size:24px!important;font-weight:850!important; }
@media(max-width:767px) {
 html body #tg-main.education-detail-redesign #contribute .education-preset-amounts { grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important; }
 html body #tg-main.education-detail-redesign #contribute .education-amount-option { min-height:46px!important; }
 html body #tg-main.education-detail-redesign #contribute .education-support-or { margin:14px 0!important; }
}


/* GAP education contribution card: match Donate Product's amount controls and selected-amount summary */
html body #tg-main.education-detail-redesign #contribute .education-donation-flow .tg-steptitle h3 {
  margin:0 0 14px!important;padding:0!important;border:0!important;background:transparent!important;
  color:#172f59!important;font-size:16px!important;font-weight:800!important;line-height:1.4!important;
}
html body #tg-main.education-detail-redesign #contribute .education-preset-amounts {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;
  width:100%!important;margin:0!important;padding:0!important;
}
html body #tg-main.education-detail-redesign #contribute .education-amount-option {
  display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;
  min-height:48px!important;width:100%!important;margin:0!important;padding:9px 8px!important;
  border:1px solid #ed287b!important;border-radius:10px!important;background:#fff!important;color:#18345d!important;
  font-size:15px!important;font-weight:800!important;line-height:1.2!important;cursor:pointer!important;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease!important;
}
html body #tg-main.education-detail-redesign #contribute .education-amount-option:hover,
html body #tg-main.education-detail-redesign #contribute .education-amount-option.is-selected {
  color:#fff!important;background:linear-gradient(135deg,#f20b78,#ed287b)!important;
  border-color:#ed287b!important;box-shadow:0 5px 14px #ed287b2b!important;
}
html body #tg-main.education-detail-redesign #contribute .education-support-or {
  display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;
  width:100%!important;margin:16px 0!important;padding:0!important;
}
html body #tg-main.education-detail-redesign #contribute .education-support-or:before,
html body #tg-main.education-detail-redesign #contribute .education-support-or:after {
  content:"";display:block!important;flex:1 1 auto!important;min-width:0!important;height:2px!important;background:#ed287b!important;opacity:.95!important;
}
html body #tg-main.education-detail-redesign #contribute .education-support-or span {
  display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 70px!important;
  width:70px!important;height:40px!important;margin:0!important;padding:0!important;border:0!important;
  border-radius:999px!important;background:#ed287b!important;color:#fff!important;font-size:15px!important;
  font-weight:800!important;line-height:1!important;box-shadow:0 5px 14px #ed287b25!important;
}
html body #tg-main.education-detail-redesign #contribute .education-support-field>label {
  display:block!important;margin:0 0 8px!important;color:#172f59!important;font-size:15px!important;font-weight:800!important;
}
html body #tg-main.education-detail-redesign #contribute .education-manual-input {
  display:flex!important;align-items:stretch!important;width:100%!important;min-height:48px!important;overflow:hidden!important;
  border:1px solid #e5d8e1!important;border-radius:10px!important;background:#fff!important;
}
html body #tg-main.education-detail-redesign #contribute .education-manual-input>span {
  display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 46px!important;width:46px!important;
  background:#fff0f7!important;color:#ed1674!important;font-size:19px!important;font-weight:800!important;border-right:1px solid #f3d5e4!important;
}
html body #tg-main.education-detail-redesign #contribute #manual_amount {
  display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;height:48px!important;
  margin:0!important;padding:0 14px!important;border:0!important;border-radius:0!important;background:#fff!important;
  color:#18345d!important;font-size:15px!important;box-shadow:none!important;outline:none!important;
}
html body #tg-main.education-detail-redesign #contribute #support_type,
html body #tg-main.education-detail-redesign #contribute #support_period {
  display:block!important;width:100%!important;min-height:48px!important;height:48px!important;margin:0!important;padding:0 13px!important;
  border:1px solid #e5d8e1!important;border-radius:10px!important;background:#fff!important;color:#18345d!important;font-size:15px!important;box-shadow:none!important;
}
html body #tg-main.education-detail-redesign #contribute .education-contribution-summary {
  display:flex;align-items:center;gap:14px;width:100%;box-sizing:border-box;margin:16px 0 12px;padding:14px 15px;min-height:94px;
  border:1px solid #ffb8d6;border-radius:14px;background:linear-gradient(115deg,#fff2f8 0%,#fffafd 100%);
}
html body #tg-main.education-detail-redesign #contribute .product-summary-heart {
  flex:0 0 54px;width:54px;height:54px;display:flex;align-items:center;justify-content:center;border-radius:50%;
  color:#fff;background:linear-gradient(135deg,#ff4b9a,#ed0873);box-shadow:0 5px 13px rgba(237,8,115,.18);font-size:24px;
}
html body #tg-main.education-detail-redesign #contribute .product-summary-copy {
  flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;color:#17335f;font-size:15px;line-height:1.35;font-weight:600;
}
html body #tg-main.education-detail-redesign #contribute .product-summary-copy strong {
  color:#ed1674;font-size:clamp(22px,2vw,30px);line-height:1.2;font-weight:850;overflow-wrap:anywhere;
}
html body #tg-main.education-detail-redesign #contribute .product-summary-edit {
  flex:0 0 48px;align-self:stretch;border:0;border-left:1px solid #ffc2dc;background:transparent;color:#ed1674;font-size:22px;cursor:pointer;
}
html body #tg-main.education-detail-redesign #contribute .education-contribution-summary[style*="display:none"],
html body #tg-main.education-detail-redesign #contribute .education-auth-actions[style*="display:none"],
html body #tg-main.education-detail-redesign #contribute .education-contribution-actions-wrap[style*="display:none"],
html body #tg-main.education-detail-redesign #contribute .product-contribution-notice[style*="display:none"] {display:none!important}
html body #tg-main.education-detail-redesign #contribute .education-auth-actions {
  display:flex;flex-wrap:wrap;gap:10px;width:100%;margin:14px 0 0;padding:0;
}
html body #tg-main.education-detail-redesign #contribute .education-auth-actions .education-auth-button {
  display:inline-flex!important;flex:1 1 120px!important;align-items:center!important;justify-content:center!important;min-width:0!important;
  min-height:48px!important;margin:0!important;padding:10px 12px!important;border:0!important;border-radius:10px!important;
  background:#ed1674!important;color:#fff!important;font-size:12px!important;font-weight:800!important;text-transform:uppercase!important;
  text-decoration:none!important;text-align:center!important;line-height:1.3!important;box-shadow:none!important;
}
html body #tg-main.education-detail-redesign #contribute .education-auth-actions .education-auth-button:hover {background:#d90e65!important;color:#fff!important}
html body #tg-main.education-detail-redesign #contribute .product-contribution-notice {
  display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;margin:10px 0 0;padding:14px;
  border:1px solid #ffd0e3;border-radius:12px;background:linear-gradient(110deg,#fff3f8,#fffafd);color:#526b91;font-size:14px;line-height:1.55;
}
html body #tg-main.education-detail-redesign #contribute .product-notice-icon {
  flex:0 0 28px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;background:#f58db9;font-size:14px;
}
html body #tg-main.education-detail-redesign #contribute .education-contribution-actions-wrap {margin:0!important;padding:0!important;border:0!important;background:transparent!important}
html body #tg-main.education-detail-redesign #contribute .education-loggedin-action {margin:14px 0 0!important}
html body #tg-main.education-detail-redesign #contribute #loggedInContributeBtn {min-height:48px!important;width:100%!important;border-radius:10px!important;font-size:12px!important;text-transform:uppercase!important}
html body #tg-main.education-detail-redesign #contribute .education-calculation-text {display:none!important}
@media(max-width:767px){
  html body #tg-main.education-detail-redesign #contribute .education-preset-amounts {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  html body #tg-main.education-detail-redesign #contribute .education-amount-option {min-height:46px!important}
  html body #tg-main.education-detail-redesign #contribute .education-support-or {margin:14px 0!important}
  html body #tg-main.education-detail-redesign #contribute .education-contribution-summary {padding:12px;gap:10px;min-height:80px}
  html body #tg-main.education-detail-redesign #contribute .product-summary-heart {flex-basis:46px;width:46px;height:46px;font-size:21px}
  html body #tg-main.education-detail-redesign #contribute .product-summary-edit {flex-basis:38px}
}


/* Fix: always reveal the next-step actions when a valid contribution amount exists. */
html body #tg-main.education-detail-redesign #contribute #rd[style*="display: block"],
html body #tg-main.education-detail-redesign #contribute #contribute_action[style*="display: block"] {
  display: block !important; visibility: visible !important;
}
html body #tg-main.education-detail-redesign #contribute #education_auth_actions[style*="display: flex"],
html body #tg-main.education-detail-redesign #contribute #education_contribution_notice[style*="display: flex"] {
  display: flex !important; visibility: visible !important;
}


/* Final fix: keep education campaign fee cards compact with icon on the left and text on the right. */
html body #tg-main.education-detail-redesign .education-fee-card-horizontal {
  margin: 14px 0 !important;
  padding: 0 !important;
  border: 1px solid #f2dce7 !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden !important;
}
html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-grid-six {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: 100% !important;
}
html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #f3e7ed !important;
  box-sizing: border-box !important;
  background: #fff !important;
}
html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-item:nth-child(odd) {
  border-right: 1px solid #f3e7ed !important;
}
html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-item:nth-last-child(-n+2) {
  border-bottom: 0 !important;
}
html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-icon {
  display: inline-flex !important;
  flex: 0 0 42px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #ffb6d4 !important;
  border-radius: 12px !important;
  background: #ffe4f0 !important;
  color: #ed1674 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-copy {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-copy .education-fee-label {
  display: block !important;
  margin: 0 !important;
  color: #71809a !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}
html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-copy strong {
  display: block !important;
  margin: 0 !important;
  color: #17365d !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere !important;
}
html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-remaining {
  background: #fff1f7 !important;
}
html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-remaining .education-fee-copy strong,
html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-raised .education-fee-copy strong {
  color: #ed1674 !important;
}
@media (max-width: 767px) {
  html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-item {
    min-height: 68px !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-icon {
    flex-basis: 34px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
  }
  html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-copy .education-fee-label {
    font-size: 11px !important;
  }
  html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-copy strong {
    font-size: 13px !important;
  }
}
@media (max-width: 420px) {
  html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-grid-six {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-item,
  html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-item:nth-child(odd) {
    border-right: 0 !important;
    border-bottom: 1px solid #f3e7ed !important;
  }
  html body #tg-main.education-detail-redesign .education-fee-card-horizontal .education-fee-item:last-child {
    border-bottom: 0 !important;
  }
}
