/* 
Template Name:BBC NEWS website Cloun. 
Author: Sajedul Islam 
Description:
01.Core Keywords:
  BBC News: "BBC News,""BBC news updates,""BBC breaking news"
  News: "latest news,""world news,""news headlines"


Index====:
  01.Common
  02.Header
  03.
  04.
  05.
  06.
  07.

 */
/* Google Font Link Here */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Common Css Start Here */

/* Color Variable  Start Here*/
:root {
  --text-color: #505153;
  --hover-color: #3498db;
  --white-color: #ffffff;
  --balck-color: #0D0D0D;
  --gray-color: #e1e2e2;
  --red-color: #EA2027;
  --balck-red: #b80000;
}

/* Color Variable  End Here*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 16px;
  font-weight: 400;
  color: var(--text-color);
}

img {
  max-width: 100%;
  vertical-align: middle;
}

a {
  text-decoration: none;
  color: var(--text-color);
  text-transform: capitalize;
}

.container {
  width: 1170px;
  margin: 0 auto;
}

.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.text-center {
  text-align: center;
}

.pt-10 {
  padding-top: 10px;
}

.pb-10 {
  padding-bottom: 10px;
}

.pt-40 {
  padding-top: 40px;
}

.pb-40 {
  padding-bottom: 40px;
}

.pt-80 {
  padding-top: 80px;
}

.pb-80 {
  padding-bottom: 80px;
}

.padding {
  padding: 10px;
}

.ms-15 {
  margin-left: 15px;
}

.me-15 {
  margin-right: 15px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mt-100 {
  margin-top: 100px;
}

.cover-150 {
  background-size: cover;
  background-position: center;
  height: 150px;
}

.cover-50 {
  background-size: cover;
  background-position: center;
  height: 266px;
}

.cover-100 {
  background-size: cover;
  background-position: center;
  height: 312px;
}

.cover-545 {
  background-size: cover;
  background-position: center;
  height: 545px;
}

.border-top {
  border-top: 1px solid var(--text-color);
}

.border-botom {
  border-bottom: 1px solid var(--gray-color);
}

.border {
  border: 1px solid var(--gray-color);
}

.border-news {
  border: 3px solid var(--text-color);
}

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

.font-28 {
  font-size: 28px !important;
  line-height: 32px !important;
}

.fw-500 {
  font-weight: 500;
  color: var(--balck-color);
}

.white-color {
  color: var(--white-color);
}

/* Common Css End Here */
/* Preloader styles */
#preloader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scroll to top button styles */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #3498db;
  color: white;
  cursor: pointer;
  padding: 9px;
  border-radius: 4px;
}

#scrollToTopBtn:hover {
  background-color: #555;
}
/* Header Css START Here */
.headers-area.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white-color); /* Adjust as needed */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better visibility */
  transition: all 0.3s ease-in-out;
}

.header-top-registration .button {
  padding: 6px;
  text-transform: capitalize;
  border: none;
  margin-right: 10px;
  font-weight: 600;
}

.menu li a {
  display: inline-block;
}

.button.active {
  background: var(--balck-color);
  color: var(--white-color);

}

.button.active:hover {
  background: var(--text-color);
}

.menu li a:hover {
  background-color: var(--gray-color)
}

/* Header Css End Here */
.newest-news-area {
  /* margin-top: 100px; */
}

.newest-news-left,
.newest-news-right {
  flex-basis: 270px;
}

.newest-news-middel {
  flex-basis: 630px;
}

.heading-bold a {
  font-size: 28px;
  line-height: 32px;
  color: var(--balck-color);
  font-weight: 700;
}

.heading-bold a span {
  color: var(--red-color);
  display: inline-block;
}

.newsletter-area {
  margin-top: 107px;
}

.newest-single-content img,
.newest-news-middel img {
  padding-bottom: 13px;
}

.news-heading-small a {
  font-size: 18px;
  line-height: 22px;
  font-weight: 500;
  color: var(--balck-color);
}

.newest-news-middel span {
  display: block;
}

.newest-news-middel span a:hover {
  text-decoration: underline;
}

.news-heading-small a:hover,
.heading-bold a:hover,
.newest-news-middel li a:hover {
  text-decoration: underline;
}

.newest-single-content p {
  padding: 15px 0;
}


.newest-single-content div span {
  text-transform: capitalize;
  border-right: 1px solid var(--text-color);
  padding-right: 10px;
}

.newest-news-single-img,
.newest-news-middel img {
  position: relative;
  z-index: 2;
}

.newest-news-single-img::before,
.newest-news-middel img::before {
  content: "";
  position: absolute;
  background: var(--gray-color);
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: -1;
}

.newest-news-single-img:hover {
  opacity: .8;
}

.newest-news-middel li a {
  font-size: 16px;
  line-height: 22px;
}

/* BBC News  */

.bbc-news-left,
.bbc-news-right {
  flex-basis: 585px;
  padding: 0 5px;
}

/* More News  */

.single-more-news-left {
  flex-basis: 920px;
}

.single-more-news-left .newest-single-content,
.single-more-news-right {
  flex-basis: 250px;
}

