/* ==========================================================================
   AWS Türkiye Blog — tema
   ========================================================================== */

:root {
  --aws-dark: #232f3e;
  --aws-dark-2: #161e2a;
  --aws-orange: #ff9900;
  --aws-orange-hover: #ffb84d;
  --aws-blue: #0073bb;
  --text: #16191f;
  --text-soft: #232f3e;
  --muted: #5f6b7a;
  --muted-2: #879596;
  --border: #e6e9ed;
  --border-strong: #d5dbdb;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --surface-code: #f2f3f3;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(22, 25, 31, 0.06);
  --shadow-md: 0 12px 28px rgba(22, 25, 31, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--aws-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--aws-orange);
  color: var(--text);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* Okuma çubuğu ----------------------------------------------------------- */
.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--aws-orange), #ffcf70);
}

/* Üst menü --------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 40;
}

.top-nav {
  background: var(--aws-dark);
  color: #fff;
}

.top-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.aws-wordmark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1;
  color: #fff;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--aws-orange);
}

.brand-rule {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.28);
}

.brand-text {
  font-size: 14px;
  font-weight: 500;
  color: #e4e9ed;
  white-space: nowrap;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 10px;
}

.top-links a {
  color: #d5dbdb;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.top-links a:hover {
  color: #fff;
  text-decoration: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.top-contact {
  color: #d5dbdb;
  font-size: 13.5px;
  font-weight: 500;
}

.top-contact:hover {
  color: #fff;
  text-decoration: none;
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d5dbdb;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary:hover,
.lang-menu[open] summary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.globe {
  color: var(--aws-orange);
  font-size: 15px;
}

.lang-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 80;
}

.lang-title {
  margin: 4px 10px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

.lang-popover a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 5px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}

.lang-popover a:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

.lang-popover a.is-active {
  background: #fff4e0;
  color: #8a5300;
}

.lang-code {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-2);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 1px 5px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.sub-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.sub-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 52px;
}

.sub-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--aws-dark);
  white-space: nowrap;
}

.sub-brand:hover {
  color: var(--aws-blue);
  text-decoration: none;
}

.sub-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sub-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.sub-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.search-form {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: var(--surface-code);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  overflow: hidden;
  height: 34px;
}

.search-form:focus-within {
  border-color: var(--aws-blue);
  box-shadow: 0 0 0 2px rgba(0, 115, 187, 0.15);
}

.search-form input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 12px;
  width: 190px;
  font-size: 13.5px;
  color: var(--text);
  height: 100%;
}

.search-form button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
  height: 100%;
  font-size: 17px;
}

.search-form button:hover {
  color: var(--text);
}

/* Breadcrumb ------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--aws-blue);
}

.breadcrumb span {
  color: var(--muted-2);
}

/* Ana sayfa -------------------------------------------------------------- */
.home-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(700px 260px at 85% -20%, rgba(255, 153, 0, 0.12), transparent 70%),
    #fff;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #b46b00;
}

.home-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--aws-dark);
}

.home-hero h1 span {
  color: var(--aws-orange);
}

