@font-face{
    font-family: "Tajawal";
    src: url("../font/Tajawal-Regular.ttf") format("truetype");
}

:root{
    --white: #fff;
    --black: #000;
    --transformBG: #fffaf6;
    --border: rgba(0, 0, 0, 0.2);
    --primary: #3a74c9;
    --primaryHover: rgb(58, 116, 201, 0.75);
    --secondery: #323232;
    --seconderyHover: rgb(50, 50, 50, 0.75);
    --lightGrey: #f8f8f8;
    --radius: 8px;
}

body[data-theme="grey"]{
}

body[data-theme="dark"]{
}

*,
*:before,
*:after{
    font-family: "Tajawal", serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: grid;
    grid-template-areas:
        "header"
        "main"
        "footer";
    gap: 7px;
    direction: ltr;
    background-color: #f0f0f0;
}

body main .socialfixed{
    position: fixed;
    bottom: -100px;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

body main .socialfixed a{
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 22px;
    transition: 0.3s ease;
    text-decoration: none;
}

body main .socialfixed a.facebook{
    background: #1877f2;
}
body main .socialfixed a.instagram{
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
}
body main .socialfixed a.whatsapp{
    background: #25d366;
}
body main .socialfixed a.tiktok{
    background: #000000;
}

body main .socialfixed a:hover{
    filter: brightness(1.1);
    transform: scale(1.08);
}

/************************ HEADER ************************/
body header{
    grid-area: header;
    display: grid;
    grid-template-columns: auto auto auto;
    margin: 0;
    padding: 0;
    padding: 10px 8%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    height: auto;
    gap: 15px;
}
body header figure{
    height: 80px;
}
body header figure img{
    height: 80px;
    width: auto;
    max-width: 180px;
}

body header .categories{
    direction: rtl;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    align-items: center;
    font-family: "Segoe UI", Arial, sans-serif;
}

body header .categories .categorie{
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    font-size: 15px;
    color: #333;
}

body header .categories .categorie:hover{
    color: var(--primary);
}
body header .categories .categorie p{
    cursor: pointer;
}
body header .categories .categorie i{
    font-size: 12px;
    margin-top: 2px;
}

body header .categories .categorie .dropdown{
    display: none !important;
    position: absolute;
    top: 100%;
    right: 10px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    min-width: 230px;
    flex-direction: column;
    padding: 12px 0;
    z-index: 4;
    animation: fadeIn 0.25s ease;
    max-height: 500px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body header .categories .categorie .dropdown::-webkit-scrollbar{
    width: 0;
    height: 0;
}
body header .categories .categorie .dropdown .title{
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    display: inline-block;
    margin-left: 10px;
}

body header .categories .categorie .dropdown .item{
    padding: 10px 18px;
    font-size: 14px;
    color: #444;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

body header .categories .categorie .dropdown .item:hover{
    background: var(--primaryHover);
    color: var(--white);
}

body header .categories .categorie:hover > .dropdown{
    display: flex !important;
}

@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(8px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

body header .functions{
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 15px;
}

body header .functions .wilaya{
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    font-size: 18px;
    color: #333;
}
body header .functions .wilaya i{
    font-size: 16px;
    display: grid;
    align-items: center;
    align-self: center;
}

body header .functions .wilaya .dropdown{
    display: none !important;
    position: absolute;
    top: 100%;
    right: 10px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    min-width: 230px;
    flex-direction: column;
    padding: 12px 0;
    z-index: 4;
    animation: fadeIn 0.25s ease;
    max-height: 500px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    direction: rtl;
}
body header .functions .wilaya .dropdown::-webkit-scrollbar{
    width: 0;
    height: 0;
}
body header .functions .wilaya .dropdown .title{
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    display: inline-block;
    margin-left: 10px;
}

body header .functions .wilaya .dropdown .item{
    padding: 10px 18px;
    font-size: 14px;
    color: #444;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
body header .functions .wilaya .dropdown .item i{
    font-size: 14px;
    margin-bottom: 0px;
}
body header .functions .wilaya .dropdown .item:hover{
    background: var(--primaryHover);
    color: var(--white);
}

body header .functions .wilaya:hover > .dropdown{
    display: flex !important;
}

@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(8px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

body header .functions .menu{
    display: none;
}

/************************ MAIN ************************/
body main{
    grid-area: main;
    height: auto;
    margin: 30px 8% 30px 8%;
}

body main .sectionTitle{
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}
body main .sectionTitle hr{
    width: 3px;
    height: 24px;
    background: var(--primary);
    border: none;
}
body main .sectionTitle h2{
    
}
body main .latestNews{
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}
body main .latestNews .last{
    display: grid;
    box-sizing: border-box;
    -webkit-box-align: start;
    align-items: start;
    transition: transform 0.3s ease;
}
body main .latestNews .last:hover{
    cursor: pointer;
    transform: translateY(-4px);
}
body main .latestNews .last img{
    width: 100%;
    height: 100%;
    max-height: 600px;
    border-radius: 8px;
}
body main .latestNews .last .lastNewsContent{
    margin-top: 10px;
}
body main .latestNews .last .lastNewsContent .newsTitle{
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
}
body main .latestNews .last .lastNewsContent .newsDescription{
    margin-top: 10px;
    opacity: 0.9;
}
body main .latestNews .last .lastNewsContent .newsDetails{
    display: flex;
    margin-top: 10px;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}
body main .latestNews .last .lastNewsContent .newsDetails .newsTime{
    
}
body main .latestNews .last .lastNewsContent .newsDetails hr{
    width: 1px;
    height: 18px;
    background: var(--black);
    border: none;
}
body main .latestNews .last .lastNewsContent .newsDetails .newsAuthor{
    
}
body main .latestNews .rest{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
body main .latestNews .rest .news{
    display: grid;
    box-sizing: border-box;
    -webkit-box-align: start;
    align-items: start;
    transition: transform 0.3s ease;
}
body main .rest .news:hover{
    transform: translateY(-4px);
    cursor: pointer;
}
body main .latestNews .rest .news img{
    width: 100%;
    height: auto;
    border-radius: 8px;
}
body main .latestNews .rest .news .lastNewsContent{
    margin-top: 10px;
}
body main .latestNews .rest .news .lastNewsContent .newsTitle{
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
}
body main .latestNews .rest .news .lastNewsContent .newsDescription{
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}
body main .latestNews .rest .news .lastNewsContent .newsDetails{
    display: flex;
    margin-top: 10px;
    font-size: 12px;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}
body main .latestNews .rest .news .lastNewsContent .newsDetails hr{
    width: 1px;
    height: 18px;
    background: var(--black);
    border: none;
}
body main .siteNews{
    background-color: var(--secondery);
    border-radius: 8px;
    padding: 40px 60px;
    margin-bottom: 20px;
}
body main .siteNews .content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    color: var(--white);
}
body main .siteNews .news{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease;
}
body main .siteNews .news:hover{
    transform: translateY(-4px);
    cursor: pointer;
}
body main .siteNews .news img{
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}
body main .siteNews .news .newsContent{
    margin-top: 16px;
}
body main .siteNews .news .newsContent .newsTitle{
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}
body main .siteNews .news .newsContent .newsDescription{
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}
body main .moreNews{
    
}
body main .moreNews .container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}
body main .moreNews .container .news{
    background-color: var(--lightGrey);
    border-radius: 7px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
body main .moreNews .container .news:hover{
    transform: translateY(-4px);
    cursor: pointer;
}
body main .moreNews .container .news img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}
body main .moreNews .lastNewsContent{
    padding: 15px;
}
body main .moreNews .container .newsTitle{
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}
body main .moreNews .container .newsDescription{
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 15px;
    opacity: 0.9;
}
body main .moreNews .container .newsDetails{
    display: flex;
    margin-top: 10px;
    font-size: 12px;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}
body main .moreNews .container .newsDetails hr{
    width: 1px;
    height: 18px;
    background: var(--black);
    border: none;
}
body main .moreNews button{
    margin: 30px auto 0 auto;
    display: block;
    padding: 8px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(.4,2,.6,1);
    text-align: center;
    outline: none;
    box-shadow: none;
    text-decoration: none;
}

body main .moreNews button:hover{
    background-color: var(--primaryHover);
    text-decoration: none;
    transform: translateY(-4px) scale(1.04);
}




body main .socialfixed{
    margin-left: 5px;
}
body main .socialfixed a{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius);
    text-decoration: none;
    border-radius: 7px;
}
body main .socialfixed a i{
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/************************ FOOTER ************************/
body footer{
  grid-area: footer;
  padding: 36px 8%;
  background-color: #f8f8f8;
}
body footer a{ color: inherit; text-decoration: none; }

/* ========== TITLES ========== */
body footer .ft-section-title{
  margin: 0 0 16px;
  font-weight: 800;
  font-size: 22px;
  text-align: center;
}

/* ========== GUARANTEES ========== */
body footer .ft-g-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
body footer .ft-g-item{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
body footer .ft-g-icn{
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(0,0,0,.08);
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--primary);
}
body footer .ft-g-item h4{
  margin: 6px 0 4px;
  font-size: 15px;
}
body footer .ft-g-item p{
  margin: 0;
  color: var(--black);
  font-size: 13px;
}

/* ========== BRAND BAR ========== */
body footer .ft-brandbar{
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
body footer .ft-brand{
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 720px;
}
body footer .ft-brand .ft-logo{
  width: 120px; height: auto;
}
body footer .ft-brand p{
  margin: 0;
  color: var(--black);
}
body footer .ft-follow{
  display: flex;
  align-items: center;
  gap: 10px;
}
body footer .ft-follow-title{ font-weight: 700; }
body footer .ft-social .s-icn{
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--primary);
  color: var(--white);
  margin-inline-start: 6px;
  transition: .25s;
}
body footer .ft-social .s-icn:hover{ transform: translateY(-2px); }

/* Brand colors */
body footer .ft-social .fb{ background:#1877f2; }
body footer .ft-social .wa{ background:#25d366; color:#0d0202; }
body footer .ft-social .ig{ background:#e1306c; }
body footer .ft-social .tt{ background:var(--black); }
body footer .ft-social .yt{ background:#ff0000; }
body footer .ft-social .li{ background:#0a66c2; }

/* ========== LINKS COLUMNS ========== */
body footer .ft-links{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 18px 0;
}
body footer .ft-col h4{
  position: relative;
  margin: 0px 0px 17px 0px;
  font-size: 16px;
}
body footer .ft-col h4::after{
  content: "";
  position: absolute;
  right: 0; bottom: -6px;
  width: 56px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
body footer .ft-col ul{ list-style: none; margin: 0; padding: 0; }
body footer .ft-col li{ margin: 8px 0; color: var(--black); }
body footer .ft-col a{ transition: .2s; }
body footer .ft-col a:hover{ margin-right: 4px; }

/* ========== INFO (ABOUT / CONTACT) ========== */
body footer .ft-info{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 8px 0 10px;
}
body footer .ft-info-col h4{
  margin: 0 0 10px;
  font-size: 16px;
}
body footer .ft-info-col ul{ list-style: none; margin: 0; padding: 0; }
body footer .ft-info-col li{ margin: 6px 0; color: var(--black); }
body footer .ft-info address{
  font-style: normal;
  color: var(--black);
  line-height: 1.7;
}

/* ========== LEGAL BAR ========== */
body footer .ft-legal{
  margin-top: 18px;
  text-align: center;
  color: var(--white);
  background: #090101;
  border-top: 1px solid var(--border);
  padding: 12px;
  border-radius: 10px;
}


@media (max-width: 1200px){
  body footer .ft-g-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px){
    body header{
        grid-area: header;
        position: fixed;
        margin: 0px;
        padding: 0px;
        grid-template-rows: auto auto;
        align-items: center;
        height: 80px;
        width: 100%;
        background-color: var(--white);
        z-index: 3;
        gap: 0px;
    }
    body header{
        margin: 0px;
        padding: 0px;
        display: grid;
        grid-template-columns: auto auto;
    }
    body header figure{
        z-index: 4;
        margin-left: 7px;
        display: grid;
        align-items: center;
        background-color: var(--white);
    }
    body header figure img{
        height: 70px;
        width: auto;
    }
    body header .categories{
        display: grid;
        position: absolute;
        background-color: var(--white);
        z-index: 3;
        width: 100%;
        left: 0;
        top: -1000px;
        transition: top 0.46s ease;
        justify-content: start;
        gap: 0px;
    }
    body header .categories .categorie{
        cursor: default;
        width: 100%;
        height: 55px;
        margin-right: 15px;
    }
    body header .categories .categorie:hover > .dropdown{
        display: none !important;
    }
    body header .categories .categorie.active > .dropdown{
        display: flex !important;
    }

    body header .functions{
        gap: 10px;
        height: 100%;
        z-index: 4;
        margin-right: 7px;
        background-color: var(--white);
    }
    body header .functions .wilaya{
        display: grid;
        font-size: 20px;
        height: 50px;
        width: 50px;
        justify-content: center;
        align-items: center;
    }
    body header .functions .wilaya p{
        display: none;
    }
    body header .functions .wilaya i{
        color: var(--black);
        transition: 0.46s;
    }
    body header .functions .wilaya i:active{
        color: var(--primary);
        transition: 0.46s;
    }
    body header .functions .wilaya:hover > .dropdown{
        display: none !important;
    }
    body header .functions .wilaya.active > .dropdown{
        display: flex !important;
    }

    body header .functions .menu{
        display: grid;
        font-size: 20px;
        height: 50px;
        width: 50px;
        justify-content: center;
        align-items: center;
    }
    body header .functions .menu i{
        display: grid;
        justify-content: center;
        align-items: center;
        color: var(--black);
        transition: 0.46s;
    }
    body header .functions .menu i:active{
        color: var(--primary);
        transition: 0.46s;
    }
    /************************ MAIN ************************/
    body main{
        margin: 90px 10px 10px 10px;
    }
    body main .latestNews{
        grid-template-columns: 1fr;
        gap: 20px;
    }
    body main .latestNews .last img{
        height: 250px;
        object-fit: cover;
        width: 100%;
        max-width: 100%;
        display: block;
    }
    body main .latestNews .last .lastNewsContent .newsTitle{
        font-size: 26px;
        line-height: 1.3;
    }
    body main .latestNews .last .lastNewsContent .newsDetails{
        font-size: 13px;
    }
    body main .latestNews .rest{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 15px;
    }
    body main .latestNews .rest .news .lastNewsContent img{
        height: 100%;
    }
    body main .latestNews .rest .news .lastNewsContent .newsTitle{
        font-size: 18px;
    }
    body main .latestNews .rest .news .lastNewsContent .newsDescription{
        font-size: 13px;
    }
    body main .latestNews .rest .news .lastNewsContent .newsDetails{
        font-size: 13px;
    }
    body main .siteNews{
        padding: 20px 25px;
    }
    body main .siteNews .content{
        grid-template-columns: 1fr;
        gap: 20px;
    }
    body main .siteNews .news img{
        height: 220px;
    }
    body main .siteNews .news .newsContent .newsTitle{
        font-size: 22px;
    }
    body main .siteNews .news .newsContent .newsDescription{
        font-size: 14px;
    }
    body main .moreNews .container{
        grid-template-columns: 1fr;
        gap: 10px;
    }
    body main .moreNews .container .news{
        display: flex;
        flex-direction: row;
        align-items: stretch;
        background-color: var(--lightGrey);
        border-radius: 8px;
        overflow: hidden;
        gap: 8px;
    }
    body main .moreNews .container .news img{
        width: 120px;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 0 8px 8px 0;
        flex-shrink: 0;
    }
    body main .moreNews .lastNewsContent{
        flex: 1;
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    body main .moreNews .container .newsTitle{
        font-size: 15px;
        font-weight: 600;
        color: var(--black);
        line-height: 1.4;
        text-align: right;
        margin-top: 5px;
    }
    body main .moreNews .container .newsDescription{
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        font-size: 13px;
        opacity: 0.85;
        line-height: 1.5;
        text-align: right;
    }
    body main .moreNews .container .newsDetails{
    display: flex;
    align-items: center;
    font-size: 10px;
    opacity: 0.8;
    direction: rtl;
    }
    body main .moreNews .container .newsDetails hr{
        width: 1px;
        height: 14px;
        background: var(--black);
        border: none;
        opacity: 0.6;
    }
    /************************ FOOTER ************************/
    body footer .ft-links{ grid-template-columns: repeat(2, 1fr); }
    body footer .ft-info{ grid-template-columns: 1fr; }
    body footer .ft-g-grid{ grid-template-columns: repeat(2, 1fr); }
    body footer .ft-brandbar{ flex-direction: column; align-items: flex-start; gap: 12px; }
    body footer .ft-brand .ft-logo{ width: 92px; }
    body footer .ft-social .s-icn{ width: 34px; height: 34px; }
    
}