/*
Theme Name: AquaPortal Child
Author: AquaPortal.bg
Description: AquaPortal.bg — custom child theme
Version: 2.0.0
Text Domain: aquaportal-child
Template: astra
*/


/* =====================================================
   GLOBAL
===================================================== */

html,
body {
    margin: 0;
    padding: 0;
}

body.aquaportal-home {
    margin: 0 !important;
    padding: 0 !important;
    background: #eef3f7;
    color: #10243a;
}

body.aquaportal-home #page,
body.aquaportal-home .site,
body.aquaportal-home .site-content,
body.aquaportal-home .content-area,
body.aquaportal-home .site-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =====================================================
   ASTRA HEADER / FOOTER
===================================================== */

body.aquaportal-home .site-header,
body.aquaportal-home .ast-header-break-point,
body.aquaportal-home .ast-primary-header-bar,
body.aquaportal-home .ast-above-header-wrap,
body.aquaportal-home .ast-below-header-wrap,
body.aquaportal-home .ast-main-header-wrap,
body.aquaportal-home header.site-header {
    display: none !important;
}

body.aquaportal-home .site-footer {
    display: none !important;
}


/* =====================================================
   AQUAPORTAL HEADER
===================================================== */

.ap-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #031b2b;
    color: #fff;
}

.ap-header-top {
    width: 100%;
    background: linear-gradient(
        90deg,
        #031522 0%,
        #062a40 50%,
        #043b58 100%
    );
}

.ap-header-inner {
    width: 100%;
    max-width: 1200px;
    min-height: 88px;
    margin: 0 auto;
    padding: 10px 20px;

    display: flex;
    align-items: center;
    gap: 30px;

    box-sizing: border-box;
}


/* =====================================================
   LOGO
===================================================== */

.ap-logo {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    background: #fff;
    padding: 6px 16px 5px;

    border-radius: 10px;
    box-sizing: border-box;
}

