/*
Theme Name: Melvin Dev Publication
Theme URI: https://melvindevpublication.com/
Author: Melvin Dev Publication
Description: Premium academic publishing homepage for Melvin Dev Publication.
Version: 2.1
Text Domain: melvin-dev-publication
*/
:root{--navy:#082a50;--navy2:#123d6b;--orange:#f36b16;--cream:#fbf8f2;--ink:#17253a;--muted:#65748a;--line:#e5e9ee;--white:#fff;--max:1240px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;line-height:1.55}a{color:inherit;text-decoration:none}.site-shell{width:min(var(--max),calc(100% - 48px));margin:auto}
.topbar{background:var(--navy);color:#fff;font-size:12px;letter-spacing:.02em}.topbar-inner{min-height:34px;display:flex;align-items:center;gap:20px}.top-contact{margin-left:auto;color:#fff}.top-contact::first-letter{color:var(--orange)}
.nav-wrap{background:#fff;border-bottom:1px solid #e9edf1;position:relative;z-index:20;box-shadow:0 3px 16px rgba(9,34,59,.05)}.nav-inner{height:84px;display:flex;align-items:center}.brand{display:flex;align-items:center;height:100%;width:225px;flex:none}.brand img{display:block;width:150px;height:76px;object-fit:contain;object-position:left center}.main-nav{margin-left:auto;display:flex;align-items:center;gap:25px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.02em}.main-nav a{padding:11px 0}.main-nav a:hover{color:var(--orange)}.main-nav .nav-cta{background:var(--orange);color:#fff;padding:12px 18px;border-radius:7px}.menu-toggle{display:none;margin-left:auto;background:none;border:0;font-size:26px}
.hero{background:#f4f0e8}.hero-inner{width:100%;position:relative;overflow:hidden}.hero-image{display:block;width:100%;height:auto;min-height:480px;object-fit:cover}.hero-actions-overlay{position:absolute;left:5.5%;bottom:11.5%;display:flex;gap:14px}.btn{display:inline-flex;align-items:center;gap:12px;padding:14px 22px;border-radius:8px;font-weight:800;font-size:14px;border:1px solid transparent}.btn-primary{background:var(--orange);color:#fff}.btn-outline{background:#fff;color:var(--navy);border-color:var(--navy)}.btn span{font-size:18px}
.trust-strip{background:#fff;border-bottom:1px solid var(--line)}.trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}.trust-grid>div{padding:18px 24px;text-align:center;border-right:1px solid var(--line)}.trust-grid>div:last-child{border-right:0}.trust-grid strong,.trust-grid span{display:block}.trust-grid strong{font-size:14px;color:var(--navy)}.trust-grid span{font-size:11px;color:var(--muted);margin-top:2px}
.intro-section{padding:90px 0;background:var(--cream)}.two-col-intro{display:grid;grid-template-columns:1.3fr .7fr;gap:90px;align-items:center}.eyebrow{font-size:11px;font-weight:900;letter-spacing:.16em;color:var(--orange);margin:0 0 10px;text-transform:uppercase}.intro-section h1,.section-heading h2,.authors-section h2,.publish-section h2,.contact-section h2{font-size:40px;line-height:1.08;margin:0 0 18px;color:var(--navy)}.lead{font-size:17px;color:#506078;max-width:720px}.mini-points{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.mini-points span{border:1px solid #dce3eb;background:#fff;border-radius:30px;padding:8px 13px;font-size:12px;color:var(--navy);font-weight:700}.about-card{background:var(--navy);color:#fff;border-radius:18px;padding:40px;box-shadow:0 18px 50px rgba(8,42,80,.18)}.about-mark{font-weight:900;font-size:42px;color:var(--orange);margin-bottom:12px}.about-card p{font-size:16px;color:#eaf1f8}.text-link{color:#fff;font-weight:800;font-size:13px}
.books-section{padding:92px 0;background:#fff}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:38px}.section-heading h2{margin-bottom:8px}.section-heading p:not(.eyebrow){margin:0;color:var(--muted);font-size:15px}.section-badge{background:var(--navy);color:#fff;border-radius:30px;padding:11px 18px;font-size:12px;font-weight:800;white-space:nowrap}.book-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.book-card{border:1px solid #e2e6eb;border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 8px 28px rgba(13,38,64,.06);transition:.2s}.book-card:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(13,38,64,.12)}.cover-frame{background:#f4f1ea;padding:14px;height:340px;display:flex;align-items:center;justify-content:center}.cover-frame img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.book-body{padding:18px 18px 15px}.medium-label{font-size:10px;letter-spacing:.13em;font-weight:900;color:var(--orange);text-transform:uppercase}.book-body h3{font-size:18px;line-height:1.25;margin:7px 0 2px;color:var(--navy)}.paired-title{margin:0;color:#7c8795;font-size:13px}.authors{font-size:11px;color:#66758a;min-height:38px;margin:12px 0}.book-meta{border-top:1px solid var(--line);padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.book-meta strong{color:var(--navy);font-size:14px}.book-meta span{font-size:9px;color:#7c8795;text-align:right}
.features-section{padding:90px 0;background:#f5f7fa}.centered{text-align:center;display:block;max-width:760px;margin:0 auto 40px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.feature{background:#fff;border:1px solid var(--line);padding:28px;border-radius:14px}.feature span{font-size:11px;font-weight:900;color:var(--orange)}.feature h3{margin:10px 0 7px;color:var(--navy)}.feature p{font-size:13px;color:var(--muted);margin:0}
.authors-section{padding:90px 0}.author-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.author-card{display:flex;gap:18px;border:1px solid var(--line);border-radius:15px;padding:24px;background:#fff}.author-initial{width:54px;height:54px;border-radius:50%;background:#edf3f9;color:var(--navy);display:grid;place-items:center;font-weight:900;flex:none}.author-card h3{margin:0;color:var(--navy);font-size:17px}.author-card p{font-size:11px;color:#66758a;margin:5px 0}.author-card span{font-size:11px;color:var(--orange);font-weight:700}
.publish-section{background:var(--navy);color:#fff;padding:65px 0}.publish-inner{display:flex;align-items:center;justify-content:space-between;gap:40px}.publish-section h2{color:#fff;margin-bottom:10px}.publish-section p:not(.eyebrow){color:#d9e5f0;margin:0}.publish-section .btn{flex:none}
.updates-section{padding:85px 0;background:var(--cream)}.update-box{border:1px solid #e3d8ca;background:#fff;border-radius:16px;padding:30px}.update-box span{font-size:10px;font-weight:900;color:var(--orange);letter-spacing:.14em}.update-box h3{margin:8px 0 5px;color:var(--navy)}.update-box p{margin:0;color:var(--muted)}
.contact-section{padding:90px 0}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px}.contact-lead{color:var(--muted);font-size:16px;max-width:560px}.contact-details{display:grid;grid-template-columns:1fr 1fr;gap:26px}.contact-details>div:last-child{grid-column:1/-1}.contact-details small{font-size:10px;letter-spacing:.13em;font-weight:900;color:var(--orange)}.contact-details p{margin:6px 0 0;color:#3f5269;font-size:14px}.contact-details a:hover{color:var(--orange)}
.site-footer{background:#071e37;color:#d9e5f0}.footer-grid{display:grid;grid-template-columns:1.5fr .7fr .8fr;gap:60px;padding:55px 0}.footer-logo{width:145px;height:65px;object-fit:contain;object-position:left center;background:#fff;border-radius:4px;padding:4px}.footer-grid p{font-size:12px;color:#afc1d3}.footer-grid h4{margin:0 0 15px;color:#fff}.footer-grid a{display:block;font-size:12px;margin:7px 0;color:#afc1d3}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:16px 0;font-size:11px;color:#9eb0c2}
@media(max-width:1000px){.main-nav{gap:15px;font-size:11px}.brand{width:190px}.book-grid{grid-template-columns:repeat(2,1fr)}.feature-grid{grid-template-columns:repeat(2,1fr)}.author-grid{grid-template-columns:1fr}.hero-image{min-height:0}.hero-actions-overlay{bottom:7%}}
@media(max-width:760px){.site-shell{width:min(100% - 28px,var(--max))}.topbar-inner{justify-content:center;font-size:10px}.topbar-inner>span:first-child,.topbar-inner>span:nth-child(2){display:none}.top-contact{margin:0}.nav-inner{height:72px}.brand img{width:125px;height:64px}.menu-toggle{display:block}.main-nav{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;padding:15px 20px;flex-direction:column;align-items:stretch;box-shadow:0 10px 25px rgba(0,0,0,.1)}.main-nav.is-open{display:flex}.main-nav a{padding:10px}.main-nav .nav-cta{text-align:center}.hero-actions-overlay{position:static;background:#fff;padding:14px;justify-content:center}.hero-image{width:100%;height:auto}.trust-grid{grid-template-columns:repeat(2,1fr)}.trust-grid>div:nth-child(2){border-right:0}.trust-grid>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.intro-section,.books-section,.features-section,.authors-section,.updates-section,.contact-section{padding:62px 0}.two-col-intro,.contact-grid{grid-template-columns:1fr;gap:35px}.intro-section h1,.section-heading h2,.authors-section h2,.publish-section h2,.contact-section h2{font-size:31px}.section-heading{display:block}.section-badge{display:inline-block;margin-top:18px}.book-grid{grid-template-columns:1fr}.cover-frame{height:auto;min-height:360px}.feature-grid{grid-template-columns:1fr}.publish-inner{display:block}.publish-section .btn{margin-top:25px}.contact-details{grid-template-columns:1fr}.contact-details>div:last-child{grid-column:auto}.footer-grid{grid-template-columns:1fr;gap:30px}}

/* V3 refinement: professional header, exact logo fit, and hero presentation */
.topbar{font-size:14px;letter-spacing:.01em}
.topbar-inner{min-height:44px;gap:28px}
.top-slogan{display:flex;align-items:center;gap:9px;color:#fff;white-space:nowrap}
.top-slogan span{color:var(--orange)}
.top-contact{font-size:14px;font-weight:700;display:flex;align-items:center;gap:12px}
.top-contact a{color:#fff}
.top-contact a:hover{color:#ff9a54}
.top-contact .divider{color:#7187a1}
.nav-inner{height:96px}
.brand{width:205px;height:96px;display:flex;align-items:center}
.brand img{width:160px;height:88px;object-fit:contain;object-position:left center}
.main-nav{gap:24px;font-size:13px}
.hero{background:#f7f3eb}
.hero-inner{position:relative;line-height:0}
.hero-image{display:block;width:100%;height:auto;min-height:0;object-fit:contain}
.hero-hotspot{position:absolute;display:block;z-index:4;border-radius:24px}
.hero-hotspot-books{left:2.8%;top:74.3%;width:13.3%;height:6.3%}
.hero-hotspot-publish{left:16.8%;top:74.3%;width:13.6%;height:6.3%}
.books-section{padding-top:82px}
.section-heading h2{font-size:42px}
.book-grid{grid-template-columns:repeat(4,1fr);gap:24px}
.cover-frame{height:auto;min-height:0;padding:14px;background:#f4f1ea;aspect-ratio:1772 / 1276}
.cover-frame img{width:100%;height:100%;object-fit:contain}
.book-card{border-radius:16px}
.book-body{padding:16px 17px 15px}
.medium-label{font-size:10px}
.book-body h3{font-size:18px}
.authors{min-height:32px}
.section-badge{display:none}
@media(max-width:1000px){.top-slogan{font-size:12px}.top-contact{font-size:12px}.main-nav{gap:14px;font-size:11px}.brand{width:180px}.brand img{width:145px}.book-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.topbar-inner{min-height:40px}.top-slogan{display:none}.top-contact{margin:0 auto;font-size:12px}.nav-inner{height:78px}.brand{width:155px;height:78px}.brand img{width:130px;height:70px}.hero-hotspot{display:none}.book-grid{grid-template-columns:1fr}.cover-frame{aspect-ratio:1772 / 1276}.section-heading h2{font-size:32px}}
.hero-actions-overlay{display:none}
/* Standalone plugin safety + final header refinements */
.melvin-homepage{margin:0}
.melvin-homepage .topbar{font-size:15px}
.melvin-homepage .topbar-inner{min-height:48px}
.melvin-homepage .top-slogan{font-size:14px;white-space:nowrap}
.melvin-homepage .top-contact{font-size:15px;font-weight:700;white-space:nowrap}
.melvin-homepage .nav-inner{height:92px}
.melvin-homepage .brand{width:220px;height:92px;position:relative;z-index:2;display:flex;align-items:center}
.melvin-homepage .brand img{width:170px;height:84px;object-fit:contain;object-position:left center;display:block}
.melvin-homepage .main-nav{font-size:13px;gap:23px}
.melvin-homepage .books-section .section-heading{align-items:end}
.melvin-homepage .books-section .section-heading h2{font-size:38px}
.melvin-homepage .book-grid{grid-template-columns:repeat(4,1fr)}
.melvin-homepage .cover-frame{height:auto;aspect-ratio:auto;min-height:0;padding:14px;background:#f4f1ea}
.melvin-homepage .cover-frame img{width:100%;height:auto;object-fit:contain}
@media(max-width:1100px){.melvin-homepage .topbar-inner{padding-left:20px;padding-right:20px}.melvin-homepage .top-slogan{font-size:12px}.melvin-homepage .top-contact{font-size:13px}.melvin-homepage .main-nav{gap:13px;font-size:11px}.melvin-homepage .brand{width:190px}.melvin-homepage .brand img{width:150px}.melvin-homepage .book-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.melvin-homepage .topbar-inner{min-height:44px}.melvin-homepage .top-slogan{display:none}.melvin-homepage .top-contact{font-size:12px}.melvin-homepage .nav-inner{height:78px}.melvin-homepage .brand{width:155px;height:78px}.melvin-homepage .brand img{width:135px;height:72px}.melvin-homepage .main-nav{top:78px}.melvin-homepage .book-grid{grid-template-columns:1fr}.melvin-homepage .books-section .section-heading h2{font-size:31px}}
