/*
 Theme Name: DakilaSoft Divi
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: DakilaSoft Divi Theme
 Author: Elegant Themes
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

html,
body {
  overflow-x: hidden;
}

/*remove search icon*/
#et_top_search {
  display: none;
}

/*HEADER TEST STYLES*/
#main-header {
  background: #121212;
  box-shadow: none;
}

#main-header .container {
  max-width: 100%;
  width: 95%;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

#et-top-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

#top-header {
  display: none;
}

#top-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}
/*link texts*/
#top-menu li a {
  color: #ffffff;
}

/*the active link*/
#top-menu li.current-menu-item a {
  color: #ffa000;
}

#top-menu li:last-child {
  margin-left: auto;
}

.contact-column-1,
.contact-column-2 {
  padding-left: 300px;
}

.our_story_text_about {
  text-decoration: underline;
  text-decoration-color: #fbbc05;
}

.half {
  display: inline;
  justify-content: baseline;
}

.contact-page {
  display: flex;
  align-items: end;
  justify-content: end;
  text-align: end;
}

/*mobile nav bar*/
@media (max-width: 980px) {
  #main-header .container {
    display: block;
    width: 95%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .logo_container {
    float: left;
  }

  #logo {
    max-height: 45px;
    height: auto;
  }

  #et-top-navigation {
    float: right;
    padding-top: 10px;
  }

  #top-menu {
    display: none;
  }

  .mobile_menu_bar {
    display: block;
    color: #ffa000;
    font-size: 28px;
  }

  .mobile_menu_bar:before {
    color: #ffa000 !important;
  }

  #main-header {
    padding: 10px 0;
  }
}

/* ==================================================
   RESPONSIVE LAYOUT (GLOBAL)
================================================== */

@media (max-width: 768px) {
  .text-img {
    display: flex;
  }

  .hero-section {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .prc-section,
  .contact-column-1,
  .contact-column-2 {
    display: flex;
    flex-direction: column-reverse;
  }

  /*Indiv Service, web design*/
  .about-web-design-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-web-design-row h1,
  .about-web-design-row p {
    text-align: center;
  }

  .about-web-design-row img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
  }
}

/**CONTACT FORMS GENERAL**/
/* ==================================================
   FOR CONTACT FORM
================================================== */

/* ROW LAYOUT */
.for-contact-form .row {
  display: flex;
  justify-content: flex-start;
  column-gap: 30px;
}

.for-contact-form .row:first-of-type {
  margin-bottom: 20px;
}

.for-contact-form .half {
  flex: 1;
}

