/* CSS Reset: minimal, including box-sizing and removing default margin/padding */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a{
  cursor: pointer;
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Public Sans', sans-serif;
  background: #FAFBF6;
  color: #6b7280; /* neutral gray for body text */
  line-height: 1.6;
  font-size: 16px;
}
a {
  color: #1a1a1a;
  text-decoration: none;
  user-select: none;
  transition: color 0.3s ease;
}
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: none;
  padding: 0;
}

.wrapper{
  margin: 5px;
  border: 1px solid #6A6B63;
}


/* Container */
.inner-wrapper {
  max-width: 1328px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Header */
header {
  display: flex ;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 13px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #6A6B63;
}
header .logo {
  font-weight: 700;
  font-size: 20px;
  user-select: none;
  color: #111827;
}
header .logo img{
  width: 170px;
}

/* Navigation */
nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
nav a {
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 12px;
  color: #374151;
  transition: background-color 0.2s ease, color 0.3s ease;
}
nav a:hover,
nav a:focus {
  color: #f15a29;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  height: 2.5px;
  width: 20px;
  background-color: #E0592C;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: 4px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(-2px, -3px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -7px);
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.hero-text h1 {
  font-weight: 700;
  font-size: 40px;
  line-height: 42px;
  margin: 0;
  max-width: 480px;
  color: #0D0E09;
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-text h1 span {
  color: #E0592C;
}
.hero-text h1 .black-bold {
  font-weight: 900;
}
.hero-text .hero-section-subtitle {
  margin-top: 12px;
  color: #0D0E09;
  font-size: 16px;
  max-width: 420px;
  font-weight: 400;
  line-height: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-text button {
  margin: 19px auto 39px;
  background-color: #111827;
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);
  max-width: 146px;
  width: 100%;
  min-height: 51px;
  height: auto;
}
.hero-text button:hover,
.hero-text button:focus {
  background-color: #374151;
  outline: none;
}
.hero-image img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 20px;
  max-width: 328px;
}
/* Section Titles */

/* common title for whole page */
h2.post-titles {
  font-weight: 600;
  font-size: 24px;
  color: #E0592C;
  border-top: 1px solid #6A6B63;
  border-bottom: 1px solid #6A6B63;
  padding: 10px 0;
  margin-bottom: 20px;
}
h2.post-titles span.black {
  color: #111827;
}

.article-titles {
  margin: 17px 0 26px;
  display: flex;
  justify-content: space-between;
  column-gap: 8px;
}
.article-titles .title{
  color: #151925;
  font-size: 16px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: calc(100% - 20px);
}
.article-titles button {
  border-radius: 8px;
  background: #0D0E09;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);
  transition: background-color 0.3s ease;
  max-width: 135px;
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}
.article-titles button:hover,
.article-titles button:focus {
  background-color: #fff;
  outline: none;
  color: #000;
}

.featured-grid .article-titles{
  margin: 16px 0 19px;
}

/* common title for whole page --- ends */


.featured-posts{
  width: 100%;
}
.featured-main {
  grid-column: span 2;
}
.featured-main img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border-radius: 12px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* gap: 16px 16px; */
}
.featured-grid-item {
  display: flex ;
  flex-direction: column;
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.featured-grid-item img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.07);
}

