﻿/* Phase 3: adapt existing MVC content markup without changing form/AJAX contracts. */
.ag-content-page{padding-bottom:56px;min-height:65vh;overflow-wrap:anywhere}
.ag-page-intro{padding-top:28px;padding-bottom:0;margin-bottom:0;border-bottom:0}
.ag-page-intro .ag-trail{margin-bottom:0}
.ag-breadcrumb{color:var(--ag-muted);font-size:12px;margin-bottom:18px;display:flex;flex-wrap:wrap;gap:10px}
.ag-page-title-row{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.ag-page-title-row h1{font-size:30px;max-width:900px}.ag-page-title-row p{color:var(--ag-muted);margin:10px 0 0}
.ag-page-title-row>.ag-button{flex-shrink:0}.ag-content-page .container{width:calc(100% - 64px);max-width:1200px;padding:0;margin:auto}
.ag-content-page .section,.ag-content-page .section-sm{padding:24px 0 0}.ag-content-page .row{row-gap:24px}
.ag-content-page .widget,.ag-content-page .single-post,.ag-content-page .block.comment,.ag-content-page .post{background:#fffdf9;border:1px solid var(--ag-border);border-radius:12px;padding:24px;margin-bottom:22px}
.ag-content-page .widget-header{font-size:18px;border-bottom:1px solid var(--ag-border);padding-bottom:15px;margin:0 0 16px}
.ag-content-page .widget ul{padding:0;margin:0;list-style:none}.ag-content-page .widget li+li{border-top:1px solid #efe9de}
.ag-content-page .widget li a{display:block;padding:11px 0;line-height:1.9}.ag-content-page .widget a.active{color:var(--ag-green)!important;background:#eaf0eb;border-radius:6px;padding:10px!important}
.ag-content-page .product-item{height:100%;margin-bottom:0;border-radius:12px;overflow:hidden;background:transparent!important}
.ag-content-page .product-item .card{height:100%;border:1px solid var(--ag-border);border-radius:12px;overflow:hidden;background:#fffdf9}
.ag-content-page .thumb-content img{width:100%;height:190px;object-fit:cover}.ag-content-page .card-body{padding:20px}.ag-content-page .card-title{font-size:18px!important;line-height:1.8!important;text-align:right!important}
.ag-content-page .product-meta{font-size:13px;color:var(--ag-muted);padding:0;margin:12px 0}.ag-content-page .product-meta b{font-weight:400}.ag-content-page .product-meta strong{color:var(--ag-green)}
.ag-content-page .card-text{color:var(--ag-muted);font-size:13px;line-height:2}.ag-content-page .card-text:empty{display:none}.ag-content-page .product-ratings{color:#94702f}
.ag-page-news .product-grid-list .row>div:only-child{flex-basis:100%;max-width:100%}.ag-page-news .product-grid-list .row>div:only-child .card{display:grid;grid-template-columns:40% 1fr;align-items:center}.ag-page-news .product-grid-list .row>div:only-child .thumb-content img{height:240px}
.ag-content-page .btn,.ag-content-page .add-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px!important;border:1px solid var(--ag-green);border-radius:8px;background:var(--ag-green);color:white;letter-spacing:0;font:inherit;white-space:normal}
.ag-content-page .btn:hover,.ag-content-page .add-button:hover{background:#245a47;color:white}.ag-content-page .btn:disabled{opacity:.55;cursor:not-allowed}
.ag-content-page .form-control{font:inherit;border:1px solid #c9cbbf;background:#fff;border-radius:8px;padding:10px 14px;min-height:46px;max-width:100%;color:var(--ag-ink)}
.ag-content-page .form-control:focus{border-color:#9d7c40;box-shadow:0 0 0 3px #c09a5826}.ag-content-page label{font-size:14px;margin-bottom:7px}
.ag-content-page input[type=email]{direction:ltr;text-align:left}.ag-content-page .input-group-addon{padding:10px 14px;display:flex;align-items:center;background:#eee8da;border:1px solid #c9cbbf;border-radius:8px 0 0 8px}
.ag-content-page .pagination{display:flex;justify-content:center;margin:26px 0;direction:rtl}.ag-content-page .pagination ul{display:flex;flex-wrap:wrap;gap:7px;margin:0;padding:0;box-shadow:none;list-style:none}
.ag-content-page .pagination li{display:block}.ag-content-page .pagination li>a,.ag-content-page .pagination li>span{display:flex;justify-content:center;align-items:center;min-width:40px;min-height:42px;border:1px solid var(--ag-border);border-radius:7px;background:#fffdf9;color:var(--ag-green);float:none;padding:6px 12px}
.ag-content-page .pagination .active>a,.ag-content-page .pagination .active>span{background:var(--ag-green);color:white}.ag-content-page .pagination .disabled>a,.ag-content-page .pagination .disabled>span{color:#777;background:#f0eee8}
.ag-content-page .single-post>h3:first-child{display:none}.ag-content-page .single-post>img{display:block;width:100%;height:auto;object-fit:contain;margin:24px auto;border-radius:8px}
.ag-content-page .single-post>span{display:block;font-size:16px!important;line-height:2.4!important;color:var(--ag-ink)!important;text-align:right!important;white-space:pre-line}
.ag-content-page .single-post .list-inline{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:12px;color:var(--ag-muted);padding:0;margin:0}
.ag-content-page .single-post .social-circle-icons{display:none} /* Original links have empty hrefs. */
.ag-content-page .single-post iframe{max-width:100%}.ag-content-page .single-post table{display:block;max-width:100%;overflow:auto}
.ag-content-page .block.comment h4{font-size:20px;margin-bottom:22px}.ag-content-page .block.comment .row{row-gap:0}.ag-content-page .myComment{font-size:14px;line-height:2}.ag-content-page #commentList{scroll-margin-top:24px}
.ag-content-page .post h2{font-size:22px;margin-bottom:10px}.ag-content-page .post h2 a{font-size:22px!important}.ag-content-page .post .author-category{color:var(--ag-muted);font-size:13px}.ag-content-page .date-comments{font-size:12px;line-height:2.5;color:var(--ag-muted)}
.ag-content-page .post .image{margin:18px 0;border-radius:9px;overflow:hidden}.ag-content-page .post .image img{width:100%;max-height:340px;object-fit:cover}
.ag-content-page .post .intro{font-size:15px;color:var(--ag-ink)!important;line-height:2.3!important;text-align:right!important}.ag-content-page .read-more{margin:20px 0 0;text-align:left}
.ag-content-page .ag-empty{background:#fffdf9;width:100%;margin-bottom:24px}.ag-content-page .ag-empty h2{font-size:20px;margin-bottom:10px}
.ag-page-product-search>.panel-body{display:flex;flex-wrap:wrap;width:calc(100% - 64px);max-width:1200px;margin:24px auto;background:transparent!important;gap:24px;text-align:right}
.ag-page-product-search .pnl{box-shadow:none;border:1px solid var(--ag-border);border-radius:12px;margin:0;padding:18px;background:#fffdf9}
.ag-page-product-search>.panel-body>.col-md-9{display:flex;flex-wrap:wrap;align-content:flex-start;flex:1;max-width:none}
.ag-page-product-search .categ{padding:10px;animation:none}.ag-page-product-search .categ>div{box-shadow:none!important;border:1px solid var(--ag-border)!important;min-height:220px}.ag-page-product-search .panel-heading{font-size:18px;margin-bottom:16px}
.ag-page-product-search .categ .col-sm-12{height:auto!important;max-height:none!important}.ag-page-product-search .categ img{object-fit:contain;margin-bottom:14px}
.ag-content-page .ag-empty p{margin:0}.ag-content-page .alert{border-radius:10px;line-height:2}.ag-content-page .tag{display:inline-block;padding:4px 12px;margin:4px;border:1px solid var(--ag-border);border-radius:30px;font-size:13px}
.ag-content-page .modal-header{align-items:center}.ag-content-page .modal-header .close{margin:0 0 0 12px;float:none}.ag-content-page .modal-title{font-size:18px}.ag-content-page .modal-content{border-radius:12px}.ag-content-page .modal-body img{display:block;margin:auto;max-height:75vh;object-fit:contain}
.ag-page-help .dashboard-container{max-width:100%;margin:0 auto;padding:32px}.ag-page-help .widget-header{line-height:2.5}.ag-page-help .widget-header>span{display:block}.ag-page-help .form-group{margin-bottom:22px}
.ag-content-page .advance-search{border:1px solid var(--ag-border);padding:20px;background:#fffdf9;border-radius:12px}.ag-content-page .advance-search .form-group{margin:0}.ag-content-page .search-result{margin:0 0 22px}.ag-content-page .search-result h2{font-size:20px}
.ag-gallery-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}.ag-gallery-filters a,.ag-gallery-filters span{border:1px solid var(--ag-border);border-radius:30px;padding:8px 18px;font-size:14px;background:#fffdf9}.ag-gallery-filters [aria-current]{background:var(--ag-green);color:white;border-color:var(--ag-green)}
.ag-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.ag-gallery-item{display:block;position:relative;border:1px solid var(--ag-border);border-radius:12px;background:#eee8da;overflow:hidden}.ag-gallery-item img{width:100%;height:260px;object-fit:cover;display:block}.ag-gallery-item span{position:absolute;bottom:12px;left:12px;background:#123f33e6;color:#fff;border-radius:30px;padding:5px 12px;font-size:12px}.ag-gallery-item:focus-visible{outline-offset:4px}.ag-content-page .ag-gallery-empty{padding:48px;text-align:center}
@media(min-width:768px){.ag-page-news .section-sm>.container>.row,.ag-page-products .section-sm>.container>.row{flex-direction:row-reverse}}
@media(max-width:991px){.ag-content-page .single-blog .offset-md-1{margin-left:0;margin-right:0}.ag-content-page .single-blog .col-md-10{flex:0 0 100%;max-width:100%}.ag-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ag-content-page .widget{padding:20px}.ag-page-title-row h1{font-size:26px}}
@media(max-width:640px){.ag-content-page .container{width:calc(100% - 32px)}.ag-page-intro{padding-top:20px;padding-bottom:0}.ag-page-title-row{align-items:flex-start;flex-direction:column;gap:16px}.ag-page-title-row h1{font-size:24px}.ag-page-title-row p{font-size:13px}.ag-content-page .section,.ag-content-page .section-sm{padding-top:12px}.ag-content-page .post,.ag-content-page .single-post,.ag-content-page .block.comment{padding:18px}.ag-content-page .post h2 a{font-size:20px!important}.ag-content-page .single-post>span{font-size:15px!important}.ag-page-help .dashboard-container{margin:0 15px;padding:20px}.ag-gallery-grid{gap:12px}.ag-gallery-item img{height:180px}.ag-gallery-item span{font-size:11px;padding:3px 9px;bottom:8px;left:8px}.ag-gallery-filters{gap:8px}.ag-gallery-filters a,.ag-gallery-filters span{font-size:12px;padding:7px 12px}.ag-content-page .advance-search .form-group{margin-bottom:10px}}
@media(max-width:640px){.ag-page-news .product-grid-list .row>div:only-child .card{grid-template-columns:1fr}.ag-page-news .product-grid-list .row>div:only-child .thumb-content img{height:200px}.ag-page-product-search>.panel-body{width:calc(100% - 32px)}.ag-page-product-search>.panel-body>.col-md-9{flex-basis:100%}.ag-page-product-search>.panel-body>.col-md-2{padding:0}}

/* Keep the donation card aligned with the shared header and breadcrumb container. */

.ag-page-help>.section>.container>.row{margin-left:0;margin-right:0}
.ag-page-help .dashboard-container{width:100%;margin-left:0;margin-right:0}