.for-contact-form .full {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* ALL INPUTS */
.for-contact-form input[type="text"],
.for-contact-form input[type="email"],
.for-contact-form input[type="tel"],
.for-contact-form textarea {
  width: 100%;
  padding: 18px;
  background: #ffffff;
  border: none;
  border-radius: 6px;
  box-shadow: 0 6px 15px rgba(153, 153, 153, 0.4);
  font-size: 16px;
  font-family: Roboto;
  outline: none;
  box-sizing: border-box;
}

.for-contact-form textarea {
  resize: none;
}

/* SUBMIT BUTTON */
.for-contact-form .submitbtn {
  width: 100%;
}

.for-contact-form input[type="submit"] {
  width: 100%;
  padding: 16px 0;
  font-size: 18px;
  font-family: Audiowide;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  background-image: linear-gradient(to bottom, #fbbc05, #ffa000);
}

.for-contact-form input[type="submit"]:focus {
  outline: none;
  box-shadow: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .for-contact-form .row {
    flex-direction: column;
    row-gap: 20px;
  }

  .for-contact-form .half {
    width: 100%;
  }
}

/* =====================================
   PRC CONTACT FORM
===================================== */

/* ROW LAYOUT */
.prc-contact-forms .row {
  display: flex;
  justify-content: flex-start;
  column-gap: 30px;
}

.prc-contact-forms .row:first-of-type {
  margin-bottom: 20px;
}

.prc-contact-forms .half {
  flex: 1;
}

.prc-contact-forms .full {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* INPUTS */
.prc-contact-forms input[type="text"],
.prc-contact-forms input[type="email"],
.prc-contact-forms input[type="tel"],
.prc-contact-forms textarea {
  width: 100%;
  padding: 18px;
  background: #ffffff;
  border: none;
  border-radius: 6px;
  box-shadow: 0 6px 15px rgba(153, 153, 153, 0.4);
  font-size: 16px;
  font-family: Roboto;
  outline: none;
  box-sizing: border-box;
}

/* TEXTAREA */
.prc-contact-forms textarea {
  resize: none;
}

/* SUBMIT BUTTON */
.prc-contact-forms .submitbtn {
  width: 100%;
}

.prc-contact-forms input[type="submit"] {
  width: 100%;
  padding: 16px 0;
  font-size: 18px;
  font-family: Audiowide;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  background-image: linear-gradient(to bottom, #fbbc05, #ffa000);
}

.prc-contact-forms input[type="submit"]:focus {
  outline: none;
  box-shadow: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .prc-contact-forms .row {
    flex-direction: column;
    row-gap: 20px;
  }

  .prc-contact-forms .half {
    width: 100%;
  }
}

/* ==================================================
   CONTACT PAGE CUSTOM FORM (contact-page-form)
================================================== */

/* MAIN WRAPPER */
.project-contact-form {
  padding: 0 40px;
}

.project-contact-form .wpcf7 {
  width: 100%;
}

/* ROW LAYOUT */
.project-contact-form .form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.project-contact-form .form-row.three {
  flex: 1;
}

/* FULL WIDTH ROW (Textarea Row) */
.project-contact-form .form-row.full-row {
  display: block;
  width: 100%;
}

/* INPUTS */
.project-contact-form input,
.project-contact-form textarea {
  width: 100%;
  padding: 18px;
  background: #ededed;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
}

/* TEXTAREA */
.project-contact-form textarea {
  min-height: 220px;
  resize: none;
}

.project-contact-form .form-row.full-row textarea {
  width: 100%;
  min-height: 260px;
  border-radius: 10px;
}

/* SUBMIT BUTTON */
.project-contact-form .submit-wrapper {
  margin-top: 40px;
}

.project-contact-form input[type="submit"] {
  width: 100%;
  padding: 20px 0;
  font-size: 22px;
  font-family: Audiowide;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(to right, #fbc02d, #f57c00);
}

/* REMOVE FOCUS OUTLINE */
.project-contact-form input:focus,
.project-contact-form textarea:focus {
  outline: none;
  box-shadow: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .project-contact-form {
    padding: 0 20px;
  }

  .project-contact-form .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .project-contact-form .form-row.three .form-col {
    width: 100%;
  }

  .project-contact-form textarea {
    min-height: 200px;
  }
}

/**
---------PRC CONTACT FORMS-----------
**/

.prc-contact-forms .wpcf7 form {
  width: 100%;
}

.prc-contact-forms input[type="text"],
.prc-contact-forms input[type="email"] {
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 20px;
  background: white;
  border: 2px solid #6c63ff;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
}
.prc-contact-forms input::placeholder {
  color: #9e9e9e;
}

.prc-contact-forms input[type="submit"] {
  width: 100%;
  padding: 16px 0;
  font-size: 20px;
  font-family: Audiowide;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;

  background: #6a5acd;
}

.prc-contact-forms input:focus {
  outline: none;
  box-shadow: none;
}

/*PRC PAGE Blurb button*/
.case-prc-blurb a {
  color: #ffffff;
  background: #ffa000;
  border: 2px solid #ffa000;
  padding: 0.7em 1.3em;
  margin-top: 20px;
  border-radius: 50px;
  text-transform: capitalize;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  width: 100%;
  text-align: center;
  font-weight: bold;
}

.case-prc-blurb {
  padding: 15px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .final-prc-section,
  .final-prc-section h1,
  .final-prc-section p {
    text-align: center;
    justify-content: center;
    align-items: center;
  }
}

/*PRC Email optin*/

.email-prc-section,
.email-prc-section h1 {
  align-items: center;
  text-align: center;
  justify-content: center;
}

/*----------
newsletter template styles
------------*/

.newsletter-header {
  background-image: url("http://localhost/wp-content/uploads/2026/02/Opening_Banner_AT_ver3-scaled.png");
  background-size: cover;
  background-position: center;
  height: 400px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.newsletter-header h1 {
  font-family: "Audiowide", sans-serif;
  font-size: 48px;
  color: white;
  letter-spacing: 4px;
}

/* FEATURED SECTION */

.featured-section {
  background-image: url("http://localhost/wp-content/uploads/2026/02/news-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  width: 100%;
  padding: 80px 0;
}

.newsletter-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.featured-grid {
  display: grid;

  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 350px auto;
  gap: 20px;

  grid-template-areas:
    "item1 item2 item2"
    "item1 item3 item4";
}

.item-1 {
  grid-area: item1;
}
.item-2 {
  grid-area: item2;
}
.item-3 {
  grid-area: item3;
}
.item-4 {
  grid-area: item4;
}

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: 100%;
  background: #000;
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-card:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(42, 41, 41, 0.8),
    rgba(31, 30, 30, 0)
  );

  backdrop-filter: blur(2.5px);
  color: white;
}

.overlay h4 {
  color: white;
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.featured-excerpt {
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.4;
  opacity: 0.9;
}

/* RESPONSIVE CODES */

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;

    grid-template-areas:
      "item1"
      "item2"
      "item3"
      "item4";
  }

  .item-4 {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .news-main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mustreads-grid {
    grid-template-columns: 1fr;
  }

  .mustread-list {
    gap: 15px;
  }

  .mustread-item {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
  }

  .mustread-thumb {
    width: 110px;
    height: 90px;
    flex-shrink: 0;
  }

  .mustread-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  .mustread-item p {
    font-size: 13px;
  }

  .currentnews-grid {
    display: grid;
    grid-template-columns: 1fr !important;
  }

  /* Sidebar spacing */
  .sidebar {
    gap: 15px;
  }

  .sidebar-card {
    margin-top: 0;
    margin-bottom: 20px;
  }

  /*socmeds section*/
  .text-wrap {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 18px;
  }

  .current-news-title,
  .mostviewed-title {
    font-size: 16px;
  }

  .read-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .text-wrap {
    width: 100%;
  }
}

/* MAIN LAYOUT */

.news-main-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

/* SECTION HEADERS */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: Audiowide, sans-serif;
  color: #f4a62a;
  font-size: 22px;
  margin-top: 10px;
  margin-left: 16px;
}

.section-header a {
  font-size: 14px;
  color: #888;
  text-decoration: none;
}

.showmore-text {
  text-decoration: dashed;
  text-decoration-color: #888;
  margin-right: 10px;
}

/* MUST READS */

/*img force size*/
.mustread-thumb {
  width: 150px;
  height: 130px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
}

.mustread-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-thumb {
  position: relative;
  overflow: hidden;
}

.featured-thumb img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.read-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: #ffa000;
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s;
}

.read-btn:hover {
  background: #d98f00;
}

div.mustreads-section {
  background-color: white;
  margin-top: 30px;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

div.mustreads-section,
div.sidebar-card,
div.currentnews-section {
  border: 3.5px solid #c9c9c9;
  border-radius: 20px;
  background-color: white;
}

.mustreads-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  padding: 15px;
  border-radius: 16px;
}

.mustread-featured img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
}

.meta-author,
.meta-date {
  font-size: 14px;
  margin-right: 3.5px;
  color: #737373;
}

.meta-author::before {
  content: "👤";
}

.meta-date::before {
  content: "📅";
}

.mustread-featured h3 {
  margin: 4px 0;
  font-weight: bold;
}

.mustread-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mustread-item {
  display: flex;
  gap: 10px;
}

.mustread-item h4 {
  font-size: 14px;
  font-weight: bold;
}

.mustread-item p {
  font-size: 11px;
  line-height: 17px;
}

.meta-date {
  font-size: 12px;
}

.mustread-item img {
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* CURRENT NEWS */

.currentnews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.news-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 4px;
}

.news-card h4 {
  margin: 6px 0;
}

div.currentnews-section {
  margin-top: 30px;
  margin-bottom: 70px;
  background-color: white;
  padding: 20px 30px 20px 20px;
  border-radius: 20px;
}

.current-news-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.current-news-author,
.current-news-date {
  font-size: 12px;
  color: #737373;
  padding-top: 0px;
  margin-top: 0px;
}

.current-news-author::before {
  content: "👤";
}

.current-news-date::before {
  content: "📅";
}

.current-news-excerpt {
  font-size: 12px;
  column-rule-color: #000000;
}

/* SIDEBAR */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  margin-top: 29px;
  padding: 20px;
  border-radius: 16px;
}

.sidebar-card h3 {
  font-family: Audiowide, sans-serif;
  color: #f4a62a;
}

.thumbs-up-icon {
  height: 20px;
  width: 20px;
}

/* CONTACT BUTTONS */

a.showmore-text {
  font-family: Inter, sans-serif;
  color: #737373;
  font-size: 12px;
  justify-content: center;

  text-decoration: underline;
  text-decoration-color: #737373;
}

.fb-wrap,
.linkedin-wrap,
.gmail-wrap {
  width: 100%;
  display: flex;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 5px;
  justify-content: flex-start;
  align-items: center;
  margin-left: -10px;
  margin-right: -8px;
  margin-bottom: 15px;
  gap: 2px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  width: 58px;
  height: 57.5px;
}

.facebook,
.linkedin,
.gmail {
  color: white;
  margin-left: 10px;
}

.facebook-text,
.fb-logo {
  background: #3b5998;
}

.linkedin-text,
.linkedin-logo {
  background: #0077b5;
}

.gmail-text,
.gmail-logo {
  background: #d93025;
}

.text-wrap {
  font-family: Audiowide, sans-serif;
  display: flex;
  align-items: center;
  flex: 1;
  height: 57.5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  padding-left: 15px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
}

.contact-logo {
  height: 24px;
  width: 24px;
}

.contact-gmail {
  width: 24px;
  height: 17px;
}

/* MOST VIEWED */

.sidebar-post {
  margin-top: 15px;
}

.sidebar-post img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 6px;
}

