/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: "Segoe UI", sans-serif;
  background: #f8f9fc;
  color: #333;
  line-height: 1.5;
}

/* Header Base */
.app-header {
  width: 100%;
  background-color: #e6f3ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Flexbox Layout */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;           /* vertically center everything */
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 38px;
  display: block;
}

/* Language Button */
.lang-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn:hover {
  background-color: #0056b3;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 42px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  min-width: 130px;
  z-index: 10;
}

.dropdown-content a {
  padding: 10px 14px;
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 15px;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Footer */
.app-footer {
  background-color: #e6f3ff;
  padding: 20px 0;
  width: 100%;
  margin-top: 40px;
  border-top: 1px solid #d0e6f7;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: #333;
}

.footer-lang a {
  text-decoration: none;
  color: #007bff;
  margin: 0 4px;
}

.footer-lang a:hover {
  text-decoration: underline;
}


body {
  font-family: 'Segoe UI', sans-serif;
  background: #f2f9ff;
  margin: 0;
  padding: 0;
  color: #222;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background: #d9ecff;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
}

.language-switch img {
  width: 24px;
  margin-left: 10px;
  cursor: pointer;
}

/* Heading */
h1 {
  font-size: 26px;
  margin-top: 20px;
}
.subtitle {
  font-size: 16px;
  color: #666;
}

/* Search */
.search-bar {
  margin-top: 20px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: 10px;
  border: 1px solid #cce4ff;
  background: white;
  font-size: 16px;
}

.search-bar i {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 20px;
  color: #005eb8;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding: 0 10px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: 0.2s;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.read-btn {
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
}

.read-btn i {
  margin-left: 6px;
}

.intro {
  text-align: center;
  margin-top: 30px;
}

.intro h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.intro .subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

/* Card grid stays same */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding: 0 10px;
}


.card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.card p {
  font-size: 12px;
  color: #444;
  flex-grow: 1;
  margin-bottom: 12px;
}

.read-btn {
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  align-self: flex-start;
}


@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* মোবাইলে ২টা */
  }


/* Footer */
footer {
  background: #d9ecff;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
}
