@font-face {
    font-family: 'BPG Arial Custom';
    src: url('fonts/bpg_arial_2009.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* საბაზისო სტილი (ინგლისურისთვის) */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #312C2C;
    color: white;
    font-size: 16px;
}

/* --- ქართული ვერსია --- */
body.ka {
    font-family: 'BPG Arial Custom', sans-serif !important;
    font-size: 13.5px; /* ქართული ასოები ვიზუალურად დიდია, ამიტომ 1px-ით ვამცირებთ */
}

/* --- რუსული ვერსია --- */
body.ru {
    /* რუსულისთვის BPG Arial-იც გამოდგება, ან სტანდარტული Trebuchet MS */
    font-family: 'BPG Arial Custom', Arial, Helvetica, sans-serif !important;
    font-size: 14.5px; /* რუსული სიტყვები ძალიან გრძელია, ოდნავ მეტად ვამცირებთ */
}

/* --- UI-ს დაცვა (ორივე ენისთვის) --- */
.ka *, .ru * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* მენიუ და ღილაკები */
.ka nav a, .ru nav a,
.ka button, .ru button {
    letter-spacing: -0.3px; /* ასოების შევიწროება ეხმარება ჩარჩოში ჩატევას */
    line-height: 1.3;
    padding-left: 5px; /* ცოტა თავისუფალი ადგილი გვერდებზე */
    padding-right: 5px;
}

/* სპეციფიკური კორექცია რუსულისთვის (თუ მაინც გადადის) */
.ru h1, .ru h2 {
    hyphens: auto; /* სიტყვების ავტომატური გადატანა ტირეთი */
}

.row{
    --bs-gutter-x: none;
}

header{
    background: #231F20;
    margin-bottom: 56px;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

select { 
    height: 43px;
    border-radius: 8px;
    border: 1px solid #B3B3B3;
    padding-left: 25px;

}

a{
    color: white;
    text-decoration: none;
}

input.submit{
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    background-color: #EE1D23;
}

input[name="login_btn"]{
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    background-color: #EE1D23;
    border: 1px;
    height: 100%;
}

.mobile-left-menu { 
        display: none;
        position: fixed;
        width: 230px;
        height: 100%;
        background-color: #231F20;
        overflow-y: auto;
        z-index: 1000;
        transition: width 1s;
        flex-direction: column;
        top: 0px;
        padding: 20px;
}

.mobile-close{
    display: flex;
    flex-direction:row-reverse;
}

.mobile-links{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.lang-select{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80px;
    cursor: pointer;
    background: #312C2C;
    padding: 8px;
    border-radius: 8px;
}

.lang-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.login-wrapper .drop{
    display: none;
    position: absolute;
    margin: 0;
    padding: 0;
    z-index: 100;
    background: #312C2C;
    border-radius: 10px;
    margin-top: 15px;
    width: 300px;
    height: 200px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.login-wrapper .drop.logged{
    width: 190px;
    height: 100px;
}

.login-wrapper .drop.open{
    display: flex;
}



.login-wrapper .drop li {
    list-style: none;
}

.login-input { 
    width: 200px;
    height: 30px;
    padding-left: 5px;
    border-radius: 8px;
}

.user-box {
    background: #312C2CCC;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 170px;
    justify-content: space-evenly;
}

.lang-box {
    border: 1px solid white;
    padding: 5.3px;
    border-radius: 8px;
    width: 90px;
}

.left-menu-footer {
    gap: 8px;
    display: flex;
    flex-direction: column;
}

.user_drop li{
    list-style: none;
}

.logged-user-box{
    background: #312C2CCC;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user_drop {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    display: none;
    align-items: center;
}

.lang-changer .drop{
    display: none;
    position: absolute;
    margin: 0;
    padding: 0;
    z-index: 100;
    background: #312C2C;
    border-radius: 10px;
    margin-top: 5px;
}

.lang-changer .drop li:hover{
    background: #231F20;
}

.lang-changer  .drop li:first-child:hover{
    border-radius: 10px 10px 0 0;
}

.lang-changer .drop li:last-child:hover{
    border-radius: 0 0 10px 10px;
}

.lang-changer .drop li a:hover{
    color: #EE1D23;
}

.left-menu-container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 95%;

}

.lang-changer .drop.open{
    display: block;
}

.lang-changer .drop li {
    list-style: none;
}

.lang-changer .drop li a {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 10px 10px;
    transition: 0.2s;
    gap: 5px;
}

.login-form{
    display: none;
}

.header-nav{
    color: white;
    display: flex;
    align-items: center;
    width: 1215px;
    margin: auto;
    justify-content: space-between;
    height: 76px;
}

.header-links { 
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.header-links:visited {
    color: white;
}

.calculator-dropdown {
    align-items: center;
    position: absolute;
    top: 90%;
    left: -40px;
    background-color: #231F20;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1;
    width: 184px;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.header-image-container {
    /* padding-top: 75px; */
    width: 100%; /* Set the width of the container as needed */
    height: 676px; /* Desired height */
    overflow: hidden; /* Hide the part of the image that exceeds the container */
    position: relative; /* Necessary for precise cropping */
    justify-content: center;
    display: flex;
}

.header-image-container img {
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.valuable-title {
    font-size: 20px;
    font-weight: bold;
  }

.calculator-dropdown a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    color: white;
}

.inner-title {
    position: absolute;       /* Allows precise positioning inside the parent */
    top: 125px;               /* Distance from the top */
    left: 50%;                /* Center horizontally */
    transform: translateX(-50%); /* Adjust for the element's width */
    text-align: center;       /* Centers text horizontally */
  }

  .inner-text {
    position: absolute;       /* Allows precise positioning inside the parent */
    top: 185px;               /* Distance from the top */
    left: 50%;                /* Center horizontally */
    transform: translateX(-50%); /* Adjust for the element's width */
    text-align: center;       /* Centers text horizontally */
    width: 430px;
    line-height: 22px;
  }

.page-header{
    height: 312px;
    background-color: #231F2080;
    position: relative;
}

.page-header-title{
    font-size: 32px;
    font-weight: bold;
}

.page-header-text{
    font-size: 16px;
    color: #F9F9FBCC;
}

.container {
    max-width: 1215px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding-top: 100px;
}

.small-container {
    max-width: 1215px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
    margin-top: 48px;
    /* padding-top: 100px; */
}

button {  
    border-radius: 8px;
    border: none;
    background: #EE1D23;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

footer{
    margin-top: 70px;
}

.upper-footer{
    height: 346px;
    background-color: #231F20;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.lower-footer{
    background: white;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upper-footer-left{
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.footer-pages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-header-nav { 
    display: none;
}

.social-media {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mob {
    display: none;
}

.footer-logo{
    width: 392px;
}

.search-bar {
    display: flex;
    position: relative;
  }

  .search-btn{
    width:48px;
    position: absolute;
    height: 34px;
    right: 0;
  }
  .container{
    min-height: 470px;
  }

  .background-transparent {
    background: #302a2aab;
    position: fixed;
    z-index: 9999;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    align-items: center;
    display: none;
  }

  .model-content{
    width:1215px;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    gap: 21px;
    justify-content: center;
    align-items: center;
  }

  .transporter-box{
    width: 30%;
    height: 391px;
    background-color: #231F20;
    border-radius: 8px;
    cursor: pointer;
  }

  .log-in-button { 
    display: flex; 
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }


.swiper-slide, .header-image-container {
  opacity: 1 !important;
  filter: none !important;
}



@media screen and (max-width: 1275px) {
    .header-nav { 
        width: 95%;
    }
    .header-image-container {
        height: 450px;
    }

}

@media screen and (max-width: 1180px){
    .header-nav {
        display: none;
    }
    .mobile-header-nav{
        display: flex;
        justify-content: space-between;
        padding: 15px;
    }

    .lang-changer{
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .user-box{
        width: 100%;
    }

    .model-content{
        width: 100%;
        margin-top: 50px;
    }

    .transporter-box{
        width: 80%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        height: unset;
        padding: 20px;
    }

    form[name="login-form"]{
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .open { 
    display: flex !important;
}
}

@media screen and (max-width: 1000px) {
    
    .inner-text {
        top: 178px;              
    }
    
    .page-header-title{
        font-size: 28px;    
    }
     
}

@media screen and (max-width: 850px){
    .home-page-main-pic{
        display: none;
    }

    .header-image-container{
        padding-top: 160px;
    }

    .swiper-container{
        display: none !important;
    }
}

@media screen and (max-width: 800px){
    .social-media{
        display: none;
    }
    .mob { 
        display: flex;
    }
    .footer-description { 
        display: none;
    }

    .page-header-title{  
        width: 90%;
    }

    .header-image-container{
        height: 320px;
    }
   
}

@media screen and (max-width: 500px) {
    .footer-logo{
        width: 200px;
    }

    .lower-footer{
        font-size: 12px;
    }

    .page-header{
        height: 255px;
        background-color: #231F2080;
        position: relative;
    }
    
        
    .page-header-title{
        font-size: 20px;    
        width: 90%;
    }
    
    .page-header-text{
        font-size: 12px;
        word-wrap: break-word;
        width: 90%;
    }

    .valuable-title{
        font-size: 18px;
      }
    
      .valuable-description { 
        font-size: 14px;
      }
}

/* =========================================
   ANNOUNCEMENTS FORCED MODAL STYLES (UPDATED)
   ========================================= */
.forced-modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.85); 
    z-index: 9999999;
    display: flex; 
    align-items: center; 
    justify-content: center;
    backdrop-filter: blur(5px);
}

.forced-modal-content {
    background: #252525; /* მუქი ბარათის ფონი */
    width: 90%; 
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 1px solid #444;
    overflow: hidden;
    animation: dropIn 0.4s ease-out; /* ლამაზი გამოჩენის ანიმაცია */
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* პრიორიტეტის მიხედვით ზედა ფერადი ხაზი */
.forced-modal-content.type-info { border-top: 4px solid #3498db; }
.forced-modal-content.type-moderate { border-top: 4px solid #f39c12; }
.forced-modal-content.type-warning { border-top: 4px solid #e74c3c; }

.f-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #333;
    background: #2a2a2a;
}

.f-modal-title-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.f-modal-title {
    margin: 0;
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}

.f-modal-date {
    font-size: 13px;
    color: #aaa;
}

.f-modal-body {
    padding: 25px;
    font-size: 16px;
    color: #ddd;
    line-height: 1.6;
    max-height: 50vh;
    overflow-y: auto;
}

.f-modal-body p {
    margin: 0;
}

.f-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #333;
    background: #2a2a2a;
}

.btn-acknowledge {
    display: block; 
    width: 100%; 
    background: #27ae60; 
    color: white; 
    border: none;
    padding: 14px; 
    font-size: 16px; 
    font-weight: bold;
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-acknowledge:hover { 
    background: #2ecc71; 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

/* =========================================
   CONTAINER TRACKING MODAL STYLES
   ========================================= */
.container-tracking-content {
    background: #252525;
    width: 90%;
    max-width: 1000px; /* ფართო მოდალი რუკისთვის */
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 1px solid #444;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal-btn:hover {
    color: #EE1D23;
}

.tracking-header {
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.tracking-header h3 {
    margin-top: 0;
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}

.tracking-search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.tracking-search-box input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #111;
    color: white;
    font-size: 16px;
    outline: none;
}

.tracking-search-box input:focus {
    border-color: #EE1D23;
}

.track-btn {
    padding: 12px 30px;
    background: #EE1D23;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.2s;
}

.track-btn:hover {
    background: #c0392b;
}

#tracking-result-area {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    background: #fff; /* SeaRates ვიჯეტი თეთრია, ამიტომ ფონს თეთრს ვუტოვებთ შიგნიდან */
}