
.about-photo {
  display: block;
  max-width: 360px;   /* makul portre genişliği */
  width: 100%;
  height: auto;       /* oran bozulmaz */
  margin: 40px auto 24px;  /* ortala */
  border-radius: 14px;     /* yumuşak köşe */
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.life-row{
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #e7e7e7;
  align-items: start;
}

.life-cover img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.life-title{
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 750;
  text-decoration: none;
  color: #111;
  margin-bottom: 10px;
}

.life-title:hover{
  text-decoration: underline;
}

.life-intro{
  font-size: 0.98rem;
  line-height: 1.65;
  color: #333;
  max-height: 7.2em; /* 4-5 satır */
  overflow: hidden;
}

.life-author{
  display: flex;
  gap: 12px;
  align-items: center;
}

.life-avatar{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.life-name{
  font-weight: 750;
  color: #111;
}

.life-sub{
  font-size: 0.85rem;
  color: #666;
  line-height: 1.3;
}
.flash-overlay{
  position: fixed;
  top: 72px;            /* navbar yüksekliğine göre ayarla */
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none; /* alttaki şeylere tıklanabilsin */
}

.flash-item{
  pointer-events: auto; /* istersen X koyarsın */
  margin: 0 auto;
  max-width: 900px;
  opacity: 0.95;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border-radius: 10px;
}
/* Mobil */
@media (max-width: 992px){
  .life-row{
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto auto;
  }
  .life-author{
    grid-column: 1 / -1;
    margin-top: 10px;
  }
  .life-cover img{
    height: 120px;
  }
}
.navbar .navbar-brand span { font-weight: 700; letter-spacing: .2px; }
.navbar .nav-link { opacity: .9; }
.navbar .nav-link:hover { opacity: 1; }

.navbar .btn {
  border-radius: 10px;
  padding: 6px 10px;
}
.navbar .btn-outline-light { border-color: rgba(255,255,255,.35); }
.navbar .btn-outline-info { border-color: rgba(23,162,184,.6); }
.nav-life {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  color: #f5f5f5 !important;
}

.nav-life::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-life:hover::after {
  width: 70%;
}
@media (max-width: 576px) {
  #topNav .navbar-nav.align-items-lg-center{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    width: 100%;
  }

  #topNav .navbar-nav.align-items-lg-center .nav-item{
    margin: 0 !important;
  }

  /* dropdown tek başına satır */
  #topNav .navbar-nav.align-items-lg-center .nav-item.dropdown{
    flex: 1 1 100%;
  }

  /* butonlar 2 sütun */
  #topNav .navbar-nav.align-items-lg-center .btn{
    flex: 1 1 calc(50% - .5rem);
    width: auto;
    text-align: center;
    padding: .6rem .9rem;
    border-radius: 10px;
  }

  #topNav .ml-2,
  #topNav .ml-lg-3{
    margin-left: 0 !important;
  }
}
@media (max-width: 576px) {
  .body_region-input,
  .occupation-input,
  .rd1-input, .rd2-input,
  .pd1-input, .pd2-input,
  .symptom1-input, .symptom2-input, .symptom3-input,
  .symptom4-input, .symptom5-input {
    width: calc(100% - 40px) !important; /* 20px sol boşluğu telafi */
    max-width: 100% !important;
    margin-left: 20px !important;
    box-sizing: border-box;
  }
  
}
/* Study list: Life tasarımını küçült */
.study-row{
  grid-template-columns: 72px 1fr;  /* kapak küçük + metin */
  gap: 12px;
  align-items: center;
}

