/*
Theme Name: Academic Support Hubs
Theme URI: https://academicsupporthubs.com/
Author: Academic Support Hubs
Author URI: https://academicsupporthubs.com/
Description: Premium theme for Academic Support Hubs — ethical academic tutoring, editing and research support. Navy and gold design system with Newsreader and Figtree typography. Elementor compatible.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: academic-support-hubs
Tags: blog, one-column, custom-logo, custom-menu, featured-images
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { margin: 0; background: #F7F7F4; color: #14243B; font-family: 'Figtree', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #0B1F3A; text-decoration: none; }
a:hover { color: #A3822B; }
img { max-width: 100%; height: auto; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
input::placeholder, textarea::placeholder { color: #93A1B5; }
@keyframes ash-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,163,91,.45); } 60% { box-shadow: 0 0 0 14px rgba(37,163,91,0); } }

/* ---------- Header ---------- */
.ash-header { position: sticky; top: 0; z-index: 100; background: rgba(247,247,244,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(11,31,58,.08); }
.ash-header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.ash-logo, .ash-logo-link .custom-logo { height: 48px; width: auto; display: block; }
.ash-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.ash-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; font-size: 14.5px; font-weight: 500; }
.ash-menu a { color: #31445E; }
.ash-menu a:hover { color: #A3822B; }
.ash-menu li { position: relative; }
.ash-menu .sub-menu { list-style: none; visibility: hidden; opacity: 0; transition: opacity .15s; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding: 14px 0 0; margin: 0; z-index: 110; min-width: 240px; }
.ash-menu li:hover > .sub-menu, .ash-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.ash-menu .sub-menu li { background: #FFFFFF; }
.ash-menu .sub-menu a { display: block; padding: 11px 18px; font-size: 14.5px; color: #0B1F3A; background: #FFFFFF; border-left: 1px solid rgba(11,31,58,.08); border-right: 1px solid rgba(11,31,58,.08); }
.ash-menu .sub-menu li:first-child a { border-top: 1px solid rgba(11,31,58,.08); border-radius: 14px 14px 0 0; }
.ash-menu .sub-menu li:last-child a { border-bottom: 1px solid rgba(11,31,58,.08); border-radius: 0 0 14px 14px; box-shadow: 0 24px 60px -20px rgba(11,31,58,.25); }
.ash-menu .sub-menu a:hover { background: #F3F1EA; }
.ash-menu .menu-item-has-children > a::after { content: ' \25BE'; font-size: 10px; color: #8A97AA; }
.ash-btn-quote { background: #0B1F3A; color: #FFFFFF; font-size: 13.5px; font-weight: 600; padding: 10px 20px; border-radius: 999px; white-space: nowrap; }
.ash-btn-quote:hover { background: #16325A; color: #FFFFFF; }
.ash-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(11,31,58,.15); background: #FFFFFF; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.ash-burger span { width: 18px; height: 2px; background: #0B1F3A; border-radius: 2px; display: block; }
.ash-mobile-menu { background: #FFFFFF; border-top: 1px solid rgba(11,31,58,.08); box-shadow: 0 24px 40px -20px rgba(11,31,58,.25); padding: 12px 24px 24px; }
.ash-menu-mobile { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; font-weight: 500; }
.ash-menu-mobile a { display: block; padding: 12px 8px; border-radius: 10px; color: #0B1F3A; }
.ash-menu-mobile a:hover { background: #F3F1EA; }
.ash-menu-mobile .sub-menu { list-style: none; padding-left: 16px; }
.ash-mobile-ctas { display: flex; gap: 10px; margin-top: 14px; }
.ash-btn-wa, .ash-btn-navy { flex: 1; text-align: center; color: #FFFFFF; font-size: 15px; font-weight: 600; padding: 13px; border-radius: 999px; }
.ash-btn-wa { background: #25A35B; } .ash-btn-wa:hover { background: #1E8A4C; color: #FFFFFF; }
.ash-btn-navy { background: #0B1F3A; } .ash-btn-navy:hover { background: #16325A; color: #FFFFFF; }
@media (max-width: 1079px) {
  .ash-nav { display: none; }
  .ash-burger { display: flex; }
}
@media (min-width: 1080px) { .ash-mobile-menu { display: none !important; } }

/* ---------- Footer ---------- */
.ash-footer { background: #071426; color: #93A3B8; }
.ash-footer a { color: #93A3B8; font-size: 14.5px; }
.ash-footer a:hover { color: #F4F1E8; }
.ash-footer-grid { max-width: 1200px; margin: 0 auto; padding: 64px 24px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.ash-footer-brand { display: flex; flex-direction: column; gap: 16px; }
.ash-footer-brand p { font-size: 14px; line-height: 1.65; margin: 0; max-width: 280px; }
.ash-footer-logo { display: inline-flex; align-self: flex-start; background: #FFFFFF; border-radius: 14px; padding: 10px 16px; }
.ash-footer-logo img { height: 42px; width: auto; display: block; }
.ash-footer-col { display: flex; flex-direction: column; gap: 12px; }
.ash-footer-head { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #E3C878; font-weight: 600; margin-bottom: 4px; }
.ash-footer-news { font-size: 14px; line-height: 1.6; margin: 0; }
.ash-news-form { display: flex; gap: 8px; }
.ash-news-form input { flex: 1; min-width: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(244,241,232,.15); border-radius: 999px; padding: 12px 18px; font-family: 'Figtree', sans-serif; font-size: 14px; color: #F4F1E8; outline: none; }
.ash-news-form button { background: #E3C878; color: #0B1F3A; border: none; border-radius: 999px; padding: 12px 20px; font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; }
.ash-news-form button:hover { background: #EFD695; }
.ash-footer-legalbar { max-width: 1200px; margin: 48px auto 0; padding: 24px; border-top: 1px solid rgba(244,241,232,.1); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ash-footer-disclaimer { font-size: 12px; color: #68788E; max-width: 640px; line-height: 1.6; }
.ash-pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ash-pay-badges span { border: 1px solid rgba(244,241,232,.18); border-radius: 8px; padding: 6px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: #A8B6C9; }
.ash-pay-badges .ash-pay-secure { border-color: rgba(37,163,91,.5); color: #4CC581; }
.ash-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 24px 28px; border-top: 1px solid rgba(244,241,232,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.ash-footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Floating buttons ---------- */
.ash-wa-float { position: fixed; bottom: 26px; right: 26px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; background: #25A35B; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; box-shadow: 0 12px 30px -8px rgba(37,163,91,.6); animation: ash-pulse 2.6s infinite; }
.ash-wa-float:hover { background: #1E8A4C; color: #FFFFFF; transform: scale(1.06); }
.ash-back-top { position: fixed; bottom: 26px; right: 98px; z-index: 200; width: 46px; height: 46px; border-radius: 50%; background: #FFFFFF; color: #0B1F3A; border: 1px solid rgba(11,31,58,.15); font-size: 18px; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(11,31,58,.3); display: none; }
.ash-back-top:hover { background: #0B1F3A; color: #FFFFFF; }
.ash-back-top.visible { display: block; }

/* ---------- Blog ---------- */
.ash-page-hero { margin: 16px 0 0; background: linear-gradient(135deg, #091D43 0%, #14357F 58%, #0A2A6B 100%); color: #F4F1E8; position: relative; overflow: hidden; }
.ash-page-hero-inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px 72px; display: flex; flex-direction: column; gap: 18px; }
.ash-kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #E3C878; font-weight: 600; }
.ash-page-hero h1 { font-family: 'Newsreader', serif; font-weight: 500; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.1; letter-spacing: -.02em; margin: 0; max-width: 760px; color: #F4F1E8; }
.ash-page-hero p { font-size: 17.5px; line-height: 1.65; color: #B9C4D4; margin: 0; max-width: 620px; }
.ash-blog-layout { max-width: 1200px; margin: 0 auto; padding: 72px 24px; display: flex; gap: 44px; flex-wrap: wrap; align-items: flex-start; }
.ash-blog-main { flex: 1 1 640px; min-width: min(300px, 100%); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ash-post-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid rgba(11,31,58,.07); border-radius: 20px; overflow: hidden; transition: box-shadow .25s; }
.ash-post-card:hover { box-shadow: 0 24px 50px -24px rgba(11,31,58,.28); }
.ash-post-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.ash-post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.ash-post-cat { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #A3822B; font-weight: 600; }
.ash-post-title { font-family: 'Newsreader', serif; font-size: 20px; font-weight: 500; color: #0B1F3A; line-height: 1.3; margin: 0; }
.ash-post-title a { color: #0B1F3A; } .ash-post-title a:hover { color: #A3822B; }
.ash-post-excerpt { font-size: 13.5px; line-height: 1.55; color: #5A6B82; margin: 0; }
.ash-post-meta { font-size: 12.5px; color: #8A97AA; margin-top: 4px; }
.ash-sidebar { flex: 0 1 300px; min-width: min(280px, 100%); display: flex; flex-direction: column; gap: 22px; }
.ash-widget { background: #FFFFFF; border: 1px solid rgba(11,31,58,.07); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ash-widget-title { font-weight: 700; font-size: 15px; color: #0B1F3A; }
.ash-widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ash-widget li a { font-size: 14px; color: #31445E; } .ash-widget li a:hover { color: #A3822B; }
.ash-widget .wp-block-search__inside-wrapper, .ash-widget form.search-form { display: flex; gap: 8px; }
.ash-widget input[type="search"], .ash-widget input[type="text"] { flex: 1; min-width: 0; background: #F7F7F4; border: 1px solid rgba(11,31,58,.1); border-radius: 999px; padding: 11px 16px; font-family: 'Figtree', sans-serif; font-size: 14px; outline: none; }
.ash-widget button, .ash-widget input[type="submit"] { background: #0B1F3A; color: #E3C878; border: none; border-radius: 999px; padding: 11px 16px; font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; }
.ash-single { max-width: 800px; margin: 0 auto; padding: 64px 24px; }
.ash-single-content { font-size: 16.5px; line-height: 1.8; color: #31445E; }
.ash-single-content h2, .ash-single-content h3 { font-family: 'Newsreader', serif; color: #0B1F3A; font-weight: 500; letter-spacing: -.01em; }
.ash-single-content img { border-radius: 16px; }
.ash-single-content a { color: #A3822B; text-decoration: underline; }
.ash-single-thumb img { width: 100%; height: 340px; object-fit: cover; border-radius: 20px; display: block; }
.ash-pagination { display: flex; gap: 8px; justify-content: center; padding: 12px 24px 64px; }
.ash-pagination .page-numbers { border: 1px solid rgba(11,31,58,.15); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: #31445E; }
.ash-pagination .page-numbers.current { background: #0B1F3A; color: #FFFFFF; border-color: #0B1F3A; }

/* Elementor full-width friendliness */
.elementor-page .ash-content-wrap { max-width: none; padding: 0; }
