body {
margin: 0;
padding: 0;
}

/* TOP BAR STYLE */
.top-bar {
  background-color: #333;
  color: #fff;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  font-family: Arial, sans-serif;
  font-size: 14px;
  flex-wrap: wrap; 
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  margin-left: 10px;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-left, .top-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap; 
}

/* responsive.css */

/* মোবাইলের জন্য */
@media (max-width: 768px) {
  .top-right {
    display: none; /* মেনু লুকানো থাকবে */
    flex-direction: column;
    background: #333;
    position: absolute;
    top: 40px;
    right: 10px;
    width: 200px;
    padding: 10px;
    border-radius: 5px;
  }

  .top-right.show {
    display: flex; /* toggle করলে আবার দেখা যাবে */
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    background: #000;
    padding: 5px 10px;
    border-radius: 4px;
  }
}

/* ডেস্কটপের জন্য */
@media (min-width: 769px) {
  .menu-toggle {
    display: none; /* ডেস্কটপে মেনু আইকন থাকবে না */
  }
  .top-right {
    display: flex; /* সব লিংক স্বাভাবিকভাবে দেখা যাবে */
    gap: 10px;
  }
}

/* ╨Б╨п╨гтЦС HEADER STYLE */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  background-color: #f5f5f5;
  border-bottom: 2px solid #ccc;
}

 .logo-area {
display: flex;
align-items: center
}

.logo-icon {
height: auto;
width:60px
}


.logo-text  {
  font-size: 28px;
  font-weight: bold; 
  color: #333;
  margin-left: 0px;
}


#clock {
  text-align: center;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  margin: 5px 0;
  user-select: none;
}

/* Clock container with subtle box */
.datetime {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05); /* light transparent bg */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

/* Day + Date in one line */
.date-line {
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 4px;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Time line */
.time-line {
  font-size: 20px;
  font-weight: bold;
  color: #008000;
  text-shadow: 0 0 1px #008000, 0 0 1px #008000;
  letter-spacing: 1px;
}

/* Seconds - blinking */
.time-line .second {
  color: #ff4d4d;
  animation: blink 1s steps(2, start) infinite;
}

/* AM/PM */
.time-line .ampm {
  color: #ff00ff;
  margin-left: 8px;
  font-size: 14px;
  font-weight: bold;
}

/* Blinking animation */
@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* Responsive tweak */
@media screen and (max-width: 600px) {
  .datetime {
    padding: 6px 12px;
  }
  .date-line {
    font-size: 13px;
  }
  .time-line {
    font-size: 18px;
  }
}


.search-area input {
  padding: 5px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
}

.search-area button {
  padding: 6px 12px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  margin-left: 0;
}

.search-area button:hover {
  background-color: #555;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .search-area {
    flex-direction: column;   /* input + button নিচে নামবে */
    align-items: stretch;     /* পুরো width নেবে */
    width: 100%;
    margin: 10px 0;
  }

  .search-area input,
  .search-area button {
    width: 100%;              /* মোবাইলে input আর button স্ক্রিন ফিট হবে */
    box-sizing: border-box;
    font-size: 16px;
  }
}



/*  NAVIGATION BAR STYLE */

