.tc-header__top {
    /* display: none !important; */
    padding: 5px 0px 3px !important;
    font-size: 12px !important;
}
.tc-header__top .fs-7{
    font-size: 12px !important;
}

.tgmenu__nav {
    justify-content: space-between !important;
}

.gallery img{
    height: 200px;
    width: 400px;
}

.about img {
    width: 100px;
}

.homeusers {
    background: #ff9169;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    margin-right: 10px;
}

.homedate {
    float: right;
    margin-top: 4px;
}

.homeregister {
    margin-top: 10px;    padding:10px;
                                        background: #e25b14ba;     width: 100%;
                                        text-align: center;
                                        justify-content: center;
                                        background: #f5d8cf;
    color: orangered;
    border: 1px solid orangered;
}
.homeregister2 {
    margin-top: 10px;    padding:10px;
                                        background: #e25b14ba;  
                                        text-align: center;
                                        justify-content: center;
}

.homeregister:hover, .homeregister2:hover {
    background: orangered;
}

/* #sticky-header {
    position: fixed;
    width: 100%;
}

.transparent-header.header-style-2 .tc-header__area {
    background: rgb(5 20 73 / 99%);
} */

.txtcenter {
    text-align: center;
    font-weight: normal !important;
}

.txtdesc{
    font-size: 17px !important;
    margin-top: 30px;
    padding: 0px 20px;
}

.ds-3 {
    font-size: 30px !important;
}

@media (max-width: 1024px) {
    .scroll-to-target {
        display: none !important;
    }
    .homeimg {
        display: flex !important
    ;
        flex-flow: column;
        /* justify-content: center; */
        align-items: center;
    }
    .homeimg img {
        align-self: center !important;
    }
    .homeimg h5 {
        text-align: center;
    }
    .hover-up {
        text-align: center;
    }
    .hover-up p {
        width: 100%;
        text-align: left;
        padding: 20px 20px;
    }
    .isnotmobile {
        display: none !important;
    }
    .panddingmobilebottom {
        padding-bottom: 20px !important;
    }
    .panddingmobiletop {
        padding-top: 20px !important;
    }
    .counter-area {
        padding: 20px;
    }
    .tgmenu__nav {
        justify-content: space-around!important;
    }
    .hover-up.events>div {
        padding: 30px 10px !important;
    }
    .boxdiaspora {
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }
    .boxdiaspora p {
        text-align: left;
        padding-top: 20px;
    }
    .contactmobile {
        padding: 30px 10px;
    }
}


.containertop article{
    background: #ff7d39ba;
    padding: 50px;
    color: white;
    border-radius: 15px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Helvetica, Arial;
  }
  
  
  .containertop {
    max-width: 980px;
    margin: 40px auto;
    /* padding: 0 20px; */
  }
  
  .cardtop {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    backdrop-filter: blur(8px);
  }
  
  .headertop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
  }
  
  .pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 orangered;
    animation: pulse 1.75s infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 orangered }
    70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
  }
  
  .status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: white;
    background: coral;
    padding: 8px 12px;
    border-radius: 999px;
  }

  .existuser {
background: orangered;
color: white;
left: 50%;
top: 10px;
transform: translateX(-50%);
  }
  
  .desc { color: var(--muted); margin-top: 6px;     text-indent: 25px; }
  
  .stats {
    display: grid;
    gap: 20px;
    margin-top: 22px;
  }
  
  .metric {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: #ffbb98;
    border: 1px solid rgba(255,255,255,.06);
  }
  
  .metric h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
  }
  
  .metric .value {
    font-weight: 800;
    font-size: 1.6rem;
  }
  
  .people {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .avatars { display: inline-flex; }
  .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: .85rem;
    font-weight: 700;
    color: white;
    background: coral;
    border: 2px solid var(--card);
    margin-left: -8px;
  }
  .avatar:first-child { margin-left: 0; }
  
  .more { font-size: .9rem; color: var(--muted); }
  
  .bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,.06);
    border-radius: 999px;
    overflow: hidden;
  }
  .bar > span {
    display: block;
    height: 100%;
    width: var(--progress, 0%);
    background: orangered;
  }
  
  .footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .95rem;
  }
  
  .cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    background: coral;
    color: white;
    font-weight: 700;
    border: none;
    box-shadow: var(--shadow);
  }
  .cta:hover { filter: brightness(1.05); }


  #loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    overflow: hidden;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);

    display: block;
    text-align: center;
    padding-top: 20%;
    color: white;
    font-size: 20px;
  }


  /* === Rugăciunea activă — overlay + text derulant === */
