/* ============================================
   ek33.it.com - Global Stylesheet
   SEO-optimized, Bangladesh market, Bengali
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #0d47a1;
  --color-primary-light: #1a73e8;
  --color-primary-dark: #0a1628;
  --color-accent: #ff8f00;
  --color-accent-light: #ffd54f;
  --color-accent-dark: #e65100;
  --color-bg: #f5f7fa;
  --color-bg-alt: #eef1f6;
  --color-bg-dark: #0d1b2a;
  --color-bg-card: #ffffff;
  --color-text: #1a2332;
  --color-text-light: #546e7a;
  --color-text-muted: #78909c;
  --color-border: #e0e6ed;
  --color-success: #2e7d32;
  --color-warning: #f57f17;
  --color-danger: #c62828;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  padding-left: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--color-text);
  font-weight: 700;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }

p {
  margin-bottom: 1rem;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo img {
  height: 44px;
  width: auto;
  max-width: 180px;
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-bg-alt);
  color: var(--color-primary-light);
}

.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: var(--radius-xl) !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  background: var(--color-accent-dark) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero / Banner --- */
.hero-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Section Styles --- */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-bg-dark);
  color: #e0e6ed;
}

.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 700px;
  margin: -1.5rem auto 2.5rem;
  font-size: 1.05rem;
}

/* --- Quick Entry Cards --- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

.quick-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--color-border);
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.quick-card .icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}

.quick-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.quick-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* --- Feature Cards (3-col) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card .card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* --- Distribution Blocks --- */
.dist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dist-block {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.dist-block h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.dist-block p {
  color: var(--color-text-light);
  flex: 1;
}

.dist-block .dist-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.dist-block .dist-link:hover {
  color: var(--color-accent-dark);
}

/* --- Long Content Area --- */
.long-content {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}

.long-content h2 {
  color: var(--color-primary);
  margin-top: 2rem;
}

.long-content h2:first-child {
  margin-top: 0;
}

.long-content h3 {
  color: var(--color-text);
  margin-top: 1.5rem;
}

.long-content ul,
.long-content ol {
  margin-bottom: 1rem;
}

.long-content li {
  margin-bottom: 0.4rem;
}

.long-content a {
  color: var(--color-primary-light);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.long-content a:hover {
  border-bottom-color: var(--color-primary-light);
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  font-size: 1.02rem;
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-primary-light);
  font-weight: 300;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 24px 18px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  text-align: center;
  padding: 50px 30px;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 24px;
}

.btn-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  color: #fff;
}

/* --- Trust Section --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}

.trust-item {
  padding: 20px;
}

.trust-item .trust-icon {
  font-size: 2rem;
  color: var(--color-primary-light);
  margin-bottom: 10px;
}

.trust-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.trust-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary-light);
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--color-text-muted);
}

/* --- Article / News Styles --- */
.article-header {
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.article-header h1 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.85;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.article-body h2 {
  margin-top: 2rem;
}

.article-body h3 {
  margin-top: 1.5rem;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: box-shadow 0.2s;
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.related-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* --- News List --- */
.news-list {
  display: grid;
  gap: 20px;
}

.news-item {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
  overflow: hidden;
  max-width: 100%;
}

.news-item:hover {
  box-shadow: var(--shadow-md);
}

.news-item-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.news-item-content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.news-item-content h3 a {
  color: var(--color-text);
}

.news-item-content h3 a:hover {
  color: var(--color-primary-light);
}

.news-item-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.news-item-content p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* News item cover image */
.news-item-cover {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.news-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .news-item-cover {
    width: 100%;
    height: 180px;
  }
}

/* --- Category / Collection Page --- */
.category-header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 40px 0;
  margin-bottom: 2rem;
}

.category-header h1 {
  color: #fff;
}

.category-header p {
  color: rgba(255,255,255,0.8);
  max-width: 700px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card .cat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.category-card .cat-link {
  color: var(--color-primary-light);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Steps / Guide --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step-counter;
}

.step-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  counter-increment: step-counter;
}

.step-card::before {
  content: counter(step-counter);
  position: absolute;
  top: -12px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: var(--color-primary-light);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-card h3 {
  margin-top: 8px;
  font-size: 1.05rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.92rem;
}

.info-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tr:hover td {
  background: var(--color-bg-alt);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-dark);
  color: #b0bec5;
  padding: 50px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-col a {
  color: #b0bec5;
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #78909c;
}

/* --- 404 Page --- */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}

.page-404 h1 {
  font-size: 6rem;
  color: var(--color-primary-light);
  margin-bottom: 0;
}

.page-404 h2 {
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-2 { padding-top: 1rem; }
.pb-2 { padding-bottom: 1rem; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dist-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 2px;
    z-index: 999;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-logo img {
    height: 36px;
  }

  .hero-banner {
    min-height: 200px;
  }

  .section {
    padding: 40px 0;
  }

  .long-content {
    padding: 24px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-header {
    padding: 28px 0;
  }

  .cta-section {
    padding: 36px 20px;
  }

  .news-item {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .quick-card {
    padding: 16px 12px;
  }
}
