/* IdeaMoon v8 — page layout improvements, authentic footer logo, rich home cards */
.v8-footer-brand{display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none;min-width:180px;max-width:230px;flex-direction:row!important;justify-content:center;line-height:1.35}
.v8-footer-brand>img{display:block;object-fit:contain!important;width:62px!important;height:65px!important;min-width:62px;max-width:62px;border:0!important;background:transparent!important;filter:none!important}
.v8-footer-brand-text{display:flex;flex-direction:column;align-items:flex-start;white-space:nowrap;text-align:right;font-family:Vazirmatn,Tahoma,sans-serif}
.v8-footer-brand-text strong{font-size:23px;font-weight:900;letter-spacing:-.7px;color:#fff}
.v8-footer-brand-text small{font-size:9px;color:#d3dce1;font-weight:600;line-height:2}
.site-footer .footer-bottom:has(.v8-footer-brand){align-items:center}
/* make original narrow footer image rules harmless */
.footer-bottom .v8-footer-brand>img.footer-logo{width:62px!important;max-width:62px!important;height:65px!important}
/* standalone market housing, no longer embedded in dashboard */
.housing-only-main{background:#f6f8fa;padding:22px 0 65px;min-height:600px}
.housing-breadcrumb{font-size:12px;color:#8b9ba8;margin:0 auto 18px}.housing-breadcrumb a{text-decoration:none;color:#b88907;font-weight:800}
.housing-dedicated{max-width:1210px;margin:0 auto;padding:20px 12px;border-radius:22px;background:#f7f9fb;box-sizing:border-box}
.housing-dedicated .housing-inline-head{width:calc(100% - 42px);max-width:1140px}
.housing-dedicated .housing-body{width:calc(100% - 42px);max-width:1140px}
/* dashboard additional panel */
.v8-portfolio-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}
.v8-portfolio-mini>div{display:flex;flex-direction:column;gap:9px;padding:19px;background:#f4f8fa;border:1px solid #e3eaee;border-radius:13px}
.v8-portfolio-mini small{font-size:11px;color:#687c8a}.v8-portfolio-mini strong{font-size:22px;color:#183245;font-weight:900}
.v8-mini-asset-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:22px;color:#405666;font-size:12px}
.v8-asset-line{display:flex;gap:13px;align-items:center;justify-content:space-between;padding:12px 14px;background:#fff;border:1px solid #e5ebef;border-radius:10px}
.v8-asset-line strong{color:#1d3444}
/* admin table */
.v8-data-table{overflow-x:auto;max-width:100%;border-radius:12px}.v8-data-table table{width:100%;border-collapse:collapse;font-size:12px;min-width:850px}.v8-data-table th,.v8-data-table td{padding:12px 13px;border-bottom:1px solid #e5e9ed;text-align:right;white-space:nowrap}.v8-data-table th{background:#142a3b;color:#fff}.v8-data-table tbody tr:hover{background:#fff9e9}
/* Homepage projects scroll snap: four cards at desktop, eight total. */
.projects-section .v8-carousel-actions{display:flex;gap:9px;align-items:center;margin-right:auto;direction:ltr}
.v8-carousel-actions button{display:grid;place-items:center;width:37px;height:37px;font-size:22px;font-weight:800;background:#fff;border:1px solid #dfe6ea;color:#1e3341;border-radius:50%;cursor:pointer;box-shadow:0 3px 9px #11222c14;transition:.2s}
.v8-carousel-actions button:hover{background:#ffcc2f;border-color:#ffcc2f}
.v8-project-carousel{width:100%;overflow:hidden}
.v8-project-carousel #project-grid{display:flex!important;direction:rtl;gap:16px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#d7b237 transparent;user-select:none;padding:2px 0 18px;cursor:grab;-webkit-overflow-scrolling:touch}
.v8-project-carousel #project-grid:active{cursor:grabbing}
.v8-project-carousel #project-grid>.project-card{flex:0 0 calc((100% - 48px)/4);min-width:0;scroll-snap-align:start;box-sizing:border-box}
/* Home course cards with photographic covers */
.home-course-highlights>a.v8-home-course{padding:0;overflow:hidden;display:flex;flex-direction:column;gap:0;min-height:0;border-radius:18px;background:#fff;transition:transform .2s;position:relative}
.v8-home-course>img{width:100%;height:154px;object-fit:cover;display:block;transition:transform .25s}
.v8-home-course:hover img{transform:scale(1.03)}
.v8-home-course .v8-course-cat{align-self:flex-start;background:#fff0bf;border-radius:30px;font-size:10px;font-weight:900;color:#7a5800;padding:5px 12px;margin:15px 16px 9px;width:auto;height:auto;display:inline-block}
.home-course-highlights .v8-home-course strong{font-size:16px;margin:0 16px 5px;color:#183244;font-weight:900}
.home-course-highlights .v8-home-course small{margin:0 16px 14px;line-height:1.8;color:#728592;font-size:11px}
.home-course-highlights .v8-home-course .v8-course-link{border-top:1px solid #edf1f3;display:block;background:transparent;color:#b18300;font-size:11px;font-weight:900;padding:12px 16px;margin-top:auto;width:100%;height:auto;border-radius:0}
/* Align about block to the content directly above it, give it breathing space before footer. */
body:has(.home-finance-lab) .about-section{max-width:1120px!important;width:calc(100% - 70px)!important;margin:52px auto 86px!important;box-sizing:border-box}
/* Shop: new product discovery journey instead of duplicate category tile filter */
.v8-shop-discovery{background:linear-gradient(127deg,#152939 0%,#1b3444 64%,#24414e 100%);padding:28px 30px 32px;border-radius:22px;color:#fff;margin:30px auto 35px;position:relative;overflow:hidden}
.v8-shop-discovery::before{content:'';position:absolute;top:-160px;left:-70px;width:300px;height:300px;border:1px solid #ffffff27;border-radius:50%;pointer-events:none}
.v8-shop-discovery-head{position:relative;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.v8-shop-discovery h2{font-size:23px;color:#fff;font-weight:900;margin:6px 0 7px}.v8-shop-discovery p{font-size:12px;color:#c4d4dd;line-height:1.9;margin:0}
.v8-shop-discovery .eyebrow{color:#ffca3e}.v8-shop-hint{font-size:10px;color:#efce74;border:1px solid #ffcd5063;padding:8px 11px;border-radius:50px;white-space:nowrap}
.v8-shop-paths{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;position:relative}
.v8-shop-paths>button{border:1px solid #ffffff2a;color:#fff;background:#ffffff10;min-height:166px;border-radius:15px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:right;padding:19px 17px;cursor:pointer;font:inherit;transition:.2s}
.v8-shop-paths>button:hover{transform:translateY(-3px);background:#ffffff20;border-color:#ffd35a}
.v8-shop-paths>button>span{font-size:28px}.v8-shop-paths strong{font-size:14px;font-weight:900}.v8-shop-paths small{font-size:10px;color:#c7d5df;line-height:1.8}.v8-shop-paths b{margin-top:auto;font-size:10px;color:#ffcc3f}
@media(max-width:1000px){.v8-project-carousel #project-grid>.project-card{flex-basis:calc((100% - 32px)/3)}.v8-shop-paths{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.v8-project-carousel #project-grid>.project-card{flex-basis:calc((100% - 16px)/2)}body:has(.home-finance-lab) .about-section{width:calc(100% - 36px)!important;margin:42px auto 60px!important}.home-course-highlights{grid-template-columns:1fr}.v8-home-course>img{height:185px}.v8-portfolio-mini{grid-template-columns:1fr}.v8-mini-asset-list{grid-template-columns:1fr}.v8-shop-discovery-head{flex-direction:column;align-items:flex-start}.v8-shop-discovery{padding:24px 18px}}
@media(max-width:460px){.v8-project-carousel #project-grid>.project-card{flex-basis:84%}.v8-carousel-actions button{width:33px;height:33px}.v8-shop-paths{grid-template-columns:1fr}.v8-shop-paths>button{min-height:132px}.v8-footer-brand{min-width:0}.v8-footer-brand>img{width:51px!important;height:55px!important;min-width:51px}.v8-footer-brand-text strong{font-size:20px}.v8-footer-brand-text small{font-size:8px}}