.single-more-news-left .newest-news-middel {
  flex-basis: 670px;
}

.single-content {
  flex-basis: 230px;
  padding: 10px;
}

/* Video News   */
.video-news-area {
  color: var(--white-color);
  background: #141618;
}

.single-video-new a {
  color: var(--white-color);
}

.single-video-new .newest-news-single-img {
  position: relative;
}

.single-video-new .newest-news-single-img i {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  font-size: 25px;
  margin: 0;
}

.single-video-new,
.single-news-letter {
  flex-basis: 292px;
  padding: 5px;
}

/* Culture  */
.culture-news .bbc-news-left,
.science-news .bbc-news-left {
  flex-basis: 900px;
}

.culture-news .bbc-news-right,
.science-news .bbc-news-right {
  flex-basis: 270px;
}

.cultur-btn {
  padding: 10px 17px;
  text-transform: capitalize;
  border: 1px solid var(--balck-color);
  font-size: 17px;
  font-weight: 600;
  transition: .3s;
}

.cultur-btn:hover {
  background: var(--balck-color);
  color: var(--white-color);
}

/* All News Section  */
.single-news {
  flex-basis: 272px;
  padding: 15px;
  margin: 0 10px;
}

/* Brain section  */
.brain-news-area {
  background: var(--balck-color);
  color: var(--white-color);
}

.brain-news-area a {
  color: var(--white-color);
}

.brain-news .bbc-news-left {
  flex-basis: 900px;
}

.brain-news .bbc-news-right {
  flex-basis: 270px;
}



/* Style the select element */
select {
  width: 200px;
  padding: 8px 12px;
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--white-color);
  border: 1px solid var(--gray-color);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

select:focus {
  outline: none;

}

label {
  font-size: 18px;
  margin-bottom: 8px;
  display: block;
}

.nav-bar ul li a:hover {
  background: var(--gray-color);
  border-radius: 3px;
}

.social-icon li a {
  padding: 5px;
  font-size: 18px;
  transition: .3s;
}

.social-icon li a:hover {
  border: 1px solid var(--hover-color);
  color: var(--balck-color);
}

.bbcnews-policy li a:hover {
  text-decoration: underline;
  color: var(--balck-color);
}

.back-button a {
  padding: 10px;
  border: 1px solid var(--text-color);
  font-size: 20px;
  color: var(--balck-color);
}

.back-button a:hover {
  border: 1px solid var(--hover-color);
}

/* News page  */
.section-title h4 {
  font-size: 40px;
  line-height: 52px;
  text-transform: capitalize;
  color: var(--balck-red);
}

.cover-312 {
  background-size: cover;
  background-position: center;
  height: 312px;
}

.cover-188 {
  background-size: cover;
  background-position: center;
  height: 188px;
}

.newest-content {
  flex-basis: 620px;
}

.newest-news-single-img {
  flex-basis: 350px;
}


.business-single-content {
  margin-bottom: 15px;
}

/* pagination  */



.pagination a {
  margin: 5px;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--balck-color);
  border-radius: 5px;
  background: var(--gray-color);
  display: inline-block;
}

.pagination a:hover {
  background-color: var(--hover-color);
  color: var(--white-color);
}

.pagination .active {
  background-color: var(--hover-color);
  color: var(--white-color);
}


.banner-content {
  position: absolute;
  bottom: 0;
  background: var(--white-color);
  width: 400px;
  height: 250px;
  padding: 38px;
  border-bottom: 3px solid var(--balck-red);
  border-right: 3px solid var(--hover-color);
}

.banner-content a {
  font-size: 38px;
  line-height: 42px;
  color: var(--balck-color);
  font-weight: 500;
  text-transform: capitalize;
  margin-bottom: 10px;
  display: inline-block;
}
.banner-content a:hover{
  text-decoration: underline;
}

/* toggle menu  */

.mobile-navbar-btn {
  z-index: 999;
  margin-left: 5px;
  cursor: pointer;
  font-size: 20px;
  color: var(--balck-color);
}

.cross-btn {
  display: none;
}
.header-top {
  position: relative;
}

.menubar {
  position: absolute;
  width: 350px;
  top: 40px;
  left: 0;
  z-index: 999;
  background: var(--white-color);
  padding: 20px 5px;
  transform: translateX(-100%);
  transition: all 0.5s linear;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: scroll;
}
.menubar-link{
  display: block;
  padding: 10px 5px;
  color:var(--balck-color);
  font-weight: 600;
}
.menubar-link:hover{
background: #ddd;
}
.active .menubar{
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.active .mobile-navbar-btn .cross-btn {
  display: block;
}

.active .mobile-navbar-btn .bars-btn {
  display: none;
}
.active .mobile-navbar-btn .search-btn {
  display: none;
}

.menubar form {
  border: 2px solid #ddd;
  display: flex;
}

.menubar form input {
  width: 100%;
  border: none;
 outline: none;
}

.menubar form .search-btn {
  border: none;
  background: var(--balck-color);
  color: var(--white-color);
  padding: 10px;
}
.menubar form:hover {
  border:2px solid #333;
} 
.menubar form:hover .search-btn {
  background: #333;
}