:root {
   --primary-color: #b70000;
}

body {
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
      Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol";
   margin: 0;
   padding: 0;
   background-color: #ffffff;
   color: #333;
   line-height: 1.6;
   overflow-x: hidden;
   box-sizing: border-box;
}

/* Header Styles */
.main-header {
   background-color: var(--primary-color);
   padding: 10px;
}

.header-items {
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 100%;
   max-width: 900px;
   margin: 0 auto;
   padding: 0 10px;
}

.container-logo {
   display: flex;
   align-items: center;
   justify-content: center;
   flex-grow: 1;
}

.logo-header {
   width: 40px;
   height: 40px;
   margin-right: 10px;
   object-fit: contain;
}

.logo {
   color: white;
   font-size: 24px;
   font-weight: normal;
   letter-spacing: 5px;
   margin: 0;
   text-align: center;
   text-transform: uppercase;
}

.menu-icon,
.search-icon {
   background: none;
   border: none;
   cursor: pointer;
   padding: 5px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   gap: 4px;
   transition: opacity 0.3s ease;
   min-width: 40px;
}

.menu-icon span {
   display: block;
   width: 25px;
   height: 3px;
   background-color: white;
   border-radius: 2px;
   transition: all 0.3s ease;
}

.search-icon svg {
   width: 24px;
   height: 24px;
}

.menu-icon:hover span,
.search-icon:hover svg {
   opacity: 0.8;
}

.menu-icon:focus,
.search-icon:focus {
   outline: 2px solid white;
   outline-offset: 2px;
}

/* --- Container --- */
.container {
   max-width: 900px;
   margin: 0 auto;
   padding: 10px;
}

/* --- Headlines --- */
h1 {
   text-align: center;
   font-size: 2rem;
   color: #222; /* Swapped color with h2 */
   font-weight: 500; /* Swapped font-weight with h2 */
   margin: 0 0 10px;
   text-transform: capitalize;
}

h2 {
   text-align: center;
   font-size: 2.5rem;
   color: #c94444; /* Swapped color with h1 */
   font-weight: 700; /* Swapped font-weight with h1 */
   line-height: 1.2;
   margin: 0 0 10px;
   text-transform: capitalize;
}

/* --- Video Container --- */
.video-container {
   margin: 20px 0 30px 0;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   border-radius: 8px;
   overflow: hidden; /* Ensures the player's corners are also rounded */
}

/* --- Comments Section --- */
.comments-section {
   margin-top: 200px;
   padding-top: 20px;
   border-top: 1px solid #e9ebee;
}

.comments-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 20px;
   padding-bottom: 10px;
   border-bottom: 1px solid #dddfe2;
}

.comments-header h3 {
   font-size: 1.5rem; /* Bigger title like image */
   font-weight: 700;
   color: #1c1e21;
   margin: 0;
}

.comments-header span {
   font-size: 0.9rem;
   font-weight: 600;
   color: #555;
   min-width: 90px; /* Space for counter */
   text-align: right;
}

.comment-box {
   display: flex;
   align-items: flex-start;
   gap: 15px;
   margin-bottom: 25px;
}

.comment-avatar {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background-color: #f0f2f5;
   flex-shrink: 0;
   /* Simple user icon */
   display: flex;
   align-items: center;
   justify-content: center;
   color: #65676b;
   font-size: 1.2rem;
   /* Placeholder for an icon */
   font-weight: bold;
   user-select: none;
}

.comment-avatar::before {
   content: "👤"; /* Simple user emoji as icon */
   opacity: 0.6;
}

.comment-form {
   flex-grow: 1;
   display: flex;
   flex-direction: column;
   gap: 10px;
}

.comment-form input,
.comment-form textarea {
   width: 100%;
   padding: 12px 15px;
   border: 1px solid #ccd0d5;
   border-radius: 8px;
   background-color: #fff;
   font-size: 0.95rem;
   /* ... */
   font-family: inherit;
}

