/* Basic Reset */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Media Queries for different screen sizes */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  .container {
    width: 100%;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 6.5px;
  }
  .container {
    padding: 4px;
  }
}

/* Font size adjustments */
body {
    font-family: 'Times New Roman', serif;
    background-color:#D4EBF8; 
    color: black;
    font-size: 16px; /* Default font size for Desktop */
}



/* Container styles */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header styles */
header {
    position: fixed; 
    top: 0px; 
    width: 100%;
    background-color: #0A1931;
    color: blue;
    text-align: center;
    padding: 1px;
    z-index: 1000;
    font-size: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
	width: 40px;
    height: 40px;
    margin-right: 8px;
    border-radius: 5px;
}

.logo h1 {
    font-size: 35px;
    color: white;
}
.logo h2 {
    font-size: 30px;
    color: yellow;
}
/* Mobile-specific styles */
@media screen and (max-width: 768px) {
	.logo img {
        height: 30px;
        width: 30px;
    }

    .logo h1 {
        font-size: 30px;
    }

}

/* Mobile styling for logos */
@media (max-width: 480px) {
    .logo img {
        height: 20px;
        width: 20px;
    }

    .logo h1 {
        font-size: 20px;
    }

   
}

/* Navigation menu styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.menu-container {
    display: flex;
    align-items: center;
    background-color: water;
    padding: 3px;
    position: relative;
}

.main-menu {
    display: flex;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
}

.main-menu::-webkit-scrollbar {
    display: none;
}

.main-menu li {
    padding: 5px;
}

.main-menu li a {
    text-decoration: none;
    color: yellow;
    font-size: 12px;
    font-weight: bold;
    padding-bottom: 4px;
    transition: border-bottom 0.3s ease-in-out;
}

.main-menu li a:hover {
    background-color: blue;
}

.main-menu li a.active {
  border-bottom: 3px solid yellow;
  color: white;
  font-weight: bold;
  animation: activeGlow 0.3s ease-in-out;
}

@keyframes activeGlow {
  0% {
    background-color: rgba(255, 255, 0, 0.2);
  }
  100% {
    background-color: transparent;
  }
}


/* Dropdown menu styles */
.main-menu li ul.dropdown {
    display: none;
    position: absolute;
    background-color: #0A1931;
    list-style: none;
    margin: 0;
    padding: 0;
    top: 100%;
    left: 0;
    min-width: 150px;
    z-index: 1000;
}

.main-menu li:hover ul.dropdown {
    display: block;
}

.main-menu li ul.dropdown li a {
    display: block;
    padding: 10px;
    color: yellow;
    text-decoration: none;
    background-color: #0A1931;
}

.main-menu li ul.dropdown li a:hover {
    background-color: highlight;
    color: white;
}

/* Scroll button */
.scroll-btn {
    background-color: navy;
    color: yellow;
    border: none;
    font-size: 18px;
    padding: 3px 8px;
    cursor: pointer;
    display: block;
    border-radius: 10px;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    .nav-btn {
        display: block;
    }

    .menu-container {
        overflow: hidden;
    }

    .menu {
        display: flex;
        white-space: nowrap;
    }
	.scroll-btn {
    font-size: 15px;
    padding: 3px 8px;
    border-radius: 10px;
	}
	
    
}
	

/* Hamburger menu styling */
.hamburger {
            font-size: 25px;
            cursor: pointer;
            color: yellow;
            margin-right: 5px;
            position: relative;
        }

        .hamburger:hover::after {
            content: "প্রথম পৃষ্ঠায় ফিরে যান";
            position: relative;
            top: -15px;
            left: 5px;
            background-color: #0A1931;
            color:white;
            padding: 3px;
            border-radius: 3px;
            font-size: 12px;
            white-space: nowrap;
        }
		
@media screen and (max-width: 768px) {
	.hamburger {
    font-size: 20px;  
	color: yellow;	
    margin-right: 3px;
	}
	
}

/* Header Styling for, Subscribe, and Login */
.header-right {
    display: flex;
    justify-content: flex-end; /* Keeps elements on the right side */
    align-items: center;
    gap: 12px;
    width: auto; /* Ensures the header doesn't stretch */
}


/* 🔍 Search Form Styling */
.search-container {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

#searchForm {
    display: flex;
    align-items: center;
    position: relative;
}