.mostviewed-dateauthor {
  color: #737373;
  font-size: 12px;
  padding-top: 4px;
}

.mostviewed-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.most-viewed-icon {
  height: 25px;
  width: 25px;
  margin-top: -1px;
}

.mostviewed-excerpt {
  font-size: 12px;
  color: #000000;
}

.most-viewed-header {
  margin-top: 4px;
}

/*responsive test codes*/

@media (max-width: 1024px) {
  .news-main-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mustreads-grid {
    grid-template-columns: 1fr;
  }

  .currentnews-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/*----------
posts styles
------------*/

.article-hero {
  background-image: url("http://localhost/wp-content/uploads/2026/02/news-bg.png");
  padding: 80px 20px 40px;
  text-align: center;
  color: white;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.article-main {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sidebar {
  width: 100%;
  min-width: 0;
}

.hero-container {
  max-width: 900px;
  margin: auto;
}

.category-badge {
  display: inline-block;
  color: white;
  font-size: 12px;
  font-family: Audiowide, sans-serif;
  color: white;
  font-size: 28px;
  margin-bottom: 16px;
}

.hero-title {
  color: white;
  font-size: 40px;
  margin-bottom: 20px;
  margin-top: 16px;
  font-weight: 600;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  color: white;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.post-icon {
  width: 32px;
  border-radius: 6px;
  margin-right: 4px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-image img {
  border-radius: 10px;
  width: 100%;
}

/* media query posts*/
@media (min-width: 769px) {
  .hero-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
  }

  .hero-image img {
    width: 100%;
    object-fit: cover;
  }
}

#et-main-area {
  background-color: #f0f0f0;
}

.news-content-section {
  background-color: #f0f0f0;
  max-width: 1200px;
  margin: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.headlines-wrap {
  background-color: white;
  margin-top: 30px;
  margin-left: 0px;
  margin-bottom: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding: 20px;
  border: 3.5px solid #c9c9c9;
  border-radius: 10px;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.headlines-wrap p {
  font-size: 15px;
  line-height: 1.7;
}

#news-heading {
  font-size: 24px;
  font-weight: 700;
  max-width: 70%;
  line-height: 1.4em;
}

#content-wrap {
  margin-top: 16px;
}

#news-body2 {
  margin-bottom: 20px;
}
#lower-body {
  margin-bottom: 20px;
}

.related-articles-section {
  background-color: white;
  margin-top: 30px;
  margin-left: 0px;
  margin-bottom: 20px;
  padding: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  border: 3.5px solid #c9c9c9;
  border-radius: 20px;
  width: 100%;
  max-width: 100%;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

.related-header h2 {
  color: #f5a623;
  font-size: 28px;
  font-family: Audiowide, sans-serif;
}

.showmore-text {
  font-size: 14px;
  color: #777;
  text-decoration: none;
}

.related-articles-wrapper {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.related-articles-wrapper::-webkit-scrollbar {
  display: none;
}

.related-card {
  width: 300px;
  min-width: 300px;
  flex-shrink: 0;
  background: white;
  border-radius: 12px;
  padding: 12px;
}

.related-image {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.readnow-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #f5a623;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
}

.related-meta {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.related-title {
  font-size: 18px;
  margin-top: 8px;
  margin-bottom: 0px;
  font-weight: bold;
}

.related-title a {
  text-decoration: none;
  color: black;
}

.related-excerpt {
  font-size: 10px;
  color: black;
}

.related-post-icon {
  width: 24px;
  border-radius: 3px;
  margin-right: 3px;
}

/**
media query posts
**/
.article-hero {
  padding: 28px 16px 20px;
  background-position: center top;
  background-size: cover;
}

.hero-container {
  max-width: 100%;
  padding: 0 6px;
}

.category-badge {
  font-size: 18px;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 24px;
  line-height: 1.15;
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 0 6px;
}

.hero-meta {
  gap: 12px;
  font-size: 13px;
  justify-content: center;
  padding: 0 6px;
}

.hero-image {
  margin-top: 14px;
}

/* Ensure hero image is responsive */
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Layout: single column on mobile */
.article-layout {
  display: block;
  padding: 16px;
  max-width: 100%;
  box-sizing: border-box;
}
.article-main {
  width: 100%;
}
.sidebar {
  width: 100%;
  margin-top: 20px;
}

.headlines-wrap,
.related-articles-section {
  padding: 16px;
  margin-left: 0;
  margin-right: 0;
  border-radius: 12px;
}

.related-articles-wrapper {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap; /* prevent wrapping */
  padding-bottom: 8px;
}

.related-articles-wrapper::-webkit-scrollbar {
  display: none;
}

.related-card {
  min-width: 260px;
  width: 260px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 10px;
  padding: 12px;
  box-sizing: border-box;
}

.readnow-btn,
.contact-btn,
.showmore-text {
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 10px;
  display: inline-block;
}

.headlines-wrap p {
  font-size: 15px;
  line-height: 1.7;
}
.related-title {
  font-size: 16px;
}
.related-excerpt {
  font-size: 13px;
  color: #333;
}

.headlines-wrap,
.related-articles-section {
  border-width: 2px;
}

/* ===== Tablet and up restore grid ===== */
@media (min-width: 768px) {
  .article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
  }
  .hero-title {
    font-size: 40px;
  }
  .category-badge {
    font-size: 28px;
  }
  .related-articles-wrapper {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .related-card {
    min-width: 300px;
    width: 300px;
  }
  .readnow-btn {
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (min-width: 1024px) {
  .related-articles-wrapper::-webkit-scrollbar {
    height: 10px;
    display: block;
  }
  .related-articles-wrapper {
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  }
  .related-card {
    min-width: 320px;
    width: 320px;
  }
  .article-hero {
    padding: 40px 20px 30px; /* reduce vertical space */
  }
  .hero-title {
    font-size: 32px; /* smaller headline */
  }
  .hero-meta {
    margin-bottom: 20px; /* tighten spacing */
  }
}

@media (max-width: 767px) {
  .headlines-wrap {
    padding: 12px;
    border-width: 2px;
    margin-top: 16px;
    margin-bottom: 16px;
  }
  .headlines-wrap p {
    font-size: 14px; /* slightly smaller text */
    line-height: 1.6;
  }
  .related-articles-wrapper {
    display: block; /* stack cards */
    overflow-x: visible; /* remove scroll */
  }
  .related-card {
    width: 100%; /* full width cards */
    margin-bottom: 16px;
  }
}
