:root {
    /* ===========================================
       BRAND COLORS (Based on Logo)
       =========================================== */
    --brand-navy: #1a2a6c;       /* Primary Navy - Logo Main */
    --brand-gold: #f9d423;       /* Gold - Logo Accent */
    --brand-red: #c0392b;        /* Red - Logo Highlight */
    
    /* ===========================================
       BRAND VARIABLES (Consistent)
       =========================================== */
    --primary-color: #1a2a6c;    /* Navy (logo primary) */
    --secondary-color: #f9d423;  /* Gold (logo accent) */
    --accent-color: #c0392b;     /* Red (call-to-action/buttons) */
    --accent-hover: #a93226;     /* Darker Red for hover */
    
    /* Brand Specific */
    --brand-1: #1a2a6c;          /* Navy (main) */
    --brand-2: #1a2a6c;          /* Navy (use same for consistency) */
    --brand-3: #c0392b;          /* Red (updated) */
    --accent: #f9d423;           /* Gold (primary accent) */
    
    /* ===========================================
       UI & BACKGROUND COLORS
       =========================================== */
    --bg: #ffffff;
    --text: #1f2937;
    --light: #ffffff;
    --text-light: #ffffff;
    --text-dark: #1e293b;
    --soft-white: #f8fafc;
    --warm-gray: #64748b;
    
    /* ===========================================
       FUNCTIONAL COLORS
       =========================================== */
    --international-blue: #2563eb;
    --light-blue: #60a5fa;
    --sunshine-yellow: #fbbf24;
    --bright-yellow: #fcd34d;
    --growth-green: #10b981;
    --fun-orange: #f97316;
    
    /* ===========================================
       SPACING & LAYOUT
       =========================================== */
    --radius-sm: 6px;
    --gap: 14px;
    --container: 1200px;
}

/* Basic resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: #f6f7fb;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===========================================
   TOPBAR - Updated to Navy with Gold accent
   =========================================== */
.site-topbar {
  background: var(--brand-navy);
  color: var(--text-light);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2px solid var(--brand-gold);
}

.topbar-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 3px 0;
}

.topbar-text a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.topbar-text a:hover {
  color: var(--brand-gold);
}

.email-link:hover {
  color: var(--brand-gold);
}

/* ===========================================
   HEADER MAIN - Updated to Navy
   =========================================== */
.site-header-main {
  background: var(--brand-navy);
  color: var(--light);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.header-inner {
  display: flex;
  display: -webkit-flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  position: relative;
}

/* ===========================================
   BRAND / LOGO - Fixed Vertical Alignment
   =========================================== */
.logo-container {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding-top: 10px;
  padding-bottom: 10px;
  color: inherit;
}

.logo-image-container {
  display: inline-block;
  width: 72px;
  height: 72px;
  background: var(--brand-gold);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  -webkit-transform: rotate(-2deg);
  overflow: hidden;
  flex-shrink: 0;
}

.logo-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -o-object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0px;
  margin: 0;
}

/* English Logo Text - Updated to Brand Red */
.logo-main {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--brand-red);
  line-height: 1.1;
  margin: 0;
}