#searchQuery {
    padding: 8px;
    width: 260px;
    font-size: 14px;
    border: 1px solid blue;
    border-radius: 6px;
}

#searchButton {
    background-color: blue;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 4px;
    border-radius: 5px;
}

#searchButton i {
    color: yellow;
    padding: 2px;
    border-radius: 3px;
    font-size: 13px;
}

/* 📱 Tablets */
@media (max-width: 768px) {
    #searchQuery {
        width: 160px;
        padding: 6px;
        font-size: 12px;
        border-radius: 5px;
    }

    #searchButton {
        padding: 1.5px 3px;
        border-radius: 4px;
    }

    #searchButton i {
        font-size: 11px;
    }
}

/* 📱 Very Small Mobile Devices */
@media (max-width: 480px) {
    #searchQuery {
        width: 110px;
        padding: 4px;
        font-size: 11px;
        border-radius: 4px;
    }

    #searchButton {
        padding: 1px 2.5px;
        border-radius: 3px;
    }

    #searchButton i {
        font-size: 10px;
    }
}


/* Subscribe & Login Buttons */
.subscribe-btn {
    background-color: red;
    font-size: 15px;
    color: white;
    border: none;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.subscribe-btn:hover {
    background-color: highlight;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: glass;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
    padding: 20px;
    border: 2px solid #ffd700;  
}

.modal-content h2 {
    margin: 0;
    font-size: 25px;
    color: white;
}

.modal-content p {
    margin: 20px 0 20px;
    font-size: 16px;
    color: #333;
}

.modal-content input[type="email"] {
    width: 90%;
    padding: 10px; 
    margin-bottom: 35px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    background: #4caf50;
    color: #fff;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #2e7d32;
}

.btn-secondary {
    background: #f44336;
    color: #fff;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #c62828;
}

/* Overlay Styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Responsive Styles */

/* For Tablets (max-width: 768px) */
@media (max-width: 768px) {
    /* Header right */
    .header-right {
        gap: 8px; /* Reduce gap for smaller screens */
    }

    .subscribe-btn {
        font-size: 12px; /* Smaller font size for buttons */
        padding: 3px 3px;
    }

    .modal {
        width: 80%; /* Adjust modal width */
    }

    .modal-content h2 {
        font-size: 20px; /* Adjust font size */
    }

    .modal-content p {
        font-size: 14px; /* Smaller text for mobile */
    }

    .modal-content input[type="email"] {
        font-size: 14px; /* Smaller font size for input */
    }

    .btn {
        font-size: 12px; /* Smaller font size for buttons */
        padding: 8px 16px; /* Adjust padding */
    }
}

/* For Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    /* Header right */
    .header-right {
        gap: 5px; /* Further reduce gap */
    }

    .subscribe-btn {
        font-size: 12px; /* Even smaller font size for buttons */
        padding: 3px 3px;
    }

    .modal {
        width: 70%; /* Further adjust modal width */
    }

    .modal-content h2 {
        font-size: 18px; /* Adjust font size */
    }

    .modal-content p {
        font-size: 12px; /* Smaller text for mobile */
    }

    .modal-content input[type="email"] {
        font-size: 12px; /* Smaller font size for input */
    }

    .btn {
        font-size: 10px; /* Even smaller font size for buttons */
        padding: 6px 12px; /* Adjust padding */
    }
}



/* Login Modal Overlay */
#login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}
.login-btn {
    background-color: white;
    font-size: 15px;
    color: black;
    border: none;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.login-btn:hover {
    background-color: highlight;
}

/* Modal Container */
#login-modal {
    display: none;
    position: fixed;
    top: 40%;
    left: 40%;
    transform: translate(-30%, -30%);
    background: glass;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 100%;
    max-width: 400px;
    border: 2px solid red;    
    margin-top: 10px;
    float: right;
    margin-right: 10px;
}

/* Login Form Styling */
.login-container h2 {
    font-size: 30px;
    color: yellow;
    margin-bottom: 20px;
    text-align: center;
}

.login-container label {
    font-size: 17px;
    color: white;
    margin-bottom: 5px;
    display: block;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid blue;
    border-radius: 5px;
    box-sizing: border-box;
}

