/*
Theme Name: Almsa3d Modern
Template: generatepress
Version: 7.0
Description: Modern Arabic Travel & Lifestyle Portal
*/

/* =========================================================
   ALMSA3D V7 — CLEAN PRODUCTION BUILD
   ========================================================= */

:root{
    --navy:#102f4c;
    --navy2:#174d73;
    --blue:#1683d8;
    --cyan:#24c3b5;
    --sky:#eaf7ff;
    --text:#18344b;
    --body:#526b7d;
    --muted:#8a9aa7;
    --bg:#f6f9fc;
    --white:#fff;
    --border:#e5edf4;
    --shadow:0 12px 35px rgba(25,55,80,.07);
}

*{box-sizing:border-box}

html{
    direction:rtl;
    scroll-behavior:smooth;
}

body{
    direction:rtl;
    margin:0;
    overflow-x:hidden;
    background:var(--bg)!important;
    color:var(--text);
    font-family:Tahoma,Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
}

a{transition:.2s ease}

::selection{
    color:#fff;
    background:var(--blue);
}


/* =========================================================
   REMOVE LEGACY GENERATEPRESS UI
   ========================================================= */

.site-header,
#masthead,
.main-navigation,
#site-navigation,
.secondary-navigation,
#secondary-navigation,
.navigation-search,
.search-item,
.menu-bar-item.search-item,
.gp-search-modal,
.gp-modal__overlay{
    display:none!important;
}


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

.ams-header{
    position:relative;
    z-index:999;
    width:100%;
    background:rgba(255,255,255,.97);
    border-bottom:1px solid var(--border);
    box-shadow:0 5px 24px rgba(25,55,80,.055);
}

.ams-header-inner{
    width:calc(100% - 40px);
    max-width:1180px;
    height:82px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
}

.ams-brand{
    display:flex;
    align-items:center;
    gap:11px;
    color:var(--text)!important;
    text-decoration:none!important;
}

.ams-brand-icon{
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:none;
    color:#fff;
    background:linear-gradient(135deg,var(--blue),var(--cyan));
    border-radius:14px;
    font-size:21px;
    font-weight:900;
    box-shadow:0 8px 20px rgba(22,131,216,.20);
}

.ams-brand-copy{
    display:flex;
    flex-direction:column;
    line-height:1.3;
}

.ams-brand-copy strong{
    color:var(--text);
    font-size:20px;
    font-weight:900;
}

.ams-brand-copy small{
    margin-top:3px;
    color:var(--muted);
    font-size:10px;
    font-weight:600;
}


/* NAV */

.ams-desktop-nav{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
}

.ams-desktop-nav>a,
.ams-nav-drop>a{
    min-height:46px;
    padding:0 15px;
    display:flex;
    align-items:center;
    gap:5px;
    color:#40596c!important;
    text-decoration:none!important;
    border-radius:11px;
    font-size:14px;
    font-weight:800;
}

.ams-desktop-nav>a:hover,
.ams-nav-drop:hover>a{
    color:var(--blue)!important;
    background:#eff8fe;
}

.ams-nav-drop{
    position:relative;
}

.ams-nav-drop>a span{
    color:#91a3b0;
}

.ams-dropdown{
    position:absolute;
    top:calc(100% + 9px);
    right:0;
    width:220px;
    padding:8px;
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    background:#fff;
    border:1px solid var(--border);
    border-radius:15px;
    box-shadow:0 20px 50px rgba(23,52,77,.14);
    transition:.18s ease;
}