.home-lede {
  margin: 0;
  max-width: 660px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.featured-section {
  margin: 52px 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--aws-dark);
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.featured-card {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.featured-card:hover {
  box-shadow: var(--shadow-md);
}

.featured-cover,
.post-cover,
.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(340px 220px at 78% 18%, rgba(255, 153, 0, 0.85), transparent 60%),
    radial-gradient(420px 260px at 12% 100%, rgba(0, 115, 187, 0.65), transparent 62%),
    linear-gradient(135deg, #1b2532 0%, #232f3e 55%, #2f3e52 100%);
}

.featured-cover {
  min-height: 360px;
}

.cover-label {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 10px;
  border-radius: 3px;
}

.cover-glyph {
  position: absolute;
  right: 28px;
  bottom: 18px;
  z-index: 2;
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
}

.cover-shape {
  position: absolute;
  border-radius: 50%;
  display: block;
}

.shape-1 {
  width: 220px;
  height: 220px;
  right: -60px;
  top: -70px;
  background: rgba(255, 153, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.shape-2 {
  width: 150px;
  height: 150px;
  left: 8%;
  bottom: -50px;
  background: rgba(0, 115, 187, 0.24);
}

.shape-3 {
  width: 90px;
  height: 90px;
  left: 28%;
  top: 26%;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  background: transparent;
}

.featured-copy {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.pill {
  display: inline-block;
  background: #fff4e0;
  color: #8a5300;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lang-chip {
  display: inline-block;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 600;
}

.featured-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.featured-copy h3 a {
  color: var(--aws-dark);
}

.featured-copy h3 a:hover {
  color: var(--aws-blue);
  text-decoration: none;
}

.featured-copy > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--aws-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.avatar-lg {
  width: 46px;
  height: 46px;
  font-size: 14px;
}

.avatar-xl {
  width: 62px;
  height: 62px;
  font-size: 18px;
}

.byline strong {
  font-size: 13.5px;
  color: var(--text);
}

.byline small {
  color: var(--muted);
  font-size: 12.5px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--aws-orange);
  color: var(--text);
  border: 1px solid #e88b00;
  border-radius: 5px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--aws-orange-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  border-radius: 5px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--aws-dark);
  text-decoration: none;
}

/* Kartlar ---------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-cover {
  height: 172px;
}

.card-cover .cover-glyph {
  font-size: 44px;
  right: 22px;
  bottom: 14px;
}

.card-cover.lang-en {
  background:
    radial-gradient(300px 200px at 80% 20%, rgba(0, 161, 201, 0.7), transparent 60%),
    linear-gradient(135deg, #0b2f45, #0b3d5c 60%, #11506f);
}

.card-cover.lang-ar {
  background:
    radial-gradient(300px 200px at 80% 20%, rgba(201, 162, 39, 0.6), transparent 60%),
    linear-gradient(135deg, #1e2a22, #2d3a2f 60%, #3b4a3c);
}

.card-body {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.card-body h3 a {
  color: var(--aws-dark);
}

.card-body h3 a:hover {
  color: var(--aws-blue);
  text-decoration: none;
}

.card-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.search-empty {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

/* Bülten ----------------------------------------------------------------- */
.newsletter {
  margin: 64px 0;
  background: var(--aws-dark);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.newsletter::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.28), transparent 65%);
  pointer-events: none;
}

.newsletter-copy {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.newsletter .eyebrow {
  color: var(--aws-orange);
}

.newsletter h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
}

.newsletter p {
  margin: 0;
  color: #c7ced3;
  font-size: 14.5px;
}

.newsletter-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 430px;
}

.newsletter-form input {
  flex: 1 1 220px;
  min-width: 0;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--aws-orange);
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.25);
}

.newsletter-form .btn-primary {
  height: 44px;
}

.form-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 11.5px !important;
  color: #aab7b8 !important;
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--aws-dark);
  color: #d5dbdb;
  margin-top: 72px;
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand .aws-wordmark {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.footer-brand .footer-note {
  font-size: 13.5px;
  font-weight: 400;
  color: #aab7b8;
  max-width: 300px;
  line-height: 1.6;
  margin-top: 10px;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col a {
  display: block;
  color: #d5dbdb;
  font-size: 13.5px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: #aab7b8;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: #aab7b8;
  font-size: 12px;
}

.footer-legal a:hover {
  color: #fff;
}

/* Yazı sayfası ----------------------------------------------------------- */
.post-header {
  padding-top: 10px;
}

.post-header h1 {
  margin: 14px 0 16px;
  max-width: 880px;
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--aws-dark);
}

.post-lede {
  margin: 0 0 28px;
  max-width: 780px;
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--muted);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.post-meta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  font-size: 13.5px;
}

.post-meta-text strong {
  font-size: 13.5px;
  color: var(--text);
}

.post-meta-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.meta-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
  margin: 0 4px;
}

.share-inline {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.share-inline .icon-btn {
  color: var(--muted);
  border: 1px solid var(--border);
  margin-left: 6px;
  font-size: 13px;
}

.share-inline .icon-btn:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.post-cover {
  height: 380px;
  border-radius: var(--radius-lg);
  margin: 34px 0 0;
}

.post-cover .cover-glyph {
  font-size: 110px;
  right: 44px;
  bottom: 26px;
}

.post-cover .cover-label {
  top: 28px;
  left: 30px;
}

.post-cover .shape-1 {
  width: 380px;
  height: 380px;
  right: -80px;
  top: -120px;
}

.post-cover .shape-2 {
  width: 240px;
  height: 240px;
  left: 6%;
  bottom: -90px;
}

.post-cover .shape-3 {
  width: 140px;
  height: 140px;
  left: 32%;
  top: 24%;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}

/* Yazı içeriği tipografisi */
.post-body {
  min-width: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-soft);
}