.show-password {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.login-container .login-button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.login-container .login-button:hover {
    background-color: green;
}

.login-container .login-options {
    margin-top: 15px;
    text-align: center;
    color: white;
}

.login-container .login-options a {
    color: yellow;
    text-decoration: none;
    font-size: 14px;
}

.login-container .login-options a:hover {
    text-decoration: underline;
}

.close-button {
    width: 100%;
    padding: 10px;
    background: #FF5733;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
    font-size: 16px;
}

.close-button:hover {
    background: red;
}

/* 🔐 Login Related Styling */

/* Tablets */
@media (max-width: 768px) {
    .login-btn {
        font-size: 12px;
        padding: 5px 5px;
    }

    #login-modal {
        width: 70%;
        padding: 5px;
    }

    .login-container h2 {
        font-size: 20px;
    }

    .login-container label {
        font-size: 15px;
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        padding: 8px;
    }

    .login-container .login-button {
        font-size: 14px;
    }

    .login-container .login-options a {
        font-size: 12px;
    }

    .close-button {
        font-size: 14px;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .login-btn {
        font-size: 12px;
        padding: 2px 3px;
    }

    #login-modal {
        width: 60%;
        padding: 4px;
    }

    .login-container h2 {
        font-size: 15px;
    }

    .login-container label {
        font-size: 10px;
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        padding: 5px;
    }

    .login-container .login-button {
        font-size: 10px;
    }

    .login-container .login-options a {
        font-size: 10px;
    }

    .close-button {
        font-size: 10px;
    }
}


/* Translate Button */
.translate-btn {
     background-color: #4CAF50;
    font-size: 15px;
    color: white;
    border: none;
    padding: 3px 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}


.translate-btn img {
    margin-right: 5px;
    height: 20px; /* Adjust icon size */
}

/* Google Translate Dropdown Menu */
#google_translate_element {
    position: absolute;
    top: 50px;
    right: 10px;
    z-index: 999;
    display: none;  /* Hidden initially */
}

/* Hover effect for Translate Button */
.translate-btn:hover {
    background-color: highlight;
}

@media (max-width: 768px) {
	.translate-btn {    
    font-size: 12px;   
    padding: 2px 3px;
    border-radius: 5px;   
	}


	.translate-btn img {
		margin-right: 5px;
		height: 15px; /* Adjust icon size */
		
	}

	/* Google Translate Dropdown Menu */
	#google_translate_element {
		
		top: 50px;
		right: 10px;
		
	}

}


/* 🎯 Headline Section (Desktop) */
.headline { 
	margin-top: 90px; 
	text-align: center;	
}

.headline-text {
	font-weight: bold;
  font-size: 20px;
	color: black;
}

.headline-text p {
	background-color: #0000FF; 
	height: 5px;
	width: 225px;
	border-radius: 10px; 
	margin: 5px auto 0;
}

/* 📱 Tablets (≤768px) */
@media (max-width: 768px) {
	.headline {
		margin-top: 100px;
		text-align: center;
	}

	.headline-text {
		font-size: 14px;
	}

	.headline-text p {
		height: 3px;
		width: 130px;
		border-radius: 8px;
		margin: 3px auto 0;
	}
}

/* 📱 Very Small Screens (≤480px) */
@media (max-width: 480px) {
	.headline {
		margin-top: 110px;
		text-align: center;
	}

	.headline-text {
		font-size: 12px;
	}

	.headline-text p {
		height: 2px;
		width: 100px;
		border-radius: 6px;
		margin: 2px auto 0;
	}
}



/* Date Section Styling */
#date-section {
  position: absolute; /* অথবা position: fixed; যদি সবসময় একই জায়গায় রাখতে চান */
  top: 100px; /* পেজের উপরের দিক থেকে দূরত্ব */
  left: 5px; /* পেজের ডান দিক থেকে দূরত্ব */
  width: 260px; /* সেকশনের প্রস্থ */
  padding: 2px; /* প্যাডিং কিছুটা বাড়ানো হলো */
  background: rgba(255, 255, 255, 0.1); /* স্বচ্ছ ব্যাকগ্রাউন্ড */
  color: black;  
  border-radius: 4px; /* কোণগুলো গোল করতে */
  border: 1px solid yellow; /* বর্ডার কালার */
  font-size: 17px; /* পুরো সেকশনের ডিফল্ট ফন্ট সাইজ */
  font-weight: bold; /* পুরো সেকশনের ডিফল্ট ফন্ট ওজন */
}

