:root {
  /* Brand Palette */
  --color-green: #8cc63f; 
  --color-blue: #00a7e1;
  --color-yellow: #ffcd08;
  --color-red: #ed0677;
  --color-orange: #f7941d;
   --color-purple: #540D6E;
   --color-cream: #FFFDF0;

  
  /* Functional Palette for hovering */
  --color-green-dark: #0D9668;
  --color-purple-dark: #3D0951; 
  --color-blue-dark: #3B82F6;  
  --color-red-dark: #D6284D;  
}    

	/* Central Utility: Colorful Brand Acronym Styling */
    .brand-name {
      color: #000000;
      font-size: 1.2em;        /* Scales up relative to whatever heading it sits in */
      font-weight: strong;
      letter-spacing: -2px;
    }

    /* Universal Period Accent Colors */
    .brand-name .dot-blue   { color: var(--color-blue); font-size: 1.3em; line-height: 0; }
    .brand-name .dot-yellow { color: var(--color-yellow); font-size: 1.3em; line-height: 0; }
    .brand-name .dot-red    { color: var(--color-red); font-size: 1.3em; line-height: 0; }
    .brand-name .dot-green  { color: var(--color-green); font-size: 1.3em; line-height: 0; }
    .brand-name .dot-orange { color: var(--color-orange); font-size: 1.3em; line-height: 0; }
    /* Header Override: Change the yellow dot to purple on the yellow background */
    /*header .brand-name .dot-yellow {   color: var(--color-purple); } */
	
	body { 
      font-family: 'Segoe UI', sans-serif; 
      margin: 0; 
      padding: 0; 
      color: #333; 
      
      /* --- GLOBAL FONT SIZE --- */
      font-size: 1.2rem;      /* Bumps the base size up significantly (approx 20px) */
      line-height: 1.6;       /* Adds more comfortable breathing room between text lines */
    }
    
    /* Header Styles with Logo Integration */
    header { background: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 5px solid var(--color-blue); }
    .logo-container { display: flex; align-items: center; gap: 10px; }
    .logo-img { height: 50px; width: auto; object-fit: contain; }
    .logo-text { font-size: 1.5rem; font-weight: bold; color: #0E1621; margin: 0; }
	
    nav a { margin-left: 15px; text-decoration: none; color: #0E1621; font-weight: bold; }
    nav a:hover { text-decoration: underline; }
	
	/* Base Navigation Styling */
    .site-nav {
      display: flex;
      align-items: center;
      gap: 1.5rem;   
      font-family: 'Segoe UI', system-ui, sans-serif;
      position: relative;
    }

    /* Hide the toggle checkbox everywhere */
    .menu-toggle {
      display: none;
    }

    /* Base link and trigger styles */
    .nav-links a, 
    .dropdown-trigger {
      font-size: 1.4rem;    
      color: #222;
      text-decoration: none;
      padding: 0.5rem 0.75rem;
      transition: color 0.15s ease;
    }

    /* Reset button formatting for the dropdown */
    .dropdown-trigger {
      background: none;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.25rem;
      width: 100%;
    }

    /* Language Switcher Link Button styling */
    .lang-switch-btn {
      background-color: var(--color-blue);
      color: #FFFFFF !important;
      padding: 0.4rem 0.8rem;
      border-radius: 6px;
      font-size: 0.95rem;
      transition: background-color 0.2s ease;
    }
    .lang-switch-btn:hover {
      background-color: var(--color-blue-dark);
      text-decoration: none !important;
    }

    /* --- DESKTOP VIEW (Screens wider than 768px) --- */
    @media (min-width: 769px) {
      .menu-button {
        display: none; /* Hide hamburger icon on desktop */
      }

      .nav-links {
        display: flex;
        align-items: center;
        gap: 1.5rem;
      }

      .nav-links a:hover, 
      .dropdown:hover .dropdown-trigger {
        color: var(--color-orange);
      }

      /* Desktop Hover Mechanics */
      .dropdown { position: relative; }
      
      .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        min-width: 220px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
        border: 2px solid #540D6E;
        border-radius: 8px;
        z-index: 100;
        padding: 0.5rem 0;
        margin-top: 0.25rem;
      }

      /* Make sure dropdown targets align gracefully when right-to-left */
      html[dir="rtl"] .dropdown-menu {
        left: auto;
        right: 0;
      }

      .dropdown:hover .dropdown-menu {
        display: block;
      }

      .dropdown-menu a {
        display: block;
        padding: 0.6rem 1.2rem;
      }

      .dropdown-menu a:hover {
        background-color: #fffbf7;
        color:  var(--color-orange);
      }
      
      .dropdown:hover .dropdown-trigger .arrow {
        transform: rotate(180deg);
      }
    }
	
	/* Creates an invisible hover-bridge extension down and to the right */
.dropdown-menu::after {
  content: "";
  position: absolute;
  top: -10px;    /* Extends up to cover the 0.25rem margin gap */
  right: -35px;  /* Extends 35px out past the right border */
  left: 0;
  bottom: -10px; /* Gives a little cushion at the bottom */
  background: transparent;
  z-index: -1;   /* Sits safely behind your text links */
}

/* Adjust the shield position dynamically if the page is in RTL layout mode */
html[dir="rtl"] .dropdown-menu::after {
  right: 0;
  left: -35px;
}

    /* --- MOBILE VIEW (Phone Screens 768px and smaller) --- */
    @media (max-width: 768px) {
      /* Style the Mobile Hamburger Button Container */
      .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 110;
      }

      /* Create the middle line of the hamburger */
      .hamburger {
        position: relative;
        display: block;
        width: 24px;
        height: 3px;
        background-color: #222;
        transition: background 0.2s ease;
      }

      /* Create top and bottom lines of the hamburger */
      .hamburger::before,
      .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 24px;
        height: 3px;
        background-color: #222;
        transition: transform 0.2s ease, top 0.2s ease;
      }
      .hamburger::before { top: -8px; }
      .hamburger::after { top: 8px; }

      /* Mobile Links Panel: Hidden accordion that slides/drops down */
      .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        min-width: 260px;
        background-color: #ffffff;
        border: 2px solid #540D6E;
        border-radius: 8px;
        box-shadow: 0px 8px 24px rgba(0,0,0,0.15);
        padding: 1rem 0;
        z-index: 105;
        flex-direction: column;
        gap: 0.5rem;
      }

      /* Align mobile drop container to the left side if RTL mode is on */
      html[dir="rtl"] .nav-links {
        right: auto;
        left: 0;
      }

      /* When the hidden checkbox is checked, show the navigation list */
      .menu-toggle:checked ~ .nav-links {
        display: flex;
      }

      /* Transform Hamburger Icon into an "X" Close Mark when active */
      .menu-toggle:checked ~ .menu-button .hamburger {
        background: transparent;
      }
      .menu-toggle:checked ~ .menu-button .hamburger::before {
        top: 0;
        transform: rotate(45deg);
      }
      .menu-toggle:checked ~ .menu-button .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
      }

      /* Make mobile link layout clean and easy to press with a thumb */
      .nav-links a, 
      .dropdown-trigger {
        padding: 0.75rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
      }

      html[dir="rtl"] .nav-links a,
      html[dir="rtl"] .dropdown-trigger {
        text-align: right;
      }

      /* Mobile Submenu Behavior: Render items inline beneath the header */
      .dropdown-menu {
        background-color: #fffbf7;
        border-top: 1px solid #eaeaea;
        border-bottom: 1px solid #eaeaea;
        padding: 0.25rem 0;
      }

      .dropdown-menu a {
        padding-left: 2.5rem; /* Indent sub-links so they look nested */
        font-size: 0.95rem;
      }

      html[dir="rtl"] .dropdown-menu a {
        padding-left: 1.5rem;
        padding-right: 2.5rem;
      }
    }

  /* Hero Section with Fallback Static Image */
