.detail-content-section {
  width: 55%;
  padding: 40px 0;
  margin: 0 auto; /* <-- this centers it horizontally */
}
.detail-btn-section{
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    padding-bottom: 10px;
}
.detail-btn{
    margin: 0;
    border: 1px solid #000;
    color: #000;
    padding: 3px 15px;
    width: auto;
    border-radius: 3px;

}
.detail-main-img {
    width: 100%;
    height: auto;
    padding: 20px 0px;
}
.detail-main-head{
    color: #000;
    margin: 0;
    font-size: 30px;
font-weight: 700;
padding: 5px 0px;
}
.detail-main-head a{
    color: #000;
}

.detail-box{
 display: flex;
    gap: 10px;
    padding: 15px 10px;
    border: 1px solid #c1c1c1;
    margin-bottom: 10px;
}
.seizure-list {
  font-size: 16px;
  line-height: 1.8;
  padding-left: 20px;
  color: #000;
}



.share-section {
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons img {
  width: 25px;
  height: 25px;
  cursor: pointer;filter: invert(100%);
}

.newsletter-box {
  background-color: #f4f4f4;
  padding: 30px;
  border-top: 5px solid rgb(0, 0, 0);
  max-width: 800px;
  margin: 30px auto;
}

.newsletter-box h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.newsletter-box p {
  margin-bottom: 15px;
  font-size: 16px;
}

.subscription-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.subscription-form input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  background-color: #fff;
}

.subscription-form button {
  background-color: rgb(0, 0, 0);
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
}

.checkboxes {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.disclaimer {
  font-size: 14px;
  color: #333;
  opacity: 0.9;
}

.disclaimer a {
  color: red;
  text-decoration: none;
}


.author-card {
  display: flex;
  align-items: flex-start;
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 6px;
  gap: 20px;
  max-width: 1100px;
  margin: 20px auto;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.written-by {
  color: red;
  font-size: 16px;
  margin: 0;
}

.author-name {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.author-bio {
  font-size: 16px;
  color: #333;
  margin: 10px 0;
}

.linkedin-icon {
  width: 24px;
  height: 24px;
  margin-top: 10px;
  filter: invert(100%);
}



.comments-section {
  margin: 30px 0px;
  color: #222;
}

.comments-title {
  font-size: 24px;
  font-weight: bold;
  border-bottom: 3px solid rgb(0, 0, 0);
  padding-bottom: 5px;
}

.comment {
  display: flex;
  margin-top: 20px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.comment-body {
  flex: 1;
}

.comment-author {
  font-weight: bold;
  margin: 0;
}

.comment-date {
  font-weight: normal;
  color: #666;
  font-size: 14px;
  margin-left: 10px;
}

.comment-text {
  margin: 8px 0;
  line-height: 1.5;
}

.reply-link {
  color: #007bff;
  font-size: 14px;
  text-decoration: none;
}

.reply-link:hover {
  text-decoration: underline;
}

.leave-comment-title {
  font-size: 18px;
  margin: 30px 0 10px;
  font-weight: bold;
}

.comment-form textarea,
.comment-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  font-size: 16px;
  box-sizing: border-box;
}

.comment-form textarea {
  height: 120px;
  resize: vertical;
}

.checkbox-container {
  display: flex;
  align-items: center; /* vertically align checkbox and text */
  font-size: 14px;
  margin-bottom: 15px;
  text-align: left;       /* ensures text is aligned left */
  justify-content: flex-start; /* aligns items to the left */
}


.checkbox-container input[type="checkbox"] {
  margin-right: 8px;
  width: 5%;
  margin-bottom: 0;
}

.comment-form button {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.comment-form button:hover {
  background-color: #333;
}



.continue-reading {
  padding: 20px 0px;
}

.continue-reading h2 {
  font-size: 32px;
  font-weight: bold;
  border-bottom: 5px solid rgb(0, 0, 0);
  display: inline-block;
  margin-bottom: 20px;
}
.section-divider {
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin-top: -22px; /* adjust spacing if needed */
  margin-bottom: 20px;
}
.articles-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

/* Left main article */
.main-article {
  flex: 1 1 55%;
}

.main-article img {
  width: 100%;
  height: auto;
  display: block;
}

.main-article .tag {
  color: rgb(0, 0, 0);
  border: 1px solid rgb(0, 0, 0);
  padding: 2px 8px;
  font-size: 14px;
  display: inline-block;
  margin-top: 10px;
  border-radius: 2px;
}

.main-article h3 {
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
}

/* Right side articles */
.side-articles {
  flex: 1 1 40%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.article img {
  width: 100%;
  height: auto;
  display: block;
}

.article .tag {
  color: rgb(0, 0, 0);
  border: 1px solid rgb(0, 0, 0);
  padding: 2px 8px;
  font-size: 14px;
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 5px;
  border-radius: 2px;
}

.article p {
  font-weight: bold;
  font-size: 16px;
  margin: 0;
}



@media (max-width: 767px){
    .detail-content-section {
  width: 100%;
  padding: 20px 10px;
}
.author-card {
  display: block;
}
.detail-btn{
   font-size: 12px;
    padding: 2x 8px;
    
}
}

@media (min-width: 768px) and (max-width: 991.98px){
        .detail-content-section {
  width: 100%;
  padding: 20px 20px;
}
}