@import url("https://fonts.cdnfonts.com/css/solaimanlipi");

/* ====================================
   1. Root Variables
   ==================================== */
:root {
  --text-color: #030202;
  --primary-color: #1f1f1f;
  --bg-color: #ffffff;
  --bg-color-light: #e0e0e0;
  --bg-color-gray: #f8f9fa;
  --color-blue-deep: #0e4f97;
  --color-blue-dark: #202d52;
  --color-blue: #0d6efd;
  --color-gray: #333339;
  --color-gray-light: #e5e5e5;
}

/* ====================================
   2. Global Resets & Base Styles
   ==================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "SolaimanLipi", sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  margin: 0 auto;
}

img.img {
  width: 100%;
  padding: 5px;
  height: auto;
  display: block;
  object-fit: cover;
}

img.logo {
  width: 7.5%;
  object-fit: contain;
  object-position: left center;
}

a.link {
  text-decoration: none;
  color: var(--text-color);
  display: block;
  transition: color 0.3s;
}

a.link:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
}

h3,
h4 {
  color: var(--color-gray);
}

.m-block-md {
  margin-block-end: 20px;
}

.section_title {
  border-left: 4px solid var(--color-blue);
  padding-inline-start: 18px;
  margin-block-end: 18px;
}

/* ====================================
   3. Typography
   ==================================== */
h3 {
  font-size: 19px;
}

.nav-link {
  font-size: 23px;
}

.search-input,
.mobile-search-input {
  font-size: 16px;
}

.search-btn {
  font-size: 18px;
}

.hamburger,
.close-menu {
  font-size: 24px;
}

.mobile-nav-link {
  font-weight: 500;
  font-size: 18px;
}

.title_type_1 {
  font-size: 43px;
  font-weight: 600;
  line-height: 1.4;
}

.section_title,
.section_title .link {
  font-size: 25px;
  font-weight: 600;
}

.text_type_1 {
  font-size: 25px;
  line-height: 1.5;
}

a.link {
  font-size: 20px;
  font-weight: 500;
  .text_type_1 {
    font-size: 20px;
  }
}

.news_list_1_title {
  font-size: 22px;
}

.footer_copyright {
  font-size: 14px;
}

.icon {
  font-size: 20px;
}

.tag .link {
  font-size: 19px;
  &:hover{
    text-decoration: none;
  }
}

/* Responsive Typography Adjustments */
@media (max-width: 968px) {
  .title_type_1 {
    font-size: 28px;
  }
  .text_type_1 {
    font-size: 15px;
  }
  img.logo {
  width: 15%;
}
}

@media (max-width: 767px) {
  .news_list_1_title {
    font-size: 18px;
  }
  .title_type_1 {
    font-size: 24px;
  }
  .text_type_1 {
    font-size: 19px;
    line-height: 1.7;
  }
  .link {
    font-size: 14px;
  }
  img.logo {
  width: 20%;
}
}

@media (max-width: 480px) {
  .news_list_1_title {
    font-size: 17px;
  }
  .title_type_1 {
    font-size: 20px;
    line-height: 1.3;
  }
  .text_type_1 {
    font-size: 14px;
    line-height: 1.6;
  }
  .link {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 319px) {
  .title_type_1 {
    font-size: 18px;
  }
  .text_type_1 {
    font-size: 13px;
  }
  .link {
    font-size: 12px;
  }

   img.logo {
  width: 35%;
}
}

/* ====================================
   4. Layout Grids
   ==================================== */
.grid_layout_1 {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 0.6fr;
  grid-template-rows: 570px;
  align-items: stretch;
  gap: 25px;
}

.grid_layout_2 {
  display: grid;
  grid-template-columns: 0.5fr 1fr 0.5fr;
  align-items: stretch;
  gap: 25px;
}

.grid_layout_3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 25px;
}

.grid_layout_4 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  gap: 25px;
}
.grid_layout_5 {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: stretch;
  gap: 25px;
}

/* Grid Responsive */
@media (max-width: 968px) {
  .grid_layout_1 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-items: start;
  }

  .grid_layout_2 {
    grid-template-columns: 0.5fr 1fr;
    align-items: start;
  }

  .grid_layout_2 > *:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .grid_layout_2 > *:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .grid_layout_2 > *:nth-child(3) {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .grid_layout_3,
  .grid_layout_4 {
    display: flex;
    flex-direction: column-reverse;
  }
  .grid_layout_5 {
    display: flex;
    flex-direction: column;
    .left {
      order: 2;
    }
    .center {
      order: 1;
    }
    .right {
      order: 3;
    }
  }
}

