
.main-header{
  position:sticky;
  top:0;
  background:var(--primary);
  z-index:1000;
  padding:1.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container{
  max-width:1200px;
  margin:0 auto;
  padding:0 1.5rem;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:2rem;
  flex-wrap:wrap;
}

.header-container > * {
  flex-basis:auto;
}

.header-left {
  flex:1;
  min-width:0;
}

.header-nav {
  flex-shrink:0;
}

.header-left{
  display:flex;
  gap:1rem;
  align-items:flex-end;
  flex:1;
}

.header-profile{
  position:relative;
}

.profile-image{
  width:160px;
  height:160px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid #fff;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  margin-bottom:-60px;
  background:#fff;
}

.header-branding{
  padding-bottom:10px;
}

.header-title{
  margin:0;
  font-size:2rem;
  font-weight:700;
  color:#fff;
}

.header-tagline{
  margin:-10px 0px 0 4px;
  font-size:0.875rem;
  font-weight:700;
  color:#000;
  letter-spacing:0.5px;
}

.header-nav{
  display:flex;
  align-items:center;
  gap:2rem;
}

.header-nav a{
  text-decoration:none;
  color:#000;
  font-weight:600;
  font-size:0.95rem;
  transition:opacity 0.2s;
}

.header-nav a:hover{
  opacity:0.7;
}

.subscriber-section{
  display:flex;
  align-items:center;
  gap:1rem;
  padding-left:1rem;
  border-left:2px solid rgba(0,0,0,0.2);
}

.subscriber-count{
  font-weight:700;
  color:#000;
  font-size:0.95rem;
}

.subscribe-btn{
  background:#000;
  color:var(--primary)!important;
  padding:0.5rem 1rem;
  border-radius:6px;
  font-weight:700;
  text-decoration:none;
  transition:background 0.2s;
}

.subscribe-btn:hover{
  background:rgba(0,0,0,0.8);
}

@media(max-width:768px){
  .header-container{
    flex-direction:column;
    gap:1rem;
  }
  
  .header-left{
    width:100%;
    align-items:center;
  }
  
  .header-nav{
    width:100%;
    flex-wrap:wrap;
    gap:1rem;
    justify-content: center;
    padding-right: 1rem;
  }
  
  .subscriber-section{
            flex: 1;
        border-left: none;
        border-top: 2px solid rgba(0, 0, 0, 0.2);
        padding: 10px 0 0 0;
        justify-content: center;
        margin-bottom: 10px;
  }
  
  .header-title{
    font-size: 1.6rem;
        margin-bottom: 5px;
        text-align: right;
  }
  
  .header-tagline{
    font-size:0.75rem;
    text-align: right;
  }
  
  .profile-image {
    width: 100px;
    height: 100px;
    margin-left: -22px;
    border: 2px solid #fff;
  }

  .main-header {
    padding: 0;
  }
}