.post-body > p {
  margin: 0 0 22px;
}

.post-body h2 {
  margin: 46px 0 16px;
  font-size: 29px;
  line-height: 1.28;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--aws-dark);
  scroll-margin-top: 90px;
}

.post-body h3 {
  margin: 34px 0 12px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--aws-dark);
  scroll-margin-top: 90px;
}

.post-body h4 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--aws-dark);
}

.post-body strong {
  font-weight: 700;
  color: var(--text);
}

.post-body a {
  color: var(--aws-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 24px;
  padding-left: 26px;
}

.post-body li {
  margin: 8px 0;
  padding-left: 3px;
}

.post-body li::marker {
  color: #b46b00;
  font-weight: 700;
}

.post-body blockquote {
  margin: 30px 0;
  padding: 18px 22px;
  background: #fff8ec;
  border-left: 4px solid var(--aws-orange);
  border-radius: 0 6px 6px 0;
  color: var(--text-soft);
  font-size: 16.5px;
}

.post-body blockquote p {
  margin: 0;
}

.post-body code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-code);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: #a13b00;
}

.post-body pre {
  margin: 26px 0;
  padding: 18px 20px;
  background: var(--aws-dark-2);
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.55;
}

.post-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: #f1f1f1;
  font-size: 13.5px;
}

.post-body hr {
  margin: 42px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.post-body .table-wrap {
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
}

.post-body th {
  background: var(--surface-code);
  color: var(--aws-dark);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.post-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.post-body tr:last-child td {
  border-bottom: 0;
}

.post-body tbody tr:hover {
  background: #fbfcfd;
}

.post-body .task-list {
  list-style: none;
  padding-left: 0;
}

.post-body .task-list li {
  margin: 9px 0;
}

.task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: default;
}

.task input {
  margin-top: 6px;
  accent-color: var(--aws-orange);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Yazı altı -------------------------------------------------------------- */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 34px;
}

.tag {
  display: inline-block;
  background: var(--surface-code);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface-soft);
  border-left: 4px solid var(--aws-orange);
  border-radius: 0 8px 8px 0;
  padding: 24px;
  margin: 0 0 30px;
}

.author-box .eyebrow {
  margin-bottom: 4px;
}

.author-box h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--aws-dark);
}

.author-box p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.post-share-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-share-bottom > span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}

/* Kenar çubuğu ----------------------------------------------------------- */
.sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
  background: #fff;
}

.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--aws-dark);
}

.toc ol {
  margin: 0;
  padding-left: 18px;
}

.toc li {
  margin: 9px 0;
  font-size: 13.5px;
  line-height: 1.45;
}

.toc a {
  color: var(--muted);
}

.toc a:hover,
.toc a.is-active {
  color: var(--aws-blue);
  text-decoration: none;
  font-weight: 600;
}

.author-card .avatar {
  margin-bottom: 12px;
}

.author-card h2 {
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 2px;
}

.author-card > p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.author-card .author-card-note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
}

.related-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.related-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.related-item:hover {
  text-decoration: none;
}

.related-cover {
  width: 56px;
  height: 44px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #232f3e, #3a4c63);
  flex-shrink: 0;
}

