/*
Theme Name: Al Jabir Custom
Theme URI: https://al-jabir.com
Author: Abed Jaber
Description: Custom theme for Al Jabir built from scratch.
Version: 1.0
Text Domain: aljabir-custom
*/


html,
body{
    height:100%;
}

body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.site-footer{
    margin-top:auto;
}






html, body{
    margin:0;
    padding:0;
    font-family:"Segoe UI", Arial, Helvetica, sans-serif;
    background:#fff;
}

.container{
    max-width:1200px;
}

/* =========================
   HEADER
========================= */

.site-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;
    background:rgba(103,128,158,.95);
    backdrop-filter:blur(12px);
    box-shadow:0 2px 20px rgba(0,0,0,.15);
    transition:all .3s ease;
}

.header-inner{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    height:110px;
}

.logo{
    position:absolute;
    left:20px;
    top:50%;
    transform:translateY(-50%);
}

.logo img{
    height:90px;
    width:auto;
    display:block;
}

.main-menu{
    list-style:none;
    display:flex;
    gap:30px;
    margin:0;
    padding:0;
}

.main-menu li{
    position:relative;
    list-style:none;
}

.main-menu > li > a{
    color:#fff;
    text-decoration:none;
    font-weight:600;
    font-size:15px;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.main-menu > li > a:hover{
    color:#f59e0b;
}

.main-menu li.menu-item-has-children > a::after{
    content:" ▼";
    font-size:10px;
    margin-left:5px;
}

.main-menu .sub-menu{
    position:absolute;
    top:120%;
    left:0;
    min-width:260px;
    background:#58708C;
    padding:10px 0;
    margin:0;
    list-style:none;
    opacity:0;
    visibility:hidden;
    transition:.25s ease;
    border-radius:8px;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 40px rgba(0,0,0,.35);
    z-index:9999;
}

.main-menu li:hover > .sub-menu{
    opacity:1;
    visibility:visible;
    top:100%;
}

.main-menu .sub-menu li{
    display:block;
    width:100%;
}

.main-menu .sub-menu a{
    display:block;
    padding:12px 20px;
    color:#fff;
    text-decoration:none;
}

.main-menu .sub-menu a:hover{
    background:rgba(255,255,255,.08);
    color:#f59e0b;
}

.main-menu .sub-menu .sub-menu{
    top:0;
    left:100%;
}

/* =========================
   HERO
========================= */

.hero,
.hero-slide{
    height:100vh;
}

.hero-slide{
    position:relative;
    background-size:cover;
    background-position:center;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0);
}

.hero-content{
    position:absolute;
    z-index:2;
    top:50%;
    left:10%;
    transform:translateY(-50%);
    color:#fff;
    max-width:700px;
}

.hero-content h1{
    font-size:72px;
    font-weight:700;
    line-height:1.1;
}

.hero-content p{
    font-size:24px;
}

/* =========================
   ABOUT
========================= */

.about-section{
    padding:80px 0;
}

.about-section h2{
    font-size:42px;
    margin-bottom:25px;
}

/* =========================
   SERVICES
========================= */

.services-section{
    background:#f8fafc;
    padding:120px 0;
}

.service-card{
    background:#fff;
    padding:40px;
    border-radius:8px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    height:100%;
    transition:.3s;
}

.service-card:hover{
    transform:translateY(-8px);
}

/* =========================
   CTA
========================= */

.contact-cta{
    background:#0f172a;
    color:#fff;
    padding:120px 0;
}

/* =========================
   PAGES
========================= */

.page-header{
    height:80px;
    background:#0f172a;
}

.page-content{
    padding-top:150px;
    padding-bottom:80px;
}

.page-title{

    text-align:center;
    font-size:clamp(32px,4vw,42px);
    line-height:1.2;
    padding-top:80px;
    margin-bottom:40px;
    color:#1f3d5c;
}


.page-title::after{

    content:"";

    display:block;

    width:80px;

    height:3px;

    background:#67809E;

    margin:15px auto 0;
}




.page-body{
    font-size:20px;
    line-height:1.8;
}

body:not(.home) .site-header{
    background:rgba(103,128,158,.95);
}

/* =========================
   PROJECTS - PEW STYLE
========================= */

.projects-page{
    max-width:1400px;
    margin:50px auto;
}

