/* header.css - minimal, safe header styling (prevents overlays blocking clicks) */
/* ===== Global Variables (used by header/footer and some pages) ===== */
:root {
  --primary-color: #1a3a5f;
  --secondary-color: #2a5a8c;
  --accent-color: #e6a23c;
  --accent-secondary: #16a34a;
  --premium-blue: #1e88e5;
  --premium-green: #43a047;
  --light-bg: #f8fafc;
  --dark-bg: #0f172a;
  --text-color: #333;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --border-color: #e2e8f0;
  --transition: all 0.3s ease;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

/* ===== Minimal Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ===== Base Typography ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: white;
}

/* ===== Base Links ===== */
a { color: inherit; text-decoration: none; transition: var(--transition); }

/* ===== Shared Layout Helper ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.header{
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #fff;
}

.container{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.blocktop{
  padding: 12px 0;
}

.topflexdiv{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footerdivs_top{
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}

.topleftalign{
  display: flex;
  align-items: center;
  gap: 12px;
}

.imagetop{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.toplogo{
  font-weight: 700;
  letter-spacing: 0.5px;
}

.main-navigation{
  display: flex;
  align-items: center;
  gap: 14px;
}

.header_menu{
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.topdivlogin{
  display: flex;
  align-items: center;
  gap: 12px;
}

.topicons{
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-button{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}

/* Ensure header links are clickable even if other layers exist */
.header a, .header button{
  pointer-events: auto;
}

/* Language selector */
.language-selector{
  position: relative;
}

.current-language{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  border-radius: 10px;
}

.language-dropdown{
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 10001;
}

.language-dropdown.open{
  display: block;
}

.language-option{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
}

.language-option:hover{
  background: rgba(0,0,0,0.06);
}


@media (max-width: 900px){
  .main-navigation, .topdivlogin{
    display: none;
  }

}

/* Flag Icon CSS compatibility: force proper flag sizing */
.flag-icon{
  display: inline-block;
  width: 24px;
  height: 16px;
  line-height: 16px;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  box-shadow: none;
  flex: 0 0 auto;
}

/* Align nicely inside language options */
.language-option .flag-icon{
  margin-right: 10px;
}

/* Header + nav only */

.language-dropdown { display: none; }
.language-dropdown.open { display: block; }

.header {
  background: linear-gradient(135deg, #0f172a 0%, #1a3a5f 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.footerdivs_top {
  display: flex;
  align-items: center;
  gap: 30px;
}

.topleftalign {
  display: flex;
  align-items: center;
  gap: 20px;
}

.imagetop {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.toplogo {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
}

.imageicon { border-radius: 6px; }

.header_menu {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.header_menu:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.topdivlogin {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topicons { display: flex; gap: 10px; }

.topicons .image { opacity: 0.8; transition: opacity 0.3s ease; }
.topicons .image:hover { opacity: 1; }


.main-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* SIGN UP link */
.signup-link {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

/* Generic CTA button used in header (LOG IN) */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 10px;

  background: #e6a23c;      /* or your accent */
  color: #0f172a;
  font-weight: 700;

  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Optional: tune LOG IN button specifically */
.login-btn {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.login-btn:hover {
  background: rgba(255,255,255,0.20);
}

/* ===== Language Selector ===== */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.current-language {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: white;
    min-width: 80px;
}

.current-language:hover {
    background: rgba(255, 255, 255, 0.15);
}

.current-language .lang-code {
    font-weight: 600;
    margin: 0 5px;
    color: white;
}

.current-language i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-left: auto;
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.language-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option.active {
    background: #f0f7ff;
}

.language-option .lang-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.language-option .lang-code {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    margin: 0;
    font-weight: 600;
}

/* Flag Icons */
.flag-icon {
    display: inline-block;
    width: 20px;
    height: 15px;
    background-size: cover;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flag-icon-gb {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%2300247d' d='M0 0v30h60V0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0 0l60 30m0-30L0 30'/%3E%3Cpath stroke='%23CF142B' stroke-width='4' d='M0 0l60 30m0-30L0 30' clip-path='url(%23b)'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23CF142B' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/g%3E%3C/svg%3E");
}

.flag-icon-es {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23C60B1E' d='M0 0h60v30H0z'/%3E%3Cpath fill='%23FFC400' d='M0 10h60v10H0z'/%3E%3C/g%3E%3C/svg%3E");
}

.flag-icon-fr {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23002654' d='M0 0h20v30H0z'/%3E%3Cpath fill='%23fff' d='M20 0h20v30H20z'/%3E%3Cpath fill='%23CE1126' d='M40 0h20v30H40z'/%3E%3C/g%3E%3C/svg%3E");
}

.flag-icon-it {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23009244' d='M0 0h20v30H0z'/%3E%3Cpath fill='%23fff' d='M20 0h20v30H20z'/%3E%3Cpath fill='%23CE2B37' d='M40 0h20v30H40z'/%3E%3C/g%3E%3C/svg%3E");
}

.flag-icon-ru {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23fff' d='M0 0h60v10H0z'/%3E%3Cpath fill='%230031A4' d='M0 10h60v10H0z'/%3E%3Cpath fill='%23DA291C' d='M0 20h60v10H0z'/%3E%3C/g%3E%3C/svg%3E");
}

/* NEW FLAG ICONS - German and Chinese */
.flag-icon-de {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23000000' d='M0 0h60v10H0z'/%3E%3Cpath fill='%23DD0000' d='M0 10h60v10H0z'/%3E%3Cpath fill='%23FFCC00' d='M0 20h60v10H0z'/%3E%3C/g%3E%3C/svg%3E");
}

.flag-icon-cn, .flag-icon-zh {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23DE2910' d='M0 0h60v30H0z'/%3E%3Cg fill='%23FFDE00'%3E%3Cpath d='M30 12l3.09 9.5h10l-8.09 5.9 3.09 9.5-8.09-5.9-8.09 5.9 3.09-9.5-8.09-5.9h10z'/%3E%3Cpath d='M12 8l2 6h6.5L14.8 13l2 6-5.3-3.8-5.3 3.8 2-6L3.5 14H10z' transform='translate(36-4) scale(.6)'/%3E%3Cpath d='M12 8l2 6h6.5L14.8 13l2 6-5.3-3.8-5.3 3.8 2-6L3.5 14H10z' transform='translate(36 20) scale(.6)'/%3E%3Cpath d='M12 8l2 6h6.5L14.8 13l2 6-5.3-3.8-5.3 3.8 2-6L3.5 14H10z' transform='translate(4 8) scale(.6)'/%3E%3Cpath d='M12 8l2 6h6.5L14.8 13l2 6-5.3-3.8-5.3 3.8 2-6L3.5 14H10z' transform='translate(4 24) scale(.6)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}






/* ===== Buttons ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), #f59e0b);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    gap: 10px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #f59e0b, var(--accent-color));
}

.primary-btn {
    background: linear-gradient(135deg, #e6a23c 0%, #f59e0b 100%);
    color: white;
    padding: 16px 32px;
}

.secondary-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--light-gray);
}

.secondary-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}