.containertop.praycurrent {
    position: relative; /* permite suprapunerea elementelor interne */
    overflow: hidden; /* ascunde textul în afara secțiunii */
  }
  
  /* Overlay-ul peste secțiunea Rugăciunea activă */
  .overlay-prayer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    overflow: hidden;
    z-index: 9999; /* 🔥 adus deasupra tuturor */
    background: rgba(0, 0, 0, 0.85); /* fundal închis, translucid */
    animation: fadeIn 0.5s ease forwards;
    /* border-radius: 15px; */
  }
  
  

  .scroll-text {
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    padding: 20px 30px;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    z-index: 99;
  
    /* Doar prima animație pornește automat */
    animation: animatie1 70s linear infinite;
  }

  .scroll-text p {
    font-family: cursive !important;
  }
  
  /* 🔼 Prima animație – urcă și dispare sus */
  @keyframes animatie1 {
    0% {
      bottom: -25%;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    95% {
      bottom: 100%;
      opacity: 1;
    }
    99% {
      opacity: 0;
    }
    100% {
      bottom: 100%;
      opacity: 0;
    }
  }
  
  
  
  
  @media (max-width: 768px) {
    .scroll-text {
      position: absolute;
      left: 50%;
      top: 0;
      transform: translate(-50%, 100%); /* începe complet jos */
      animation: scrollUpMobile 70s linear infinite;
      font-size: 16px;
      line-height: 1.6;
      padding: 0px;
      width: 90%;
    }

    .scroll-text p {
      font-family: sans-serif !important;
      background: #141414c2;
    }
  
    @keyframes scrollUpMobile {
      0% {
        transform: translate(-50%, 50%);
        opacity: 0;
      }
      1% {
        transform: translate(-50%, 50%);
        opacity: 1;
      }
      98% {
        transform: translate(-50%, -50%);
        opacity: 1;
      }
      99% {
        transform: translate(-50%, -50%);
        opacity: 0;
      }
      100% {
        transform: translate(-50%, 50%);
        opacity: 0;
      }
    }
    
  }
  
  
  /* Secțiunea „Top utilizatori online” fixată în colțul dreapta-sus */
  .top-users {
    position: absolute;
    top: 15px;
    left: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 8px 16px;
    text-align: center;
    pointer-events: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }
  
  .top-users h3 {
    margin: 0;
    font-size: 14px;
    color: #e86e34;
    font-weight: 600;
  }
  
  .top-users ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    justify-content: center;
  }
  
  .top-users li {
    background: #ff8555;
    color: white;
    border-radius: 5px;
    width: 50px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
  }
  /* Buton X de închidere pe overlay */
.close-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    width: 34px;
    height: 34px;
    cursor: pointer;
    z-index: 200;
    transition: all 0.2s ease-in-out;
  }
  
  .close-overlay:hover {
    background: orangered;
    color: #fff;
  }
  
  /* Efect de apariție / dispariție */
  .overlay-prayer {
    animation: fadeIn 0.5s ease forwards;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  







  
  @media (min-width: 720px) {
    .stats { grid-template-columns: 1.4fr 1fr; }
  }

  



@media (max-width: 768px) {
    /* .listpray {
        flex-flow: column-reverse;
    } */
    
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    .headertop {
        justify-content: center;
    }
    .desc {
        text-align: center;
    }
    .praycurrent {
       padding-top: 70px;
       margin: 0px;
    }
    .participa {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    .mobile-modal-dialog {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 15px 15px 0 0;
        max-width: 100%;
        height: auto;
        width: 100%;
        transform: translateY(100%); /* Modalul va fi ascuns sub ecran la început */
        animation: slideUp 0.5s forwards; /* Animația care îl ridică */
    }

    .modal-content {
        border-radius: 15px;
        background: #fff;
        border: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .modal-header {
        background: #ffdcca;
        border: none;
        padding: 10px 15px;
        font-size: 16px;
    }

    .modal-body {
        padding: 15px;
    }

    /* Animație pentru a ridica modalul */
    @keyframes slideUp {
        0% {
            transform: translateY(100%); /* Începe sub ecran */
        }
        100% {
            transform: translateY(0); /* Ajunge în partea de jos a ecranului */
        }
    }
}