.projects-page h1{

    text-align:center;

    font-size:54px;

    font-weight:700;

    color:#1f3d5c;

    margin-bottom:50px;

    font-family:Arial, Helvetica, sans-serif;
}

.project-card{

    display:flex;

    align-items:flex-start;

    gap:15px;

    background:transparent;

    border:1px solid #55789b;

    padding:12px;

    margin-bottom:40px;

box-shadow:
    0 10px 30px rgba(0,0,0,.12),
    0 4px 8px rgba(0,0,0,.08);
    
    
overflow:hidden;

    font-family:Arial, Helvetica, sans-serif;
}

/* =========================
   IMAGE
========================= */

.project-image{

    width:55%;

    overflow:hidden;

    background:#ffffff;
}

.project-image img{

    width:100%;

    height:340px;

    object-fit:cover;

    display:block;

    border:1px solid #cfd8e3;
}

/* =========================
   INFO AREA
========================= */

.project-info{

    width:45%;

    padding:20px;

    background:transparent;

    backdrop-filter:blur(5px);

    -webkit-backdrop-filter:blur(5px);
}

/* =========================
   TITLE
========================= */

.project-info h2{

    font-size:22px;

    font-weight:700;

    line-height:1.4;

    margin-bottom:20px;

    color:#4b6f92;
}

/* If title still has links */

.project-info h2 a{

    color:#4b6f92;

    text-decoration:none;
}

.project-info h2 a:hover{

    color:#4b6f92;

    text-decoration:none;
}

/* =========================
   DETAILS
========================= */

.project-info p{

    font-size:18px;

    line-height:1.6;

    margin-bottom:10px;

    color:#4b6f92;
}

.project-info strong{

    color:#4b6f92;

    font-weight:700;
}
/* =========================
   SCOPE
========================= */

.project-scope{

    font-size:18px;

    line-height:1.7;

    color:#4b6f92;
}

.project-scope p{

    font-size:18px;

    line-height:1.8;

    margin-bottom:5px;

    color:#4b6f92;

    text-align:justify;

    text-justify:inter-word;
}

.project-scope strong{

    color:#4b6f92;

    font-weight:700;
}

.project-scope ul{
    margin-top:5px;
    padding-left:20px;
}

.project-scope li{
    margin-bottom:3px;
}


/* =========================
   CAROUSEL
========================= */

.carousel-control-prev,
.carousel-control-next{
    width:8%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon{
    background-size:70%;
}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    /* Page */
    .projects-page{
        margin:30px auto;
        padding:0 15px;
    }

    .projects-page h1{
        font-size:36px;
        margin-bottom:30px;
        line-height:1.2;
    }

    /* Card */
    .project-card{
        flex-direction:column;
        padding:10px;
        gap:15px;
    }

    /* Image */
    .project-image,
    .project-info{
        width:100%;
    }

    .project-image img{
        height:250px;
        object-fit:cover;
    }

    /* Info Area */
    .project-info{
        padding-left:0;
        background:rgba(255,255,255,0.65);
        padding:15px;
        border-radius:6px;
    }

    /* Project Title */
    .project-info h2{
        font-size:24px;
        font-weight:700;
        color:#4b6f92;
        line-height:1.3;
        margin-bottom:15px;
    }

    /* Details */
    .project-info p{
        font-size:16px;
        line-height:1.7;
        color:#4b6f92;
        margin-bottom:10px;
    }

    .project-info strong{
        color:#4b6f92;
        font-weight:700;
    }

    /* Scope */
    .project-scope{
        font-size:16px;
        line-height:1.8;
        color:#4b6f92;
        text-align:justify;
    }

    .project-scope p{
        font-size:16px;
        line-height:1.8;
        text-align:justify;
    }

    /* Language Switcher */
    .trp-language-switcher-container{
        right:10px !important;
        bottom:80px !important;
    }
}




/* =========================
   FOOTER
========================= */

.site-footer{
    background:#67809E;
    color:#fff;
    padding:30px 0;
    text-align:center;
}

.footer-copyright{
    opacity:1;
    font-size:18px;
    font-weight:700;
    color:#ffffff;
    letter-spacing:0.5px;
}

.trp-language-switcher-container{
    position:fixed !important;
    right:20px !important;
    bottom:20px !important;
    top:unset !important;
    left:unset !important;
}



/* =========================
   RESPONSIVE
========================= */

/* Desktop */


.menu-toggle{
    display:none;
}