.ap-logo a {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.ap-logo-image {
    display: block;
    width: 300px;
    max-width: 300px;
    height: auto;
    object-fit: contain;
}

/* =====================================================
   FALLBACK LOGO
===================================================== */

.ap-logo-text {
    font-size: 29px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1px;
}

.ap-logo-text span {
    color: #fff;
}

.ap-logo-text strong {
    color: #129bea;
}

.ap-logo-text em {
    color: #fff;
    font-style: normal;
}

.ap-logo-subtitle {
    margin-top: 5px;
    font-size: 8px;
    letter-spacing: 1px;
    color: #a9bdc9;
}


/* =====================================================
   SEARCH
===================================================== */

.ap-search {
    flex: 1 1 auto;
    max-width: 480px;
    margin: 0 auto;
}

.ap-search form {
    position: relative;
    margin: 0;
}

.ap-search input {
    display: block;

    width: 100% !important;
    height: 42px !important;

    padding: 0 48px 0 20px !important;

    border: 0 !important;
    border-radius: 25px !important;

    background: #f5f8fb !important;
    color: #20364a !important;

    font-size: 14px !important;
    line-height: 42px !important;

    box-sizing: border-box;
}

.ap-search input::placeholder {
    color: #8495a5;
}

.ap-search button {
    position: absolute;
    right: 5px;
    top: 4px;

    width: 34px !important;
    height: 34px !important;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: transparent !important;

    cursor: pointer;

    font-size: 17px;
    line-height: 34px;
}


/* =====================================================
   USER
===================================================== */

.ap-user {
    display: flex;
    align-items: center;
    gap: 16px;

    white-space: nowrap;
}

.ap-user a {
    color: #fff !important;
    text-decoration: none !important;

    font-size: 14px !important;
    font-weight: 600 !important;
}

.ap-register {
    padding: 11px 18px !important;
    border-radius: 7px !important;
    background: #078cf0 !important;
}


/* =====================================================
   NAVIGATION
===================================================== */

.ap-navigation {
    width: 100%;
    background: #034666;
    border-top: 1px solid rgba(255,255,255,.08);
}

.ap-nav-inner {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: flex;
    align-items: stretch;
}

.ap-nav-inner > a {
    min-height: 46px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #fff !important;
    text-decoration: none !important;

    font-size: 12px !important;
    font-weight: 700 !important;

    transition: background .2s ease;

    box-sizing: border-box;
}

.ap-nav-inner > a:hover {
    background: #087fb8;
}

.ap-nav-inner > a span {
    display: inline;
}


/* =====================================================
   HERO
===================================================== */

.ap-hero {
    position: relative;

    width: 100%;
    min-height: 440px;

    background-color: #061b2b;
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    box-sizing: border-box;
}

.ap-hero-inner {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 70px 20px;

    box-sizing: border-box;
}

.ap-hero-content {
    max-width: 600px;
    color: #fff;
}

.ap-hero-label {
    margin-bottom: 14px;

    color: #56c7ff;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ap-hero h1 {
    margin: 0 0 18px !important;

    color: #fff !important;

    font-size: clamp(42px, 5vw, 68px) !important;
    line-height: 1.03 !important;

    font-weight: 800 !important;
    letter-spacing: -2px;
}

.ap-hero h1 span {
    display: block;
    color: #079bf0 !important;
}

.ap-hero p {
    max-width: 520px;

    margin: 0 0 28px !important;

    color: #e7f2f8 !important;

    font-size: 20px !important;
    line-height: 1.4 !important;
}

.ap-hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ap-button {
    display: inline-flex;
    align-items: center;

    min-height: 46px;
    padding: 0 22px;

    border-radius: 7px;

    text-decoration: none !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    box-sizing: border-box;
    transition: .2s ease;
}

.ap-button-primary {
    background: #078ff0 !important;
    color: #fff !important;
}

.ap-button-primary:hover {
    background: #0aa5ff !important;
    color: #fff !important;
}

.ap-button-secondary {
    border: 1px solid rgba(255,255,255,.8);

    color: #fff !important;
    background: rgba(0,0,0,.18);
}

.ap-button-secondary:hover {
    background: rgba(255,255,255,.12);
    color: #fff !important;
}


/* =====================================================
   PLACEHOLDER
===================================================== */

.ap-home-placeholder {
    width: 100%;
    min-height: 80px;
    background: #eef3f7;
}


/* =====================================================
   INNER PAGES — ASTRA LOGO
===================================================== */

body:not(.aquaportal-home) .custom-logo-link {
    display: flex !important;

    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;

    text-decoration: none !important;
    line-height: 1 !important;
}

body:not(.aquaportal-home) .custom-logo-link .custom-logo {
    display: block !important;

    width: auto !important;
    max-width: 290px !important;
    height: auto !important;

    margin: 0 !important;
}

body:not(.aquaportal-home) .custom-logo-link .ap-astra-powered {
    display: block !important;

    width: 100% !important;

    margin: 3px 0 0 0 !important;
    padding: 0 !important;

    text-align: right !important;

    color: #12395a !important;

    font-size: 9px !important;
    line-height: 12px !important;

    font-weight: 600 !important;
    white-space: nowrap !important;
}

body:not(.aquaportal-home) .custom-logo-link .ap-astra-powered strong {
    font-weight: 800 !important;
}


/* =====================================================
   TABLET + MOBILE
===================================================== */

@media (max-width: 900px) {

    /* ---------------------------------------------
       HEADER
    --------------------------------------------- */

    body.aquaportal-home .ap-header {
        padding: 12px 10px 0 !important;
    }

    body.aquaportal-home .ap-header-inner {
        width: 100% !important;

        min-height: 0 !important;

        padding: 0 0 12px !important;
        margin: 0 !important;

        display: grid !important;

        grid-template-columns: minmax(0, 1fr) auto !important;

        grid-template-areas:
            "logo user"
            "search search" !important;

        align-items: center !important;

        column-gap: 10px !important;
        row-gap: 10px !important;
    }


    /* ---------------------------------------------
       LOGO
    --------------------------------------------- */

    body.aquaportal-home .ap-logo {
        grid-area: logo !important;

        width: 100% !important;
        max-width: 300px !important;

        padding: 5px 10px 4px !important;
        margin: 0 !important;

        border-radius: 9px !important;
    }

    body.aquaportal-home .ap-logo-image {
        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;

        display: block !important;
    }

    body.aquaportal-home .ap-logo a::after {
        font-size: 9px !important;
        line-height: 11px !important;
        margin-top: 0 !important;
        padding-right: 2px !important;

        white-space: nowrap !important;
    }


    /* ---------------------------------------------
       USER
    --------------------------------------------- */

    body.aquaportal-home .ap-user {
        grid-area: user !important;

        width: auto !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: flex-end !important;
        justify-content: center !important;

        gap: 5px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    body.aquaportal-home .ap-user a {
        white-space: nowrap !important;

        font-size: 13px !important;
        line-height: 1.15 !important;
    }

    body.aquaportal-home .ap-register {
        padding: 7px 9px !important;
    }


    /* ---------------------------------------------
       SEARCH
    --------------------------------------------- */

    body.aquaportal-home .ap-search {
        grid-area: search !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
    }

    body.aquaportal-home .ap-search input {
        width: 100% !important;
        height: 44px !important;

        font-size: 14px !important;
    }


    /* ---------------------------------------------
       MOBILE MENU
       
       7 REAL CATEGORIES
       
       Няма:
       - pseudo-elements
       - измислени текстове
       - Gallery
       - Home
    --------------------------------------------- */

    body.aquaportal-home .ap-navigation {
        width: 100% !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }

    body.aquaportal-home .ap-nav-inner {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        display: grid !important;

        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;

        gap: 0 !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }

    body.aquaportal-home .ap-nav-inner > a {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        height: 38px !important;
        min-height: 38px !important;

        margin: 0 !important;
        padding: 0 1px !important;

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        gap: 0 !important;

        color: #fff !important;
        background: transparent !important;

        text-decoration: none !important;

        font-size: 9px !important;
        line-height: 1 !important;
        font-weight: 700 !important;

        text-align: center !important;

        white-space: nowrap !important;
        overflow: hidden !important;

        box-sizing: border-box !important;
    }

    body.aquaportal-home .ap-nav-inner > a:hover {
        background: #087fb8 !important;
    }

    /*
       Скриваме емоджитата.
       Те са обикновен текст, затова използваме
       размера на родителя + показваме span-а.
    */

    body.aquaportal-home .ap-nav-inner > a {
        font-size: 0 !important;
    }

    body.aquaportal-home .ap-nav-inner > a span {
        display: block !important;

        color: #fff !important;

        font-size: 8px !important;
        line-height: 1 !important;
        font-weight: 700 !important;

        white-space: nowrap !important;
        text-align: center !important;
    }

    /*
       Пълно изключване на старите pseudo-elements,
       ако някой е останал от кеширан/стар CSS.
    */

    body.aquaportal-home .ap-nav-inner > a::before,
    body.aquaportal-home .ap-nav-inner > a::after {
        content: none !important;
        display: none !important;
    }
}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 480px) {

    body.aquaportal-home .ap-header {
        padding: 10px 8px 0 !important;
    }

    body.aquaportal-home .ap-header-inner {
        row-gap: 8px !important;
        padding-bottom: 10px !important;
    }


    /* LOGO */

    body.aquaportal-home .ap-logo {
        max-width: 210px !important;
        padding: 4px 7px 3px !important;
    }

    body.aquaportal-home .ap-logo a::after {
        font-size: 8px !important;
        line-height: 10px !important;
    }


    /* USER */

    body.aquaportal-home .ap-user {
        gap: 4px !important;
    }

    body.aquaportal-home .ap-user a {
        font-size: 12px !important;
    }

    body.aquaportal-home .ap-register {
        padding: 6px 7px !important;
    }


    /* SEARCH */

    body.aquaportal-home .ap-search input {
        height: 42px !important;
        font-size: 13px !important;
    }


    /* MENU */

    body.aquaportal-home .ap-nav-inner {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }

    body.aquaportal-home .ap-nav-inner > a {
        height: 36px !important;
        min-height: 36px !important;

        padding: 0 !important;
    }

    body.aquaportal-home .ap-nav-inner > a span {
        font-size: 7px !important;
        letter-spacing: -0.15px !important;
    }


    /* HERO */

    body.aquaportal-home .ap-hero {
        min-height: 500px;
    }

    body.aquaportal-home .ap-hero-inner {
        padding: 50px 22px;
    }

    body.aquaportal-home .ap-hero h1 {
        font-size: 38px !important;
    }

    body.aquaportal-home .ap-hero p {
        font-size: 16px !important;
    }

    body.aquaportal-home .ap-button {
        font-size: 14px !important;
        padding: 0 18px !important;
    }


    /* INNER PAGE LOGO */

    body:not(.aquaportal-home) .custom-logo-link {
        width: 190px !important;
        max-width: 190px !important;
    }

    body:not(.aquaportal-home) .custom-logo-link .custom-logo {
        width: 190px !important;
        max-width: 190px !important;
    }

    body:not(.aquaportal-home) .custom-logo-link .ap-astra-powered {
        font-size: 7px !important;
        line-height: 9px !important;
        margin-top: 2px !important;
    }
    
}
/* =====================================================
   AQUAPORTAL — INNER PAGE HEADER
===================================================== */

/* Прозрачен header */

body:not(.home) .site-header,
body:not(.home) #masthead,
body:not(.home) .ast-main-header-wrap,
body:not(.home) .ast-primary-header-bar,
body:not(.home) .ast-above-header-wrap,
body:not(.home) .ast-below-header-wrap {

    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}


/* Вътрешните контейнери */

body:not(.home) .ast-builder-grid-row,
body:not(.home) .ast-container,
body:not(.home) .site-header-section {

    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}


/* =====================================================
   БЯЛА ПЛОЧКА ОКОЛО ЛОГОТО
===================================================== */

body:not(.home) .site-branding {

    background: #ffffff !important;

    padding: 7px 16px 6px !important;

    border-radius: 10px !important;

    box-shadow: 0 8px 25px rgba(0,0,0,.25) !important;

    box-sizing: border-box !important;
}


/* Лого */

body:not(.home) .custom-logo {

    display: block !important;

    width: 290px !important;

    max-width: 290px !important;

    height: auto !important;

    margin: 0 !important;
}


/* =====================================================
   HEADER ЛИНКОВЕ
===================================================== */

body:not(.home) .site-header a {

    color: #e8f7ff !important;
}

body:not(.home) .site-header a:hover {

    color: #39bdf5 !important;
}


/* =====================================================
   МОБИЛНО
===================================================== */

@media (max-width: 900px) {

    body:not(.home) .ast-primary-header-bar {

        min-height: 95px !important;

        padding: 10px 12px !important;
    }


    body:not(.home) .site-branding {

        padding: 5px 10px 4px !important;

        border-radius: 8px !important;
    }


    body:not(.home) .custom-logo {

        width: 210px !important;

        max-width: 210px !important;
    }

}
/* =========================================================
   AQUAPORTAL — INNER PAGES BACKGROUND
   ========================================================= */

/* Цялата страница */
body.post-type-archive-fish {
    background-color: #021a24 !important;

    background-image:
        linear-gradient(
            to bottom,
            rgba(1, 18, 27, 0.98) 0px,
            rgba(1, 25, 32, 0.90) 180px,
            rgba(1, 18, 27, 0.60) 420px,
            rgba(1, 15, 24, 0.78) 100%
        ),
        url("http://dev.aquaportal.bg/wp-content/uploads/2026/10/748659b0-9725-49d7-87e3-ab51b002333c.png") !important;

    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* =========================================================
   HEADER — прозрачен, за да се вижда фонът
   ========================================================= */

body.post-type-archive-fish .site-header,
body.post-type-archive-fish .ast-primary-header-bar,
body.post-type-archive-fish .ast-main-header-wrap,
body.post-type-archive-fish .ast-builder-grid-row,
body.post-type-archive-fish .ast-above-header-wrap,
body.post-type-archive-fish .ast-below-header-wrap {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Леко по-тъмен слой в горната част */
body.post-type-archive-fish .site-header {
    background:
        linear-gradient(
            to bottom,
            rgba(1, 12, 20, 0.82),
            rgba(1, 18, 27, 0.45),
            rgba(1, 18, 27, 0)
        ) !important;
}

/* =========================================================
   ЛОГО — бяла плочка както на началната страница
   ========================================================= */

body.post-type-archive-fish .site-branding {
    background: #ffffff !important;
    padding: 7px 16px 6px !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22) !important;
}

/* Самото лого */
body.post-type-archive-fish .custom-logo-link {
    background: transparent !important;
}

/* =========================================================
   HEADER ЛИНКОВЕ
   ========================================================= */

body.post-type-archive-fish .site-header a {
    color: #e8f7ff !important;
}

body.post-type-archive-fish .site-header a:hover {
    color: #39bdf5 !important;
}
/* =========================================================
   МОБИЛЕН КАТАЛОГ — 4 РИБИ НА РЕД
   ========================================================= */

@media (max-width: 600px) {

    body.post-type-archive-fish .fish-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    body.post-type-archive-fish .fish-grid .fish-card {
        width: calc(25% - 5px) !important;
        flex: 0 0 calc(25% - 5px) !important;
        margin: 0 !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }

    body.post-type-archive-fish .fish-grid .fish-card img {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
    }

    body.post-type-archive-fish .fish-grid .fish-card-content {
        padding: 5px !important;
    }

    body.post-type-archive-fish .fish-grid .fish-card h3 {
        font-size: 10px !important;
        line-height: 1.15 !important;
        margin: 0 !important;
    }

    body.post-type-archive-fish .fish-grid .fish-card .fish-latin {
        font-size: 8px !important;
        line-height: 1.1 !important;
    }

    body.post-type-archive-fish .fish-grid .fish-card .fish-info {
        display: none !important;
    }
}
/* =========================================================
   AQUAPORTAL — GLOBAL INNER PAGE BACKGROUND
   ========================================================= */

body:not(.aquaportal-home) {

    background-color: #001923 !important;

    background-image:
        linear-gradient(
            to bottom,
            rgba(0, 20, 29, 0.98) 0px,
            rgba(0, 20, 29, 0.96) 220px,
            rgba(0, 20, 29, 0.72) 430px,
            rgba(0, 20, 29, 0.82) 100%
        ),
        url("http://dev.aquaportal.bg/wp-content/uploads/2026/10/748659b0-9725-49d7-87e3-ab51b002333c.png") !important;

    background-size: cover !important;
    background-position: center top !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}


/* Горната част остава тъмна и чиста */

body:not(.aquaportal-home) .site-header,
body:not(.aquaportal-home) .ast-primary-header-bar,
body:not(.aquaportal-home) .ast-main-header-wrap,
body:not(.aquaportal-home) .ast-above-header-wrap,
body:not(.aquaportal-home) .ast-below-header-wrap {

    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}


/* Основното съдържание да не слага бял фон */

body:not(.aquaportal-home) #content,
body:not(.aquaportal-home) .site-content,
body:not(.aquaportal-home) .content-area,
body:not(.aquaportal-home) .ast-container {

    background: transparent !important;
}


/* За да не остава бял фон зад отделните страници */

body:not(.aquaportal-home) .site-main {

    background: transparent !important;
}


/* =========================================================
   ВЪТРЕШНИТЕ СТРАНИЦИ — ГОРНА ЗОНА
   ========================================================= */

body:not(.aquaportal-home) .site-header {

    position: relative;
    z-index: 10;
}


body:not(.aquaportal-home) .site-branding {

    position: relative;
    z-index: 11;
}
/* =========================================================
   AQUAPORTAL — DARK INNER PAGES
   ========================================================= */

/* Основата на страницата да е прозрачна */
body.single-fish .site-content,
body.single-fish .content-area,
body.single-fish .site-main,
body.single-fish article,
body.single-fish .entry-content {
    background: transparent !important;
}


/* Контейнерът на рибата */
body.single-fish .aquaportal-fish-page {
    color: #eaf7ff !important;
}


/* Заглавия */
body.single-fish .aquaportal-fish-title h1,
body.single-fish .aquaportal-fish-intro h1 {
    color: #ffffff !important;
}

body.single-fish .aquaportal-fish-latin,
body.single-fish .aquaportal-fish-bulgarian-name {
    color: #b8d0dc !important;
}

body.single-fish .aquaportal-fish-author,
body.single-fish .aquaportal-fish-habitat {
    color: #c3d5dd !important;
}


/* Основна информация */
body.single-fish .aquaportal-info-title {
    color: #ffffff !important;
}


/* Информационните карти */
body.single-fish .aquaportal-info-card {
    background: rgba(5, 34, 48, 0.88) !important;
    border: 1px solid rgba(40, 170, 220, 0.25) !important;
    color: #ffffff !important;
}

body.single-fish .aquaportal-info-card span {
    color: #8faeba !important;
}

body.single-fish .aquaportal-info-card strong {
    color: #ffffff !important;
}


/* Описание */
body.single-fish .aquaportal-fish-description {
    color: #e7f4fa !important;
}

body.single-fish .aquaportal-fish-description h2,
body.single-fish .aquaportal-fish-description h3 {
    color: #ffffff !important;
}

body.single-fish .aquaportal-description-content {
    color: #d8e8ef !important;
}

body.single-fish .aquaportal-description-content p {
    color: #d8e8ef !important;
}


/* Класификация */
body.single-fish .aquaportal-fish-classification {
    background: rgba(5, 34, 48, 0.88) !important;
    border: 1px solid rgba(40, 170, 220, 0.25) !important;
}

body.single-fish .aquaportal-fish-classification h2 {
    color: #ffffff !important;
}

body.single-fish .aquaportal-classification-grid span {
    color: #8faeba !important;
}

body.single-fish .aquaportal-classification-grid strong {
    color: #ffffff !important;
}


/* Breadcrumb */
body.single-fish .aquaportal-fish-breadcrumb {
    color: #9eb7c3 !important;
}

body.single-fish .aquaportal-fish-breadcrumb a {
    color: #29a9df !important;
}


/* Difficulty */
body.single-fish .aquaportal-difficulty {
    background: rgba(7, 52, 68, 0.9) !important;
    color: #ffffff !important;
}


/* Снимката */
body.single-fish .aquaportal-fish-image {
    background: #062433 !important;
}
/* =========================================================
   SINGLE FISH – КОРЕКЦИЯ НА ТЕКСТОВЕТЕ
   ========================================================= */

/* Семейство и група */
.single-fish .aquaportal-fish-difficulty-value {
    color: #ffffff !important;
}

/* Етикетите Семейство / Група */
.single-fish .aquaportal-fish-difficulty-label {
    color: #8fb3c7 !important;
}

/* Предишна / Следваща риба */
.single-fish .post-navigation,
.single-fish .post-navigation a,
.single-fish .nav-previous a,
.single-fish .nav-next a {
    color: #ffffff !important;
}

.single-fish .post-navigation a:hover,
.single-fish .nav-previous a:hover,
.single-fish .nav-next a:hover {
    color: #29b6e6 !important;
}
/* =========================================================
   SINGLE FISH - СЕМЕЙСТВО И ГРУПА
   ========================================================= */

.aquaportal-fish-difficulty-label {
    color: #8fb3c7 !important;
}

.aquaportal-fish-difficulty-value {
    color: #ffffff !important;
}

/* Мобилен изглед на индивидуалните биотопи */
@media screen and (max-width: 768px) {

    body.single-biotop,
    body.single-biotop #page,
    body.single-biotop #content,
    body.single-biotop .site-content,
    body.single-biotop .ast-container,
    body.single-biotop #primary,
    body.single-biotop .content-area,
    body.single-biotop article,
    body.single-biotop .ap-single-biotop {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-biotop .ap-single-biotop {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.single-biotop .ap-single-biotop img {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    body.single-biotop .ap-single-biotop figure,
    body.single-biotop .ap-single-biotop .wp-block-image {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* =========================================================
   AQUAPORTAL — FINAL LOGO OVERRIDES
   Началната страница запазва собствения си хедър.
   Вътрешните страници използват логото от WordPress / Astra.
   ========================================================= */

/* Само на вътрешните страници: прозрачен контейнер на логото */
body:not(.aquaportal-home) .site-header .site-branding,
body:not(.aquaportal-home) .site-header .ast-site-identity {
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Показваме стандартното WordPress/Astra лого */
body:not(.aquaportal-home) .site-header .custom-logo-link {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    text-decoration: none !important;
}

/* Размер на стандартното лого */
body:not(.aquaportal-home) .site-header img.custom-logo {
    display: block !important;
    width: 272px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
}

/* Скриваме стария допълнителен надпис, ако е останал */
body:not(.aquaportal-home) .site-header .ap-astra-powered {
    display: none !important;
}

/* Не показваме custom логото от началната страница на вътрешните страници */
body:not(.aquaportal-home) .ap-header .ap-logo,
body:not(.aquaportal-home) .ap-header .ap-logo-image {
    display: none !important;
}

/* Лого на таблети */
@media (max-width: 900px) {
    body:not(.aquaportal-home) .site-header img.custom-logo {
        width: 240px !important;
        max-width: 100% !important;
    }
}

/* Лого на малки телефони */
@media (max-width: 480px) {
    body:not(.aquaportal-home) .site-header img.custom-logo {
        width: 190px !important;
        max-width: 100% !important;
    }
}

/* Фоновото изображение се зарежда през HTTPS */
body:not(.aquaportal-home) {
    background-image:
        linear-gradient(
            to bottom,
            rgba(0, 20, 29, 0.98) 0px,
            rgba(0, 20, 29, 0.96) 220px,
            rgba(0, 20, 29, 0.72) 430px,
            rgba(0, 20, 29, 0.82) 100%
        ),
        url("https://dev.aquaportal.bg/wp-content/uploads/2026/10/748659b0-9725-49d7-87e3-ab51b002333c.png") !important;
}