/* Trending Section */
.trending-section {
  margin: 16px auto 10px;
}
.trending-section h2.post-titles{
  border-right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.trending-header {
  font-weight: 800;
  font-size: 1.5rem;
  color: #f97316;
  margin-bottom: 20px;
  position: relative;
}
.trending-slider::-webkit-scrollbar {
  display: none; 
}
.trending-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
.trending-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border-radius: 12px;
}
.slider-btn{  
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
}
.slider-btn.prev,
.slider-btn.next{
  border-radius: 52px;
  border: 1px solid #000;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);
  width: 51px;
  height: 51px;
}
.slider-btn svg {
  fill: #1a1a1a;
  width: 32px;
  height: 32px;
}
.slider-btn.prev {
  left: -20px;
}
.slider-btn.next {
  right: -20px;
}
.slider-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Contact Section */
.contact-section {
  margin-bottom: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.contact-header, .contactus-form{
  width: 100%;
}
.contact-section h2 {
  margin-bottom: 0;  
  border-bottom: 0;
  width: 100%;
  padding-bottom: 0;
}
.contact-section p {
  font-size: 16px;
  color: #000;
  font-weight: 400;
  margin-bottom: 16px;
}
.contact-section form input,
.contact-section form textarea {
  width: 100%;
  font-size: 16px;
  font-family: inherit;
  resize: none;
  color: #000;
  border: none;
  background: none;
  height: 48px;
  border-bottom: 1px solid #6A6B63;
}
.contact-section form .form-group{  
  margin-bottom: 20px;
}
.contact-section form textarea{
  padding-top: 14px;
}
.contact-section form input:focus,
.contact-section form textarea:focus {
  outline: none;
}
.contact-section form input::placeholder,
.contact-section form textarea::placeholder {
  color: #000;
}
.contact-section form button {
  border-radius: 8px;
  background: #E0592C;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);
  max-width: 328px;
  min-height: 64px;
  color: #FFF;
  font-size: 20px;
  font-weight: 700;
  width: 100%;
  text-transform: uppercase;
  cursor: pointer;
  margin: 18px auto;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.g-recaptcha {
  margin: 15px 0px;
}
#g-recaptcha-response {
  display: block !important;
  position: absolute;
  margin: -50px 0 0 0 !important;
  z-index: -999999;
  opacity: 0;
}
.error-text-msg {
  font-size: 16px;
  color: #ea7979;
  font-weight: 300;
  padding-top: 0;
  display: block;
}

/* Footer */
.footer {
  padding: 20px 0px;
  border-top: 1px solid #6A6B63;
}
.footer ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.footer ul li {
  list-style: none;
  text-decoration: none;
  color: #6A6B63;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 26px;
}
.footer ul li a {
  color: inherit;
}
.footer ul li:hover {
  text-decoration: underline;
}
.footer ul li::after {
  content: "|";
  margin: 0 3px;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
}
.footer ul li:last-child::after {
  display: none;
}

@media (min-width: 768px) {

    .wrapper{
      margin: 17px;
    }

    /* navbar */
    nav a{
      font-size: 16px;
      padding: 6px 15px;
    }
    nav a:last-child{
      padding-right: 0;
    }

    /* header + navbar */
    header{
      padding: 26px 0 25px;
    }

    /* hero section */
    .hero{
      flex-direction: row-reverse;
      justify-content: space-between;
      flex-wrap: nowrap;
      margin: 48px auto;
      align-items: unset;
    }
    .hero .hero-image, .hero .hero-text {
      width: 100%;
    }
    .hero-text h1{
      font-size: 80px;
      line-height: 88px;
      margin-top: 22px;
    }
    .hero-text .hero-section-subtitle{
      font-size: 24px;
      line-height: 31px;
      margin-top: 24px;
    }
    .hero-text button{
      max-width: 198px;
      min-height: 64px;
      font-size: 20px;
      margin: 48px auto 39px;
    }
    .hero-image img{
      max-width: 670px;
      min-height: 501px;
      height: 501px;
      margin: 0;
    }

    /* feature post and articles */
    .featurepost-section{
        display: flex;
        justify-content: center;
        border-top: 1px solid #6A6B63;
        padding: 48px 0 10px;
    }
    h2.post-titles{
        width: 76%;
        font-size: 65px;
        border-right: 1px solid #6A6B63;
        border-top: 0;
        border-bottom: 0;
        padding: 0;
        line-height: 88px;
    }
    .featured-posts{
        max-width: 793px;
        padding-left: 10px;
    }
    .featured-main img{
        min-height: 469px;
    }

    .featured-grid{
        gap: 16px 16px;
    }

    .article-titles .title{
        font-size: 28px;
        line-height: 30px;
        margin-bottom: 5px;
    }
    .article-titles{
        column-gap: 10px;
        flex-wrap: wrap;
    }
    .article-titles button{
        max-width: 166px;
        min-height: 64px;
        font-size: 20px;
        line-height: normal;
    }

    .featured-grid-item img{
        max-width: 373px;
        height: 254px;
    }

    .desc-row.article-titles .title{
        font-size: 20px;
        line-height: 24px;
    }
    .desc-row.article-titles button{
        max-width: 130px;
        min-height: 51px;
        font-size: 16px;
    }

    /* trending section */
    .trending-section{
      margin: 41px auto 32px;
    }
    .trending-section h2.post-titles{
      margin: 0 auto 49px;
      padding: 31px 0;
      border-top: 1px solid #000;
      border-bottom: 1px solid #000;
    }
    .trending-slider-wrapper {
        position: relative;
    }
    .trending-slider {
        display: flex;
        gap: 48px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding-bottom: 12px;
        scrollbar-width: none; /* Firefox */
    }
    .trending-card:not(:last-child)::after {
      content: '';
      width: 1px;
      height: 100%;
      position: absolute;
      top: 0;
      right: -27px;
      border: 1px solid #6A6B63;
    }
    .trending-section .article-titles{
      margin: 24px 0 26px;
    }
    .trending-card img{
        max-width: 373px;
        height: 254px;
        width: 373px;
    }
    .trending-desc-row.article-titles .title{
        font-size: 20px;
        line-height: 25px;
    }
    .trending-desc-row.article-titles button{
        max-width: 130px;
        min-height: 51px;
        font-size: 16px;
        background: unset;
        border: 1px solid #000;
        color: #000;
        box-shadow: none;
    }
    .trending-desc-row.article-titles button:hover{
      background: #000;
      color: #fff;
    }

    /* contact section */
    .contact-section{
        flex-direction: unset;        
        border-top: 1px solid #6A6B63;
        column-gap: 46px;
        padding-top: 48px;
    }
    .contact-section h2{
        font-size: 80px;
        line-height: 88px;
        border: 0;
        width: 100%;
    }
    .contact-section p{
        font-size: 20px;
        margin-top: 4px;
    }
    .contact-form{
        max-width: 494px;
        font-size: 20px;
    }
    .contact-section form input, 
    .contact-section form textarea{
      font-size: 20px;
      height: 51px;
    }
    .contact-section form .form-group{  
      margin-bottom: 28px;
    }
    .contact-section form button,
    .dp-parent.dp-parent-hor-center{
        width: 100%;
        max-width: 100%;
        min-height: 66px;
        margin: 7px auto;
    }
    .contact-section form button:hover{
        background: #ca3f11;
    }

    /* footer */
    .footer ul li{
      font-size: 15px;
    }
}

@media (min-width: 1200px) {
  .inner-wrapper{
    padding: 0;
  }  

  .article-titles{
    flex-wrap: nowrap;
  }
  .article-titles .title{
    margin-bottom: 0;
  }

  /* feature section */
  h2.post-titles{
    font-size: 80px;
  }
  .featurepost-section{
    column-gap: 39px;
  }
  .featurepost-section h2.post-titles{
    width: 40%;
  }
  .featured-posts{
    padding: 0;
  }
  .featured-grid{
    gap: 16px 50px;
  }  
  .featured-grid-item:nth-child(odd)::after {
    content: '';
    width: 1px;
    height: 100%;
    position: absolute;
    top: 0;
    right: -27px;
    border: 1px solid #6A6B63;
  }

  .desc-row.article-titles .title{
    font-size: 28px;
    width: 398px;
    line-height: 30px;
  }
  .featured-grid .desc-row.article-titles .title{
    font-size: 20px;
    width: auto;
  }

  .desc-row.article-titles button{
    max-width: 166px;
    min-height: 64px;
    font-size: 20px;
    line-height: normal;
  }
  .featured-grid .desc-row.article-titles button{
    max-width: 130px;
    min-height: 51px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
    .hideinmobile{
      display: none !important;
    }

    /* navbar */
    nav {
        position: absolute;
        top: 56px; /* below header */
        left: 0;
        right: 0;
        background: #ffffff;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        padding: 0 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        opacity: 0;
        pointer-events: none;
        transform-origin: top center;
        transform: scaleY(0.95);
        transition:
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }
    nav.open {
        max-height: 320px; /* enough for 4 menu items with spacing */
        opacity: 1;
        pointer-events: auto;
        transform: scaleY(1);
        padding: 16px 24px 24px 24px;
        width: 97%;
        margin: 0 auto;
    }
    nav a:last-child {
        margin-bottom: 0;
    }
    .hamburger {
        display: flex;
    }

    /* feature post */
     .featured-posts {
        grid-template-columns: 1fr;
    }
    .featured-main {
        grid-column: span 1;
    }
    .featured-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .slider-btn.prev {
        left: 8px;
    }
    .slider-btn.next {
        right: 8px;
    }
}

/* recaptcha CSS */
@media screen and (max-width: 359px) {
  #recaptcha-container{
    transform: scale(0.88);
    transform-origin: 0 0;
  }
}
    


