/*
Theme Name: MaTheme
Theme URI: https://matbetler.com
Author: MaTheme
Author URI: https://matbetler.com
Description: matbetler.com Wordpress Teması
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matheme
*/
/* ===== RESET ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.7;color:#40464e;background:#f4f6f5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img{max-width:100%;height:auto;display:block}
a{color:#3e7070;text-decoration:none;transition:color .2s ease}
a:hover{color:#2d5858}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.3;color:#222830}
/* ===== LAYOUT ===== */
.ma-shell{min-height:100vh;display:flex;flex-direction:column}
.ma-main{flex:1}
.ma-wrap{max-width:1060px;margin:0 auto;padding:0 20px}
/* ===== NAV ===== */
.ma-header{background:#2a3038;position:relative;z-index:1000;box-shadow:0 1px 8px rgba(0,0,0,.2)}
.ma-header .ma-wrap{display:flex;align-items:center;justify-content:flex-end;min-height:48px}
/* Desktop Menu */
.ma-menu{display:flex;align-items:center}
.ma-menu li{position:relative}
.ma-menu li a{display:block;padding:13px 13px;color:#98a0a8;font-size:.86rem;font-weight:500;letter-spacing:.01em;transition:all .2s ease;white-space:nowrap}
.ma-menu li a:hover,.ma-menu li.current-menu-item>a,.ma-menu li.current_page_item>a{color:#fff;background:rgba(74,122,122,.15)}
/* Desktop Chevron */
.ma-menu li.menu-item-has-children>a{padding-right:24px}
.ma-menu li.menu-item-has-children>a::after{content:'';position:absolute;right:7px;top:50%;width:5px;height:5px;border-right:1.5px solid #687078;border-bottom:1.5px solid #687078;transform:translateY(-50%) rotate(45deg);transition:transform .25s ease,border-color .25s ease}
.ma-menu li.menu-item-has-children:hover>a::after{transform:translateY(-50%) rotate(-135deg);border-color:#4a7a7a}
/* Dropdown */
.ma-menu li ul.sub-menu,.ma-menu li ul.children{position:absolute;top:100%;left:0;background:#303840;min-width:195px;opacity:0;visibility:hidden;transform:translateY(4px);transition:all .2s ease;box-shadow:0 6px 20px rgba(0,0,0,.3);z-index:1001;padding:3px 0;border-radius:0 0 4px 4px;border-top:3px solid #4a7a7a}
.ma-menu li:hover>ul.sub-menu,.ma-menu li:hover>ul.children{opacity:1;visibility:visible;transform:translateY(0)}
.ma-menu li ul.sub-menu li a,.ma-menu li ul.children li a{padding:8px 15px;font-size:.82rem;color:#90989e}
.ma-menu li ul.sub-menu li a:hover,.ma-menu li ul.children li a:hover{color:#fff;background:rgba(74,122,122,.1)}
/* Nested Dropdown */
.ma-menu li ul.sub-menu li ul.sub-menu,.ma-menu li ul.children li ul.children{top:0;left:100%;border-top:3px solid #4a7a7a}
.ma-menu li ul.sub-menu li:hover>ul.sub-menu,.ma-menu li ul.children li:hover>ul.children{opacity:1;visibility:visible;transform:translateY(0)}
.ma-menu li ul.sub-menu li.menu-item-has-children>a::after,.ma-menu li ul.children li.menu-item-has-children>a::after{transform:translateY(-50%) rotate(-45deg)}
.ma-menu li ul.sub-menu li.menu-item-has-children:hover>a::after,.ma-menu li ul.children li.menu-item-has-children:hover>a::after{border-color:#4a7a7a}
/* ===== HAMBURGER ===== */
.ma-burger{display:none;background:none;border:none;cursor:pointer;width:36px;height:36px;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:5px}
.ma-burger span{display:block;width:20px;height:2px;background:#98a0a8;border-radius:1px;transition:transform .3s ease,opacity .3s ease}
.ma-burger.on span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.ma-burger.on span:nth-child(2){opacity:0}
.ma-burger.on span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
/* ===== MOBILE SUB-TOGGLE ===== */
.ma-dd{display:none;background:none;border:none;cursor:pointer;position:absolute;right:0;top:0;width:46px;height:auto;padding:14px 0;z-index:2;align-items:center;justify-content:center}
.ma-dd::after{content:'';display:block;width:7px;height:7px;border-right:2px solid #687078;border-bottom:2px solid #687078;transform:rotate(45deg);transition:transform .25s ease,border-color .25s ease;margin:0 12px 0 auto}
.ma-dd.on::after{transform:rotate(-135deg);border-color:#4a7a7a}
@media(max-width:900px){
.ma-burger{display:flex}
.ma-menu{display:none;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:#2a3038;border-top:2px solid #4a7a7a;box-shadow:0 10px 26px rgba(0,0,0,.35);max-height:72vh;overflow-y:auto}
.ma-menu.show{display:flex}
.ma-menu li{border-bottom:1px solid rgba(255,255,255,.04);position:relative}
.ma-menu li a{padding:12px 18px;padding-right:58px;font-size:.9rem}
.ma-menu li.menu-item-has-children>a::after{display:none}
.ma-dd{display:flex}
.ma-menu li ul.sub-menu,.ma-menu li ul.children{position:static;opacity:1;visibility:visible;transform:none;display:none;border-top:none;box-shadow:none;min-width:auto;background:rgba(74,122,122,.04);padding:0;border-radius:0}
.ma-menu li ul.sub-menu.show,.ma-menu li ul.children.show{display:block}
.ma-menu li ul.sub-menu li a,.ma-menu li ul.children li a{padding:10px 18px 10px 32px;padding-right:58px;font-size:.85rem}
.ma-menu li ul.sub-menu li ul.sub-menu,.ma-menu li ul.children li ul.children{position:static;left:auto;top:auto;border-top:none}
.ma-menu li ul.sub-menu li ul.sub-menu li a,.ma-menu li ul.children li ul.children li a{padding-left:48px}
.ma-menu li ul.sub-menu li.menu-item-has-children>a::after,.ma-menu li ul.children li.menu-item-has-children>a::after{display:none}
}
/* ===== BREADCRUMB ===== */
.ma-crumbs{padding:14px 0;font-size:.8rem;color:#78808a}
.ma-crumbs a{color:#3e7070;font-weight:500}
.ma-crumbs a:hover{color:#2d5858}
.ma-crumbs .ma-sep{margin:0 6px;color:#a0a8b0}
/* ===== CONTENT ===== */
.ma-content{padding:26px 0 48px}
/* Post Cards — top teal border */
.ma-card{background:#fff;border-radius:6px;margin-bottom:18px;border:1px solid #dfe4e2;border-top:3px solid #4a7a7a;overflow:hidden;transition:box-shadow .25s ease,transform .15s ease}
.ma-card:hover{box-shadow:0 6px 20px rgba(42,48,56,.07);transform:translateY(-2px)}
.ma-card-inner{display:flex;align-items:stretch}
.ma-card-img{width:170px;min-width:170px;overflow:hidden;background:#e8ece8}
.ma-card-img img{width:100%;height:100%;object-fit:cover}
.ma-card-body{padding:18px 22px;flex:1;display:flex;flex-direction:column;justify-content:center}
.ma-card-body h2{font-size:1.06rem;margin-bottom:5px;line-height:1.4}
.ma-card-body h2 a{color:#222830}
.ma-card-body h2 a:hover{color:#3e7070}
.ma-card-body .ma-exc{color:#606870;font-size:.85rem;line-height:1.6;margin-bottom:8px}
.ma-card-body .ma-more{color:#3e7070;font-weight:600;font-size:.8rem;display:inline-block;border-bottom:1px dotted #4a7a7a;padding-bottom:1px}
.ma-card-body .ma-more:hover{border-bottom-style:solid;color:#2d5858}
/* ===== SINGLE ===== */
.ma-single{background:#fff;border-radius:6px;padding:30px 34px;border:1px solid #dfe4e2;border-top:3px solid #4a7a7a}
.ma-single h1.ma-title{font-size:1.45rem;margin-bottom:16px;color:#222830;line-height:1.4}
.ma-body{color:#464e56;font-size:1rem;line-height:1.85}
.ma-body p{margin-bottom:15px}
.ma-body h2{font-size:1.2rem;margin:24px 0 12px;color:#222830;padding-bottom:6px;border-bottom:2px dotted #4a7a7a}
.ma-body h3{font-size:1.04rem;margin:20px 0 10px;color:#222830}
.ma-body ul,.ma-body ol{margin:8px 0 15px 20px}
.ma-body ul{list-style:disc}
.ma-body ol{list-style:decimal}
.ma-body li{margin-bottom:4px;color:#606870}
.ma-body a{color:#3e7070;font-weight:500;border-bottom:1px dotted rgba(62,112,112,.35)}
.ma-body a:hover{border-bottom-style:solid}
.ma-body img{border-radius:5px;margin:12px 0}
.ma-body blockquote{border-left:3px solid #4a7a7a;background:#f0f5f4;padding:13px 16px;margin:16px 0;border-radius:0 5px 5px 0;color:#506058;font-style:italic}
.ma-body table{width:100%;border-collapse:collapse;margin:12px 0}
.ma-body th,.ma-body td{padding:8px 11px;border:1px solid #dfe4e2;text-align:left}
.ma-body th{background:#f0f4f2;font-weight:600;color:#222830}
/* Featured */
.ma-feat{margin-bottom:16px;border-radius:5px;overflow:hidden}
.ma-feat img{width:100%;height:auto}
/* ===== POST NAV ===== */
.ma-pnav{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:28px;padding-top:18px;border-top:1px solid #dfe4e2}
.ma-pn{background:#f8faf8;border-radius:5px;padding:14px 18px;border:1px solid #dfe4e2;transition:border-color .2s ease}
.ma-pn:hover{border-color:#4a7a7a}
.ma-pn .ma-pn-lbl{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;color:#90989e;margin-bottom:4px;font-weight:600}
.ma-pn .ma-pn-ttl{color:#222830;font-weight:600;font-size:.87rem;display:block}
.ma-pn:hover .ma-pn-ttl{color:#3e7070}
.ma-pn.ma-pn-r{text-align:right}
/* ===== RANDOM POSTS ===== */
.ma-related{margin-top:28px;padding-top:18px;border-top:1px solid #dfe4e2}
.ma-related h3{font-size:.95rem;margin-bottom:14px;color:#222830;padding-bottom:5px;border-bottom:2px dotted #4a7a7a;display:inline-block}
.ma-rel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.ma-rel-item{background:#fff;border-radius:5px;padding:12px 14px;border:1px solid #dfe4e2;border-top:2px solid #4a7a7a;transition:box-shadow .2s ease}
.ma-rel-item:hover{box-shadow:0 3px 12px rgba(42,48,56,.06)}
.ma-rel-item .ma-ri-img{margin-bottom:8px;border-radius:4px;overflow:hidden}
.ma-rel-item .ma-ri-img img{width:100%;height:auto}
.ma-rel-item a{font-weight:600;color:#222830;font-size:.82rem;line-height:1.35;display:block}
.ma-rel-item a:hover{color:#3e7070}
/* ===== ARCHIVE ===== */
.ma-archhead{margin-bottom:20px;padding-bottom:10px;border-bottom:2px dotted #4a7a7a}
.ma-archhead h1{font-size:1.28rem;color:#222830}
.ma-archhead .ma-archdesc{color:#78808a;font-size:.85rem;margin-top:4px}
/* ===== PAGINATION ===== */
.ma-pages{display:flex;justify-content:center;align-items:center;gap:5px;margin:28px 0;flex-wrap:wrap}
.ma-pages a,.ma-pages span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 10px;border-radius:5px;font-size:.85rem;font-weight:600;color:#606870;background:#fff;border:1px solid #dfe4e2;transition:all .2s ease}
.ma-pages a:hover{color:#4a7a7a;border-color:#4a7a7a}
.ma-pages .current{background:#4a7a7a;color:#fff;border-color:#4a7a7a}
.ma-pages .dots{border:none;background:none}
/* ===== 404 ===== */
.ma-404{text-align:center;padding:50px 20px}
.ma-404 h1{font-size:3rem;color:#222830;margin-bottom:8px}
.ma-404 p{color:#78808a;font-size:.95rem;margin-bottom:20px}
.ma-404 .ma-btn{display:inline-block;background:#4a7a7a;color:#fff;padding:10px 24px;border-radius:5px;font-weight:600;font-size:.87rem;transition:background .2s ease}
.ma-404 .ma-btn:hover{background:#3e7070}
/* ===== SEARCH ===== */
.search-form{display:flex;gap:6px;margin:16px 0}
.search-form .search-field{flex:1;padding:9px 13px;border:1px solid #dfe4e2;border-radius:5px;font-size:.87rem;outline:none;transition:border-color .2s ease}
.search-form .search-field:focus{border-color:#4a7a7a}
.search-form .search-submit{background:#4a7a7a;color:#fff;border:none;padding:9px 18px;border-radius:5px;font-weight:600;cursor:pointer;transition:background .2s ease}
.search-form .search-submit:hover{background:#3e7070}
/* ===== COMMENTS ===== */
.ma-comments{margin-top:28px;padding-top:18px;border-top:1px solid #dfe4e2}
.ma-comments h3{font-size:.95rem;margin-bottom:16px;color:#222830}
.comment-list{margin:0;padding:0}
.comment-list .comment{margin-bottom:14px;padding:14px 16px;background:#f8faf8;border-radius:5px;border:1px solid #dfe4e2}
.comment-list .comment .comment-meta{margin-bottom:5px;font-size:.78rem;color:#78808a}
.comment-list .comment .comment-meta a{color:#3e7070}
.comment-list .comment .comment-content{color:#464e56;font-size:.87rem;line-height:1.7}
.comment-list .comment .comment-content p{margin-bottom:5px}
.comment-list .children{margin-left:20px;margin-top:12px}
.comment-respond{margin-top:22px}
.comment-respond .comment-form label{display:block;font-size:.82rem;font-weight:600;color:#222830;margin-bottom:3px}
.comment-respond .comment-form input[type="text"],.comment-respond .comment-form input[type="email"],.comment-respond .comment-form input[type="url"],.comment-respond .comment-form textarea{width:100%;padding:8px 12px;border:1px solid #dfe4e2;border-radius:5px;font-size:.85rem;margin-bottom:10px;outline:none;transition:border-color .2s ease;font-family:inherit}
.comment-respond .comment-form input:focus,.comment-respond .comment-form textarea:focus{border-color:#4a7a7a}
.comment-respond .comment-form .form-submit input{background:#4a7a7a;color:#fff;border:none;padding:10px 24px;border-radius:5px;font-weight:600;cursor:pointer;font-size:.85rem;transition:background .2s ease}
.comment-respond .comment-form .form-submit input:hover{background:#3e7070}
/* ===== FOOTER ===== */
.ma-footer{background:#2a3038;color:#a8b0b8;padding:32px 0 0}
.ma-ft-widgets{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding-bottom:20px}
.ma-ft-widgets .widget{font-size:.84rem}
.ma-ft-widgets .widget h3,.ma-ft-widgets .widget-title{color:#d0d4d8;font-size:.88rem;font-weight:700;margin-bottom:10px;padding-bottom:5px;border-bottom:2px dotted rgba(74,122,122,.4)}
.ma-ft-widgets .widget a{color:#a8b0b8;transition:color .2s ease}
.ma-ft-widgets .widget a:hover{color:#5a9090}
.ma-ft-widgets .widget ul li{padding:4px 0;border-bottom:1px solid rgba(255,255,255,.03)}
.ma-ft-widgets .widget p{line-height:1.7;color:#a8b0b8}
.ma-ft-copy{border-top:1px solid rgba(255,255,255,.05);padding:13px 0;text-align:center;font-size:.76rem;color:#a0a8b0}
.ma-ft-copy a{color:#a8b0b8}
.ma-ft-copy a:hover{color:#5a9090}
/* ===== PAGE ===== */
.ma-page{background:#fff;border-radius:6px;padding:30px 34px;border:1px solid #dfe4e2;border-top:3px solid #4a7a7a}
.ma-page h1{font-size:1.28rem;margin-bottom:16px;color:#222830}
/* ===== SIDEBAR ===== */
.ma-sidebar .widget{background:#fff;border-radius:5px;padding:18px 20px;margin-bottom:14px;border:1px solid #dfe4e2;border-top:2px solid #4a7a7a}
.ma-sidebar .widget h3,.ma-sidebar .widget-title{font-size:.87rem;color:#222830;margin-bottom:10px;padding-bottom:5px;border-bottom:1px dotted #4a7a7a}
.ma-sidebar .widget a{color:#606870;font-size:.83rem}
.ma-sidebar .widget a:hover{color:#3e7070}
.ma-sidebar .widget ul li{padding:4px 0;border-bottom:1px solid #eef0ee}
/* ===== POPUP ===== */
.ma-pop-chk{display:none}
.ma-pop-chk:checked~.ma-pop-wrap{transform:translateY(100%);opacity:0;visibility:hidden;pointer-events:none}
.ma-pop-wrap{position:fixed;bottom:0;left:0;width:100%;max-height:30vh;z-index:9999;transform:translateY(0);opacity:1;visibility:visible;transition:transform .4s cubic-bezier(.175,.885,.32,1.275),opacity .4s ease,visibility .4s ease;box-shadow:0 -8px 32px rgba(0,0,0,.45)}
.ma-pop-box{background:linear-gradient(180deg,#303840 0%,#222830 100%);padding:1.3rem 1rem .8rem;position:relative;border-radius:14px 14px 0 0;max-width:540px;margin:0 auto;border-top:3px solid #4a7a7a;box-shadow:inset 0 2px 10px rgba(74,122,122,.08)}
.ma-pop-x{position:absolute;top:-12px;right:12px;background:#2a3038;border:2px solid #4a7a7a;color:#5a9090;font-size:1rem;cursor:pointer;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:bold;line-height:1;z-index:10;box-shadow:0 3px 8px rgba(0,0,0,.35);transition:all .2s ease}
.ma-pop-x:hover{background:#4a7a7a;color:#fff;transform:scale(1.1)}
.ma-pop-hd{text-align:center;margin-bottom:.55rem}
.ma-pop-hd h3{font-size:1rem;font-weight:900;margin:0 0 .12rem;color:#e0e4e8}
.ma-pop-hd p{color:#6a7278;font-size:.66rem;font-weight:500;margin:0;letter-spacing:.03em;text-transform:uppercase}
.ma-pop-items{display:flex;flex-direction:column;gap:.45rem}
.ma-pop-link{display:flex;align-items:center;background:linear-gradient(90deg,rgba(74,122,122,.1) 0%,rgba(42,48,56,.8) 100%);border-radius:8px;padding:.5rem .65rem;text-decoration:none;color:#fff;border:1px solid rgba(74,122,122,.2);gap:.55rem;position:relative;overflow:hidden;transition:transform .2s ease}
.ma-pop-link:active{transform:scale(.98)}
.ma-pop-link::before{content:"";position:absolute;top:0;left:-100%;width:50%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.03),transparent);transform:skewX(-20deg);animation:mashine 3s infinite}
@keyframes mashine{0%{left:-100%}20%{left:200%}100%{left:200%}}
.ma-pop-link-alt{background:linear-gradient(90deg,rgba(74,122,122,.14) 0%,rgba(42,48,56,.8) 100%);border:1px solid rgba(74,122,122,.3)}
.ma-pop-link-alt .ma-pop-cta{background:linear-gradient(135deg,#3e7070 0%,#2d5858 100%)}
.ma-pop-logo{width:56px;min-width:56px;height:32px;background:#fff;border-radius:4px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid rgba(255,255,255,.06);box-shadow:0 2px 5px rgba(0,0,0,.25)}
.ma-pop-logo img{width:88%;height:88%;object-fit:contain}
.ma-pop-detail{flex:1;min-width:0}
.ma-pop-detail strong{display:block;font-size:.8rem;font-weight:800;margin-bottom:.1rem;color:#e0e4e8}
.ma-pop-detail span{font-size:.58rem;color:#a0a8b0;line-height:1.3;display:block}
.ma-pop-cta{background:linear-gradient(135deg,#4a7a7a 0%,#3e7070 100%);color:#fff;font-size:.6rem;font-weight:800;padding:.3rem .6rem;border-radius:16px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;flex-shrink:0;box-shadow:0 0 8px rgba(74,122,122,.2)}
@media(max-width:480px){.ma-pop-box{padding:1.2rem .65rem .55rem}.ma-pop-hd h3{font-size:.88rem}.ma-pop-logo{width:42px;min-width:42px;height:24px}.ma-pop-detail strong{font-size:.7rem}.ma-pop-detail span{font-size:.52rem}.ma-pop-cta{font-size:.5rem;padding:.22rem .4rem}}
/* ===== RESPONSIVE ===== */
@media(max-width:900px){
.ma-ft-widgets{grid-template-columns:1fr}
.ma-rel-grid{grid-template-columns:1fr 1fr}
.ma-single{padding:20px 16px}
.ma-page{padding:20px 16px}
.ma-card-inner{flex-direction:column}
.ma-card-img{width:100%;min-width:auto;height:155px}
}
@media(max-width:600px){
.ma-pnav{grid-template-columns:1fr}
.ma-rel-grid{grid-template-columns:1fr}
.ma-wrap{padding:0 14px}
.ma-single h1.ma-title{font-size:1.2rem}
.ma-card-img{height:140px}
.ma-card-body{padding:14px 16px}
}
/* ===== ACCESSIBILITY ===== */
.sr-only{clip:rect(1px,1px,1px,1px);position:absolute!important;height:1px;width:1px;overflow:hidden;word-wrap:normal!important}
/* ===== WP DEFAULTS ===== */
.alignleft{float:left;margin:0 16px 16px 0}
.alignright{float:right;margin:0 0 16px 16px}
.aligncenter{display:block;margin:0 auto 16px}
.wp-caption{max-width:100%}
.wp-caption-text{font-size:.76rem;color:#78808a;text-align:center;margin-top:4px}
.gallery{display:flex;flex-wrap:wrap;gap:6px}
.gallery-item{flex:1 1 auto}
.sticky .ma-card{border-top-color:#8ab0b0}
.bypostauthor .comment{border-left:3px solid #4a7a7a}