.related-cover.lang-en {
  background: linear-gradient(135deg, #0b3d5c, #11506f);
}

.related-cover.lang-ar {
  background: linear-gradient(135deg, #2d3a2f, #3b4a3c);
}

.related-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  font-weight: 600;
}

.related-item:hover strong {
  color: var(--aws-blue);
}

.related-item small {
  font-size: 11.5px;
  color: var(--muted-2);
}

.newsletter-card {
  background: var(--surface-soft);
}

.newsletter-card h2 {
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 6px;
}

.newsletter-card > p {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.newsletter-form.compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: none;
}

.newsletter-form.compact input {
  height: 38px;
  border: 1px solid var(--border-strong);
}

.newsletter-form.compact .btn-primary {
  height: 38px;
  justify-content: center;
}

/* Devam yazıları --------------------------------------------------------- */
.related-section {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  padding: 54px 0 64px;
  margin-top: 64px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card.horizontal {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.post-card.horizontal .card-cover {
  height: 100%;
  min-height: 190px;
}

.post-card.horizontal .card-body h3 {
  font-size: 18px;
}

/* 404 -------------------------------------------------------------------- */
.error-page {
  padding: 90px 24px 120px;
  max-width: 640px;
}

.error-page h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.03em;
  color: var(--aws-dark);
}

.error-page p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Toast ------------------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--aws-dark);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* RTL -------------------------------------------------------------------- */
[dir="rtl"] body,
body[dir="rtl"] {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Arial", sans-serif;
}

[dir="rtl"] .post-body blockquote {
  border-left: 0;
  border-right: 4px solid var(--aws-orange);
  border-radius: 6px 0 0 6px;
}

[dir="rtl"] .author-box {
  border-left: 0;
  border-right: 4px solid var(--aws-orange);
  border-radius: 8px 0 0 8px;
}

[dir="rtl"] .post-body th {
  text-align: right;
}

[dir="rtl"] .toc ol {
  padding-left: 0;
  padding-right: 18px;
}

[dir="rtl"] .post-body ul,
[dir="rtl"] .post-body ol {
  padding-left: 0;
  padding-right: 26px;
}

[dir="rtl"] .post-body .task-list {
  padding-right: 0;
}

[dir="rtl"] .cover-label {
  left: auto;
  right: 24px;
}

[dir="rtl"] .cover-glyph {
  right: auto;
  left: 28px;
}

[dir="rtl"] .search-form {
  margin-left: 0;
  margin-right: auto;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .top-links {
    gap: 16px;
  }

  .top-links a:nth-child(4),
  .top-links a:nth-child(5) {
    display: none;
  }

  .post-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 40px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .top-links,
  .top-contact,
  .sub-links {
    display: none;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-cover {
    min-height: 260px;
  }

  .featured-copy {
    padding: 30px;
  }

  .card-grid,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .sidebar-card {
    margin-bottom: 0;
  }

  .toc-card {
    grid-column: 1 / -1;
  }

  .post-cover {
    height: 260px;
  }

  .post-cover .cover-glyph {
    font-size: 72px;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 30px;
    gap: 24px;
  }

  .newsletter-form {
    width: 100%;
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-card.horizontal {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .top-nav-inner {
    gap: 16px;
    height: 54px;
  }

  .brand-rule,
  .brand-text {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .lang-menu summary {
    padding: 6px;
    font-size: 0;
  }

  .lang-menu summary .globe {
    font-size: 17px;
  }

  .sub-nav-inner {
    gap: 14px;
  }

  .search-form {
    margin-left: auto;
    flex: 1;
    max-width: 220px;
  }

  .search-form input {
    width: 100%;
  }

  .home-hero {
    padding: 36px 0 28px;
  }

  .home-lede {
    font-size: 16px;
  }

  .featured-section,
  .latest-section {
    margin: 38px 0;
  }

  .featured-copy {
    padding: 24px 20px;
  }

  .featured-cover {
    min-height: 210px;
  }

  .section-head h2 {
    font-size: 19px;
  }

  .post-header h1 {
    font-size: 32px;
  }

  .post-lede {
    font-size: 16.5px;
  }

  .meta-divider {
    display: none;
  }

  .share-inline {
    margin-left: 0;
    width: 100%;
  }

  .share-inline .icon-btn:first-child {
    margin-left: 0;
  }

  .post-cover {
    height: 190px;
  }

  .post-cover .cover-glyph {
    font-size: 54px;
    right: 20px;
    bottom: 16px;
  }

  .post-layout {
    margin-top: 32px;
  }

  .post-body {
    font-size: 16px;
    line-height: 1.75;
  }

  .post-body h2 {
    font-size: 24px;
  }

  .post-body h3 {
    font-size: 20px;
  }

  .post-body table {
    font-size: 13.5px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .post-card.horizontal {
    grid-template-columns: 1fr;
  }

  .post-card.horizontal .card-cover {
    min-height: 150px;
  }

  .newsletter {
    margin: 44px 0;
    padding: 28px 22px;
  }

  .newsletter h2 {
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-box {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .sidebar,
  .site-footer,
  .post-share-bottom,
  .related-section,
  .reading-progress,
  .share-inline {
    display: none !important;
  }

  .post-layout {
    display: block;
  }

  .post-cover {
    height: 160px;
  }

  .post-body {
    font-size: 12pt;
  }
}