.comment-form textarea {
   min-height: 80px;
   resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
   outline: none;
   border-color: #8a8d91;
   box-shadow: 0 0 0 1px #8a8d91;
}

.comment-post-button {
   align-self: flex-end;
   padding: 8px 18px;
   font-size: 0.9rem;
   font-weight: 600;
   color: #333;
   background-color: #e4e6eb;
   border: 1px solid #ccd0d5;
   border-radius: 6px;
   cursor: pointer;
}

.comment-post-button:hover {
   background-color: #d8dbdf;
}

.comment-list {
   display: flex;
   flex-direction: column;
   gap: 15px;
}

.comment {
   display: flex;
   align-items: flex-start;
   gap: 10px;
}

.comment-content {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   flex-grow: 1;
}

.comment-body {
   background-color: #f0f2f5;
   border-radius: 18px;
   padding: 8px 12px;
   max-width: 100%;
   box-sizing: border-box;
}

.comment-name {
   font-weight: 700;
   font-size: 0.9rem;
   color: #050505;
   text-decoration: none;
}

.comment-name:hover {
   text-decoration: underline;
}

.comment-text {
   font-size: 0.95rem;
   color: #050505;
   margin-top: 3px;
   line-height: 1.4;
   word-wrap: break-word; /* Ensures long words don't overflow */
}

.comment-actions {
   display: flex;
   gap: 15px;
   margin: 4px 0 0 12px;
}

.comment-actions a {
   color: #606770;
   text-decoration: none;
   font-weight: 600;
   font-size: 0.8rem;
}

.comment-actions a:hover {
   text-decoration: underline;
}

.comment-actions .time {
   color: #90949c;
   font-size: 0.8rem;
   text-decoration: none;
}

/* --- Scientific References --- */
.references-container {
   margin-top: 40px;
   border-top: 1px solid #eee;
   padding-top: 30px;
}

.references-container h3 {
   text-align: center;
   font-size: 1.5rem;
   color: #444;
   margin-bottom: 25px;
}

.references-container ol {
   list-style: decimal;
   list-style-position: inside;
   padding-left: 0;
   margin: 0;
}

.references-container li {
   font-size: 0.8rem; /* Text in the image is very small */
   color: #555;
   margin-bottom: 15px;
   line-height: 1.5;
   text-align: left;
}

/* Footer */
footer {
   background-color: var(--primary-color);
   padding: 40px 20px 20px;
   text-align: center;
   color: #fff;
}

.footer-brand {
   margin-bottom: 20px;
}

footer p {
   margin-bottom: 10px;
   font-size: 18px;
}

.logo-footer {
   width: 80px;
   height: auto;
   margin: 15px auto 0;
   display: block;
   object-fit: contain;
}

.footnote {
   font-size: 16px;
   line-height: 1.6;
   max-width: 800px;
   margin: 10px auto;
   padding: 0 20px;
}

.footer-links {
   margin-top: 20px;
   font-size: 16px;
}

.footer-links a {
   color: #fff;
   text-decoration: none;
   transition: opacity 0.3s ease;
}

.footer-links a:hover {
   text-decoration: underline;
   opacity: 0.8;
}

.footer-links a:focus {
   outline: 2px solid white;
   outline-offset: 2px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
   h1 {
      text-align: center;
      font-size: 1.6rem;
   }
   h2 {
      font-size: 2rem;
   }

   .logo {
      font-size: 16px;
      letter-spacing: 2px;
   }

   .logo-header {
      width: 30px;
      height: 30px;
      margin-right: 8px;
   }

   .menu-icon span {
      width: 20px;
   }

   .search-icon svg {
      width: 20px;
      height: 20px;
   }

   footer {
      padding: 30px 15px 15px;
   }

   .footnote {
      font-size: 14px;
      padding: 0 10px;
   }

   .footer-links {
      font-size: 14px;
      line-height: 1.8;
   }

   .logo-footer {
      width: 60px;
   }
}