.logo-subtitle {
  font-size: 1rem;
  color: var(--brand-red);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.logo-tagline {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  opacity: 0.9;
  padding-bottom: 5px;
  margin: 0;
}

.logo-slogan {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 2px;
  color: var(--brand-gold);
  margin: 0;
}

/* ===========================================
   BANGLA LANGUAGE SUPPORT - Larger Fonts
   =========================================== */
.logo-main.lang-bn {
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-family: 'Noto Sans Bengali', 'Segoe UI', Arial, sans-serif;
  margin: 0;
}

.logo-subtitle.lang-bn {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  font-family: 'Noto Sans Bengali', 'Segoe UI', Arial, sans-serif;
  margin: 0;
}

.logo-slogan.lang-bn {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: 'Noto Sans Bengali', 'Segoe UI', Arial, sans-serif;
  color: var(--brand-gold);
  margin: 0;
}

/* ===========================================
   HEADER CONTROLS - Two Line Layout
   =========================================== */
.header-controls {
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* First line: Login & Language */
.header-top-line {
  display: flex;
  margin-top: 20px;
  display: -webkit-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

/* Second line: Search */
.header-bottom-line {
  display: flex;
  display: -webkit-flex;
  justify-content: flex-end;
}

/* ===========================================
   SEARCH FORM
   =========================================== */
.search-form {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border-radius: 25px;
  padding: 2px 2px;
  min-width: 250px;
}

.search-form input {
  background: transparent;
  border: none;
  color: var(--light);
  padding: 6px 8px;
  width: 100%;
  font-size: 0.95rem;
}

.search-form input::placeholder {
  color: rgba(255,255,255,0.72);
}

.search-form input::-ms-input-placeholder {
  color: rgba(255,255,255,0.72);
}

.search-form button {
  background: none;
  border: none;
  color: var(--light);
  padding: 2px 2px;
  cursor: pointer;
  font-size: 1rem;
}

.search-form button:hover {
  color: var(--brand-gold);
}

/* ===========================================
   AUTH LINK
   =========================================== */
.auth-link {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  gap: 8px;
  color: var(--light);
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-link:hover {
  background: var(--brand-gold);
  color: var(--brand-navy);
}

/* ===========================================
   LANGUAGE SWITCH
   =========================================== */
.language-switch a {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  gap: 6px;
  color: var(--light);
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.language-switch a:hover {
  background: var(--brand-gold);
  color: var(--brand-navy);
}

.link-text {
  display: inline-block;
}

/* ===========================================
   MOBILE TOGGLE
   =========================================== */
.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--light);
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
}

/* ===========================================
   NAVIGATION - Updated with Navy + Gold
   =========================================== */
.site-nav {
  background: var(--brand-navy);
  border-top: 2px solid var(--brand-gold);
  border-bottom: 2px solid var(--brand-gold);
}

.nav-inner {
  display: flex;
  display: -webkit-flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  display: -webkit-flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.nav-item a {
  color: var(--light);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  display: block;
}

.nav-item a:hover,
.nav-item a:focus {
  background: var(--brand-gold);
  color: var(--brand-navy);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--brand-navy);
  border: 1px solid var(--brand-gold);
  opacity: 0;
  visibility: hidden;
  padding: 8px;
  border-radius: 8px;
  margin-top: 8px;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, -webkit-transform 0.3s ease;
  transform: translateY(-10px);
  -webkit-transform: translateY(-10px);
  margin-top: 15px;
}

.nav-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  -webkit-transform: translateY(0);
}

.dropdown li {
  list-style: none;
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
}

.dropdown a:hover {
  background: var(--brand-gold);
  color: var(--brand-navy);
}

.mobile-close {
  display: none;
}

.mobile-menu-utilities {
  display: none;
}

/* ===========================================
   RESPONSIVE: Mobile
   =========================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .header-inner {
    align-items: center;
    padding: 15px;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .logo-main {
    font-size: 1.5rem;
  }

  .logo-main.lang-bn {
    font-size: 2.2rem;
  }

  .logo-subtitle {
    font-size: 0.9rem;
  }

  .logo-subtitle.lang-bn {
    font-size: 1.8rem;
  }

  .logo-slogan {
    font-size: 0.6rem;
  }

  .logo-slogan.lang-bn {
    font-size: 1.2rem;
  }

  .logo-tagline {
    font-size: 0.7rem;
  }

  .link-text {
    display: none;
  }

  /* Header Controls Mobile */
  .header-controls {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    position: relative;
  }

  .header-top-line {
    display: none;
  }

  .header-bottom-line {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: 10px;
  }

  /* Mobile toggle animation */
  .mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    -webkit-transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    -webkit-transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Mobile Navigation */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--brand-navy);
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    z-index: 1100;
    overflow-y: auto;
    padding-top: 60px;
    width: 100%;
    height: 100%;
    border: none;
  }

  .site-nav.nav-open {
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }

  .mobile-close {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1200;
  }

  .mobile-close:hover {
    color: var(--brand-gold);
  }

  .nav-inner {
    display: block;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-bottom: 30px;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-item a {
    display: block;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 0;
  }

  /* Mobile dropdown styles */
  .nav-dropdown .dropdown {
    position: static;
    display: none;
    background: rgba(0,0,0,0.2);
    padding: 0;
    margin: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    -webkit-transform: none;
    border: none;
  }

  .nav-dropdown.open .dropdown {
    display: block;
  }

  .dropdown a {
    padding: 12px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1rem;
  }

  /* Mobile utilities */
  .mobile-menu-utilities {
    display: block;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
  }

  .mobile-menu-utilities .header-top-line {
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }

  .mobile-menu-utilities .header-bottom-line {
    display: flex;
    display: -webkit-flex;
  }

  .mobile-menu-utilities .search-form {
    width: 100%;
  }

  .mobile-menu-utilities .auth-link,
  .mobile-menu-utilities .language-switch a {
    display: flex;
    display: -webkit-flex;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px;
  }

  /* Logo image on mobile */
  .logo-image-container {
    width: 56px;
    height: 56px;
  }
}

/* ===========================================
   RESPONSIVE: Small Mobile
   =========================================== */
@media (max-width: 480px) {
  .logo-image-container {
    width: 48px;
    height: 48px;
  }

  .logo-main {
    font-size: 1.2rem;
  }

  .logo-main.lang-bn {
    font-size: 1.8rem;
  }

  .logo-subtitle {
    font-size: 0.7rem;
  }

  .logo-subtitle.lang-bn {
    font-size: 1.4rem;
  }

  .logo-slogan {
    font-size: 0.5rem;
  }

  .logo-slogan.lang-bn {
    font-size: 1.0rem;
  }
}

/* ===========================================
   EDGE & IE FALLBACKS
   =========================================== */
@supports (-ms-ime-align: auto) {
  /* Edge 16+ */
  .header-controls {
    display: -ms-flexbox;
    -ms-flex-direction: column;
    -ms-flex-align: end;
  }

  .search-form {
    display: -ms-flexbox;
    -ms-flex-align: center;
  }

  .site-nav.nav-open {
    transform: translateX(0);
  }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /* IE10+ CSS styles go here */
  .header-controls {
    display: -ms-flexbox;
    -ms-flex-direction: column;
  }

  .search-form {
    display: -ms-flexbox;
  }

  .nav-list {
    display: -ms-flexbox;
  }

  .site-nav {
    background: var(--brand-navy);
  }

  .site-nav.nav-open {
    left: 0;
  }
}