.main-nav{
    display:block;
}

/* Mobile */
@media (max-width:991px){

    .header-inner{
        position:relative;
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:10px 15px;
    }

    .logo{
        position:static;
        transform:none;
        margin:0;
    }

    .logo img{
        height:90px;
    }

    .menu-toggle{
        display:block;
        background:none;
        border:none;
        color:#fff;
        font-size:32px;
        cursor:pointer;
        visibility:visible;
        z-index:10001;
    }

    .main-nav{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#67809E;

        max-height:0;
        overflow:hidden;
        opacity:0;

        transition:max-height .4s ease, opacity .4s ease;
    }

    .main-nav.active{
        max-height:1000px;
        opacity:1;
    }

    .main-menu{
        display:flex;
        flex-direction:column;
        text-align:center;
    }
}
@media (max-width:768px){

    .hero,
    .hero-slide{
        height:70vh;
    }

    .hero-content{
        left:20px;
        right:20px;
    }

    .hero-content h1{
        font-size:32px;
    }

    .hero-content p{
        font-size:16px;
    }

    .project-card{
        flex-direction:column;
    }

    .project-image,
    .project-info{
        width:100%;
    }

    .project-image img{
        height:250px;
    }

    .container{
        padding-left:20px;
        padding-right:20px;
    }

    .header-inner{
        padding:5px 10px;
    }

    .logo img{
        height:90px;
    }

    .page-header{
        height:70px;
    }
}














/* =========================
   PROJECT LIGHTBOX
========================= */

.project-clickable-image{
    cursor: zoom-in;
}

#project-lightbox{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.95);

    z-index:99999;

    justify-content:center;
    align-items:center;
}

#lightbox-image{

    max-width:95%;
    max-height:90vh;

    object-fit:contain;
}

.lightbox-close{

    position:absolute;

    top:20px;
    right:30px;

    color:#fff;

    font-size:55px;

    cursor:pointer;

    z-index:100001;
}

.lightbox-prev,
.lightbox-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    color:#fff;

    font-size:70px;

    cursor:pointer;

    padding:15px;

    user-select:none;

    z-index:100001;
}

.lightbox-prev{
    left:20px;
}

