/* 🌐 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;
}

.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;
}

/* 📰 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: 5px;
}

.search-area button:hover {
  background-color: #555;
}

/* 🧭 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;
}



/* Breaking News Bar */
.breaking-news {
  background-color: #d32f2f;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.breaking-title {
  margin-right: 15px;
  background-color: white;
  color: #d32f2f;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background-color: #f8f8f8;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-content {
  margin-top: 20px;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: bold;
  color: #222;
}

.hero-content p {
  font-size: 18px;
  color: #444;
  margin: 15px 0;
}

.read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: crimson;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.read-more:hover {
  background-color: darkred;
}

.content-wrapper {
display: flex;
gap:20px;
padding:20px;
max-width:1200px;
margin:auto;
}

.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;
}