.page {
    max-width: 1300px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 1fr clamp(220px, 24vw, 300px);
    gap: 32px;
    background-color: #fff;
    padding: 15px;
    box-sizing: border-box;
}

  /* ===== MAIN COLUMN ===== */

  .hero {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    background: #d8d8d8;
  }
.article-body{
	
}
  .article-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    margin: 24px 0 18px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 2.1;
    color: #333;
    margin: 0 0 18px;
  }

  .byline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 16px;
    font-size: 13px;
    color: #666;
  }

  .byline .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #cfd3da;
  }

  .share-row {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
  }

  .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
  }

  .share-btn.fb { background: #1877f2; }
  .share-btn.x  { background: #000; }
  .share-btn.li { background: #0a66c2; }

  .section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 20px;
    background-color: #d61f26;
    color: #fff;
    padding: 10px;
    border-radius: 20px;
  }

  /* ===== RELATED LIST (bottom) ===== */

  .related-list {
    display: flex;
    flex-direction: column;
  }

  .related-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
  }

  .related-item img {
    width: 88px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    background: #d8d8d8;
    flex-shrink: 0;
  }

  .related-texts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex: 1;
  }

.related-texts .col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%; /* 600px-ის ნაცვლად */
}

  .related-texts h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
   
    
  }
  .related-texts .date {
    font-size: 12px;
    color: #999;
  }
.related-item a,
a {
    text-decoration: none;
}
 .related-item:hover h4 {
    text-decoration: underline;
}

  /* ===== SIDEBAR ===== */

  .sidebar-label {
    display: inline-block;
    background: #101828;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 10px 22px;
    border-radius: 20px;
    margin-bottom: 20px;
        text-transform: uppercase;
    font-feature-settings: "case" 1;
        justify-content: space-between;
            font-family: 'BPG', 'Noto Sans Georgian', Arial, sans-serif;
  }

  .side-item {
    margin-bottom: 22px;
  }

  .side-item img {
    width: 100%;
    height: 130px;
    border-radius: 6px;
    object-fit: cover;
    background: #d8d8d8;
    margin-bottom: 10px;
  }

  .side-item h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
  }

  .side-item .date {
    font-size: 12px;
    color: #999;
    margin: 0;
  }
#articleEditForm {
    max-width: 850px;
    margin: 20px auto;
    background: #1e1e1e !important;
    padding: 30px !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e2e8f0;
    box-sizing: border-box;
}

/* ინფუთების და ეტიკეტების ზოგადი სტილი */
#articleEditForm p {
    margin-bottom: 20px;
   color: #ffff;
    font-size: 14px;
    font-weight: 500;
}

#articleEditForm p[style*="color: #fff"] {
    text-align: left !important; /* უფრო მარტივად წაკითხვადია როცა მარცხნივაა გასწორებული */
    margin-bottom: 8px;
}

/* სათაურის ტექსტური ინფუთი */
#articleEditForm input[type="text"].text {
    width: 100%;
    padding: 12px 16px;
    margin-top: 10px;
    background: #2a2a2a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#articleEditForm input[type="text"].text:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ფაილის ატვირთვის სტილი */
#articleEditForm input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: 1px dashed #52525b;
    border-radius: 8px;
    color: #a1a1aa;
    cursor: pointer;
    margin-top: 8px;
    transition: border-color 0.3s;
}

#articleEditForm input[type="file"]:hover {
    border-color: #a1a1aa;
}

/* ძველი სურათის პრევიუ */
#articleEditForm img {
    max-width: 160px !important;
    height: auto;
    border-radius: 8px;
    border: 1px solid #3f3f46;
    display: block;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ღილაკების კონტეინერი და სტილები */
#articleEditForm button[type="submit"],
#articleEditForm button#cancelEditBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     font-family: "Regular2" !important;
}

/* შენახვის ღილაკი (.add) */
#articleEditForm button.add {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
     font-family: "Regular2" !important;
}

#articleEditForm button.add:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    transform: translateY(-1px);
}

/* უკან დაბრუნების ღილაკი (#cancelEditBtn) */
#articleEditForm button#cancelEditBtn {
    background: #3f3f46 !important;
    color: #ffffff !important;
    padding: 12px 18px !important;
    margin-left: 10px;
}

#articleEditForm button#cancelEditBtn:hover {
    background: #52525b !important;
    transform: translateY(-1px);
}

/* TinyMCE რედაქტორის გარკვეული კორექტირება მუქ თემასთან მოსარგებლებად */
.tox.tox-tinymce {
    border-radius: 8px !important;
    border: 1px solid #3f3f46 !important;
    overflow: hidden;
}
.p{
	
	    text-transform: uppercase;
    font-feature-settings: "case" 1;
    justify-content: space-between;
    font-family: 'BPG', 'Noto Sans Georgian', Arial, sans-serif;
}
@media (max-width: 1290px) 
  {
  	main{
		width: 700px;
	}
	
	.article-body p img{
		width: 100%;
		height: auto;
	}
}
@media (max-width: 1100px) 
  {
  	main{
		width: 600px;
	}
	
	
}
  @media (max-width: 900px) 
  {
  	main{
		width: 100%;
	}
	
    .page { grid-template-columns: 1fr; }
    .related-texts { grid-template-columns: 1fr; }
    .articleView{
		width: 90%;
	}
	.article-title{
		    font-size: 18px;
	}
	.article-body img {
    width: 100%;
    height: auto;
}
.hero{
	 height: auto;
}
  }
  @media (max-width: 600px) 
  {
  	.article-wrapper{
		width: 100%;
	}
	iframe{
		width: 96%;
	}
	
}