.lightbox-next{
    right:20px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover{
    opacity:.7;
}




body.post-type-archive-project{

    background:
        linear-gradient(
            rgba(255,255,255,0.88),
            rgba(255,255,255,0.88)
        ),
        url('/wp-content/uploads/2026/06/Central-Africa-Overview.jpeg');

    background-size:cover;

    background-position:center;

    background-attachment:fixed;
}

/* =========================
   PROJECT IMAGE ARROWS
========================= */

.carousel-control-prev,
.carousel-control-next{
    opacity:1;
    transition:all .25s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon{

    width:42px;
    height:42px;

    filter:
        brightness(0)
        invert(1)
        drop-shadow(0 0 4px rgba(0,0,0,.9));

    transition:all .25s ease;
}

/* Hover */

.carousel-control-prev:hover,
.carousel-control-next:hover{
    opacity:1;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon{

    transform:scale(1.3);

    filter:
        brightness(0)
        invert(1)
        drop-shadow(0 0 10px rgba(0,0,0,1));
}



.page-body p{
    text-align: justify;
    line-height: 1.8;
}






.n2-ss-slide-background-image img{
    filter: brightness(1.25) !important;
}

/* Mobile menu arrow fix */
@media (max-width:991px){
    .main-menu li.menu-item-has-children > a::after{
        display:none;
    }
}



@media (max-width:991px){

    /* Main menu */
    .main-menu{
        display:flex;
        flex-direction:column;
        width:100%;
    }

    .main-menu li{
        width:100%;
        position:relative;
    }

    /* Hide all submenus by default */
    .main-menu .sub-menu{
        display:none;
        position:static;
        width:100%;
        min-width:100%;
        opacity:1;
        visibility:visible;
        margin:0;
        padding:0;
        box-shadow:none;
        border:none;
        border-radius:0;
        background:#58708C;
    }

    /* Show when JS adds active */
    .main-menu .sub-menu.active{
        display:block;
    }

    /* Prevent fly-out menus */
    .main-menu .sub-menu .sub-menu{
        position:static;
        left:auto;
        top:auto;
        width:100%;
    }

    /* Indentation */
    .main-menu .sub-menu a{
        padding-left:25px;
        text-align:left;
    }

    .main-menu .sub-menu .sub-menu a{
        padding-left:50px;
    }
}




/* =========================
   MOBILE ACCORDION MENU
========================= */

@media (max-width:991px){

    .main-menu{
        display:flex;
        flex-direction:column;
        width:100%;
        padding:0;
        margin:0;
    }

    .main-menu li{
        width:100%;
        position:relative;
    }

    .main-menu a{
        display:flex;
        justify-content:center;
        align-items:center;
        padding:14px 20px;
        color:#fff;
        text-decoration:none;
    }

    /* Remove desktop hover behavior */
    .main-menu li:hover > .sub-menu{
        opacity:1;
        visibility:visible;
        top:auto;
    }

    .main-menu .sub-menu{
        display:none;
        position:static;
        width:100%;
        min-width:100%;
        opacity:1;
        visibility:visible;
        box-shadow:none;
        border:none;
        border-radius:0;
        padding:0;
        margin:0;
        background:#58708C;
    }

    .main-menu .menu-item-has-children.open > .sub-menu{
        display:block;
    }

    /* First level submenu */
    .main-menu .sub-menu a{
        justify-content:flex-start;
        padding-left:30px;
    }

    /* Second level submenu */
    .main-menu .sub-menu .sub-menu a{
        padding-left:55px;
    }

    /* Third level submenu */
    .main-menu .sub-menu .sub-menu .sub-menu a{
        padding-left:80px;
    }

    /* Disable flyout positioning */
    .main-menu .sub-menu .sub-menu{
        position:static;
        left:auto;
        top:auto;
        width:100%;
    }

    .submenu-arrow{
        margin-left:8px;
        font-size:11px;
        transition:.25s ease;
        cursor:pointer;
    }

    .menu-item-has-children.open > a .submenu-arrow{
        transform:rotate(180deg);
    }
}








/* =========================
   MOBILE MENU STYLING
========================= */
@media (max-width:991px){

    /* Dark blue menu background */
    .main-nav{
        background:#0f2d52;
    }

    .main-menu{
        background:#0f2d52;
    }

    /* Tighter menu items */
main-menu > li > a,
    .main-menu .sub-menu a{

        display:flex;
        align-items:center;
        font-size: 18px;
        justify-content:center;

        min-height:56px;   /* consistent row height */
        padding:0 20px;

        line-height:1;
        text-align:center;

        font-weight:100;
    }

    /* White separators */
    .main-menu > li{
        border-bottom:1px solid rgba(255,255,255,0.25);
    }

    /* Submenu background */
    .main-menu .sub-menu{
        background:#163b68;
    }

    /* Submenu items */
    .main-menu .sub-menu li{
        border-bottom:1px solid rgba(255,255,255,0.20);
    }

    .main-menu .sub-menu a{
        padding:10px 30px;
        color:#fff;
        text-align:center;
    }

    /* Nested submenu */
    .main-menu .sub-menu .sub-menu{
        background:#1d4a7d;
    }

    .main-menu .sub-menu .sub-menu a{
        padding:10px 50px;
    }

    /* Remove last border */
    .main-menu li:last-child,
    .main-menu .sub-menu li:last-child{
        border-bottom:none;
    }
}




@media (max-width:991px){

    .main-menu > li > a,
    .main-menu .sub-menu a{

        padding:0 !important;
        height:50px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        line-height:1 !important;
    }

}



/* =========================
   ALL PAGES
========================= */

.page-content{

    background:rgba(255,255,255,0.35);

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    border-radius:12px;

    padding:50px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.15);

    animation:contentSlide 1s ease forwards;
}

.page-title{

    opacity:0;
    animation:titleSlide .8s ease forwards;
}

.page-body{

    opacity:0;
    animation:contentSlide 1s ease forwards;
    animation-delay:.3s;
}



@keyframes titleSlide{

    from{
        opacity:0;
        transform:translateX(-80px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes contentSlide{

    from{
        opacity:0;
        transform:translateX(-120px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }
}




.page-id-127{

    background:
        linear-gradient(
            rgba(255,255,255,.5),
            rgba(255,255,255,.5)
        ),
        url('/wp-content/themes/aljabir-custom/assets/images/1.jpeg');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}


.page-id-129{

    background:
        linear-gradient(
            rgba(255,255,255,.5),
            rgba(255,255,255,.5)
        ),
        url('/wp-content/themes/aljabir-custom/assets/images/2.jpg');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}




.page-id-142{

    background:
        linear-gradient(
            rgba(255,255,255,.5),
            rgba(255,255,255,.5)
        ),
        url('/wp-content/themes/aljabir-custom/assets/images/3.jpg');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}

.page-id-140{

    background:
        linear-gradient(
            rgba(255,255,255,.5),
            rgba(255,255,255,.5)
        ),
        url('/wp-content/themes/aljabir-custom/assets/images/4.jpg');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}

.page-id-1310{

    background:
        linear-gradient(
            rgba(255,255,255,.5),
            rgba(255,255,255,.5)
        ),
        url('/wp-content/themes/aljabir-custom/assets/images/5.jpg');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}

.page-id-146{

    background:
        linear-gradient(
            rgba(255,255,255,.5),
            rgba(255,255,255,.5)
        ),
        url('/wp-content/themes/aljabir-custom/assets/images/6.jpeg');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}

.page-id-138{

    background:
        linear-gradient(
            rgba(255,255,255,.5),
            rgba(255,255,255,.5)
        ),
        url('/wp-content/themes/aljabir-custom/assets/images/7.jpg');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}




.page-id-135{

    background:
        linear-gradient(
            rgba(255,255,255,.5),
            rgba(255,255,255,.5)
        ),
        url('/wp-content/themes/aljabir-custom/assets/images/8.jpeg');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}


.page-id-144{

    background:
        linear-gradient(
            rgba(255,255,255,.5),
            rgba(255,255,255,.5)
        ),
        url('/wp-content/themes/aljabir-custom/assets/images/9.jpg');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}




.page-id-2199{
        background:
        linear-gradient(
            rgba(255,255,255,.5),
            rgba(255,255,255,.5)
        ),
        url('/wp-content/themes/aljabir-custom/assets/images/12.jpg');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}










.projects-title{
    opacity:0;
    animation:titleSlide .8s ease forwards;
    padding-top: 80px;
}

.project-card{
    opacity:0;
    animation:contentSlide .8s ease forwards;
}

.project-card:nth-of-type(1){ animation-delay:.2s; }
.project-card:nth-of-type(2){ animation-delay:.4s; }
.project-card:nth-of-type(3){ animation-delay:.6s; }
.project-card:nth-of-type(4){ animation-delay:.8s; }
.project-card:nth-of-type(5){ animation-delay:1s; }
.project-card:nth-of-type(6){ animation-delay:1.2s; }




@media (max-width:991px){

    .logo{
        display:flex;
        align-items:center;
        gap:10px;
        text-decoration:none;
    }

    .logo-text{

        color:#FFFFFF;      /* yellow like your paint image */

        font-size:18px;

        font-weight:700;

        letter-spacing:1px;

        display:block;
    }

}



@media (max-width:991px){

    .page-header{
        height:120px;
    }

}



@media (max-width:991px){

    .page-title{
        padding-top:40px;
    }

}

.site-header{
    border-bottom:4px solid #123E73;
}

.header-inner{
    display:flex;
    justify-content:center;
    align-items:flex-end;
}





/* Mobile */
@media (max-width:991px){

    body.page-id-2199{
        background-size:cover;
        background-position:center center;
        background-attachment:scroll;
    }

}

.page-heading{
    text-align:left;
    margin-bottom:30px;
}

.page-heading h2{
    display:inline-block;
    font-size:24px;
    color:#000;
    border-bottom:3px solid #3b82f6;
}



/* All normal pages */
.page-content{

    font-family: "Segoe UI", Arial, sans-serif;

    font-size: 17px;

    line-height: 1.8;

    color: #333;
}

.page-content *{
    font-family: "system-ui";
}

.page-content p,
.page-content li,
.page-content div,
.page-content span{

    font-size:17px;

    line-height:1.8;

    color:#333;
}

/* Paragraphs */
.page-content p{

    font-size: 17px;

    line-height: 1.8;

    text-align: justify;

    margin-bottom: 25px;
}

/* Lists */
.page-content li{

    font-size: 17px;

    line-height: 1.8;
}

/* Headings inside page content */
.page-content h2,
.page-content h3,
.page-content h4{

    font-family: "Segoe UI", Arial, sans-serif;

    color: #1e3a5f;
}