.main-nav {
  background-color: #000000;
  position:sticky;
  top: 0;
  z-index:999;
  padding: 0;
  margin: 0;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.main-nav ul li {
  display: inline-block;
  position: relative;
}

.main-nav ul li a {
  display: inline-block;
  color: white;
  text-decoration: none;
  padding: 12px 15px;
  font-size: 15px;
  transition: background 0.3s, color 0.3s;
}


.main-nav ul li:nth-child(1):hover a { background-color: #ff4d4d; }      /* Home */
.main-nav ul li:nth-child(2):hover a { background-color: #1e90ff; }      /* Politics */
.main-nav ul li:nth-child(3):hover a { background-color: #20c997; }      /* World */
.main-nav ul li:nth-child(4):hover a { background-color: #ffc107; }      /* Sports */
.main-nav ul li:nth-child(5):hover a { background-color: #6f42c1; }      /* Education */
.main-nav ul li:nth-child(6):hover a { background-color: #fd7e14; }      /* Entertainment */
.main-nav ul li:nth-child(7):hover a { background-color: #17a2b8; }      /* Countrywide */
.main-nav ul li:nth-child(8):hover a { background-color: #e83e8c; }      /* Investigation */
.main-nav ul li:nth-child(9):hover a { background-color: #28a745; }      /* National */
.main-nav ul li:nth-child(10):hover a { background-color: #6610f2; }     /* Administration */
.main-nav ul li:nth-child(11):hover a { background-color: #007bff; }     /* Secretariat */
.main-nav ul li:nth-child(12):hover a { background-color: #dc3545; }     /* Economy */
.main-nav ul li:nth-child(13):hover a { background-color: #00b894; }     /* Religion */
.main-nav ul li:nth-child(14):hover a { background-color: #ff6f61; }     /* Crime */
.main-nav ul li.dropdown:hover > a { background-color: #444; }           /* More */

.main-nav ul li a:hover {
  color: white;
  border-radius: 5px;
}




.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #111;
  min-width: 160px;
  top: 100%;
  left: 0;
  z-index: 1000;
  border-radius: 0 0 5px 5px;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-align: left;
}

.dropdown-menu li a:hover {
  background-color: #333;
  color: #ffd700;
}


.dropdown:hover .dropdown-menu {
  display: block;
}



.hero {
    margin-top: 30px;      
    margin-bottom: 50px;     
    text-align: center;     
    padding: 10px;
}

.hero img,
.hero video {
    max-width: 90%;   
    height: auto;
    display: block;
    margin: 0 auto;       
    border-radius: 8px;
    object-fit: cover;     
}

.hero-content h1 {
  font-weight: bold;
  font-size: 28px; /* চাইলে সাইজ সেট করতে পারো */
  margin-bottom: 10px;
  color: #000; /* চাইলে কালারও দাও */
}




@media (max-width: 768px) {
    .hero {
        margin-top: 60px;   
        margin-bottom: 30px;
        padding: 5px;
    }

    .hero h1 {
        font-size: 20px;    
    }

    .hero p {
        font-size: 14px;    
    }
}


.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    padding: 0 5px;
}


.news-item {
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
    margin: 0;
}


.news-item img,
.news-item video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
    border-radius: 6px; 
}


.news-item h2 {
    font-size: 18px;
    margin: 10px 0;
}


.news-item p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 8px;
}


.news-item a {
    color: #0073e6;
    text-decoration: none;
    font-weight: 500;
}
.news-item a:hover {
    text-decoration: underline;
}


@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .news-grid {
  grid-template-columns: 1fr;
    }
}

.main-news {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.news-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.news-card {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 8px;
  width: 300px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card img {
  width: 100%;
  border-radius: 5px;
}

.news-card h2 {
  font-size: 18px;
  margin: 15px 0 10px;
  color: #333;
}

.news-card p {
  font-size: 14px;
  color: #666;
}

.news-card a {
  display: inline-block;
  margin-top: 10px;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.news-card a:hover {
  text-decoration: underline;
}
.main-news{
flex:3
}


.sidebar {
  width: 300px;
  padding: 20px;
  background-color: #ffffff;
  border-left: 1px solid #ddd;
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

.sidebar-section input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.sidebar-section ul {
  list-style: none;
  padding: 0;
}

.sidebar-section ul li {
  margin-bottom: 8px;
}

.sidebar-section ul li a {
  color: #007BFF;
  text-decoration: none;
}

.sidebar-section ul li a:hover {
  text-decoration: underline;
}
.sidebar {
flex: 1;
}

.site-footer {
  background: linear-gradient(120deg, #0f0f0f, #1a1a1a);
  color: #e0e0e0;
  padding: 60px 30px 30px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid #444;
  padding-bottom: 40px;
}

.footer-section h2, .footer-section h3 {
  color: orange;
  margin-bottom: 15px;
}

.footer-section span {
  color: #ffffff;
}

.footer-section p, .footer-section a {
  color: #ccc;
  line-height: 1.6;
  font-size: 14px;
  text-decoration: none;
}

.footer-section a:hover {
  color: orange;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section form {
  display: flex;
  margin-top: 10px;
}

.footer-section input {
  padding: 10px;
  border: none;
  border-radius: 5px 0 0 5px;
  outline: none;
  flex: 1;
}

.footer-section button {
  padding: 10px 15px;
  border: none;
  background-color: orange;
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: 0.3s;
}

.footer-section button:hover {
  background-color: #ff6600;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
}

.social-icons a {
  color: #ccc;
  margin: 0 10px;
  font-size: 18px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: orange;
  transform: scale(1.2);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-section form {
    flex-direction: column;
  }

  .footer-section input, .footer-section button {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .social-icons {
    margin-top: 15px;
  }

}

#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 99;
  font-size: 20px;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  background-color: orange;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

#backToTopBtn:hover {
  background-color: #e69500;
}