/*
Theme Name: Recep Erz Matematik Akademisi
Author: İhsan Erz
Description: Lacivert ve turuncu, mobil uyumlu ücretsiz matematik eğitim teması. Mevcut içeriği koruyan kurulum.
Version: 1.2.0
Text Domain: recep-erz
*/
:root{--navy:#062d4d;--ink:#101c36;--orange:#e8870d;--gold:#ffbd24;--paper:#f4f7fb;--white:#fff;--muted:#41526a}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--orange);outline-offset:4px}button{cursor:pointer}svg{width:36px;height:36px;flex-shrink:0}h1,h2,h3,p{margin:0 0 .65em}h2{font-size:23px;line-height:1.15;letter-spacing:-.03em}h1{font-size:44px;line-height:1.08;letter-spacing:-.035em}.wrap{width:min(1220px,calc(100% - 48px));margin:auto}.skip{position:absolute;left:15px;top:-100px;background:white;padding:12px;z-index:10}.skip:focus{top:10px}.site-header{background:white}.header-row{display:flex;align-items:center;gap:22px;min-height:86px}.logo{width:275px;flex-shrink:0;display:block}.logo-crop{display:block;width:275px;height:70px;background:url('assets/reference.jpeg') no-repeat -25px 0;background-size:1200px 1312px;background-color:white}.header-row nav{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex:1}.header-row nav a{font-size:14px;font-weight:700;white-space:nowrap;padding:9px 0}.header-row nav a:hover{color:var(--orange)}.header-row nav a:first-child{background:var(--navy);color:white;padding:8px 12px;border-radius:5px}.search-toggle{border:0;background:var(--navy);color:white;border-radius:5px;width:36px;height:36px;font-size:28px;flex-shrink:0}.menu-toggle{display:none}.search-panel{padding:15px 0 24px;display:flex;gap:12px;align-items:center}.search-panel[hidden]{display:none}.search-panel input{flex:1}.hero{background:var(--navy);color:white;position:relative;overflow:hidden;min-height:355px;border-bottom:9px solid var(--gold);border-radius:0 0 48% 3% / 0 0 5% 1%}.hero-visual{position:absolute;inset:0;background-image:url('assets/reference.jpeg');background-repeat:no-repeat;background-size:1440px 1574px;background-position:right -86px}.hero-content{position:relative;padding-top:28px;padding-bottom:35px}.hero-content:before{content:'';position:absolute;left:-30px;top:0;bottom:0;width:580px;background:#062d4d;z-index:-1}.hero-content{isolation:isolate}.hero h1{font-size:50px;max-width:590px;line-height:1.04}.hero em{font-family:'Segoe Print','Comic Sans MS',cursive;font-weight:500;color:var(--gold);font-size:1.08em}.hero p{max-width:480px;font-size:21px;line-height:1.3;margin:16px 0}.actions{display:flex;gap:15px;flex-wrap:wrap}.btn,.outline{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 17px;border-radius:9px;border:0;font-weight:700;line-height:1.3;min-height:44px;transition:transform .15s,background-color .15s}.btn{background:var(--gold);color:var(--ink)}.btn:hover{background:#ffd15d;transform:translateY(-2px)}.secondary{background:transparent;color:white;border:2px solid white}.outline{color:#9d4d09;box-shadow:inset 0 0 0 1.5px var(--orange);background:white;padding:8px 13px;min-height:38px}.outline:hover{background:#fff4df}.home-content{padding:17px 0 25px}.features{display:grid;grid-template-columns:repeat(6,1fr);background:white;border-radius:14px;padding:12px 0;margin-bottom:18px;box-shadow:0 3px 10px #1438580d}.features a{display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 12px;gap:2px;border-right:1px solid #dce1e8}.features a:last-child{border:0}.features svg{color:var(--orange);height:43px;width:43px;margin-bottom:5px}.features strong{font-size:17px;line-height:1.1}.features span{font-size:14px;line-height:1.25;max-width:150px}.features a:hover strong{color:#a54b00}.spotlights{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:16px;margin-bottom:18px}.weekly{display:flex;gap:18px;align-items:center;background:var(--navy);color:white;border-radius:14px;padding:20px 20px 17px;min-height:195px}.weekly p{font-size:15px;line-height:1.25}.bulb{font-size:90px;color:white;width:85px;flex-shrink:0;text-align:center;border:3px solid white;border-radius:50%;height:105px;line-height:100px;font-weight:300}.weekly h2{font-size:24px}.spotlight{background:white;border-radius:14px;display:flex;overflow:hidden;gap:13px;align-items:center;padding:8px}.spotlight h2{font-size:24px}.spotlight p{font-size:15px;line-height:1.25}.spotlight .outline{font-size:14px;padding:6px 10px}.ref-art{background-image:url('assets/reference.jpeg');background-repeat:no-repeat;flex-shrink:0}.library-art{width:39%;height:178px;background-size:1200px 1312px;background-position:-472px -537px;border-radius:8px}.mountain-art{width:39%;height:178px;background-size:1200px 1312px;background-position:-813px -538px;border-radius:8px}.home-columns{display:grid;grid-template-columns:2.3fr 1fr;gap:16px;margin-bottom:18px}.panel{background:white;border-radius:14px;padding:15px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}.section-title h2,.panel h2{display:flex;align-items:center;gap:10px}.section-title h2{margin:0}.panel svg{color:var(--orange);width:30px;height:30px}.section-title>a{font-size:14px;color:#a64e00;white-space:nowrap}.grades{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.grade{border-radius:13px;color:white;padding:14px 13px;position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:20px;overflow:hidden;transition:transform .2s}.grade:hover{transform:translateY(-4px)}.grade strong{font-size:23px;line-height:1.2;letter-spacing:-.04em;z-index:1}.grade-5{background:#0789ce}.grade-6{background:#0b9896}.grade-7{background:#9635c9}.grade-8{background:#ec760c}.math-sign{position:absolute;right:8px;top:7px;font-size:60px;opacity:.45;line-height:1}.grade-link{background:white;color:var(--navy);font-weight:bold;border-radius:25px;font-size:14px;padding:4px 10px;white-space:nowrap;z-index:1}.latest h2{margin-bottom:8px}.latest>a{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px solid #e7eaf0}.latest strong{font-size:14px;line-height:1.2}.mini-art{background:#dbe7ee;color:var(--navy);font-family:Georgia,serif;min-width:65px;height:46px;border-radius:6px;font-size:29px;text-align:center}.lower-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;margin-bottom:18px}.book-panel,.writing-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:170px}.book-panel>div:first-child,.writing-panel>div:first-child{flex:1}.book-panel p,.writing-panel p{font-size:15px;max-width:280px}.book-drawing{background:#e78e16;transform:rotate(4deg);border-left:10px solid #073750;box-shadow:7px 5px 0 #d1d9e0;padding:18px 14px 12px;width:145px;color:white;line-height:1.2}.book-drawing b{display:block;font-size:42px}.book-drawing small{font-size:11px}.desk-art{width:42%;height:145px;border-radius:8px;background-size:1200px 1312px;background-position:-955px -961px}.free-strip{background:#e7eef5;border-radius:14px;padding:20px;display:flex;align-items:center;gap:30px;justify-content:space-between}.free-strip h2{margin-bottom:6px}.free-strip p{margin:0;max-width:760px}.free-strip .btn{flex-shrink:0}.site-footer{background:var(--navy);color:white;padding:23px 0 12px}.footer-grid{display:grid;grid-template-columns:1.1fr .8fr 1fr 1.1fr;gap:35px}.footer-grid h2{font-size:18px;margin:0 0 12px}.footer-grid p{font-size:14px;line-height:1.5}.footer-grid a:not(.logo):not(.btn){display:block;font-size:14px;margin-bottom:5px}.footer-grid a:not(.logo):hover{text-decoration:underline}.footer-logo{background:white;border-radius:6px;width:250px;overflow:hidden;margin-bottom:12px}.footer-logo .logo-crop{transform:scale(.90);transform-origin:left center;height:65px}.footer-bottom{display:flex;justify-content:space-between;border-top:1px solid #ffffff65;margin-top:19px;padding-top:12px;font-size:13px}.footer-bottom a{margin-left:18px}.legal-note{font-size:12px;text-align:right;margin-top:7px;opacity:.88}.page-content{padding-top:45px;padding-bottom:60px;min-height:60vh}.page-intro{max-width:850px;margin-bottom:32px}.page-intro p{font-size:21px;color:var(--muted);margin-top:16px}.content-box,.resource,.quiz{padding:27px;background:white;border-radius:12px;margin-bottom:20px}.content-box{max-width:900px}.content-box p:last-child{margin-bottom:0}.content-box h2{font-size:26px}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.resource{display:block;margin:0;transition:transform .2s}.resource:hover{transform:translateY(-4px)}.resource span{font-size:14px;color:var(--muted);display:block;margin-bottom:13px}.resource h2{font-size:26px}.resource strong{color:#a45100;font-size:15px}.filter-row{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.filter-row button{padding:10px 20px;border:0;border-radius:7px;background:#dce6ef;color:var(--ink)}.filter-row button[aria-pressed=true]{background:var(--navy);color:white}details{background:#edf3f8;padding:15px 20px;border-radius:8px;margin-top:14px}summary{font-weight:bold;cursor:pointer}details p{margin-top:14px}input,select{padding:12px;border:1px solid #a8b9c8;border-radius:7px;background:white;color:var(--ink)}label{font-weight:bold}form.quiz{max-width:900px}.quiz fieldset{margin:22px 0;padding:20px;border:1px solid #bfcbd7;border-radius:8px}.quiz legend{font-size:18px;font-weight:bold}.quiz label.answer-option{display:flex;align-items:center;gap:12px;padding:8px;border-radius:6px;font-weight:normal}.quiz input[type=radio]{accent-color:var(--orange);width:20px;height:20px}.quiz label.answer-option:hover{background:#edf2f7}#quiz-result:empty{display:none}#quiz-result{background:#e6f3ea;padding:25px;margin-top:22px;border-radius:10px}#quiz-result ol{padding-left:22px}#quiz-result li{padding:8px 0}.note{color:var(--muted);max-width:900px}.tracker form{display:grid;gap:12px;max-width:500px}.tracker label{margin-top:8px}.study-row{display:flex;justify-content:space-between;padding:14px;background:#edf3f8;border-radius:7px;margin:8px 0;gap:16px}.study-row span{word-break:break-word}.tracker h2{margin-top:30px}#clear-study{margin-top:20px}.prose{max-width:800px;font-size:18px;background:white;padding:32px;border-radius:12px;margin-bottom:30px}.prose h2{margin-top:25px}.prose h2:first-child{margin-top:0}[hidden]{display:none!important}
@media(min-width:1441px){.hero-visual{background-size:100vw auto;background-position:right calc(-5.95vw)}}
@media(max-width:1250px){.header-row{gap:14px}.logo{width:240px}.logo-crop{transform:scale(.87);transform-origin:left center}.header-row nav{gap:12px}.header-row nav a{font-size:12px}.hero h1{font-size:46px}.hero-visual{background-size:1300px 1421px;background-position:right -77px}.spotlight h2{font-size:21px}.weekly h2{font-size:22px}.bulb{width:65px;font-size:65px;height:80px;line-height:75px}.grade strong{font-size:21px}.grade-link{font-size:12px;padding:5px 9px}.footer-logo .logo-crop{transform:scale(.90)}}
@media(max-width:1000px){.header-row{min-height:80px}.header-row nav{display:none;position:absolute;top:80px;left:0;right:0;background:white;z-index:9;padding:20px 25px;box-shadow:0 10px 20px #062d4d33}.header-row nav.open{display:grid;grid-template-columns:1fr 1fr}.header-row nav a{font-size:16px;padding:12px}.menu-toggle{display:block;margin-left:auto;background:var(--navy);color:white;border:0;border-radius:6px;padding:10px 14px}.hero h1{font-size:44px}.hero p{max-width:400px;font-size:19px}.hero-content:before{width:450px}.spotlights{grid-template-columns:1fr 1fr}.weekly{grid-column:1/-1}.weekly .bulb{width:85px}.weekly h2 br{display:none}.features{grid-template-columns:repeat(3,1fr);row-gap:20px;padding:18px 0}.features a:nth-child(3){border:0}.home-columns{grid-template-columns:1fr}.latest{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.latest h2{grid-column:1/-1}.lower-grid{grid-template-columns:1fr 1fr}.book-drawing{width:110px}.book-drawing b{font-size:32px}.desk-art{display:none}.footer-grid{grid-template-columns:1fr 1fr;gap:28px}.resource-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.wrap{width:calc(100% - 30px)}.header-row{gap:8px;min-height:75px}.logo{width:205px}.logo-crop{transform:scale(.74);height:70px}.header-row nav{top:75px}.menu-toggle{font-size:14px;padding:9px}.search-toggle{width:32px;height:36px}.search-panel{flex-wrap:wrap}.search-panel label{width:100%}.search-panel input{width:0}.hero{min-height:520px;border-radius:0 0 25% 2% / 0 0 3% 1%}.hero-visual{top:310px;height:220px;background-size:1050px 1148px;background-position:right -104px}.hero-content{padding-top:24px;padding-bottom:20px}.hero-content:before{display:none}.hero h1{font-size:36px;line-height:1.12}.hero em{font-size:1em}.hero p{font-size:17px;max-width:355px;margin:15px 0}.actions{gap:10px}.actions .btn{font-size:14px;padding:10px 12px;min-height:44px}.hero-content .secondary{border-width:1px}.features{gap:18px 0;margin-bottom:15px}.features a{padding:0 6px}.features svg{height:33px;width:33px}.features strong{font-size:14px}.features span{font-size:12px;line-height:1.3}.spotlights{grid-template-columns:1fr;gap:13px}.weekly{padding:20px;gap:22px}.weekly h2{font-size:23px}.weekly h2 br{display:block}.weekly p{font-size:15px}.spotlight{min-height:185px}.spotlight h2{font-size:25px}.spotlight p{font-size:16px}.library-art,.mountain-art{width:130px}.library-art{background-position:-473px -537px}.mountain-art{background-position:-813px -538px}.section-title{align-items:flex-start}.section-title h2{font-size:20px;max-width:240px}.section-title>a{font-size:12px}.panel{padding:13px}.grades{grid-template-columns:1fr 1fr;gap:12px}.grade{padding:15px;gap:21px}.grade strong{font-size:25px}.grade-link{font-size:14px}.latest{display:block}.latest h2{font-size:23px}.latest>a{padding:12px 0}.latest strong{font-size:16px}.mini-art{min-width:75px;height:52px}.lower-grid{grid-template-columns:1fr;gap:13px}.book-panel,.writing-panel{padding:20px}.book-drawing{width:120px}.desk-art{display:block;width:115px}.free-strip{align-items:flex-start;flex-direction:column;padding:20px;gap:18px}.free-strip h2{font-size:24px}.free-strip p{font-size:15px}.footer-grid{gap:25px 20px;grid-template-columns:1fr 1fr}.footer-grid>div:first-child,.footer-grid>div:last-child{grid-column:1/-1}.footer-grid>div:first-child p{max-width:320px}.footer-grid h2{font-size:17px}.footer-grid p,.footer-grid a:not(.logo):not(.btn){font-size:14px}.footer-bottom{display:block;font-size:12px}.footer-bottom div{margin-top:12px;display:flex;gap:15px;flex-wrap:wrap}.footer-bottom a{margin:0}.legal-note{text-align:left;font-size:12px;line-height:1.5;margin-top:15px}.page-content{padding-top:28px;padding-bottom:40px}h1{font-size:34px}.page-intro p{font-size:18px}.resource-grid{grid-template-columns:1fr;gap:15px}.content-box,.resource,.quiz{padding:20px}.content-box h2,.resource h2{font-size:24px}.quiz fieldset{padding:12px}.quiz legend{font-size:17px}.filter-row{gap:7px}.filter-row button{font-size:14px;padding:10px 12px;min-height:44px}.prose{padding:20px;font-size:17px}.study-row{font-size:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{.site-header,.site-footer,.btn,.outline,.filter-row{display:none!important}body{background:white;color:black}.wrap{width:100%}.content-box,.prose{padding:10px 0;break-inside:avoid}details{display:block}details>*{display:block}.page-content{padding:0}}

@media(min-width:601px){.hero:before{content:"";position:absolute;left:0;top:0;bottom:0;width:48%;background:var(--navy);z-index:1}.hero-content{z-index:2}.hero-content:before{display:none}}

.hero .actions .btn{font-size:16px}.logo-crop{margin-top:0}.prose a,.content-box p a{color:#995000;text-decoration:underline}@media(max-width:600px){.hero .actions .btn{font-size:14px}.logo-crop{background-position:-25px 0}}

@media(max-width:600px){.menu-toggle{font-size:0;width:40px;min-width:40px;height:42px;padding:6px;flex-shrink:0}.menu-toggle:after{content:"☰";font-size:22px}.header-row{gap:7px}.search-toggle{min-width:32px}}
@media(max-width:380px){.header-row .logo{width:185px}.header-row .logo-crop{transform:scale(.67)}.grade{padding:12px}.grade strong{font-size:21px}.grade-link{font-size:12px}.spotlight h2{font-size:21px}.spotlight .ref-art{width:105px}.spotlight p{font-size:15px}.book-drawing{width:100px}.book-panel,.writing-panel{gap:12px;padding:15px}.desk-art{width:95px}.hero h1{font-size:34px}}

.books-grid{grid-template-columns:1fr 1fr;margin-bottom:25px}.publication-cover{width:180px;min-height:235px;padding:20px 16px;margin:0 0 26px;background:#f4b630;color:var(--ink);border-left:12px solid var(--navy);display:flex;flex-direction:column;font-size:14px}.publication-cover strong{font-size:28px;color:var(--ink);margin-top:20px}.publication-cover b{font-size:30px}.publication-cover span{color:var(--ink);margin-top:15px}.cover-eight{background:#f09327}@media(max-width:600px){.books-grid{grid-template-columns:1fr}.publication-cover{width:160px;min-height:210px}}

html{overflow-x:clip}

.footer-logo .logo-crop{height:70px}
@media(max-width:600px){.header-row nav.open{grid-template-columns:1fr;justify-content:stretch;gap:0}.header-row nav a{white-space:normal}}
@media(min-width:601px) and (max-width:1000px){.weekly h2 br{display:block}}

/* Standalone high-resolution logo: preserve every stroke and subtitle. */
.logo .brand-logo{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;transform:none;background:#fff}
.site-header .logo{padding:4px 0;overflow:visible}
.site-footer .footer-logo{width:250px;max-width:100%;height:auto;padding:8px;overflow:visible;border-radius:8px}
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:28px 0 38px}
.blog-card{background:#fff;border:1px solid #dce4ed;border-top:4px solid #e8870d;border-radius:14px;padding:25px;display:flex;flex-direction:column;box-shadow:0 6px 24px #062d4d09}
.blog-card h2{font-size:23px;line-height:1.3;margin:10px 0 14px}.blog-card p{line-height:1.75;flex:1}.blog-card .blog-meta,.blog-meta{color:#607080;font-size:13px}.blog-card .btn{align-self:flex-start;margin-top:12px}
.blog-article{max-width:820px;margin:0 auto;background:#fff;padding:40px;border-radius:16px;border:1px solid #e1e8ee;line-height:1.85;font-size:17px}.blog-article h1{font-size:clamp(29px,4vw,43px);line-height:1.18;margin:15px 0 22px}.blog-article h2{font-size:26px;margin:38px 0 14px;line-height:1.3;color:#062d4d}.blog-article h3{font-size:21px;line-height:1.4}.blog-article p{margin:0 0 20px}.blog-article li{margin-bottom:10px}.blog-article .example{background:#f3f7fa;border-left:4px solid #e8870d;padding:20px;margin:25px 0;border-radius:0 10px 10px 0}.blog-article a{color:#9b5000;text-decoration:underline}.blog-article table{width:100%;border-collapse:collapse;font-size:15px}.blog-article th,.blog-article td{padding:10px;text-align:left;border:1px solid #dde5ec}
@media(max-width:1000px){.blog-grid{grid-template-columns:1fr}.blog-card h2{font-size:24px}}
@media(max-width:600px){.blog-article{padding:24px 19px;font-size:16px}.blog-article h2{font-size:24px}.site-footer .footer-logo{width:250px}.site-header .brand-logo{min-height:0}.blog-article table{font-size:13px}.blog-article th,.blog-article td{padding:7px}}