.study-cover img{
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

/* Mobilde de aynı kalsın */
@media (max-width: 992px){
  .study-row{
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto;
  }
  .study-cover img{
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }
}
/* Subject detail (Study article) */
.subject-wrap{
  max-width: 920px;       /* senin inline max-width ile uyumlu */
  margin-left: auto;
  margin-right: auto;
}

.subject-cover{
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
}

.subject-title{
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.subject-meta{
  gap: 12px;
  margin-bottom: 18px;
}

.subject-avatar{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.subject-name{
  font-weight: 700;
}

.subject-sub{
  font-size: 0.9rem;
}

.subject-anabilim{
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 18px;
}

/* Article content typography */
.article-content{
  font-size: 1.06rem;
  line-height: 1.85;
  color: #1f2937;
}

/* Headings inside CKEditor content */
.article-content h2{
  font-size: 1.45rem;
  font-weight: 800;
  margin: 26px 0 12px;
}

.article-content h3{
  font-size: 1.15rem;
  font-weight: 800;
  margin: 18px 0 10px;
}

.article-content p{
  margin: 10px 0;
}

.article-content ul,
.article-content ol{
  margin: 10px 0 10px 18px;
}

.article-content li{
  margin: 6px 0;
}

/* Make long lines easier to read */
.article-content{
  word-break: break-word;
}

/* "Study notes" callout blocks you can use in content */
.callout{
  border-left: 4px solid #9ca3af;
  background: #f8fafc;
  padding: 12px 14px;
  margin: 14px 0;
  border-radius: 10px;
}

.callout.exam{ border-left-color: #ef4444; background: #fff5f5; }
.callout.clinic{ border-left-color: #3b82f6; background: #f3f8ff; }
.callout.remember{ border-left-color: #10b981; background: #f2fbf7; }

.callout strong{
  display: inline-block;
  margin-right: 6px;
}
.article-content{
  max-width: 70ch;
}

/* subject_detail kısmı tamamen






/* Subject detail - card layout */
.subject-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
}

.subject-figure{
  margin: 0;
}

.subject-cover{
  width: 100%;
  height: 240px;            /* 320 yerine daha “study note” */
  object-fit: cover;
  display: block;
  border-radius: 0;         /* kart içinde zaten radius var */
}

.subject-header{
  padding: 18px 18px 8px;
}

.subject-topline{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.subject-badge{
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #111;
  background: #f3f4f6;
  padding: 6px 10px;
  border-radius: 999px;
}

.subject-pill{
  font-size: 0.85rem;
  color: #111;
  background: #eef2ff;
  padding: 6px 10px;
  border-radius: 999px;
}

.subject-title{
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}

.subject-meta{
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
}

.subject-meta-text .subject-sub{
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.35;
}

.subject-actions .btn{
  border-radius: 10px;
}

.subject-divider{
  margin: 0;
  opacity: 0.12;
}

.subject-footer{
  padding: 14px 18px 18px;
  display: flex;
  justify-content: flex-start;
}

/* === Asıl farkı yaratan: satır uzunluğu + tipografi === */
.study-content{
  padding: 16px 18px 6px;
  max-width: 70ch;          /* satırları “kısa” hissettirir */
  margin: 0 auto;           /* ortalar */
  font-size: 1.04rem;
  line-height: 1.8;
}

/* İçerikte başlıklar biraz daha “not” gibi */
.study-content h2{
  margin-top: 26px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.study-content ul, .study-content ol{
  margin-left: 18px;
}

.study-content li{
  margin: 7px 0;
}

/* Mobil dokunuş */
@media (max-width: 576px){
  .subject-cover{ height: 180px; }
  .subject-meta{
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }
  .subject-actions{
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  .study-content{
    padding: 14px 14px 4px;
    max-width: 100%;
  }
}

/* Admin tables: buttons same line + nice spacing */
.admin-table td, .admin-table th{
  vertical-align: middle !important;
}

.admin-table .btn{
  border-radius: 10px;
  padding: .35rem .6rem;
}

/* Small screens: make action buttons full width to avoid wrap chaos */
@media (max-width: 576px){
  .btn-block-sm{
    width: 100%;
    display: block;
  }
  .admin-table th:nth-child(1),
  .admin-table th:nth-child(2),
  .admin-table th:nth-child(4){
    white-space: nowrap;
  }
}
/* =========================
   Dark Study Theme (ChatGPT-like)
   Sadece subject_detail / study içerik için
   ========================= */

.subject-wrap{
  color: #e5e7eb;
}

/* Kartın arkaplanı */
.subject-card{
  background: #0b0f19;                 /* koyu lacivert-siyah */
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

/* Kapak üstüne hafif gradient (okumayı artırır) */
.subject-figure{
  position: relative;
}
.subject-figure::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.55));
}

/* Başlık ve meta */
.subject-title{
  color: #f3f4f6;
  font-weight: 750;                    /* 850 çok kalın */
}
.subject-badge{
  background: rgba(255,255,255,0.08);
  color: #e5e7eb;
  font-weight: 650;
}
.subject-pill{
  background: rgba(99,102,241,0.18);   /* indigo şerit */
  color: #e5e7eb;
  font-weight: 600;
}
.subject-meta-text .subject-sub{
  color: rgba(229,231,235,0.72);
}
.subject-divider{
  opacity: 0.18;
}

/* İçerik metni: beyaz ama göz yormayan */
/* SADECE study_detail (dark study) */
.subject-wrap .study-content,
.subject-wrap .article-content{
  color: rgba(229,231,235,0.92);
}

/* h2/h3 aşırı bold olmasın */
.article-content h2,
.study-content h2{
  color: #f3f4f6;
  font-weight: 700;                    /* 800 -> 700 */
}

.article-content h3,
.study-content h3{
  color: #e5e7eb;
  font-weight: 650;                    /* 800 -> 650 */
}

/* strong daha makul */
.article-content strong,
.study-content strong{
  font-weight: 650;                    /* 800 gibi durmasın */
  color: #f3f4f6;
}

/* Listeler */
.article-content li,
.study-content li{
  color: rgba(229,231,235,0.9);
}

/* Linkler koyu temada düzgün görünsün */
.subject-card a{
  color: #93c5fd;
}
.subject-card a:hover{
  color: #bfdbfe;
}

/* Callout'lar: dark uyumlu */
.callout{
  background: rgba(255,255,255,0.06);
  border-left-color: rgba(156,163,175,0.8);
  color: rgba(229,231,235,0.92);
}

.callout.exam{
  background: rgba(239,68,68,0.10);
  border-left-color: rgba(239,68,68,0.85);
}
.callout.clinic{
  background: rgba(59,130,246,0.10);
  border-left-color: rgba(59,130,246,0.85);
}
.callout.remember{
  background: rgba(16,185,129,0.10);
  border-left-color: rgba(16,185,129,0.85);
}

/* Butonlar koyu temada daha iyi */
.subject-card .btn-outline-secondary{
  color: rgba(229,231,235,0.9);
  border-color: rgba(229,231,235,0.25);
}
.subject-card .btn-outline-secondary:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(229,231,235,0.35);
}
/* =========================
   Study Headings – ChatGPT scale
   ========================= */

/* H2: ana başlıklar */
.study-content h2,
.article-content h2{
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.15px;
  margin-top: 26px;
  margin-bottom: 10px;
}

/* H3: alt başlıklar */
.study-content h3,
.article-content h3{
  font-size: clamp(1.05rem, 2.2vw, 1.18rem);
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -0.1px;
  margin-top: 18px;
  margin-bottom: 6px;
}

/* Listeler başlığa daha yakın dursun */
.study-content h2 + ul,
.study-content h3 + ul,
.article-content h2 + ul,
.article-content h3 + ul{
  margin-top: 6px;
}
/* İçerikteki bölüm başlıkları (örn: "2. Primer hepatotrop...") */
.study-content h2{
  font-size: clamp(1.12rem, 2.2vw, 1.32rem);
  line-height: 1.32;
  font-weight: 680;      /* 800/700 çok sertse yumuşatır */
  letter-spacing: -0.1px;
}

/* Mobilde ekstra küçült */
@media (max-width: 576px){
  .study-content h2{
    font-size: 1.16rem;
    line-height: 1.3;
  }
}
.study-content h2{ overflow-wrap: anywhere; }
/* SADECE study-content içindeki maddeler */
.study-content ul,
.study-content ol{
  margin-left: 0;          /* ekstra kaymayı iptal */
  padding-left: 1.1rem;   /* hafif girinti (duvara çok yakın) */
}

/* madde aralığı kalsın */
.study-content li{
  margin: 6px 0;
}
/* SADECE study_detail (dark study) */
.subject-wrap .study-content,
.subject-wrap .article-content{
  color: rgba(229,231,235,0.92);
}


/* Önemli ifadeler: hafif seyreltilmiş beyaz */
.study-content strong,
.article-content strong{
  color: rgba(243,244,246,0.93);  /* 0.96 → 0.93 */
  font-weight: 630;               /* 650 → 630 */
}