#date-section a:hover {
  color: white; /* হোভার করার সময় লিংকের রঙ */
}

#date-link a {
  text-decoration: none;
  color: blue; /* উজ্জ্বল নীল */
  font-size: 10px; /* লিংকের ফন্ট সাইজ কমানো */
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

#date-link a:hover {
  color: white; /* হোভার করার সময় রঙ পরিবর্তন হবে */
  text-decoration: underline;
}

/* 📱 Responsive for Tablets */
@media (max-width: 768px) { 
  #date-section {
    top: 105px;
    left: 2px; /* আগে ছিল 5px → এখন আরও বাম পাশে */
    width: 150px;
    font-size: 10px;
  }

  #date-link a {
    font-size: 8px;
  }
}

/* 📱 Responsive for Very Small Screens (like older phones) */
@media (max-width: 480px) {
  #date-section {
    top: 100px;
    left: 1px; /* আগে ছিল 5px → এখন আরও বাম পাশে */
    width: 115px;
    font-size: 8px;
  }

  #date-link a {
    font-size: 5px;
  }
}




/* মূল desktop view */
.popular-topics {
  position: absolute;
  top: 110px;
  right: 10px;
  width: 300px;
  height: 330px;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #FFD700;
  overflow-y: auto;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  z-index: 99;
}