@media (max-width: 767px) {
  .grid_layout_1,
  .grid_layout_2 {
    gap: 5px;
  }

  .grid_layout_2 {
    display: flex;
    flex-direction: column;
  }

  .grid_layout_2 .news_cards {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
  }

  .grid_layout_3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid_layout_1,
  .grid_layout_2 {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .grid_layout_2 .news_cards {
    flex-direction: column;
    gap: 10px;
  }

  .grid_layout_3 {
    grid-template-columns: 1fr;
  }
}

/* ====================================
   5. Spacing (Padding & Margin)
   ==================================== */
section {
  max-width: 1390px;
  padding-inline: 15px;
  margin: 0 auto;
}
.section_footer {
  padding-block: 20px;
}
.divider {
  padding-block: 10px 0;
  border-top: 2px solid var(--color-gray-light);
}
img.img:not(.logo) {
  margin-block-end: 20px;
}

.title_type_1 {
  padding-block-end: 10px;
  padding-inline: 10px;
}

.details_content .title_type_1 {
  padding-block-end: 35px;
}

.banner {
  padding-inline-start: 20px;
}

.text_type_1 {
  padding-inline: 10px;
}

.text_type_1:not(:last-child) {
  padding-block-end: 10px;
}

.navbar {
  padding: 15px;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  padding: 8px 0;
}

.search-container {
  padding: 8px 15px;
}

.mobile-menu {
  padding: 80px 20px 20px;
}

.mobile-nav-item {
  margin-bottom: 15px;
}

.mobile-nav-link {
  padding: 10px 15px;
}

.mobile-search {
  padding: 10px 15px;
  margin-bottom: 20px;
}

.news_list_1_title {
  padding: 12px 20px;
}

.news_list_1 > .news_list_1_item {
  padding: 18px 20px;
}

.news_list_1_item {
  padding: 10px;
}

.section_two .link {
  padding: 20px;
}
.section_two .link:first-child {
  padding-inline-start: 40px;
}

.section_two {
  margin-block-start: 30px;
  padding-block: 30px;
}

.section_three .news_cards .news_cards_item {
  padding-block: 10px;
}

.news_list_2_item {
  padding-block: 10px 10px;
  border-bottom: 2px solid var(--color-gray-light);
}

.news_list_2_item:first-child,
.news_list_2_item:last-child {
  padding-block: 10px 0;
  border-bottom: 0;
}

.section_seven .news_cards_item .news_list_1_item {
  padding-block: 10px;
  padding-inline: 0;
}

.footer_content {
  padding-block: 20px;
}

.footer_text {
  padding-block-start: 25px;
}

.footer_links {
  padding-block: 15px;
}

.footer_links .link:not(:last-child) {
  padding-right: 10px;
}

.footer_copyright {
  padding-block: 10px;
}

.icon.link i {
  padding: 2px;
}

/* Small Device Spacing Adjustments */
@media (max-width: 767px) {
  section {
    padding-inline: 12px;
    padding-block: 15px;
  }

  .navbar {
    padding: 15px 12px;
  }
  .details_content .title_type_1 {
    padding-block-end: 25px;
  }
  .news_list_1_title {
    padding: 10px 15px;
  }

  .news_list_1_item {
    padding: 15px 18px;
  }

  .news_list_1 > .news_list_1_item {
    padding: 10px 0;
  }

  .section_two .link {
    padding: 10px 0;
  }
  .section_two .link:first-child {
    padding-inline-start: 0px;
  }
}

@media (max-width: 480px) {
  section {
    padding-inline: 10px;
    padding-block: 10px;
  }
  .details_content .title_type_1 {
    padding-block-end: 15px;
  }
  .news_list_1_title {
    padding: 10px 12px;
  }

  .news_list_1_item {
    padding: 13px 15px;
  }

  .news_list_1 > .news_list_1_item {
    padding: 6px 0;
  }
}

@media (max-width: 319px) {
  section {
    padding-inline: 8px;
  }

  .news_list_1_item {
    padding-block: 12px;
  }
}

.pt-none {
  padding-block-start: 0 !important;
}

/* ====================================
   6. Header & Navigation
   ==================================== */
header {
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 1400px;
}

.logo-container {
  display: contents;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.search-container {
  display: flex;
  align-items: center;
  background: #f1f3f4;
  border-radius: 24px;
  width: 300px;
  transition: all 0.3s;
}

.search-container:focus-within {
  background: white;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
}

.search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #5f6368;
}

.hamburger {
  display: none;
  cursor: pointer;
  color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.4s ease;
  z-index: 1100;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav {
  list-style: none;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text-color);
  display: block;
  border-radius: 8px;
  transition: background 0.3s;
}

.mobile-nav-link:hover {
  background: #f1f3f4;
  color: var(--primary-color);
}

.mobile-search {
  display: flex;
  background: #f1f3f4;
  border-radius: 24px;
}

.mobile-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  color: var(--text-color);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
  z-index: 1050;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Nav Responsive */
@media (max-width: 992px) {
  .search-container {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .search-container {
    width: 200px;
  }
}

/* ====================================
   7. Section One (Banner + Latest News + FB)
   ==================================== */
.banner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.banner_image {
  width: 100%;
  overflow: hidden;
}

.news_list_1 {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news_list_1_items {
  border-left: 1px solid var(--color-gray-light);
  flex: 1;
  overflow-y: auto;
  max-height: 480px;
  padding-top: 30px;
  scrollbar-width: thin;
  scrollbar-color: #999 #f1f1f1;
}

.news_list_1_items::-webkit-scrollbar {
  width: 6px;
}

.news_list_1_items::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.news_list_1_items::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
}

.news_list_1_items::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.news_list_1_title {
  background: var(--color-blue-deep);
  color: var(--bg-color);
  text-align: center;
}

.news_list_1_title p {
  margin: 0;
}

.news_list_1_item {
  border-bottom: 1px solid var(--color-gray-light);
  transition: background 0.3s;
}

.news_list_1_item:hover {
  background: var(--bg-color-gray);
}

.news_list_1_item:last-child {
  border-bottom: none;
}

.fb_weight {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

#fb-iframe {
  width: 100% !important;
  height: 550px !important;
  border: none;
}

@media (max-width: 767px) {
  #fb-iframe {
    height: 600px !important;
  }
}

@media (max-width: 968px) {
  .news_list_1 {
    order: 2;
    overflow-y: visible;
    align-self: start;
  }

  .fb_weight {
    order: 3;
  }
}

/* ====================================
   8. Section Two (Breaking/Featured Links)
   ==================================== */
.section_two {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background-color: var(--bg-color-gray);
  z-index: 3;
}

.section_two .link:not(:last-child) {
  border-right: 2px solid var(--color-blue);
}

.section_two a h4 {
  line-height: 1.5;
}

@media (max-width: 599px) {
  .section_two {
    grid-template-columns: 1fr;
  }

  .section_two > .link {
    border-right: 0 !important;
    border-bottom: 1px solid var(--color-blue);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .section_two > .link {
    border-right: 0 !important;
    border-bottom: 2px solid var(--color-blue);
  }
}

/* ====================================
   9. Other Sections
   ==================================== */
.section_three .news_cards .news_cards_item {
  display: flex;
  flex-direction: column;
}

/* ====================================
   10. Footer
   ==================================== */
.footer_content {
  margin-block-start: 30px;  ;
  border-top: 1px solid var(--color-gray-light);
  border-bottom: 1px solid #c9c9c9;
  background-color: var(--bg-color-gray);
}

.footer_content .img.logo {
  width: 200px;
  margin: 0 auto;
}

.footer_text {
  display: block;
  text-align: center;
}

.footer_links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  background-color: var(--bg-color-gray);
}

.footer_links .link:not(:last-child) {
  border-right: 1px solid var(--color-gray);
}

.footer_copyright {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--color-blue-dark);
  color: var(--bg-color);
}

