/*
Theme Name: Ehliyethane Temp
Theme URI: https://www.ehliyethane.net/
Author: Ehliyethane
Description: Sade, hızlı, mobil öncelikli ve SEO eklentileriyle uyumlu Ehliyethane WordPress teması. Ayrı mobil menü, sayfa/yazı/içerik desteği.
Version: 1.0.14
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: ehliyethane-temp
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, education, custom-logo, custom-menu, featured-images, responsive-layout
*/
:root{--blue:#145cb0;--blue-dark:#123f77;--ink:#192d47;--muted:#596a80;--line:#dfE7f0;--soft:#f5f9ff;--site-max:1160px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:auto;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--ink);font:16px/1.65 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow-wrap:break-word}
a{color:#1159b2;text-underline-offset:3px}a:hover{color:#0a3e87}
/* Replaced elements: advertisements must retain the heights assigned by their provider. */
img,video{max-width:100%;height:auto}iframe{max-width:100%}img{vertical-align:middle}
button,input,select,textarea{font:inherit}button,summary{cursor:pointer}button,input[type="submit"]{touch-action:manipulation}
:focus-visible{outline:3px solid #ffbd49;outline-offset:3px}
.site-shell{width:100%;max-width:var(--site-max);padding-inline:20px;margin-inline:auto}
.skip-link{position:absolute;left:10px;top:-80px;padding:10px;background:#fff;z-index:100;box-shadow:0 2px 10px #0002}.skip-link:focus{top:10px}
.screen-reader-text{clip:rect(1px,1px,1px,1px);position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap}
/* Header: no JS, no remote fonts, no icon libraries */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:10}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:72px;gap:24px}
.site-branding{min-width:0;display:flex;flex-direction:column;justify-content:center;line-height:1.15}
.brand-name{color:var(--blue-dark);text-decoration:none;font-size:clamp(21px,2vw,27px);font-weight:800;letter-spacing:-.035em}
.brand-note{margin-top:5px;color:var(--muted);font-size:11px;line-height:1.3;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.custom-logo{width:auto;max-width:210px;max-height:48px;height:auto;object-fit:contain}
.nav-links,.mobile-links,.footer-links{list-style:none;margin:0;padding:0}
.nav-links{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
.nav-links li{position:relative}
.nav-links a{display:block;padding:10px 11px;color:var(--ink);text-decoration:none;font-size:14px;font-weight:650;border-radius:8px}
.nav-links a:hover,.nav-links .current-menu-item>a{color:var(--blue);background:var(--soft)}
.nav-links .sub-menu{position:absolute;left:0;top:100%;z-index:11;min-width:190px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 28px #0b25451c;list-style:none;display:none}
.nav-links li:hover>.sub-menu,.nav-links li:focus-within>.sub-menu{display:block}
.mobile-menu{display:none;position:relative}
.mobile-menu summary{list-style:none;display:flex;align-items:center;gap:8px;color:var(--blue-dark);font-weight:700;font-size:13px;background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-height:44px}
.mobile-menu summary::-webkit-details-marker{display:none}
.hamburger{display:grid;gap:4px}.hamburger i{width:18px;height:2px;background:currentColor;display:block;border-radius:1px}
.mobile-navigation{position:absolute;right:0;top:calc(100% + 7px);width:min(330px,calc(100vw - 24px));max-height:70vh;overflow:auto;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 28px #0b25451c;background:#fff;padding:8px}
.mobile-links>li>a,.mobile-links .sub-menu a{display:block;border-radius:8px;color:var(--ink);padding:11px 12px;text-decoration:none;font-size:14px;font-weight:600}
.mobile-links>li>a:hover,.mobile-links .current-menu-item>a{background:var(--soft);color:var(--blue)}
.mobile-links .sub-menu{list-style:none;margin:0 0 0 12px;padding:0 0 0 8px;border-left:2px solid var(--line)}
/* Footer is a minimal text line, no social/social-icon/font bundles */
.site-footer{border-top:1px solid var(--line);margin-top:36px;background:#fff}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:64px;color:var(--muted);font-size:12px}
.site-footer p{margin:0}.footer-links{display:flex;flex-wrap:wrap;gap:14px}.footer-links a{color:inherit;text-decoration:none}
/* Home */
.home-main{padding-top:20px;padding-bottom:12px}
.hero{background:var(--blue-dark);color:#fff;border-radius:17px;padding:34px 36px}
.eyebrow{display:block;letter-spacing:.08em;color:#dceafe;font-size:11px;font-weight:800;margin-bottom:10px}
.hero h1{color:#fff;margin:0 0 14px;max-width:720px;font-size:clamp(27px,3.2vw,42px);line-height:1.18;letter-spacing:-.03em}
.hero p{margin:0 0 20px;color:#edf5ff;max-width:730px;font-size:15px;line-height:1.65}
.button{display:inline-flex;align-items:center;gap:9px;text-decoration:none;border-radius:10px;padding:11px 18px;font-weight:750;font-size:14px}
.button-light{background:#fff;color:#124a90}.button-light:hover{background:#e9f3ff;color:#124a90}.button-primary{background:var(--blue);color:#fff}
.hero-facts{display:flex;gap:10px 22px;flex-wrap:wrap;margin-top:16px;color:#d9e8ff;font-size:12px}.hero-facts span::before{content:'✓ ';font-weight:800}
.home-section{margin-top:28px}.section-heading{margin-bottom:14px}.section-heading h2{margin:0 0 3px;font-size:25px;line-height:1.3;color:#123f78}.section-heading p{color:var(--muted);font-size:13px;margin:0}
.exam-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.exam-card{display:grid;grid-template-columns:38px minmax(0,1fr) 12px;align-items:center;gap:10px;min-width:0;min-height:94px;padding:13px 12px;background:#fff;border:1px solid var(--line);border-radius:13px;text-decoration:none;color:var(--ink);transition:border-color .15s}
.exam-card:hover{border-color:#8fbae8;background:#fbfdff;color:var(--ink)}
.exam-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#eaf3ff;color:var(--blue);font-size:15px;font-weight:800;line-height:1}
.exam-text{display:flex;flex-direction:column;gap:4px;min-width:0}.exam-text strong{font-size:13px;font-weight:750;line-height:1.35;overflow-wrap:break-word}.exam-text small{font-size:11px;color:var(--muted);line-height:1.4}.exam-chevron{color:var(--blue);font-size:24px;line-height:1}
.home-seo,.home-faq,.home-custom-content{margin-top:25px;background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:24px}
.home-seo h2,.home-faq h2{margin:0 0 12px;color:#12467c;font-size:23px;line-height:1.3}
.home-seo>p{margin:0 0 12px;line-height:1.8;font-size:14px;color:#40536a}
.home-tips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.tip-card{border:1px solid var(--line);background:#fff;border-radius:12px;padding:17px}.tip-card h3{font-size:16px;margin:0 0 7px;color:#164c84}.tip-card p{font-size:13px;color:#52647c;line-height:1.65;margin:0}
.home-faq details{margin-top:9px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:12px 14px}.home-faq summary{font-size:14px;font-weight:700}.home-faq details p{font-size:13px;margin:9px 0 0}.footnote{margin:15px 0 0;font-size:12px;color:var(--muted)}
/* Singles and Pages: wide on phones; don't force large desktop gutters */
.single-main,.page-main{padding-top:28px;min-height:58vh}
.single-article,.page-article{width:100%;min-width:0;margin:0 auto}.single-article{max-width:900px}.page-article{max-width:100%}
.article-header{margin-bottom:20px}.article-title{font-size:clamp(26px,3.4vw,42px);line-height:1.2;letter-spacing:-.025em;margin:0 0 11px;color:#173f70}
.article-summary{font-size:17px;color:var(--muted);margin:0 0 12px;line-height:1.6}
.article-meta,.breadcrumbs{font-size:12px;color:#63758b}.breadcrumbs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.breadcrumbs a{color:#1761b3}
.article-featured{margin:0 0 22px}.article-featured img{width:100%;height:auto;border-radius:12px}.article-featured figcaption{color:var(--muted);font-size:12px;margin-top:7px}
.article-body{width:100%;min-width:0;font-size:16px;line-height:1.8}
.article-body>*{max-width:100%}.article-body p{margin:0 0 18px}.article-body h2{font-size:clamp(21px,2.7vw,28px);line-height:1.35;margin:30px 0 14px;color:#173f70}.article-body h3{font-size:clamp(19px,2.3vw,23px);margin:24px 0 12px}.article-body ul,.article-body ol{padding-left:24px}.article-body blockquote{border-left:4px solid var(--blue);padding:10px 17px;margin:15px 0;background:var(--soft)}
.article-body pre,.article-body code{max-width:100%;overflow:auto}.article-body table{display:block;width:max-content;max-width:100%;overflow-x:auto;border-collapse:collapse}.article-body td,.article-body th{padding:9px;border:1px solid var(--line)}
.article-body .alignwide{max-width:100%}.article-body .alignfull{max-width:100%;margin-inline:0}.article-body figure{max-width:100%;margin-inline:0}.article-body iframe{max-width:100%}
.article-tax{margin-top:18px;padding-top:12px;border-top:1px solid var(--line);font-size:13px}.article-tax a{margin-right:6px}
.page-links{margin:20px 0}.comments-area{max-width:900px;margin:30px auto 0;border-top:1px solid var(--line);padding-top:18px}
.comments-section h2{font-size:20px}.comment-list{padding-left:24px}.comment-list .comment-body{padding:10px 0;border-bottom:1px solid var(--line)}.comment-respond textarea{width:100%;max-width:100%;min-height:120px}.comment-respond input[type="text"],.comment-respond input[type="email"],.comment-respond input[type="url"]{width:100%;max-width:550px;padding:10px;border:1px solid var(--line)}.comment-respond input[type="submit"]{padding:10px 18px;border:0;border-radius:8px;background:var(--blue);color:#fff}
/* Archives, search, fallback */
.listings-main{padding-top:28px;min-height:60vh}.listing-header{margin-bottom:23px}.listing-header h1{font-size:clamp(25px,3vw,36px);color:#173f70;line-height:1.3;margin:0 0 10px}.listing-header p,.archive-description{color:var(--muted);margin:0}
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.post-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.card-image-link{display:block;aspect-ratio:8/5;background:var(--soft)}.card-image-link img{display:block;width:100%;height:100%;object-fit:cover}.post-card-body{padding:16px}.post-card-meta{font-size:12px;color:var(--muted);margin:0 0 6px}.post-card-title{font-size:18px;line-height:1.38;margin:0 0 9px}.post-card-title a{color:var(--ink);text-decoration:none}.post-card-excerpt{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 12px}.text-link{font-size:13px;font-weight:700;text-decoration:none}.pagination{margin-top:24px}.pagination .nav-links{gap:8px}.pagination .page-numbers{display:inline-block;padding:7px 12px;border:1px solid var(--line);border-radius:7px;text-decoration:none}.pagination .current{background:var(--blue);color:#fff;border-color:var(--blue)}
.search-form{display:flex;gap:8px;max-width:520px;margin-top:20px}.search-form input{min-width:0;flex:1;padding:10px 12px;border:1px solid var(--line);border-radius:8px}.search-form button{padding:10px 17px;border:0;border-radius:8px;background:var(--blue);color:#fff}.not-found{padding-top:60px;min-height:65vh}.not-found h1{color:#12467c}
/* QUIZ: set only outer width; don't overwrite its question/timer/JS behavior */
.entry-content .ehq-wrap,.entry-content .ays-quiz-container{box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin-inline:auto}
.entry-content .ehq-wrap img,.entry-content .ays-quiz-container img{max-width:100%;height:auto}
/* Safe mobile layout, no horizontal viewport overflow */
@media(max-width:980px){.desktop-navigation{display:none}.mobile-menu{display:block}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){
  .site-shell{padding-inline:12px}
  .header-inner{min-height:60px;gap:10px}.brand-note{font-size:10px;max-width:210px}.brand-name{font-size:22px}
  .home-main{padding-top:0}.hero{margin:0 -12px;padding:23px 15px;border-radius:0}.hero h1{font-size:clamp(25px,7vw,31px)}.hero p{font-size:14px}.hero-facts{gap:10px;font-size:11px}
  .home-section{margin-top:20px}.section-heading h2{font-size:21px}
  .exam-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .exam-card{grid-template-columns:minmax(0,1fr);grid-template-rows:34px auto auto;justify-items:start;align-content:start;gap:5px;min-height:125px;padding:12px;border-radius:12px}
  .exam-icon{width:34px;height:34px;font-size:13px}.exam-text{gap:5px}.exam-text strong{font-size:13px}.exam-text small{font-size:11px}.exam-chevron{display:none}
  .home-seo,.home-faq,.home-custom-content{margin:20px -12px 0;border-radius:0;border-left:0;border-right:0;padding:18px 12px}.home-seo h2,.home-faq h2{font-size:20px}.home-tips{grid-template-columns:1fr}
  .single-main,.page-main{padding-top:16px}.article-title{font-size:clamp(24px,6.5vw,30px)}.article-summary{font-size:15px}.article-header{margin-bottom:14px}.breadcrumbs{margin-bottom:12px}
  .article-body{font-size:15px;line-height:1.72}.article-body h2{font-size:21px}.article-body h3{font-size:19px}.article-featured{margin:0 -12px 17px}.article-featured img{border-radius:0}
  .entry-content .ehq-wrap,.entry-content .ays-quiz-container{margin:0;max-width:100%;padding:10px;border-radius:8px}
  .post-grid{grid-template-columns:1fr;gap:12px}.listings-main{padding-top:19px}.footer-inner{flex-direction:column;align-items:flex-start;padding-block:16px;gap:10px}
  .search-form input{font-size:16px}
}
@media(max-width:360px){.exam-card{padding:10px;min-height:128px}.exam-text strong{font-size:12px}.brand-note{max-width:175px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}


/* ============================================================
   Ehliyethane Temp 1.0.1 – kompakt QUIZ çözüm ekranı
   Yalnızca .ehq-wrap içindeki sınav sunumunu etkiler.
   Temanın tek CSS dosyasındadır, ek istek oluşturmaz.
   ============================================================ */
@media(max-width:767px){
  /* Başlık ve soru metnini daha rahat okumak için ölçülü küçült. */
  .page-main:has(.ehq-wrap),.single-main:has(.ehq-wrap){padding-top:10px}
  .page-article:has(.ehq-wrap) .article-header,.single-article:has(.ehq-wrap) .article-header{margin-bottom:10px}
  .page-article:has(.ehq-wrap) .article-title,.single-article:has(.ehq-wrap) .article-title{font-size:23px;line-height:1.25;margin:0 0 8px}
  .article-body .ehq-wrap{width:100%;max-width:100%;min-width:0;margin:0!important;padding:8px!important;border-radius:9px;box-shadow:none}
  .article-body .ehq-wrap .ehq-question{margin:8px 0!important;padding:7px 0!important;min-width:0}
  .article-body .ehq-wrap .ehq-question legend{font-size:14px!important;line-height:1.35!important;padding:0 2px!important;margin:0 0 4px!important}
  .article-body .ehq-wrap .ehq-body{font-size:15px!important;line-height:1.48!important;margin:8px 0 15px!important;color:#12304c;overflow-wrap:anywhere}
  .article-body .ehq-wrap .ehq-body p{font-size:inherit!important;line-height:inherit!important;margin:0 0 8px!important}
  /* Cevaplar: daha kısa, ama rahat dokunulabilir (48px). */
  .article-body .ehq-wrap .ehq-question label{display:flex!important;align-items:center!important;gap:9px!important;width:100%;min-width:0;min-height:48px!important;height:auto!important;padding:9px 10px!important;margin:7px 0!important;border-radius:9px!important;font-size:14px!important;font-weight:400!important;line-height:1.4!important;box-shadow:none}
  .article-body .ehq-wrap .ehq-question .ehq-letter{flex:0 0 29px!important;min-width:29px!important;width:29px!important;height:29px!important;font-size:14px!important;line-height:1!important}
  .article-body .ehq-wrap .ehq-option-text{min-width:0;font-size:14px!important;line-height:1.4!important;overflow-wrap:anywhere}
  /* Başarı Oranı / Yorumlar ve sayaç satırı. */
  .article-body .ehq-wrap .ehq-q-actions{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important;margin:7px 0 5px!important}
  /* Başarı Oranı ve Yorumlar: soru kategorisiyle aynı 22px rozet yüksekliği. */
  .article-body .ehq-wrap .ehq-q-actions > button{
    box-sizing:border-box!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    height:22px!important;
    min-height:22px!important;
    max-height:22px!important;
    padding:2px 6px!important;
    margin:0!important;
    border:1px solid #dce6f2!important;
    border-radius:6px!important;
    background:#f5f8fd!important;
    color:#1856a1!important;
    box-shadow:none!important;
    font:600 10px/1.3 system-ui,-apple-system,'Segoe UI',sans-serif!important;
    letter-spacing:0!important;
    text-transform:none!important;
    white-space:nowrap!important;
    vertical-align:middle!important;
  }
  .article-body .ehq-wrap .ehq-q-actions > button.active{
    background:#e1edff!important;
    border-color:#5c92dd!important;
  }
  .article-body .ehq-wrap .ehq-q-actions .ehq-q-open-arrow{margin-left:3px;font-size:12px}
  .article-body .ehq-wrap .ehq-q-actions .ehq-status{font-size:12px!important;line-height:1.3!important;margin:0!important;white-space:nowrap}
  .article-body .ehq-wrap .ehq-q-actions .ehq-timer-category{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0}
  .article-body .ehq-wrap .ehq-q-actions .ehq-question-category{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;min-height:22px!important;height:22px!important;font-size:10px!important;line-height:1.3!important;padding:2px 5px!important;max-width:125px}
  .article-body .ehq-wrap .ehq-report-button{font-size:11px!important;line-height:1.25!important;padding:6px 8px!important;min-height:32px!important}
  /* Soru ilerleme ve sonuç alanı */
  .article-body .ehq-wrap .ehq-question-navigation{margin:12px 0 16px;padding-top:10px}
  .article-body .ehq-wrap .ehq-question-progress{font-size:14px!important;margin:0 0 8px}
  .article-body .ehq-wrap .ehq-auto-next{font-size:13px!important;margin:9px 0}
  .article-body .ehq-wrap .ehq-navigation-buttons button{font-size:13px!important;padding:9px 11px!important;min-height:40px}
  .article-body .ehq-wrap .ehq-submit{font-size:14px!important;padding:11px 14px!important;min-height:42px}
  .article-body .ehq-wrap .ehq-explanation{padding:10px 12px;margin:12px 0}
}


/* Footer Customizer v1.0.2: CSS-only, scoped to theme footer */
.site-footer.eht-footer{margin-top:var(--eht-foot-spacing,36px);background:var(--eht-foot-bg,#fff);color:var(--eht-foot-text,#596a80);border-top:1px solid var(--line)}
.eht-footer .footer-inner{color:inherit}
.eht-footer .footer-links{display:flex;flex-wrap:wrap;gap:8px 16px}
.eht-footer .footer-links a,.eht-footer .eht-footer-social-links a{color:var(--eht-foot-link,#145cb0);text-decoration:none}
.eht-footer .footer-links a:hover,.eht-footer .eht-footer-social-links a:hover{text-decoration:underline}
.eht-footer .eht-footer-simple{display:flex;align-items:center;gap:12px 22px;flex-wrap:wrap;justify-content:space-between;min-height:64px;padding-block:14px}
.eht-footer .eht-footer-simple p{margin:0}
.eht-footer .eht-footer-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:24px;padding-block:30px}
.eht-footer .eht-footer-columns > *{min-width:0}
.eht-footer .eht-footer-columns .footer-links{display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.eht-footer .eht-footer-title{font-size:18px;font-weight:750;margin:0 0 9px;color:inherit}
.eht-footer .eht-footer-head{font-size:14px;font-weight:750;margin:0 0 12px;color:inherit}
.eht-footer .eht-footer-desc{font-size:13px;line-height:1.7;margin:0;max-width:440px;white-space:pre-line}
.eht-footer .eht-footer-logo{display:block;object-fit:contain;object-position:left center;width:auto;max-width:200px;max-height:62px;height:auto;margin-bottom:12px}
.eht-footer .eht-footer-social-links{display:flex;flex-wrap:wrap;gap:10px 16px;font-size:13px}
.eht-footer .eht-footer-bottom{padding:14px 0 18px;border-top:1px solid var(--line);font-size:12px}
.eht-footer .eht-footer-bottom p{margin:0}
@media(max-width:720px){
  .eht-footer .eht-footer-columns{grid-template-columns:1fr;gap:22px;padding-block:22px}
  .eht-footer .eht-footer-simple{flex-direction:column;align-items:flex-start;gap:10px;min-height:0;padding-block:16px}
  .eht-footer .eht-footer-columns .footer-links{gap:7px}
}
@media(max-width:767px){.eht-footer.eht-footer--hide-mobile{display:none}}

.eht-footer .eht-footer-simple-about{min-width:0}.eht-footer .eht-footer-simple-name{display:block;font-size:15px;margin-bottom:5px}.eht-footer .eht-footer-simple-about .eht-footer-desc{font-size:12px;max-width:340px}


/* ===========================================================
   Ehliyethane Temp v1.0.4 — MOBILE PAGE / AD LAYOUT REPAIR
   Works with page.php and single.php; no JS or new requests.
   - Keep viewport from horizontally panning when a third-party
     script injects an oversized advertisement or element.
   - Preserve Google AdSense's iframe sizing (do not transform it).
   - Allow proper inline scroll only for wide tables/code.
   =========================================================== */

/* The document itself must never become wider than the mobile viewport.
   clip does not create a scrolling container, so sticky/fixed UI continues
   to use its intended viewport. hidden is a fallback for older browsers. */
html,body{max-width:100%;overflow-x:hidden}
@supports (overflow-x:clip){html,body{overflow-x:clip}}

/* Preserve width constraints along the full WordPress content hierarchy. */
#site-main,.site-shell,.page-main,.single-main,
.page-article,.single-article,
.page-content-frame,.entry-content,.article-body{
  box-sizing:border-box;min-width:0;max-width:100%;
}
.page-content-frame{display:flow-root;width:100%;margin:0}
.page-article .article-body,
.single-article .article-body{width:100%;max-width:100%;min-width:0}

/* Block editors and embedded content should shrink instead of growing the
   full document. The restriction is scoped to post/page content. */
.entry-content :where(.wp-block-group,.wp-block-columns,.wp-block-column,
  .wp-block-cover,.wp-block-media-text,.wp-block-embed,
  .wp-block-image,.wp-block-video,.wp-block-gallery){
  box-sizing:border-box;min-width:0;max-width:100%;
}
.entry-content :where(img,video,svg,canvas){max-width:100%;height:auto}
.entry-content :where(pre,.wp-block-table,.table-responsive){
  max-width:100%;overflow-x:auto;
}
.entry-content pre{white-space:pre;}
.entry-content :where(.wp-block-embed iframe,.wp-block-video iframe){max-width:100%}

/* Google's responsive in-page ad unit: don't force fixed-size units or modify
   Google-managed ad iframe internals. The provider determines ad dimensions. */
.entry-content ins.adsbygoogle[data-ad-format="auto"],
.entry-content ins.adsbygoogle[data-full-width-responsive="true"]{
  display:block;box-sizing:border-box;min-width:0;max-width:100%;width:100%;
}
/* Auto Ads may inject a separate wrapper anywhere in the page. Contain its
   horizontal overflow without touching the iframe layout or tracking. */
.google-auto-placed,
.google-auto-placed.ap_container{
  box-sizing:border-box;max-width:100%!important;min-width:0;
  margin-left:auto;margin-right:auto;
}
@supports (overflow-x:clip){
  .google-auto-placed,.google-auto-placed.ap_container{overflow-x:clip}
}

/* QUIZ / classic AYS wrappers and image questions must fit the available
   width even if the plugin stylesheet defines a pixel-based max-width. */
.page-content-frame :where(.ehq-wrap,.ays-quiz-container),
.article-body :where(.ehq-wrap,.ays-quiz-container){
  box-sizing:border-box;max-width:100%!important;min-width:0!important;
}
.article-body :where(.ehq-wrap,.ays-quiz-container) :where(img,video,svg){
  max-width:100%;height:auto;
}

@media (max-width:767px){
  /* Page content goes edge-to-edge with a small readable 8px gutter. */
  #site-main.page-main,#site-main.single-main{
    width:100%;max-width:100%;margin:0 auto;
    padding-left:8px;padding-right:8px;
  }
  .page-article,.single-article,
  .page-content-frame,.article-body.entry-content{
    width:100%;max-width:100%;min-width:0;margin-left:0;margin-right:0;
  }
  .page-article .article-body > *,
  .single-article .article-body > *{
    max-width:100%;min-width:0;
  }
  .entry-content :where(.alignwide,.alignfull){
    box-sizing:border-box;max-width:100%!important;
    width:100%!important;margin-left:0!important;margin-right:0!important;
  }
  .entry-content :where(.wp-block-columns,.wp-block-media-text){
    min-width:0;max-width:100%;
  }
  .entry-content :where(.wp-block-column,.wp-block-media-text__content){
    min-width:0;max-width:100%;
  }
  .page-article .article-featured,.single-article .article-featured{
    max-width:100%;margin-left:0;margin-right:0;
  }
  /* Quiz inputs, buttons, and overlays should not create a wider page. */
  .article-body .ehq-wrap,.article-body .ays-quiz-container{
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin-left:0!important;margin-right:0!important;
  }
  .article-body .ehq-wrap :where(.ehq-question,.ehq-q-actions,.ehq-question-navigation),
  .article-body .ays-quiz-container :where(.ays-quiz-question,.ays-quiz-answer){
    box-sizing:border-box;min-width:0;max-width:100%;
  }
}


/* ============================================================
   Ehliyethane Temp v1.0.5 — centered header + in-flow top ad
   A Google Auto Ad cannot be forcibly repositioned with CSS;
   this block supports a separate AdSense display ad unit.
   ============================================================ */
.site-header .header-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  grid-template-areas:'. brand menu' 'nav nav nav';
  align-items:center;
  gap:8px 12px;
  padding-block:10px;
}
.site-header .site-branding{
  grid-area:brand;
  justify-self:center;
  align-items:center;
  text-align:center;
  max-width:min(100%,280px);
}
.site-header .brand-logo,.site-header .brand-logo a{
  display:block;
  max-width:100%;
  margin-inline:auto;
}
.site-header .custom-logo{display:block;width:auto;height:auto;max-width:min(230px,100%);max-height:58px;margin-inline:auto;object-fit:contain}
.site-header .brand-note{margin-inline:auto;text-align:center;max-width:230px}
.site-header .desktop-navigation{grid-area:nav;justify-self:center;min-width:0}
.site-header .mobile-menu{grid-area:menu;justify-self:end;align-self:center;min-width:0}

/* A real display ad unit lives in the normal document flow, not floated,
   absolute or fixed. Its height pushes the following page content down. */
/* v1.0.12 — actual full-viewport layout for Ehliyethane profile and exams.
   Fix the WordPress theme ancestors, not the AdSense iframe or its dimensions. */
body.eht-app-fullwidth #site-main.page-main.site-shell,
body.ehq-fullwidth-page #site-main.page-main.site-shell,
#site-main.page-main.site-shell.eht-app-page-fullwidth {
  box-sizing:border-box!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin-inline:0!important;padding-inline:0!important;
}
body.eht-app-fullwidth .page-article,
body.ehq-fullwidth-page .page-article,
.eht-app-page-fullwidth .page-article,
body.eht-app-fullwidth .page-content-frame,
body.ehq-fullwidth-page .page-content-frame,
.eht-app-page-fullwidth .page-content-frame,
body.eht-app-fullwidth .article-body.entry-content,
body.ehq-fullwidth-page .article-body.entry-content,
.eht-app-page-fullwidth .article-body.entry-content {
  box-sizing:border-box!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin-inline:0!important;padding-inline:0!important;
}
body.eht-app-fullwidth .page-article>.article-header,
body.ehq-fullwidth-page .page-article>.article-header,
.eht-app-page-fullwidth .page-article>.article-header{padding-inline:12px}
/* Gutenberg nested group/constrained layouts around shortcodes. */
.eht-app-page-fullwidth .entry-content :is(.wp-block-group,.wp-block-columns,.wp-block-column):has(.ehqm,.ehq-wrap,.ehqe-shell,.ehqa-shell),
body.eht-app-fullwidth .entry-content :is(.wp-block-group,.wp-block-columns,.wp-block-column):has(.ehqm,.ehq-wrap,.ehqe-shell,.ehqa-shell){
  box-sizing:border-box;width:100%!important;max-width:none!important;
  min-width:0!important;margin-inline:0!important;padding-inline:0!important;
}
/* Fallback if a legacy page embeds its profile via a block/pattern but has no known slug. */
#site-main.page-main.site-shell:has(.ehqm,.ehqe-shell,.ehq-wrap,.ehqa-shell){
  width:100%!important;max-width:none!important;min-width:0!important;
  padding-inline:0!important;margin-inline:0!important;
}
#site-main.page-main:has(.ehqm,.ehqe-shell,.ehq-wrap,.ehqa-shell) :is(.page-article,.page-content-frame,.article-body.entry-content){
  width:100%!important;max-width:none!important;min-width:0!important;
  padding-inline:0!important;margin-inline:0!important;
}
#site-main.page-main:has(.ehqm,.ehqe-shell,.ehq-wrap,.ehqa-shell) .page-article>.article-header{padding-inline:12px}

/* v1.0.12: Direct exam shortcodes placed inside blog posts (single.php). */
body.eht-app-fullwidth #site-main.single-main.site-shell,
body.ehq-fullwidth-page #site-main.single-main.site-shell,
#site-main.single-main.site-shell:has(.ehq-wrap,.ehqm,.ehqe-shell,.ehqa-shell){
  box-sizing:border-box!important;width:100%!important;max-width:none!important;
  min-width:0!important;margin-inline:0!important;padding-inline:0!important;
}
body.eht-app-fullwidth .single-article,
body.ehq-fullwidth-page .single-article,
#site-main.single-main:has(.ehq-wrap,.ehqm,.ehqe-shell,.ehqa-shell) .single-article,
body.eht-app-fullwidth .single-article .article-body,
body.ehq-fullwidth-page .single-article .article-body{
  width:100%!important;max-width:none!important;min-width:0!important;
  margin-inline:0!important;padding-inline:0!important;
}
body.eht-app-fullwidth .single-article>.article-header,
body.ehq-fullwidth-page .single-article>.article-header{padding-inline:12px}
