/* Mobile First Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    padding-top: var(--header-offset);
    text-decoration: none;
}
:root {
  --header-height: 3.5rem;
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);
  --body-font: "Roboto", sans-serif;
  --biggest-font-size: 2rem;
  --big-font-size: 1.5rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --font-light: 300;
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;
  --z-tooltip: 10;
  --z-fixed: 100;
  --header-offset: 70px;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  
  
}
html{
    scroll-behavior: smooth;
}

/* ১. গ্লোবাল ফিক্স */
.container.nav-wrapper {
    display: flex;
    justify-content: space-between; /* লোগোকে বামে আর মেনুকে ডানে রাখবে */
    align-items: center;
    width: 95%; /* একদম কিনারায় লেগে না থাকার জন্য */
    max-width: 1200px;
    margin: 0 auto; /* মাঝখানে রাখার জন্য */
    position: relative;
}

/* ২. লোগো ফিক্স */
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #c2ccd6;
    margin-left: 0 !important; /* নেগেটিভ মার্জিন একদম বাদ */
    white-space: nowrap; /* টেক্সট যেন দুই লাইনে না ভেঙে যায় */
}

/* ৩. মেনু বার ফিক্স */
.nav-container {
    flex-grow: 1; /* মেনুকে মাঝের জায়গা দিবে */
    display: flex;
    justify-content: center; /* মেনু আইটেমগুলোকে মাঝখানে রাখবে */
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
    padding: 0;
    margin: 0;
}

/* ৪. সোশ্যাল আইকন ফিক্স (ডান দিকে দেখানোর জন্য) */
.social-vertical {
    display: flex;
    margin-right: 15px;
}

.social-vertical a {
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
    padding: 2px;
}


/* Header & Nav */
.main-header {
            background: rgb(18, 18, 60);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: var(--z-fixed);
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            border-radius: 5px;
        }

        .nav-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px;
        }

        .logo {
            font-size: 10px;
            color: #c2ccd6;
         }

        .mobile-toggler {
            color: white;
            font-size: 24px;
            cursor: pointer; }

        /* Mobile Nav */
        .nav-container {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: rgb(45, 45, 148);
        }

        #menuIcon {
    transition: transform 0.3s ease;
}

.nav-container.active ~ .mobile-toggler #menuIcon {
    transform: rotate(90deg);
    
}

        .nav-container.active { 
            display: block;
         }
        .nav-list { 
            list-style: none;
             padding: 20px; 
             display: flex;
        flex-direction: column; /* এটিই মেইন কাজ করবে */
        align-items: flex-start; /* লেখাগুলো বাম দিক থেকে শুরু হবে */
        gap: 10px;
 
            }
        .nav-item {
             border-bottom: 1px solid rgba(255,255,255,0.1); 
            }
        .menu-line { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
        }
        .nav-item a { 
            color: white;
             text-decoration: none; 
             display: block; 
             padding: 15px 0;
              font-size: 14px; 
              text-transform: uppercase; 
            }
        .toggle-icon {
             color: white; 
             font-size: 20px; 
             cursor: pointer; 
             padding: 10px; }

        /* Submenu & Sub-Submenu Logic (Mobile) */
        .submenu, .sub-submenu {
            display: none;
            list-style: none;
            background: rgba(0,0,0,0.2);
            padding-left: 20px;
        }

        /* Toggle Classes */
        .has-submenu.open > .submenu {
             display: block; 
            }
        .has-nested.open > .sub-submenu {
             display: block; 
            }

            /* Make sure header is positioned */

/* Vertical social icons */
.social-vertical {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding-right: 3px;
}

.social-vertical a {
  width: 5px;
  height: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;

  transition: 0.3s;
}

.social-vertical a:hover {
 color: rgb(98, 98, 156);
}




/*========================= */
@media (min-width: 768px){

  body{ padding-top: 76px; 
  }

 .nav-container {
       
        background: rgb(45, 45, 148);
    }
    

  .logo{ font-size: 18px; }

}

/* =========================
   DESKTOP (>=1024px)
   ========================= */
@media (min-width: 1023px){
   

  /* Desktop nav (your original behavior but cleaner) */
  .mobile-toggler, .toggle-icon {
  display: none !important;
  }

  /* Social icons a bit bigger */
  .social-vertical{
    flex-direction: column;
    right: 24px;
    gap: 8px;
  }

  .social-vertical a{
    width: 20px;
    height: 20px;
  }

  .nav-container{
    display: flex !important;
    position: static !important;
    width: auto !important;
    background: transparent !important;
    opacity: 1 !important;
   visibility: visible !important;
  }

 

    /* নিচের কন্টেন্ট যাতে হেডারের নিচে ঢাকা না পড়ে */
    main {
        padding-top: 120px; 
      
    }

  .nav-list{
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    padding: 0 !important;
  }

  .nav-item{
    border: none;
    padding: 0 10px;
    position: relative;
  }           


 
  .has-submenu:hover > .submenu{
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding-left: 0;
  }

  .has-nested{ position: relative; }
  .has-nested:hover > .sub-submenu{
    display: block;
    position: absolute;
    left: 100%;
    top: 0;
    width: 220px;
    background: #f9f9f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding-left: 0;
  }

  .submenu a,
  .sub-submenu a{
    color: #333 !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid #eee;
    text-transform: capitalize;
  }

  .submenu a:hover,
  .sub-submenu a:hover{
    background: #f0f0f0;
  }

.logo{
    font-size: 30px;
    margin-right: 20px;
    margin-left: -10%;
}

 .nav-container {
        display: none; /* জাভাস্ক্রিপ্ট দিয়ে টগল হবে */
        position: absolute;
        top: 100%;
        left: 0;
        width: 70%;
        background: rgb(45, 45, 148);
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
    }
 .main-header {
        width: 80%; /* ৭0% থেকে বাড়িয়ে ১০০% করুন যাতে সব দেখা যায় */
        left: 10%;
        top: 3rem;
        position: fixed;
        padding: 10px ;
      
    }
           
          
}







