

@font-face {
  font-family: 'Epilogue';
  src: url('../font/Epilogue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Epilogue';
  src: url('../font/Epilogue-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

/* ========================================
   Main Layout
======================================== */

.main-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  background-color: #ffffff;
  flex-direction: row; /* default for desktop */
}

/* Content */
.content {
  flex: 3 1 600px;
  padding: 15px;
  background-color: #ffffff;
  box-sizing: border-box;
  min-width: 0;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    align-items: stretch; 
  }

  .content,
  .sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: none; 
    
  }

  .sidebar {
    margin-top: 20px; 
    position: static;
  }
}

/* ========================================
   Headings and Content
======================================== */

h1 {
  font-size: 35px;
  text-align: center;
  padding-bottom: 20px;
  padding-top: 20px;
  font-weight: 400;
  line-height: 45px;

}

h2 {
  font-size: 30px;
  font-weight: 400;
  text-align: left;
  padding-top: 25px;
  padding-bottom: 15px;
  line-height: 40px;
  color: #0ea5e9;
}

h3 {
  font-size: 25px;
  font-weight: 400;
  text-align: left;
  padding-top: 25px;
  padding-bottom: 15px;
}

h4 {
  font-size: 20px;
  font-weight: 400;
  text-align: left;
  padding-top: 25px;
  padding-bottom: 15px;
}

.content a {
  font-weight: bold;
  color: #0ea5e9;
}

.content a:hover {
  font-weight: bold;
  color: rgb(0, 0, 1);
}

.content ol {
  padding-left: 20px;
  padding-top: 10px;
}

.content ul {
  list-style-type: disc;
  padding-left: 20px;
  padding-top: 10px;
}

.content p {
  padding-top: 10px;
  font-size: 16px;
}

figure img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 8px;
  margin: 10px auto;
  display: block;
}

.content article header div img {
  width: 35px;
  height: auto;
  border-radius: 10px;
}

.content article header div span {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 767px) {
  h1 {
    font-size: 25px;
    line-height: 32px;
  }

  h2 {
    font-size: 24px;
    line-height: 32px;
  }

  h3 {
    font-size: 20px;
    line-height: 32px;
  }
}
/* ========================================
   Video and Slideshare Layout
======================================== */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 10px auto; /* top and bottom spacing + center alignment */
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9 / 16 * 100%) */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.slideshare-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%; /* Prevents it from exceeding container */
  margin: 0 auto;
}

.slideshare-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-sizing: border-box;
}

.slideshare-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.slideshare-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 75%; /* 4:3 ratio */
  height: 0;
  overflow: hidden;
  margin: 0 auto;
  box-sizing: border-box;
}

.slideshare-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.slideshare-btn{
  border: 1px solid black;
  border-radius: 6px;
  background-color: #fbbf24;
  color: black;
  padding: 8px 5px;
  font-size: 14px;
  display: inline-block;
  transition: all 0.4s ease;
  cursor: pointer;
}

/* ========================================
   Table Layout
======================================== */
/* Outer container to constrain layout */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 16px;
  background-color: #ffffff; /* table base background */
  color: #333333; /* text color */
}

table td, table th {
  border: 1px solid #000;
  padding: 8px;
  text-align: left;
}

table th {
  background-color: #e0e0e0; 
  color: #000000; 
}

table tr:nth-child(even) {
  background-color: #f9f9f9; 
}

table tr:hover {
  background-color: #dbeaff; 
}

.table-scroll-container {
  overflow-x: auto;
}

@media (max-width: 768px) {
  table {
    margin-top: 15px;
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }

  table td, table th {
  border: 1px solid #000000;
  padding: 5px;
  text-align: left;
}
}


/* ========================================
   Top Author Section
======================================== */

.content article div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* ========================================
   Author Section
======================================== */

.content-author {
  width: 100%;
  padding: 12px;
  background-color: #ffffff;
}

.author-container {
  max-width: 1024px;
  margin: 0 auto;
  background-color: #0ea5e9; /* sky-500 */
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.author-title {
  font-size: 1.875rem; /* text-3xl */
  text-align: center;
  color: #ffffff;
  margin-bottom: 20px;
}

.author-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.author-logo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  padding: 4px;
  object-fit: cover;
}

.author-text {
  padding: 0 20px;
  font-size: 1.125rem; /* text-lg */
  color: #ffffff;
  text-align: center;
  max-width: 700px;
}

@media (min-width: 1024px) {
  .author-inner {
    flex-direction: column; /* Could be row, but kept as column as per your JSX */
  }
}
 
/* ========================================
   Comment Section
======================================== */

.comment {
      background-color: #ffffff;
      padding-top: 40px;
      padding-bottom: 0;
       margin: auto;
      max-width: 700px;
      width: 100%;
      border-radius: 8px;
      box-shadow: 0 0 4px 6px rgba(0, 0, 0, 0.1);
      text-align: center;
    }

    .comment form {
      width: 100%;
      padding: 20px;
    }

    .comment h3 {
      font-size: 1.5rem;
      color: #000;
      font-weight: 600;
    }

    .comment label {
      display: flex;
      font-size: 1.125rem;
      color: #000;
      text-align: left;
      margin-top: 16px;
    }

    input[type="text"],
    input[type="email"],
    .comment textarea {
      width: 100%;
      margin-top: 8px;
      margin-bottom: 5px;
      padding: 12px;
      font-size: 1.125rem;
      background-color: #fff;
      border: 1px solid #c0c0c0; /* border-slate-700 */
      border-radius: 4px;
      resize: vertical;
    }

    .comment textarea {
      height: 100px;
    }

    .comment p {
      font-size: 0.875rem;
      color: #444;
      margin-top: -12px;
      margin-bottom: 20px;
      text-align: left;
    }

    .comment-button {
      width: 100%;
      height: 48px;
      background-color: #fbbf24;
      padding: 12px;
      font-size: 1.25rem;
      font-weight: 500;
      color: black;
      cursor: pointer;
      border: none;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transition: background-color 0.3s ease, color 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 20px;
    }

     .comment-button:hover {
      background-color: #000;
      color: white;
    }