.popular-topics h1 {
  text-align: center;
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.popular-topics ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.circle-number {
  width: 24px;
  height: 24px;
  background-color: #007BFF;
  color: white;
  font-weight: bold;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.topic-item p {
  font-size: 13px;
  margin: 0;
}

.topic-item img {
  width: 60px;
  height: auto;
  border-radius: 5px;
  margin-left: 10px;
}

/* স্ক্রল বার কাস্টমাইজ */
.popular-topics::-webkit-scrollbar {
  width: 8px;
}
.popular-topics::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}
.popular-topics::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* 📱 Tablets and smaller screens (≤768px) */
@media (max-width: 768px) {
  .popular-topics {
  position: fixed;
  top: 105px; /* কত দূরে স্ক্রল করলে এটা আটকে থাকবে */
  right: 5px;
  width: 180px;
  height: auto;
  padding: 8px;
  background-color: #fff; /* ব্যাকগ্রাউন্ড দিলে overlap কম হয় */
  z-index: 999;
}


  .topic-item {
    flex-direction: row;
    align-items: center;
    padding: 4px;
    margin-bottom: 8px;
  }

  .topic-item img {
    width: 30px;
    margin-left: 4px;
  }

  .circle-number {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .topic-item p {
    font-size: 10px;
  }

  .popular-topics h1 {
    font-size: 11px;
    text-align: center;
  }
}

/* 📱 Very Small Screens (≤480px) */
@media (max-width: 480px) {
  .popular-topics {
    position: fixed;
    top: 150px; /* আগে ছিল 125px → এখন 150px */
    right: 2px;
    width: 135px;
    height: 220px;
    padding: 3px;
  }

  .topic-item {
    flex-direction: row;
    padding: 3px;
    margin-bottom: 6px;
  }

  .topic-item img {
    width: 26px;
    margin-left: 3px;
  }

  .circle-number {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }

  .topic-item p {
    font-size: 9.5px;
  }

  .popular-topics h1 {
    font-size: 10px;
    text-align: center;
  }
}


/* Featured Articles Section */
.featured-articles {
  
  left:10px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 5px 0;
}

.article {
  width: 300px;
  height: 280px;
  text-align: center;
  font-weight: bold;
  color: blue;
  background-color: #FDAB9E;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article img {
  width: 300px;
  height: 150px;
  border-radius: 10px 10px 0 0;
}

.article h2{
  color: black;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
   margin: 0 5px 5px;
}

.article p {
  text-align: left;
  font-weight: bold;
  font-size: 13px;
  color: blue;
  margin: 0 10px 10px;
}

.article a {
  display: block;
  text-align: center;
  background-color: black;
  color: white;
  font-weight: bold;
  font-size: 13px;
  padding: 8px;
  border-radius: 20px;
  text-decoration: none;
  margin: 0 20px 20px;
}

.article a:hover {
  background-color: blue;
}

/* 📱 Tablets (≤768px) */
@media (max-width: 768px) {
  .featured-articles {
    top: 210px;
    left: 5px;
    gap: 5px;
    margin: 2px 0;
  }

  .article {
    width: 117px;
    height: 155px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  }

  .article img {
    width: 117px;
    height: 65px;
    border-radius: 8px 8px 0 0;
  }

  .article h2 {
    text-align: center;
    font-size: 11px;
    margin: 0 0 2px;
  }

  .article p {
    font-size: 7px;
    margin: 0 0 2px;
  }

  .article a {
    font-size: 9px;
    padding: 3px;
    border-radius: 8px;
    margin: 0 20px 20px;
  }
}


/* 📱 Very Small Screens (≤480px) */
@media (max-width: 480px) {
  .featured-articles {
    top: 230px;
    left: 3px;
    gap: 3px;
    margin: 2px 0;
  }

  .article {
    width: 95px;
    height: 145px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .article img {
    width: 95px;
    height: 60px;
    border-radius: 6px 6px 0 0;
  }

  .article h2 {
    text-align: center;
    font-size: 10px;
    margin: 0 0 2px;
  }

  .article p {
    font-size: 6px;
    margin: 0 0 2px;
  }

  .article a {
    font-size: 8px;
    padding: 2px;
    border-radius: 6px;
    margin: 0 15px 15px;
  }
}




/* Editor-Favorites */
.Editor-Favorites {
	margin-top: 60px; 
	font-weight: bold;
	font-size: 20px;
	color:black;
	left:15px; 
	position: relative;
}
.Editor-Favorites p{
background-color: #0000FF; 
height: 3px; 
width: 170px; 
border-radius: 10px;
 margin-top: 3px;
 left:10px; 
position: relative;
}


/* .Editor-Favorites Section */
@media (max-width: 768px) {
	.Editor-Favorites {
		margin-top: 30px; 
	font-size: 12px;	
	left:10px; 
	}
	.Editor-Favorites p{
	height: 2px; 
width: 100px; 
border-radius: 10px;
 margin-top: 2px;
 left:5px; 
	}
}


	
/* Favorites Articles Section */
.Favorites-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 3px 0;
}

.Farticle {
  width: 240px;
  height: 210px;
  text-align: center;
  font-weight: bold;
  color: blue;
  background-color: #FDAB9E;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.Farticle img {
  width: 240px;
  height: 120px;
  border-radius: 10px 10px 0 0;
}

.Farticle h {
  color: blue;
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  margin: 5px;
}

.Farticle p {
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  color: blue;
  margin: 0 10px 10px;
}

.Farticle a {
  display: block;
  text-align: center;
  background-color: black;
  color: white;
  font-weight: bold;
  font-size: 13px;
  padding: 8px;
  border-radius: 50px;
  text-decoration: none;
  margin: 0 50px 40px;
}

.Farticle a:hover {
  background-color: blue;
}


@media (max-width: 768px) {
	
	.Favorites-articles {
	  
	  gap: 10px;
	  margin: 3px 0;
	}

	.Farticle {
	  width: 130px;
	  height: 115px;
	  border-radius: 10px;
	  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	}

.Farticle img {
  width: 130px;
  height: 50px;
  border-radius: 10px 10px 0 0;
}

.Farticle p {
  
  font-size: 10px;
  margin: 0px;
}

.Farticle a {
  
  font-size: 8px;
  padding: 3px;
  border-radius: 50px;
  
  margin: 0 20px 20px;
}
		
}



/* comment-section */
.comment-section {
    width: 80%;
    margin: 10px auto;
    padding: 10px;
    border: 5px solid yellow;
    border-radius: 20px;
    background-color: #DEAA79;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comment-section h3 {
    font-size: 25px;
    margin-bottom: 15px;
    text-align: center;
    color: black;
}

.comment-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comment-form textarea {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    font-size: 16px;	
    border: 3px solid water;
    border-radius: 6px;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

.comment-form textarea:focus {
    border-color: blue;
}

.submit-btn {
    margin-top: 10px;
    padding: 12px 20px;
    font-size: 16px;
    color: #fff;
    background-color: blue;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* Mobile Responsive Design for Comment Section */
@media (max-width: 768px) {
    .comment-section {
        width: 95%; /* মোবাইল স্ক্রীনে ফিট করার জন্য */
        padding: 8px; /* প্যাডিং কমানো */
    }

    .comment-section h3 {
        font-size: 20px; /* ছোট স্ক্রীনে শিরোনামের ফন্ট সাইজ কমানো */
    }

    .comment-form textarea {
        font-size: 14px; /* ছোট স্ক্রীনে ফন্ট সাইজ কমানো */
    }

    .submit-btn {
        font-size: 14px; /* ছোট স্ক্রীনে বাটনের ফন্ট সাইজ কমানো */
        padding: 10px 15px; /* বাটনের আকার কমানো */
    }
}

/* For Very Small Screens (max-width: 480px) */
@media (max-width: 480px) {
    /* Sidebar adjustments */
    #popular-topics-sidebar {
        width: 100%; /* আরও বড় স্ক্রীনে সাইডবার পুরো প্রস্থ নেবে */
        padding: 10px; /* প্যাডিং আরও কমানো */
    }

    .topic-item h3 {
        font-size: 9px; /* আরও ছোট শিরোনাম */
    }

    .topic-item img {
        width: 40px; /* আরও ছোট ইমেজ */
        height: 40px;
    }

    /* Comment section adjustments */
    .comment-section {
        width: 100%; /* পুরো প্রস্থ নিবে */
        padding: 6px; /* প্যাডিং আরও কমানো */
    }

    .comment-section h3 {
        font-size: 18px; /* ছোট স্ক্রীনে শিরোনাম আরও ছোট */
    }

    .comment-form textarea {
        font-size: 12px; /* ছোট স্ক্রীনে ফন্ট সাইজ কমানো */
    }

    .submit-btn {
        font-size: 12px; /* বাটনের ফন্ট সাইজ আরও কমানো */
        padding: 8px 12px; /* বাটনের আকার আরও ছোট করা */
    }
}


/* Comments Section Styling */
#comments-container {
    margin-top: 30px;
}

.comment {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment p {
    margin: 10px 0;
    color: #333;
}

.comment .reply-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #008CBA;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment .reply-btn:hover {
    background-color: #007B9E;
}

.comment .delete-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: none; /* Initially hidden */
}

.comment .delete-btn:hover {
    background-color: #e53935;
}

.reply-form {
    margin-top: 10px;
    padding-left: 20px;
}

.reply-form textarea {
    width: 90%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    resize: none;
    transition: border-color 0.3s;
}

.reply-form textarea:focus {
    border-color: #008CBA;
}

.reply-form button {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #008CBA;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reply-form button:hover {
    background-color: #007B9E;
}

.reply-form.hidden {
    display: none;
}

/* Responsive Styles */

/* For Tablets (max-width: 768px) */
@media (max-width: 768px) {
    #comments-container {
        margin-top: 20px;
    }

    .comment {
        padding: 12px; /* Reduced padding for smaller screens */
    }

    .comment p {
        font-size: 14px; /* Reduced font size */
    }

    .comment .reply-btn {
        font-size: 14px; /* Smaller button text */
        padding: 6px 12px; /* Smaller padding */
    }

    .comment .delete-btn {
        font-size: 14px; /* Smaller button text */
        padding: 6px 12px; /* Smaller padding */
    }

    .reply-form textarea {
        font-size: 12px; /* Smaller text area font */
        padding: 8px; /* Reduced padding */
    }

    .reply-form button {
        font-size: 14px; /* Smaller button text */
        padding: 8px 14px; /* Smaller padding */
    }
}

/* For Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    #comments-container {
        margin-top: 15px; /* Further reduce margin */
    }

    .comment {
        padding: 10px; /* Further reduced padding */
    }

    .comment p {
        font-size: 12px; /* Even smaller font size */
    }

    .comment .reply-btn {
        font-size: 12px; /* Smaller button text */
        padding: 5px 10px; /* Smaller padding */
    }

    .comment .delete-btn {
        font-size: 12px; /* Smaller button text */
        padding: 5px 10px; /* Smaller padding */
    }

    .reply-form textarea {
        font-size: 12px; /* Smaller font size */
        padding: 6px; /* Smaller padding */
    }

    .reply-form button {
        font-size: 12px; /* Smaller button text */
        padding: 6px 12px; /* Smaller padding */
    }
}