.hero-section {
  position: relative;
  /* Keep your original background configurations intact as your dynamic backup */
  background-image: url('/assets/images/background.jfif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 60vh;
  min-height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden; /* CRITICAL: Prevents any video overflow sizing leaks from breaking your width wrapper */
}

/* New Absolute Layout Positioning Rule for the MP4 Video Layer */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Forces the MP4 file to scale exactly like background-size: cover */
  z-index: 0; /* Sits at the absolute bottom of the stack layer */
}

/* Vibrant overlay to protect text readability over the image/video */
.hero-overlay {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(84, 13, 110, 0.4); /* Swapped transparent for a 40% translucent brand purple tint overlay */
  z-index: 1; /* Sits directly on top of the video to keep your text clear, sharp, and accessible */
}
    /* Content layers safely placed above the overlay */
    .hero-content {
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 20px;
      max-width: 800px;
    }
    .hero-content h2 { 
      font-size: 3rem; 
      margin: 0 0 10px 0; 
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); 
    }
    .hero-content p {
      font-size: 1.2rem;
      text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    }
	
    /* Layout Grids */
    .container { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
    .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
    .card { padding: 25px; border-radius: 12px; color: white; }
	
    .card-blue { background: var(--color-blue) }
	.card-red { background: var(--color-red) }
	.card-green { background: var(--color-green) }
	.card-yellow { background: var(--color-yellow) }
	.card-orange { background: var(--color-yellow) }
    /*.card-green { background: #5b921a }
    .card-purple { background: #8B5CF6; }
    .card-yellow { background: #D99100; }
    .card-orange { background: #c66b00 } */
	 
 .card-green, .card-yellow, .card-orange {
  color: #1e293b !important; /* Dark Slate on light cards */
}

.card-blue, .card-red {
  color: #ffffff; /* White on dark cards */
}
	
	/* --- INTERACTIVE GRID CARD HOVERS --- */

    /* Universal card movement and mouse interaction */
    .card {
      transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
      cursor: pointer;
    }
    .card:hover {
      transform: translateY(-4px); /* Gently pops the card up */
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* Adds a deep soft drop shadow */
    }
	
/* 1. Target the links directly inside your specific grid */
.grid a {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

/* 2. Force the card to take up 100% height inside that flex link */
.grid a .card {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* --- CARD SVG IMAGE ALIGNMENT --- */

.card-icon {
  width: 250px;         /* Sets the bounding width of the icon box */
  height: 250px;        /* Sets the bounding height of the icon box */
  margin-bottom: 1px; /* Creates clean vertical breathing room above the h4 */
}

 
.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* Smooth transition for the filter effect */
  transition: filter 0.25s ease-in-out; 
}

/* 2. Light it up when the parent .card is hovered */
.card:hover .card-icon img {
  /* Boosts brightness by 30% and adds a crisp white drop-shadow glow */
  filter: brightness(1.3) drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}


    /* Vibrant color-shift changes when hovered 
    .card-blue:hover { background-color: var(--color-blue-dark) }
    .card-green:hover { background-color: #059669; }
    .card-purple:hover { background-color: #400754; }
    .card-orange:hover { background-color: #C25100; }
    .card-red:hover { background-color: #9E0B2D; }
    .card-yellow:hover { background-color: #B57500; } */
    	
	/* --- EXPANDED BRAND FOOTER STYLES --- */
    footer {
      background-color: var(--color-blue); 
      color: #FFFFFF;            
      padding: 50px 20px 20px 20px;
      margin-top: 60px;
      font-size: 1.1rem;
    }

    .footer-container {
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      padding-bottom: 30px;
    }

    .footer-column h4 {
      color: white;       
      font-size: 1.4rem;
      margin-top: 0;
      margin-bottom: 20px;
      border-bottom: 2px solid white;
      padding-bottom: 5px;
      display: inline-block;
    }

    .footer-column p {
      margin: 8px 0;
    }

    .footer-column a {
      color: #FFFFFF;
      text-decoration: none;
    }
    .footer-column a:hover {
      text-decoration: underline;
    }

    /*  Sign Up Button   */
    footer .newsletter-btn {	  
      display: inline-block;
	  color: var(--color-blue);  
      background-color: #FFFFFF;       	  
      font-weight: 800;           
      padding: 14px 24px;
      border-radius: 8px;
      margin-top: 12px;
      transition: all 0.2s ease;
      text-decoration: none !important;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      text-align: center;
    }
    footer .newsletter-btn:hover {    
      color: var(--color-blue);      
      transform: translateY(-3px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }
	
	/* Increase font size specifically for Hebrew */    
	:lang(he) .newsletter-btn {
    font-family: 'Segoe UI', 'Arial', sans-serif !important;
    font-weight: 700 !important;     
	 font-size: 1.45rem;  
    /* Force the browser to render using the Hebrew-supporting font glyphs */
    font-feature-settings: "kern" on;
}

    /* SVG Icon Button Integration Container */
    .social-links {
      display: flex;
      gap: 16px;
      margin-top: 15px;
    }

    .social-icon-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.15);
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      text-decoration: none !important;
    }
    
    /* Fill rules target the vector paths directly inside the SVG */
    .social-icon-btn svg {
      width: 22px;
      height: 22px;
      fill: #FFFFFF; 
      transition: fill 0.2s ease;
    }

    /* Platform Color Theme Snaps */
    .social-icon-btn.fb:hover { background-color: #1877F2; }
    .social-icon-btn.ig:hover { background-color: #E1306C; }
    .social-icon-btn.yt:hover { background-color: #FF0000; }
    
    .social-icon-btn:hover {
      transform: scale(1.1);
    }
	
	/* Central Utility: Thick Border Card Layout */
    .vibrant-box {
      border-style: solid;
      border-width: 6px;          /* Thick playful border */
      border-radius: 16px;        /* Smooth rounded corners */
      padding: 30px;              /* Breathing room inside the border */
      background-color: #FFFFFF;  /* Crisp white background so text remains readable */
      box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05); /* Fun subtle depth flat shadow */
    }
	