.ams-nav-drop:hover .ams-dropdown{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.ams-dropdown:before{
    content:"";
    position:absolute;
    top:-12px;
    right:0;
    width:100%;
    height:14px;
}

.ams-dropdown a{
    display:block;
    padding:10px 12px;
    color:#40596c!important;
    text-decoration:none!important;
    border-radius:9px;
    font-size:13px;
    font-weight:700;
}

.ams-dropdown a:hover{
    color:var(--blue)!important;
    background:#eff8fe;
}


/* HEADER ACTIONS */

.ams-header-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

.ams-search-open{
    height:43px;
    padding:0 15px;
    display:flex;
    align-items:center;
    gap:7px;
    color:var(--blue);
    background:#eef8fe;
    border:1px solid #dcecf8;
    border-radius:12px;
    font-family:inherit;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    transition:.2s ease;
}

.ams-search-open:hover{
    color:#fff;
    background:var(--blue);
    border-color:var(--blue);
    transform:translateY(-1px);
}

.ams-search-open span{
    font-size:19px;
}

.ams-mobile-button{
    width:43px;
    height:43px;
    display:none;
    padding:10px;
    background:#f1f7fc;
    border:1px solid #dfebf4;
    border-radius:11px;
    cursor:pointer;
}

.ams-mobile-button i{
    width:100%;
    height:2px;
    display:block;
    margin:4px 0;
    background:#284b65;
    border-radius:10px;
}

.ams-mobile-nav{
    display:none;
    padding:7px 15px 15px;
    background:#fff;
    border-top:1px solid #edf2f6;
}

.ams-mobile-nav a{
    display:block;
    padding:12px 13px;
    color:#345069!important;
    text-decoration:none!important;
    border-bottom:1px solid #edf2f6;
    font-size:14px;
    font-weight:700;
}


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

.ams-hero{
    position:relative;
    min-height:500px;
    overflow:hidden;
    color:#fff;
    background:
        radial-gradient(circle at 12% 5%,rgba(255,255,255,.16),transparent 27%),
        linear-gradient(125deg,#0d355b 0%,#126ba9 52%,#28abc7 100%);
}

.ams-hero:after{
    content:"";
    position:absolute;
    right:0;
    left:0;
    bottom:-1px;
    height:55px;
    background:var(--bg);
    clip-path:polygon(0 76%,20% 92%,42% 70%,67% 94%,100% 68%,100% 100%,0 100%);
}

.ams-hero-inner{
    position:relative;
    z-index:5;
    width:calc(100% - 40px);
    max-width:1180px;
    min-height:470px;
    margin:auto;
    padding:55px 0 82px;
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:70px;
    align-items:center;
}

.ams-hero-copy{
    max-width:650px;
}

.ams-kicker{
    display:inline-flex;
    align-items:center;
    padding:7px 14px;
    margin-bottom:17px;
    color:#eaf8ff;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.19);
    border-radius:100px;
    font-size:13px;
    font-weight:700;
    backdrop-filter:blur(8px);
}

.ams-hero h1{
    margin:0 0 18px;
    color:#fff;
    font-size:clamp(42px,4.7vw,64px);
    line-height:1.22;
    font-weight:900;
    letter-spacing:-1px;
}

.ams-hero h1 span{
    display:block;
    color:#9ef3e8;
}

.ams-hero p{
    max-width:590px;
    margin:0 0 28px;
    color:rgba(255,255,255,.88);
    font-size:17px;
    line-height:2;
}


/* HERO SEARCH */

.ams-search{
    width:100%;
    max-width:610px;
    padding:7px;
    display:flex;
    background:#fff;
    border-radius:16px;
    box-shadow:0 18px 45px rgba(0,28,56,.18);
}

.ams-search input{
    flex:1;
    min-width:0;
    height:52px;
    padding:0 17px;
    color:#243b53;
    background:transparent;
    border:0!important;
    outline:0!important;
    font-family:inherit;
    font-size:14px;
}

.ams-search button{
    min-width:100px;
    height:52px;
    padding:0 22px;
    color:#fff;
    background:linear-gradient(135deg,var(--blue),var(--cyan));
    border:0;
    border-radius:11px;
    font-family:inherit;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(20,121,209,.22);
    transition:.2s ease;
}

.ams-search button:hover{
    transform:translateY(-1px);
    box-shadow:0 11px 24px rgba(20,121,209,.30);
}


/* QUICK LINKS */

.ams-quick-links{
    margin-top:19px;
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.ams-quick-links a{
    padding:8px 13px;
    display:inline-flex;
    align-items:center;
    color:#fff!important;
    background:rgba(255,255,255,.11);
    border:1px solid rgba(255,255,255,.16);
    border-radius:100px;
    text-decoration:none!important;
    font-size:12px;
    font-weight:700;
    backdrop-filter:blur(8px);
}

.ams-quick-links a:hover{
    color:#123c61!important;
    background:#fff;
    transform:translateY(-2px);
}


/* HERO ART */

.ams-hero-art{
    position:relative;
    min-height:330px;
    overflow:hidden;
    background:linear-gradient(160deg,rgba(255,255,255,.18),rgba(255,255,255,.04));
    border:1px solid rgba(255,255,255,.18);
    border-radius:40px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 30px 70px rgba(0,36,68,.16);
    backdrop-filter:blur(10px);
}

.ams-sun{
    position:absolute;
    left:58px;
    top:48px;
    width:82px;
    height:82px;
    background:#ffd166;
    border-radius:50%;
    box-shadow:0 0 60px rgba(255,209,102,.30);
}

.ams-plane{
    position:absolute;
    left:160px;
    top:70px;
    color:#fff;
    font-size:50px;
    transform:rotate(-15deg);
}

.ams-landscape{
    position:absolute;
    right:0;
    bottom:0;
    left:0;
    height:175px;
}

.ams-mountain{
    position:absolute;
    bottom:-50px;
    width:260px;
    height:220px;
    transform:rotate(45deg);
    border-radius:28px;
}

.ams-mountain.m1{right:-20px;background:#0f6e7a}
.ams-mountain.m2{right:150px;background:#138c91}
.ams-mountain.m3{right:330px;bottom:-105px;background:#28aaa0}

.ams-card{
    position:absolute;
    z-index:10;
    padding:13px 16px;
    color:#24445d;
    background:rgba(255,255,255,.94);
    border-radius:14px;
    box-shadow:0 14px 35px rgba(0,30,60,.13);
}

.ams-card span{
    display:block;
    margin-bottom:2px;
    color:#7791a5;
    font-size:10px;
}

.ams-card strong{font-size:12px}
.ams-card-one{right:25px;top:35px}
.ams-card-two{left:22px;bottom:28px}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.ams-section-head{
    width:calc(100% - 40px);
    max-width:1180px;
    margin:40px auto 4px;
    display:flex;
    align-items:flex-end;
    gap:20px;
}

.ams-section-head>div:first-child{
    flex:none;
}

.ams-section-head span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:var(--blue);
    font-size:12px;
    font-weight:900;
}

.ams-section-head span:before{
    content:"";
    width:22px;
    height:3px;
    background:linear-gradient(90deg,var(--blue),var(--cyan));
    border-radius:20px;
}

.ams-section-head h2{
    margin:2px 0 0;
    color:var(--text);
    font-size:31px;
    line-height:1.4;
    font-weight:900;
}

.ams-section-line{
    flex:1;
    height:1px;
    margin-bottom:11px;
    background:linear-gradient(90deg,transparent,#dce6ef);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

#page,
.site.grid-container,
.grid-container{
    max-width:none!important;
}

.site-content{
    width:calc(100% - 40px)!important;
    max-width:1180px!important;
    margin:0 auto!important;
    padding:25px 0 55px!important;
    display:block!important;
}

.content-area,
#primary{
    float:none!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
}

.widget-area,
#right-sidebar,
#left-sidebar{
    display:none!important;
}

body.home .site-main,
body.blog .site-main,
body.archive .site-main,
body.search .site-main{
    width:100%!important;
    max-width:1180px!important;
    margin:0 auto!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:26px!important;
    align-items:stretch!important;
}


/* =========================================================
   ARTICLE CARDS
   ========================================================= */

body.home article,
body.blog article,
body.archive article,
body.search article{
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    overflow:hidden!important;
    background:#fff!important;
    border:1px solid var(--border)!important;
    border-radius:20px!important;
    box-shadow:var(--shadow)!important;
    transition:transform .25s ease,box-shadow .25s ease!important;
}

body.home article:hover,
body.blog article:hover,
body.archive article:hover,
body.search article:hover{
    transform:translateY(-6px)!important;
    box-shadow:0 20px 48px rgba(25,55,80,.12)!important;
}

body.home article .inside-article,
body.blog article .inside-article,
body.archive article .inside-article,
body.search article .inside-article{
    position:relative;
    height:100%;
    padding:0 22px 23px!important;
    display:flex!important;
    flex-direction:column!important;
}


/* IMAGE */

body.home .post-image,
body.blog .post-image,
body.archive .post-image,
body.search .post-image{
    position:relative;
    width:calc(100% + 44px)!important;
    margin:0 -22px 20px!important;
    overflow:hidden!important;
    background:#eaf1f6;
}

body.home .post-image:after,
body.blog .post-image:after,
body.archive .post-image:after,
body.search .post-image:after{
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    left:0;
    height:42%;
    background:linear-gradient(transparent,rgba(13,42,67,.14));
    pointer-events:none;
}

body.home .post-image img,
body.blog .post-image img,
body.archive .post-image img,
body.search .post-image img{
    width:100%!important;
    height:225px!important;
    display:block!important;
    object-fit:cover!important;
    transition:transform .45s ease!important;
}

body.home article:hover .post-image img,
body.blog article:hover .post-image img,
body.archive article:hover .post-image img,
body.search article:hover .post-image img{
    transform:scale(1.05)!important;
}


/* CATEGORY BADGE */

.ams-card-category{
    position:absolute;
    z-index:20;
    top:15px;
    right:15px;
    padding:6px 11px;
    color:#fff;
    background:rgba(13,52,82,.84);
    border:1px solid rgba(255,255,255,.20);
    border-radius:100px;
    box-shadow:0 5px 15px rgba(0,0,0,.10);
    backdrop-filter:blur(8px);
    font-size:10px;
    font-weight:800;
    pointer-events:none;
}


/* TITLE */

body.home .entry-title,
body.blog .entry-title,
body.archive .entry-title,
body.search .entry-title{
    min-height:61px;
    margin:2px 0 9px!important;
    color:var(--text)!important;
    font-size:19px!important;
    line-height:1.65!important;
    font-weight:900!important;
}

body.home .entry-title a,
body.blog .entry-title a,
body.archive .entry-title a,
body.search .entry-title a{
    color:var(--text)!important;
    text-decoration:none!important;
}

body.home .entry-title a:hover,
body.blog .entry-title a:hover,
body.archive .entry-title a:hover,
body.search .entry-title a:hover{
    color:var(--blue)!important;
}


/* META */

.entry-meta{
    margin-bottom:12px!important;
    padding-bottom:11px;
    color:#93a2af!important;
    border-bottom:1px solid #edf2f6;
    font-size:11px!important;
}


/* SUMMARY */

.entry-summary{
    flex:1;
    color:#5e7181!important;
    font-size:13.5px!important;
    line-height:1.95!important;
}


/* READ MORE */

.read-more{
    width:max-content;
    margin-top:15px!important;
    padding:7px 12px!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    color:var(--blue)!important;
    background:#f0f8fe!important;
    border:0!important;
    border-radius:100px!important;
    box-shadow:none!important;
    text-decoration:none!important;
    font-size:12px!important;
    font-weight:900!important;
    transition:.2s ease!important;
}

.read-more:hover{
    color:#fff!important;
    background:var(--blue)!important;
    transform:translateX(-3px);
}

.read-more span{
    width:25px!important;
    height:25px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#fff!important;
    background:linear-gradient(135deg,var(--blue),var(--cyan))!important;
    border-radius:50%!important;
}


/* =========================================================
   SINGLE ARTICLE
   ========================================================= */

body.single .site-content,
body.page .site-content{
    max-width:1080px!important;
    padding-top:42px!important;
}

body.single #primary,
body.page #primary{
    max-width:940px!important;
    margin:auto!important;
}

body.single article .inside-article,
body.page article .inside-article{
    padding:48px 55px!important;
    overflow:hidden;
    background:#fff!important;
    border:1px solid var(--border)!important;
    border-radius:20px!important;
    box-shadow:var(--shadow)!important;
}

body.single .entry-title,
body.page .entry-title{
    color:var(--text)!important;
    font-size:clamp(28px,3vw,38px)!important;
    line-height:1.55!important;
    font-weight:900!important;
}

body.single .entry-content,
body.page .entry-content{
    max-width:820px;
    margin:25px auto 0!important;
    color:#344d60!important;
    font-size:18px!important;
    line-height:2.15!important;
}

body.single .entry-content p{
    margin-bottom:1.45em;
}

body.single .entry-content h2{
    position:relative;
    margin-top:42px;
    padding-right:17px;
    color:#173f5f!important;
    font-size:26px;
    line-height:1.6;
}

body.single .entry-content h2:before{
    content:"";
    position:absolute;
    top:8px;
    right:0;
    width:4px;
    height:30px;
    background:linear-gradient(var(--blue),var(--cyan));
    border-radius:10px;
}

body.single .entry-content h3{
    margin-top:32px;
    color:#24506f!important;
    font-size:21px;
}

body.single .entry-content img,
body.page .entry-content img{
    max-width:100%;
    height:auto;
    border-radius:14px;
}

body.single .entry-content a{
    color:var(--blue);
    text-decoration:none;
    border-bottom:1px dashed rgba(20,121,209,.35);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.paging-navigation,
nav.pagination{
    grid-column:1/-1!important;
    width:100%!important;
    margin:22px auto 0!important;
    text-align:center!important;
}

.page-numbers{
    min-width:40px;
    height:40px;
    margin:3px;
    padding:0 11px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--text);
    background:#fff;
    border:1px solid var(--border);
    border-radius:10px;
    text-decoration:none;
}

.page-numbers.current,
.page-numbers:hover{
    color:#fff;
    background:var(--blue);
    border-color:var(--blue);
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.ams-back-top{
    position:fixed;
    z-index:9999;
    left:24px;
    bottom:24px;
    width:45px;
    height:45px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:linear-gradient(135deg,var(--blue),var(--cyan));
    border:0;
    border-radius:14px;
    box-shadow:0 10px 28px rgba(20,121,209,.28);
    font-size:20px;
    font-weight:900;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transform:translateY(12px);
    transition:.25s ease;
}

.ams-back-top.ams-show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.ams-back-top:hover{
    transform:translateY(-3px);
}


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

.site-footer{
    margin-top:55px!important;
    color:#dce8f1!important;
    background:linear-gradient(125deg,#0d2942,#123e61)!important;
    border:0!important;
}

.site-info{
    color:#dce8f1!important;
    background:transparent!important;
    padding:28px 15px!important;
}

.site-info a{color:#fff!important}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:1000px){

    .ams-hero-inner{
        grid-template-columns:1fr;
        gap:35px;
        padding-top:55px;
    }

    .ams-hero-copy{
        max-width:720px;
        margin:auto;
        text-align:center;
    }

    .ams-search{
        margin-right:auto;
        margin-left:auto;
    }

    .ams-quick-links{
        justify-content:center;
    }

    .ams-hero-art{
        width:100%;
        max-width:650px;
        min-height:260px;
        margin:auto;
    }

    body.home .site-main,
    body.blog .site-main,
    body.archive .site-main,
    body.search .site-main{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        max-width:820px!important;
    }
}


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

@media(max-width:920px){

    .ams-desktop-nav{display:none}
    .ams-mobile-button{display:block}

    body.ams-menu-open .ams-mobile-nav{
        display:block;
    }
}

@media(max-width:768px){

    .ams-header-inner{
        width:calc(100% - 24px);
        height:70px;
        gap:10px;
    }

    .ams-brand-icon{
        width:39px;
        height:39px;
        border-radius:11px;
        font-size:19px;
    }

    .ams-brand-copy strong{font-size:17px}
    .ams-brand-copy small{display:none}

    .ams-search-open{
        width:42px;
        padding:0;
        justify-content:center;
        font-size:0;
    }

    .ams-search-open span{font-size:20px}

    .ams-hero{
        min-height:auto;
    }

    .ams-hero-inner{
        width:calc(100% - 30px);
        min-height:0;
        padding:45px 0 85px;
    }

    .ams-hero h1{
        font-size:38px;
    }

    .ams-hero p{
        font-size:15px;
    }

    .ams-hero-art{
        display:none;
    }

    .ams-search{
        padding:5px;
    }

    .ams-search input{height:48px}

    .ams-search button{
        min-width:80px;
        height:48px;
        padding:0 14px;
    }

    .ams-section-head{
        width:calc(100% - 28px);
        margin-top:30px;
    }

    .ams-section-head h2{
        font-size:26px;
    }

    .site-content{
        width:calc(100% - 24px)!important;
        padding:22px 0 35px!important;
    }

    body.home .site-main,
    body.blog .site-main,
    body.archive .site-main,
    body.search .site-main{
        grid-template-columns:1fr!important;
        max-width:520px!important;
        gap:20px!important;
    }

    body.home .entry-title,
    body.blog .entry-title,
    body.archive .entry-title,
    body.search .entry-title{
        min-height:0;
        font-size:18px!important;
    }

    body.single article .inside-article,
    body.page article .inside-article{
        padding:27px 21px!important;
        border-radius:14px!important;
    }

    body.single .entry-content,
    body.page .entry-content{
        font-size:17px!important;
        line-height:2.05!important;
    }

    body.single .entry-content h2{
        font-size:23px;
    }

    .ams-back-top{
        left:15px;
        bottom:15px;
        width:42px;
        height:42px;
        border-radius:12px;
    }
}

@media(max-width:420px){

    .ams-hero h1{
        font-size:34px;
    }

    .ams-quick-links{
        gap:6px;
    }

    .ams-quick-links a{
        padding:7px 10px;
        font-size:11px;
    }

}


/* =========================================================
   ALMSA3D V7.1 — FINAL CLEANUP
   ========================================================= */


/* REMOVE CATEGORY BADGES */

.ams-card-category{
    display:none!important;
}


/* REMOVE ALL LEGACY DARK / BLACK SEARCH & NAV STRIPS */

.navigation-search,
.navigation-search.nav-search-active,
.main-navigation .navigation-search,
#site-navigation,
#secondary-navigation,
.secondary-navigation,
.main-navigation,
.site-navigation,
nav[id*="site-navigation"],
nav[id*="secondary-navigation"],
.gp-search-modal,
.gp-modal__overlay,
.search-modal-form,
.search-modal-overlay{
    display:none!important;
}


/*
 Prevent legacy GeneratePress elements from creating
 empty black space underneath our latest articles heading.
*/

body.home .site-content > .main-navigation,
body.home .site-content > nav,
body.home #page > .main-navigation,
body.home #page > nav.navigation,
body.home .ams-section-head + .main-navigation,
body.home .ams-section-head + nav{
    display:none!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
}


/* REMOVE OLD GENERATEPRESS FOOTER */

.site-footer,
#site-footer,
.footer-widgets,
.site-info{
    display:none!important;
}


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

.ams-pro-footer{
    position:relative;
    z-index:10;

    margin-top:70px;

    overflow:hidden;

    color:#d9e7f1;

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(39,191,181,.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 100%,
            rgba(22,131,216,.17),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #0a253b 0%,
            #0d3451 55%,
            #0b2942 100%
        );
}


.ams-footer-wave{
    height:6px;

    background:
        linear-gradient(
            90deg,
            #1683d8,
            #24c3b5,
            #1683d8
        );
}


.ams-footer-container{
    width:calc(100% - 40px);
    max-width:1180px;

    margin:auto;
}


.ams-footer-main{
    padding:65px 0 52px;

    display:grid;

    grid-template-columns:
        1.5fr
        .7fr
        .7fr
        1.2fr;

    gap:55px;
}


/* BRAND */

.ams-footer-logo{
    width:max-content;

    display:flex;
    align-items:center;

    gap:12px;

    color:#fff!important;

    text-decoration:none!important;
}


.ams-footer-logo-icon{
    width:49px;
    height:49px;

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

    flex:none;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            #1683d8,
            #24c3b5
        );

    border-radius:15px;

    box-shadow:
        0 12px 30px rgba(22,131,216,.20);

    font-size:23px;
    font-weight:900;
}


.ams-footer-logo-copy{
    display:flex;
    flex-direction:column;
}


.ams-footer-logo-copy strong{
    color:#fff;

    font-size:21px;
    font-weight:900;
}


.ams-footer-logo-copy small{
    margin-top:3px;

    color:#91aabd;

    font-size:10px;
}


.ams-footer-brand p{
    max-width:330px;

    margin:20px 0;

    color:#9eb3c2;

    font-size:13px;
    line-height:2;
}


.ams-footer-tags{
    display:flex;
    flex-wrap:wrap;

    gap:7px;
}


.ams-footer-tags span{
    padding:6px 9px;

    color:#bcd0dd;

    background:
        rgba(255,255,255,.055);

    border:
        1px solid rgba(255,255,255,.08);

    border-radius:100px;

    font-size:10px;
}


/* FOOTER COLUMNS */

.ams-footer-column h3,
.ams-footer-discover h3{
    margin:0 0 19px;

    color:#fff;

    font-size:15px;
    font-weight:900;
}


.ams-footer-column h3:after{
    content:"";

    width:25px;
    height:3px;

    display:block;

    margin-top:9px;

    background:
        linear-gradient(
            90deg,
            #1683d8,
            #24c3b5
        );

    border-radius:10px;
}


.ams-footer-column a{
    width:max-content;

    margin:0 0 11px;

    display:block;

    color:#9eb3c2!important;

    text-decoration:none!important;

    font-size:12px;
    font-weight:600;

    transition:.2s ease;
}


.ams-footer-column a:hover{
    color:#fff!important;

    transform:translateX(-4px);
}


/* DISCOVER */

.ams-footer-discover{
    padding:24px;

    background:
        rgba(255,255,255,.055);

    border:
        1px solid rgba(255,255,255,.08);

    border-radius:20px;
}


.ams-footer-eyebrow{
    display:block;

    margin-bottom:8px;

    color:#59d6cb;

    font-size:10px;
    font-weight:900;
}


.ams-footer-discover h3{
    margin-bottom:10px;

    font-size:21px;
    line-height:1.55;
}


.ams-footer-discover p{
    margin:0 0 16px;

    color:#9eb3c2;

    font-size:11px;
    line-height:1.8;
}


/* FOOTER SEARCH */

.ams-footer-search{
    padding:4px;

    display:flex;

    background:#fff;

    border-radius:11px;
}


.ams-footer-search input{
    width:100%;
    min-width:0;
    height:39px;

    padding:0 11px;

    color:#334f64;

    background:transparent;

    border:0!important;
    outline:0!important;

    font-family:inherit;

    font-size:11px;
}


.ams-footer-search button{
    min-width:58px;

    padding:0 10px;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            #1683d8,
            #24c3b5
        );

    border:0;

    border-radius:8px;

    font-family:inherit;

    font-size:11px;
    font-weight:800;

    cursor:pointer;
}


/* FOOTER BOTTOM */

.ams-footer-bottom{
    min-height:72px;

    padding:18px 0;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:20px;

    border-top:
        1px solid rgba(255,255,255,.08);
}


.ams-footer-bottom p{
    margin:0;

    color:#8099ab;

    font-size:11px;
}


.ams-footer-bottom strong{
    color:#c9dce8;
}


.ams-footer-note{
    text-align:left;
}


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

@media(max-width:950px){

    .ams-footer-main{
        grid-template-columns:
            1.3fr
            .7fr
            .7fr;

        gap:35px;
    }

    .ams-footer-discover{
        grid-column:1 / -1;
    }

}


@media(max-width:650px){

    .ams-pro-footer{
        margin-top:45px;
    }

    .ams-footer-container{
        width:calc(100% - 30px);
    }

    .ams-footer-main{
        padding:45px 0 35px;

        grid-template-columns:
            1fr 1fr;

        gap:35px 25px;
    }

    .ams-footer-brand,
    .ams-footer-discover{
        grid-column:1 / -1;
    }

    .ams-footer-bottom{
        padding:22px 0;

        flex-direction:column;

        align-items:flex-start;
    }

    .ams-footer-note{
        text-align:right;
    }

}



/* =========================================================
   ALMSA3D V7.2 — LEGACY CLEANUP + CATEGORY CHIP
   ========================================================= */


/* Legacy GeneratePress top bar — absolute fallback */

.top-bar,
.inside-top-bar{
    display:none!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
}


/* Old category implementation stays disabled */

.ams-card-category{
    display:none!important;
}


/* New category chip */

.ams-category-chip{
    position:absolute;

    z-index:30;

    top:14px;
    right:14px;

    width:max-content;
    max-width:calc(100% - 28px);

    padding:6px 12px;

    display:inline-flex;
    align-items:center;

    color:#fff!important;

    background:
        linear-gradient(
            135deg,
            rgba(16,71,108,.94),
            rgba(22,131,216,.91)
        );

    border:
        1px solid rgba(255,255,255,.22);

    border-radius:100px;

    box-shadow:
        0 6px 18px rgba(8,40,65,.17);

    backdrop-filter:blur(8px);

    text-decoration:none!important;

    font-size:10px;
    line-height:1.4;
    font-weight:800;

    transition:
        transform .2s ease,
        background .2s ease;
}


.ams-category-chip:hover{
    color:#fff!important;

    background:
        linear-gradient(
            135deg,
            #1683d8,
            #24c3b5
        );

    transform:translateY(-2px);
}


/*
 Make article the positioning context.
 Chip appears in upper corner of card/image area.
*/

body.home article,
body.blog article,
body.archive article,
body.search article{
    position:relative!important;
}


/* Mobile */

@media(max-width:768px){

    .ams-category-chip{
        top:12px;
        right:12px;

        padding:5px 10px;

        font-size:9px;
    }

}



/* =========================================================
   ALMSA3D V7.3 — CATEGORY ON IMAGE
   ========================================================= */

.post-image{
    position:relative!important;
}


/*
 Chip is now physically inside .post-image,
 so top/right are relative to the image.
*/

.post-image .ams-category-chip{
    position:absolute!important;

    z-index:40!important;

    top:14px!important;
    right:14px!important;

    margin:0!important;

    padding:6px 12px!important;

    color:#fff!important;

    background:
        linear-gradient(
            135deg,
            rgba(15,76,119,.95),
            rgba(22,131,216,.94)
        )!important;

    border:
        1px solid rgba(255,255,255,.30)!important;

    border-radius:100px!important;

    box-shadow:
        0 6px 18px rgba(7,35,57,.22)!important;

    backdrop-filter:blur(7px);

    text-decoration:none!important;

    font-size:10px!important;
    font-weight:900!important;
    line-height:1.4!important;
}


/* Ensure image overlay doesn't cover category */

.post-image:after{
    z-index:1!important;
}

.post-image img{
    position:relative;
    z-index:0;
}

.post-image .ams-category-chip{
    z-index:5!important;
}


@media(max-width:768px){

    .post-image .ams-category-chip{
        top:11px!important;
        right:11px!important;

        padding:5px 10px!important;

        font-size:9px!important;
    }

}



/* =========================================================
   ALMSA3D V7.4 — REAL BRAND LOGO
   ========================================================= */

.ams-brand-image{
    height:58px;

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

    padding:0!important;

    text-decoration:none!important;
}


.ams-main-logo{
    width:auto!important;
    height:54px!important;

    max-width:190px!important;

    display:block!important;

    object-fit:contain!important;

    border:0!important;
    border-radius:0!important;

    box-shadow:none!important;
}


.ams-brand-fallback{
    color:#173f5f;

    font-size:21px;
    font-weight:900;
}


/* Old generated text logo */

.ams-brand-icon,
.ams-brand-copy{
    display:none!important;
}


/* Footer logo */

.ams-footer-logo-image{
    width:max-content;

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

    text-decoration:none!important;
}


.ams-footer-main-logo{
    width:auto!important;
    height:64px!important;

    max-width:210px!important;

    display:block!important;

    object-fit:contain!important;

    border:0!important;

    box-shadow:none!important;
}


/* Hide old footer generated icon/text */

.ams-footer-logo-icon,
.ams-footer-logo-copy{
    display:none!important;
}


@media(max-width:768px){

    .ams-brand-image{
        height:50px;
    }

    .ams-main-logo{
        height:46px!important;
        max-width:155px!important;
    }

    .ams-footer-main-logo{
        height:58px!important;
        max-width:180px!important;
    }

}