/* ====================================
   11. Details Page Styles
   ==================================== */

/* Make FB widget taller on details page only */

.icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-color);
  text-decoration: none;
  transition: transform 0.2s;
}

.icon:hover {
  transform: scale(1.1);
}

.facebook {
  background: #1877f2;
}

.twitter {
  background: #000000;
  color: #fff;
}

.whatsapp {
  background: #25d366;
}

.messenger {
  background: #0084ff;
}

.icon.link {
  border-radius: 0;
  background: none;
  color: var(--text-color);
}

.icon.link i {
  border: 2px solid var(--text-color);
}

.details_tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  margin-block: 10px;
  h4 {
    font-size: 23px;
    margin-inline-end: 10px;
  }
}

.tag .link {
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  background-color: #eee;
  padding: 6px 8px;
  margin: 6px;
  display: inline-block;
}

/* Facebook Widget Base */
.fb_weight {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

#fb-iframe {
  width: 100% !important;
  border: none;
}

/* details page 2.1  */

.grid_layout_2.details_page {
  max-height: 100vh;
  overflow-y: scroll;
  scrollbar-width: none;
  .news_list_1 {
    height: fit-content;
    padding: 7px;
    border-radius: 7px;
    news_list_1_items {
      overflow: hidden;
    }
  }
  .details_content .title_type_1 {
    padding-block-end: 0px;
  }
  .details_tags {
    .tag {
      .link {
        font-size: 20px;
      }
    }
  }
}
.details_date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block-start: 10px;
  padding-block-end: 20px;
  .social-icons {
    .icon:last-child {
      margin-top: 4px;
    }
  }
  .times {
    display: flex;
    h4 {
      padding-block-end: 0px;
    }

    .text_type_1 {
      padding-inline: 0px;
      padding-inline-start: 10px;
      font-size: 21px;
    }
  }
}
.left {
  .times {
    margin-block-start: 10px;
    padding-block-start: 20px;
    background-color: var(--bg-color-gray);
    flex-direction: column;
    align-items: flex-start;
    .title_type_1{
      padding-inline: 0px;
      font-size: 26px;
    }
    .text_type_1 {
      font-size: 20px;
      padding-block-end: 6px;
      padding-inline: 0px;
    }
  }
  .social-icons {
    background-color: var(--bg-color-gray);
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding-block: 20px;
    .icon:last-child {
      padding-block-start: 5px;
    }
  }
  .more_news {
    margin-block-start: 10px;
    .more_news_items {
      max-height: max-content;
      display: flex;
      flex-direction: column;
      gap: 15px;
      .more_news_item {
        border-bottom: 1px solid var(--color-gray-light);
        padding-block-end: 10px;
      }
    }
  }
}
.right {
  .news_list_1 {
    margin-block-start: 40px;
    .news_list_1_items {
      border: 0px;
      max-height: max-content;
    }
  }
}
